cdk-real-drift 0.26.0 → 0.26.2

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 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 = 600 * 1e3;
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",
@@ -2546,6 +2544,8 @@ const KNOWN_DEFAULTS = {
2546
2544
  ResolverCountLimit: 0,
2547
2545
  XrayEnabled: false
2548
2546
  },
2547
+ "AWS::AppSync::DataSource": { MetricsConfig: "DISABLED" },
2548
+ "AWS::AppSync::SourceApiAssociation": { SourceApiAssociationConfig: { MergeType: "MANUAL_MERGE" } },
2549
2549
  "AWS::AppSync::Resolver": { MaxBatchSize: 0 },
2550
2550
  "AWS::AppSync::FunctionConfiguration": { MaxBatchSize: 0 },
2551
2551
  "AWS::Logs::SubscriptionFilter": { Distribution: "ByLogStream" },
@@ -2555,6 +2555,8 @@ const KNOWN_DEFAULTS = {
2555
2555
  KeyUsage: "ENCRYPT_DECRYPT",
2556
2556
  Origin: "AWS_KMS"
2557
2557
  },
2558
+ "AWS::KMS::ReplicaKey": { Enabled: true },
2559
+ "AWS::EFS::AccessPoint": { RootDirectory: { Path: "/" } },
2558
2560
  "AWS::DLM::LifecyclePolicy": {
2559
2561
  RetainInterval: 7,
2560
2562
  CreateInterval: 1
@@ -2643,7 +2645,10 @@ const KNOWN_DEFAULTS = {
2643
2645
  NetworkType: "ipv4",
2644
2646
  ReplicasPerNodeGroup: 0
2645
2647
  },
2646
- "AWS::ElastiCache::ServerlessCache": { SnapshotRetentionLimit: 0 },
2648
+ "AWS::ElastiCache::ServerlessCache": {
2649
+ SnapshotRetentionLimit: 0,
2650
+ Description: " "
2651
+ },
2647
2652
  "AWS::OpenSearchService::Domain": {
2648
2653
  IPAddressType: "ipv4",
2649
2654
  SnapshotOptions: { AutomatedSnapshotStartHour: 0 },
@@ -2975,6 +2980,9 @@ const KNOWN_DEFAULTS = {
2975
2980
  },
2976
2981
  "AWS::Transfer::Server": {
2977
2982
  IpAddressType: "IPV4",
2983
+ Protocols: ["SFTP"],
2984
+ EndpointType: "PUBLIC",
2985
+ IdentityProviderType: "SERVICE_MANAGED",
2978
2986
  ProtocolDetails: {
2979
2987
  PassiveIp: "AUTO",
2980
2988
  SetStatOption: "DEFAULT",
@@ -3479,55 +3487,55 @@ const DEFAULT_MANAGED_NAME_PATHS = {
3479
3487
  "AWS::CloudFormation::Stack": { RoleARN: /^arn:aws[\w-]*:iam::\d{12}:role\/cdk-[a-z0-9]+-cfn-exec-role-\d{12}-[a-z0-9-]+$/ }
3480
3488
  };
3481
3489
  const GENERATED_TOPLEVEL_PATHS = {
3482
- "AWS::ApiGatewayV2::Stage": new Set(["DeploymentId"]),
3483
- "AWS::EC2::SecurityGroupIngress": new Set(["SourceSecurityGroupOwnerId", "GroupName"]),
3484
- "AWS::ECS::Service": new Set(["Role"]),
3485
- "AWS::SecretsManager::Secret": new Set(["Name"]),
3486
- "AWS::DMS::ReplicationInstance": new Set(["ReplicationInstanceIdentifier"]),
3487
- "AWS::DMS::Endpoint": new Set(["EndpointIdentifier"]),
3488
- "AWS::DMS::ReplicationTask": new Set(["ReplicationTaskIdentifier"]),
3489
- "AWS::ElasticLoadBalancingV2::TargetGroup": new Set(["Name"]),
3490
- "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([
3491
3499
  "ResourceId",
3492
3500
  "ServiceNamespace",
3493
3501
  "ScalableDimension"
3494
3502
  ]),
3495
- "AWS::Lambda::Version": new Set(["CodeSha256"]),
3496
- "AWS::Lambda::Function": new Set(["CodeSha256"]),
3497
- "AWS::Glue::Job": new Set(["ScriptSha256"]),
3498
- "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"])
3499
3507
  };
3500
3508
  const DESCEND_UNDECLARED_OBJECT_PATHS = {
3501
- "AWS::EKS::Cluster": new Set(["KubernetesNetworkConfig"]),
3502
- "AWS::Athena::WorkGroup": new Set(["WorkGroupConfiguration"]),
3503
- "AWS::KinesisVideo::Stream": new Set(["StreamStorageConfiguration"]),
3504
- "AWS::MSK::Cluster": new Set(["EncryptionInfo"]),
3505
- "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"])
3506
3514
  };
3507
3515
  const GENERATED_LOGICALID_PREFIX_PATHS = {
3508
- "AWS::Cognito::UserPoolClient": new Set(["ClientName"]),
3509
- "AWS::Cognito::IdentityPool": new Set(["IdentityPoolName"]),
3510
- "AWS::Cognito::UserPool": new Set(["UserPoolName"]),
3511
- "AWS::Batch::JobDefinition": new Set(["JobDefinitionName"]),
3512
- "AWS::EC2::LaunchTemplate": new Set(["LaunchTemplateName"]),
3513
- "AWS::WAFv2::WebACL": new Set(["Name"]),
3514
- "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"])
3515
3523
  };
3516
3524
  const CFN_LOGICALID_RANDOM = /[-_][0-9A-Za-z]{12,}$/;
3517
3525
  function isLogicalIdPrefixedGeneratedName(value, logicalId) {
3518
3526
  return typeof value === "string" && (value.startsWith(`${logicalId}-`) || value.startsWith(`${logicalId}_`)) && CFN_LOGICALID_RANDOM.test(value);
3519
3527
  }
3520
3528
  const GENERATED_NESTED_PATHS = {
3521
- "AWS::KMS::Key": new Set(["KeyPolicy.Id"]),
3522
- "AWS::ECR::Repository": new Set(["LifecyclePolicy.RegistryId"]),
3523
- "AWS::Lambda::Function": new Set(["LoggingConfig.LogGroup"]),
3524
- "AWS::OpenSearchService::Domain": new Set(["EncryptionAtRestOptions.KmsKeyId"]),
3525
- "AWS::ApiGateway::Stage": new Set(["CanarySetting.DeploymentId"]),
3526
- "AWS::DynamoDB::Table": new Set(["SSESpecification.KMSMasterKeyId"]),
3527
- "AWS::DynamoDB::GlobalTable": new Set(["Replicas.*.SSESpecification.KMSMasterKeyId"]),
3528
- "AWS::AutoScaling::AutoScalingGroup": new Set(["LaunchTemplate.LaunchTemplateName", "MixedInstancesPolicy.LaunchTemplate.LaunchTemplateSpecification.LaunchTemplateName"]),
3529
- "AWS::MSK::Cluster": new Set(["EncryptionInfo.EncryptionAtRest", "BrokerNodeGroupInfo.SecurityGroups"]),
3530
- "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"])
3531
3539
  };
3532
3540
  const EB_OPTION_DEFAULTS = {
3533
3541
  "aws:autoscaling:asg|Availability Zones": "Any",
@@ -3622,7 +3630,7 @@ const EB_OPTION_DERIVED = {
3622
3630
  LoadBalanced: "70"
3623
3631
  }
3624
3632
  };
3625
- const EB_OPTION_VALUE_INDEPENDENT = new Set([
3633
+ const EB_OPTION_VALUE_INDEPENDENT = /* @__PURE__ */ new Set([
3626
3634
  "aws:autoscaling:launchconfiguration|ImageId",
3627
3635
  "aws:cloudformation:template:parameter|AppSource",
3628
3636
  "aws:cloudformation:template:parameter|HooksPkgUrl",
@@ -3649,8 +3657,8 @@ function isAllEbGeneratedGroups(value, sgNamesById) {
3649
3657
  return value.split(",").every((el) => isEbGeneratedGroup(el, sgNamesById));
3650
3658
  }
3651
3659
  const EB_INSTANCE_TYPES_DEFAULT_BY_ARCH = {
3652
- x86_64: new Set(["t3.micro", "t3.small"]),
3653
- arm64: new Set([
3660
+ x86_64: /* @__PURE__ */ new Set(["t3.micro", "t3.small"]),
3661
+ arm64: /* @__PURE__ */ new Set([
3654
3662
  "t4g.micro",
3655
3663
  "t4g.small",
3656
3664
  "t4g.large"
@@ -3684,33 +3692,33 @@ function ebOptionSettingTier(namespace, optionName, value, envType, siblingOptio
3684
3692
  return "undeclared";
3685
3693
  }
3686
3694
  const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
3687
- "AWS::ApiGateway::ApiKey": new Set(["Value"]),
3688
- "AWS::Backup::BackupVault": new Set(["EncryptionKeyArn"]),
3689
- "AWS::Lambda::Version": new Set(["Description"]),
3690
- "AWS::Batch::JobQueue": new Set(["JobQueueType"]),
3691
- "AWS::ECS::Service": new Set(["AvailabilityZoneRebalancing", "PlatformVersion"]),
3692
- "AWS::KinesisAnalyticsV2::Application": new Set(["ApplicationMaintenanceConfiguration"]),
3693
- "AWS::ElasticBeanstalk::ConfigurationTemplate": new Set(["PlatformArn"]),
3694
- "AWS::ElasticBeanstalk::Environment": new Set(["PlatformArn"]),
3695
- "AWS::ElasticLoadBalancing::LoadBalancer": new Set(["AvailabilityZones"]),
3696
- "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([
3697
3705
  "AvailabilityZones",
3698
3706
  "AvailabilityZoneIds",
3699
3707
  "LifecycleHookSpecificationList"
3700
3708
  ]),
3701
- "AWS::ApiGateway::Authorizer": new Set(["AuthType"]),
3702
- "AWS::GuardDuty::Filter": new Set(["Rank"]),
3703
- "AWS::DMS::Endpoint": new Set(["KmsKeyId"]),
3704
- "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([
3705
3713
  "EngineVersion",
3706
3714
  "AvailabilityZone",
3707
3715
  "PreferredMaintenanceWindow",
3708
3716
  "KmsKeyId"
3709
3717
  ]),
3710
- "AWS::DMS::ReplicationTask": new Set(["ReplicationTaskSettings"]),
3711
- "AWS::DAX::Cluster": new Set(["PreferredMaintenanceWindow"]),
3712
- "AWS::Lightsail::Instance": new Set(["AvailabilityZone"]),
3713
- "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([
3714
3722
  "KmsKeyId",
3715
3723
  "EngineVersion",
3716
3724
  "PerformanceInsightsKmsKeyId",
@@ -3719,7 +3727,7 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
3719
3727
  "PreferredBackupWindow",
3720
3728
  "EngineLifecycleSupport"
3721
3729
  ]),
3722
- "AWS::RDS::DBInstance": new Set([
3730
+ "AWS::RDS::DBInstance": /* @__PURE__ */ new Set([
3723
3731
  "KmsKeyId",
3724
3732
  "EngineVersion",
3725
3733
  "PerformanceInsightsKMSKeyId",
@@ -3728,60 +3736,60 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
3728
3736
  "PreferredBackupWindow",
3729
3737
  "EngineLifecycleSupport"
3730
3738
  ]),
3731
- "AWS::RDS::GlobalCluster": new Set(["EngineLifecycleSupport"]),
3732
- "AWS::EKS::Cluster": new Set(["Version"]),
3733
- "AWS::EKS::Addon": new Set(["AddonVersion"]),
3734
- "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([
3735
3743
  "MaxCapacity",
3736
3744
  "AllocatedCapacity",
3737
3745
  "GlueVersion",
3738
3746
  "WorkerType",
3739
3747
  "NumberOfWorkers"
3740
3748
  ]),
3741
- "AWS::EC2::SecurityGroupIngress": new Set(["SourceSecurityGroupName"]),
3742
- "AWS::EC2::SecurityGroupEgress": new Set(["DestinationSecurityGroupName"]),
3743
- "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([
3744
3752
  "PreferredMaintenanceWindow",
3745
3753
  "PreferredBackupWindow",
3746
3754
  "EngineVersion",
3747
3755
  "KmsKeyId"
3748
3756
  ]),
3749
- "AWS::DocDB::DBInstance": new Set(["PreferredMaintenanceWindow"]),
3750
- "AWS::Neptune::DBCluster": new Set([
3757
+ "AWS::DocDB::DBInstance": /* @__PURE__ */ new Set(["PreferredMaintenanceWindow"]),
3758
+ "AWS::Neptune::DBCluster": /* @__PURE__ */ new Set([
3751
3759
  "PreferredMaintenanceWindow",
3752
3760
  "PreferredBackupWindow",
3753
3761
  "EngineVersion",
3754
3762
  "AvailabilityZones"
3755
3763
  ]),
3756
- "AWS::Neptune::DBInstance": new Set(["PreferredMaintenanceWindow", "AvailabilityZone"]),
3757
- "AWS::ElastiCache::CacheCluster": new Set([
3764
+ "AWS::Neptune::DBInstance": /* @__PURE__ */ new Set(["PreferredMaintenanceWindow", "AvailabilityZone"]),
3765
+ "AWS::ElastiCache::CacheCluster": /* @__PURE__ */ new Set([
3758
3766
  "PreferredMaintenanceWindow",
3759
3767
  "SnapshotWindow",
3760
3768
  "PreferredAvailabilityZones",
3761
3769
  "EngineVersion"
3762
3770
  ]),
3763
- "AWS::ElastiCache::ReplicationGroup": new Set([
3771
+ "AWS::ElastiCache::ReplicationGroup": /* @__PURE__ */ new Set([
3764
3772
  "PreferredMaintenanceWindow",
3765
3773
  "SnapshotWindow",
3766
3774
  "EngineVersion"
3767
3775
  ]),
3768
- "AWS::ElastiCache::ServerlessCache": new Set(["DailySnapshotTime"]),
3769
- "AWS::MemoryDB::Cluster": new Set([
3776
+ "AWS::ElastiCache::ServerlessCache": /* @__PURE__ */ new Set(["DailySnapshotTime", "MajorEngineVersion"]),
3777
+ "AWS::MemoryDB::Cluster": /* @__PURE__ */ new Set([
3770
3778
  "MaintenanceWindow",
3771
3779
  "SnapshotWindow",
3772
3780
  "EngineVersion"
3773
3781
  ]),
3774
- "AWS::Redshift::Cluster": new Set([
3782
+ "AWS::Redshift::Cluster": /* @__PURE__ */ new Set([
3775
3783
  "PreferredMaintenanceWindow",
3776
3784
  "AvailabilityZone",
3777
3785
  "ClusterVersion"
3778
3786
  ]),
3779
- "AWS::OpenSearchService::Domain": new Set(["OffPeakWindowOptions", "EngineVersion"]),
3780
- "AWS::AmazonMQ::Broker": new Set(["MaintenanceWindowStartTime", "SubnetIds"]),
3781
- "AWS::EC2::InstanceConnectEndpoint": new Set(["SecurityGroupIds"]),
3782
- "AWS::EC2::EIPAssociation": new Set(["PrivateIpAddress", "EIP"]),
3783
- "AWS::EC2::CapacityReservation": new Set(["AvailabilityZoneId"]),
3784
- "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([
3785
3793
  "PrivateIpAddress",
3786
3794
  "CpuOptions",
3787
3795
  "SubnetId",
@@ -3790,36 +3798,41 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
3790
3798
  "Volumes",
3791
3799
  "BlockDeviceMappings"
3792
3800
  ]),
3793
- "AWS::EC2::NetworkInterface": new Set(["PrivateIpAddress", "PrivateIpAddresses"]),
3794
- "AWS::EC2::Volume": new Set(["KmsKeyId", "AvailabilityZoneId"]),
3795
- "AWS::EC2::NatGateway": new Set(["PrivateIpAddress", "VpcId"]),
3796
- "AWS::EFS::MountTarget": new Set(["IpAddress"]),
3797
- "AWS::EC2::EIP": new Set(["NetworkBorderGroup"]),
3798
- "AWS::EFS::FileSystem": new Set(["KmsKeyId"]),
3799
- "AWS::EC2::SecurityGroup": new Set(["VpcId"]),
3800
- "AWS::GlobalAccelerator::Accelerator": new Set(["IpAddresses"]),
3801
- "AWS::EC2::VPCEndpoint": new Set(["ServiceRegion", "DnsOptions"]),
3802
- "AWS::EC2::VPCPeeringConnection": new Set(["PeerRegion"]),
3803
- "AWS::EC2::VPCCidrBlock": new Set(["Ipv6CidrBlock", "Ipv6CidrBlockNetworkBorderGroup"]),
3804
- "AWS::Grafana::Workspace": new Set(["GrafanaVersion"]),
3805
- "AWS::Bedrock::AgentAlias": new Set(["RoutingConfiguration"]),
3806
- "AWS::AppSync::ApiKey": new Set(["Expires"]),
3807
- "AWS::AppConfig::ExtensionAssociation": new Set(["ExtensionVersionNumber"]),
3808
- "AWS::StepFunctions::StateMachineVersion": new Set(["StateMachineRevisionId"]),
3809
- "AWS::StepFunctions::StateMachineAlias": new Set(["StateMachineArn"]),
3810
- "AWS::AutoScaling::ScheduledAction": new Set(["StartTime"]),
3811
- "AWS::CloudFormation::Stack": new Set(["TemplateBody", "Capabilities"]),
3812
- "AWS::CloudFormation::StackSet": new Set(["TemplateBody"]),
3813
- "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([
3814
3822
  "MonitoringScheduleStatus",
3815
3823
  "LastMonitoringExecutionSummary",
3816
3824
  "FailureReason"
3817
3825
  ])
3818
3826
  };
3819
3827
  const VALUE_INDEPENDENT_DEFAULT_NESTED_PATHS = {
3820
- "AWS::Batch::ComputeEnvironment": new Set(["ComputeResources.DesiredvCpus"]),
3821
- "AWS::DLM::LifecyclePolicy": new Set(["PolicyDetails.Schedules.*.CreateRule.Times"]),
3822
- "AWS::AutoScaling::AutoScalingGroup": new Set(["Tags.*.ResourceId", "Tags.*.ResourceType"])
3828
+ "AWS::Batch::ComputeEnvironment": /* @__PURE__ */ new Set(["ComputeResources.DesiredvCpus"]),
3829
+ "AWS::Cognito::UserPoolIdentityProvider": /* @__PURE__ */ new Set([
3830
+ "ProviderDetails.SSORedirectBindingURI",
3831
+ "ProviderDetails.SLORedirectBindingURI",
3832
+ "ProviderDetails.ActiveEncryptionCertificate"
3833
+ ]),
3834
+ "AWS::DLM::LifecyclePolicy": /* @__PURE__ */ new Set(["PolicyDetails.Schedules.*.CreateRule.Times"]),
3835
+ "AWS::AutoScaling::AutoScalingGroup": /* @__PURE__ */ new Set(["Tags.*.ResourceId", "Tags.*.ResourceType"])
3823
3836
  };
3824
3837
  function isPhysicalIdSegment(value, physicalId) {
3825
3838
  if (typeof value !== "string" || physicalId === void 0) return false;
@@ -3848,7 +3861,7 @@ function resolveGeneratedDefault(resourceType, physicalId) {
3848
3861
  function stripAwsTagsDeep(v) {
3849
3862
  return stripTagsWalk(v, false, void 0);
3850
3863
  }
3851
- const AWS_TAG_FILTER_PROPS = new Set([
3864
+ const AWS_TAG_FILTER_PROPS = /* @__PURE__ */ new Set([
3852
3865
  "TagFilters",
3853
3866
  "Ec2TagFilters",
3854
3867
  "Ec2TagSet",
@@ -3898,13 +3911,13 @@ function stripAsymmetricIdentityFields(declared, live) {
3898
3911
  }
3899
3912
  }
3900
3913
  const ORDER_SIGNIFICANT_ARRAY_KEYS = {
3901
- "AWS::CodePipeline::Pipeline": new Set(["Stages", "Actions"]),
3902
- "AWS::Logs::Transformer": new Set(["TransformerConfig"]),
3903
- "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"])
3904
3917
  };
3905
3918
  const ORDER_SIGNIFICANT_PATHS = {
3906
- "AWS::Scheduler::Schedule": new Set(["Target.EcsParameters.PlacementStrategy"]),
3907
- "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"])
3908
3921
  };
3909
3922
  function canonicalizeTagListsDeep(v, orderSig) {
3910
3923
  return canonicalizeTagLists(v, orderSig, void 0);
@@ -4069,15 +4082,15 @@ function isJsonStringStructEqual(a, b) {
4069
4082
  }
4070
4083
  return false;
4071
4084
  }
4072
- const JSON_STRING_PROPS = { "AWS::Config::ConfigRule": new Set(["InputParameters"]) };
4085
+ const JSON_STRING_PROPS = { "AWS::Config::ConfigRule": /* @__PURE__ */ new Set(["InputParameters"]) };
4073
4086
  const JSON_STRING_DEFAULT_FILLS = { "AWS::CE::CostCategory": { Rules: { Type: "REGULAR" } } };
4074
4087
  const CASE_INSENSITIVE_PATHS = {
4075
- "AWS::Route53::RecordSet": new Set(["Name", "AliasTarget.DNSName"]),
4076
- "AWS::Route53::RecordSetGroup": new Set(["RecordSets.*.Name", "RecordSets.*.AliasTarget.DNSName"]),
4077
- "AWS::Batch::ComputeEnvironment": new Set(["Type"]),
4078
- "AWS::Batch::JobDefinition": new Set(["Type"]),
4079
- "AWS::EMRServerless::Application": new Set(["Type"]),
4080
- "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([
4081
4094
  "DBInstanceIdentifier",
4082
4095
  "DBParameterGroupName",
4083
4096
  "DBSubnetGroupName",
@@ -4085,87 +4098,89 @@ const CASE_INSENSITIVE_PATHS = {
4085
4098
  "DBClusterIdentifier",
4086
4099
  "Engine"
4087
4100
  ]),
4088
- "AWS::RDS::DBCluster": new Set([
4101
+ "AWS::RDS::DBCluster": /* @__PURE__ */ new Set([
4089
4102
  "DBClusterIdentifier",
4090
4103
  "DBClusterParameterGroupName",
4091
4104
  "DBSubnetGroupName",
4092
- "Engine"
4105
+ "Engine",
4106
+ "GlobalClusterIdentifier"
4093
4107
  ]),
4094
- "AWS::ElastiCache::SubnetGroup": new Set(["CacheSubnetGroupName"]),
4095
- "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([
4096
4111
  "ReplicationGroupId",
4097
4112
  "CacheSubnetGroupName",
4098
4113
  "CacheParameterGroupName"
4099
4114
  ]),
4100
- "AWS::ElastiCache::CacheCluster": new Set([
4115
+ "AWS::ElastiCache::CacheCluster": /* @__PURE__ */ new Set([
4101
4116
  "ClusterName",
4102
4117
  "CacheSubnetGroupName",
4103
4118
  "CacheParameterGroupName"
4104
4119
  ]),
4105
- "AWS::ElastiCache::ServerlessCache": new Set(["ServerlessCacheName", "UserGroupId"]),
4106
- "AWS::Route53Resolver::ResolverRule": new Set(["DomainName"]),
4107
- "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([
4108
4123
  "DBClusterIdentifier",
4109
4124
  "DBSubnetGroupName",
4110
4125
  "DBClusterParameterGroupName"
4111
4126
  ]),
4112
- "AWS::DocDB::DBInstance": new Set(["DBInstanceIdentifier", "DBClusterIdentifier"]),
4113
- "AWS::DocDB::DBSubnetGroup": new Set(["DBSubnetGroupName"]),
4114
- "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([
4115
4130
  "DBClusterIdentifier",
4116
4131
  "DBSubnetGroupName",
4117
4132
  "DBClusterParameterGroupName"
4118
4133
  ]),
4119
- "AWS::Neptune::DBInstance": new Set([
4134
+ "AWS::Neptune::DBInstance": /* @__PURE__ */ new Set([
4120
4135
  "DBInstanceIdentifier",
4121
4136
  "DBClusterIdentifier",
4122
4137
  "DBParameterGroupName",
4123
4138
  "DBSubnetGroupName"
4124
4139
  ]),
4125
- "AWS::Neptune::DBSubnetGroup": new Set(["DBSubnetGroupName"]),
4126
- "AWS::RDS::DBParameterGroup": new Set(["DBParameterGroupName", "Family"]),
4127
- "AWS::RDS::DBClusterParameterGroup": new Set(["DBClusterParameterGroupName", "Family"]),
4128
- "AWS::RDS::OptionGroup": new Set(["OptionGroupName", "EngineName"]),
4129
- "AWS::RDS::DBSubnetGroup": new Set(["DBSubnetGroupName"]),
4130
- "AWS::Neptune::DBParameterGroup": new Set(["Name"]),
4131
- "AWS::Neptune::DBClusterParameterGroup": new Set(["Name"]),
4132
- "AWS::DocDB::DBClusterParameterGroup": new Set(["Name"]),
4133
- "AWS::Redshift::ClusterParameterGroup": new Set(["ParameterGroupName"]),
4134
- "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([
4135
4150
  "ClusterIdentifier",
4136
4151
  "ClusterParameterGroupName",
4137
4152
  "ClusterSubnetGroupName"
4138
4153
  ]),
4139
- "AWS::DMS::ReplicationInstance": new Set(["ReplicationInstanceIdentifier", "ReplicationSubnetGroupIdentifier"]),
4140
- "AWS::DMS::ReplicationSubnetGroup": new Set(["ReplicationSubnetGroupIdentifier"]),
4141
- "AWS::DAX::ParameterGroup": new Set(["ParameterGroupName"]),
4142
- "AWS::DAX::SubnetGroup": new Set(["SubnetGroupName"]),
4143
- "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([
4144
4159
  "ClusterName",
4145
4160
  "ParameterGroupName",
4146
4161
  "SubnetGroupName"
4147
4162
  ]),
4148
- "AWS::CertificateManager::Certificate": new Set(["DomainName"]),
4149
- "AWS::DMS::Endpoint": new Set(["EndpointType", "EndpointIdentifier"]),
4150
- "AWS::WAFv2::LoggingConfiguration": new Set(["RedactedFields.*.SingleHeader.Name"]),
4151
- "AWS::ElasticLoadBalancing::LoadBalancer": new Set(["Listeners.*.Protocol", "Listeners.*.InstanceProtocol"]),
4152
- "AWS::EC2::SecurityGroup": new Set(["SecurityGroupIngress.*.IpProtocol", "SecurityGroupEgress.*.IpProtocol"]),
4153
- "AWS::EC2::SecurityGroupIngress": new Set(["IpProtocol"]),
4154
- "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"])
4155
4170
  };
4156
4171
  function isCaseInsensitiveScalarEqual(a, b) {
4157
4172
  return typeof a === "string" && typeof b === "string" && a.toLowerCase() === b.toLowerCase();
4158
4173
  }
4159
4174
  const BOOLEAN_PARAM_MAP_PATHS = {
4160
- "AWS::RDS::DBClusterParameterGroup": new Set(["Parameters"]),
4161
- "AWS::RDS::DBParameterGroup": new Set(["Parameters"])
4175
+ "AWS::RDS::DBClusterParameterGroup": /* @__PURE__ */ new Set(["Parameters"]),
4176
+ "AWS::RDS::DBParameterGroup": /* @__PURE__ */ new Set(["Parameters"])
4162
4177
  };
4163
- const BOOL_TRUE_TOKENS = new Set([
4178
+ const BOOL_TRUE_TOKENS = /* @__PURE__ */ new Set([
4164
4179
  "on",
4165
4180
  "1",
4166
4181
  "true"
4167
4182
  ]);
4168
- const BOOL_FALSE_TOKENS = new Set([
4183
+ const BOOL_FALSE_TOKENS = /* @__PURE__ */ new Set([
4169
4184
  "off",
4170
4185
  "0",
4171
4186
  "false"
@@ -4180,7 +4195,7 @@ function isBooleanTokenEquivalent(a, b) {
4180
4195
  const ta = tok(a);
4181
4196
  return ta !== void 0 && ta === tok(b);
4182
4197
  }
4183
- 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"]) };
4184
4199
  const GUARDDUTY_CONDITION_KEY_ALIASES = {
4185
4200
  Eq: "Equals",
4186
4201
  Neq: "NotEquals",
@@ -4281,7 +4296,7 @@ function canonicalizeWafFieldNameSelector(obj) {
4281
4296
  else out[k] = normalizeWafByteMatchDeep(v);
4282
4297
  return out;
4283
4298
  }
4284
- const SSH_PUBLIC_KEY_PATHS = { "AWS::EC2::KeyPair": new Set(["PublicKeyMaterial"]) };
4299
+ const SSH_PUBLIC_KEY_PATHS = { "AWS::EC2::KeyPair": /* @__PURE__ */ new Set(["PublicKeyMaterial"]) };
4285
4300
  function isSshPublicKeyEqual(a, b) {
4286
4301
  if (typeof a !== "string" || typeof b !== "string") return false;
4287
4302
  const material = (s) => {
@@ -4297,8 +4312,8 @@ function isSshPublicKeyEqual(a, b) {
4297
4312
  return ma !== void 0 && ma === material(b);
4298
4313
  }
4299
4314
  const ACCESS_STRING_PATHS = {
4300
- "AWS::ElastiCache::User": new Set(["AccessString"]),
4301
- "AWS::MemoryDB::User": new Set(["AccessString"])
4315
+ "AWS::ElastiCache::User": /* @__PURE__ */ new Set(["AccessString"]),
4316
+ "AWS::MemoryDB::User": /* @__PURE__ */ new Set(["AccessString"])
4302
4317
  };
4303
4318
  function isAccessStringEqual(a, b) {
4304
4319
  if (typeof a !== "string" || typeof b !== "string") return false;
@@ -4323,7 +4338,7 @@ function isAccessStringEqual(a, b) {
4323
4338
  const nb = drop(tb, -surplus);
4324
4339
  return na.length === nb.length && na.every((t, i) => t === nb[i]);
4325
4340
  }
4326
- const PROPERTIES_FILE_PATHS = { "AWS::MSK::Configuration": new Set(["ServerProperties"]) };
4341
+ const PROPERTIES_FILE_PATHS = { "AWS::MSK::Configuration": /* @__PURE__ */ new Set(["ServerProperties"]) };
4327
4342
  function isPropertiesFileEqual(a, b) {
4328
4343
  if (typeof a !== "string" || typeof b !== "string") return false;
4329
4344
  const parse = (s) => {
@@ -4344,12 +4359,12 @@ function isPropertiesFileEqual(a, b) {
4344
4359
  return true;
4345
4360
  }
4346
4361
  const CASE_INSENSITIVE_ARRAY_PATHS = {
4347
- "AWS::ApiGatewayV2::Api": new Set(["CorsConfiguration.AllowHeaders", "CorsConfiguration.ExposeHeaders"]),
4348
- "AWS::Lambda::Url": new Set(["Cors.AllowHeaders", "Cors.ExposeHeaders"]),
4349
- "AWS::CertificateManager::Certificate": new Set(["SubjectAlternativeNames"]),
4350
- "AWS::SES::ConfigurationSetEventDestination": new Set(["EventDestination.MatchingEventTypes"]),
4351
- "AWS::ElastiCache::UserGroup": new Set(["UserIds"]),
4352
- "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"])
4353
4368
  };
4354
4369
  function isCaseInsensitiveEqualScalarSet(a, b) {
4355
4370
  if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;
@@ -4359,7 +4374,7 @@ function isCaseInsensitiveEqualScalarSet(a, b) {
4359
4374
  const nb = norm(b);
4360
4375
  return na.every((v, i) => v === nb[i]);
4361
4376
  }
4362
- const RATE_EXPRESSION_PATHS = { "AWS::Synthetics::Canary": new Set(["Schedule.Expression"]) };
4377
+ const RATE_EXPRESSION_PATHS = { "AWS::Synthetics::Canary": /* @__PURE__ */ new Set(["Schedule.Expression"]) };
4363
4378
  const RATE_RE = /^rate\(\s*(\d+)\s+(minute|minutes|hour|hours|day|days)\s*\)$/i;
4364
4379
  const RATE_UNIT_MIN = {
4365
4380
  minute: 1,
@@ -4371,14 +4386,15 @@ function isEquivalentRateExpression(a, b) {
4371
4386
  const minutes = (s) => {
4372
4387
  const m = RATE_RE.exec(s.trim());
4373
4388
  if (!m || m[1] === void 0 || m[2] === void 0) return void 0;
4374
- const per = RATE_UNIT_MIN[m[2].toLowerCase().replace(/s$/, "")];
4389
+ const unit = m[2].toLowerCase().replace(/s$/, "");
4390
+ const per = RATE_UNIT_MIN[unit];
4375
4391
  return per === void 0 ? void 0 : Number(m[1]) * per;
4376
4392
  };
4377
4393
  const ma = minutes(a);
4378
4394
  const mb = minutes(b);
4379
4395
  return ma !== void 0 && mb !== void 0 && ma === mb;
4380
4396
  }
4381
- const EPOCH_HOUR_PATHS = { "AWS::AppSync::ApiKey": new Set(["Expires"]) };
4397
+ const EPOCH_HOUR_PATHS = { "AWS::AppSync::ApiKey": /* @__PURE__ */ new Set(["Expires"]) };
4382
4398
  function isEpochHourEqual(a, b) {
4383
4399
  const sec = (v) => {
4384
4400
  const n = typeof v === "number" ? v : typeof v === "string" ? Number(v) : NaN;
@@ -4390,30 +4406,30 @@ function isEpochHourEqual(a, b) {
4390
4406
  }
4391
4407
  const NUMERIC_STRING_EQUAL_PATHS = { "AWS::Budgets::Budget": [/(?:^|\.)BudgetLimit\.Amount$/, /(?:^|\.)PlannedBudgetLimits\.[^.]+\.Amount$/] };
4392
4408
  const TRAILING_DOT_PATHS = {
4393
- "AWS::Route53::HostedZone": new Set(["Name"]),
4394
- "AWS::Route53::RecordSet": new Set(["Name"]),
4395
- "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"])
4396
4412
  };
4397
4413
  function isTrailingDotEqual(a, b) {
4398
4414
  if (typeof a !== "string" || typeof b !== "string") return false;
4399
4415
  const strip = (s) => s.endsWith(".") ? s.slice(0, -1) : s;
4400
4416
  return strip(a) === strip(b);
4401
4417
  }
4402
- const TRAILING_SLASH_PATHS = { "AWS::ECR::RepositoryCreationTemplate": new Set(["Prefix"]) };
4418
+ const TRAILING_SLASH_PATHS = { "AWS::ECR::RepositoryCreationTemplate": /* @__PURE__ */ new Set(["Prefix"]) };
4403
4419
  function isTrailingSlashEqual(a, b) {
4404
4420
  if (typeof a !== "string" || typeof b !== "string") return false;
4405
4421
  const strip = (s) => s.endsWith("/") ? s.slice(0, -1) : s;
4406
4422
  return strip(a) === strip(b);
4407
4423
  }
4408
4424
  const VERSION_PREFIX_PATHS = {
4409
- "AWS::RDS::DBInstance": new Set(["EngineVersion"]),
4410
- "AWS::RDS::DBCluster": new Set(["EngineVersion"]),
4411
- "AWS::RDS::GlobalCluster": new Set(["EngineVersion"]),
4412
- "AWS::Neptune::DBCluster": new Set(["EngineVersion"]),
4413
- "AWS::DocDB::DBCluster": new Set(["EngineVersion"]),
4414
- "AWS::ElastiCache::ReplicationGroup": new Set(["EngineVersion"]),
4415
- "AWS::ElastiCache::CacheCluster": new Set(["EngineVersion"]),
4416
- "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"])
4417
4433
  };
4418
4434
  function isVersionPrefixMatch(declared, live) {
4419
4435
  if (typeof declared !== "string" || typeof live !== "string") return false;
@@ -4425,13 +4441,13 @@ function isVersionPrefixMatch(declared, live) {
4425
4441
  return shortSegs.every((seg, i) => seg === longSegs[i]);
4426
4442
  }
4427
4443
  const LATEST_SENTINEL_PATHS = {
4428
- "AWS::ECS::Service": new Set(["PlatformVersion"]),
4429
- "AWS::ECS::TaskSet": new Set(["PlatformVersion"])
4444
+ "AWS::ECS::Service": /* @__PURE__ */ new Set(["PlatformVersion"]),
4445
+ "AWS::ECS::TaskSet": /* @__PURE__ */ new Set(["PlatformVersion"])
4430
4446
  };
4431
4447
  function isLatestSentinelMatch(declared, live) {
4432
4448
  return declared === "LATEST" && typeof live === "string" && live.length > 0;
4433
4449
  }
4434
- const INTELLIGENT_TIERING_PATHS = { "AWS::SSM::Parameter": new Set(["Tier"]) };
4450
+ const INTELLIGENT_TIERING_PATHS = { "AWS::SSM::Parameter": /* @__PURE__ */ new Set(["Tier"]) };
4435
4451
  function isIntelligentTieringMatch(declared, live) {
4436
4452
  return declared === "Intelligent-Tiering" && (live === "Standard" || live === "Advanced");
4437
4453
  }
@@ -4476,7 +4492,7 @@ const isIdLike = (s) => typeof s === "string" && (s.startsWith("arn:") || ID_RE.
4476
4492
  const AZ_NAME_RE = /^[a-z]{2}-[a-z]+(-[a-z]+)?-\d{1,2}[a-z]$/;
4477
4493
  const AZ_ID_RE = /^[a-z]{3,5}\d-az\d+$/;
4478
4494
  const isAvailabilityZone = (s) => typeof s === "string" && (AZ_NAME_RE.test(s) || AZ_ID_RE.test(s));
4479
- const HTTP_METHODS = new Set([
4495
+ const HTTP_METHODS = /* @__PURE__ */ new Set([
4480
4496
  "GET",
4481
4497
  "HEAD",
4482
4498
  "POST",
@@ -4633,11 +4649,12 @@ function alignNameValueSubset(declared, live, spec) {
4633
4649
  return live.filter((e) => !dm.has(e[spec.nameField]));
4634
4650
  }
4635
4651
  const UNORDERED_ARRAY_PROPS = {
4636
- "AWS::Route53::CidrCollection": new Set(["Locations.*.CidrList"]),
4637
- "AWS::CloudFront::Distribution": new Set(["DistributionConfig.Restrictions.GeoRestriction.Locations"]),
4638
- "AWS::Cognito::UserPool": new Set(["EnabledMfas"]),
4639
- "AWS::ECS::Cluster": new Set(["CapacityProviders"]),
4640
- "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([
4641
4658
  "AllowedOAuthFlows",
4642
4659
  "AllowedOAuthScopes",
4643
4660
  "ExplicitAuthFlows",
@@ -4647,15 +4664,15 @@ const UNORDERED_ARRAY_PROPS = {
4647
4664
  "WriteAttributes",
4648
4665
  "SupportedIdentityProviders"
4649
4666
  ]),
4650
- "AWS::WAFv2::IPSet": new Set(["Addresses"]),
4651
- "AWS::Route53::RecordSet": new Set(["ResourceRecords"]),
4652
- "AWS::Route53::RecordSetGroup": new Set(["RecordSets.*.ResourceRecords"]),
4653
- "AWS::CodeDeploy::DeploymentGroup": new Set(["AutoRollbackConfiguration.Events"]),
4654
- "AWS::RDS::DBInstance": new Set(["EnableCloudwatchLogsExports"]),
4655
- "AWS::RDS::DBCluster": new Set(["EnableCloudwatchLogsExports"]),
4656
- "AWS::Neptune::DBCluster": new Set(["EnableCloudwatchLogsExports"]),
4657
- "AWS::DocDB::DBCluster": new Set(["EnableCloudwatchLogsExports"]),
4658
- "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([
4659
4676
  "Triggers.*.GitConfiguration.Push.*.Branches.Includes",
4660
4677
  "Triggers.*.GitConfiguration.Push.*.Branches.Excludes",
4661
4678
  "Triggers.*.GitConfiguration.Push.*.FilePaths.Includes",
@@ -4683,14 +4700,14 @@ function isEqualUnorderedScalarSet(a, b) {
4683
4700
  return sa.every((v, i) => v === sb[i]);
4684
4701
  }
4685
4702
  const READGAP_COLLECTION_PATHS = {
4686
- "AWS::Batch::JobDefinition": new Set(["Timeout"]),
4687
- "AWS::Budgets::Budget": new Set(["NotificationsWithSubscribers"]),
4688
- "AWS::DynamoDB::GlobalTable": new Set(["SSESpecification"]),
4689
- "AWS::DynamoDB::Table": new Set(["SSESpecification"]),
4690
- "AWS::CertificateManager::Certificate": new Set(["DomainValidationOptions"]),
4691
- "AWS::Glue::Table": new Set(["OpenTableFormatInput"]),
4692
- "AWS::EC2::ClientVpnEndpoint": new Set(["TagSpecifications"]),
4693
- "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([
4694
4711
  "DocDbSettings",
4695
4712
  "DynamoDbSettings",
4696
4713
  "ElasticsearchSettings",
@@ -4711,25 +4728,25 @@ const READGAP_COLLECTION_PATHS = {
4711
4728
  ])
4712
4729
  };
4713
4730
  const SCALAR_RETURNED_WHEN_SET = {
4714
- "AWS::NetworkFirewall::RuleGroup": new Set(["Description"]),
4715
- "AWS::NetworkFirewall::FirewallPolicy": new Set(["Description"])
4731
+ "AWS::NetworkFirewall::RuleGroup": /* @__PURE__ */ new Set(["Description"]),
4732
+ "AWS::NetworkFirewall::FirewallPolicy": /* @__PURE__ */ new Set(["Description"])
4716
4733
  };
4717
- const READ_NORMALIZED_DECLARED_PATHS = { "AWS::SSM::Document": new Set(["DocumentFormat"]) };
4734
+ const READ_NORMALIZED_DECLARED_PATHS = { "AWS::SSM::Document": /* @__PURE__ */ new Set(["DocumentFormat"]) };
4718
4735
  const UNORDERED_OBJECT_ARRAY_PROPS = {
4719
- "AWS::EC2::SecurityGroup": new Set(["SecurityGroupIngress", "SecurityGroupEgress"]),
4720
- "AWS::ApplicationSignals::ServiceLevelObjective": new Set(["BurnRateConfigurations"]),
4721
- "AWS::Cognito::UserPoolResourceServer": new Set(["Scopes"]),
4722
- "AWS::ElasticLoadBalancingV2::ListenerRule": new Set(["Conditions"]),
4723
- "AWS::IAM::Role": new Set(["Policies"]),
4724
- "AWS::IAM::User": new Set(["Policies"]),
4725
- "AWS::IAM::Group": new Set(["Policies"]),
4726
- "AWS::Redshift::ClusterParameterGroup": new Set(["Parameters"]),
4727
- "AWS::AutoScaling::AutoScalingGroup": new Set(["LifecycleHookSpecificationList"]),
4728
- "AWS::SecretsManager::Secret": new Set(["ReplicaRegions"]),
4729
- "AWS::ElastiCache::CacheCluster": new Set(["LogDeliveryConfigurations"]),
4730
- "AWS::ElastiCache::ReplicationGroup": new Set(["LogDeliveryConfigurations"]),
4731
- "AWS::WAFv2::LoggingConfiguration": new Set(["RedactedFields"]),
4732
- "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"])
4733
4750
  };
4734
4751
  const UNORDERED_OBJECT_ARRAY_IDENTITY = {
4735
4752
  "AWS::Cognito::UserPoolResourceServer": { Scopes: "ScopeName" },
@@ -4745,10 +4762,10 @@ const UNORDERED_OBJECT_ARRAY_IDENTITY = {
4745
4762
  "AWS::IAM::Group": { Policies: "PolicyName" }
4746
4763
  };
4747
4764
  const UNORDERED_NESTED_OBJECT_ARRAY_PATHS = {
4748
- "AWS::CloudFront::CachePolicy": new Set(["CachePolicyConfig.ParametersInCacheKeyAndForwardedToOrigin.HeadersConfig.Headers"]),
4749
- "AWS::CloudFront::Distribution": new Set(["DistributionConfig.Aliases", "DistributionConfig.CustomErrorResponses"]),
4750
- "AWS::IoT::ThingType": new Set(["ThingTypeProperties.SearchableAttributes"]),
4751
- "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([
4752
4769
  "ContentPolicyConfig.FiltersConfig",
4753
4770
  "TopicPolicyConfig.TopicsConfig",
4754
4771
  "WordPolicyConfig.WordsConfig",
@@ -4756,21 +4773,21 @@ const UNORDERED_NESTED_OBJECT_ARRAY_PATHS = {
4756
4773
  "SensitiveInformationPolicyConfig.PiiEntitiesConfig",
4757
4774
  "SensitiveInformationPolicyConfig.RegexesConfig"
4758
4775
  ]),
4759
- "AWS::ECS::TaskDefinition": new Set([
4776
+ "AWS::ECS::TaskDefinition": /* @__PURE__ */ new Set([
4760
4777
  "ContainerDefinitions.PortMappings",
4761
4778
  "ContainerDefinitions.VolumesFrom",
4762
4779
  "ContainerDefinitions.Links"
4763
4780
  ]),
4764
- "AWS::DynamoDB::Table": new Set(["GlobalSecondaryIndexes.Projection.NonKeyAttributes", "LocalSecondaryIndexes.Projection.NonKeyAttributes"]),
4765
- "AWS::DynamoDB::GlobalTable": new Set(["GlobalSecondaryIndexes.Projection.NonKeyAttributes", "LocalSecondaryIndexes.Projection.NonKeyAttributes"]),
4766
- "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([
4767
4784
  "Conditions.PathPatternConfig.Values",
4768
4785
  "Conditions.SourceIpConfig.Values",
4769
4786
  "Conditions.HttpHeaderConfig.Values"
4770
4787
  ]),
4771
- "AWS::Backup::BackupSelection": new Set(["BackupSelection.ListOfTags"]),
4772
- "AWS::AutoScaling::AutoScalingGroup": new Set(["MetricsCollection.Metrics", "NotificationConfigurations.NotificationTypes"]),
4773
- "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"])
4774
4791
  };
4775
4792
  const NESTED_OBJECT_ARRAY_IDENTITY = {
4776
4793
  "AWS::CloudFront::Distribution": { "DistributionConfig.CustomErrorResponses": "ErrorCode" },
@@ -4992,7 +5009,7 @@ const BOOL_TAG = "tag:yaml.org,2002:bool";
4992
5009
  const TIMESTAMP_TAG = "tag:yaml.org,2002:timestamp";
4993
5010
  const INT_TAG = "tag:yaml.org,2002:int";
4994
5011
  const FLOAT_TAG = "tag:yaml.org,2002:float";
4995
- const EXOTIC_NUMBER_FORMATS = new Set([
5012
+ const EXOTIC_NUMBER_FORMATS = /* @__PURE__ */ new Set([
4996
5013
  "OCT",
4997
5014
  "HEX",
4998
5015
  "BIN",
@@ -5441,7 +5458,7 @@ async function loadDesired(client, stackName, region, templateOverride, recovery
5441
5458
  desired.stackTags = stackTags;
5442
5459
  return desired;
5443
5460
  }
5444
- const IAM_PRINCIPAL_TYPES = new Set([
5461
+ const IAM_PRINCIPAL_TYPES = /* @__PURE__ */ new Set([
5445
5462
  "AWS::IAM::Role",
5446
5463
  "AWS::IAM::User",
5447
5464
  "AWS::IAM::Group"
@@ -5483,7 +5500,7 @@ function collectPrincipalsWithSiblingPolicies(resources, ctx) {
5483
5500
  }
5484
5501
  return principals;
5485
5502
  }
5486
- const IAM_STANDALONE_INLINE_POLICY_TYPES = new Map([
5503
+ const IAM_STANDALONE_INLINE_POLICY_TYPES = /* @__PURE__ */ new Map([
5487
5504
  ["AWS::IAM::RolePolicy", "RoleName"],
5488
5505
  ["AWS::IAM::UserPolicy", "UserName"],
5489
5506
  ["AWS::IAM::GroupPolicy", "GroupName"]
@@ -5782,7 +5799,7 @@ function sortKeys(o) {
5782
5799
  for (const k of Object.keys(o).sort()) out[k] = o[k];
5783
5800
  return out;
5784
5801
  }
5785
- const ARRAYISH_KEYS = new Set([
5802
+ const ARRAYISH_KEYS = /* @__PURE__ */ new Set([
5786
5803
  "Action",
5787
5804
  "NotAction",
5788
5805
  "Resource",
@@ -5816,7 +5833,7 @@ function canonicalizeStatement(s) {
5816
5833
  }
5817
5834
  return out;
5818
5835
  }
5819
- const AWS_LOG_DELIVERY_ALLOWED_ACTIONS = new Set([
5836
+ const AWS_LOG_DELIVERY_ALLOWED_ACTIONS = /* @__PURE__ */ new Set([
5820
5837
  "s3:PutObject",
5821
5838
  "s3:GetBucketAcl",
5822
5839
  "logs:CreateLogStream",
@@ -5958,7 +5975,8 @@ function seedFreeFormFromPath(path) {
5958
5975
  return path.replace(/\[([^\]]*)\]/g, ".$1").split(".").filter((s) => s.length > 0).some((s) => FREE_FORM_MAP_PARENTS.has(s));
5959
5976
  }
5960
5977
  function canonicalizeBaselineForCompare(v, resourceType, path) {
5961
- return sortObjectArraysDeep(canonicalizeForCompare(stripAwsTagsDeep(stripCcApiAwsManagedFields(v, seedFreeFormFromPath(path))), resourceType));
5978
+ const freeFormSeed = seedFreeFormFromPath(path);
5979
+ return sortObjectArraysDeep(canonicalizeForCompare(stripAwsTagsDeep(stripCcApiAwsManagedFields(v, freeFormSeed)), resourceType));
5962
5980
  }
5963
5981
 
5964
5982
  //#endregion
@@ -6133,6 +6151,7 @@ const ELB_ATTRIBUTE_BAGS = {
6133
6151
  const notRestored = (...restoreSourceKeys) => ({ declared }) => restoreSourceKeys.every((k) => declared[k] === void 0);
6134
6152
  const MEANINGFUL_WHEN_OFF = {
6135
6153
  "AWS::KMS::Key": { Enabled: () => true },
6154
+ "AWS::KMS::ReplicaKey": { Enabled: () => true },
6136
6155
  "AWS::ServiceCatalog::TagOption": { Active: () => true },
6137
6156
  "AWS::VpcLattice::ResourceConfiguration": { AllowAssociationToSharableServiceNetwork: () => true },
6138
6157
  "AWS::SQS::Queue": { SqsManagedSseEnabled: ({ declared, live }) => declared["KmsMasterKeyId"] === void 0 && live["KmsMasterKeyId"] === void 0 },
@@ -6218,7 +6237,8 @@ function guardDutyFeaturesAllAtDefault(features) {
6218
6237
  if (node !== null && typeof node === "object") {
6219
6238
  const rec = node;
6220
6239
  if ("Status" in rec) {
6221
- const defaults = GUARDDUTY_FEATURE_CREATION_STATUS[typeof rec["Name"] === "string" ? rec["Name"] : ""] ?? ["ENABLED"];
6240
+ const name = typeof rec["Name"] === "string" ? rec["Name"] : "";
6241
+ const defaults = GUARDDUTY_FEATURE_CREATION_STATUS[name] ?? ["ENABLED"];
6222
6242
  if (typeof rec["Status"] !== "string" || !defaults.includes(rec["Status"])) return false;
6223
6243
  }
6224
6244
  return Object.values(rec).every(atDefault);
@@ -6242,7 +6262,8 @@ const DEFAULT_SG_LIST_PATHS = {
6242
6262
  "AWS::DMS::ReplicationInstance": "VpcSecurityGroupIds",
6243
6263
  "AWS::EC2::ClientVpnEndpoint": "SecurityGroupIds",
6244
6264
  "AWS::VpcLattice::ResourceGateway": "SecurityGroupIds",
6245
- "AWS::EC2::VPCEndpoint": "SecurityGroupIds"
6265
+ "AWS::EC2::VPCEndpoint": "SecurityGroupIds",
6266
+ "AWS::ElastiCache::ServerlessCache": "SecurityGroupIds"
6246
6267
  };
6247
6268
  /** #1269 fold decision for an UNDECLARED default-SUBNET list (RedshiftServerless Workgroup
6248
6269
  * SubnetIds). Unlike the SG gate (which folds only a SINGLE default SG), a workgroup placed into
@@ -6260,7 +6281,10 @@ function shouldFoldDefaultSubnetList(resourceType, key, liveValue, defaultSubnet
6260
6281
  if (!Array.isArray(liveValue)) return true;
6261
6282
  return liveValue.every((s) => typeof s === "string" && defaultSubnetIds.has(s));
6262
6283
  }
6263
- const DEFAULT_SUBNET_LIST_PATHS = { "AWS::RedshiftServerless::Workgroup": "SubnetIds" };
6284
+ const DEFAULT_SUBNET_LIST_PATHS = {
6285
+ "AWS::RedshiftServerless::Workgroup": "SubnetIds",
6286
+ "AWS::ElastiCache::ServerlessCache": "SubnetIds"
6287
+ };
6264
6288
  const RS_WORKGROUP_CONFIG_PARAM_DEFAULTS = {
6265
6289
  auto_mv: "true",
6266
6290
  datestyle: "ISO, MDY",
@@ -6329,9 +6353,9 @@ const IDENTITY_KEYED_SUBSET_ARRAYS = {
6329
6353
  foldHuskExtras: true
6330
6354
  } }
6331
6355
  };
6332
- const VALUE_INDEPENDENT_KEYED_ELEMENTS = { "AWS::Cognito::UserPoolUser": { UserAttributes: new Set(["sub"]) } };
6333
- const SLACK_ID_MIGRATION_PATHS = { "AWS::Chatbot::SlackChannelConfiguration": new Set(["SlackChannelId"]) };
6334
- 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"]);
6335
6359
  function isSlackIdMigrationEqual(a, b) {
6336
6360
  if (typeof a !== "string" || typeof b !== "string") return false;
6337
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);
@@ -6384,7 +6408,7 @@ function subtractSiblingEventBusStatements(live, siblingStatements) {
6384
6408
  }
6385
6409
  if (arr.length === 0) delete live[EVENT_BUS_POLICY_PROP];
6386
6410
  }
6387
- const IAM_PRINCIPAL_POLICY_TYPES = new Set([
6411
+ const IAM_PRINCIPAL_POLICY_TYPES = /* @__PURE__ */ new Set([
6388
6412
  "AWS::IAM::Role",
6389
6413
  "AWS::IAM::User",
6390
6414
  "AWS::IAM::Group"
@@ -6408,7 +6432,7 @@ function subtractSiblingSgRules(live, prop, siblingRules) {
6408
6432
  }
6409
6433
  if (arr.length === 0) delete live[prop];
6410
6434
  }
6411
- const IAM_ATTACHMENT_REFLECTION_TYPES = new Set([
6435
+ const IAM_ATTACHMENT_REFLECTION_TYPES = /* @__PURE__ */ new Set([
6412
6436
  "AWS::IAM::Role",
6413
6437
  "AWS::IAM::User",
6414
6438
  "AWS::IAM::Group"
@@ -6478,7 +6502,7 @@ function applyDefinitionSubstitutions(definitionString, substitutions) {
6478
6502
  return String(value);
6479
6503
  });
6480
6504
  }
6481
- const IAM_ATTACHMENT_SUBSET = { "AWS::IAM::ManagedPolicy": new Set([
6505
+ const IAM_ATTACHMENT_SUBSET = { "AWS::IAM::ManagedPolicy": /* @__PURE__ */ new Set([
6482
6506
  "Roles",
6483
6507
  "Users",
6484
6508
  "Groups"
@@ -6493,7 +6517,7 @@ const ebOptionSettingsEntryTier = (entry, liveArray, ebSgNamesById) => {
6493
6517
  const ebOptionSettingsSubsetSpec = {
6494
6518
  re: /(^|\.)OptionSettings$/,
6495
6519
  keyFields: ["Namespace", "OptionName"],
6496
- ignoreFields: new Set(["ResourceName"]),
6520
+ ignoreFields: /* @__PURE__ */ new Set(["ResourceName"]),
6497
6521
  entryTier: ebOptionSettingsEntryTier
6498
6522
  };
6499
6523
  const COMPOSITE_KEY_SUBSET_PATHS = {
@@ -6547,7 +6571,7 @@ function nicZeroGroupSetEquals(declaredNics, liveSgIds) {
6547
6571
  const live = new Set(liveSgIds);
6548
6572
  return groupSet.length === live.size && groupSet.every((g) => live.has(g));
6549
6573
  }
6550
- 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"]);
6551
6575
  function capacityUnit(x) {
6552
6576
  if (typeof x === "number") return x;
6553
6577
  if (typeof x === "string" && x.trim() !== "" && !Number.isNaN(Number(x))) return Number(x);
@@ -6596,7 +6620,7 @@ function glueIcebergManagedParamsAtDefault(resourceType, schemaPath, value, decl
6596
6620
  if (!isNestedObject(otf) || !("IcebergInput" in otf)) return false;
6597
6621
  if (!isNestedObject(value)) return false;
6598
6622
  const params = value;
6599
- const managed = new Set(["table_type", "metadata_location"]);
6623
+ const managed = /* @__PURE__ */ new Set(["table_type", "metadata_location"]);
6600
6624
  if (!Object.keys(params).every((k) => managed.has(k))) return false;
6601
6625
  return params.table_type === "ICEBERG";
6602
6626
  }
@@ -6627,7 +6651,7 @@ function clbDefaultSslPoliciesAtDefault(resourceType, key, value) {
6627
6651
  if (!Array.isArray(value) || value.length === 0) return false;
6628
6652
  return value.every((el) => isNestedObject(el) && el["PolicyType"] === "SSLNegotiationPolicyType" && el["PolicyName"] === CLB_DEFAULT_SSL_POLICY_NAME);
6629
6653
  }
6630
- const VPN_TUNNEL_EMPTY_LIST_KEYS = new Set([
6654
+ const VPN_TUNNEL_EMPTY_LIST_KEYS = /* @__PURE__ */ new Set([
6631
6655
  "Phase1EncryptionAlgorithms",
6632
6656
  "Phase1IntegrityAlgorithms",
6633
6657
  "Phase1DHGroupNumbers",
@@ -6818,7 +6842,7 @@ function sortScalarSetAtNestedPath(model, segs) {
6818
6842
  else sortScalarSetAtNestedPath(obj[head], rest);
6819
6843
  }
6820
6844
  function sortUnorderedSetProps(model, resourceType, schemaObjectArrayKeys = [], schemaScalarPaths = []) {
6821
- const objKeys = new Set([...UNORDERED_OBJECT_ARRAY_PROPS[resourceType] ?? [], ...schemaObjectArrayKeys]);
6845
+ const objKeys = /* @__PURE__ */ new Set([...UNORDERED_OBJECT_ARRAY_PROPS[resourceType] ?? [], ...schemaObjectArrayKeys]);
6822
6846
  const orderSig = ORDER_SIGNIFICANT_ARRAY_KEYS[resourceType];
6823
6847
  for (const k of objKeys) if (!orderSig?.has(k) && Array.isArray(model[k])) model[k] = sortUnorderedObjectArray(model[k]);
6824
6848
  const orderSigPaths = ORDER_SIGNIFICANT_PATHS[resourceType];
@@ -7242,7 +7266,10 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
7242
7266
  }
7243
7267
  }
7244
7268
  if (resourceType === "AWS::S3::Bucket" && physicalId && opts.bucketNotificationManaged?.has(physicalId) && !("NotificationConfiguration" in declared)) {
7245
- if (deepEqual(canonicalizeForCompare(canonS3NotifBucketConfig(translateDeclaredBucketNotification(opts.bucketNotificationConfigs?.[physicalId] ?? {})), resourceType), canonicalizeForCompare(canonS3NotifBucketConfig(live.NotificationConfiguration), resourceType))) delete live.NotificationConfiguration;
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;
7246
7273
  }
7247
7274
  const echoSpec = CLUSTER_ECHO_CHILD[resourceType];
7248
7275
  const echoModel = echoSpec && physicalId ? opts.clusterEchoModel?.[physicalId] : void 0;
@@ -7950,10 +7977,12 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
7950
7977
  const loValue = loRec[nvSubsetSpec.valueField];
7951
7978
  const isFirehoseRetriesDefault = resourceType === "AWS::KinesisFirehose::DeliveryStream" && loName === "NumberOfRetries" && loValue === "3";
7952
7979
  let isRdsOptionDefault = false;
7953
- if (resourceType === "AWS::RDS::OptionGroup") if (isIdentityOnlyHusk(loRec, nvSubsetSpec.nameField)) isRdsOptionDefault = true;
7954
- else {
7955
- const matDefault = rdsMaterializedDefault(opts.rdsOptionSettingDefaults, physicalId, liveVal, d.path, loName);
7956
- isRdsOptionDefault = matDefault != null && matDefault === loValue;
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
+ }
7957
7986
  }
7958
7987
  findings.push({
7959
7988
  tier: isFirehoseRetriesDefault || isRdsOptionDefault ? "atDefault" : "undeclared",
@@ -8235,7 +8264,8 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
8235
8264
  }
8236
8265
  const ctxKind = CONTEXT_DEFAULTS[resourceType]?.[k];
8237
8266
  if (ctxKind !== void 0 && opts.region !== void 0) {
8238
- if (deepEqual(v, ctxKind === "region" ? opts.region : [opts.region])) {
8267
+ const ctxDefault = ctxKind === "region" ? opts.region : [opts.region];
8268
+ if (deepEqual(v, ctxDefault)) {
8239
8269
  findings.push({
8240
8270
  tier: "atDefault",
8241
8271
  logicalId,
@@ -8587,7 +8617,7 @@ function normalizeApiPath(p) {
8587
8617
  if (out.length > 1 && out.endsWith("/")) out = out.slice(0, -1);
8588
8618
  return out;
8589
8619
  }
8590
- const OPENAPI_HTTP_VERBS = new Set([
8620
+ const OPENAPI_HTTP_VERBS = /* @__PURE__ */ new Set([
8591
8621
  "get",
8592
8622
  "post",
8593
8623
  "put",
@@ -8874,7 +8904,7 @@ async function getAllAuthorizers(client, apiId) {
8874
8904
  } while (position);
8875
8905
  return out;
8876
8906
  }
8877
- const BUILTIN_MODEL_NAMES = new Set(["Empty", "Error"]);
8907
+ const BUILTIN_MODEL_NAMES = /* @__PURE__ */ new Set(["Empty", "Error"]);
8878
8908
  function diffApiGatewayModels(input) {
8879
8909
  const { apiId, declaredModelNames, liveModels, bodyDefined } = input;
8880
8910
  if (bodyDefined) return [];
@@ -9231,9 +9261,12 @@ async function enumerateHttpApiChildren(ctx) {
9231
9261
  const CHATBOT_SUBSCRIPTION_ENDPOINT = "https://global.sns-api.chatbot.amazonaws.com";
9232
9262
  function diffSnsTopicChildren(input) {
9233
9263
  const declared = new Set(input.declaredSubscriptionArns);
9264
+ const inline = input.declaredInlineSubscriptions ?? [];
9265
+ const matchesInline = (s) => inline.some((d) => (d.protocol === void 0 || d.protocol.toLowerCase() === (s.protocol ?? "").toLowerCase()) && (d.endpointUnresolved || d.endpoint === s.endpoint));
9234
9266
  const added = [];
9235
9267
  for (const s of input.liveSubscriptions) {
9236
9268
  if (declared.has(s.arn)) continue;
9269
+ if (matchesInline(s)) continue;
9237
9270
  if (s.endpoint === CHATBOT_SUBSCRIPTION_ENDPOINT) continue;
9238
9271
  added.push({
9239
9272
  resourceType: "AWS::SNS::Subscription",
@@ -9265,6 +9298,17 @@ async function enumerateSnsTopicChildren(ctx) {
9265
9298
  if (!topicArn) return [];
9266
9299
  const declaredSubscriptionArns = [];
9267
9300
  for (const r of desired.resources) if (r.resourceType === "AWS::SNS::Subscription" && parentRefMatches(r.declared.TopicArn, topicArn) && r.physicalId) declaredSubscriptionArns.push(r.physicalId);
9301
+ const declaredInlineSubscriptions = [];
9302
+ const inlineDecl = parent.declared?.Subscription;
9303
+ if (Array.isArray(inlineDecl)) for (const e of inlineDecl) {
9304
+ if (!e || typeof e !== "object") continue;
9305
+ const { Protocol, Endpoint } = e;
9306
+ declaredInlineSubscriptions.push({
9307
+ protocol: typeof Protocol === "string" ? Protocol : void 0,
9308
+ endpoint: typeof Endpoint === "string" ? Endpoint : void 0,
9309
+ endpointUnresolved: Endpoint !== void 0 && hasUnresolved(Endpoint)
9310
+ });
9311
+ }
9268
9312
  let hasDeclaredPolicy = false;
9269
9313
  for (const r of desired.resources) {
9270
9314
  if (r.resourceType === "AWS::SNS::TopicInlinePolicy") {
@@ -9286,12 +9330,14 @@ async function enumerateSnsTopicChildren(ctx) {
9286
9330
  const liveSubscriptions = (await pageSubscriptions(client, topicArn)).filter((s) => typeof s.SubscriptionArn === "string" && s.SubscriptionArn.startsWith("arn:")).map((s) => ({
9287
9331
  arn: s.SubscriptionArn,
9288
9332
  label: s.Protocol ? `${s.Protocol} ${s.Endpoint ?? ""}`.trim() : s.SubscriptionArn,
9333
+ protocol: s.Protocol,
9289
9334
  endpoint: s.Endpoint,
9290
9335
  owner: s.Owner
9291
9336
  }));
9292
9337
  const livePolicy = await readSnsTopicPolicyDocument(client, topicArn);
9293
9338
  return diffSnsTopicChildren({
9294
9339
  declaredSubscriptionArns,
9340
+ declaredInlineSubscriptions,
9295
9341
  liveSubscriptions
9296
9342
  }).concat(diffSnsTopicPolicy({
9297
9343
  topicArn,
@@ -10640,7 +10686,7 @@ function diffVpcSecurityGroupChildren(input) {
10640
10686
  }
10641
10687
  return added;
10642
10688
  }
10643
- const NAT_GATEWAY_GONE_STATES = new Set([
10689
+ const NAT_GATEWAY_GONE_STATES = /* @__PURE__ */ new Set([
10644
10690
  "deleted",
10645
10691
  "deleting",
10646
10692
  "failed"
@@ -10706,7 +10752,7 @@ async function pageSubnets(client, vpcId) {
10706
10752
  } while (next);
10707
10753
  return out;
10708
10754
  }
10709
- const SERVICE_MANAGED_VPCE_TAG_KEYS = new Set(["AWSMSKManaged"]);
10755
+ const SERVICE_MANAGED_VPCE_TAG_KEYS = /* @__PURE__ */ new Set(["AWSMSKManaged"]);
10710
10756
  function isServiceManagedVpcEndpoint(e) {
10711
10757
  return (e.Tags ?? []).some((t) => typeof t.Key === "string" && SERVICE_MANAGED_VPCE_TAG_KEYS.has(t.Key));
10712
10758
  }
@@ -11611,6 +11657,7 @@ function diffGlueDatabaseChildren(input) {
11611
11657
  const added = [];
11612
11658
  for (const t of liveTables) {
11613
11659
  if (declared.has(t.name)) continue;
11660
+ if (t.sourceDatabaseName !== void 0 && t.sourceDatabaseName !== databaseName) continue;
11614
11661
  added.push({
11615
11662
  resourceType: "AWS::Glue::Table",
11616
11663
  identifier: `${databaseName}|${t.name}`,
@@ -11641,6 +11688,8 @@ async function enumerateGlueDatabaseChildren(ctx) {
11641
11688
  const { parent, desired, region } = ctx;
11642
11689
  const databaseName = parent.physicalId;
11643
11690
  if (!databaseName) return [];
11691
+ const dbInput = parent.declared.DatabaseInput;
11692
+ if (dbInput?.TargetDatabase !== void 0 || dbInput?.FederatedDatabase !== void 0) return [];
11644
11693
  const declaredTableNames = [];
11645
11694
  for (const r of desired.resources) {
11646
11695
  if (r.resourceType !== "AWS::Glue::Table" || !parentRefMatches(r.declared.DatabaseName, databaseName)) continue;
@@ -11657,11 +11706,12 @@ async function enumerateGlueDatabaseChildren(ctx) {
11657
11706
  ...READ_RETRY
11658
11707
  }), databaseName, catalogId)).filter((t) => typeof t.Name === "string").map((t) => ({
11659
11708
  name: t.Name,
11660
- label: t.TableType ? `${t.Name} (${t.TableType})` : t.Name
11709
+ label: t.TableType ? `${t.Name} (${t.TableType})` : t.Name,
11710
+ sourceDatabaseName: t.DatabaseName
11661
11711
  }))
11662
11712
  });
11663
11713
  }
11664
- const TGW_GONE_STATES = new Set([
11714
+ const TGW_GONE_STATES = /* @__PURE__ */ new Set([
11665
11715
  "deleted",
11666
11716
  "deleting",
11667
11717
  "failed"
@@ -13284,7 +13334,7 @@ const readGlueTable = async ({ physicalId, declared, region }) => {
13284
13334
  if (catalogId) model.CatalogId = catalogId;
13285
13335
  return model;
13286
13336
  };
13287
- const GLUE_CLASSIFIER_MANAGED = new Set([
13337
+ const GLUE_CLASSIFIER_MANAGED = /* @__PURE__ */ new Set([
13288
13338
  "Version",
13289
13339
  "CreationTime",
13290
13340
  "LastUpdated",
@@ -13334,7 +13384,7 @@ const readGlueWorkflow = async ({ physicalId, declared, region, accountId }) =>
13334
13384
  }
13335
13385
  return out;
13336
13386
  };
13337
- const GLUE_CONNECTION_MANAGED = new Set([
13387
+ const GLUE_CONNECTION_MANAGED = /* @__PURE__ */ new Set([
13338
13388
  "CreationTime",
13339
13389
  "LastUpdatedTime",
13340
13390
  "LastUpdatedBy",
@@ -13859,10 +13909,11 @@ function isCognitoSyncRegionUnavailable(err) {
13859
13909
  const readSesReceiptRuleSet = async ({ physicalId, declared, region }) => {
13860
13910
  const name = str$1(physicalId) ?? str$1(declared.RuleSetName);
13861
13911
  if (!name) return void 0;
13862
- const liveName = str$1((await new SESClient({
13912
+ const r = await new SESClient({
13863
13913
  region,
13864
13914
  ...READ_RETRY
13865
- }).send(new DescribeReceiptRuleSetCommand({ RuleSetName: name }))).Metadata?.Name);
13915
+ }).send(new DescribeReceiptRuleSetCommand({ RuleSetName: name }));
13916
+ const liveName = str$1(r.Metadata?.Name);
13866
13917
  if (!liveName) return void 0;
13867
13918
  return { RuleSetName: liveName };
13868
13919
  };
@@ -14191,7 +14242,8 @@ const supplementElastiCacheReplicationGroup = async ({ physicalId, region }) =>
14191
14242
  region,
14192
14243
  ...READ_RETRY
14193
14244
  });
14194
- const member = firstStr((await c.send(new DescribeReplicationGroupsCommand({ ReplicationGroupId: id }))).ReplicationGroups?.[0]?.MemberClusters);
14245
+ const rg = await c.send(new DescribeReplicationGroupsCommand({ ReplicationGroupId: id }));
14246
+ const member = firstStr(rg.ReplicationGroups?.[0]?.MemberClusters);
14195
14247
  if (!member) return void 0;
14196
14248
  const cluster = (await c.send(new DescribeCacheClustersCommand({
14197
14249
  CacheClusterId: member,
@@ -14252,19 +14304,21 @@ const supplementEcsService = async ({ physicalId, declared, region }) => {
14252
14304
  const supplementElastiCacheUser = async ({ physicalId, declared, region }) => {
14253
14305
  const userId = str$1(declared.UserId) ?? str$1(physicalId);
14254
14306
  if (!userId) return void 0;
14255
- const access = str$1((await new ElastiCacheClient({
14307
+ const r = await new ElastiCacheClient({
14256
14308
  region,
14257
14309
  ...READ_RETRY
14258
- }).send(new DescribeUsersCommand({ UserId: userId }))).Users?.[0]?.AccessString);
14310
+ }).send(new DescribeUsersCommand({ UserId: userId }));
14311
+ const access = str$1(r.Users?.[0]?.AccessString);
14259
14312
  return access !== void 0 ? { AccessString: access } : void 0;
14260
14313
  };
14261
14314
  const supplementMemoryDbUser = async ({ physicalId, declared, region }) => {
14262
14315
  const userName = str$1(declared.UserName) ?? str$1(physicalId);
14263
14316
  if (!userName) return void 0;
14264
- const access = str$1((await new MemoryDBClient({
14317
+ const r = await new MemoryDBClient({
14265
14318
  region,
14266
14319
  ...READ_RETRY
14267
- }).send(new DescribeUsersCommand$1({ UserName: userName }))).Users?.[0]?.AccessString);
14320
+ }).send(new DescribeUsersCommand$1({ UserName: userName }));
14321
+ const access = str$1(r.Users?.[0]?.AccessString);
14268
14322
  return access !== void 0 ? { AccessString: access } : void 0;
14269
14323
  };
14270
14324
  const readMemoryDbParamMap = async (c, groupName) => {
@@ -14354,10 +14408,11 @@ const supplementMskConfiguration = async ({ physicalId, region }) => {
14354
14408
  const supplementTrustStore = async ({ physicalId, region }) => {
14355
14409
  const arn = str$1(physicalId);
14356
14410
  if (!arn || !arn.startsWith("arn:")) return void 0;
14357
- const url = str$1((await new ElasticLoadBalancingV2Client({
14411
+ const r = await new ElasticLoadBalancingV2Client({
14358
14412
  region,
14359
14413
  ...READ_RETRY
14360
- }).send(new GetTrustStoreCaCertificatesBundleCommand({ TrustStoreArn: arn }))).Location);
14414
+ }).send(new GetTrustStoreCaCertificatesBundleCommand({ TrustStoreArn: arn }));
14415
+ const url = str$1(r.Location);
14361
14416
  if (!url) return void 0;
14362
14417
  try {
14363
14418
  const resp = await fetch(url, { signal: AbortSignal.timeout(CLIENT_REQUEST_HANDLER.requestTimeout) });
@@ -14371,29 +14426,32 @@ const supplementTrustStore = async ({ physicalId, region }) => {
14371
14426
  const supplementLambdaFunction = async ({ physicalId, region }) => {
14372
14427
  const name = str$1(physicalId);
14373
14428
  if (!name) return void 0;
14374
- const sha = str$1((await new LambdaClient({
14429
+ const r = await new LambdaClient({
14375
14430
  region,
14376
14431
  ...READ_RETRY
14377
- }).send(new GetFunctionCommand({ FunctionName: name }))).Configuration?.CodeSha256);
14432
+ }).send(new GetFunctionCommand({ FunctionName: name }));
14433
+ const sha = str$1(r.Configuration?.CodeSha256);
14378
14434
  return sha !== void 0 ? { CodeSha256: sha } : void 0;
14379
14435
  };
14380
14436
  const supplementGlueJob = async ({ physicalId, region }) => {
14381
14437
  const name = str$1(physicalId);
14382
14438
  if (!name) return void 0;
14383
- const loc = str$1((await new GlueClient({
14439
+ const glue = new GlueClient({
14384
14440
  region,
14385
14441
  ...READ_RETRY
14386
- }).send(new GetJobCommand({ JobName: name }))).Job?.Command?.ScriptLocation);
14442
+ });
14443
+ const loc = str$1((await glue.send(new GetJobCommand({ JobName: name }))).Job?.Command?.ScriptLocation);
14387
14444
  const m = loc !== void 0 ? /^s3:\/\/([^/]+)\/(.+)$/.exec(loc) : null;
14388
14445
  if (m === null) return void 0;
14389
14446
  try {
14390
- const hash = sha256Hex(await (await new S3Client({
14447
+ const obj = await new S3Client({
14391
14448
  region,
14392
14449
  ...READ_RETRY
14393
14450
  }).send(new GetObjectCommand({
14394
14451
  Bucket: m[1],
14395
14452
  Key: m[2]
14396
- }))).Body?.transformToByteArray());
14453
+ }));
14454
+ const hash = sha256Hex(await obj.Body?.transformToByteArray());
14397
14455
  return hash !== void 0 ? { ScriptSha256: hash } : void 0;
14398
14456
  } catch {
14399
14457
  return;
@@ -14716,10 +14774,10 @@ function supplementReadOnly(info, resourceType) {
14716
14774
  const supplements = SCHEMA_READONLY_SUPPLEMENTS[resourceType];
14717
14775
  if (!supplements?.length) return info;
14718
14776
  const dotted = supplements.map(pointerToDotted$1);
14719
- const readOnlyPaths = [...new Set([...info.readOnlyPaths, ...dotted])];
14777
+ const readOnlyPaths = [.../* @__PURE__ */ new Set([...info.readOnlyPaths, ...dotted])];
14720
14778
  return {
14721
14779
  ...info,
14722
- readOnly: new Set([...info.readOnly, ...dotted.filter((p) => !p.includes("."))]),
14780
+ readOnly: /* @__PURE__ */ new Set([...info.readOnly, ...dotted.filter((p) => !p.includes("."))]),
14723
14781
  readOnlyPaths
14724
14782
  };
14725
14783
  }
@@ -14803,7 +14861,7 @@ function collectDefaultPaths(definitions, properties) {
14803
14861
  for (const [k, child] of Object.entries(properties)) walk(child, k, /* @__PURE__ */ new Set(), 0);
14804
14862
  return out;
14805
14863
  }
14806
- const SCALAR_TYPES = new Set([
14864
+ const SCALAR_TYPES = /* @__PURE__ */ new Set([
14807
14865
  "string",
14808
14866
  "number",
14809
14867
  "integer",
@@ -15143,7 +15201,7 @@ function liveModelMap(reads) {
15143
15201
  for (const [logicalId, read] of reads) if (read.live) out.set(logicalId, read.live);
15144
15202
  return out;
15145
15203
  }
15146
- const DEFAULT_SG_LIST_TYPES = new Set([
15204
+ const DEFAULT_SG_LIST_TYPES = /* @__PURE__ */ new Set([
15147
15205
  "AWS::ElasticLoadBalancingV2::LoadBalancer",
15148
15206
  "AWS::EC2::NetworkInterface",
15149
15207
  "AWS::Neptune::DBCluster",
@@ -15158,10 +15216,11 @@ const DEFAULT_SG_LIST_TYPES = new Set([
15158
15216
  "AWS::DMS::ReplicationInstance",
15159
15217
  "AWS::EC2::ClientVpnEndpoint",
15160
15218
  "AWS::VpcLattice::ResourceGateway",
15161
- "AWS::EC2::VPCEndpoint"
15219
+ "AWS::EC2::VPCEndpoint",
15220
+ "AWS::ElastiCache::ServerlessCache"
15162
15221
  ]);
15163
- const DEFAULT_SUBNET_LIST_TYPES = new Set(["AWS::RedshiftServerless::Workgroup"]);
15164
- 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"]);
15165
15224
  function collectEbSecurityGroupIds(resources, liveById) {
15166
15225
  const ids = /* @__PURE__ */ new Set();
15167
15226
  for (const r of resources) {
@@ -15412,7 +15471,7 @@ function addedFinding(parent, c, read) {
15412
15471
  ...read.ok ? {} : { modelReadFailed: true }
15413
15472
  };
15414
15473
  }
15415
- const CC_GET_UNSUPPORTED_ADDED_TYPES = new Set([
15474
+ const CC_GET_UNSUPPORTED_ADDED_TYPES = /* @__PURE__ */ new Set([
15416
15475
  "AWS::Route53::RecordSet",
15417
15476
  "AWS::SQS::QueuePolicy",
15418
15477
  "AWS::SecretsManager::ResourcePolicy",
@@ -16002,7 +16061,7 @@ function buildEcsBgGovernedListenerRules(desired) {
16002
16061
  ruleIds = rl !== void 0 ? ruleIdsByLogicalId.get(rl) : [ruleRef];
16003
16062
  }
16004
16063
  if (!ruleIds) continue;
16005
- for (const id of ruleIds) out[id] = [...new Set([...out[id] ?? [], ...allowed])];
16064
+ for (const id of ruleIds) out[id] = [.../* @__PURE__ */ new Set([...out[id] ?? [], ...allowed])];
16006
16065
  }
16007
16066
  }
16008
16067
  }
@@ -16629,7 +16688,7 @@ function redactedHashOf(sentinelOrCanonical) {
16629
16688
  //#endregion
16630
16689
  //#region src/baseline/baseline-file.ts
16631
16690
  const OBSERVED_DEFAULT_TRACKED_PATHS = { "AWS::S3::Bucket": ["PublicAccessBlockConfiguration"] };
16632
- const KNOWN_BASELINE_KEYS = new Set([
16691
+ const KNOWN_BASELINE_KEYS = /* @__PURE__ */ new Set([
16633
16692
  "schemaVersion",
16634
16693
  "stackName",
16635
16694
  "region",
@@ -16643,13 +16702,13 @@ const KNOWN_BASELINE_KEYS = new Set([
16643
16702
  "observedDefaults",
16644
16703
  "enumeratedParents"
16645
16704
  ]);
16646
- const KNOWN_RECORDED_ENTRY_KEYS = new Set([
16705
+ const KNOWN_RECORDED_ENTRY_KEYS = /* @__PURE__ */ new Set([
16647
16706
  "logicalId",
16648
16707
  "resourceType",
16649
16708
  "path",
16650
16709
  "value"
16651
16710
  ]);
16652
- const RESERVED_DOS_DEVICE_NAMES = new Set([
16711
+ const RESERVED_DOS_DEVICE_NAMES = /* @__PURE__ */ new Set([
16653
16712
  "CON",
16654
16713
  "PRN",
16655
16714
  "AUX",
@@ -16852,7 +16911,7 @@ function sortRecorded(recorded) {
16852
16911
  * fresh AWS defaults now "appear since record", surfaces as false drift). Sorted keys keep
16853
16912
  * the JSON byte-stable; a logicalId neither recorded nor complete is dropped as dead. */
16854
16913
  function sortedPhysicalIds(ids, recorded, complete) {
16855
- const persist = new Set([...recorded.map((e) => e.logicalId), ...complete]);
16914
+ const persist = /* @__PURE__ */ new Set([...recorded.map((e) => e.logicalId), ...complete]);
16856
16915
  const out = {};
16857
16916
  for (const key of Object.keys(ids).sort()) if (persist.has(key) && ids[key] !== void 0) out[key] = ids[key];
16858
16917
  return out;
@@ -16932,7 +16991,7 @@ function computeCompleteResources(allLogicalIds, findings, recorded, previousCom
16932
16991
  * (read clean) would be invisible here; `opts.previous` keeps completeness
16933
16992
  * monotonic across re-records. */
16934
16993
  async function writeBaseline(stackName, region, accountId, findings, rawTemplate, recorded = buildRecorded(findings), opts = {}) {
16935
- const completeResources = computeCompleteResources(opts.allLogicalIds ?? [...new Set([...findings.map((f) => f.logicalId), ...recorded.map((a) => a.logicalId)])], findings, recorded, opts.previous?.completeResources ?? []);
16994
+ const completeResources = computeCompleteResources(opts.allLogicalIds ?? [.../* @__PURE__ */ new Set([...findings.map((f) => f.logicalId), ...recorded.map((a) => a.logicalId)])], findings, recorded, opts.previous?.completeResources ?? []);
16936
16995
  return {
16937
16996
  path: await writeBaselineFile({
16938
16997
  schemaVersion: 2,
@@ -17026,7 +17085,7 @@ function buildObservedDefaults(findings, previous) {
17026
17085
  function buildRecordedPhysicalIds(recorded, complete, live, previous) {
17027
17086
  const prior = previous?.recordedPhysicalIds ?? {};
17028
17087
  const out = {};
17029
- 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])) {
17030
17089
  const id = live?.get(logicalId) ?? prior[logicalId];
17031
17090
  if (id !== void 0) out[logicalId] = id;
17032
17091
  }
@@ -17048,8 +17107,8 @@ function checkBaselineAccount(baseline, currentAccountId, stackName, warn = cons
17048
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.`);
17049
17108
  }
17050
17109
  const RECORDABLE_GENERATED_PATHS = {
17051
- "AWS::Lambda::Function": new Set(["CodeSha256"]),
17052
- "AWS::Glue::Job": new Set(["ScriptSha256"])
17110
+ "AWS::Lambda::Function": /* @__PURE__ */ new Set(["CodeSha256"]),
17111
+ "AWS::Glue::Job": /* @__PURE__ */ new Set(["ScriptSha256"])
17053
17112
  };
17054
17113
  function isRecordableGenerated(f) {
17055
17114
  return f.tier === "generated" && (RECORDABLE_GENERATED_PATHS[f.resourceType]?.has(f.path) ?? false);
@@ -17901,24 +17960,27 @@ function formatFinding(f, stackName = "") {
17901
17960
  if (f.note) s += ` — ${sanitizeForTerminal(f.note)}`;
17902
17961
  const rt = f.resourceType;
17903
17962
  const rd = (v) => redactValue(rt, f.path, v);
17904
- if (f.tier === "declared") if (isRecord(f.desired) && isRecord(f.actual)) s += formatMapDelta(f.desired, f.actual, false, rt, f.path);
17905
- else {
17906
- const { a: d, b: act } = jPair(rd(f.desired), rd(f.actual));
17907
- s += `\n desired=${style.desired(d)}\n actual =${style.actual(act)}`;
17908
- }
17909
- else if (f.tier === "added" && f.desired !== void 0) if (isRecord(f.desired) && isRecord(f.actual)) s += formatMapDelta(f.desired, f.actual, true, rt, f.path);
17910
- else {
17911
- const { a: base, b: act } = jPair(rd(f.desired), rd(f.actual));
17912
- s += `\n baseline=${style.desired(base)}\n actual =${style.actual(act)}`;
17913
- }
17914
- else if (f.tier === "added" && f.actual !== void 0) s += `\n actual =${style.actual(j(rd(f.actual)))}`;
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)))}`;
17915
17976
  else if (f.tier === "undeclared" && f.arrayDelta) s += formatArrayDelta(f.arrayDelta, rt, f.path);
17916
- else if (f.tier === "undeclared" && f.desired !== void 0) if (isRecord(f.desired) && isRecord(f.actual)) s += formatMapDelta(f.desired, f.actual, true, rt, f.path);
17917
- else {
17918
- const { a: base, b: act } = jPair(rd(f.desired), rd(f.actual));
17919
- s += `\n baseline=${style.desired(base)}\n actual =${style.actual(act)}`;
17920
- }
17921
- else if (f.tier === "undeclared" || f.tier === "atDefault" || f.tier === "generated") s += `\n actual =${style.actual(j(rd(f.actual)))}`;
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)))}`;
17922
17984
  if (f.hint) s += `\n ${style.note(`↳ ${sanitizeForTerminal(f.hint)}`)}`;
17923
17985
  return s;
17924
17986
  }
@@ -17926,12 +17988,13 @@ const isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v)
17926
17988
  function formatMapDelta(desired, actual, baselineLabels, resourceType, basePath) {
17927
17989
  const lhs = baselineLabels ? "baseline" : "desired";
17928
17990
  const rhs = baselineLabels ? "actual " : "actual ";
17929
- const keys = [...new Set([...Object.keys(desired), ...Object.keys(actual)])].sort();
17991
+ const keys = [.../* @__PURE__ */ new Set([...Object.keys(desired), ...Object.keys(actual)])].sort();
17930
17992
  const rd = (k, v) => resourceType !== void 0 && basePath !== void 0 ? redactValue(resourceType, `${basePath}.${k}`, v) : v;
17931
17993
  let s = "";
17932
17994
  for (const k of keys) {
17933
17995
  const inD = Object.hasOwn(desired, k);
17934
- if (inD && Object.hasOwn(actual, k)) {
17996
+ const inA = Object.hasOwn(actual, k);
17997
+ if (inD && inA) {
17935
17998
  if (deepEqual(desired[k], actual[k])) continue;
17936
17999
  const { a, b } = jPair(rd(k, desired[k]), rd(k, actual[k]));
17937
18000
  const sk = sanitizeForTerminal(k);
@@ -18419,7 +18482,7 @@ const isArn = (v) => {
18419
18482
  return s && s.startsWith("arn:") ? s : void 0;
18420
18483
  };
18421
18484
  const topSeg = (path) => path.split("/").filter(Boolean)[0] ?? "";
18422
- const ATTACHMENT_PROPS = new Set([
18485
+ const ATTACHMENT_PROPS = /* @__PURE__ */ new Set([
18423
18486
  "Roles",
18424
18487
  "Users",
18425
18488
  "Groups"
@@ -18556,7 +18619,7 @@ const writeServiceDiscoveryHttpNamespace = async (ctx, ops) => {
18556
18619
  Namespace: { Description: str(m.Description) ?? "" }
18557
18620
  }));
18558
18621
  };
18559
- const SD_SERVICE_MUTABLE_TOPS = new Set([
18622
+ const SD_SERVICE_MUTABLE_TOPS = /* @__PURE__ */ new Set([
18560
18623
  "Description",
18561
18624
  "DnsConfig",
18562
18625
  "HealthCheckConfig"
@@ -18618,7 +18681,7 @@ const writeSageMakerMonitoringSchedule = async (ctx, ops) => {
18618
18681
  MonitoringScheduleConfig: config
18619
18682
  }));
18620
18683
  };
18621
- const DOCDB_CLUSTER_MODIFY_PARAMS = new Set([
18684
+ const DOCDB_CLUSTER_MODIFY_PARAMS = /* @__PURE__ */ new Set([
18622
18685
  "BackupRetentionPeriod",
18623
18686
  "PreferredBackupWindow",
18624
18687
  "PreferredMaintenanceWindow",
@@ -18648,7 +18711,7 @@ const writeDocDbCluster = async (ctx, ops) => {
18648
18711
  }).send(new ModifyDBClusterCommand(input));
18649
18712
  assertOpsConsumed("DocDB DBCluster", ops, DOCDB_CLUSTER_MODIFY_PARAMS);
18650
18713
  };
18651
- const DOCDB_INSTANCE_MODIFY_PARAMS = new Set([
18714
+ const DOCDB_INSTANCE_MODIFY_PARAMS = /* @__PURE__ */ new Set([
18652
18715
  "DBInstanceClass",
18653
18716
  "PreferredMaintenanceWindow",
18654
18717
  "CACertificateIdentifier",
@@ -19154,7 +19217,7 @@ const writeConfigConfigurationRecorder = async (ctx, ops) => {
19154
19217
  ...CLIENT_TIMEOUTS
19155
19218
  }).send(new PutConfigurationRecorderCommand({ ConfigurationRecorder: recorder }));
19156
19219
  };
19157
- const OS_UPDATABLE_OPTIONS = new Set([
19220
+ const OS_UPDATABLE_OPTIONS = /* @__PURE__ */ new Set([
19158
19221
  "ClusterConfig",
19159
19222
  "EBSOptions",
19160
19223
  "SnapshotOptions",
@@ -19280,7 +19343,8 @@ function apigwKnobPatches(op) {
19280
19343
  }));
19281
19344
  }
19282
19345
  const ir = segs[1]?.match(/^IntegrationResponses\[(.+)\]$/);
19283
- const knob = APIGW_KNOB_RESET[(ir ? segs[2] : segs[1]) ?? ""];
19346
+ const field = (ir ? segs[2] : segs[1]) ?? "";
19347
+ const knob = APIGW_KNOB_RESET[field];
19284
19348
  if (!knob) throw new Error(`unsupported ApiGateway method knob: ${op.path}`);
19285
19349
  const value = op.op === "add" ? String(op.value) : knob.resetTo;
19286
19350
  const patch = {
@@ -19430,9 +19494,11 @@ const writeCodeBuildProject = async (ctx, ops) => {
19430
19494
  const apiKey = CODEBUILD_PROJECT_MODIFY_PARAMS[top];
19431
19495
  if (!apiKey) continue;
19432
19496
  let val = desired[top];
19433
- if (val === void 0) if (top === "Description" || top === "SourceVersion") val = "";
19434
- else if (top === "ConcurrentBuildLimit") val = -1;
19435
- else throw new Error(`CodeBuild Project ${top} cannot be cleared via UpdateProject (a selective modify keeps an omitted field); update it manually`);
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
+ }
19436
19502
  input[apiKey] = val;
19437
19503
  any = true;
19438
19504
  }
@@ -19457,8 +19523,10 @@ const writeMediaConvertQueue = async (ctx, ops) => {
19457
19523
  const apiKey = MEDIACONVERT_QUEUE_MODIFY_PARAMS[top];
19458
19524
  if (!apiKey) continue;
19459
19525
  let val = desired[top];
19460
- if (val === void 0) if (top === "Description") val = "";
19461
- else throw new Error(`MediaConvert Queue ${top} cannot be cleared via UpdateQueue; update it manually`);
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
+ }
19462
19530
  input[apiKey] = val;
19463
19531
  any = true;
19464
19532
  }
@@ -19486,8 +19554,10 @@ const writeDaxCluster = async (ctx, ops) => {
19486
19554
  const apiKey = DAX_CLUSTER_MODIFY_PARAMS[top];
19487
19555
  if (!apiKey) continue;
19488
19556
  let val = desired[top];
19489
- if (val === void 0) if (top === "NotificationTopicARN" || top === "Description") val = "";
19490
- 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`);
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
+ }
19491
19561
  input[apiKey] = val;
19492
19562
  any = true;
19493
19563
  }
@@ -19600,7 +19670,7 @@ const writeMemoryDbParameterGroup = async (ctx, ops) => {
19600
19670
  ParameterNames: reset
19601
19671
  }));
19602
19672
  };
19603
- const CLIENT_VPN_SCALAR_PARAMS = new Set([
19673
+ const CLIENT_VPN_SCALAR_PARAMS = /* @__PURE__ */ new Set([
19604
19674
  "Description",
19605
19675
  "SplitTunnel",
19606
19676
  "VpnPort",
@@ -19620,16 +19690,18 @@ const writeEc2ClientVpnEndpoint = async (ctx, ops) => {
19620
19690
  if (desired[top] !== void 0) {
19621
19691
  input[top] = desired[top];
19622
19692
  any = true;
19623
- } else if (removed(top)) if (top === "Description") {
19624
- input.Description = "";
19625
- any = true;
19626
- } else if (top === "SplitTunnel") {
19627
- input.SplitTunnel = false;
19628
- any = true;
19629
- } else if (top === "DisconnectOnSessionTimeout") {
19630
- input.DisconnectOnSessionTimeout = false;
19631
- any = true;
19632
- } else unExpressible.push(top);
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
+ }
19633
19705
  } else if (top === "ConnectionLogOptions") {
19634
19706
  if (desired.ConnectionLogOptions !== void 0) {
19635
19707
  input.ConnectionLogOptions = desired.ConnectionLogOptions;
@@ -19730,7 +19802,7 @@ const writeLexBotLocales = async (ctx, ops) => {
19730
19802
  for (const dst of declaredSlotTypes) {
19731
19803
  const name = lexStr(dst.Name);
19732
19804
  if (!name || slotTypeNameToId.has(name)) continue;
19733
- const newId = lexStr((await c.send(new CreateSlotTypeCommand({
19805
+ const created = await c.send(new CreateSlotTypeCommand({
19734
19806
  botId,
19735
19807
  botVersion,
19736
19808
  localeId,
@@ -19738,7 +19810,8 @@ const writeLexBotLocales = async (ctx, ops) => {
19738
19810
  description: lexStr(dst.Description),
19739
19811
  slotTypeValues: lexMapSlotTypeValues(dst),
19740
19812
  valueSelectionSetting: { resolutionStrategy: lexResolutionStrategy(dst) ?? "OriginalValue" }
19741
- }))).slotTypeId);
19813
+ }));
19814
+ const newId = lexStr(created.slotTypeId);
19742
19815
  if (newId) slotTypeNameToId.set(name, newId);
19743
19816
  }
19744
19817
  const resolveSlotTypeId = (name) => name === void 0 ? void 0 : name.startsWith("AMAZON.") ? name : slotTypeNameToId.get(name);
@@ -19799,7 +19872,7 @@ const writeLexBotLocales = async (ctx, ops) => {
19799
19872
  for (const di of declaredIntents) {
19800
19873
  const name = lexStr(di.Name);
19801
19874
  if (!name || isBuiltinIntent(name) || intentNameToId.has(name)) continue;
19802
- const newId = lexStr((await c.send(new CreateIntentCommand({
19875
+ const created = await c.send(new CreateIntentCommand({
19803
19876
  botId,
19804
19877
  botVersion,
19805
19878
  localeId,
@@ -19807,7 +19880,8 @@ const writeLexBotLocales = async (ctx, ops) => {
19807
19880
  description: lexStr(di.Description),
19808
19881
  parentIntentSignature: lexStr(di.ParentIntentSignature),
19809
19882
  sampleUtterances: lexMapUtterances(di)
19810
- }))).intentId);
19883
+ }));
19884
+ const newId = lexStr(created.intentId);
19811
19885
  if (newId) intentNameToId.set(name, newId);
19812
19886
  }
19813
19887
  for (const di of declaredIntents) {
@@ -19844,7 +19918,7 @@ const writeLexBotLocales = async (ctx, ops) => {
19844
19918
  const elic = { slotConstraint: lexStr(declaredElic?.SlotConstraint) ?? "Optional" };
19845
19919
  const prompt = lexBuildPrompt(declaredElic?.PromptSpecification);
19846
19920
  if (prompt !== void 0) elic.promptSpecification = prompt;
19847
- const newId = lexStr((await c.send(new CreateSlotCommand({
19921
+ const created = await c.send(new CreateSlotCommand({
19848
19922
  botId,
19849
19923
  botVersion,
19850
19924
  localeId,
@@ -19853,7 +19927,8 @@ const writeLexBotLocales = async (ctx, ops) => {
19853
19927
  slotTypeId: resolveSlotTypeId(lexStr(ds.SlotTypeName)),
19854
19928
  description: lexStr(ds.Description),
19855
19929
  valueElicitationSetting: elic
19856
- }))).slotId);
19930
+ }));
19931
+ const newId = lexStr(created.slotId);
19857
19932
  if (newId) slotNameToId.set(sName, newId);
19858
19933
  }
19859
19934
  for (const [name, slotId] of slotNameToId) {
@@ -19985,7 +20060,7 @@ const writeLexBotLocales = async (ctx, ops) => {
19985
20060
  }
19986
20061
  }
19987
20062
  };
19988
- const EB_APPLICATION_MODIFY_PARAMS = new Set(["Description"]);
20063
+ const EB_APPLICATION_MODIFY_PARAMS = /* @__PURE__ */ new Set(["Description"]);
19989
20064
  const EB_APPLICATION_DEFAULT_RESOURCE_LIFECYCLE = { VersionLifecycleConfig: {
19990
20065
  MaxCountRule: {
19991
20066
  DeleteSourceFromS3: false,
@@ -20024,9 +20099,9 @@ const writeElasticBeanstalkApplication = async (ctx, ops) => {
20024
20099
  ApplicationName: name,
20025
20100
  ResourceLifecycleConfig: lifecycle
20026
20101
  }));
20027
- assertOpsConsumed("ElasticBeanstalk Application", ops, new Set([...EB_APPLICATION_MODIFY_PARAMS, "ResourceLifecycleConfig"]));
20102
+ assertOpsConsumed("ElasticBeanstalk Application", ops, /* @__PURE__ */ new Set([...EB_APPLICATION_MODIFY_PARAMS, "ResourceLifecycleConfig"]));
20028
20103
  };
20029
- const EB_ENVIRONMENT_MODIFY_PARAMS = new Set(["Description"]);
20104
+ const EB_ENVIRONMENT_MODIFY_PARAMS = /* @__PURE__ */ new Set(["Description"]);
20030
20105
  const writeElasticBeanstalkEnvironment = async (ctx, ops) => {
20031
20106
  const name = str(ctx.physicalId) ?? str(ctx.declared["EnvironmentName"]);
20032
20107
  if (!name) throw new Error("cannot resolve Elastic Beanstalk EnvironmentName for revert");
@@ -20110,7 +20185,7 @@ const writeKinesisVideoStreamStorage = async (ctx, ops) => {
20110
20185
  StreamStorageConfiguration: { DefaultStorageTier: target }
20111
20186
  }));
20112
20187
  };
20113
- const APIGWV2_STAGE_UPDATE_FIELDS = new Set([
20188
+ const APIGWV2_STAGE_UPDATE_FIELDS = /* @__PURE__ */ new Set([
20114
20189
  "DefaultRouteSettings",
20115
20190
  "RouteSettings",
20116
20191
  "AccessLogSettings",
@@ -20215,8 +20290,8 @@ const writeBudget = async (ctx, ops) => {
20215
20290
  }));
20216
20291
  };
20217
20292
  const LAMBDA_PERMISSION_PROJECTED_CONDITIONS = {
20218
- ArnLike: new Set(["AWS:SourceArn"]),
20219
- StringEquals: new Set([
20293
+ ArnLike: /* @__PURE__ */ new Set(["AWS:SourceArn"]),
20294
+ StringEquals: /* @__PURE__ */ new Set([
20220
20295
  "AWS:SourceAccount",
20221
20296
  "aws:PrincipalOrgID",
20222
20297
  "lambda:FunctionUrlAuthType"
@@ -20264,7 +20339,7 @@ const writeLambdaPermission = async (ctx, ops) => {
20264
20339
  FunctionUrlAuthType: str(desired["FunctionUrlAuthType"])
20265
20340
  }));
20266
20341
  };
20267
- const SDK_REBUILD_WRITER_TYPES = new Set(["AWS::Lambda::Permission"]);
20342
+ const SDK_REBUILD_WRITER_TYPES = /* @__PURE__ */ new Set(["AWS::Lambda::Permission"]);
20268
20343
  const SDK_WRITERS = {
20269
20344
  "AWS::Lambda::Permission": writeLambdaPermission,
20270
20345
  "AWS::Budgets::Budget": writeBudget,
@@ -20347,7 +20422,7 @@ function reindexNestedPointer(pointer, live, resourceType) {
20347
20422
  return `/${out.join("/")}`;
20348
20423
  }
20349
20424
  const NESTED_POLL_INTERVAL_MS = 2e3;
20350
- const NESTED_POLL_TIMEOUT_MS = 900 * 1e3;
20425
+ const NESTED_POLL_TIMEOUT_MS = 9e5;
20351
20426
  const NESTED_MAX_POLL_READ_FAILURES = 10;
20352
20427
  const nestedSleep = (ms) => new Promise((r) => setTimeout(r, ms));
20353
20428
  async function pollNestedToCompletion(cc, first, poll = {}) {
@@ -20582,12 +20657,13 @@ const SYNTHETIC_READ_SIGNAL_PATHS = {
20582
20657
  "AWS::Glue::Job": ["ScriptSha256"]
20583
20658
  };
20584
20659
  const WRITEONLY_REINCLUDE_SKIP = { "AWS::Lambda::Function": ["Code"] };
20585
- const CC_REVERTABLE_DESPITE_READ_OVERRIDE = new Set([
20660
+ const CC_REVERTABLE_DESPITE_READ_OVERRIDE = /* @__PURE__ */ new Set([
20586
20661
  "AWS::Scheduler::Schedule",
20587
20662
  "AWS::Cognito::IdentityPool",
20588
20663
  "AWS::EC2::EIP"
20589
20664
  ]);
20590
- const REVERT_SET_DEFAULT_PATHS = new Set([
20665
+ const REVERT_SET_DEFAULT_PATHS = /* @__PURE__ */ new Set([
20666
+ "AWS::ElastiCache::ServerlessCache\0Description",
20591
20667
  "AWS::EC2::CapacityReservation\0InstanceMatchCriteria",
20592
20668
  "AWS::EC2::CapacityReservation\0EndDateType",
20593
20669
  "AWS::CodeDeploy::DeploymentGroup\0DeploymentConfigName",
@@ -20796,6 +20872,69 @@ function nullHuskRemovalOps(model) {
20796
20872
  ops.sort((a, b) => compareDocOrderDescending(a.path, b.path));
20797
20873
  return ops;
20798
20874
  }
20875
+ const GUARDDUTY_DS_FEATURE_BLOCKS = [
20876
+ {
20877
+ block: "S3Logs",
20878
+ feature: "S3_DATA_EVENTS"
20879
+ },
20880
+ {
20881
+ block: "Kubernetes",
20882
+ feature: "EKS_AUDIT_LOGS"
20883
+ },
20884
+ {
20885
+ block: "MalwareProtection",
20886
+ feature: "EBS_MALWARE_PROTECTION"
20887
+ }
20888
+ ];
20889
+ function firstBooleanLeaf(v) {
20890
+ if (typeof v === "boolean") return v;
20891
+ if (v && typeof v === "object" && !Array.isArray(v)) for (const x of Object.values(v)) {
20892
+ const b = firstBooleanLeaf(x);
20893
+ if (b !== void 0) return b;
20894
+ }
20895
+ }
20896
+ function applyGuardDutyDetectorPatchShape(item, live) {
20897
+ const features = Array.isArray(live.Features) ? live.Features : [];
20898
+ const featureIdx = (name) => features.findIndex((f) => f && f.Name === name);
20899
+ const ops = [];
20900
+ for (const op of item.ops) {
20901
+ if (!op.path.startsWith("/DataSources")) {
20902
+ ops.push(op);
20903
+ continue;
20904
+ }
20905
+ const seg = op.path.split("/")[2];
20906
+ const blocks = seg ? GUARDDUTY_DS_FEATURE_BLOCKS.filter((b) => b.block === seg) : GUARDDUTY_DS_FEATURE_BLOCKS;
20907
+ const translated = [];
20908
+ for (const b of blocks) {
20909
+ const sub = seg ? op.value : op.value?.[b.block];
20910
+ const enabled = op.op === "remove" ? true : firstBooleanLeaf(sub);
20911
+ const idx = featureIdx(b.feature);
20912
+ if (enabled === void 0 || idx < 0) continue;
20913
+ translated.push({
20914
+ op: "add",
20915
+ path: `/Features/${idx}/Status`,
20916
+ value: enabled ? "ENABLED" : "DISABLED",
20917
+ prior: op.prior,
20918
+ human: `${b.feature} -> ${enabled ? "ENABLED" : "DISABLED"} (translated from ${op.path}, #1752)`
20919
+ });
20920
+ }
20921
+ ops.push(...translated.length > 0 ? translated : [op]);
20922
+ }
20923
+ if (live.DataSources !== void 0 && !ops.some((o) => o.path === "/DataSources")) ops.push({
20924
+ op: "remove",
20925
+ path: "/DataSources",
20926
+ contract: true,
20927
+ human: "DataSources -> remove from the write model (Features projection, #1752)"
20928
+ });
20929
+ const eksIdx = featureIdx("EKS_RUNTIME_MONITORING");
20930
+ if (eksIdx >= 0 && featureIdx("RUNTIME_MONITORING") >= 0) ops.push({
20931
+ op: "remove",
20932
+ path: `/Features/${eksIdx}`,
20933
+ contract: true,
20934
+ human: "EKS_RUNTIME_MONITORING -> remove (deprecated alias of RUNTIME_MONITORING, #1752)"
20935
+ });
20936
+ item.ops = ops;
20937
+ }
20799
20938
  function compareDocOrderDescending(a, b) {
20800
20939
  const as = a.split("/").slice(1);
20801
20940
  const bs = b.split("/").slice(1);
@@ -20827,7 +20966,7 @@ function splitTopLevelDots(dotted) {
20827
20966
  function toPointer(dotted) {
20828
20967
  return "/" + splitTopLevelDots(dotted).map((s) => s.replace(/~/g, "~0").replace(/\//g, "~1")).join("/");
20829
20968
  }
20830
- const DRIFT_TIERS = new Set(["declared", "undeclared"]);
20969
+ const DRIFT_TIERS = /* @__PURE__ */ new Set(["declared", "undeclared"]);
20831
20970
  const SG_REVERT_SIDE = {
20832
20971
  SecurityGroupIngress: "ingress",
20833
20972
  SecurityGroupEgress: "egress"
@@ -20849,7 +20988,7 @@ function isUnderCreateOnly(findingPath, createOnlyPaths) {
20849
20988
  }
20850
20989
  return false;
20851
20990
  }
20852
- 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"]);
20853
20992
  function buildRevertPlan(findings, baseline, opts = {}) {
20854
20993
  const itemsByLogical = /* @__PURE__ */ new Map();
20855
20994
  const notRevertable = [];
@@ -21128,6 +21267,7 @@ function buildRevertPlan(findings, baseline, opts = {}) {
21128
21267
  item.liveRaw = live;
21129
21268
  const huskOps = nullHuskRemovalOps(live);
21130
21269
  if (huskOps.length > 0) item.ops.unshift(...huskOps);
21270
+ if (item.resourceType === "AWS::GuardDuty::Detector") applyGuardDutyDetectorPatchShape(item, live);
21131
21271
  }
21132
21272
  const ordered = [...itemsByLogical.values()];
21133
21273
  return {
@@ -21317,7 +21457,7 @@ function tagPreservingOps(ops, liveRaw) {
21317
21457
  });
21318
21458
  return changed ? out : ops;
21319
21459
  }
21320
- 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"]);
21321
21461
  const CC_UPDATE_REJECTED_EMPTY_PATHS = {
21322
21462
  "AWS::VpcLattice::Rule": ["/Match/HttpMatch/HeaderMatches"],
21323
21463
  "AWS::ImageBuilder::DistributionConfiguration": [
@@ -21445,7 +21585,7 @@ function toPatchDocument(item, liveRaw = item.liveRaw) {
21445
21585
  //#endregion
21446
21586
  //#region src/revert/apply.ts
21447
21587
  const POLL_INTERVAL_MS = 2e3;
21448
- const TIMEOUT_MS = 900 * 1e3;
21588
+ const TIMEOUT_MS = 9e5;
21449
21589
  const MAX_POLL_READ_FAILURES = 10;
21450
21590
  function isAlreadyGone(e) {
21451
21591
  const o = e ?? {};
@@ -22106,10 +22246,12 @@ async function ignoreStack(p) {
22106
22246
  }
22107
22247
  }
22108
22248
  const { path, added, alreadyPresent } = await addIgnoreRules(chosen.map((f) => ignoreRuleFor(f, stackName, accountId, region)));
22109
- if (!p.json) if (added.length > 0) {
22110
- const dup = alreadyPresent.length > 0 ? `, ${alreadyPresent.length} already present` : "";
22111
- console.log(style.ok(`ignore rule(s) added: ${path} (${added.length} new${dup})`));
22112
- } else console.log(style.note(`${stackName}: all ${alreadyPresent.length} selected rule(s) already present — config unchanged`));
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
+ }
22113
22255
  return {
22114
22256
  wrote: added.length > 0,
22115
22257
  refused: false,
@@ -22142,16 +22284,18 @@ function formatPlan(stackName, region, plan, opts = {}) {
22142
22284
  lines.push(`\n ${g.displayId} (${g.resourceType})`);
22143
22285
  for (const h of g.humans) lines.push(` - ${h}`);
22144
22286
  }
22145
- if (plan.notRevertable.length > 0) if (opts.verbose) {
22146
- lines.push(`\n NOT revertable (${plan.notRevertable.length}):`);
22147
- for (const n of plan.notRevertable) lines.push(` - ${n.displayId}.${n.path} (${n.resourceType}) — ${n.reason}`);
22148
- } else {
22149
- const counts = /* @__PURE__ */ new Map();
22150
- for (const n of plan.notRevertable) counts.set(n.reason, (counts.get(n.reason) ?? 0) + 1);
22151
- [...counts.entries()].sort((a, b) => b[1] - a[1] || (a[0] < b[0] ? -1 : 1)).forEach(([reason, count], i) => {
22152
- lines.push(i === 0 ? `\n NOT revertable: ${count} (${reason})` : ` · ${count} (${reason})`);
22153
- });
22154
- lines.push(" (run with --verbose for the full list)");
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
+ }
22155
22299
  }
22156
22300
  return lines;
22157
22301
  }
@@ -22344,14 +22488,16 @@ async function revertStack(p) {
22344
22488
  }
22345
22489
  plan = augment(plan);
22346
22490
  const inProgress = await stackInProgressRefusal(stackName, region);
22347
- if (inProgress) if (force) console.error("\nwarning: " + inProgress + " Proceeding anyway (--force).");
22348
- else {
22349
- console.error("\n" + inProgress);
22350
- return {
22351
- exit: 2,
22352
- aborted: false,
22353
- refusedReason: inProgress
22354
- };
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
+ }
22355
22501
  }
22356
22502
  const cc = new CloudControlClient({
22357
22503
  region,
@@ -22420,7 +22566,8 @@ async function revertStack(p) {
22420
22566
  }, buildRetryOpts(item.displayId));
22421
22567
  } else {
22422
22568
  const res = resByLogical.get(item.logicalId);
22423
- r = await applyRevertItem(cc, item, await CC_IDENTIFIER_ADAPTERS[item.resourceType]?.(item.physicalId, res?.declared ?? {}, region, gathered.desired.accountId) ?? item.physicalId, buildRetryOpts(item.displayId));
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));
22424
22571
  }
22425
22572
  applied.push({
22426
22573
  logicalId: item.logicalId,
@@ -22764,13 +22911,14 @@ async function runIgnore(args) {
22764
22911
  warnStackStatus(stackName, desired.stackStatusWarning);
22765
22912
  const baseline = await loadBaseline(stackName, desired.accountId, region);
22766
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);
22767
22919
  const result = await ignoreStack({
22768
22920
  stackName,
22769
- findings: applyIgnores(applyBaseline(findings, baseline, ignoreApplyBaselineOpts(desired)), {
22770
- stackName,
22771
- accountId: desired.accountId,
22772
- region
22773
- }, config),
22921
+ findings: reconciled,
22774
22922
  yes: a.yes,
22775
22923
  interactive: a.json ? false : isInteractive(),
22776
22924
  accountId: desired.accountId,
@@ -23004,7 +23152,8 @@ async function actionPicker(message, rows) {
23004
23152
  cursor = 0;
23005
23153
  }
23006
23154
  });
23007
- if (isCancel$1(await prompt.prompt())) return void 0;
23155
+ const result = await prompt.prompt();
23156
+ if (isCancel$1(result)) return void 0;
23008
23157
  return [...actions];
23009
23158
  }
23010
23159