@cdkd/cli 0.356.0 → 0.356.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.
Files changed (50) hide show
  1. package/dist/{ambient-client-defaults-DdMbK4P9.js → ambient-client-defaults-CA9D0blo.js} +3 -3
  2. package/dist/{ambient-client-defaults-DdMbK4P9.js.map → ambient-client-defaults-CA9D0blo.js.map} +1 -1
  3. package/dist/{asg-provider-CNU0xa47.js → asg-provider-DKK_ojhX.js} +6 -6
  4. package/dist/{asg-provider-CNU0xa47.js.map → asg-provider-DKK_ojhX.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-I0NaCnMw.js → custom-resource-runtime-CeK8xyQR.js} +6 -6
  7. package/dist/{custom-resource-runtime-I0NaCnMw.js.map → custom-resource-runtime-CeK8xyQR.js.map} +1 -1
  8. package/dist/{db-associated-roles-DksJGXc2.js → db-associated-roles-DgDc5wy0.js} +2 -2
  9. package/dist/{db-associated-roles-DksJGXc2.js.map → db-associated-roles-DgDc5wy0.js.map} +1 -1
  10. package/dist/{delete-started-CJaeCjUv.js → delete-started--vmpKHHp.js} +4 -4
  11. package/dist/{delete-started-CJaeCjUv.js.map → delete-started--vmpKHHp.js.map} +1 -1
  12. package/dist/{deploy-engine-OG-CIQp9.js → deploy-engine-Khkf436D.js} +30 -16
  13. package/dist/deploy-engine-Khkf436D.js.map +1 -0
  14. package/dist/{diff-calculator-Cs9j467-.js → diff-calculator-FgirPchn.js} +12 -12
  15. package/dist/{diff-calculator-Cs9j467-.js.map → diff-calculator-FgirPchn.js.map} +1 -1
  16. package/dist/{ec2-termination-protection-DbyJ2q10.js → ec2-termination-protection-DSas--OD.js} +6 -6
  17. package/dist/{ec2-termination-protection-DbyJ2q10.js.map → ec2-termination-protection-DSas--OD.js.map} +1 -1
  18. package/dist/{ecr-uri-tlBeIkdd.js → ecr-uri-CNCeWz7V.js} +2 -2
  19. package/dist/{ecr-uri-tlBeIkdd.js.map → ecr-uri-CNCeWz7V.js.map} +1 -1
  20. package/dist/{expected-bucket-owner-JY3hiATN.js → expected-bucket-owner-OcuAToiT.js} +2 -2
  21. package/dist/{expected-bucket-owner-JY3hiATN.js.map → expected-bucket-owner-OcuAToiT.js.map} +1 -1
  22. package/dist/{iam-role-provider-Dqv_R3ru.js → iam-role-provider-D0O-zHMi.js} +8 -8
  23. package/dist/{iam-role-provider-Dqv_R3ru.js.map → iam-role-provider-D0O-zHMi.js.map} +1 -1
  24. package/dist/{image-plan-DGVKU8RB.js → image-plan-BUGUXaN0.js} +8 -8
  25. package/dist/{image-plan-DGVKU8RB.js.map → image-plan-BUGUXaN0.js.map} +1 -1
  26. package/dist/index.js +5 -5
  27. package/dist/{logger-DIGYs-yu.js → logger-CUFsTxnP.js} +7 -2
  28. package/dist/{logger-DIGYs-yu.js.map → logger-CUFsTxnP.js.map} +1 -1
  29. package/dist/{neptune-provider-BMraChKs.js → neptune-provider-CACg-APp.js} +7 -7
  30. package/dist/{neptune-provider-BMraChKs.js.map → neptune-provider-CACg-APp.js.map} +1 -1
  31. package/dist/{program-BikjBQ6T.js → program-Dzi4h57y.js} +15 -15
  32. package/dist/{program-BikjBQ6T.js.map → program-Dzi4h57y.js.map} +1 -1
  33. package/dist/{provider-classes-CzitNbPu.js → provider-classes-CxAMhRwb.js} +223 -164
  34. package/dist/{provider-classes-CzitNbPu.js.map → provider-classes-CxAMhRwb.js.map} +1 -1
  35. package/dist/{rds-provider-MhOObj_3.js → rds-provider-CvggdQtJ.js} +10 -10
  36. package/dist/{rds-provider-MhOObj_3.js.map → rds-provider-CvggdQtJ.js.map} +1 -1
  37. package/dist/{read-replica-Cefn8iv7.js → read-replica-cUM8un9s.js} +3 -3
  38. package/dist/{read-replica-Cefn8iv7.js.map → read-replica-cUM8un9s.js.map} +1 -1
  39. package/dist/{replacement-rules-CCuQt7l9.js → replacement-rules-DHfiJ4Ez.js} +3 -3
  40. package/dist/{replacement-rules-CCuQt7l9.js.map → replacement-rules-DHfiJ4Ez.js.map} +1 -1
  41. package/dist/{resource-deadline-CzLso0NJ.js → resource-deadline-D_yTCpOm.js} +4 -4
  42. package/dist/{resource-deadline-CzLso0NJ.js.map → resource-deadline-D_yTCpOm.js.map} +1 -1
  43. package/dist/{restore-source-guard-qc_YrJ4H.js → restore-source-guard-CnuS2SSM.js} +4 -4
  44. package/dist/{restore-source-guard-qc_YrJ4H.js.map → restore-source-guard-CnuS2SSM.js.map} +1 -1
  45. package/dist/{run-cli-DdhQMWgv.js → run-cli-BhIcSCGu.js} +2 -2
  46. package/dist/{run-cli-DdhQMWgv.js.map → run-cli-BhIcSCGu.js.map} +1 -1
  47. package/dist/{version-Bm3FPycJ.js → version-DGMI88l4.js} +2 -2
  48. package/dist/{version-Bm3FPycJ.js.map → version-DGMI88l4.js.map} +1 -1
  49. package/package.json +1 -1
  50. package/dist/deploy-engine-OG-CIQp9.js.map +0 -1
@@ -1,21 +1,21 @@
1
- import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-Dqv_R3ru.js";
2
- import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-DIGYs-yu.js";
1
+ import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-D0O-zHMi.js";
2
+ import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-CUFsTxnP.js";
3
3
  import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
4
- import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-DdMbK4P9.js";
5
- import { $ as logGroupProtectionSite, $t as markCreatedBeforeFailure, A as ambiguousAttemptLead, At as compositeIdFormatMessage, B as isPlainImportValue, Bt as isSecretDerivedValue, Ct as renderDisableCommand, D as AmbiguousCreateLatch, Dt as isInterruptedWaitError, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, K as resolveExplicitPhysicalId, Kt as clearCreatedBeforeFailure, L as VALUE_NOT_SHOWN, Lt as stateOrphanRecordRemedy, M as isInsideWindow, Mt as compositeIdSkipResult, N as replayFollowedAmbiguousAttempt, Nt as logicalIdShown, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as startInterruptWatch, P as replayedSendWindow, Pt as packCompositeId, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, R as importRemedyCommand, Rt as createMaskedLogSinks, S as readPrincipalLists, St as protectedReplacementAdvice, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, X as markNotGone, Xt as isAuxiliaryFailure, _n as injectiveKeyPrefix, a as clearOnUpdateRemoval, at as deleteAfterProtectionFlipWithFinalSnapshot, b as holdsSecretDerivedEntry, bt as isAwsCliLiteral, c as removedTemplateKeys, ct as isTerminalDbWaitStatus, dt as isTerminalDeleteFailure, en as markSupersedesEarlierCreate, et as observeThenDisableProtection, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, it as PROTECTION_FLIP_RETRY_WAIT_MS, j as createAttemptKey, jt as compositeIdSeparatorRefusal, k as RecentIdSet, kt as canonicalizeRoute53QueryName, l as withRemovalDefaults, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, q as RESOURCE_NOT_FOUND, rt as userPoolProtectionSite, st as isProceedDbStatus, t as enclosingDeadlineExpired, tt as rdsFamilyProtectionSite, ut as ProtectionFlipRegistry, vt as UNNAMEABLE_ID_CLAUSE, w as recordedPrincipalsRepair, x as onlySecretDerived, xt as pasteableAwsCommand, y as SECRET_DERIVED_READ_LIVE, yt as WITHHELD_AWS_COMMAND, z as isPlainImportJson, zt as createMaskedRetryLogger } from "./resource-deadline-CzLso0NJ.js";
6
- import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-Bm3FPycJ.js";
7
- import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-CJaeCjUv.js";
8
- import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-BikjBQ6T.js";
9
- import { $ as planVectorIndexUpdates, At as hasCdkAutoDeleteTag, B as declaredStreamTagsMember, Ba as waitForGoneAfterDelete, Cc as refuseMalformedNestedChildOutputs, Cl as listNestedTemplateRows, Ct as TABLE_INDEX_NOUN, Do as s3BucketDualStackDomainName, Dt as waitForIndexesSettled, Eo as s3BucketDomainName, Et as relayedIndexBusyDelete, Fr as redactedDeleteAddressFields, G as streamMemberRefusals, Ga as deleteSkipReason, Gt as isAccessDeniedError, H as reverseMapStreamPolicy, I as DynamoDBGlobalTableProvider, Ir as redactedDeleteAddressSkip, J as isTtlAlreadyDisabled, K as streamPolicyMatchesDeclared, Ka as withIndeterminateGuard, Kt as lookupEachName, L as STREAM_POLICY_KEY, Nc as refuseMalformedResourcesForDestroy, Nr as REDACTED_DELETE_ADDRESS_SKIP_REASON, Oa as getCurrentResourceSecrets, Oo as s3BucketRegionalDomainName, Os as passedParameterClassesOf, Ot as ECR_AUTO_DELETE_IMAGES_TAG, Pr as isRedactedRecordedValue, Q as sendTtlWaitingOutRateLimit, Qn as canonicalizeIpProtocolValue, R as STREAM_TAGS_KEY, Ra as waitForLambdaFunctionActive, Rc as accountArgs, Sl as isAbsoluteAssetPath, St as INDEX_SETTLE_POLL_INTERVAL_MS, To as s3BucketArn, Tt as maskedLogger, U as streamDeclaresPolicy, Ul as rewriteTemplateAssetReferences, Uo as outputReferenceProvenanceOf, V as planStreamMemberOps, W as streamDeclaresTags, Wt as chunks, X as planTimeToLive, Xc as withoutSdkUnwiredProperties, Xn as cfnIngressPortValue, Y as isTtlRateLimited, Ya as markWaitAbandoned, Yi as secretNamedAttributeNamesOf, Yn as withoutSiblingOwnedSgRules, Yo as getAccountInfo, Z as readTtlSpec, Zn as sgProtocolKey, _i as awaitInFlightSibling, _s as isWarmThroughputDecrease, _t as compensateRemovedDeletionProtection, _u as describeFileReadFailure, at as contributorInsightsRefusals, bt as resolveDynamoDbDeleteBudgetMs, bu as renderAssemblyPathEscape, cn as withNestedStackContext, ct as planIndexContributorInsightsOps, da as collectManagedPolicyArnsAttachedBySiblings, dt as reverseMapTableContributorInsights, en as getNestedRevertRun, et as readbackVectorIndexes, fa as collectPrincipalsAttachingPolicy, ft as stripIndexContributorInsights, gr as reserveStackCreateToken, gs as coerceWarmThroughput$1, gt as beginDeleteWait, ha as withoutSiblingOwned, hs as WARM_THROUGHPUT_MEMBERS, ht as DYNAMODB_DELETE_POLL_COST_MS, it as CONTRIBUTOR_INSIGHTS_KEY, jl as decodeListingKey, jt as isTruthyCfnBoolean, ko as s3BucketWebsiteUrl, kt as S3_AUTO_DELETE_OBJECTS_TAG, lt as readContributorInsightsSpec, ma as withoutSiblingAttachedArns, mr as earliestDefined, mt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, no as APPSYNC_APIKEY_ARN_RESOURCE_PATH, nt as vectorIndexesSettled, ot as indexDeclaresContributorInsights, pt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, q as streamTagsMatchDeclared, qc as findSdkUnwiredProperties, qn as siblingOwnedSgRuleIdentities, qr as getCurrentProducerRegions, qt as withApiLimit, rn as revertNestedChildFromJournal, ro as maskedSecretSegment, rt as vectorIndexesShapeDetail, sn as getCurrentNestedStackContext, st as planContributorInsightsOp, t as DeployEngine, to as isSettledInstanceState, tt as vectorIndexesForCreate, ua as collectGroupsAddedBySiblings, ut as reverseMapIndexContributorInsights, vr as acquireIdempotencyToken, vs as toCfnInteger, vt as deleteBudgetKey, vu as displayAssemblyPath, wl as renderNestedTemplateTreeDefect, wt as deleteTableWithIndexBusyRetry, xi as replacedDeleteFailureVerdict, xl as findNestedTemplateTreeDefect, xt as DELETE_INDEX_WAIT_PROCEED_NOTE, xu as resolveAssemblyPath, yi as getStackRecords, yl as stringifyValue, ys as toFiniteNumber, yt as resolveDynamoDbDeleteBudgetClock, z as declaredStreamPolicyMember, zc as withheldAccountClause, zo as parseWebACLArn } from "./deploy-engine-OG-CIQp9.js";
10
- import { _ as isUsableAttemptedName, c as planTagDiff, d as tagMapAsList, f as tagPlanWarning, g as stringifyIfAssigned, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, m as modifyDbInstanceWhenAvailable, o as DBPROXY_TAGS_WHAT, p as isModifyNotAvailableRefusal, s as DBPROXY_TAG_OPTIONS, u as refuseMalformedDesiredTags } from "./restore-source-guard-qc_YrJ4H.js";
11
- import { A as withRetry, U as timePhase, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, d as markRefusedBeforeApplying, g as onlySecretReferencesDiffer, i as observeThenDisableInstanceApiTermination, l as getPriorAttempts, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs } from "./ec2-termination-protection-DbyJ2q10.js";
4
+ import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-CA9D0blo.js";
5
+ import { $ as logGroupProtectionSite, $t as markCreatedBeforeFailure, A as ambiguousAttemptLead, At as compositeIdFormatMessage, B as isPlainImportValue, Bt as isSecretDerivedValue, Ct as renderDisableCommand, D as AmbiguousCreateLatch, Dt as isInterruptedWaitError, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, K as resolveExplicitPhysicalId, Kt as clearCreatedBeforeFailure, L as VALUE_NOT_SHOWN, Lt as stateOrphanRecordRemedy, M as isInsideWindow, Mt as compositeIdSkipResult, N as replayFollowedAmbiguousAttempt, Nt as logicalIdShown, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as startInterruptWatch, P as replayedSendWindow, Pt as packCompositeId, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, R as importRemedyCommand, Rt as createMaskedLogSinks, S as readPrincipalLists, St as protectedReplacementAdvice, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, X as markNotGone, Xt as isAuxiliaryFailure, _n as injectiveKeyPrefix, a as clearOnUpdateRemoval, at as deleteAfterProtectionFlipWithFinalSnapshot, b as holdsSecretDerivedEntry, bt as isAwsCliLiteral, c as removedTemplateKeys, ct as isTerminalDbWaitStatus, dt as isTerminalDeleteFailure, en as markSupersedesEarlierCreate, et as observeThenDisableProtection, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, it as PROTECTION_FLIP_RETRY_WAIT_MS, j as createAttemptKey, jt as compositeIdSeparatorRefusal, k as RecentIdSet, kt as canonicalizeRoute53QueryName, l as withRemovalDefaults, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, q as RESOURCE_NOT_FOUND, rt as userPoolProtectionSite, st as isProceedDbStatus, t as enclosingDeadlineExpired, tt as rdsFamilyProtectionSite, ut as ProtectionFlipRegistry, vt as UNNAMEABLE_ID_CLAUSE, w as recordedPrincipalsRepair, x as onlySecretDerived, xt as pasteableAwsCommand, y as SECRET_DERIVED_READ_LIVE, yt as WITHHELD_AWS_COMMAND, z as isPlainImportJson, zt as createMaskedRetryLogger } from "./resource-deadline-D_yTCpOm.js";
6
+ import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-DGMI88l4.js";
7
+ import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started--vmpKHHp.js";
8
+ import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-Dzi4h57y.js";
9
+ import { $ as planVectorIndexUpdates, At as hasCdkAutoDeleteTag, B as declaredStreamTagsMember, Ba as waitForGoneAfterDelete, Cc as refuseMalformedNestedChildOutputs, Cl as listNestedTemplateRows, Ct as TABLE_INDEX_NOUN, Do as s3BucketDualStackDomainName, Dt as waitForIndexesSettled, Eo as s3BucketDomainName, Et as relayedIndexBusyDelete, Fr as redactedDeleteAddressFields, G as streamMemberRefusals, Ga as deleteSkipReason, Gt as isAccessDeniedError, H as reverseMapStreamPolicy, I as DynamoDBGlobalTableProvider, Ir as redactedDeleteAddressSkip, J as isTtlAlreadyDisabled, K as streamPolicyMatchesDeclared, Ka as withIndeterminateGuard, Kt as lookupEachName, L as STREAM_POLICY_KEY, Nc as refuseMalformedResourcesForDestroy, Nr as REDACTED_DELETE_ADDRESS_SKIP_REASON, Oa as getCurrentResourceSecrets, Oo as s3BucketRegionalDomainName, Os as passedParameterClassesOf, Ot as ECR_AUTO_DELETE_IMAGES_TAG, Pr as isRedactedRecordedValue, Q as sendTtlWaitingOutRateLimit, Qn as canonicalizeIpProtocolValue, R as STREAM_TAGS_KEY, Ra as waitForLambdaFunctionActive, Rc as accountArgs, Sl as isAbsoluteAssetPath, St as INDEX_SETTLE_POLL_INTERVAL_MS, To as s3BucketArn, Tt as maskedLogger, U as streamDeclaresPolicy, Ul as rewriteTemplateAssetReferences, Uo as outputReferenceProvenanceOf, V as planStreamMemberOps, W as streamDeclaresTags, Wt as chunks, X as planTimeToLive, Xc as withoutSdkUnwiredProperties, Xn as cfnIngressPortValue, Y as isTtlRateLimited, Ya as markWaitAbandoned, Yi as secretNamedAttributeNamesOf, Yn as withoutSiblingOwnedSgRules, Yo as getAccountInfo, Z as readTtlSpec, Zn as sgProtocolKey, _i as awaitInFlightSibling, _s as isWarmThroughputDecrease, _t as compensateRemovedDeletionProtection, _u as describeFileReadFailure, at as contributorInsightsRefusals, bt as resolveDynamoDbDeleteBudgetMs, bu as renderAssemblyPathEscape, cn as withNestedStackContext, ct as planIndexContributorInsightsOps, da as collectManagedPolicyArnsAttachedBySiblings, dt as reverseMapTableContributorInsights, en as getNestedRevertRun, et as readbackVectorIndexes, fa as collectPrincipalsAttachingPolicy, ft as stripIndexContributorInsights, gr as reserveStackCreateToken, gs as coerceWarmThroughput$1, gt as beginDeleteWait, ha as withoutSiblingOwned, hs as WARM_THROUGHPUT_MEMBERS, ht as DYNAMODB_DELETE_POLL_COST_MS, it as CONTRIBUTOR_INSIGHTS_KEY, jl as decodeListingKey, jt as isTruthyCfnBoolean, ko as s3BucketWebsiteUrl, kt as S3_AUTO_DELETE_OBJECTS_TAG, lt as readContributorInsightsSpec, ma as withoutSiblingAttachedArns, mr as earliestDefined, mt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, no as APPSYNC_APIKEY_ARN_RESOURCE_PATH, nt as vectorIndexesSettled, ot as indexDeclaresContributorInsights, pt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, q as streamTagsMatchDeclared, qc as findSdkUnwiredProperties, qn as siblingOwnedSgRuleIdentities, qr as getCurrentProducerRegions, qt as withApiLimit, rn as revertNestedChildFromJournal, ro as maskedSecretSegment, rt as vectorIndexesShapeDetail, sn as getCurrentNestedStackContext, st as planContributorInsightsOp, t as DeployEngine, to as isSettledInstanceState, tt as vectorIndexesForCreate, ua as collectGroupsAddedBySiblings, ut as reverseMapIndexContributorInsights, vr as acquireIdempotencyToken, vs as toCfnInteger, vt as deleteBudgetKey, vu as displayAssemblyPath, wl as renderNestedTemplateTreeDefect, wt as deleteTableWithIndexBusyRetry, xi as replacedDeleteFailureVerdict, xl as findNestedTemplateTreeDefect, xt as DELETE_INDEX_WAIT_PROCEED_NOTE, xu as resolveAssemblyPath, yi as getStackRecords, yl as stringifyValue, ys as toFiniteNumber, yt as resolveDynamoDbDeleteBudgetClock, z as declaredStreamPolicyMember, zc as withheldAccountClause, zo as parseWebACLArn } from "./deploy-engine-Khkf436D.js";
10
+ import { _ as isUsableAttemptedName, c as planTagDiff, d as tagMapAsList, f as tagPlanWarning, g as stringifyIfAssigned, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, m as modifyDbInstanceWhenAvailable, o as DBPROXY_TAGS_WHAT, p as isModifyNotAvailableRefusal, s as DBPROXY_TAG_OPTIONS, u as refuseMalformedDesiredTags } from "./restore-source-guard-CnuS2SSM.js";
11
+ import { A as withRetry, U as timePhase, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, d as markRefusedBeforeApplying, g as onlySecretReferencesDiffer, i as observeThenDisableInstanceApiTermination, l as getPriorAttempts, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs } from "./ec2-termination-protection-DSas--OD.js";
12
12
  import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
13
13
  import { f as ambientRegion } from "./aws-client-defaults-DAebi99J.js";
14
- import { n as planSubscriptionAttributes } from "./diff-calculator-Cs9j467-.js";
15
- import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-CCuQt7l9.js";
16
- import { RDSProvider } from "./rds-provider-MhOObj_3.js";
17
- import { NeptuneProvider } from "./neptune-provider-BMraChKs.js";
18
- import { ASGProvider } from "./asg-provider-CNU0xa47.js";
14
+ import { n as planSubscriptionAttributes } from "./diff-calculator-FgirPchn.js";
15
+ import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-DHfiJ4Ez.js";
16
+ import { RDSProvider } from "./rds-provider-CvggdQtJ.js";
17
+ import { NeptuneProvider } from "./neptune-provider-CACg-APp.js";
18
+ import { ASGProvider } from "./asg-provider-DKK_ojhX.js";
19
19
  import { createHash, randomUUID } from "node:crypto";
20
20
  import { CreateBucketCommand, CreateBucketMetadataConfigurationCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetadataConfigurationCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAbacCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketMetadataConfigurationCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAbacCommand, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, UpdateBucketMetadataAnnotationTableConfigurationCommand, UpdateBucketMetadataInventoryTableConfigurationCommand, UpdateBucketMetadataJournalTableConfigurationCommand } from "@aws-sdk/client-s3";
21
21
  import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateAccessKeyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListPoliciesCommand, ListPolicyTagsCommand, ListPolicyVersionsCommand, ListUserPoliciesCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagPolicyCommand, TagUserCommand, UntagPolicyCommand, UntagUserCommand, UpdateAccessKeyCommand, UpdateGroupCommand, UpdateLoginProfileCommand, UpdateUserCommand } from "@aws-sdk/client-iam";
@@ -38871,9 +38871,15 @@ function wrapCaughtError$10(mask, error, build) {
38871
38871
  if (!failure.redacted) return wrapMaskedAwsError(m, error, build);
38872
38872
  this.logger.debug(m(build(m(failure.detail)).message));
38873
38873
  const relay = isAuxiliaryFailure(error) ? "" : relayedNameCollision(failure.detail);
38874
- const wrapped = build(`${m(failure.summary)}${relay}`);
38874
+ const wrapped = build(`${m(failure.summary)}${relay}${recordSetProtectionNote(error)}`);
38875
38875
  return error instanceof Error ? markRedactedCause(wrapped) : wrapped;
38876
38876
  }
38877
+ function recordSetProtectionNote(error) {
38878
+ if (!(error instanceof Error)) return "";
38879
+ if (error.name === "InvalidChangeBatch" && /is protected and cannot be changed/.test(error.message)) return " The record set has a Route 53 resource record set protection; remove it with DeleteResourceRecordSetProtections and re-run (--remove-protection does not, as no template property declares it).";
38880
+ if (error.name === "HostedZoneInUse" && /has resource record set protections/.test(error.message)) return " The hosted zone has Route 53 resource record set protections; remove them with DeleteResourceRecordSetProtections and re-run (--remove-protection does not, as no template property declares them).";
38881
+ return "";
38882
+ }
38877
38883
  function wrapDeleteError$2(mask, error, build) {
38878
38884
  const thrown = this.wrapCaughtError(mask, error, build);
38879
38885
  return error instanceof Error && error.name.includes("NotFound") ? markNotGone(thrown) : thrown;
@@ -39051,6 +39057,19 @@ function refuseCfnUnresolvableZoneName(provider, value, noun, logicalId, resourc
39051
39057
  }
39052
39058
  throw new ProvisioningError(message, resourceType, logicalId, physicalId);
39053
39059
  }
39060
+ function withTemplateAliasConflicts(recordSet, properties) {
39061
+ if (!recordSet.AliasTarget) return recordSet;
39062
+ const ttl = properties["TTL"];
39063
+ const records = properties["ResourceRecords"];
39064
+ const declaresTtl = ttl !== void 0 && ttl !== null;
39065
+ const declaresRecords = Array.isArray(records) && records.length > 0;
39066
+ if (!declaresTtl && !declaresRecords) return recordSet;
39067
+ return {
39068
+ ...recordSet,
39069
+ ...declaresTtl && { TTL: Number(ttl) },
39070
+ ...declaresRecords && { ResourceRecords: records.map((r) => typeof r === "string" ? { Value: r } : r) }
39071
+ };
39072
+ }
39054
39073
 
39055
39074
  // src/provisioning/providers/route53/hosted-zone.ts
39056
39075
  async function createHostedZone(logicalId, resourceType, properties, mask, context) {
@@ -39353,6 +39372,141 @@ async function waitForAcceleratedRecoveryMutable(zoneId, logicalId, resourceType
39353
39372
  throw new ProvisioningError(`Timed out after ${timeoutMs}ms waiting for AcceleratedRecoveryStatus to reach a mutable state on hosted zone ${zoneId} ${purpose.retry}${purpose.settledAt !== void 0 ? ` (last status: ${lastStatus ?? "none"})` : ""}`, resourceType, logicalId, zoneId);
39354
39373
  }
39355
39374
 
39375
+ // src/provisioning/providers/route53/record-set-group-shape.ts
39376
+ const RECORD_SET_GROUP_TYPE = "AWS::Route53::RecordSetGroup";
39377
+ const RECORD_IDENTITY_FIELDS = [
39378
+ "Name",
39379
+ "Type",
39380
+ "SetIdentifier"
39381
+ ];
39382
+ const RECORD_VALUE_FIELDS = [
39383
+ "TTL",
39384
+ "ResourceRecords",
39385
+ "AliasTarget",
39386
+ "Weight",
39387
+ "Region",
39388
+ "Failover",
39389
+ "MultiValueAnswer",
39390
+ "HealthCheckId",
39391
+ "GeoLocation",
39392
+ "GeoProximityLocation",
39393
+ "CidrRoutingConfig"
39394
+ ];
39395
+ function recordSetGroupCompositeId(hostedZoneId, groupName) {
39396
+ return `${hostedZoneId}|${groupName}`;
39397
+ }
39398
+ const GROUP_NAME_MAX_LENGTH = 255;
39399
+ function generatedGroupName(logicalId) {
39400
+ return generateResourceName(logicalId, { maxLength: 255 });
39401
+ }
39402
+ function namesThisGroup(name, logicalId) {
39403
+ return name === logicalId || name.split("-").includes(logicalId);
39404
+ }
39405
+ function parseRecordSetGroupCompositeId(physicalId, logicalId) {
39406
+ const parts = physicalId.split("|");
39407
+ if (parts.length !== 2) return void 0;
39408
+ const [hostedZoneId, groupName] = parts;
39409
+ if (!hostedZoneId || !groupName || !namesThisGroup(groupName, logicalId)) return void 0;
39410
+ return {
39411
+ hostedZoneId,
39412
+ groupName
39413
+ };
39414
+ }
39415
+ function existingGroupName(physicalId, logicalId) {
39416
+ const parsed = parseRecordSetGroupCompositeId(physicalId, logicalId);
39417
+ if (parsed) return parsed.groupName;
39418
+ if (!physicalId.includes("|")) return physicalId;
39419
+ const parts = physicalId.split("|");
39420
+ return parts.length === 2 && parts[1] ? parts[1] : logicalId;
39421
+ }
39422
+ function groupRecordSets(properties) {
39423
+ const raw = properties?.["RecordSets"];
39424
+ if (raw === void 0 || raw === null) return { records: [] };
39425
+ if (!Array.isArray(raw)) return { refusal: "RecordSets is not a list" };
39426
+ const records = [];
39427
+ for (const [index, entry] of raw.entries()) {
39428
+ if (typeof entry !== "object" || entry === null || Array.isArray(entry)) return { refusal: `RecordSets[${index}] is not an object` };
39429
+ records.push(entry);
39430
+ }
39431
+ return { records };
39432
+ }
39433
+ function recordSetKey(record) {
39434
+ const comparable = (value) => typeof value === "string" && value !== "" && !value.includes("{{resolve:") && !isRedactedRecordedValue(value);
39435
+ const name = record["Name"];
39436
+ const type = record["Type"];
39437
+ const setIdentifier = record["SetIdentifier"];
39438
+ if (!comparable(name) || !comparable(type)) return void 0;
39439
+ if (setIdentifier !== void 0 && !comparable(setIdentifier)) return void 0;
39440
+ return JSON.stringify([
39441
+ normalizeRecordName(name),
39442
+ type,
39443
+ setIdentifier ?? ""
39444
+ ]);
39445
+ }
39446
+ function groupZoneProperties(properties, records) {
39447
+ const zone = {};
39448
+ for (const key of ["HostedZoneId", "HostedZoneName"]) {
39449
+ let value = properties[key];
39450
+ for (const [index, record] of records.entries()) {
39451
+ const recordValue = record[key];
39452
+ if (recordValue === void 0) continue;
39453
+ if (value === void 0) {
39454
+ value = recordValue;
39455
+ continue;
39456
+ }
39457
+ if (JSON.stringify(recordValue) !== JSON.stringify(value)) return { refusal: `RecordSets[${index}].${key} differs from the ${key} the rest of the group uses; every record of a RecordSetGroup must be in one hosted zone` };
39458
+ }
39459
+ if (value !== void 0) zone[key] = value;
39460
+ }
39461
+ return { zone };
39462
+ }
39463
+ function recordBag(record) {
39464
+ const { HostedZoneId: _zoneId, HostedZoneName: _zoneName, ...rest } = record;
39465
+ return rest;
39466
+ }
39467
+ function groupRefusalError(message, logicalId, physicalId) {
39468
+ return new ProvisioningError(message, RECORD_SET_GROUP_TYPE, logicalId, physicalId);
39469
+ }
39470
+ function sameRecordSet(a, b) {
39471
+ const canonical = (value) => {
39472
+ if (Array.isArray(value)) return value.map(canonical);
39473
+ if (value === null || typeof value !== "object") return value;
39474
+ return Object.fromEntries(Object.keys(value).sort().map((k) => [k, canonical(value[k])]));
39475
+ };
39476
+ const spell = (r) => JSON.stringify(canonical({
39477
+ ...r,
39478
+ Name: normalizeRecordName(r.Name ?? ""),
39479
+ ...r.AliasTarget && { AliasTarget: {
39480
+ ...r.AliasTarget,
39481
+ DNSName: normalizeRecordName(r.AliasTarget.DNSName ?? "")
39482
+ } }
39483
+ }));
39484
+ return spell(a) === spell(b);
39485
+ }
39486
+ const updateBatchClients = /* @__PURE__ */ new WeakMap();
39487
+ function updateBatchClient(provider) {
39488
+ let client = updateBatchClients.get(provider);
39489
+ if (!client) {
39490
+ client = withoutServerErrorRetries(new Route53Client({
39491
+ ...ambientClientDefaults(),
39492
+ ...provider.providerRegion ? { region: provider.providerRegion } : {}
39493
+ }));
39494
+ updateBatchClients.set(provider, client);
39495
+ }
39496
+ return client;
39497
+ }
39498
+ function isUnambiguousClientRefusal(error) {
39499
+ if (!(error instanceof Error)) return false;
39500
+ if (error.$fault !== "client") return false;
39501
+ return !hasReplayMayCollide(error);
39502
+ }
39503
+ function isRecordValuesMismatchRefusal(error) {
39504
+ return error instanceof Error && error.name === "InvalidChangeBatch" && /values provided do not match the current values/i.test(error.message);
39505
+ }
39506
+ function isRecordNotFoundRefusal(error) {
39507
+ return error instanceof Error && error.name === "InvalidChangeBatch" && /but it was not found/i.test(error.message);
39508
+ }
39509
+
39356
39510
  // src/provisioning/providers/route53/record-set.ts
39357
39511
  async function createRecordSet(logicalId, resourceType, properties, mask, replayingState = false) {
39358
39512
  this.logger.debug(`Creating Route 53 record set ${logicalId}`);
@@ -39362,7 +39516,7 @@ async function createRecordSet(logicalId, resourceType, properties, mask, replay
39362
39516
  const recordType = properties["Type"];
39363
39517
  const compositeId = recordSetCompositeId(hostedZoneId, recordName, recordType);
39364
39518
  try {
39365
- const resourceRecordSet = this.buildResourceRecordSet(properties);
39519
+ const resourceRecordSet = replayingState ? this.buildResourceRecordSet(properties) : withTemplateAliasConflicts(this.buildResourceRecordSet(properties), properties);
39366
39520
  const comment = properties["Comment"];
39367
39521
  await this.getClient().send(new ChangeResourceRecordSetsCommand({
39368
39522
  HostedZoneId: hostedZoneId,
@@ -39403,7 +39557,7 @@ async function updateRecordSet(logicalId, physicalId, resourceType, properties,
39403
39557
  const compositeId = recordSetCompositeId(hostedZoneId, recordName, recordType);
39404
39558
  const identityChanged = context?.desiredFromAwsReadback !== true && recordIdentityChanged(previousProperties, properties);
39405
39559
  try {
39406
- const resourceRecordSet = this.buildResourceRecordSet(properties);
39560
+ const resourceRecordSet = stateBorne ? this.buildResourceRecordSet(properties) : withTemplateAliasConflicts(this.buildResourceRecordSet(properties), properties);
39407
39561
  const comment = properties["Comment"];
39408
39562
  const liveOldRecord = identityChanged ? await this.findLiveRecordSet(hostedZoneId, previousProperties) : void 0;
39409
39563
  if (identityChanged && !liveOldRecord) this.logger.debug(safeMsg`Record set ${logicalId}: the previous record is not live in ${hostedZoneId}; writing the renamed record only`);
@@ -39493,24 +39647,35 @@ async function deleteRecordSet(logicalId, physicalId, resourceType, properties,
39493
39647
  }
39494
39648
  try {
39495
39649
  const resourceRecordSet = this.buildResourceRecordSet(properties);
39496
- const sendDelete = () => this.getClient().send(new ChangeResourceRecordSetsCommand({
39650
+ const sendDelete = (recordSet) => this.getClient().send(new ChangeResourceRecordSetsCommand({
39497
39651
  HostedZoneId: hostedZoneId,
39498
39652
  ChangeBatch: { Changes: [{
39499
39653
  Action: "DELETE",
39500
- ResourceRecordSet: resourceRecordSet
39654
+ ResourceRecordSet: recordSet
39501
39655
  }] }
39502
39656
  }));
39657
+ const deleteRecord = async (recordSet) => {
39658
+ try {
39659
+ await sendDelete(recordSet);
39660
+ } catch (error) {
39661
+ if (!isZoneDisabledForMutationError(error)) throw error;
39662
+ this.logger.info(`Hosted zone ${hostedZoneId} is mid AcceleratedRecovery transition (marked disabled for mutation); waiting for it to settle before retrying delete of record set ${logicalId}`);
39663
+ await this.waitForAcceleratedRecoveryMutable(hostedZoneId, logicalId, resourceType);
39664
+ await sendDelete(recordSet);
39665
+ }
39666
+ };
39503
39667
  try {
39504
- await sendDelete();
39668
+ await deleteRecord(resourceRecordSet);
39505
39669
  } catch (error) {
39506
- if (!isZoneDisabledForMutationError(error)) throw error;
39507
- this.logger.info(`Hosted zone ${hostedZoneId} is mid AcceleratedRecovery transition (marked disabled for mutation); waiting for it to settle before retrying delete of record set ${logicalId}`);
39508
- await this.waitForAcceleratedRecoveryMutable(hostedZoneId, logicalId, resourceType);
39509
- await sendDelete();
39670
+ if (!isRecordValuesMismatchRefusal(error)) throw error;
39671
+ const live = await this.findLiveRecordSet(hostedZoneId, properties);
39672
+ if (!live) throw error;
39673
+ this.logger.debug(safeMsg`Record set ${logicalId}: the recorded values differ from the live record; deleting the live record`);
39674
+ await deleteRecord(live);
39510
39675
  }
39511
39676
  this.logger.debug(`Successfully deleted record set ${logicalId}`);
39512
39677
  } catch (error) {
39513
- if (error instanceof Error && (error.name === "InvalidChangeBatch" || error.message.includes("it was not found"))) {
39678
+ if (error instanceof Error && error.message.includes("it was not found")) {
39514
39679
  const clientRegion = await this.getClient().config.region();
39515
39680
  assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
39516
39681
  this.logger.debug(`Record set ${physicalId} does not exist, skipping deletion`);
@@ -39588,138 +39753,6 @@ function buildResourceRecordSet(properties) {
39588
39753
  return recordSet;
39589
39754
  }
39590
39755
 
39591
- // src/provisioning/providers/route53/record-set-group-shape.ts
39592
- const RECORD_SET_GROUP_TYPE = "AWS::Route53::RecordSetGroup";
39593
- const RECORD_IDENTITY_FIELDS = [
39594
- "Name",
39595
- "Type",
39596
- "SetIdentifier"
39597
- ];
39598
- const RECORD_VALUE_FIELDS = [
39599
- "TTL",
39600
- "ResourceRecords",
39601
- "AliasTarget",
39602
- "Weight",
39603
- "Region",
39604
- "Failover",
39605
- "MultiValueAnswer",
39606
- "HealthCheckId",
39607
- "GeoLocation",
39608
- "GeoProximityLocation",
39609
- "CidrRoutingConfig"
39610
- ];
39611
- function recordSetGroupCompositeId(hostedZoneId, groupName) {
39612
- return `${hostedZoneId}|${groupName}`;
39613
- }
39614
- const GROUP_NAME_MAX_LENGTH = 255;
39615
- function generatedGroupName(logicalId) {
39616
- return generateResourceName(logicalId, { maxLength: 255 });
39617
- }
39618
- function namesThisGroup(name, logicalId) {
39619
- return name === logicalId || name.split("-").includes(logicalId);
39620
- }
39621
- function parseRecordSetGroupCompositeId(physicalId, logicalId) {
39622
- const parts = physicalId.split("|");
39623
- if (parts.length !== 2) return void 0;
39624
- const [hostedZoneId, groupName] = parts;
39625
- if (!hostedZoneId || !groupName || !namesThisGroup(groupName, logicalId)) return void 0;
39626
- return {
39627
- hostedZoneId,
39628
- groupName
39629
- };
39630
- }
39631
- function existingGroupName(physicalId, logicalId) {
39632
- const parsed = parseRecordSetGroupCompositeId(physicalId, logicalId);
39633
- if (parsed) return parsed.groupName;
39634
- if (!physicalId.includes("|")) return physicalId;
39635
- const parts = physicalId.split("|");
39636
- return parts.length === 2 && parts[1] ? parts[1] : logicalId;
39637
- }
39638
- function groupRecordSets(properties) {
39639
- const raw = properties?.["RecordSets"];
39640
- if (raw === void 0 || raw === null) return { records: [] };
39641
- if (!Array.isArray(raw)) return { refusal: "RecordSets is not a list" };
39642
- const records = [];
39643
- for (const [index, entry] of raw.entries()) {
39644
- if (typeof entry !== "object" || entry === null || Array.isArray(entry)) return { refusal: `RecordSets[${index}] is not an object` };
39645
- records.push(entry);
39646
- }
39647
- return { records };
39648
- }
39649
- function recordSetKey(record) {
39650
- const comparable = (value) => typeof value === "string" && value !== "" && !value.includes("{{resolve:") && !isRedactedRecordedValue(value);
39651
- const name = record["Name"];
39652
- const type = record["Type"];
39653
- const setIdentifier = record["SetIdentifier"];
39654
- if (!comparable(name) || !comparable(type)) return void 0;
39655
- if (setIdentifier !== void 0 && !comparable(setIdentifier)) return void 0;
39656
- return JSON.stringify([
39657
- normalizeRecordName(name),
39658
- type,
39659
- setIdentifier ?? ""
39660
- ]);
39661
- }
39662
- function groupZoneProperties(properties, records) {
39663
- const zone = {};
39664
- for (const key of ["HostedZoneId", "HostedZoneName"]) {
39665
- let value = properties[key];
39666
- for (const [index, record] of records.entries()) {
39667
- const recordValue = record[key];
39668
- if (recordValue === void 0) continue;
39669
- if (value === void 0) {
39670
- value = recordValue;
39671
- continue;
39672
- }
39673
- if (JSON.stringify(recordValue) !== JSON.stringify(value)) return { refusal: `RecordSets[${index}].${key} differs from the ${key} the rest of the group uses; every record of a RecordSetGroup must be in one hosted zone` };
39674
- }
39675
- if (value !== void 0) zone[key] = value;
39676
- }
39677
- return { zone };
39678
- }
39679
- function recordBag(record) {
39680
- const { HostedZoneId: _zoneId, HostedZoneName: _zoneName, ...rest } = record;
39681
- return rest;
39682
- }
39683
- function groupRefusalError(message, logicalId, physicalId) {
39684
- return new ProvisioningError(message, RECORD_SET_GROUP_TYPE, logicalId, physicalId);
39685
- }
39686
- function sameRecordSet(a, b) {
39687
- const canonical = (value) => {
39688
- if (Array.isArray(value)) return value.map(canonical);
39689
- if (value === null || typeof value !== "object") return value;
39690
- return Object.fromEntries(Object.keys(value).sort().map((k) => [k, canonical(value[k])]));
39691
- };
39692
- const spell = (r) => JSON.stringify(canonical({
39693
- ...r,
39694
- Name: normalizeRecordName(r.Name ?? ""),
39695
- ...r.AliasTarget && { AliasTarget: {
39696
- ...r.AliasTarget,
39697
- DNSName: normalizeRecordName(r.AliasTarget.DNSName ?? "")
39698
- } }
39699
- }));
39700
- return spell(a) === spell(b);
39701
- }
39702
- const updateBatchClients = /* @__PURE__ */ new WeakMap();
39703
- function updateBatchClient(provider) {
39704
- let client = updateBatchClients.get(provider);
39705
- if (!client) {
39706
- client = withoutServerErrorRetries(new Route53Client({
39707
- ...ambientClientDefaults(),
39708
- ...provider.providerRegion ? { region: provider.providerRegion } : {}
39709
- }));
39710
- updateBatchClients.set(provider, client);
39711
- }
39712
- return client;
39713
- }
39714
- function isUnambiguousClientRefusal(error) {
39715
- if (!(error instanceof Error)) return false;
39716
- if (error.$fault !== "client") return false;
39717
- return !hasReplayMayCollide(error);
39718
- }
39719
- function isRecordNotFoundRefusal(error) {
39720
- return error instanceof Error && error.name === "InvalidChangeBatch" && /but it was not found/i.test(error.message);
39721
- }
39722
-
39723
39756
  // src/provisioning/providers/route53/record-set-group.ts
39724
39757
  function listedRecords(properties) {
39725
39758
  const parsed = groupRecordSets(properties);
@@ -39777,7 +39810,7 @@ async function createRecordSetGroup(logicalId, resourceType, properties, mask, r
39777
39810
  ...typeof comment === "string" && comment ? { Comment: comment } : {},
39778
39811
  Changes: records.map((record) => ({
39779
39812
  Action: "CREATE",
39780
- ResourceRecordSet: this.buildResourceRecordSet(recordBag(record))
39813
+ ResourceRecordSet: replayingState ? this.buildResourceRecordSet(recordBag(record)) : withTemplateAliasConflicts(this.buildResourceRecordSet(recordBag(record)), record)
39781
39814
  }))
39782
39815
  }
39783
39816
  }));
@@ -39845,7 +39878,8 @@ async function applyRecordSetGroupUpdate(logicalId, physicalId, resourceType, pr
39845
39878
  for (const record of records) {
39846
39879
  const key = recordSetKey(record);
39847
39880
  desiredKeys.add(key);
39848
- const desired = this.buildResourceRecordSet(recordBag(record));
39881
+ const built = this.buildResourceRecordSet(recordBag(record));
39882
+ const desired = context?.replayingState === true || context?.desiredFromAwsReadback === true ? built : withTemplateAliasConflicts(built, record);
39849
39883
  const recorded = previousByKey.get(key);
39850
39884
  if (recorded === void 0) {
39851
39885
  const live = await ownEarlierWriteMayHold(logicalId, key, desired, this) ? await this.findLiveRecordSet(hostedZoneId, recordBag(record)) : void 0;
@@ -41643,6 +41677,10 @@ const USER_POOL_ECHO_MEMBERS = [
41643
41677
  function userPoolDeletionProtectionUpdate(physicalId, pool, value, opts = {}) {
41644
41678
  const input = { UserPoolId: physicalId };
41645
41679
  for (const member of USER_POOL_ECHO_MEMBERS) if (pool[member] !== void 0) Object.assign(input, { [member]: pool[member] });
41680
+ if (opts.withoutUnusedAccountValidityDays === true && input.AdminCreateUserConfig) {
41681
+ const { UnusedAccountValidityDays: _dropped, ...rest } = input.AdminCreateUserConfig;
41682
+ input.AdminCreateUserConfig = rest;
41683
+ }
41646
41684
  const acr = customAcrLevels(pool.AcrConfiguration);
41647
41685
  if (acr === void 0) delete input.AcrConfiguration;
41648
41686
  else input.AcrConfiguration = acr;
@@ -41671,6 +41709,12 @@ function reportKind(record) {
41671
41709
  function echoesDeveloperEmail(pool) {
41672
41710
  return pool.EmailConfiguration?.EmailSendingAccount === "DEVELOPER";
41673
41711
  }
41712
+ function echoesUnusedAccountValidityDays(pool) {
41713
+ return pool.AdminCreateUserConfig?.UnusedAccountValidityDays !== void 0;
41714
+ }
41715
+ function isUnusedAccountValidityRefusal(error) {
41716
+ return isRefusedEcho(error) && error instanceof Error && error.message.includes("UnusedAccountValidityDays");
41717
+ }
41674
41718
  function echoesCustomerManagedKey(pool) {
41675
41719
  return pool.KeyConfiguration?.KeyType === "CUSTOMER_MANAGED_KEY";
41676
41720
  }
@@ -42293,16 +42337,31 @@ async function deleteOnce$1(logicalId, physicalId, resourceType, context, flip)
42293
42337
  }
42294
42338
  async function sendEchoedDeletionProtection(physicalId, pool, value, opts = {}) {
42295
42339
  const mask = maskerOrIdentity(opts.mask);
42340
+ let withoutUnusedAccountValidityDays = false;
42341
+ const echo = async (withoutDeveloperEmail) => {
42342
+ const build = () => new UpdateUserPoolCommand(userPoolDeletionProtectionUpdate(physicalId, pool, value, {
42343
+ withoutDeveloperEmail,
42344
+ withoutUnusedAccountValidityDays
42345
+ }));
42346
+ try {
42347
+ await this.getClient().send(build());
42348
+ } catch (error) {
42349
+ if (withoutUnusedAccountValidityDays || !echoesUnusedAccountValidityDays(pool) || !isUnusedAccountValidityRefusal(error)) throw error;
42350
+ this.logger.debug(safeMsg`UpdateUserPool refused the deprecated UnusedAccountValidityDays of ${mask(physicalId)}; ` + safeMsg`re-sending without it (the pool's PasswordPolicy holds the value)`);
42351
+ withoutUnusedAccountValidityDays = true;
42352
+ await this.getClient().send(build());
42353
+ }
42354
+ };
42296
42355
  try {
42297
- await this.getClient().send(new UpdateUserPoolCommand(userPoolDeletionProtectionUpdate(physicalId, pool, value)));
42356
+ await echo(false);
42298
42357
  return "echoed";
42299
42358
  } catch (echoError) {
42300
42359
  if (!echoesDeveloperEmail(pool) || !isRefusedEcho(echoError)) throw echoError;
42301
42360
  if (opts.emailFallback === false) throw echoError;
42302
42361
  const resetClause = value === "ACTIVE" ? EMAIL_RESET_CLAUSE : EMAIL_RESET_BEFORE_DELETE_CLAUSE;
42303
- this.logger.debug(safeMsg`UpdateUserPool refused the SES EmailConfiguration of ${physicalId}: ${mask(describeAwsFailure(echoError).summary)}`);
42362
+ this.logger.debug(safeMsg`UpdateUserPool refused the SES EmailConfiguration of ${mask(physicalId)}: ${mask(describeAwsFailure(echoError).summary)}`);
42304
42363
  try {
42305
- await this.getClient().send(new UpdateUserPoolCommand(userPoolDeletionProtectionUpdate(physicalId, pool, value, { withoutDeveloperEmail: true })));
42364
+ await echo(true);
42306
42365
  } catch (resendError) {
42307
42366
  if (typeof resendError === "object" && resendError !== null) sentWithoutEmail.add(resendError);
42308
42367
  if (isAmbiguousWriteFailure(resendError) && (value === "ACTIVE" || isTransientCognitoFailure(resendError))) this.logger.warn(safeMsg`Cognito User Pool ${physicalId}: UpdateUserPool refused the write carrying the ` + safeMsg`pool's SES EmailConfiguration (${mask(describeAwsFailure(echoError).summary)}), and the ` + safeMsg`write re-sent without it answered ${mask(describeAwsFailure(resendError).summary)}. If ` + safeMsg`that write landed, the pool's email configuration was ${resetClause}`);
@@ -64305,4 +64364,4 @@ var ACMCertificateProvider = class {
64305
64364
  };
64306
64365
 
64307
64366
  export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider };
64308
- //# sourceMappingURL=provider-classes-CzitNbPu.js.map
64367
+ //# sourceMappingURL=provider-classes-CxAMhRwb.js.map