cdk-real-drift 0.26.1 → 0.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +444 -404
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -154,7 +154,7 @@ function classifyStackStatus(status) {
|
|
|
154
154
|
message: ""
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
-
const NOT_FOUND_ERROR_NAMES = new Set([
|
|
157
|
+
const NOT_FOUND_ERROR_NAMES = /* @__PURE__ */ new Set([
|
|
158
158
|
"ResourceNotFoundException",
|
|
159
159
|
"NoSuchBucket",
|
|
160
160
|
"NoSuchBucketPolicy",
|
|
@@ -240,7 +240,7 @@ function classifyTransient(error) {
|
|
|
240
240
|
const DEFAULT_MAX_ATTEMPTS = 3;
|
|
241
241
|
const DEFAULT_BASE_DELAY_MS = 3e3;
|
|
242
242
|
const DEFAULT_MAX_DELAY_MS = 3e4;
|
|
243
|
-
const DEFAULT_WAIT_MS =
|
|
243
|
+
const DEFAULT_WAIT_MS = 6e5;
|
|
244
244
|
function parseDurationMs(raw) {
|
|
245
245
|
const m = /^(\d+)(s|m|h)?$/.exec(raw.trim());
|
|
246
246
|
if (!m) throw new Error(`invalid --wait duration "${raw}" — use e.g. 90, 30s, 5m, 1h`);
|
|
@@ -281,7 +281,7 @@ async function retryTransient(op, opts = {}) {
|
|
|
281
281
|
|
|
282
282
|
//#endregion
|
|
283
283
|
//#region src/cli-args.ts
|
|
284
|
-
const VALUE_FLAGS = new Set([
|
|
284
|
+
const VALUE_FLAGS = /* @__PURE__ */ new Set([
|
|
285
285
|
"--region",
|
|
286
286
|
"--profile",
|
|
287
287
|
"--app",
|
|
@@ -289,7 +289,7 @@ const VALUE_FLAGS = new Set([
|
|
|
289
289
|
"-c",
|
|
290
290
|
"--context"
|
|
291
291
|
]);
|
|
292
|
-
const BOOLEAN_FLAGS = new Set([
|
|
292
|
+
const BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
293
293
|
"--json",
|
|
294
294
|
"--fail",
|
|
295
295
|
"--no-prompt",
|
|
@@ -324,7 +324,7 @@ const GLOBAL_FLAGS = [
|
|
|
324
324
|
"--yes"
|
|
325
325
|
];
|
|
326
326
|
const ALLOWED_FLAGS_BY_VERB = {
|
|
327
|
-
check: new Set([
|
|
327
|
+
check: /* @__PURE__ */ new Set([
|
|
328
328
|
...GLOBAL_FLAGS,
|
|
329
329
|
"--fail",
|
|
330
330
|
"--no-prompt",
|
|
@@ -336,9 +336,9 @@ const ALLOWED_FLAGS_BY_VERB = {
|
|
|
336
336
|
"--verbose",
|
|
337
337
|
"--remove-unrecorded"
|
|
338
338
|
]),
|
|
339
|
-
record: new Set([...GLOBAL_FLAGS, "--verbose"]),
|
|
339
|
+
record: /* @__PURE__ */ new Set([...GLOBAL_FLAGS, "--verbose"]),
|
|
340
340
|
ignore: new Set(GLOBAL_FLAGS),
|
|
341
|
-
revert: new Set([
|
|
341
|
+
revert: /* @__PURE__ */ new Set([
|
|
342
342
|
...GLOBAL_FLAGS,
|
|
343
343
|
"--verbose",
|
|
344
344
|
"--remove-unrecorded",
|
|
@@ -565,8 +565,8 @@ function withinStackPath(constructPath, stackName) {
|
|
|
565
565
|
//#endregion
|
|
566
566
|
//#region src/config/config-file.ts
|
|
567
567
|
const CONFIG_PATH = ".cdkrd/ignore.yaml";
|
|
568
|
-
const KNOWN_KEYS = new Set(["ignore"]);
|
|
569
|
-
const RULE_OBJECT_KEYS = new Set([
|
|
568
|
+
const KNOWN_KEYS = /* @__PURE__ */ new Set(["ignore"]);
|
|
569
|
+
const RULE_OBJECT_KEYS = /* @__PURE__ */ new Set([
|
|
570
570
|
"path",
|
|
571
571
|
"stack",
|
|
572
572
|
"account",
|
|
@@ -1685,9 +1685,7 @@ function resolve$1(node, ctx, inCondition = false) {
|
|
|
1685
1685
|
case "Condition":
|
|
1686
1686
|
if (inCondition) return evalCondition(String(v), ctx);
|
|
1687
1687
|
break;
|
|
1688
|
-
default:
|
|
1689
|
-
if (k.startsWith("Fn::")) return UNRESOLVED;
|
|
1690
|
-
break;
|
|
1688
|
+
default: if (k.startsWith("Fn::")) return UNRESOLVED;
|
|
1691
1689
|
}
|
|
1692
1690
|
}
|
|
1693
1691
|
if ("Fn::Transform" in obj) return UNRESOLVED;
|
|
@@ -2001,7 +1999,7 @@ async function recordCorpusCase(dir, c) {
|
|
|
2001
1999
|
|
|
2002
2000
|
//#endregion
|
|
2003
2001
|
//#region src/normalize/cc-api-strip.ts
|
|
2004
|
-
const ALWAYS_STRIPPED = new Set([
|
|
2002
|
+
const ALWAYS_STRIPPED = /* @__PURE__ */ new Set([
|
|
2005
2003
|
"CreationDate",
|
|
2006
2004
|
"CreationTime",
|
|
2007
2005
|
"CreatedTime",
|
|
@@ -2025,7 +2023,7 @@ const ALWAYS_STRIPPED = new Set([
|
|
|
2025
2023
|
"PhysicalResourceId",
|
|
2026
2024
|
"LogicalResourceId"
|
|
2027
2025
|
]);
|
|
2028
|
-
const FREE_FORM_MAP_PARENTS = new Set([
|
|
2026
|
+
const FREE_FORM_MAP_PARENTS = /* @__PURE__ */ new Set([
|
|
2029
2027
|
"Variables",
|
|
2030
2028
|
"Parameters",
|
|
2031
2029
|
"DefaultArguments",
|
|
@@ -2039,7 +2037,7 @@ const FREE_FORM_MAP_PARENTS = new Set([
|
|
|
2039
2037
|
"TieringConfigurationTags",
|
|
2040
2038
|
"TestAliasTags"
|
|
2041
2039
|
]);
|
|
2042
|
-
const TAG_PROPERTY_NAMES = new Set([
|
|
2040
|
+
const TAG_PROPERTY_NAMES = /* @__PURE__ */ new Set([
|
|
2043
2041
|
"Tags",
|
|
2044
2042
|
"UserPoolTags",
|
|
2045
2043
|
"BackupPlanTags",
|
|
@@ -3489,55 +3487,55 @@ const DEFAULT_MANAGED_NAME_PATHS = {
|
|
|
3489
3487
|
"AWS::CloudFormation::Stack": { RoleARN: /^arn:aws[\w-]*:iam::\d{12}:role\/cdk-[a-z0-9]+-cfn-exec-role-\d{12}-[a-z0-9-]+$/ }
|
|
3490
3488
|
};
|
|
3491
3489
|
const GENERATED_TOPLEVEL_PATHS = {
|
|
3492
|
-
"AWS::ApiGatewayV2::Stage": new Set(["DeploymentId"]),
|
|
3493
|
-
"AWS::EC2::SecurityGroupIngress": new Set(["SourceSecurityGroupOwnerId", "GroupName"]),
|
|
3494
|
-
"AWS::ECS::Service": new Set(["Role"]),
|
|
3495
|
-
"AWS::SecretsManager::Secret": new Set(["Name"]),
|
|
3496
|
-
"AWS::DMS::ReplicationInstance": new Set(["ReplicationInstanceIdentifier"]),
|
|
3497
|
-
"AWS::DMS::Endpoint": new Set(["EndpointIdentifier"]),
|
|
3498
|
-
"AWS::DMS::ReplicationTask": new Set(["ReplicationTaskIdentifier"]),
|
|
3499
|
-
"AWS::ElasticLoadBalancingV2::TargetGroup": new Set(["Name"]),
|
|
3500
|
-
"AWS::ApplicationAutoScaling::ScalingPolicy": new Set([
|
|
3490
|
+
"AWS::ApiGatewayV2::Stage": /* @__PURE__ */ new Set(["DeploymentId"]),
|
|
3491
|
+
"AWS::EC2::SecurityGroupIngress": /* @__PURE__ */ new Set(["SourceSecurityGroupOwnerId", "GroupName"]),
|
|
3492
|
+
"AWS::ECS::Service": /* @__PURE__ */ new Set(["Role"]),
|
|
3493
|
+
"AWS::SecretsManager::Secret": /* @__PURE__ */ new Set(["Name"]),
|
|
3494
|
+
"AWS::DMS::ReplicationInstance": /* @__PURE__ */ new Set(["ReplicationInstanceIdentifier"]),
|
|
3495
|
+
"AWS::DMS::Endpoint": /* @__PURE__ */ new Set(["EndpointIdentifier"]),
|
|
3496
|
+
"AWS::DMS::ReplicationTask": /* @__PURE__ */ new Set(["ReplicationTaskIdentifier"]),
|
|
3497
|
+
"AWS::ElasticLoadBalancingV2::TargetGroup": /* @__PURE__ */ new Set(["Name"]),
|
|
3498
|
+
"AWS::ApplicationAutoScaling::ScalingPolicy": /* @__PURE__ */ new Set([
|
|
3501
3499
|
"ResourceId",
|
|
3502
3500
|
"ServiceNamespace",
|
|
3503
3501
|
"ScalableDimension"
|
|
3504
3502
|
]),
|
|
3505
|
-
"AWS::Lambda::Version": new Set(["CodeSha256"]),
|
|
3506
|
-
"AWS::Lambda::Function": new Set(["CodeSha256"]),
|
|
3507
|
-
"AWS::Glue::Job": new Set(["ScriptSha256"]),
|
|
3508
|
-
"AWS::EFS::AccessPoint": new Set(["ClientToken"])
|
|
3503
|
+
"AWS::Lambda::Version": /* @__PURE__ */ new Set(["CodeSha256"]),
|
|
3504
|
+
"AWS::Lambda::Function": /* @__PURE__ */ new Set(["CodeSha256"]),
|
|
3505
|
+
"AWS::Glue::Job": /* @__PURE__ */ new Set(["ScriptSha256"]),
|
|
3506
|
+
"AWS::EFS::AccessPoint": /* @__PURE__ */ new Set(["ClientToken"])
|
|
3509
3507
|
};
|
|
3510
3508
|
const DESCEND_UNDECLARED_OBJECT_PATHS = {
|
|
3511
|
-
"AWS::EKS::Cluster": new Set(["KubernetesNetworkConfig"]),
|
|
3512
|
-
"AWS::Athena::WorkGroup": new Set(["WorkGroupConfiguration"]),
|
|
3513
|
-
"AWS::KinesisVideo::Stream": new Set(["StreamStorageConfiguration"]),
|
|
3514
|
-
"AWS::MSK::Cluster": new Set(["EncryptionInfo"]),
|
|
3515
|
-
"AWS::ElasticBeanstalk::Application": new Set(["ResourceLifecycleConfig"])
|
|
3509
|
+
"AWS::EKS::Cluster": /* @__PURE__ */ new Set(["KubernetesNetworkConfig"]),
|
|
3510
|
+
"AWS::Athena::WorkGroup": /* @__PURE__ */ new Set(["WorkGroupConfiguration"]),
|
|
3511
|
+
"AWS::KinesisVideo::Stream": /* @__PURE__ */ new Set(["StreamStorageConfiguration"]),
|
|
3512
|
+
"AWS::MSK::Cluster": /* @__PURE__ */ new Set(["EncryptionInfo"]),
|
|
3513
|
+
"AWS::ElasticBeanstalk::Application": /* @__PURE__ */ new Set(["ResourceLifecycleConfig"])
|
|
3516
3514
|
};
|
|
3517
3515
|
const GENERATED_LOGICALID_PREFIX_PATHS = {
|
|
3518
|
-
"AWS::Cognito::UserPoolClient": new Set(["ClientName"]),
|
|
3519
|
-
"AWS::Cognito::IdentityPool": new Set(["IdentityPoolName"]),
|
|
3520
|
-
"AWS::Cognito::UserPool": new Set(["UserPoolName"]),
|
|
3521
|
-
"AWS::Batch::JobDefinition": new Set(["JobDefinitionName"]),
|
|
3522
|
-
"AWS::EC2::LaunchTemplate": new Set(["LaunchTemplateName"]),
|
|
3523
|
-
"AWS::WAFv2::WebACL": new Set(["Name"]),
|
|
3524
|
-
"AWS::WAFv2::RegexPatternSet": new Set(["Name"])
|
|
3516
|
+
"AWS::Cognito::UserPoolClient": /* @__PURE__ */ new Set(["ClientName"]),
|
|
3517
|
+
"AWS::Cognito::IdentityPool": /* @__PURE__ */ new Set(["IdentityPoolName"]),
|
|
3518
|
+
"AWS::Cognito::UserPool": /* @__PURE__ */ new Set(["UserPoolName"]),
|
|
3519
|
+
"AWS::Batch::JobDefinition": /* @__PURE__ */ new Set(["JobDefinitionName"]),
|
|
3520
|
+
"AWS::EC2::LaunchTemplate": /* @__PURE__ */ new Set(["LaunchTemplateName"]),
|
|
3521
|
+
"AWS::WAFv2::WebACL": /* @__PURE__ */ new Set(["Name"]),
|
|
3522
|
+
"AWS::WAFv2::RegexPatternSet": /* @__PURE__ */ new Set(["Name"])
|
|
3525
3523
|
};
|
|
3526
3524
|
const CFN_LOGICALID_RANDOM = /[-_][0-9A-Za-z]{12,}$/;
|
|
3527
3525
|
function isLogicalIdPrefixedGeneratedName(value, logicalId) {
|
|
3528
3526
|
return typeof value === "string" && (value.startsWith(`${logicalId}-`) || value.startsWith(`${logicalId}_`)) && CFN_LOGICALID_RANDOM.test(value);
|
|
3529
3527
|
}
|
|
3530
3528
|
const GENERATED_NESTED_PATHS = {
|
|
3531
|
-
"AWS::KMS::Key": new Set(["KeyPolicy.Id"]),
|
|
3532
|
-
"AWS::ECR::Repository": new Set(["LifecyclePolicy.RegistryId"]),
|
|
3533
|
-
"AWS::Lambda::Function": new Set(["LoggingConfig.LogGroup"]),
|
|
3534
|
-
"AWS::OpenSearchService::Domain": new Set(["EncryptionAtRestOptions.KmsKeyId"]),
|
|
3535
|
-
"AWS::ApiGateway::Stage": new Set(["CanarySetting.DeploymentId"]),
|
|
3536
|
-
"AWS::DynamoDB::Table": new Set(["SSESpecification.KMSMasterKeyId"]),
|
|
3537
|
-
"AWS::DynamoDB::GlobalTable": new Set(["Replicas.*.SSESpecification.KMSMasterKeyId"]),
|
|
3538
|
-
"AWS::AutoScaling::AutoScalingGroup": new Set(["LaunchTemplate.LaunchTemplateName", "MixedInstancesPolicy.LaunchTemplate.LaunchTemplateSpecification.LaunchTemplateName"]),
|
|
3539
|
-
"AWS::MSK::Cluster": new Set(["EncryptionInfo.EncryptionAtRest", "BrokerNodeGroupInfo.SecurityGroups"]),
|
|
3540
|
-
"AWS::ElasticBeanstalk::Application": new Set(["ResourceLifecycleConfig.ServiceRole"])
|
|
3529
|
+
"AWS::KMS::Key": /* @__PURE__ */ new Set(["KeyPolicy.Id"]),
|
|
3530
|
+
"AWS::ECR::Repository": /* @__PURE__ */ new Set(["LifecyclePolicy.RegistryId"]),
|
|
3531
|
+
"AWS::Lambda::Function": /* @__PURE__ */ new Set(["LoggingConfig.LogGroup"]),
|
|
3532
|
+
"AWS::OpenSearchService::Domain": /* @__PURE__ */ new Set(["EncryptionAtRestOptions.KmsKeyId"]),
|
|
3533
|
+
"AWS::ApiGateway::Stage": /* @__PURE__ */ new Set(["CanarySetting.DeploymentId"]),
|
|
3534
|
+
"AWS::DynamoDB::Table": /* @__PURE__ */ new Set(["SSESpecification.KMSMasterKeyId"]),
|
|
3535
|
+
"AWS::DynamoDB::GlobalTable": /* @__PURE__ */ new Set(["Replicas.*.SSESpecification.KMSMasterKeyId"]),
|
|
3536
|
+
"AWS::AutoScaling::AutoScalingGroup": /* @__PURE__ */ new Set(["LaunchTemplate.LaunchTemplateName", "MixedInstancesPolicy.LaunchTemplate.LaunchTemplateSpecification.LaunchTemplateName"]),
|
|
3537
|
+
"AWS::MSK::Cluster": /* @__PURE__ */ new Set(["EncryptionInfo.EncryptionAtRest", "BrokerNodeGroupInfo.SecurityGroups"]),
|
|
3538
|
+
"AWS::ElasticBeanstalk::Application": /* @__PURE__ */ new Set(["ResourceLifecycleConfig.ServiceRole"])
|
|
3541
3539
|
};
|
|
3542
3540
|
const EB_OPTION_DEFAULTS = {
|
|
3543
3541
|
"aws:autoscaling:asg|Availability Zones": "Any",
|
|
@@ -3632,7 +3630,7 @@ const EB_OPTION_DERIVED = {
|
|
|
3632
3630
|
LoadBalanced: "70"
|
|
3633
3631
|
}
|
|
3634
3632
|
};
|
|
3635
|
-
const EB_OPTION_VALUE_INDEPENDENT = new Set([
|
|
3633
|
+
const EB_OPTION_VALUE_INDEPENDENT = /* @__PURE__ */ new Set([
|
|
3636
3634
|
"aws:autoscaling:launchconfiguration|ImageId",
|
|
3637
3635
|
"aws:cloudformation:template:parameter|AppSource",
|
|
3638
3636
|
"aws:cloudformation:template:parameter|HooksPkgUrl",
|
|
@@ -3659,8 +3657,8 @@ function isAllEbGeneratedGroups(value, sgNamesById) {
|
|
|
3659
3657
|
return value.split(",").every((el) => isEbGeneratedGroup(el, sgNamesById));
|
|
3660
3658
|
}
|
|
3661
3659
|
const EB_INSTANCE_TYPES_DEFAULT_BY_ARCH = {
|
|
3662
|
-
x86_64: new Set(["t3.micro", "t3.small"]),
|
|
3663
|
-
arm64: new Set([
|
|
3660
|
+
x86_64: /* @__PURE__ */ new Set(["t3.micro", "t3.small"]),
|
|
3661
|
+
arm64: /* @__PURE__ */ new Set([
|
|
3664
3662
|
"t4g.micro",
|
|
3665
3663
|
"t4g.small",
|
|
3666
3664
|
"t4g.large"
|
|
@@ -3694,33 +3692,33 @@ function ebOptionSettingTier(namespace, optionName, value, envType, siblingOptio
|
|
|
3694
3692
|
return "undeclared";
|
|
3695
3693
|
}
|
|
3696
3694
|
const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
|
|
3697
|
-
"AWS::ApiGateway::ApiKey": new Set(["Value"]),
|
|
3698
|
-
"AWS::Backup::BackupVault": new Set(["EncryptionKeyArn"]),
|
|
3699
|
-
"AWS::Lambda::Version": new Set(["Description"]),
|
|
3700
|
-
"AWS::Batch::JobQueue": new Set(["JobQueueType"]),
|
|
3701
|
-
"AWS::ECS::Service": new Set(["AvailabilityZoneRebalancing", "PlatformVersion"]),
|
|
3702
|
-
"AWS::KinesisAnalyticsV2::Application": new Set(["ApplicationMaintenanceConfiguration"]),
|
|
3703
|
-
"AWS::ElasticBeanstalk::ConfigurationTemplate": new Set(["PlatformArn"]),
|
|
3704
|
-
"AWS::ElasticBeanstalk::Environment": new Set(["PlatformArn"]),
|
|
3705
|
-
"AWS::ElasticLoadBalancing::LoadBalancer": new Set(["AvailabilityZones"]),
|
|
3706
|
-
"AWS::AutoScaling::AutoScalingGroup": new Set([
|
|
3695
|
+
"AWS::ApiGateway::ApiKey": /* @__PURE__ */ new Set(["Value"]),
|
|
3696
|
+
"AWS::Backup::BackupVault": /* @__PURE__ */ new Set(["EncryptionKeyArn"]),
|
|
3697
|
+
"AWS::Lambda::Version": /* @__PURE__ */ new Set(["Description"]),
|
|
3698
|
+
"AWS::Batch::JobQueue": /* @__PURE__ */ new Set(["JobQueueType"]),
|
|
3699
|
+
"AWS::ECS::Service": /* @__PURE__ */ new Set(["AvailabilityZoneRebalancing", "PlatformVersion"]),
|
|
3700
|
+
"AWS::KinesisAnalyticsV2::Application": /* @__PURE__ */ new Set(["ApplicationMaintenanceConfiguration"]),
|
|
3701
|
+
"AWS::ElasticBeanstalk::ConfigurationTemplate": /* @__PURE__ */ new Set(["PlatformArn"]),
|
|
3702
|
+
"AWS::ElasticBeanstalk::Environment": /* @__PURE__ */ new Set(["PlatformArn"]),
|
|
3703
|
+
"AWS::ElasticLoadBalancing::LoadBalancer": /* @__PURE__ */ new Set(["AvailabilityZones"]),
|
|
3704
|
+
"AWS::AutoScaling::AutoScalingGroup": /* @__PURE__ */ new Set([
|
|
3707
3705
|
"AvailabilityZones",
|
|
3708
3706
|
"AvailabilityZoneIds",
|
|
3709
3707
|
"LifecycleHookSpecificationList"
|
|
3710
3708
|
]),
|
|
3711
|
-
"AWS::ApiGateway::Authorizer": new Set(["AuthType"]),
|
|
3712
|
-
"AWS::GuardDuty::Filter": new Set(["Rank"]),
|
|
3713
|
-
"AWS::DMS::Endpoint": new Set(["KmsKeyId"]),
|
|
3714
|
-
"AWS::DMS::ReplicationInstance": new Set([
|
|
3709
|
+
"AWS::ApiGateway::Authorizer": /* @__PURE__ */ new Set(["AuthType"]),
|
|
3710
|
+
"AWS::GuardDuty::Filter": /* @__PURE__ */ new Set(["Rank"]),
|
|
3711
|
+
"AWS::DMS::Endpoint": /* @__PURE__ */ new Set(["KmsKeyId"]),
|
|
3712
|
+
"AWS::DMS::ReplicationInstance": /* @__PURE__ */ new Set([
|
|
3715
3713
|
"EngineVersion",
|
|
3716
3714
|
"AvailabilityZone",
|
|
3717
3715
|
"PreferredMaintenanceWindow",
|
|
3718
3716
|
"KmsKeyId"
|
|
3719
3717
|
]),
|
|
3720
|
-
"AWS::DMS::ReplicationTask": new Set(["ReplicationTaskSettings"]),
|
|
3721
|
-
"AWS::DAX::Cluster": new Set(["PreferredMaintenanceWindow"]),
|
|
3722
|
-
"AWS::Lightsail::Instance": new Set(["AvailabilityZone"]),
|
|
3723
|
-
"AWS::RDS::DBCluster": new Set([
|
|
3718
|
+
"AWS::DMS::ReplicationTask": /* @__PURE__ */ new Set(["ReplicationTaskSettings"]),
|
|
3719
|
+
"AWS::DAX::Cluster": /* @__PURE__ */ new Set(["PreferredMaintenanceWindow"]),
|
|
3720
|
+
"AWS::Lightsail::Instance": /* @__PURE__ */ new Set(["AvailabilityZone"]),
|
|
3721
|
+
"AWS::RDS::DBCluster": /* @__PURE__ */ new Set([
|
|
3724
3722
|
"KmsKeyId",
|
|
3725
3723
|
"EngineVersion",
|
|
3726
3724
|
"PerformanceInsightsKmsKeyId",
|
|
@@ -3729,7 +3727,7 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
|
|
|
3729
3727
|
"PreferredBackupWindow",
|
|
3730
3728
|
"EngineLifecycleSupport"
|
|
3731
3729
|
]),
|
|
3732
|
-
"AWS::RDS::DBInstance": new Set([
|
|
3730
|
+
"AWS::RDS::DBInstance": /* @__PURE__ */ new Set([
|
|
3733
3731
|
"KmsKeyId",
|
|
3734
3732
|
"EngineVersion",
|
|
3735
3733
|
"PerformanceInsightsKMSKeyId",
|
|
@@ -3738,60 +3736,60 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
|
|
|
3738
3736
|
"PreferredBackupWindow",
|
|
3739
3737
|
"EngineLifecycleSupport"
|
|
3740
3738
|
]),
|
|
3741
|
-
"AWS::RDS::GlobalCluster": new Set(["EngineLifecycleSupport", "EngineVersion"]),
|
|
3742
|
-
"AWS::EKS::Cluster": new Set(["Version"]),
|
|
3743
|
-
"AWS::EKS::Addon": new Set(["AddonVersion"]),
|
|
3744
|
-
"AWS::Glue::Job": new Set([
|
|
3739
|
+
"AWS::RDS::GlobalCluster": /* @__PURE__ */ new Set(["EngineLifecycleSupport", "EngineVersion"]),
|
|
3740
|
+
"AWS::EKS::Cluster": /* @__PURE__ */ new Set(["Version"]),
|
|
3741
|
+
"AWS::EKS::Addon": /* @__PURE__ */ new Set(["AddonVersion"]),
|
|
3742
|
+
"AWS::Glue::Job": /* @__PURE__ */ new Set([
|
|
3745
3743
|
"MaxCapacity",
|
|
3746
3744
|
"AllocatedCapacity",
|
|
3747
3745
|
"GlueVersion",
|
|
3748
3746
|
"WorkerType",
|
|
3749
3747
|
"NumberOfWorkers"
|
|
3750
3748
|
]),
|
|
3751
|
-
"AWS::EC2::SecurityGroupIngress": new Set(["SourceSecurityGroupName"]),
|
|
3752
|
-
"AWS::EC2::SecurityGroupEgress": new Set(["DestinationSecurityGroupName"]),
|
|
3753
|
-
"AWS::DocDB::DBCluster": new Set([
|
|
3749
|
+
"AWS::EC2::SecurityGroupIngress": /* @__PURE__ */ new Set(["SourceSecurityGroupName"]),
|
|
3750
|
+
"AWS::EC2::SecurityGroupEgress": /* @__PURE__ */ new Set(["DestinationSecurityGroupName"]),
|
|
3751
|
+
"AWS::DocDB::DBCluster": /* @__PURE__ */ new Set([
|
|
3754
3752
|
"PreferredMaintenanceWindow",
|
|
3755
3753
|
"PreferredBackupWindow",
|
|
3756
3754
|
"EngineVersion",
|
|
3757
3755
|
"KmsKeyId"
|
|
3758
3756
|
]),
|
|
3759
|
-
"AWS::DocDB::DBInstance": new Set(["PreferredMaintenanceWindow"]),
|
|
3760
|
-
"AWS::Neptune::DBCluster": new Set([
|
|
3757
|
+
"AWS::DocDB::DBInstance": /* @__PURE__ */ new Set(["PreferredMaintenanceWindow"]),
|
|
3758
|
+
"AWS::Neptune::DBCluster": /* @__PURE__ */ new Set([
|
|
3761
3759
|
"PreferredMaintenanceWindow",
|
|
3762
3760
|
"PreferredBackupWindow",
|
|
3763
3761
|
"EngineVersion",
|
|
3764
3762
|
"AvailabilityZones"
|
|
3765
3763
|
]),
|
|
3766
|
-
"AWS::Neptune::DBInstance": new Set(["PreferredMaintenanceWindow", "AvailabilityZone"]),
|
|
3767
|
-
"AWS::ElastiCache::CacheCluster": new Set([
|
|
3764
|
+
"AWS::Neptune::DBInstance": /* @__PURE__ */ new Set(["PreferredMaintenanceWindow", "AvailabilityZone"]),
|
|
3765
|
+
"AWS::ElastiCache::CacheCluster": /* @__PURE__ */ new Set([
|
|
3768
3766
|
"PreferredMaintenanceWindow",
|
|
3769
3767
|
"SnapshotWindow",
|
|
3770
3768
|
"PreferredAvailabilityZones",
|
|
3771
3769
|
"EngineVersion"
|
|
3772
3770
|
]),
|
|
3773
|
-
"AWS::ElastiCache::ReplicationGroup": new Set([
|
|
3771
|
+
"AWS::ElastiCache::ReplicationGroup": /* @__PURE__ */ new Set([
|
|
3774
3772
|
"PreferredMaintenanceWindow",
|
|
3775
3773
|
"SnapshotWindow",
|
|
3776
3774
|
"EngineVersion"
|
|
3777
3775
|
]),
|
|
3778
|
-
"AWS::ElastiCache::ServerlessCache": new Set(["DailySnapshotTime", "MajorEngineVersion"]),
|
|
3779
|
-
"AWS::MemoryDB::Cluster": new Set([
|
|
3776
|
+
"AWS::ElastiCache::ServerlessCache": /* @__PURE__ */ new Set(["DailySnapshotTime", "MajorEngineVersion"]),
|
|
3777
|
+
"AWS::MemoryDB::Cluster": /* @__PURE__ */ new Set([
|
|
3780
3778
|
"MaintenanceWindow",
|
|
3781
3779
|
"SnapshotWindow",
|
|
3782
3780
|
"EngineVersion"
|
|
3783
3781
|
]),
|
|
3784
|
-
"AWS::Redshift::Cluster": new Set([
|
|
3782
|
+
"AWS::Redshift::Cluster": /* @__PURE__ */ new Set([
|
|
3785
3783
|
"PreferredMaintenanceWindow",
|
|
3786
3784
|
"AvailabilityZone",
|
|
3787
3785
|
"ClusterVersion"
|
|
3788
3786
|
]),
|
|
3789
|
-
"AWS::OpenSearchService::Domain": new Set(["OffPeakWindowOptions", "EngineVersion"]),
|
|
3790
|
-
"AWS::AmazonMQ::Broker": new Set(["MaintenanceWindowStartTime", "SubnetIds"]),
|
|
3791
|
-
"AWS::EC2::InstanceConnectEndpoint": new Set(["SecurityGroupIds"]),
|
|
3792
|
-
"AWS::EC2::EIPAssociation": new Set(["PrivateIpAddress", "EIP"]),
|
|
3793
|
-
"AWS::EC2::CapacityReservation": new Set(["AvailabilityZoneId"]),
|
|
3794
|
-
"AWS::EC2::Instance": new Set([
|
|
3787
|
+
"AWS::OpenSearchService::Domain": /* @__PURE__ */ new Set(["OffPeakWindowOptions", "EngineVersion"]),
|
|
3788
|
+
"AWS::AmazonMQ::Broker": /* @__PURE__ */ new Set(["MaintenanceWindowStartTime", "SubnetIds"]),
|
|
3789
|
+
"AWS::EC2::InstanceConnectEndpoint": /* @__PURE__ */ new Set(["SecurityGroupIds"]),
|
|
3790
|
+
"AWS::EC2::EIPAssociation": /* @__PURE__ */ new Set(["PrivateIpAddress", "EIP"]),
|
|
3791
|
+
"AWS::EC2::CapacityReservation": /* @__PURE__ */ new Set(["AvailabilityZoneId"]),
|
|
3792
|
+
"AWS::EC2::Instance": /* @__PURE__ */ new Set([
|
|
3795
3793
|
"PrivateIpAddress",
|
|
3796
3794
|
"CpuOptions",
|
|
3797
3795
|
"SubnetId",
|
|
@@ -3800,41 +3798,41 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
|
|
|
3800
3798
|
"Volumes",
|
|
3801
3799
|
"BlockDeviceMappings"
|
|
3802
3800
|
]),
|
|
3803
|
-
"AWS::EC2::NetworkInterface": new Set(["PrivateIpAddress", "PrivateIpAddresses"]),
|
|
3804
|
-
"AWS::EC2::Volume": new Set(["KmsKeyId", "AvailabilityZoneId"]),
|
|
3805
|
-
"AWS::EC2::NatGateway": new Set(["PrivateIpAddress", "VpcId"]),
|
|
3806
|
-
"AWS::EFS::MountTarget": new Set(["IpAddress"]),
|
|
3807
|
-
"AWS::EC2::EIP": new Set(["NetworkBorderGroup"]),
|
|
3808
|
-
"AWS::EFS::FileSystem": new Set(["KmsKeyId"]),
|
|
3809
|
-
"AWS::EC2::SecurityGroup": new Set(["VpcId"]),
|
|
3810
|
-
"AWS::GlobalAccelerator::Accelerator": new Set(["IpAddresses"]),
|
|
3811
|
-
"AWS::EC2::VPCEndpoint": new Set(["ServiceRegion", "DnsOptions"]),
|
|
3812
|
-
"AWS::EC2::VPCPeeringConnection": new Set(["PeerRegion"]),
|
|
3813
|
-
"AWS::EC2::VPCCidrBlock": new Set(["Ipv6CidrBlock", "Ipv6CidrBlockNetworkBorderGroup"]),
|
|
3814
|
-
"AWS::Grafana::Workspace": new Set(["GrafanaVersion"]),
|
|
3815
|
-
"AWS::Bedrock::AgentAlias": new Set(["RoutingConfiguration"]),
|
|
3816
|
-
"AWS::AppSync::ApiKey": new Set(["Expires"]),
|
|
3817
|
-
"AWS::AppConfig::ExtensionAssociation": new Set(["ExtensionVersionNumber"]),
|
|
3818
|
-
"AWS::StepFunctions::StateMachineVersion": new Set(["StateMachineRevisionId"]),
|
|
3819
|
-
"AWS::StepFunctions::StateMachineAlias": new Set(["StateMachineArn"]),
|
|
3820
|
-
"AWS::AutoScaling::ScheduledAction": new Set(["StartTime"]),
|
|
3821
|
-
"AWS::CloudFormation::Stack": new Set(["TemplateBody", "Capabilities"]),
|
|
3822
|
-
"AWS::CloudFormation::StackSet": new Set(["TemplateBody"]),
|
|
3823
|
-
"AWS::SageMaker::MonitoringSchedule": new Set([
|
|
3801
|
+
"AWS::EC2::NetworkInterface": /* @__PURE__ */ new Set(["PrivateIpAddress", "PrivateIpAddresses"]),
|
|
3802
|
+
"AWS::EC2::Volume": /* @__PURE__ */ new Set(["KmsKeyId", "AvailabilityZoneId"]),
|
|
3803
|
+
"AWS::EC2::NatGateway": /* @__PURE__ */ new Set(["PrivateIpAddress", "VpcId"]),
|
|
3804
|
+
"AWS::EFS::MountTarget": /* @__PURE__ */ new Set(["IpAddress"]),
|
|
3805
|
+
"AWS::EC2::EIP": /* @__PURE__ */ new Set(["NetworkBorderGroup"]),
|
|
3806
|
+
"AWS::EFS::FileSystem": /* @__PURE__ */ new Set(["KmsKeyId"]),
|
|
3807
|
+
"AWS::EC2::SecurityGroup": /* @__PURE__ */ new Set(["VpcId"]),
|
|
3808
|
+
"AWS::GlobalAccelerator::Accelerator": /* @__PURE__ */ new Set(["IpAddresses"]),
|
|
3809
|
+
"AWS::EC2::VPCEndpoint": /* @__PURE__ */ new Set(["ServiceRegion", "DnsOptions"]),
|
|
3810
|
+
"AWS::EC2::VPCPeeringConnection": /* @__PURE__ */ new Set(["PeerRegion"]),
|
|
3811
|
+
"AWS::EC2::VPCCidrBlock": /* @__PURE__ */ new Set(["Ipv6CidrBlock", "Ipv6CidrBlockNetworkBorderGroup"]),
|
|
3812
|
+
"AWS::Grafana::Workspace": /* @__PURE__ */ new Set(["GrafanaVersion"]),
|
|
3813
|
+
"AWS::Bedrock::AgentAlias": /* @__PURE__ */ new Set(["RoutingConfiguration"]),
|
|
3814
|
+
"AWS::AppSync::ApiKey": /* @__PURE__ */ new Set(["Expires"]),
|
|
3815
|
+
"AWS::AppConfig::ExtensionAssociation": /* @__PURE__ */ new Set(["ExtensionVersionNumber"]),
|
|
3816
|
+
"AWS::StepFunctions::StateMachineVersion": /* @__PURE__ */ new Set(["StateMachineRevisionId"]),
|
|
3817
|
+
"AWS::StepFunctions::StateMachineAlias": /* @__PURE__ */ new Set(["StateMachineArn"]),
|
|
3818
|
+
"AWS::AutoScaling::ScheduledAction": /* @__PURE__ */ new Set(["StartTime"]),
|
|
3819
|
+
"AWS::CloudFormation::Stack": /* @__PURE__ */ new Set(["TemplateBody", "Capabilities"]),
|
|
3820
|
+
"AWS::CloudFormation::StackSet": /* @__PURE__ */ new Set(["TemplateBody"]),
|
|
3821
|
+
"AWS::SageMaker::MonitoringSchedule": /* @__PURE__ */ new Set([
|
|
3824
3822
|
"MonitoringScheduleStatus",
|
|
3825
3823
|
"LastMonitoringExecutionSummary",
|
|
3826
3824
|
"FailureReason"
|
|
3827
3825
|
])
|
|
3828
3826
|
};
|
|
3829
3827
|
const VALUE_INDEPENDENT_DEFAULT_NESTED_PATHS = {
|
|
3830
|
-
"AWS::Batch::ComputeEnvironment": new Set(["ComputeResources.DesiredvCpus"]),
|
|
3831
|
-
"AWS::Cognito::UserPoolIdentityProvider": new Set([
|
|
3828
|
+
"AWS::Batch::ComputeEnvironment": /* @__PURE__ */ new Set(["ComputeResources.DesiredvCpus"]),
|
|
3829
|
+
"AWS::Cognito::UserPoolIdentityProvider": /* @__PURE__ */ new Set([
|
|
3832
3830
|
"ProviderDetails.SSORedirectBindingURI",
|
|
3833
3831
|
"ProviderDetails.SLORedirectBindingURI",
|
|
3834
3832
|
"ProviderDetails.ActiveEncryptionCertificate"
|
|
3835
3833
|
]),
|
|
3836
|
-
"AWS::DLM::LifecyclePolicy": new Set(["PolicyDetails.Schedules.*.CreateRule.Times"]),
|
|
3837
|
-
"AWS::AutoScaling::AutoScalingGroup": new Set(["Tags.*.ResourceId", "Tags.*.ResourceType"])
|
|
3834
|
+
"AWS::DLM::LifecyclePolicy": /* @__PURE__ */ new Set(["PolicyDetails.Schedules.*.CreateRule.Times"]),
|
|
3835
|
+
"AWS::AutoScaling::AutoScalingGroup": /* @__PURE__ */ new Set(["Tags.*.ResourceId", "Tags.*.ResourceType"])
|
|
3838
3836
|
};
|
|
3839
3837
|
function isPhysicalIdSegment(value, physicalId) {
|
|
3840
3838
|
if (typeof value !== "string" || physicalId === void 0) return false;
|
|
@@ -3863,7 +3861,7 @@ function resolveGeneratedDefault(resourceType, physicalId) {
|
|
|
3863
3861
|
function stripAwsTagsDeep(v) {
|
|
3864
3862
|
return stripTagsWalk(v, false, void 0);
|
|
3865
3863
|
}
|
|
3866
|
-
const AWS_TAG_FILTER_PROPS = new Set([
|
|
3864
|
+
const AWS_TAG_FILTER_PROPS = /* @__PURE__ */ new Set([
|
|
3867
3865
|
"TagFilters",
|
|
3868
3866
|
"Ec2TagFilters",
|
|
3869
3867
|
"Ec2TagSet",
|
|
@@ -3913,13 +3911,13 @@ function stripAsymmetricIdentityFields(declared, live) {
|
|
|
3913
3911
|
}
|
|
3914
3912
|
}
|
|
3915
3913
|
const ORDER_SIGNIFICANT_ARRAY_KEYS = {
|
|
3916
|
-
"AWS::CodePipeline::Pipeline": new Set(["Stages", "Actions"]),
|
|
3917
|
-
"AWS::Logs::Transformer": new Set(["TransformerConfig"]),
|
|
3918
|
-
"AWS::SSMContacts::Plan": new Set(["Stages"])
|
|
3914
|
+
"AWS::CodePipeline::Pipeline": /* @__PURE__ */ new Set(["Stages", "Actions"]),
|
|
3915
|
+
"AWS::Logs::Transformer": /* @__PURE__ */ new Set(["TransformerConfig"]),
|
|
3916
|
+
"AWS::SSMContacts::Plan": /* @__PURE__ */ new Set(["Stages"])
|
|
3919
3917
|
};
|
|
3920
3918
|
const ORDER_SIGNIFICANT_PATHS = {
|
|
3921
|
-
"AWS::Scheduler::Schedule": new Set(["Target.EcsParameters.PlacementStrategy"]),
|
|
3922
|
-
"AWS::AppSync::Resolver": new Set(["PipelineConfig.Functions"])
|
|
3919
|
+
"AWS::Scheduler::Schedule": /* @__PURE__ */ new Set(["Target.EcsParameters.PlacementStrategy"]),
|
|
3920
|
+
"AWS::AppSync::Resolver": /* @__PURE__ */ new Set(["PipelineConfig.Functions"])
|
|
3923
3921
|
};
|
|
3924
3922
|
function canonicalizeTagListsDeep(v, orderSig) {
|
|
3925
3923
|
return canonicalizeTagLists(v, orderSig, void 0);
|
|
@@ -4084,15 +4082,15 @@ function isJsonStringStructEqual(a, b) {
|
|
|
4084
4082
|
}
|
|
4085
4083
|
return false;
|
|
4086
4084
|
}
|
|
4087
|
-
const JSON_STRING_PROPS = { "AWS::Config::ConfigRule": new Set(["InputParameters"]) };
|
|
4085
|
+
const JSON_STRING_PROPS = { "AWS::Config::ConfigRule": /* @__PURE__ */ new Set(["InputParameters"]) };
|
|
4088
4086
|
const JSON_STRING_DEFAULT_FILLS = { "AWS::CE::CostCategory": { Rules: { Type: "REGULAR" } } };
|
|
4089
4087
|
const CASE_INSENSITIVE_PATHS = {
|
|
4090
|
-
"AWS::Route53::RecordSet": new Set(["Name", "AliasTarget.DNSName"]),
|
|
4091
|
-
"AWS::Route53::RecordSetGroup": new Set(["RecordSets.*.Name", "RecordSets.*.AliasTarget.DNSName"]),
|
|
4092
|
-
"AWS::Batch::ComputeEnvironment": new Set(["Type"]),
|
|
4093
|
-
"AWS::Batch::JobDefinition": new Set(["Type"]),
|
|
4094
|
-
"AWS::EMRServerless::Application": new Set(["Type"]),
|
|
4095
|
-
"AWS::RDS::DBInstance": new Set([
|
|
4088
|
+
"AWS::Route53::RecordSet": /* @__PURE__ */ new Set(["Name", "AliasTarget.DNSName"]),
|
|
4089
|
+
"AWS::Route53::RecordSetGroup": /* @__PURE__ */ new Set(["RecordSets.*.Name", "RecordSets.*.AliasTarget.DNSName"]),
|
|
4090
|
+
"AWS::Batch::ComputeEnvironment": /* @__PURE__ */ new Set(["Type"]),
|
|
4091
|
+
"AWS::Batch::JobDefinition": /* @__PURE__ */ new Set(["Type"]),
|
|
4092
|
+
"AWS::EMRServerless::Application": /* @__PURE__ */ new Set(["Type"]),
|
|
4093
|
+
"AWS::RDS::DBInstance": /* @__PURE__ */ new Set([
|
|
4096
4094
|
"DBInstanceIdentifier",
|
|
4097
4095
|
"DBParameterGroupName",
|
|
4098
4096
|
"DBSubnetGroupName",
|
|
@@ -4100,89 +4098,89 @@ const CASE_INSENSITIVE_PATHS = {
|
|
|
4100
4098
|
"DBClusterIdentifier",
|
|
4101
4099
|
"Engine"
|
|
4102
4100
|
]),
|
|
4103
|
-
"AWS::RDS::DBCluster": new Set([
|
|
4101
|
+
"AWS::RDS::DBCluster": /* @__PURE__ */ new Set([
|
|
4104
4102
|
"DBClusterIdentifier",
|
|
4105
4103
|
"DBClusterParameterGroupName",
|
|
4106
4104
|
"DBSubnetGroupName",
|
|
4107
4105
|
"Engine",
|
|
4108
4106
|
"GlobalClusterIdentifier"
|
|
4109
4107
|
]),
|
|
4110
|
-
"AWS::RDS::GlobalCluster": new Set(["GlobalClusterIdentifier", "Engine"]),
|
|
4111
|
-
"AWS::ElastiCache::SubnetGroup": new Set(["CacheSubnetGroupName"]),
|
|
4112
|
-
"AWS::ElastiCache::ReplicationGroup": new Set([
|
|
4108
|
+
"AWS::RDS::GlobalCluster": /* @__PURE__ */ new Set(["GlobalClusterIdentifier", "Engine"]),
|
|
4109
|
+
"AWS::ElastiCache::SubnetGroup": /* @__PURE__ */ new Set(["CacheSubnetGroupName"]),
|
|
4110
|
+
"AWS::ElastiCache::ReplicationGroup": /* @__PURE__ */ new Set([
|
|
4113
4111
|
"ReplicationGroupId",
|
|
4114
4112
|
"CacheSubnetGroupName",
|
|
4115
4113
|
"CacheParameterGroupName"
|
|
4116
4114
|
]),
|
|
4117
|
-
"AWS::ElastiCache::CacheCluster": new Set([
|
|
4115
|
+
"AWS::ElastiCache::CacheCluster": /* @__PURE__ */ new Set([
|
|
4118
4116
|
"ClusterName",
|
|
4119
4117
|
"CacheSubnetGroupName",
|
|
4120
4118
|
"CacheParameterGroupName"
|
|
4121
4119
|
]),
|
|
4122
|
-
"AWS::ElastiCache::ServerlessCache": new Set(["ServerlessCacheName", "UserGroupId"]),
|
|
4123
|
-
"AWS::Route53Resolver::ResolverRule": new Set(["DomainName"]),
|
|
4124
|
-
"AWS::DocDB::DBCluster": new Set([
|
|
4120
|
+
"AWS::ElastiCache::ServerlessCache": /* @__PURE__ */ new Set(["ServerlessCacheName", "UserGroupId"]),
|
|
4121
|
+
"AWS::Route53Resolver::ResolverRule": /* @__PURE__ */ new Set(["DomainName"]),
|
|
4122
|
+
"AWS::DocDB::DBCluster": /* @__PURE__ */ new Set([
|
|
4125
4123
|
"DBClusterIdentifier",
|
|
4126
4124
|
"DBSubnetGroupName",
|
|
4127
4125
|
"DBClusterParameterGroupName"
|
|
4128
4126
|
]),
|
|
4129
|
-
"AWS::DocDB::DBInstance": new Set(["DBInstanceIdentifier", "DBClusterIdentifier"]),
|
|
4130
|
-
"AWS::DocDB::DBSubnetGroup": new Set(["DBSubnetGroupName"]),
|
|
4131
|
-
"AWS::Neptune::DBCluster": new Set([
|
|
4127
|
+
"AWS::DocDB::DBInstance": /* @__PURE__ */ new Set(["DBInstanceIdentifier", "DBClusterIdentifier"]),
|
|
4128
|
+
"AWS::DocDB::DBSubnetGroup": /* @__PURE__ */ new Set(["DBSubnetGroupName"]),
|
|
4129
|
+
"AWS::Neptune::DBCluster": /* @__PURE__ */ new Set([
|
|
4132
4130
|
"DBClusterIdentifier",
|
|
4133
4131
|
"DBSubnetGroupName",
|
|
4134
4132
|
"DBClusterParameterGroupName"
|
|
4135
4133
|
]),
|
|
4136
|
-
"AWS::Neptune::DBInstance": new Set([
|
|
4134
|
+
"AWS::Neptune::DBInstance": /* @__PURE__ */ new Set([
|
|
4137
4135
|
"DBInstanceIdentifier",
|
|
4138
4136
|
"DBClusterIdentifier",
|
|
4139
4137
|
"DBParameterGroupName",
|
|
4140
4138
|
"DBSubnetGroupName"
|
|
4141
4139
|
]),
|
|
4142
|
-
"AWS::Neptune::DBSubnetGroup": new Set(["DBSubnetGroupName"]),
|
|
4143
|
-
"AWS::RDS::DBParameterGroup": new Set(["DBParameterGroupName", "Family"]),
|
|
4144
|
-
"AWS::RDS::DBClusterParameterGroup": new Set(["DBClusterParameterGroupName", "Family"]),
|
|
4145
|
-
"AWS::RDS::OptionGroup": new Set(["OptionGroupName", "EngineName"]),
|
|
4146
|
-
"AWS::RDS::DBSubnetGroup": new Set(["DBSubnetGroupName"]),
|
|
4147
|
-
"AWS::Neptune::DBParameterGroup": new Set(["Name"]),
|
|
4148
|
-
"AWS::Neptune::DBClusterParameterGroup": new Set(["Name"]),
|
|
4149
|
-
"AWS::DocDB::DBClusterParameterGroup": new Set(["Name"]),
|
|
4150
|
-
"AWS::Redshift::ClusterParameterGroup": new Set(["ParameterGroupName"]),
|
|
4151
|
-
"AWS::Redshift::Cluster": new Set([
|
|
4140
|
+
"AWS::Neptune::DBSubnetGroup": /* @__PURE__ */ new Set(["DBSubnetGroupName"]),
|
|
4141
|
+
"AWS::RDS::DBParameterGroup": /* @__PURE__ */ new Set(["DBParameterGroupName", "Family"]),
|
|
4142
|
+
"AWS::RDS::DBClusterParameterGroup": /* @__PURE__ */ new Set(["DBClusterParameterGroupName", "Family"]),
|
|
4143
|
+
"AWS::RDS::OptionGroup": /* @__PURE__ */ new Set(["OptionGroupName", "EngineName"]),
|
|
4144
|
+
"AWS::RDS::DBSubnetGroup": /* @__PURE__ */ new Set(["DBSubnetGroupName"]),
|
|
4145
|
+
"AWS::Neptune::DBParameterGroup": /* @__PURE__ */ new Set(["Name"]),
|
|
4146
|
+
"AWS::Neptune::DBClusterParameterGroup": /* @__PURE__ */ new Set(["Name"]),
|
|
4147
|
+
"AWS::DocDB::DBClusterParameterGroup": /* @__PURE__ */ new Set(["Name"]),
|
|
4148
|
+
"AWS::Redshift::ClusterParameterGroup": /* @__PURE__ */ new Set(["ParameterGroupName"]),
|
|
4149
|
+
"AWS::Redshift::Cluster": /* @__PURE__ */ new Set([
|
|
4152
4150
|
"ClusterIdentifier",
|
|
4153
4151
|
"ClusterParameterGroupName",
|
|
4154
4152
|
"ClusterSubnetGroupName"
|
|
4155
4153
|
]),
|
|
4156
|
-
"AWS::DMS::ReplicationInstance": new Set(["ReplicationInstanceIdentifier", "ReplicationSubnetGroupIdentifier"]),
|
|
4157
|
-
"AWS::DMS::ReplicationSubnetGroup": new Set(["ReplicationSubnetGroupIdentifier"]),
|
|
4158
|
-
"AWS::DAX::ParameterGroup": new Set(["ParameterGroupName"]),
|
|
4159
|
-
"AWS::DAX::SubnetGroup": new Set(["SubnetGroupName"]),
|
|
4160
|
-
"AWS::DAX::Cluster": new Set([
|
|
4154
|
+
"AWS::DMS::ReplicationInstance": /* @__PURE__ */ new Set(["ReplicationInstanceIdentifier", "ReplicationSubnetGroupIdentifier"]),
|
|
4155
|
+
"AWS::DMS::ReplicationSubnetGroup": /* @__PURE__ */ new Set(["ReplicationSubnetGroupIdentifier"]),
|
|
4156
|
+
"AWS::DAX::ParameterGroup": /* @__PURE__ */ new Set(["ParameterGroupName"]),
|
|
4157
|
+
"AWS::DAX::SubnetGroup": /* @__PURE__ */ new Set(["SubnetGroupName"]),
|
|
4158
|
+
"AWS::DAX::Cluster": /* @__PURE__ */ new Set([
|
|
4161
4159
|
"ClusterName",
|
|
4162
4160
|
"ParameterGroupName",
|
|
4163
4161
|
"SubnetGroupName"
|
|
4164
4162
|
]),
|
|
4165
|
-
"AWS::CertificateManager::Certificate": new Set(["DomainName"]),
|
|
4166
|
-
"AWS::DMS::Endpoint": new Set(["EndpointType", "EndpointIdentifier"]),
|
|
4167
|
-
"AWS::WAFv2::LoggingConfiguration": new Set(["RedactedFields.*.SingleHeader.Name"]),
|
|
4168
|
-
"AWS::ElasticLoadBalancing::LoadBalancer": new Set(["Listeners.*.Protocol", "Listeners.*.InstanceProtocol"]),
|
|
4169
|
-
"AWS::EC2::SecurityGroup": new Set(["SecurityGroupIngress.*.IpProtocol", "SecurityGroupEgress.*.IpProtocol"]),
|
|
4170
|
-
"AWS::EC2::SecurityGroupIngress": new Set(["IpProtocol"]),
|
|
4171
|
-
"AWS::EC2::SecurityGroupEgress": new Set(["IpProtocol"])
|
|
4163
|
+
"AWS::CertificateManager::Certificate": /* @__PURE__ */ new Set(["DomainName"]),
|
|
4164
|
+
"AWS::DMS::Endpoint": /* @__PURE__ */ new Set(["EndpointType", "EndpointIdentifier"]),
|
|
4165
|
+
"AWS::WAFv2::LoggingConfiguration": /* @__PURE__ */ new Set(["RedactedFields.*.SingleHeader.Name"]),
|
|
4166
|
+
"AWS::ElasticLoadBalancing::LoadBalancer": /* @__PURE__ */ new Set(["Listeners.*.Protocol", "Listeners.*.InstanceProtocol"]),
|
|
4167
|
+
"AWS::EC2::SecurityGroup": /* @__PURE__ */ new Set(["SecurityGroupIngress.*.IpProtocol", "SecurityGroupEgress.*.IpProtocol"]),
|
|
4168
|
+
"AWS::EC2::SecurityGroupIngress": /* @__PURE__ */ new Set(["IpProtocol"]),
|
|
4169
|
+
"AWS::EC2::SecurityGroupEgress": /* @__PURE__ */ new Set(["IpProtocol"])
|
|
4172
4170
|
};
|
|
4173
4171
|
function isCaseInsensitiveScalarEqual(a, b) {
|
|
4174
4172
|
return typeof a === "string" && typeof b === "string" && a.toLowerCase() === b.toLowerCase();
|
|
4175
4173
|
}
|
|
4176
4174
|
const BOOLEAN_PARAM_MAP_PATHS = {
|
|
4177
|
-
"AWS::RDS::DBClusterParameterGroup": new Set(["Parameters"]),
|
|
4178
|
-
"AWS::RDS::DBParameterGroup": new Set(["Parameters"])
|
|
4175
|
+
"AWS::RDS::DBClusterParameterGroup": /* @__PURE__ */ new Set(["Parameters"]),
|
|
4176
|
+
"AWS::RDS::DBParameterGroup": /* @__PURE__ */ new Set(["Parameters"])
|
|
4179
4177
|
};
|
|
4180
|
-
const BOOL_TRUE_TOKENS = new Set([
|
|
4178
|
+
const BOOL_TRUE_TOKENS = /* @__PURE__ */ new Set([
|
|
4181
4179
|
"on",
|
|
4182
4180
|
"1",
|
|
4183
4181
|
"true"
|
|
4184
4182
|
]);
|
|
4185
|
-
const BOOL_FALSE_TOKENS = new Set([
|
|
4183
|
+
const BOOL_FALSE_TOKENS = /* @__PURE__ */ new Set([
|
|
4186
4184
|
"off",
|
|
4187
4185
|
"0",
|
|
4188
4186
|
"false"
|
|
@@ -4197,7 +4195,7 @@ function isBooleanTokenEquivalent(a, b) {
|
|
|
4197
4195
|
const ta = tok(a);
|
|
4198
4196
|
return ta !== void 0 && ta === tok(b);
|
|
4199
4197
|
}
|
|
4200
|
-
const CASE_INSENSITIVE_KEY_PATHS = { "AWS::DataBrew::Recipe": new Set(["Steps[].Action.Parameters"]) };
|
|
4198
|
+
const CASE_INSENSITIVE_KEY_PATHS = { "AWS::DataBrew::Recipe": /* @__PURE__ */ new Set(["Steps[].Action.Parameters"]) };
|
|
4201
4199
|
const GUARDDUTY_CONDITION_KEY_ALIASES = {
|
|
4202
4200
|
Eq: "Equals",
|
|
4203
4201
|
Neq: "NotEquals",
|
|
@@ -4298,7 +4296,7 @@ function canonicalizeWafFieldNameSelector(obj) {
|
|
|
4298
4296
|
else out[k] = normalizeWafByteMatchDeep(v);
|
|
4299
4297
|
return out;
|
|
4300
4298
|
}
|
|
4301
|
-
const SSH_PUBLIC_KEY_PATHS = { "AWS::EC2::KeyPair": new Set(["PublicKeyMaterial"]) };
|
|
4299
|
+
const SSH_PUBLIC_KEY_PATHS = { "AWS::EC2::KeyPair": /* @__PURE__ */ new Set(["PublicKeyMaterial"]) };
|
|
4302
4300
|
function isSshPublicKeyEqual(a, b) {
|
|
4303
4301
|
if (typeof a !== "string" || typeof b !== "string") return false;
|
|
4304
4302
|
const material = (s) => {
|
|
@@ -4314,8 +4312,8 @@ function isSshPublicKeyEqual(a, b) {
|
|
|
4314
4312
|
return ma !== void 0 && ma === material(b);
|
|
4315
4313
|
}
|
|
4316
4314
|
const ACCESS_STRING_PATHS = {
|
|
4317
|
-
"AWS::ElastiCache::User": new Set(["AccessString"]),
|
|
4318
|
-
"AWS::MemoryDB::User": new Set(["AccessString"])
|
|
4315
|
+
"AWS::ElastiCache::User": /* @__PURE__ */ new Set(["AccessString"]),
|
|
4316
|
+
"AWS::MemoryDB::User": /* @__PURE__ */ new Set(["AccessString"])
|
|
4319
4317
|
};
|
|
4320
4318
|
function isAccessStringEqual(a, b) {
|
|
4321
4319
|
if (typeof a !== "string" || typeof b !== "string") return false;
|
|
@@ -4340,7 +4338,7 @@ function isAccessStringEqual(a, b) {
|
|
|
4340
4338
|
const nb = drop(tb, -surplus);
|
|
4341
4339
|
return na.length === nb.length && na.every((t, i) => t === nb[i]);
|
|
4342
4340
|
}
|
|
4343
|
-
const PROPERTIES_FILE_PATHS = { "AWS::MSK::Configuration": new Set(["ServerProperties"]) };
|
|
4341
|
+
const PROPERTIES_FILE_PATHS = { "AWS::MSK::Configuration": /* @__PURE__ */ new Set(["ServerProperties"]) };
|
|
4344
4342
|
function isPropertiesFileEqual(a, b) {
|
|
4345
4343
|
if (typeof a !== "string" || typeof b !== "string") return false;
|
|
4346
4344
|
const parse = (s) => {
|
|
@@ -4361,12 +4359,12 @@ function isPropertiesFileEqual(a, b) {
|
|
|
4361
4359
|
return true;
|
|
4362
4360
|
}
|
|
4363
4361
|
const CASE_INSENSITIVE_ARRAY_PATHS = {
|
|
4364
|
-
"AWS::ApiGatewayV2::Api": new Set(["CorsConfiguration.AllowHeaders", "CorsConfiguration.ExposeHeaders"]),
|
|
4365
|
-
"AWS::Lambda::Url": new Set(["Cors.AllowHeaders", "Cors.ExposeHeaders"]),
|
|
4366
|
-
"AWS::CertificateManager::Certificate": new Set(["SubjectAlternativeNames"]),
|
|
4367
|
-
"AWS::SES::ConfigurationSetEventDestination": new Set(["EventDestination.MatchingEventTypes"]),
|
|
4368
|
-
"AWS::ElastiCache::UserGroup": new Set(["UserIds"]),
|
|
4369
|
-
"AWS::ElastiCache::ReplicationGroup": new Set(["UserGroupIds"])
|
|
4362
|
+
"AWS::ApiGatewayV2::Api": /* @__PURE__ */ new Set(["CorsConfiguration.AllowHeaders", "CorsConfiguration.ExposeHeaders"]),
|
|
4363
|
+
"AWS::Lambda::Url": /* @__PURE__ */ new Set(["Cors.AllowHeaders", "Cors.ExposeHeaders"]),
|
|
4364
|
+
"AWS::CertificateManager::Certificate": /* @__PURE__ */ new Set(["SubjectAlternativeNames"]),
|
|
4365
|
+
"AWS::SES::ConfigurationSetEventDestination": /* @__PURE__ */ new Set(["EventDestination.MatchingEventTypes"]),
|
|
4366
|
+
"AWS::ElastiCache::UserGroup": /* @__PURE__ */ new Set(["UserIds"]),
|
|
4367
|
+
"AWS::ElastiCache::ReplicationGroup": /* @__PURE__ */ new Set(["UserGroupIds"])
|
|
4370
4368
|
};
|
|
4371
4369
|
function isCaseInsensitiveEqualScalarSet(a, b) {
|
|
4372
4370
|
if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;
|
|
@@ -4376,7 +4374,7 @@ function isCaseInsensitiveEqualScalarSet(a, b) {
|
|
|
4376
4374
|
const nb = norm(b);
|
|
4377
4375
|
return na.every((v, i) => v === nb[i]);
|
|
4378
4376
|
}
|
|
4379
|
-
const RATE_EXPRESSION_PATHS = { "AWS::Synthetics::Canary": new Set(["Schedule.Expression"]) };
|
|
4377
|
+
const RATE_EXPRESSION_PATHS = { "AWS::Synthetics::Canary": /* @__PURE__ */ new Set(["Schedule.Expression"]) };
|
|
4380
4378
|
const RATE_RE = /^rate\(\s*(\d+)\s+(minute|minutes|hour|hours|day|days)\s*\)$/i;
|
|
4381
4379
|
const RATE_UNIT_MIN = {
|
|
4382
4380
|
minute: 1,
|
|
@@ -4388,14 +4386,15 @@ function isEquivalentRateExpression(a, b) {
|
|
|
4388
4386
|
const minutes = (s) => {
|
|
4389
4387
|
const m = RATE_RE.exec(s.trim());
|
|
4390
4388
|
if (!m || m[1] === void 0 || m[2] === void 0) return void 0;
|
|
4391
|
-
const
|
|
4389
|
+
const unit = m[2].toLowerCase().replace(/s$/, "");
|
|
4390
|
+
const per = RATE_UNIT_MIN[unit];
|
|
4392
4391
|
return per === void 0 ? void 0 : Number(m[1]) * per;
|
|
4393
4392
|
};
|
|
4394
4393
|
const ma = minutes(a);
|
|
4395
4394
|
const mb = minutes(b);
|
|
4396
4395
|
return ma !== void 0 && mb !== void 0 && ma === mb;
|
|
4397
4396
|
}
|
|
4398
|
-
const EPOCH_HOUR_PATHS = { "AWS::AppSync::ApiKey": new Set(["Expires"]) };
|
|
4397
|
+
const EPOCH_HOUR_PATHS = { "AWS::AppSync::ApiKey": /* @__PURE__ */ new Set(["Expires"]) };
|
|
4399
4398
|
function isEpochHourEqual(a, b) {
|
|
4400
4399
|
const sec = (v) => {
|
|
4401
4400
|
const n = typeof v === "number" ? v : typeof v === "string" ? Number(v) : NaN;
|
|
@@ -4407,30 +4406,30 @@ function isEpochHourEqual(a, b) {
|
|
|
4407
4406
|
}
|
|
4408
4407
|
const NUMERIC_STRING_EQUAL_PATHS = { "AWS::Budgets::Budget": [/(?:^|\.)BudgetLimit\.Amount$/, /(?:^|\.)PlannedBudgetLimits\.[^.]+\.Amount$/] };
|
|
4409
4408
|
const TRAILING_DOT_PATHS = {
|
|
4410
|
-
"AWS::Route53::HostedZone": new Set(["Name"]),
|
|
4411
|
-
"AWS::Route53::RecordSet": new Set(["Name"]),
|
|
4412
|
-
"AWS::Route53Resolver::ResolverRule": new Set(["DomainName"])
|
|
4409
|
+
"AWS::Route53::HostedZone": /* @__PURE__ */ new Set(["Name"]),
|
|
4410
|
+
"AWS::Route53::RecordSet": /* @__PURE__ */ new Set(["Name"]),
|
|
4411
|
+
"AWS::Route53Resolver::ResolverRule": /* @__PURE__ */ new Set(["DomainName"])
|
|
4413
4412
|
};
|
|
4414
4413
|
function isTrailingDotEqual(a, b) {
|
|
4415
4414
|
if (typeof a !== "string" || typeof b !== "string") return false;
|
|
4416
4415
|
const strip = (s) => s.endsWith(".") ? s.slice(0, -1) : s;
|
|
4417
4416
|
return strip(a) === strip(b);
|
|
4418
4417
|
}
|
|
4419
|
-
const TRAILING_SLASH_PATHS = { "AWS::ECR::RepositoryCreationTemplate": new Set(["Prefix"]) };
|
|
4418
|
+
const TRAILING_SLASH_PATHS = { "AWS::ECR::RepositoryCreationTemplate": /* @__PURE__ */ new Set(["Prefix"]) };
|
|
4420
4419
|
function isTrailingSlashEqual(a, b) {
|
|
4421
4420
|
if (typeof a !== "string" || typeof b !== "string") return false;
|
|
4422
4421
|
const strip = (s) => s.endsWith("/") ? s.slice(0, -1) : s;
|
|
4423
4422
|
return strip(a) === strip(b);
|
|
4424
4423
|
}
|
|
4425
4424
|
const VERSION_PREFIX_PATHS = {
|
|
4426
|
-
"AWS::RDS::DBInstance": new Set(["EngineVersion"]),
|
|
4427
|
-
"AWS::RDS::DBCluster": new Set(["EngineVersion"]),
|
|
4428
|
-
"AWS::RDS::GlobalCluster": new Set(["EngineVersion"]),
|
|
4429
|
-
"AWS::Neptune::DBCluster": new Set(["EngineVersion"]),
|
|
4430
|
-
"AWS::DocDB::DBCluster": new Set(["EngineVersion"]),
|
|
4431
|
-
"AWS::ElastiCache::ReplicationGroup": new Set(["EngineVersion"]),
|
|
4432
|
-
"AWS::ElastiCache::CacheCluster": new Set(["EngineVersion"]),
|
|
4433
|
-
"AWS::AmazonMQ::Broker": new Set(["EngineVersion"])
|
|
4425
|
+
"AWS::RDS::DBInstance": /* @__PURE__ */ new Set(["EngineVersion"]),
|
|
4426
|
+
"AWS::RDS::DBCluster": /* @__PURE__ */ new Set(["EngineVersion"]),
|
|
4427
|
+
"AWS::RDS::GlobalCluster": /* @__PURE__ */ new Set(["EngineVersion"]),
|
|
4428
|
+
"AWS::Neptune::DBCluster": /* @__PURE__ */ new Set(["EngineVersion"]),
|
|
4429
|
+
"AWS::DocDB::DBCluster": /* @__PURE__ */ new Set(["EngineVersion"]),
|
|
4430
|
+
"AWS::ElastiCache::ReplicationGroup": /* @__PURE__ */ new Set(["EngineVersion"]),
|
|
4431
|
+
"AWS::ElastiCache::CacheCluster": /* @__PURE__ */ new Set(["EngineVersion"]),
|
|
4432
|
+
"AWS::AmazonMQ::Broker": /* @__PURE__ */ new Set(["EngineVersion"])
|
|
4434
4433
|
};
|
|
4435
4434
|
function isVersionPrefixMatch(declared, live) {
|
|
4436
4435
|
if (typeof declared !== "string" || typeof live !== "string") return false;
|
|
@@ -4442,13 +4441,13 @@ function isVersionPrefixMatch(declared, live) {
|
|
|
4442
4441
|
return shortSegs.every((seg, i) => seg === longSegs[i]);
|
|
4443
4442
|
}
|
|
4444
4443
|
const LATEST_SENTINEL_PATHS = {
|
|
4445
|
-
"AWS::ECS::Service": new Set(["PlatformVersion"]),
|
|
4446
|
-
"AWS::ECS::TaskSet": new Set(["PlatformVersion"])
|
|
4444
|
+
"AWS::ECS::Service": /* @__PURE__ */ new Set(["PlatformVersion"]),
|
|
4445
|
+
"AWS::ECS::TaskSet": /* @__PURE__ */ new Set(["PlatformVersion"])
|
|
4447
4446
|
};
|
|
4448
4447
|
function isLatestSentinelMatch(declared, live) {
|
|
4449
4448
|
return declared === "LATEST" && typeof live === "string" && live.length > 0;
|
|
4450
4449
|
}
|
|
4451
|
-
const INTELLIGENT_TIERING_PATHS = { "AWS::SSM::Parameter": new Set(["Tier"]) };
|
|
4450
|
+
const INTELLIGENT_TIERING_PATHS = { "AWS::SSM::Parameter": /* @__PURE__ */ new Set(["Tier"]) };
|
|
4452
4451
|
function isIntelligentTieringMatch(declared, live) {
|
|
4453
4452
|
return declared === "Intelligent-Tiering" && (live === "Standard" || live === "Advanced");
|
|
4454
4453
|
}
|
|
@@ -4493,7 +4492,7 @@ const isIdLike = (s) => typeof s === "string" && (s.startsWith("arn:") || ID_RE.
|
|
|
4493
4492
|
const AZ_NAME_RE = /^[a-z]{2}-[a-z]+(-[a-z]+)?-\d{1,2}[a-z]$/;
|
|
4494
4493
|
const AZ_ID_RE = /^[a-z]{3,5}\d-az\d+$/;
|
|
4495
4494
|
const isAvailabilityZone = (s) => typeof s === "string" && (AZ_NAME_RE.test(s) || AZ_ID_RE.test(s));
|
|
4496
|
-
const HTTP_METHODS = new Set([
|
|
4495
|
+
const HTTP_METHODS = /* @__PURE__ */ new Set([
|
|
4497
4496
|
"GET",
|
|
4498
4497
|
"HEAD",
|
|
4499
4498
|
"POST",
|
|
@@ -4650,12 +4649,12 @@ function alignNameValueSubset(declared, live, spec) {
|
|
|
4650
4649
|
return live.filter((e) => !dm.has(e[spec.nameField]));
|
|
4651
4650
|
}
|
|
4652
4651
|
const UNORDERED_ARRAY_PROPS = {
|
|
4653
|
-
"AWS::Route53::CidrCollection": new Set(["Locations.*.CidrList"]),
|
|
4654
|
-
"AWS::CloudFront::Distribution": new Set(["DistributionConfig.Restrictions.GeoRestriction.Locations"]),
|
|
4655
|
-
"AWS::Cognito::UserPool": new Set(["EnabledMfas"]),
|
|
4656
|
-
"AWS::ECS::Cluster": new Set(["CapacityProviders"]),
|
|
4657
|
-
"AWS::ECS::ClusterCapacityProviderAssociations": new Set(["CapacityProviders"]),
|
|
4658
|
-
"AWS::Cognito::UserPoolClient": new Set([
|
|
4652
|
+
"AWS::Route53::CidrCollection": /* @__PURE__ */ new Set(["Locations.*.CidrList"]),
|
|
4653
|
+
"AWS::CloudFront::Distribution": /* @__PURE__ */ new Set(["DistributionConfig.Restrictions.GeoRestriction.Locations"]),
|
|
4654
|
+
"AWS::Cognito::UserPool": /* @__PURE__ */ new Set(["EnabledMfas"]),
|
|
4655
|
+
"AWS::ECS::Cluster": /* @__PURE__ */ new Set(["CapacityProviders"]),
|
|
4656
|
+
"AWS::ECS::ClusterCapacityProviderAssociations": /* @__PURE__ */ new Set(["CapacityProviders"]),
|
|
4657
|
+
"AWS::Cognito::UserPoolClient": /* @__PURE__ */ new Set([
|
|
4659
4658
|
"AllowedOAuthFlows",
|
|
4660
4659
|
"AllowedOAuthScopes",
|
|
4661
4660
|
"ExplicitAuthFlows",
|
|
@@ -4665,15 +4664,15 @@ const UNORDERED_ARRAY_PROPS = {
|
|
|
4665
4664
|
"WriteAttributes",
|
|
4666
4665
|
"SupportedIdentityProviders"
|
|
4667
4666
|
]),
|
|
4668
|
-
"AWS::WAFv2::IPSet": new Set(["Addresses"]),
|
|
4669
|
-
"AWS::Route53::RecordSet": new Set(["ResourceRecords"]),
|
|
4670
|
-
"AWS::Route53::RecordSetGroup": new Set(["RecordSets.*.ResourceRecords"]),
|
|
4671
|
-
"AWS::CodeDeploy::DeploymentGroup": new Set(["AutoRollbackConfiguration.Events"]),
|
|
4672
|
-
"AWS::RDS::DBInstance": new Set(["EnableCloudwatchLogsExports"]),
|
|
4673
|
-
"AWS::RDS::DBCluster": new Set(["EnableCloudwatchLogsExports"]),
|
|
4674
|
-
"AWS::Neptune::DBCluster": new Set(["EnableCloudwatchLogsExports"]),
|
|
4675
|
-
"AWS::DocDB::DBCluster": new Set(["EnableCloudwatchLogsExports"]),
|
|
4676
|
-
"AWS::CodePipeline::Pipeline": new Set([
|
|
4667
|
+
"AWS::WAFv2::IPSet": /* @__PURE__ */ new Set(["Addresses"]),
|
|
4668
|
+
"AWS::Route53::RecordSet": /* @__PURE__ */ new Set(["ResourceRecords"]),
|
|
4669
|
+
"AWS::Route53::RecordSetGroup": /* @__PURE__ */ new Set(["RecordSets.*.ResourceRecords"]),
|
|
4670
|
+
"AWS::CodeDeploy::DeploymentGroup": /* @__PURE__ */ new Set(["AutoRollbackConfiguration.Events"]),
|
|
4671
|
+
"AWS::RDS::DBInstance": /* @__PURE__ */ new Set(["EnableCloudwatchLogsExports"]),
|
|
4672
|
+
"AWS::RDS::DBCluster": /* @__PURE__ */ new Set(["EnableCloudwatchLogsExports"]),
|
|
4673
|
+
"AWS::Neptune::DBCluster": /* @__PURE__ */ new Set(["EnableCloudwatchLogsExports"]),
|
|
4674
|
+
"AWS::DocDB::DBCluster": /* @__PURE__ */ new Set(["EnableCloudwatchLogsExports"]),
|
|
4675
|
+
"AWS::CodePipeline::Pipeline": /* @__PURE__ */ new Set([
|
|
4677
4676
|
"Triggers.*.GitConfiguration.Push.*.Branches.Includes",
|
|
4678
4677
|
"Triggers.*.GitConfiguration.Push.*.Branches.Excludes",
|
|
4679
4678
|
"Triggers.*.GitConfiguration.Push.*.FilePaths.Includes",
|
|
@@ -4701,14 +4700,14 @@ function isEqualUnorderedScalarSet(a, b) {
|
|
|
4701
4700
|
return sa.every((v, i) => v === sb[i]);
|
|
4702
4701
|
}
|
|
4703
4702
|
const READGAP_COLLECTION_PATHS = {
|
|
4704
|
-
"AWS::Batch::JobDefinition": new Set(["Timeout"]),
|
|
4705
|
-
"AWS::Budgets::Budget": new Set(["NotificationsWithSubscribers"]),
|
|
4706
|
-
"AWS::DynamoDB::GlobalTable": new Set(["SSESpecification"]),
|
|
4707
|
-
"AWS::DynamoDB::Table": new Set(["SSESpecification"]),
|
|
4708
|
-
"AWS::CertificateManager::Certificate": new Set(["DomainValidationOptions"]),
|
|
4709
|
-
"AWS::Glue::Table": new Set(["OpenTableFormatInput"]),
|
|
4710
|
-
"AWS::EC2::ClientVpnEndpoint": new Set(["TagSpecifications"]),
|
|
4711
|
-
"AWS::DMS::Endpoint": new Set([
|
|
4703
|
+
"AWS::Batch::JobDefinition": /* @__PURE__ */ new Set(["Timeout"]),
|
|
4704
|
+
"AWS::Budgets::Budget": /* @__PURE__ */ new Set(["NotificationsWithSubscribers"]),
|
|
4705
|
+
"AWS::DynamoDB::GlobalTable": /* @__PURE__ */ new Set(["SSESpecification"]),
|
|
4706
|
+
"AWS::DynamoDB::Table": /* @__PURE__ */ new Set(["SSESpecification"]),
|
|
4707
|
+
"AWS::CertificateManager::Certificate": /* @__PURE__ */ new Set(["DomainValidationOptions"]),
|
|
4708
|
+
"AWS::Glue::Table": /* @__PURE__ */ new Set(["OpenTableFormatInput"]),
|
|
4709
|
+
"AWS::EC2::ClientVpnEndpoint": /* @__PURE__ */ new Set(["TagSpecifications"]),
|
|
4710
|
+
"AWS::DMS::Endpoint": /* @__PURE__ */ new Set([
|
|
4712
4711
|
"DocDbSettings",
|
|
4713
4712
|
"DynamoDbSettings",
|
|
4714
4713
|
"ElasticsearchSettings",
|
|
@@ -4729,25 +4728,25 @@ const READGAP_COLLECTION_PATHS = {
|
|
|
4729
4728
|
])
|
|
4730
4729
|
};
|
|
4731
4730
|
const SCALAR_RETURNED_WHEN_SET = {
|
|
4732
|
-
"AWS::NetworkFirewall::RuleGroup": new Set(["Description"]),
|
|
4733
|
-
"AWS::NetworkFirewall::FirewallPolicy": new Set(["Description"])
|
|
4731
|
+
"AWS::NetworkFirewall::RuleGroup": /* @__PURE__ */ new Set(["Description"]),
|
|
4732
|
+
"AWS::NetworkFirewall::FirewallPolicy": /* @__PURE__ */ new Set(["Description"])
|
|
4734
4733
|
};
|
|
4735
|
-
const READ_NORMALIZED_DECLARED_PATHS = { "AWS::SSM::Document": new Set(["DocumentFormat"]) };
|
|
4734
|
+
const READ_NORMALIZED_DECLARED_PATHS = { "AWS::SSM::Document": /* @__PURE__ */ new Set(["DocumentFormat"]) };
|
|
4736
4735
|
const UNORDERED_OBJECT_ARRAY_PROPS = {
|
|
4737
|
-
"AWS::EC2::SecurityGroup": new Set(["SecurityGroupIngress", "SecurityGroupEgress"]),
|
|
4738
|
-
"AWS::ApplicationSignals::ServiceLevelObjective": new Set(["BurnRateConfigurations"]),
|
|
4739
|
-
"AWS::Cognito::UserPoolResourceServer": new Set(["Scopes"]),
|
|
4740
|
-
"AWS::ElasticLoadBalancingV2::ListenerRule": new Set(["Conditions"]),
|
|
4741
|
-
"AWS::IAM::Role": new Set(["Policies"]),
|
|
4742
|
-
"AWS::IAM::User": new Set(["Policies"]),
|
|
4743
|
-
"AWS::IAM::Group": new Set(["Policies"]),
|
|
4744
|
-
"AWS::Redshift::ClusterParameterGroup": new Set(["Parameters"]),
|
|
4745
|
-
"AWS::AutoScaling::AutoScalingGroup": new Set(["LifecycleHookSpecificationList"]),
|
|
4746
|
-
"AWS::SecretsManager::Secret": new Set(["ReplicaRegions"]),
|
|
4747
|
-
"AWS::ElastiCache::CacheCluster": new Set(["LogDeliveryConfigurations"]),
|
|
4748
|
-
"AWS::ElastiCache::ReplicationGroup": new Set(["LogDeliveryConfigurations"]),
|
|
4749
|
-
"AWS::WAFv2::LoggingConfiguration": new Set(["RedactedFields"]),
|
|
4750
|
-
"AWS::EC2::PrefixList": new Set(["Entries"])
|
|
4736
|
+
"AWS::EC2::SecurityGroup": /* @__PURE__ */ new Set(["SecurityGroupIngress", "SecurityGroupEgress"]),
|
|
4737
|
+
"AWS::ApplicationSignals::ServiceLevelObjective": /* @__PURE__ */ new Set(["BurnRateConfigurations"]),
|
|
4738
|
+
"AWS::Cognito::UserPoolResourceServer": /* @__PURE__ */ new Set(["Scopes"]),
|
|
4739
|
+
"AWS::ElasticLoadBalancingV2::ListenerRule": /* @__PURE__ */ new Set(["Conditions"]),
|
|
4740
|
+
"AWS::IAM::Role": /* @__PURE__ */ new Set(["Policies"]),
|
|
4741
|
+
"AWS::IAM::User": /* @__PURE__ */ new Set(["Policies"]),
|
|
4742
|
+
"AWS::IAM::Group": /* @__PURE__ */ new Set(["Policies"]),
|
|
4743
|
+
"AWS::Redshift::ClusterParameterGroup": /* @__PURE__ */ new Set(["Parameters"]),
|
|
4744
|
+
"AWS::AutoScaling::AutoScalingGroup": /* @__PURE__ */ new Set(["LifecycleHookSpecificationList"]),
|
|
4745
|
+
"AWS::SecretsManager::Secret": /* @__PURE__ */ new Set(["ReplicaRegions"]),
|
|
4746
|
+
"AWS::ElastiCache::CacheCluster": /* @__PURE__ */ new Set(["LogDeliveryConfigurations"]),
|
|
4747
|
+
"AWS::ElastiCache::ReplicationGroup": /* @__PURE__ */ new Set(["LogDeliveryConfigurations"]),
|
|
4748
|
+
"AWS::WAFv2::LoggingConfiguration": /* @__PURE__ */ new Set(["RedactedFields"]),
|
|
4749
|
+
"AWS::EC2::PrefixList": /* @__PURE__ */ new Set(["Entries"])
|
|
4751
4750
|
};
|
|
4752
4751
|
const UNORDERED_OBJECT_ARRAY_IDENTITY = {
|
|
4753
4752
|
"AWS::Cognito::UserPoolResourceServer": { Scopes: "ScopeName" },
|
|
@@ -4763,10 +4762,10 @@ const UNORDERED_OBJECT_ARRAY_IDENTITY = {
|
|
|
4763
4762
|
"AWS::IAM::Group": { Policies: "PolicyName" }
|
|
4764
4763
|
};
|
|
4765
4764
|
const UNORDERED_NESTED_OBJECT_ARRAY_PATHS = {
|
|
4766
|
-
"AWS::CloudFront::CachePolicy": new Set(["CachePolicyConfig.ParametersInCacheKeyAndForwardedToOrigin.HeadersConfig.Headers"]),
|
|
4767
|
-
"AWS::CloudFront::Distribution": new Set(["DistributionConfig.Aliases", "DistributionConfig.CustomErrorResponses"]),
|
|
4768
|
-
"AWS::IoT::ThingType": new Set(["ThingTypeProperties.SearchableAttributes"]),
|
|
4769
|
-
"AWS::Bedrock::Guardrail": new Set([
|
|
4765
|
+
"AWS::CloudFront::CachePolicy": /* @__PURE__ */ new Set(["CachePolicyConfig.ParametersInCacheKeyAndForwardedToOrigin.HeadersConfig.Headers"]),
|
|
4766
|
+
"AWS::CloudFront::Distribution": /* @__PURE__ */ new Set(["DistributionConfig.Aliases", "DistributionConfig.CustomErrorResponses"]),
|
|
4767
|
+
"AWS::IoT::ThingType": /* @__PURE__ */ new Set(["ThingTypeProperties.SearchableAttributes"]),
|
|
4768
|
+
"AWS::Bedrock::Guardrail": /* @__PURE__ */ new Set([
|
|
4770
4769
|
"ContentPolicyConfig.FiltersConfig",
|
|
4771
4770
|
"TopicPolicyConfig.TopicsConfig",
|
|
4772
4771
|
"WordPolicyConfig.WordsConfig",
|
|
@@ -4774,21 +4773,21 @@ const UNORDERED_NESTED_OBJECT_ARRAY_PATHS = {
|
|
|
4774
4773
|
"SensitiveInformationPolicyConfig.PiiEntitiesConfig",
|
|
4775
4774
|
"SensitiveInformationPolicyConfig.RegexesConfig"
|
|
4776
4775
|
]),
|
|
4777
|
-
"AWS::ECS::TaskDefinition": new Set([
|
|
4776
|
+
"AWS::ECS::TaskDefinition": /* @__PURE__ */ new Set([
|
|
4778
4777
|
"ContainerDefinitions.PortMappings",
|
|
4779
4778
|
"ContainerDefinitions.VolumesFrom",
|
|
4780
4779
|
"ContainerDefinitions.Links"
|
|
4781
4780
|
]),
|
|
4782
|
-
"AWS::DynamoDB::Table": new Set(["GlobalSecondaryIndexes.Projection.NonKeyAttributes", "LocalSecondaryIndexes.Projection.NonKeyAttributes"]),
|
|
4783
|
-
"AWS::DynamoDB::GlobalTable": new Set(["GlobalSecondaryIndexes.Projection.NonKeyAttributes", "LocalSecondaryIndexes.Projection.NonKeyAttributes"]),
|
|
4784
|
-
"AWS::ElasticLoadBalancingV2::ListenerRule": new Set([
|
|
4781
|
+
"AWS::DynamoDB::Table": /* @__PURE__ */ new Set(["GlobalSecondaryIndexes.Projection.NonKeyAttributes", "LocalSecondaryIndexes.Projection.NonKeyAttributes"]),
|
|
4782
|
+
"AWS::DynamoDB::GlobalTable": /* @__PURE__ */ new Set(["GlobalSecondaryIndexes.Projection.NonKeyAttributes", "LocalSecondaryIndexes.Projection.NonKeyAttributes"]),
|
|
4783
|
+
"AWS::ElasticLoadBalancingV2::ListenerRule": /* @__PURE__ */ new Set([
|
|
4785
4784
|
"Conditions.PathPatternConfig.Values",
|
|
4786
4785
|
"Conditions.SourceIpConfig.Values",
|
|
4787
4786
|
"Conditions.HttpHeaderConfig.Values"
|
|
4788
4787
|
]),
|
|
4789
|
-
"AWS::Backup::BackupSelection": new Set(["BackupSelection.ListOfTags"]),
|
|
4790
|
-
"AWS::AutoScaling::AutoScalingGroup": new Set(["MetricsCollection.Metrics", "NotificationConfigurations.NotificationTypes"]),
|
|
4791
|
-
"AWS::Lambda::EventSourceMapping": new Set(["SelfManagedEventSource.Endpoints.KafkaBootstrapServers"])
|
|
4788
|
+
"AWS::Backup::BackupSelection": /* @__PURE__ */ new Set(["BackupSelection.ListOfTags"]),
|
|
4789
|
+
"AWS::AutoScaling::AutoScalingGroup": /* @__PURE__ */ new Set(["MetricsCollection.Metrics", "NotificationConfigurations.NotificationTypes"]),
|
|
4790
|
+
"AWS::Lambda::EventSourceMapping": /* @__PURE__ */ new Set(["SelfManagedEventSource.Endpoints.KafkaBootstrapServers"])
|
|
4792
4791
|
};
|
|
4793
4792
|
const NESTED_OBJECT_ARRAY_IDENTITY = {
|
|
4794
4793
|
"AWS::CloudFront::Distribution": { "DistributionConfig.CustomErrorResponses": "ErrorCode" },
|
|
@@ -5010,7 +5009,7 @@ const BOOL_TAG = "tag:yaml.org,2002:bool";
|
|
|
5010
5009
|
const TIMESTAMP_TAG = "tag:yaml.org,2002:timestamp";
|
|
5011
5010
|
const INT_TAG = "tag:yaml.org,2002:int";
|
|
5012
5011
|
const FLOAT_TAG = "tag:yaml.org,2002:float";
|
|
5013
|
-
const EXOTIC_NUMBER_FORMATS = new Set([
|
|
5012
|
+
const EXOTIC_NUMBER_FORMATS = /* @__PURE__ */ new Set([
|
|
5014
5013
|
"OCT",
|
|
5015
5014
|
"HEX",
|
|
5016
5015
|
"BIN",
|
|
@@ -5459,7 +5458,7 @@ async function loadDesired(client, stackName, region, templateOverride, recovery
|
|
|
5459
5458
|
desired.stackTags = stackTags;
|
|
5460
5459
|
return desired;
|
|
5461
5460
|
}
|
|
5462
|
-
const IAM_PRINCIPAL_TYPES = new Set([
|
|
5461
|
+
const IAM_PRINCIPAL_TYPES = /* @__PURE__ */ new Set([
|
|
5463
5462
|
"AWS::IAM::Role",
|
|
5464
5463
|
"AWS::IAM::User",
|
|
5465
5464
|
"AWS::IAM::Group"
|
|
@@ -5501,7 +5500,7 @@ function collectPrincipalsWithSiblingPolicies(resources, ctx) {
|
|
|
5501
5500
|
}
|
|
5502
5501
|
return principals;
|
|
5503
5502
|
}
|
|
5504
|
-
const IAM_STANDALONE_INLINE_POLICY_TYPES = new Map([
|
|
5503
|
+
const IAM_STANDALONE_INLINE_POLICY_TYPES = /* @__PURE__ */ new Map([
|
|
5505
5504
|
["AWS::IAM::RolePolicy", "RoleName"],
|
|
5506
5505
|
["AWS::IAM::UserPolicy", "UserName"],
|
|
5507
5506
|
["AWS::IAM::GroupPolicy", "GroupName"]
|
|
@@ -5800,7 +5799,7 @@ function sortKeys(o) {
|
|
|
5800
5799
|
for (const k of Object.keys(o).sort()) out[k] = o[k];
|
|
5801
5800
|
return out;
|
|
5802
5801
|
}
|
|
5803
|
-
const ARRAYISH_KEYS = new Set([
|
|
5802
|
+
const ARRAYISH_KEYS = /* @__PURE__ */ new Set([
|
|
5804
5803
|
"Action",
|
|
5805
5804
|
"NotAction",
|
|
5806
5805
|
"Resource",
|
|
@@ -5834,7 +5833,7 @@ function canonicalizeStatement(s) {
|
|
|
5834
5833
|
}
|
|
5835
5834
|
return out;
|
|
5836
5835
|
}
|
|
5837
|
-
const AWS_LOG_DELIVERY_ALLOWED_ACTIONS = new Set([
|
|
5836
|
+
const AWS_LOG_DELIVERY_ALLOWED_ACTIONS = /* @__PURE__ */ new Set([
|
|
5838
5837
|
"s3:PutObject",
|
|
5839
5838
|
"s3:GetBucketAcl",
|
|
5840
5839
|
"logs:CreateLogStream",
|
|
@@ -5976,7 +5975,8 @@ function seedFreeFormFromPath(path) {
|
|
|
5976
5975
|
return path.replace(/\[([^\]]*)\]/g, ".$1").split(".").filter((s) => s.length > 0).some((s) => FREE_FORM_MAP_PARENTS.has(s));
|
|
5977
5976
|
}
|
|
5978
5977
|
function canonicalizeBaselineForCompare(v, resourceType, path) {
|
|
5979
|
-
|
|
5978
|
+
const freeFormSeed = seedFreeFormFromPath(path);
|
|
5979
|
+
return sortObjectArraysDeep(canonicalizeForCompare(stripAwsTagsDeep(stripCcApiAwsManagedFields(v, freeFormSeed)), resourceType));
|
|
5980
5980
|
}
|
|
5981
5981
|
|
|
5982
5982
|
//#endregion
|
|
@@ -6237,7 +6237,8 @@ function guardDutyFeaturesAllAtDefault(features) {
|
|
|
6237
6237
|
if (node !== null && typeof node === "object") {
|
|
6238
6238
|
const rec = node;
|
|
6239
6239
|
if ("Status" in rec) {
|
|
6240
|
-
const
|
|
6240
|
+
const name = typeof rec["Name"] === "string" ? rec["Name"] : "";
|
|
6241
|
+
const defaults = GUARDDUTY_FEATURE_CREATION_STATUS[name] ?? ["ENABLED"];
|
|
6241
6242
|
if (typeof rec["Status"] !== "string" || !defaults.includes(rec["Status"])) return false;
|
|
6242
6243
|
}
|
|
6243
6244
|
return Object.values(rec).every(atDefault);
|
|
@@ -6352,9 +6353,9 @@ const IDENTITY_KEYED_SUBSET_ARRAYS = {
|
|
|
6352
6353
|
foldHuskExtras: true
|
|
6353
6354
|
} }
|
|
6354
6355
|
};
|
|
6355
|
-
const VALUE_INDEPENDENT_KEYED_ELEMENTS = { "AWS::Cognito::UserPoolUser": { UserAttributes: new Set(["sub"]) } };
|
|
6356
|
-
const SLACK_ID_MIGRATION_PATHS = { "AWS::Chatbot::SlackChannelConfiguration": new Set(["SlackChannelId"]) };
|
|
6357
|
-
const SLACK_MIGRATION_PREFIXES = new Set(["G", "C"]);
|
|
6356
|
+
const VALUE_INDEPENDENT_KEYED_ELEMENTS = { "AWS::Cognito::UserPoolUser": { UserAttributes: /* @__PURE__ */ new Set(["sub"]) } };
|
|
6357
|
+
const SLACK_ID_MIGRATION_PATHS = { "AWS::Chatbot::SlackChannelConfiguration": /* @__PURE__ */ new Set(["SlackChannelId"]) };
|
|
6358
|
+
const SLACK_MIGRATION_PREFIXES = /* @__PURE__ */ new Set(["G", "C"]);
|
|
6358
6359
|
function isSlackIdMigrationEqual(a, b) {
|
|
6359
6360
|
if (typeof a !== "string" || typeof b !== "string") return false;
|
|
6360
6361
|
return a.length > 1 && b.length > 1 && SLACK_MIGRATION_PREFIXES.has(a[0] ?? "") && SLACK_MIGRATION_PREFIXES.has(b[0] ?? "") && a.slice(1) === b.slice(1);
|
|
@@ -6407,7 +6408,7 @@ function subtractSiblingEventBusStatements(live, siblingStatements) {
|
|
|
6407
6408
|
}
|
|
6408
6409
|
if (arr.length === 0) delete live[EVENT_BUS_POLICY_PROP];
|
|
6409
6410
|
}
|
|
6410
|
-
const IAM_PRINCIPAL_POLICY_TYPES = new Set([
|
|
6411
|
+
const IAM_PRINCIPAL_POLICY_TYPES = /* @__PURE__ */ new Set([
|
|
6411
6412
|
"AWS::IAM::Role",
|
|
6412
6413
|
"AWS::IAM::User",
|
|
6413
6414
|
"AWS::IAM::Group"
|
|
@@ -6431,7 +6432,7 @@ function subtractSiblingSgRules(live, prop, siblingRules) {
|
|
|
6431
6432
|
}
|
|
6432
6433
|
if (arr.length === 0) delete live[prop];
|
|
6433
6434
|
}
|
|
6434
|
-
const IAM_ATTACHMENT_REFLECTION_TYPES = new Set([
|
|
6435
|
+
const IAM_ATTACHMENT_REFLECTION_TYPES = /* @__PURE__ */ new Set([
|
|
6435
6436
|
"AWS::IAM::Role",
|
|
6436
6437
|
"AWS::IAM::User",
|
|
6437
6438
|
"AWS::IAM::Group"
|
|
@@ -6501,7 +6502,7 @@ function applyDefinitionSubstitutions(definitionString, substitutions) {
|
|
|
6501
6502
|
return String(value);
|
|
6502
6503
|
});
|
|
6503
6504
|
}
|
|
6504
|
-
const IAM_ATTACHMENT_SUBSET = { "AWS::IAM::ManagedPolicy": new Set([
|
|
6505
|
+
const IAM_ATTACHMENT_SUBSET = { "AWS::IAM::ManagedPolicy": /* @__PURE__ */ new Set([
|
|
6505
6506
|
"Roles",
|
|
6506
6507
|
"Users",
|
|
6507
6508
|
"Groups"
|
|
@@ -6516,7 +6517,7 @@ const ebOptionSettingsEntryTier = (entry, liveArray, ebSgNamesById) => {
|
|
|
6516
6517
|
const ebOptionSettingsSubsetSpec = {
|
|
6517
6518
|
re: /(^|\.)OptionSettings$/,
|
|
6518
6519
|
keyFields: ["Namespace", "OptionName"],
|
|
6519
|
-
ignoreFields: new Set(["ResourceName"]),
|
|
6520
|
+
ignoreFields: /* @__PURE__ */ new Set(["ResourceName"]),
|
|
6520
6521
|
entryTier: ebOptionSettingsEntryTier
|
|
6521
6522
|
};
|
|
6522
6523
|
const COMPOSITE_KEY_SUBSET_PATHS = {
|
|
@@ -6570,7 +6571,7 @@ function nicZeroGroupSetEquals(declaredNics, liveSgIds) {
|
|
|
6570
6571
|
const live = new Set(liveSgIds);
|
|
6571
6572
|
return groupSet.length === live.size && groupSet.every((g) => live.has(g));
|
|
6572
6573
|
}
|
|
6573
|
-
const DDB_TABLE_TYPES = new Set(["AWS::DynamoDB::Table", "AWS::DynamoDB::GlobalTable"]);
|
|
6574
|
+
const DDB_TABLE_TYPES = /* @__PURE__ */ new Set(["AWS::DynamoDB::Table", "AWS::DynamoDB::GlobalTable"]);
|
|
6574
6575
|
function capacityUnit(x) {
|
|
6575
6576
|
if (typeof x === "number") return x;
|
|
6576
6577
|
if (typeof x === "string" && x.trim() !== "" && !Number.isNaN(Number(x))) return Number(x);
|
|
@@ -6619,7 +6620,7 @@ function glueIcebergManagedParamsAtDefault(resourceType, schemaPath, value, decl
|
|
|
6619
6620
|
if (!isNestedObject(otf) || !("IcebergInput" in otf)) return false;
|
|
6620
6621
|
if (!isNestedObject(value)) return false;
|
|
6621
6622
|
const params = value;
|
|
6622
|
-
const managed = new Set(["table_type", "metadata_location"]);
|
|
6623
|
+
const managed = /* @__PURE__ */ new Set(["table_type", "metadata_location"]);
|
|
6623
6624
|
if (!Object.keys(params).every((k) => managed.has(k))) return false;
|
|
6624
6625
|
return params.table_type === "ICEBERG";
|
|
6625
6626
|
}
|
|
@@ -6650,7 +6651,7 @@ function clbDefaultSslPoliciesAtDefault(resourceType, key, value) {
|
|
|
6650
6651
|
if (!Array.isArray(value) || value.length === 0) return false;
|
|
6651
6652
|
return value.every((el) => isNestedObject(el) && el["PolicyType"] === "SSLNegotiationPolicyType" && el["PolicyName"] === CLB_DEFAULT_SSL_POLICY_NAME);
|
|
6652
6653
|
}
|
|
6653
|
-
const VPN_TUNNEL_EMPTY_LIST_KEYS = new Set([
|
|
6654
|
+
const VPN_TUNNEL_EMPTY_LIST_KEYS = /* @__PURE__ */ new Set([
|
|
6654
6655
|
"Phase1EncryptionAlgorithms",
|
|
6655
6656
|
"Phase1IntegrityAlgorithms",
|
|
6656
6657
|
"Phase1DHGroupNumbers",
|
|
@@ -6841,7 +6842,7 @@ function sortScalarSetAtNestedPath(model, segs) {
|
|
|
6841
6842
|
else sortScalarSetAtNestedPath(obj[head], rest);
|
|
6842
6843
|
}
|
|
6843
6844
|
function sortUnorderedSetProps(model, resourceType, schemaObjectArrayKeys = [], schemaScalarPaths = []) {
|
|
6844
|
-
const objKeys = new Set([...UNORDERED_OBJECT_ARRAY_PROPS[resourceType] ?? [], ...schemaObjectArrayKeys]);
|
|
6845
|
+
const objKeys = /* @__PURE__ */ new Set([...UNORDERED_OBJECT_ARRAY_PROPS[resourceType] ?? [], ...schemaObjectArrayKeys]);
|
|
6845
6846
|
const orderSig = ORDER_SIGNIFICANT_ARRAY_KEYS[resourceType];
|
|
6846
6847
|
for (const k of objKeys) if (!orderSig?.has(k) && Array.isArray(model[k])) model[k] = sortUnorderedObjectArray(model[k]);
|
|
6847
6848
|
const orderSigPaths = ORDER_SIGNIFICANT_PATHS[resourceType];
|
|
@@ -7265,7 +7266,10 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
7265
7266
|
}
|
|
7266
7267
|
}
|
|
7267
7268
|
if (resourceType === "AWS::S3::Bucket" && physicalId && opts.bucketNotificationManaged?.has(physicalId) && !("NotificationConfiguration" in declared)) {
|
|
7268
|
-
|
|
7269
|
+
const declaredConfig = opts.bucketNotificationConfigs?.[physicalId] ?? {};
|
|
7270
|
+
const expectedLive = canonicalizeForCompare(canonS3NotifBucketConfig(translateDeclaredBucketNotification(declaredConfig)), resourceType);
|
|
7271
|
+
const actualLive = canonicalizeForCompare(canonS3NotifBucketConfig(live.NotificationConfiguration), resourceType);
|
|
7272
|
+
if (deepEqual(expectedLive, actualLive)) delete live.NotificationConfiguration;
|
|
7269
7273
|
}
|
|
7270
7274
|
const echoSpec = CLUSTER_ECHO_CHILD[resourceType];
|
|
7271
7275
|
const echoModel = echoSpec && physicalId ? opts.clusterEchoModel?.[physicalId] : void 0;
|
|
@@ -7973,10 +7977,12 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
7973
7977
|
const loValue = loRec[nvSubsetSpec.valueField];
|
|
7974
7978
|
const isFirehoseRetriesDefault = resourceType === "AWS::KinesisFirehose::DeliveryStream" && loName === "NumberOfRetries" && loValue === "3";
|
|
7975
7979
|
let isRdsOptionDefault = false;
|
|
7976
|
-
if (resourceType === "AWS::RDS::OptionGroup")
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
+
if (resourceType === "AWS::RDS::OptionGroup") {
|
|
7981
|
+
if (isIdentityOnlyHusk(loRec, nvSubsetSpec.nameField)) isRdsOptionDefault = true;
|
|
7982
|
+
else {
|
|
7983
|
+
const matDefault = rdsMaterializedDefault(opts.rdsOptionSettingDefaults, physicalId, liveVal, d.path, loName);
|
|
7984
|
+
isRdsOptionDefault = matDefault != null && matDefault === loValue;
|
|
7985
|
+
}
|
|
7980
7986
|
}
|
|
7981
7987
|
findings.push({
|
|
7982
7988
|
tier: isFirehoseRetriesDefault || isRdsOptionDefault ? "atDefault" : "undeclared",
|
|
@@ -8258,7 +8264,8 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
8258
8264
|
}
|
|
8259
8265
|
const ctxKind = CONTEXT_DEFAULTS[resourceType]?.[k];
|
|
8260
8266
|
if (ctxKind !== void 0 && opts.region !== void 0) {
|
|
8261
|
-
|
|
8267
|
+
const ctxDefault = ctxKind === "region" ? opts.region : [opts.region];
|
|
8268
|
+
if (deepEqual(v, ctxDefault)) {
|
|
8262
8269
|
findings.push({
|
|
8263
8270
|
tier: "atDefault",
|
|
8264
8271
|
logicalId,
|
|
@@ -8610,7 +8617,7 @@ function normalizeApiPath(p) {
|
|
|
8610
8617
|
if (out.length > 1 && out.endsWith("/")) out = out.slice(0, -1);
|
|
8611
8618
|
return out;
|
|
8612
8619
|
}
|
|
8613
|
-
const OPENAPI_HTTP_VERBS = new Set([
|
|
8620
|
+
const OPENAPI_HTTP_VERBS = /* @__PURE__ */ new Set([
|
|
8614
8621
|
"get",
|
|
8615
8622
|
"post",
|
|
8616
8623
|
"put",
|
|
@@ -8897,7 +8904,7 @@ async function getAllAuthorizers(client, apiId) {
|
|
|
8897
8904
|
} while (position);
|
|
8898
8905
|
return out;
|
|
8899
8906
|
}
|
|
8900
|
-
const BUILTIN_MODEL_NAMES = new Set(["Empty", "Error"]);
|
|
8907
|
+
const BUILTIN_MODEL_NAMES = /* @__PURE__ */ new Set(["Empty", "Error"]);
|
|
8901
8908
|
function diffApiGatewayModels(input) {
|
|
8902
8909
|
const { apiId, declaredModelNames, liveModels, bodyDefined } = input;
|
|
8903
8910
|
if (bodyDefined) return [];
|
|
@@ -10679,7 +10686,7 @@ function diffVpcSecurityGroupChildren(input) {
|
|
|
10679
10686
|
}
|
|
10680
10687
|
return added;
|
|
10681
10688
|
}
|
|
10682
|
-
const NAT_GATEWAY_GONE_STATES = new Set([
|
|
10689
|
+
const NAT_GATEWAY_GONE_STATES = /* @__PURE__ */ new Set([
|
|
10683
10690
|
"deleted",
|
|
10684
10691
|
"deleting",
|
|
10685
10692
|
"failed"
|
|
@@ -10745,7 +10752,7 @@ async function pageSubnets(client, vpcId) {
|
|
|
10745
10752
|
} while (next);
|
|
10746
10753
|
return out;
|
|
10747
10754
|
}
|
|
10748
|
-
const SERVICE_MANAGED_VPCE_TAG_KEYS = new Set(["AWSMSKManaged"]);
|
|
10755
|
+
const SERVICE_MANAGED_VPCE_TAG_KEYS = /* @__PURE__ */ new Set(["AWSMSKManaged"]);
|
|
10749
10756
|
function isServiceManagedVpcEndpoint(e) {
|
|
10750
10757
|
return (e.Tags ?? []).some((t) => typeof t.Key === "string" && SERVICE_MANAGED_VPCE_TAG_KEYS.has(t.Key));
|
|
10751
10758
|
}
|
|
@@ -11704,7 +11711,7 @@ async function enumerateGlueDatabaseChildren(ctx) {
|
|
|
11704
11711
|
}))
|
|
11705
11712
|
});
|
|
11706
11713
|
}
|
|
11707
|
-
const TGW_GONE_STATES = new Set([
|
|
11714
|
+
const TGW_GONE_STATES = /* @__PURE__ */ new Set([
|
|
11708
11715
|
"deleted",
|
|
11709
11716
|
"deleting",
|
|
11710
11717
|
"failed"
|
|
@@ -13327,7 +13334,7 @@ const readGlueTable = async ({ physicalId, declared, region }) => {
|
|
|
13327
13334
|
if (catalogId) model.CatalogId = catalogId;
|
|
13328
13335
|
return model;
|
|
13329
13336
|
};
|
|
13330
|
-
const GLUE_CLASSIFIER_MANAGED = new Set([
|
|
13337
|
+
const GLUE_CLASSIFIER_MANAGED = /* @__PURE__ */ new Set([
|
|
13331
13338
|
"Version",
|
|
13332
13339
|
"CreationTime",
|
|
13333
13340
|
"LastUpdated",
|
|
@@ -13377,7 +13384,7 @@ const readGlueWorkflow = async ({ physicalId, declared, region, accountId }) =>
|
|
|
13377
13384
|
}
|
|
13378
13385
|
return out;
|
|
13379
13386
|
};
|
|
13380
|
-
const GLUE_CONNECTION_MANAGED = new Set([
|
|
13387
|
+
const GLUE_CONNECTION_MANAGED = /* @__PURE__ */ new Set([
|
|
13381
13388
|
"CreationTime",
|
|
13382
13389
|
"LastUpdatedTime",
|
|
13383
13390
|
"LastUpdatedBy",
|
|
@@ -13902,10 +13909,11 @@ function isCognitoSyncRegionUnavailable(err) {
|
|
|
13902
13909
|
const readSesReceiptRuleSet = async ({ physicalId, declared, region }) => {
|
|
13903
13910
|
const name = str$1(physicalId) ?? str$1(declared.RuleSetName);
|
|
13904
13911
|
if (!name) return void 0;
|
|
13905
|
-
const
|
|
13912
|
+
const r = await new SESClient({
|
|
13906
13913
|
region,
|
|
13907
13914
|
...READ_RETRY
|
|
13908
|
-
}).send(new DescribeReceiptRuleSetCommand({ RuleSetName: name }))
|
|
13915
|
+
}).send(new DescribeReceiptRuleSetCommand({ RuleSetName: name }));
|
|
13916
|
+
const liveName = str$1(r.Metadata?.Name);
|
|
13909
13917
|
if (!liveName) return void 0;
|
|
13910
13918
|
return { RuleSetName: liveName };
|
|
13911
13919
|
};
|
|
@@ -14234,7 +14242,8 @@ const supplementElastiCacheReplicationGroup = async ({ physicalId, region }) =>
|
|
|
14234
14242
|
region,
|
|
14235
14243
|
...READ_RETRY
|
|
14236
14244
|
});
|
|
14237
|
-
const
|
|
14245
|
+
const rg = await c.send(new DescribeReplicationGroupsCommand({ ReplicationGroupId: id }));
|
|
14246
|
+
const member = firstStr(rg.ReplicationGroups?.[0]?.MemberClusters);
|
|
14238
14247
|
if (!member) return void 0;
|
|
14239
14248
|
const cluster = (await c.send(new DescribeCacheClustersCommand({
|
|
14240
14249
|
CacheClusterId: member,
|
|
@@ -14295,19 +14304,21 @@ const supplementEcsService = async ({ physicalId, declared, region }) => {
|
|
|
14295
14304
|
const supplementElastiCacheUser = async ({ physicalId, declared, region }) => {
|
|
14296
14305
|
const userId = str$1(declared.UserId) ?? str$1(physicalId);
|
|
14297
14306
|
if (!userId) return void 0;
|
|
14298
|
-
const
|
|
14307
|
+
const r = await new ElastiCacheClient({
|
|
14299
14308
|
region,
|
|
14300
14309
|
...READ_RETRY
|
|
14301
|
-
}).send(new DescribeUsersCommand({ UserId: userId }))
|
|
14310
|
+
}).send(new DescribeUsersCommand({ UserId: userId }));
|
|
14311
|
+
const access = str$1(r.Users?.[0]?.AccessString);
|
|
14302
14312
|
return access !== void 0 ? { AccessString: access } : void 0;
|
|
14303
14313
|
};
|
|
14304
14314
|
const supplementMemoryDbUser = async ({ physicalId, declared, region }) => {
|
|
14305
14315
|
const userName = str$1(declared.UserName) ?? str$1(physicalId);
|
|
14306
14316
|
if (!userName) return void 0;
|
|
14307
|
-
const
|
|
14317
|
+
const r = await new MemoryDBClient({
|
|
14308
14318
|
region,
|
|
14309
14319
|
...READ_RETRY
|
|
14310
|
-
}).send(new DescribeUsersCommand$1({ UserName: userName }))
|
|
14320
|
+
}).send(new DescribeUsersCommand$1({ UserName: userName }));
|
|
14321
|
+
const access = str$1(r.Users?.[0]?.AccessString);
|
|
14311
14322
|
return access !== void 0 ? { AccessString: access } : void 0;
|
|
14312
14323
|
};
|
|
14313
14324
|
const readMemoryDbParamMap = async (c, groupName) => {
|
|
@@ -14397,10 +14408,11 @@ const supplementMskConfiguration = async ({ physicalId, region }) => {
|
|
|
14397
14408
|
const supplementTrustStore = async ({ physicalId, region }) => {
|
|
14398
14409
|
const arn = str$1(physicalId);
|
|
14399
14410
|
if (!arn || !arn.startsWith("arn:")) return void 0;
|
|
14400
|
-
const
|
|
14411
|
+
const r = await new ElasticLoadBalancingV2Client({
|
|
14401
14412
|
region,
|
|
14402
14413
|
...READ_RETRY
|
|
14403
|
-
}).send(new GetTrustStoreCaCertificatesBundleCommand({ TrustStoreArn: arn }))
|
|
14414
|
+
}).send(new GetTrustStoreCaCertificatesBundleCommand({ TrustStoreArn: arn }));
|
|
14415
|
+
const url = str$1(r.Location);
|
|
14404
14416
|
if (!url) return void 0;
|
|
14405
14417
|
try {
|
|
14406
14418
|
const resp = await fetch(url, { signal: AbortSignal.timeout(CLIENT_REQUEST_HANDLER.requestTimeout) });
|
|
@@ -14414,29 +14426,32 @@ const supplementTrustStore = async ({ physicalId, region }) => {
|
|
|
14414
14426
|
const supplementLambdaFunction = async ({ physicalId, region }) => {
|
|
14415
14427
|
const name = str$1(physicalId);
|
|
14416
14428
|
if (!name) return void 0;
|
|
14417
|
-
const
|
|
14429
|
+
const r = await new LambdaClient({
|
|
14418
14430
|
region,
|
|
14419
14431
|
...READ_RETRY
|
|
14420
|
-
}).send(new GetFunctionCommand({ FunctionName: name }))
|
|
14432
|
+
}).send(new GetFunctionCommand({ FunctionName: name }));
|
|
14433
|
+
const sha = str$1(r.Configuration?.CodeSha256);
|
|
14421
14434
|
return sha !== void 0 ? { CodeSha256: sha } : void 0;
|
|
14422
14435
|
};
|
|
14423
14436
|
const supplementGlueJob = async ({ physicalId, region }) => {
|
|
14424
14437
|
const name = str$1(physicalId);
|
|
14425
14438
|
if (!name) return void 0;
|
|
14426
|
-
const
|
|
14439
|
+
const glue = new GlueClient({
|
|
14427
14440
|
region,
|
|
14428
14441
|
...READ_RETRY
|
|
14429
|
-
})
|
|
14442
|
+
});
|
|
14443
|
+
const loc = str$1((await glue.send(new GetJobCommand({ JobName: name }))).Job?.Command?.ScriptLocation);
|
|
14430
14444
|
const m = loc !== void 0 ? /^s3:\/\/([^/]+)\/(.+)$/.exec(loc) : null;
|
|
14431
14445
|
if (m === null) return void 0;
|
|
14432
14446
|
try {
|
|
14433
|
-
const
|
|
14447
|
+
const obj = await new S3Client({
|
|
14434
14448
|
region,
|
|
14435
14449
|
...READ_RETRY
|
|
14436
14450
|
}).send(new GetObjectCommand({
|
|
14437
14451
|
Bucket: m[1],
|
|
14438
14452
|
Key: m[2]
|
|
14439
|
-
}))
|
|
14453
|
+
}));
|
|
14454
|
+
const hash = sha256Hex(await obj.Body?.transformToByteArray());
|
|
14440
14455
|
return hash !== void 0 ? { ScriptSha256: hash } : void 0;
|
|
14441
14456
|
} catch {
|
|
14442
14457
|
return;
|
|
@@ -14759,10 +14774,10 @@ function supplementReadOnly(info, resourceType) {
|
|
|
14759
14774
|
const supplements = SCHEMA_READONLY_SUPPLEMENTS[resourceType];
|
|
14760
14775
|
if (!supplements?.length) return info;
|
|
14761
14776
|
const dotted = supplements.map(pointerToDotted$1);
|
|
14762
|
-
const readOnlyPaths = [
|
|
14777
|
+
const readOnlyPaths = [.../* @__PURE__ */ new Set([...info.readOnlyPaths, ...dotted])];
|
|
14763
14778
|
return {
|
|
14764
14779
|
...info,
|
|
14765
|
-
readOnly: new Set([...info.readOnly, ...dotted.filter((p) => !p.includes("."))]),
|
|
14780
|
+
readOnly: /* @__PURE__ */ new Set([...info.readOnly, ...dotted.filter((p) => !p.includes("."))]),
|
|
14766
14781
|
readOnlyPaths
|
|
14767
14782
|
};
|
|
14768
14783
|
}
|
|
@@ -14846,7 +14861,7 @@ function collectDefaultPaths(definitions, properties) {
|
|
|
14846
14861
|
for (const [k, child] of Object.entries(properties)) walk(child, k, /* @__PURE__ */ new Set(), 0);
|
|
14847
14862
|
return out;
|
|
14848
14863
|
}
|
|
14849
|
-
const SCALAR_TYPES = new Set([
|
|
14864
|
+
const SCALAR_TYPES = /* @__PURE__ */ new Set([
|
|
14850
14865
|
"string",
|
|
14851
14866
|
"number",
|
|
14852
14867
|
"integer",
|
|
@@ -15186,7 +15201,7 @@ function liveModelMap(reads) {
|
|
|
15186
15201
|
for (const [logicalId, read] of reads) if (read.live) out.set(logicalId, read.live);
|
|
15187
15202
|
return out;
|
|
15188
15203
|
}
|
|
15189
|
-
const DEFAULT_SG_LIST_TYPES = new Set([
|
|
15204
|
+
const DEFAULT_SG_LIST_TYPES = /* @__PURE__ */ new Set([
|
|
15190
15205
|
"AWS::ElasticLoadBalancingV2::LoadBalancer",
|
|
15191
15206
|
"AWS::EC2::NetworkInterface",
|
|
15192
15207
|
"AWS::Neptune::DBCluster",
|
|
@@ -15204,8 +15219,8 @@ const DEFAULT_SG_LIST_TYPES = new Set([
|
|
|
15204
15219
|
"AWS::EC2::VPCEndpoint",
|
|
15205
15220
|
"AWS::ElastiCache::ServerlessCache"
|
|
15206
15221
|
]);
|
|
15207
|
-
const DEFAULT_SUBNET_LIST_TYPES = new Set(["AWS::RedshiftServerless::Workgroup", "AWS::ElastiCache::ServerlessCache"]);
|
|
15208
|
-
const EB_SG_OPTION_KEYS = new Set(["aws:elb:loadbalancer|SecurityGroups", "aws:autoscaling:launchconfiguration|SecurityGroups"]);
|
|
15222
|
+
const DEFAULT_SUBNET_LIST_TYPES = /* @__PURE__ */ new Set(["AWS::RedshiftServerless::Workgroup", "AWS::ElastiCache::ServerlessCache"]);
|
|
15223
|
+
const EB_SG_OPTION_KEYS = /* @__PURE__ */ new Set(["aws:elb:loadbalancer|SecurityGroups", "aws:autoscaling:launchconfiguration|SecurityGroups"]);
|
|
15209
15224
|
function collectEbSecurityGroupIds(resources, liveById) {
|
|
15210
15225
|
const ids = /* @__PURE__ */ new Set();
|
|
15211
15226
|
for (const r of resources) {
|
|
@@ -15456,7 +15471,7 @@ function addedFinding(parent, c, read) {
|
|
|
15456
15471
|
...read.ok ? {} : { modelReadFailed: true }
|
|
15457
15472
|
};
|
|
15458
15473
|
}
|
|
15459
|
-
const CC_GET_UNSUPPORTED_ADDED_TYPES = new Set([
|
|
15474
|
+
const CC_GET_UNSUPPORTED_ADDED_TYPES = /* @__PURE__ */ new Set([
|
|
15460
15475
|
"AWS::Route53::RecordSet",
|
|
15461
15476
|
"AWS::SQS::QueuePolicy",
|
|
15462
15477
|
"AWS::SecretsManager::ResourcePolicy",
|
|
@@ -16046,7 +16061,7 @@ function buildEcsBgGovernedListenerRules(desired) {
|
|
|
16046
16061
|
ruleIds = rl !== void 0 ? ruleIdsByLogicalId.get(rl) : [ruleRef];
|
|
16047
16062
|
}
|
|
16048
16063
|
if (!ruleIds) continue;
|
|
16049
|
-
for (const id of ruleIds) out[id] = [
|
|
16064
|
+
for (const id of ruleIds) out[id] = [.../* @__PURE__ */ new Set([...out[id] ?? [], ...allowed])];
|
|
16050
16065
|
}
|
|
16051
16066
|
}
|
|
16052
16067
|
}
|
|
@@ -16673,7 +16688,7 @@ function redactedHashOf(sentinelOrCanonical) {
|
|
|
16673
16688
|
//#endregion
|
|
16674
16689
|
//#region src/baseline/baseline-file.ts
|
|
16675
16690
|
const OBSERVED_DEFAULT_TRACKED_PATHS = { "AWS::S3::Bucket": ["PublicAccessBlockConfiguration"] };
|
|
16676
|
-
const KNOWN_BASELINE_KEYS = new Set([
|
|
16691
|
+
const KNOWN_BASELINE_KEYS = /* @__PURE__ */ new Set([
|
|
16677
16692
|
"schemaVersion",
|
|
16678
16693
|
"stackName",
|
|
16679
16694
|
"region",
|
|
@@ -16687,13 +16702,13 @@ const KNOWN_BASELINE_KEYS = new Set([
|
|
|
16687
16702
|
"observedDefaults",
|
|
16688
16703
|
"enumeratedParents"
|
|
16689
16704
|
]);
|
|
16690
|
-
const KNOWN_RECORDED_ENTRY_KEYS = new Set([
|
|
16705
|
+
const KNOWN_RECORDED_ENTRY_KEYS = /* @__PURE__ */ new Set([
|
|
16691
16706
|
"logicalId",
|
|
16692
16707
|
"resourceType",
|
|
16693
16708
|
"path",
|
|
16694
16709
|
"value"
|
|
16695
16710
|
]);
|
|
16696
|
-
const RESERVED_DOS_DEVICE_NAMES = new Set([
|
|
16711
|
+
const RESERVED_DOS_DEVICE_NAMES = /* @__PURE__ */ new Set([
|
|
16697
16712
|
"CON",
|
|
16698
16713
|
"PRN",
|
|
16699
16714
|
"AUX",
|
|
@@ -16896,7 +16911,7 @@ function sortRecorded(recorded) {
|
|
|
16896
16911
|
* fresh AWS defaults now "appear since record", surfaces as false drift). Sorted keys keep
|
|
16897
16912
|
* the JSON byte-stable; a logicalId neither recorded nor complete is dropped as dead. */
|
|
16898
16913
|
function sortedPhysicalIds(ids, recorded, complete) {
|
|
16899
|
-
const persist = new Set([...recorded.map((e) => e.logicalId), ...complete]);
|
|
16914
|
+
const persist = /* @__PURE__ */ new Set([...recorded.map((e) => e.logicalId), ...complete]);
|
|
16900
16915
|
const out = {};
|
|
16901
16916
|
for (const key of Object.keys(ids).sort()) if (persist.has(key) && ids[key] !== void 0) out[key] = ids[key];
|
|
16902
16917
|
return out;
|
|
@@ -16976,7 +16991,7 @@ function computeCompleteResources(allLogicalIds, findings, recorded, previousCom
|
|
|
16976
16991
|
* (read clean) would be invisible here; `opts.previous` keeps completeness
|
|
16977
16992
|
* monotonic across re-records. */
|
|
16978
16993
|
async function writeBaseline(stackName, region, accountId, findings, rawTemplate, recorded = buildRecorded(findings), opts = {}) {
|
|
16979
|
-
const completeResources = computeCompleteResources(opts.allLogicalIds ?? [
|
|
16994
|
+
const completeResources = computeCompleteResources(opts.allLogicalIds ?? [.../* @__PURE__ */ new Set([...findings.map((f) => f.logicalId), ...recorded.map((a) => a.logicalId)])], findings, recorded, opts.previous?.completeResources ?? []);
|
|
16980
16995
|
return {
|
|
16981
16996
|
path: await writeBaselineFile({
|
|
16982
16997
|
schemaVersion: 2,
|
|
@@ -17070,7 +17085,7 @@ function buildObservedDefaults(findings, previous) {
|
|
|
17070
17085
|
function buildRecordedPhysicalIds(recorded, complete, live, previous) {
|
|
17071
17086
|
const prior = previous?.recordedPhysicalIds ?? {};
|
|
17072
17087
|
const out = {};
|
|
17073
|
-
for (const logicalId of new Set([...recorded.map((e) => e.logicalId), ...complete])) {
|
|
17088
|
+
for (const logicalId of /* @__PURE__ */ new Set([...recorded.map((e) => e.logicalId), ...complete])) {
|
|
17074
17089
|
const id = live?.get(logicalId) ?? prior[logicalId];
|
|
17075
17090
|
if (id !== void 0) out[logicalId] = id;
|
|
17076
17091
|
}
|
|
@@ -17092,8 +17107,8 @@ function checkBaselineAccount(baseline, currentAccountId, stackName, warn = cons
|
|
|
17092
17107
|
if (currentAccountId && baseline.accountId !== currentAccountId) throw new Error(`baseline file for ${stackName} was captured in account ${baseline.accountId}, but the current account is ${currentAccountId} (the file was likely copied or renamed to the wrong account path). Baselines are per-account — run \`cdkrd record\` to write this account's own baseline file, or restore the correct file from git.`);
|
|
17093
17108
|
}
|
|
17094
17109
|
const RECORDABLE_GENERATED_PATHS = {
|
|
17095
|
-
"AWS::Lambda::Function": new Set(["CodeSha256"]),
|
|
17096
|
-
"AWS::Glue::Job": new Set(["ScriptSha256"])
|
|
17110
|
+
"AWS::Lambda::Function": /* @__PURE__ */ new Set(["CodeSha256"]),
|
|
17111
|
+
"AWS::Glue::Job": /* @__PURE__ */ new Set(["ScriptSha256"])
|
|
17097
17112
|
};
|
|
17098
17113
|
function isRecordableGenerated(f) {
|
|
17099
17114
|
return f.tier === "generated" && (RECORDABLE_GENERATED_PATHS[f.resourceType]?.has(f.path) ?? false);
|
|
@@ -17945,24 +17960,27 @@ function formatFinding(f, stackName = "") {
|
|
|
17945
17960
|
if (f.note) s += ` — ${sanitizeForTerminal(f.note)}`;
|
|
17946
17961
|
const rt = f.resourceType;
|
|
17947
17962
|
const rd = (v) => redactValue(rt, f.path, v);
|
|
17948
|
-
if (f.tier === "declared")
|
|
17949
|
-
|
|
17950
|
-
|
|
17951
|
-
|
|
17952
|
-
|
|
17953
|
-
|
|
17954
|
-
else {
|
|
17955
|
-
|
|
17956
|
-
|
|
17957
|
-
|
|
17958
|
-
|
|
17963
|
+
if (f.tier === "declared") {
|
|
17964
|
+
if (isRecord(f.desired) && isRecord(f.actual)) s += formatMapDelta(f.desired, f.actual, false, rt, f.path);
|
|
17965
|
+
else {
|
|
17966
|
+
const { a: d, b: act } = jPair(rd(f.desired), rd(f.actual));
|
|
17967
|
+
s += `\n desired=${style.desired(d)}\n actual =${style.actual(act)}`;
|
|
17968
|
+
}
|
|
17969
|
+
} else if (f.tier === "added" && f.desired !== void 0) {
|
|
17970
|
+
if (isRecord(f.desired) && isRecord(f.actual)) s += formatMapDelta(f.desired, f.actual, true, rt, f.path);
|
|
17971
|
+
else {
|
|
17972
|
+
const { a: base, b: act } = jPair(rd(f.desired), rd(f.actual));
|
|
17973
|
+
s += `\n baseline=${style.desired(base)}\n actual =${style.actual(act)}`;
|
|
17974
|
+
}
|
|
17975
|
+
} else if (f.tier === "added" && f.actual !== void 0) s += `\n actual =${style.actual(j(rd(f.actual)))}`;
|
|
17959
17976
|
else if (f.tier === "undeclared" && f.arrayDelta) s += formatArrayDelta(f.arrayDelta, rt, f.path);
|
|
17960
|
-
else if (f.tier === "undeclared" && f.desired !== void 0)
|
|
17961
|
-
|
|
17962
|
-
|
|
17963
|
-
|
|
17964
|
-
|
|
17965
|
-
|
|
17977
|
+
else if (f.tier === "undeclared" && f.desired !== void 0) {
|
|
17978
|
+
if (isRecord(f.desired) && isRecord(f.actual)) s += formatMapDelta(f.desired, f.actual, true, rt, f.path);
|
|
17979
|
+
else {
|
|
17980
|
+
const { a: base, b: act } = jPair(rd(f.desired), rd(f.actual));
|
|
17981
|
+
s += `\n baseline=${style.desired(base)}\n actual =${style.actual(act)}`;
|
|
17982
|
+
}
|
|
17983
|
+
} else if (f.tier === "undeclared" || f.tier === "atDefault" || f.tier === "generated") s += `\n actual =${style.actual(j(rd(f.actual)))}`;
|
|
17966
17984
|
if (f.hint) s += `\n ${style.note(`↳ ${sanitizeForTerminal(f.hint)}`)}`;
|
|
17967
17985
|
return s;
|
|
17968
17986
|
}
|
|
@@ -17970,12 +17988,13 @@ const isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v)
|
|
|
17970
17988
|
function formatMapDelta(desired, actual, baselineLabels, resourceType, basePath) {
|
|
17971
17989
|
const lhs = baselineLabels ? "baseline" : "desired";
|
|
17972
17990
|
const rhs = baselineLabels ? "actual " : "actual ";
|
|
17973
|
-
const keys = [
|
|
17991
|
+
const keys = [.../* @__PURE__ */ new Set([...Object.keys(desired), ...Object.keys(actual)])].sort();
|
|
17974
17992
|
const rd = (k, v) => resourceType !== void 0 && basePath !== void 0 ? redactValue(resourceType, `${basePath}.${k}`, v) : v;
|
|
17975
17993
|
let s = "";
|
|
17976
17994
|
for (const k of keys) {
|
|
17977
17995
|
const inD = Object.hasOwn(desired, k);
|
|
17978
|
-
|
|
17996
|
+
const inA = Object.hasOwn(actual, k);
|
|
17997
|
+
if (inD && inA) {
|
|
17979
17998
|
if (deepEqual(desired[k], actual[k])) continue;
|
|
17980
17999
|
const { a, b } = jPair(rd(k, desired[k]), rd(k, actual[k]));
|
|
17981
18000
|
const sk = sanitizeForTerminal(k);
|
|
@@ -18463,7 +18482,7 @@ const isArn = (v) => {
|
|
|
18463
18482
|
return s && s.startsWith("arn:") ? s : void 0;
|
|
18464
18483
|
};
|
|
18465
18484
|
const topSeg = (path) => path.split("/").filter(Boolean)[0] ?? "";
|
|
18466
|
-
const ATTACHMENT_PROPS = new Set([
|
|
18485
|
+
const ATTACHMENT_PROPS = /* @__PURE__ */ new Set([
|
|
18467
18486
|
"Roles",
|
|
18468
18487
|
"Users",
|
|
18469
18488
|
"Groups"
|
|
@@ -18600,7 +18619,7 @@ const writeServiceDiscoveryHttpNamespace = async (ctx, ops) => {
|
|
|
18600
18619
|
Namespace: { Description: str(m.Description) ?? "" }
|
|
18601
18620
|
}));
|
|
18602
18621
|
};
|
|
18603
|
-
const SD_SERVICE_MUTABLE_TOPS = new Set([
|
|
18622
|
+
const SD_SERVICE_MUTABLE_TOPS = /* @__PURE__ */ new Set([
|
|
18604
18623
|
"Description",
|
|
18605
18624
|
"DnsConfig",
|
|
18606
18625
|
"HealthCheckConfig"
|
|
@@ -18662,7 +18681,7 @@ const writeSageMakerMonitoringSchedule = async (ctx, ops) => {
|
|
|
18662
18681
|
MonitoringScheduleConfig: config
|
|
18663
18682
|
}));
|
|
18664
18683
|
};
|
|
18665
|
-
const DOCDB_CLUSTER_MODIFY_PARAMS = new Set([
|
|
18684
|
+
const DOCDB_CLUSTER_MODIFY_PARAMS = /* @__PURE__ */ new Set([
|
|
18666
18685
|
"BackupRetentionPeriod",
|
|
18667
18686
|
"PreferredBackupWindow",
|
|
18668
18687
|
"PreferredMaintenanceWindow",
|
|
@@ -18692,7 +18711,7 @@ const writeDocDbCluster = async (ctx, ops) => {
|
|
|
18692
18711
|
}).send(new ModifyDBClusterCommand(input));
|
|
18693
18712
|
assertOpsConsumed("DocDB DBCluster", ops, DOCDB_CLUSTER_MODIFY_PARAMS);
|
|
18694
18713
|
};
|
|
18695
|
-
const DOCDB_INSTANCE_MODIFY_PARAMS = new Set([
|
|
18714
|
+
const DOCDB_INSTANCE_MODIFY_PARAMS = /* @__PURE__ */ new Set([
|
|
18696
18715
|
"DBInstanceClass",
|
|
18697
18716
|
"PreferredMaintenanceWindow",
|
|
18698
18717
|
"CACertificateIdentifier",
|
|
@@ -19198,7 +19217,7 @@ const writeConfigConfigurationRecorder = async (ctx, ops) => {
|
|
|
19198
19217
|
...CLIENT_TIMEOUTS
|
|
19199
19218
|
}).send(new PutConfigurationRecorderCommand({ ConfigurationRecorder: recorder }));
|
|
19200
19219
|
};
|
|
19201
|
-
const OS_UPDATABLE_OPTIONS = new Set([
|
|
19220
|
+
const OS_UPDATABLE_OPTIONS = /* @__PURE__ */ new Set([
|
|
19202
19221
|
"ClusterConfig",
|
|
19203
19222
|
"EBSOptions",
|
|
19204
19223
|
"SnapshotOptions",
|
|
@@ -19324,7 +19343,8 @@ function apigwKnobPatches(op) {
|
|
|
19324
19343
|
}));
|
|
19325
19344
|
}
|
|
19326
19345
|
const ir = segs[1]?.match(/^IntegrationResponses\[(.+)\]$/);
|
|
19327
|
-
const
|
|
19346
|
+
const field = (ir ? segs[2] : segs[1]) ?? "";
|
|
19347
|
+
const knob = APIGW_KNOB_RESET[field];
|
|
19328
19348
|
if (!knob) throw new Error(`unsupported ApiGateway method knob: ${op.path}`);
|
|
19329
19349
|
const value = op.op === "add" ? String(op.value) : knob.resetTo;
|
|
19330
19350
|
const patch = {
|
|
@@ -19474,9 +19494,11 @@ const writeCodeBuildProject = async (ctx, ops) => {
|
|
|
19474
19494
|
const apiKey = CODEBUILD_PROJECT_MODIFY_PARAMS[top];
|
|
19475
19495
|
if (!apiKey) continue;
|
|
19476
19496
|
let val = desired[top];
|
|
19477
|
-
if (val === void 0)
|
|
19478
|
-
|
|
19479
|
-
|
|
19497
|
+
if (val === void 0) {
|
|
19498
|
+
if (top === "Description" || top === "SourceVersion") val = "";
|
|
19499
|
+
else if (top === "ConcurrentBuildLimit") val = -1;
|
|
19500
|
+
else throw new Error(`CodeBuild Project ${top} cannot be cleared via UpdateProject (a selective modify keeps an omitted field); update it manually`);
|
|
19501
|
+
}
|
|
19480
19502
|
input[apiKey] = val;
|
|
19481
19503
|
any = true;
|
|
19482
19504
|
}
|
|
@@ -19501,8 +19523,10 @@ const writeMediaConvertQueue = async (ctx, ops) => {
|
|
|
19501
19523
|
const apiKey = MEDIACONVERT_QUEUE_MODIFY_PARAMS[top];
|
|
19502
19524
|
if (!apiKey) continue;
|
|
19503
19525
|
let val = desired[top];
|
|
19504
|
-
if (val === void 0)
|
|
19505
|
-
|
|
19526
|
+
if (val === void 0) {
|
|
19527
|
+
if (top === "Description") val = "";
|
|
19528
|
+
else throw new Error(`MediaConvert Queue ${top} cannot be cleared via UpdateQueue; update it manually`);
|
|
19529
|
+
}
|
|
19506
19530
|
input[apiKey] = val;
|
|
19507
19531
|
any = true;
|
|
19508
19532
|
}
|
|
@@ -19530,8 +19554,10 @@ const writeDaxCluster = async (ctx, ops) => {
|
|
|
19530
19554
|
const apiKey = DAX_CLUSTER_MODIFY_PARAMS[top];
|
|
19531
19555
|
if (!apiKey) continue;
|
|
19532
19556
|
let val = desired[top];
|
|
19533
|
-
if (val === void 0)
|
|
19534
|
-
|
|
19557
|
+
if (val === void 0) {
|
|
19558
|
+
if (top === "NotificationTopicARN" || top === "Description") val = "";
|
|
19559
|
+
else throw new Error(`DAX Cluster ${top} cannot be cleared via UpdateCluster (its unset state is AWS-assigned, not expressible in a selective modify); update it manually`);
|
|
19560
|
+
}
|
|
19535
19561
|
input[apiKey] = val;
|
|
19536
19562
|
any = true;
|
|
19537
19563
|
}
|
|
@@ -19644,7 +19670,7 @@ const writeMemoryDbParameterGroup = async (ctx, ops) => {
|
|
|
19644
19670
|
ParameterNames: reset
|
|
19645
19671
|
}));
|
|
19646
19672
|
};
|
|
19647
|
-
const CLIENT_VPN_SCALAR_PARAMS = new Set([
|
|
19673
|
+
const CLIENT_VPN_SCALAR_PARAMS = /* @__PURE__ */ new Set([
|
|
19648
19674
|
"Description",
|
|
19649
19675
|
"SplitTunnel",
|
|
19650
19676
|
"VpnPort",
|
|
@@ -19664,16 +19690,18 @@ const writeEc2ClientVpnEndpoint = async (ctx, ops) => {
|
|
|
19664
19690
|
if (desired[top] !== void 0) {
|
|
19665
19691
|
input[top] = desired[top];
|
|
19666
19692
|
any = true;
|
|
19667
|
-
} else if (removed(top))
|
|
19668
|
-
|
|
19669
|
-
|
|
19670
|
-
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19675
|
-
|
|
19676
|
-
|
|
19693
|
+
} else if (removed(top)) {
|
|
19694
|
+
if (top === "Description") {
|
|
19695
|
+
input.Description = "";
|
|
19696
|
+
any = true;
|
|
19697
|
+
} else if (top === "SplitTunnel") {
|
|
19698
|
+
input.SplitTunnel = false;
|
|
19699
|
+
any = true;
|
|
19700
|
+
} else if (top === "DisconnectOnSessionTimeout") {
|
|
19701
|
+
input.DisconnectOnSessionTimeout = false;
|
|
19702
|
+
any = true;
|
|
19703
|
+
} else unExpressible.push(top);
|
|
19704
|
+
}
|
|
19677
19705
|
} else if (top === "ConnectionLogOptions") {
|
|
19678
19706
|
if (desired.ConnectionLogOptions !== void 0) {
|
|
19679
19707
|
input.ConnectionLogOptions = desired.ConnectionLogOptions;
|
|
@@ -19774,7 +19802,7 @@ const writeLexBotLocales = async (ctx, ops) => {
|
|
|
19774
19802
|
for (const dst of declaredSlotTypes) {
|
|
19775
19803
|
const name = lexStr(dst.Name);
|
|
19776
19804
|
if (!name || slotTypeNameToId.has(name)) continue;
|
|
19777
|
-
const
|
|
19805
|
+
const created = await c.send(new CreateSlotTypeCommand({
|
|
19778
19806
|
botId,
|
|
19779
19807
|
botVersion,
|
|
19780
19808
|
localeId,
|
|
@@ -19782,7 +19810,8 @@ const writeLexBotLocales = async (ctx, ops) => {
|
|
|
19782
19810
|
description: lexStr(dst.Description),
|
|
19783
19811
|
slotTypeValues: lexMapSlotTypeValues(dst),
|
|
19784
19812
|
valueSelectionSetting: { resolutionStrategy: lexResolutionStrategy(dst) ?? "OriginalValue" }
|
|
19785
|
-
}))
|
|
19813
|
+
}));
|
|
19814
|
+
const newId = lexStr(created.slotTypeId);
|
|
19786
19815
|
if (newId) slotTypeNameToId.set(name, newId);
|
|
19787
19816
|
}
|
|
19788
19817
|
const resolveSlotTypeId = (name) => name === void 0 ? void 0 : name.startsWith("AMAZON.") ? name : slotTypeNameToId.get(name);
|
|
@@ -19843,7 +19872,7 @@ const writeLexBotLocales = async (ctx, ops) => {
|
|
|
19843
19872
|
for (const di of declaredIntents) {
|
|
19844
19873
|
const name = lexStr(di.Name);
|
|
19845
19874
|
if (!name || isBuiltinIntent(name) || intentNameToId.has(name)) continue;
|
|
19846
|
-
const
|
|
19875
|
+
const created = await c.send(new CreateIntentCommand({
|
|
19847
19876
|
botId,
|
|
19848
19877
|
botVersion,
|
|
19849
19878
|
localeId,
|
|
@@ -19851,7 +19880,8 @@ const writeLexBotLocales = async (ctx, ops) => {
|
|
|
19851
19880
|
description: lexStr(di.Description),
|
|
19852
19881
|
parentIntentSignature: lexStr(di.ParentIntentSignature),
|
|
19853
19882
|
sampleUtterances: lexMapUtterances(di)
|
|
19854
|
-
}))
|
|
19883
|
+
}));
|
|
19884
|
+
const newId = lexStr(created.intentId);
|
|
19855
19885
|
if (newId) intentNameToId.set(name, newId);
|
|
19856
19886
|
}
|
|
19857
19887
|
for (const di of declaredIntents) {
|
|
@@ -19888,7 +19918,7 @@ const writeLexBotLocales = async (ctx, ops) => {
|
|
|
19888
19918
|
const elic = { slotConstraint: lexStr(declaredElic?.SlotConstraint) ?? "Optional" };
|
|
19889
19919
|
const prompt = lexBuildPrompt(declaredElic?.PromptSpecification);
|
|
19890
19920
|
if (prompt !== void 0) elic.promptSpecification = prompt;
|
|
19891
|
-
const
|
|
19921
|
+
const created = await c.send(new CreateSlotCommand({
|
|
19892
19922
|
botId,
|
|
19893
19923
|
botVersion,
|
|
19894
19924
|
localeId,
|
|
@@ -19897,7 +19927,8 @@ const writeLexBotLocales = async (ctx, ops) => {
|
|
|
19897
19927
|
slotTypeId: resolveSlotTypeId(lexStr(ds.SlotTypeName)),
|
|
19898
19928
|
description: lexStr(ds.Description),
|
|
19899
19929
|
valueElicitationSetting: elic
|
|
19900
|
-
}))
|
|
19930
|
+
}));
|
|
19931
|
+
const newId = lexStr(created.slotId);
|
|
19901
19932
|
if (newId) slotNameToId.set(sName, newId);
|
|
19902
19933
|
}
|
|
19903
19934
|
for (const [name, slotId] of slotNameToId) {
|
|
@@ -20029,7 +20060,7 @@ const writeLexBotLocales = async (ctx, ops) => {
|
|
|
20029
20060
|
}
|
|
20030
20061
|
}
|
|
20031
20062
|
};
|
|
20032
|
-
const EB_APPLICATION_MODIFY_PARAMS = new Set(["Description"]);
|
|
20063
|
+
const EB_APPLICATION_MODIFY_PARAMS = /* @__PURE__ */ new Set(["Description"]);
|
|
20033
20064
|
const EB_APPLICATION_DEFAULT_RESOURCE_LIFECYCLE = { VersionLifecycleConfig: {
|
|
20034
20065
|
MaxCountRule: {
|
|
20035
20066
|
DeleteSourceFromS3: false,
|
|
@@ -20068,9 +20099,9 @@ const writeElasticBeanstalkApplication = async (ctx, ops) => {
|
|
|
20068
20099
|
ApplicationName: name,
|
|
20069
20100
|
ResourceLifecycleConfig: lifecycle
|
|
20070
20101
|
}));
|
|
20071
|
-
assertOpsConsumed("ElasticBeanstalk Application", ops, new Set([...EB_APPLICATION_MODIFY_PARAMS, "ResourceLifecycleConfig"]));
|
|
20102
|
+
assertOpsConsumed("ElasticBeanstalk Application", ops, /* @__PURE__ */ new Set([...EB_APPLICATION_MODIFY_PARAMS, "ResourceLifecycleConfig"]));
|
|
20072
20103
|
};
|
|
20073
|
-
const EB_ENVIRONMENT_MODIFY_PARAMS = new Set(["Description"]);
|
|
20104
|
+
const EB_ENVIRONMENT_MODIFY_PARAMS = /* @__PURE__ */ new Set(["Description"]);
|
|
20074
20105
|
const writeElasticBeanstalkEnvironment = async (ctx, ops) => {
|
|
20075
20106
|
const name = str(ctx.physicalId) ?? str(ctx.declared["EnvironmentName"]);
|
|
20076
20107
|
if (!name) throw new Error("cannot resolve Elastic Beanstalk EnvironmentName for revert");
|
|
@@ -20154,7 +20185,7 @@ const writeKinesisVideoStreamStorage = async (ctx, ops) => {
|
|
|
20154
20185
|
StreamStorageConfiguration: { DefaultStorageTier: target }
|
|
20155
20186
|
}));
|
|
20156
20187
|
};
|
|
20157
|
-
const APIGWV2_STAGE_UPDATE_FIELDS = new Set([
|
|
20188
|
+
const APIGWV2_STAGE_UPDATE_FIELDS = /* @__PURE__ */ new Set([
|
|
20158
20189
|
"DefaultRouteSettings",
|
|
20159
20190
|
"RouteSettings",
|
|
20160
20191
|
"AccessLogSettings",
|
|
@@ -20259,8 +20290,8 @@ const writeBudget = async (ctx, ops) => {
|
|
|
20259
20290
|
}));
|
|
20260
20291
|
};
|
|
20261
20292
|
const LAMBDA_PERMISSION_PROJECTED_CONDITIONS = {
|
|
20262
|
-
ArnLike: new Set(["AWS:SourceArn"]),
|
|
20263
|
-
StringEquals: new Set([
|
|
20293
|
+
ArnLike: /* @__PURE__ */ new Set(["AWS:SourceArn"]),
|
|
20294
|
+
StringEquals: /* @__PURE__ */ new Set([
|
|
20264
20295
|
"AWS:SourceAccount",
|
|
20265
20296
|
"aws:PrincipalOrgID",
|
|
20266
20297
|
"lambda:FunctionUrlAuthType"
|
|
@@ -20308,7 +20339,7 @@ const writeLambdaPermission = async (ctx, ops) => {
|
|
|
20308
20339
|
FunctionUrlAuthType: str(desired["FunctionUrlAuthType"])
|
|
20309
20340
|
}));
|
|
20310
20341
|
};
|
|
20311
|
-
const SDK_REBUILD_WRITER_TYPES = new Set(["AWS::Lambda::Permission"]);
|
|
20342
|
+
const SDK_REBUILD_WRITER_TYPES = /* @__PURE__ */ new Set(["AWS::Lambda::Permission"]);
|
|
20312
20343
|
const SDK_WRITERS = {
|
|
20313
20344
|
"AWS::Lambda::Permission": writeLambdaPermission,
|
|
20314
20345
|
"AWS::Budgets::Budget": writeBudget,
|
|
@@ -20391,7 +20422,7 @@ function reindexNestedPointer(pointer, live, resourceType) {
|
|
|
20391
20422
|
return `/${out.join("/")}`;
|
|
20392
20423
|
}
|
|
20393
20424
|
const NESTED_POLL_INTERVAL_MS = 2e3;
|
|
20394
|
-
const NESTED_POLL_TIMEOUT_MS =
|
|
20425
|
+
const NESTED_POLL_TIMEOUT_MS = 9e5;
|
|
20395
20426
|
const NESTED_MAX_POLL_READ_FAILURES = 10;
|
|
20396
20427
|
const nestedSleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
20397
20428
|
async function pollNestedToCompletion(cc, first, poll = {}) {
|
|
@@ -20626,12 +20657,12 @@ const SYNTHETIC_READ_SIGNAL_PATHS = {
|
|
|
20626
20657
|
"AWS::Glue::Job": ["ScriptSha256"]
|
|
20627
20658
|
};
|
|
20628
20659
|
const WRITEONLY_REINCLUDE_SKIP = { "AWS::Lambda::Function": ["Code"] };
|
|
20629
|
-
const CC_REVERTABLE_DESPITE_READ_OVERRIDE = new Set([
|
|
20660
|
+
const CC_REVERTABLE_DESPITE_READ_OVERRIDE = /* @__PURE__ */ new Set([
|
|
20630
20661
|
"AWS::Scheduler::Schedule",
|
|
20631
20662
|
"AWS::Cognito::IdentityPool",
|
|
20632
20663
|
"AWS::EC2::EIP"
|
|
20633
20664
|
]);
|
|
20634
|
-
const REVERT_SET_DEFAULT_PATHS = new Set([
|
|
20665
|
+
const REVERT_SET_DEFAULT_PATHS = /* @__PURE__ */ new Set([
|
|
20635
20666
|
"AWS::ElastiCache::ServerlessCache\0Description",
|
|
20636
20667
|
"AWS::EC2::CapacityReservation\0InstanceMatchCriteria",
|
|
20637
20668
|
"AWS::EC2::CapacityReservation\0EndDateType",
|
|
@@ -20935,7 +20966,7 @@ function splitTopLevelDots(dotted) {
|
|
|
20935
20966
|
function toPointer(dotted) {
|
|
20936
20967
|
return "/" + splitTopLevelDots(dotted).map((s) => s.replace(/~/g, "~0").replace(/\//g, "~1")).join("/");
|
|
20937
20968
|
}
|
|
20938
|
-
const DRIFT_TIERS = new Set(["declared", "undeclared"]);
|
|
20969
|
+
const DRIFT_TIERS = /* @__PURE__ */ new Set(["declared", "undeclared"]);
|
|
20939
20970
|
const SG_REVERT_SIDE = {
|
|
20940
20971
|
SecurityGroupIngress: "ingress",
|
|
20941
20972
|
SecurityGroupEgress: "egress"
|
|
@@ -20957,7 +20988,7 @@ function isUnderCreateOnly(findingPath, createOnlyPaths) {
|
|
|
20957
20988
|
}
|
|
20958
20989
|
return false;
|
|
20959
20990
|
}
|
|
20960
|
-
const CC_DELETE_UNSUPPORTED_ADDED_TYPES = new Set(["AWS::EC2::NetworkAclEntry", "AWS::Route53::RecordSet"]);
|
|
20991
|
+
const CC_DELETE_UNSUPPORTED_ADDED_TYPES = /* @__PURE__ */ new Set(["AWS::EC2::NetworkAclEntry", "AWS::Route53::RecordSet"]);
|
|
20961
20992
|
function buildRevertPlan(findings, baseline, opts = {}) {
|
|
20962
20993
|
const itemsByLogical = /* @__PURE__ */ new Map();
|
|
20963
20994
|
const notRevertable = [];
|
|
@@ -21426,7 +21457,7 @@ function tagPreservingOps(ops, liveRaw) {
|
|
|
21426
21457
|
});
|
|
21427
21458
|
return changed ? out : ops;
|
|
21428
21459
|
}
|
|
21429
|
-
const CC_UPDATE_REJECTED_TYPES = new Set(["AWS::KinesisVideo::Stream", "AWS::KinesisVideo::SignalingChannel"]);
|
|
21460
|
+
const CC_UPDATE_REJECTED_TYPES = /* @__PURE__ */ new Set(["AWS::KinesisVideo::Stream", "AWS::KinesisVideo::SignalingChannel"]);
|
|
21430
21461
|
const CC_UPDATE_REJECTED_EMPTY_PATHS = {
|
|
21431
21462
|
"AWS::VpcLattice::Rule": ["/Match/HttpMatch/HeaderMatches"],
|
|
21432
21463
|
"AWS::ImageBuilder::DistributionConfiguration": [
|
|
@@ -21554,7 +21585,7 @@ function toPatchDocument(item, liveRaw = item.liveRaw) {
|
|
|
21554
21585
|
//#endregion
|
|
21555
21586
|
//#region src/revert/apply.ts
|
|
21556
21587
|
const POLL_INTERVAL_MS = 2e3;
|
|
21557
|
-
const TIMEOUT_MS =
|
|
21588
|
+
const TIMEOUT_MS = 9e5;
|
|
21558
21589
|
const MAX_POLL_READ_FAILURES = 10;
|
|
21559
21590
|
function isAlreadyGone(e) {
|
|
21560
21591
|
const o = e ?? {};
|
|
@@ -22215,10 +22246,12 @@ async function ignoreStack(p) {
|
|
|
22215
22246
|
}
|
|
22216
22247
|
}
|
|
22217
22248
|
const { path, added, alreadyPresent } = await addIgnoreRules(chosen.map((f) => ignoreRuleFor(f, stackName, accountId, region)));
|
|
22218
|
-
if (!p.json)
|
|
22219
|
-
|
|
22220
|
-
|
|
22221
|
-
|
|
22249
|
+
if (!p.json) {
|
|
22250
|
+
if (added.length > 0) {
|
|
22251
|
+
const dup = alreadyPresent.length > 0 ? `, ${alreadyPresent.length} already present` : "";
|
|
22252
|
+
console.log(style.ok(`ignore rule(s) added: ${path} (${added.length} new${dup})`));
|
|
22253
|
+
} else console.log(style.note(`${stackName}: all ${alreadyPresent.length} selected rule(s) already present — config unchanged`));
|
|
22254
|
+
}
|
|
22222
22255
|
return {
|
|
22223
22256
|
wrote: added.length > 0,
|
|
22224
22257
|
refused: false,
|
|
@@ -22251,16 +22284,18 @@ function formatPlan(stackName, region, plan, opts = {}) {
|
|
|
22251
22284
|
lines.push(`\n ${g.displayId} (${g.resourceType})`);
|
|
22252
22285
|
for (const h of g.humans) lines.push(` - ${h}`);
|
|
22253
22286
|
}
|
|
22254
|
-
if (plan.notRevertable.length > 0)
|
|
22255
|
-
|
|
22256
|
-
|
|
22257
|
-
|
|
22258
|
-
|
|
22259
|
-
|
|
22260
|
-
|
|
22261
|
-
|
|
22262
|
-
|
|
22263
|
-
|
|
22287
|
+
if (plan.notRevertable.length > 0) {
|
|
22288
|
+
if (opts.verbose) {
|
|
22289
|
+
lines.push(`\n NOT revertable (${plan.notRevertable.length}):`);
|
|
22290
|
+
for (const n of plan.notRevertable) lines.push(` - ${n.displayId}.${n.path} (${n.resourceType}) — ${n.reason}`);
|
|
22291
|
+
} else {
|
|
22292
|
+
const counts = /* @__PURE__ */ new Map();
|
|
22293
|
+
for (const n of plan.notRevertable) counts.set(n.reason, (counts.get(n.reason) ?? 0) + 1);
|
|
22294
|
+
[...counts.entries()].sort((a, b) => b[1] - a[1] || (a[0] < b[0] ? -1 : 1)).forEach(([reason, count], i) => {
|
|
22295
|
+
lines.push(i === 0 ? `\n NOT revertable: ${count} (${reason})` : ` · ${count} (${reason})`);
|
|
22296
|
+
});
|
|
22297
|
+
lines.push(" (run with --verbose for the full list)");
|
|
22298
|
+
}
|
|
22264
22299
|
}
|
|
22265
22300
|
return lines;
|
|
22266
22301
|
}
|
|
@@ -22453,14 +22488,16 @@ async function revertStack(p) {
|
|
|
22453
22488
|
}
|
|
22454
22489
|
plan = augment(plan);
|
|
22455
22490
|
const inProgress = await stackInProgressRefusal(stackName, region);
|
|
22456
|
-
if (inProgress)
|
|
22457
|
-
|
|
22458
|
-
|
|
22459
|
-
|
|
22460
|
-
|
|
22461
|
-
|
|
22462
|
-
|
|
22463
|
-
|
|
22491
|
+
if (inProgress) {
|
|
22492
|
+
if (force) console.error("\nwarning: " + inProgress + " Proceeding anyway (--force).");
|
|
22493
|
+
else {
|
|
22494
|
+
console.error("\n" + inProgress);
|
|
22495
|
+
return {
|
|
22496
|
+
exit: 2,
|
|
22497
|
+
aborted: false,
|
|
22498
|
+
refusedReason: inProgress
|
|
22499
|
+
};
|
|
22500
|
+
}
|
|
22464
22501
|
}
|
|
22465
22502
|
const cc = new CloudControlClient({
|
|
22466
22503
|
region,
|
|
@@ -22529,7 +22566,8 @@ async function revertStack(p) {
|
|
|
22529
22566
|
}, buildRetryOpts(item.displayId));
|
|
22530
22567
|
} else {
|
|
22531
22568
|
const res = resByLogical.get(item.logicalId);
|
|
22532
|
-
|
|
22569
|
+
const identifier = await CC_IDENTIFIER_ADAPTERS[item.resourceType]?.(item.physicalId, res?.declared ?? {}, region, gathered.desired.accountId) ?? item.physicalId;
|
|
22570
|
+
r = await applyRevertItem(cc, item, identifier, buildRetryOpts(item.displayId));
|
|
22533
22571
|
}
|
|
22534
22572
|
applied.push({
|
|
22535
22573
|
logicalId: item.logicalId,
|
|
@@ -22873,13 +22911,14 @@ async function runIgnore(args) {
|
|
|
22873
22911
|
warnStackStatus(stackName, desired.stackStatusWarning);
|
|
22874
22912
|
const baseline = await loadBaseline(stackName, desired.accountId, region);
|
|
22875
22913
|
if (baseline) checkBaselineAccount(baseline, desired.accountId, stackName);
|
|
22914
|
+
const reconciled = applyIgnores(applyBaseline(findings, baseline, ignoreApplyBaselineOpts(desired)), {
|
|
22915
|
+
stackName,
|
|
22916
|
+
accountId: desired.accountId,
|
|
22917
|
+
region
|
|
22918
|
+
}, config);
|
|
22876
22919
|
const result = await ignoreStack({
|
|
22877
22920
|
stackName,
|
|
22878
|
-
findings:
|
|
22879
|
-
stackName,
|
|
22880
|
-
accountId: desired.accountId,
|
|
22881
|
-
region
|
|
22882
|
-
}, config),
|
|
22921
|
+
findings: reconciled,
|
|
22883
22922
|
yes: a.yes,
|
|
22884
22923
|
interactive: a.json ? false : isInteractive(),
|
|
22885
22924
|
accountId: desired.accountId,
|
|
@@ -23113,7 +23152,8 @@ async function actionPicker(message, rows) {
|
|
|
23113
23152
|
cursor = 0;
|
|
23114
23153
|
}
|
|
23115
23154
|
});
|
|
23116
|
-
|
|
23155
|
+
const result = await prompt.prompt();
|
|
23156
|
+
if (isCancel$1(result)) return void 0;
|
|
23117
23157
|
return [...actions];
|
|
23118
23158
|
}
|
|
23119
23159
|
|