@cdkd/cli 0.353.0 → 0.353.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 (54) hide show
  1. package/dist/{ambient-client-defaults-z2kbR8l-.js → ambient-client-defaults-BoDpDYst.js} +3 -3
  2. package/dist/{ambient-client-defaults-z2kbR8l-.js.map → ambient-client-defaults-BoDpDYst.js.map} +1 -1
  3. package/dist/{asg-provider-CM19nSRR.js → asg-provider-DkGLJwox.js} +159 -11
  4. package/dist/asg-provider-DkGLJwox.js.map +1 -0
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-gD0yCVTA.js → custom-resource-runtime-Igdxgp4i.js} +6 -6
  7. package/dist/{custom-resource-runtime-gD0yCVTA.js.map → custom-resource-runtime-Igdxgp4i.js.map} +1 -1
  8. package/dist/{db-associated-roles-CwKvJHmW.js → db-associated-roles-bBNObiI3.js} +2 -2
  9. package/dist/{db-associated-roles-CwKvJHmW.js.map → db-associated-roles-bBNObiI3.js.map} +1 -1
  10. package/dist/{delete-started-BR6VF4-U.js → delete-started-CPDnxn60.js} +4 -4
  11. package/dist/{delete-started-BR6VF4-U.js.map → delete-started-CPDnxn60.js.map} +1 -1
  12. package/dist/{deploy-engine-axD9sX_9.js → deploy-engine-BQVJRB0k.js} +198 -64
  13. package/dist/{deploy-engine-axD9sX_9.js.map → deploy-engine-BQVJRB0k.js.map} +1 -1
  14. package/dist/{diff-calculator-Dych6a6c.js → diff-calculator-Bc8nPqHj.js} +12 -12
  15. package/dist/{diff-calculator-Dych6a6c.js.map → diff-calculator-Bc8nPqHj.js.map} +1 -1
  16. package/dist/{ecr-uri-CmjaicP1.js → ecr-uri-C5N2MXQn.js} +2 -2
  17. package/dist/{ecr-uri-CmjaicP1.js.map → ecr-uri-C5N2MXQn.js.map} +1 -1
  18. package/dist/{expected-bucket-owner-BUXAXOgl.js → expected-bucket-owner-CmQxQ5sA.js} +2 -2
  19. package/dist/{expected-bucket-owner-BUXAXOgl.js.map → expected-bucket-owner-CmQxQ5sA.js.map} +1 -1
  20. package/dist/{iam-role-provider-C92_i6aW.js → iam-role-provider-BWgMdmM2.js} +8 -8
  21. package/dist/{iam-role-provider-C92_i6aW.js.map → iam-role-provider-BWgMdmM2.js.map} +1 -1
  22. package/dist/{image-plan-Cu3b26DY.js → image-plan-BhSVrp0f.js} +8 -8
  23. package/dist/{image-plan-Cu3b26DY.js.map → image-plan-BhSVrp0f.js.map} +1 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +5 -5
  26. package/dist/{logger-oZMfcKSj.js → logger-BYujCFZu.js} +2 -2
  27. package/dist/{logger-oZMfcKSj.js.map → logger-BYujCFZu.js.map} +1 -1
  28. package/dist/{neptune-provider-CN3MA8Cw.js → neptune-provider-Cw6VRzy-.js} +7 -7
  29. package/dist/{neptune-provider-CN3MA8Cw.js.map → neptune-provider-Cw6VRzy-.js.map} +1 -1
  30. package/dist/{program-BfTCUNof.js → program-DGykViOh.js} +22 -16
  31. package/dist/program-DGykViOh.js.map +1 -0
  32. package/dist/{provider-classes-BbS4iho1.js → provider-classes-HgTwI8Ez.js} +15 -15
  33. package/dist/{provider-classes-BbS4iho1.js.map → provider-classes-HgTwI8Ez.js.map} +1 -1
  34. package/dist/{rds-provider-k-7oWDtG.js → rds-provider-DwoeM58V.js} +10 -10
  35. package/dist/{rds-provider-k-7oWDtG.js.map → rds-provider-DwoeM58V.js.map} +1 -1
  36. package/dist/{read-replica-Dx5O9bW4.js → read-replica-YGp4k5-z.js} +3 -3
  37. package/dist/{read-replica-Dx5O9bW4.js.map → read-replica-YGp4k5-z.js.map} +1 -1
  38. package/dist/{replacement-rules-SPQJMbC6.js → replacement-rules-fUZRFjHJ.js} +3 -3
  39. package/dist/{replacement-rules-SPQJMbC6.js.map → replacement-rules-fUZRFjHJ.js.map} +1 -1
  40. package/dist/{update-removal-TXGn1k50.js → resource-deadline-BzTkGME1.js} +105 -5
  41. package/dist/resource-deadline-BzTkGME1.js.map +1 -0
  42. package/dist/{resource-deadline-CImbEePa.js → restore-source-guard-DRx3lyhr.js} +5 -106
  43. package/dist/restore-source-guard-DRx3lyhr.js.map +1 -0
  44. package/dist/{run-cli-B637Czto.js → run-cli-BktZxh99.js} +2 -2
  45. package/dist/{run-cli-B637Czto.js.map → run-cli-BktZxh99.js.map} +1 -1
  46. package/dist/{update-policy-C3iCsDhx.js → update-policy-Bv1x6AOi.js} +6 -6
  47. package/dist/{update-policy-C3iCsDhx.js.map → update-policy-Bv1x6AOi.js.map} +1 -1
  48. package/dist/{version-HusdN8vD.js → version-qyD3mVkG.js} +2 -2
  49. package/dist/{version-HusdN8vD.js.map → version-qyD3mVkG.js.map} +1 -1
  50. package/package.json +1 -1
  51. package/dist/asg-provider-CM19nSRR.js.map +0 -1
  52. package/dist/program-BfTCUNof.js.map +0 -1
  53. package/dist/resource-deadline-CImbEePa.js.map +0 -1
  54. package/dist/update-removal-TXGn1k50.js.map +0 -1
@@ -1,15 +1,15 @@
1
- import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, a as UNSHOWABLE_VALUE, c as deployReplaceCommand, d as pasteableCommand, f as physicalIdShownBesideCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE } from "./version-HusdN8vD.js";
2
- import { $ as withStackScope, A as configStringRefusal, C as fallbackNamePropertyFor, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, G as currentNameGeneration, H as looksLikeCdkdGeneratedName, J as getCurrentStackName, K as getCurrentSkipPrefix, M as replayWarn, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, S as explicitNamePropertyFor, T as withoutGeneratedFallbackName, V as generateResourceNameWithFallback, W as stackInstanceNameSuffix, X as isNameGeneration, Z as withNameGeneration, _ as currentLogLineMasker, b as alternateNamePropertiesFor, c as VERBOSE_POINTER, et as withStackScopeBeforeStateRead, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, v as installLogLineMaskerSource, w as generatedNameFor, x as applyDefaultNameForFallback, y as getLiveRenderer } from "./logger-oZMfcKSj.js";
3
- import { A as stripControlChars, C as isNameCooldownError, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, K as wrapMaskedAwsError, L as isIamPropagationError, O as relayedNameCollision, P as isAmbiguousCcHandlerErrorCode, Q as AccountIdUnavailableError, S as isNameCollisionErrorFrom, T as isReplayedNameCollisionFrom, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as SelectOutOfBoundsRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, b as isUpdateUnsupportedError, et as CdkdError, i as credentialFingerprint, k as escapeRegExp$1, m as ExportInUseError, n as ambientCredentialConfig, nt as DeploymentNotApprovedError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, st as StateError, t as ambientClientDefaults, w as isRecreateRetryableError, z as isTransientServerError } from "./ambient-client-defaults-z2kbR8l-.js";
1
+ import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, a as UNSHOWABLE_VALUE, c as deployReplaceCommand, d as pasteableCommand, f as physicalIdShownBesideCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE } from "./version-qyD3mVkG.js";
2
+ import { $ as withStackScope, A as configStringRefusal, C as fallbackNamePropertyFor, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, G as currentNameGeneration, H as looksLikeCdkdGeneratedName, J as getCurrentStackName, K as getCurrentSkipPrefix, M as replayWarn, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, S as explicitNamePropertyFor, T as withoutGeneratedFallbackName, V as generateResourceNameWithFallback, W as stackInstanceNameSuffix, X as isNameGeneration, Z as withNameGeneration, _ as currentLogLineMasker, b as alternateNamePropertiesFor, c as VERBOSE_POINTER, et as withStackScopeBeforeStateRead, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, v as installLogLineMaskerSource, w as generatedNameFor, x as applyDefaultNameForFallback, y as getLiveRenderer } from "./logger-BYujCFZu.js";
3
+ import { A as stripControlChars, C as isNameCooldownError, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, K as wrapMaskedAwsError, L as isIamPropagationError, O as relayedNameCollision, P as isAmbiguousCcHandlerErrorCode, Q as AccountIdUnavailableError, S as isNameCollisionErrorFrom, T as isReplayedNameCollisionFrom, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as SelectOutOfBoundsRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, b as isUpdateUnsupportedError, et as CdkdError, i as credentialFingerprint, k as escapeRegExp$1, m as ExportInUseError, n as ambientCredentialConfig, nt as DeploymentNotApprovedError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, st as StateError, t as ambientClientDefaults, w as isRecreateRetryableError, z as isTransientServerError } from "./ambient-client-defaults-BoDpDYst.js";
4
4
  import { a as getAssumedRoleCredentials, c as setAssumedRoleCredentials, d as quietS3Logger, f as ambientRegion, i as awsEndpointOverrideUrl, n as awsClientDefaults, o as getPreAssumeEnvCredentials, r as awsEndpointOverrideActive, t as SECOND_ROLE_PUBLISH_REFUSAL, u as setPreAssumeEnvCredentials } from "./aws-client-defaults-DAebi99J.js";
5
5
  import { l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
6
- import { A as timePhaseSync, C as CREATE_ONLY_PATHS_SNAPSHOT, D as recordPhase, E as phaseTimingsEnabled, F as utf8ByteLength, M as jsonParseFailureStandIn, N as parseFailureDebugDetail, P as parseJsonNamingNoBody, S as withRetry, T as phaseScopeForStack, _ as describeTypeWithThrottleRetry, a as observeThenDisableInstanceApiTermination, b as reportAwsEmulatorRegistryMiss, f as getCreateOnlyPropertyPaths, g as parseCreateOnlyPropertyPointers, h as templateResourceTypes, i as isTerminationProtectionPropagationError, j as describeJsonParseFailure, k as timePhase, l as unchangedBehindSecretReference, m as prefetchCreateOnlyPropertyPaths, o as reDisableInstanceApiTermination, p as isIntrinsicShaped, r as ec2InstanceProtectionSite, s as reEnableInstanceApiTermination, t as ignoresUnmodifiedGroupSize, u as cachedCreateOnlyPropertyPaths, v as hasNoRegistrySchema, w as PhaseClock, x as IAM_PROPAGATION_MAX_DELAY_MS, y as isAwsEmulatorRegistryMiss } from "./update-policy-C3iCsDhx.js";
6
+ import { A as timePhaseSync, C as CREATE_ONLY_PATHS_SNAPSHOT, D as recordPhase, E as phaseTimingsEnabled, F as utf8ByteLength, M as jsonParseFailureStandIn, N as parseFailureDebugDetail, P as parseJsonNamingNoBody, S as withRetry, T as phaseScopeForStack, _ as describeTypeWithThrottleRetry, a as observeThenDisableInstanceApiTermination, b as reportAwsEmulatorRegistryMiss, f as getCreateOnlyPropertyPaths, g as parseCreateOnlyPropertyPointers, h as templateResourceTypes, i as isTerminationProtectionPropagationError, j as describeJsonParseFailure, k as timePhase, l as unchangedBehindSecretReference, m as prefetchCreateOnlyPropertyPaths, o as reDisableInstanceApiTermination, p as isIntrinsicShaped, r as ec2InstanceProtectionSite, s as reEnableInstanceApiTermination, t as ignoresUnmodifiedGroupSize, u as cachedCreateOnlyPropertyPaths, v as hasNoRegistrySchema, w as PhaseClock, x as IAM_PROPAGATION_MAX_DELAY_MS, y as isAwsEmulatorRegistryMiss } from "./update-policy-Bv1x6AOi.js";
7
7
  import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
8
- import { B as refusalTypeShown, Bt as RETRY_AUXILIARY_OWNER, Ct as isInterruptedWaitError, Dt as compositeIdSeparatorRefusal, Ft as createMaskedRetryLogger, G as isMarkedNotGone, H as resolveExplicitPhysicalId, It as isSecretDerivedValue, J as deleteWithProtectionCompensation, Jt as markAuxiliaryFailure, K as markNotGone, Kt as isAuxiliaryFailure, L as isQuotableImportValue, Lt as maskDeep, M as withoutServerErrorRetries, Mt as segmentAfterAnchor, Nt as stateOrphanRecordRemedy, Pt as createMaskedLogSinks, R as normalizeAwsTagsToCfn, Rt as maskerOrIdentity, Tt as canonicalizeRoute53QueryName, U as RESOURCE_NOT_FOUND, Ut as createdBeforeFailure, W as assertRegionMatch, Wt as createdResourceIdentityBeforeFailure, X as observeThenDisableProtection, Yt as markCreatedBeforeFailure, _t as pasteableAwsCommand, an as recoveryCommandFlags, c as clearCreatedReport, cn as DEFAULT_STATE_PREFIX, ct as protectionFlipKey, dn as withPasteableAwsProfile, dt as ElapsedBudgetRegistry, f as retractCreatedResource, fn as injectiveKey, ft as monotonicNowMs, hn as producerRecordKey, jt as resourceTypeShown, kt as logicalIdShown, l as collectCreatedResources, lt as runDeleteAttempt, n as prepareRemovalForUpdate, o as withoutInjectedRemovals, on as sanitizeRecoveryValue, ot as ProtectionFlipRegistry, pt as DELETION_PROTECTION_DOC_POINTER, q as compensateProtectionFlip, qt as isAuxiliaryMarkOf, r as removalWarning, s as CreatedResourceSink, sn as CUSTOM_RESOURCE_RESPONSE_PREFIX, st as isTerminalDeleteFailure, u as reportCreatedResource, ut as ElapsedBudget, vt as protectedReplacementAdvice, wt as startInterruptWatch, x as withUnchangedSecretPrincipalLists, z as quotedRemedyLogicalId, zt as withDerivedNameMasks } from "./update-removal-TXGn1k50.js";
9
- import { t as expectedOwnerParam } from "./expected-bucket-owner-BUXAXOgl.js";
10
- import { Ct as isReadableBag, Dt as skippedOutputsCarriedFrom, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, gt as slowCcOperationTimeoutMs, ht as dbInstanceAttributes, i as dbClusterAttributes, n as isRefusedByName, r as markDeleteStarted, t as isDeleteStarted, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-BR6VF4-U.js";
11
- import { $t as recordInheritedParameterValue, A as witnessNormalize, An as recordNoEchoAttributeValues, At as withoutPhysicalNameCopies, B as redactionClaimOf, Cn as noEchoParameterPlaintextsOf, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dn as recordFreshNoEchoValuesIn, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, En as recordDerivedMaskOnlyValue, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, G as foldRecording, Gt as recordTakenIfBranch, H as mixedLiteralAnswered, Ht as splitOutsideDynamicReferences, I as markSameGenerationBag, In as isDynamicReferenceString, It as secretRerenderPairs, J as hasPassProvenance, Jt as templateRereadsAccountId, K as openRecordingScope, Kt as inheritedPseudoValue, L as mergeResolvedPairs, Ln as isSingleDynamicReferenceToken, M as carryRedactionMarks, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as withoutNoEchoParameterEntries, Q as recordReferenceResolution, Qt as recordInheritedParameterRead, R as recordIntrinsicLeafResolution, Rn as maskMatchSpans, S as noEchoParametersReadBy, Sn as markNoEchoParameterClass, St as replaceWholeLeaves, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as standsForInheritedSecret, V as resolvedPlaintextOf, Vt as rereadParameterExpression, W as redactForState, Wt as recordDroppedArrayElements, X as passReadVersionsFor, Xt as inheritedParameterExpression, Y as passProvenanceFor, Yt as inheritNestedStackParameterAssociations, Z as recordReferenceProvenanceEntry, Zt as inheritedRenderedToken, _ as noEchoComparison, _n as freshNoEchoValuesOf, _t as maskSecretsInText, an as recordRecoverableMaskedOutput, at as literalSplitDelimitersOf, bn as isScopedSecretVerdict, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, ct as recordLogOnlyParameterValue, d as canonicalJson$5, dn as crossStackSourceKey, dt as shareLogOnlyValues, en as redactInheritedParameterValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordCrossStackExpression, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as contradictProvenPublicExpression, gt as maskSecretsInError, h as maskWholeValue, hn as carryFreshNoEchoMark, ht as maskRecordedSecretsInText, in as freshNoEchoLeafPositions, it as hasMaskableValues, jn as recordNoEchoParameterFreshValue, jt as spanNamesResolvableService, k as valueAtCoordinate, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nn as carriesFreshNoEchoValue, nt as createUnionSecretMasker, on as recoverMaskedOutput, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, q as recordSecretResolution, qt as recordInheritedPseudoParameters, rn as embedsFreshNoEchoValue, rt as hasLogOnlyValues, sn as physicalNameCopiesOf, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as withdrawRenderedParameterSpelling, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isMaskOnlyPlaintext, vt as differingStringLeaves, w as readbackPathFor, wn as pinScopedSecretVerdict, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as isSecretExpressionByVerdictOrSpelling, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isNoEchoParameterPlaintext, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as arrayPairsWhateverDrops } from "./replacement-rules-SPQJMbC6.js";
12
- import { C as unsettledItemsField, D as withUnsettledItems, E as unsettledPropertiesOf, O as withUnsettledProperties, S as unsettledContextOf, T as unsettledItemsTopKey, c as refuseRestoreFromItself, f as planTagDiff, g as tagPlanWarning, i as withResourceDeadline, k as withoutUnsettledProperties, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, r as whileEnclosingDeadlinesPaused, t as enclosingDeadlineExpired, w as unsettledItemsOf, x as isUsableAttemptedName, y as definedAttributes } from "./resource-deadline-CImbEePa.js";
8
+ import { $t as markCreatedBeforeFailure, Bt as isSecretDerivedValue, Dt as isInterruptedWaitError, Ft as resourceTypeShown, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, Jt as createdResourceIdentityBeforeFailure, K as resolveExplicitPhysicalId, Lt as stateOrphanRecordRemedy, Nt as logicalIdShown, Ot as startInterruptWatch, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, Rt as createMaskedLogSinks, St as protectedReplacementAdvice, T as withUnchangedSecretPrincipalLists, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, Wt as RETRY_AUXILIARY_OWNER, X as markNotGone, Xt as isAuxiliaryFailure, Y as isMarkedNotGone, Z as compensateProtectionFlip, Zt as isAuxiliaryMarkOf, _t as DELETION_PROTECTION_DOC_POINTER, d as CreatedResourceSink, dn as CUSTOM_RESOURCE_RESPONSE_PREFIX, dt as isTerminalDeleteFailure, et as observeThenDisableProtection, f as clearCreatedReport, fn as DEFAULT_STATE_PREFIX, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, gt as monotonicNowMs, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, i as withResourceDeadline, jt as compositeIdSeparatorRefusal, kt as canonicalizeRoute53QueryName, ln as recoveryCommandFlags, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, o as prepareRemovalForUpdate, p as collectCreatedResources, pt as runDeleteAttempt, q as RESOURCE_NOT_FOUND, qt as createdBeforeFailure, r as whileEnclosingDeadlinesPaused, s as removalWarning, t as enclosingDeadlineExpired, u as withoutInjectedRemovals, un as sanitizeRecoveryValue, ut as ProtectionFlipRegistry, xt as pasteableAwsCommand, yn as producerRecordKey, zt as createMaskedRetryLogger } from "./resource-deadline-BzTkGME1.js";
9
+ import { t as expectedOwnerParam } from "./expected-bucket-owner-CmQxQ5sA.js";
10
+ import { Ct as isReadableBag, Dt as skippedOutputsCarriedFrom, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, gt as slowCcOperationTimeoutMs, ht as dbInstanceAttributes, i as dbClusterAttributes, n as isRefusedByName, r as markDeleteStarted, t as isDeleteStarted, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-CPDnxn60.js";
11
+ import { $t as recordInheritedParameterValue, A as witnessNormalize, An as recordNoEchoAttributeValues, At as withoutPhysicalNameCopies, B as redactionClaimOf, Cn as noEchoParameterPlaintextsOf, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dn as recordFreshNoEchoValuesIn, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, En as recordDerivedMaskOnlyValue, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, G as foldRecording, Gt as recordTakenIfBranch, H as mixedLiteralAnswered, Ht as splitOutsideDynamicReferences, I as markSameGenerationBag, In as isDynamicReferenceString, It as secretRerenderPairs, J as hasPassProvenance, Jt as templateRereadsAccountId, K as openRecordingScope, Kt as inheritedPseudoValue, L as mergeResolvedPairs, Ln as isSingleDynamicReferenceToken, M as carryRedactionMarks, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as withoutNoEchoParameterEntries, Q as recordReferenceResolution, Qt as recordInheritedParameterRead, R as recordIntrinsicLeafResolution, Rn as maskMatchSpans, S as noEchoParametersReadBy, Sn as markNoEchoParameterClass, St as replaceWholeLeaves, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as standsForInheritedSecret, V as resolvedPlaintextOf, Vt as rereadParameterExpression, W as redactForState, Wt as recordDroppedArrayElements, X as passReadVersionsFor, Xt as inheritedParameterExpression, Y as passProvenanceFor, Yt as inheritNestedStackParameterAssociations, Z as recordReferenceProvenanceEntry, Zt as inheritedRenderedToken, _ as noEchoComparison, _n as freshNoEchoValuesOf, _t as maskSecretsInText, an as recordRecoverableMaskedOutput, at as literalSplitDelimitersOf, bn as isScopedSecretVerdict, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, ct as recordLogOnlyParameterValue, d as canonicalJson$5, dn as crossStackSourceKey, dt as shareLogOnlyValues, en as redactInheritedParameterValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordCrossStackExpression, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as contradictProvenPublicExpression, gt as maskSecretsInError, h as maskWholeValue, hn as carryFreshNoEchoMark, ht as maskRecordedSecretsInText, in as freshNoEchoLeafPositions, it as hasMaskableValues, jn as recordNoEchoParameterFreshValue, jt as spanNamesResolvableService, k as valueAtCoordinate, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nn as carriesFreshNoEchoValue, nt as createUnionSecretMasker, on as recoverMaskedOutput, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, q as recordSecretResolution, qt as recordInheritedPseudoParameters, rn as embedsFreshNoEchoValue, rt as hasLogOnlyValues, sn as physicalNameCopiesOf, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as withdrawRenderedParameterSpelling, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isMaskOnlyPlaintext, vt as differingStringLeaves, w as readbackPathFor, wn as pinScopedSecretVerdict, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as isSecretExpressionByVerdictOrSpelling, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isNoEchoParameterPlaintext, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as arrayPairsWhateverDrops } from "./replacement-rules-fUZRFjHJ.js";
12
+ import { C as withUnsettledItems, S as unsettledPropertiesOf, T as withoutUnsettledProperties, _ as isUsableAttemptedName, b as unsettledItemsOf, c as planTagDiff, f as tagPlanWarning, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, u as refuseMalformedDesiredTags, v as unsettledContextOf, w as withUnsettledProperties, x as unsettledItemsTopKey, y as unsettledItemsField } from "./restore-source-guard-DRx3lyhr.js";
13
13
  import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
14
14
  import { AsyncLocalStorage } from "node:async_hooks";
15
15
  import { CreateBucketCommand, DeleteObjectCommand, DeleteObjectsCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchKey, PutBucketEncryptionCommand, PutBucketLifecycleConfigurationCommand, PutBucketPolicyCommand, PutObjectCommand, PutPublicAccessBlockCommand, S3Client } from "@aws-sdk/client-s3";
@@ -82,7 +82,7 @@ async function resolveBucketRegion(bucketName, opts = {}) {
82
82
  });
83
83
  }
84
84
  try {
85
- const { expectedOwnerParam } = await import("./expected-bucket-owner-BUXAXOgl.js").then((n) => n.n);
85
+ const { expectedOwnerParam } = await import("./expected-bucket-owner-CmQxQ5sA.js").then((n) => n.n);
86
86
  return (await client.send(new GetBucketLocationCommand({
87
87
  Bucket: bucketName,
88
88
  ...await expectedOwnerParam(client)
@@ -19167,7 +19167,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
19167
19167
  const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
19168
19168
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
19169
19169
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
19170
- const { ASGProvider } = await import("./asg-provider-CM19nSRR.js");
19170
+ const { ASGProvider } = await import("./asg-provider-DkGLJwox.js");
19171
19171
  const delegateRegion = ambientRegion();
19172
19172
  let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
19173
19173
  if (asgProvider === void 0) {
@@ -19321,7 +19321,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
19321
19321
  const family = SDK_DELETE_FAMILIES.get(resourceType);
19322
19322
  const cached = this.sdkDeleteDelegates.get(family);
19323
19323
  if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
19324
- const provider = family === "rds" ? new (await (import("./rds-provider-k-7oWDtG.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-CN3MA8Cw.js"))).NeptuneProvider({ region: ccRegion });
19324
+ const provider = family === "rds" ? new (await (import("./rds-provider-DwoeM58V.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-Cw6VRzy-.js"))).NeptuneProvider({ region: ccRegion });
19325
19325
  this.sdkDeleteDelegates.set(family, {
19326
19326
  region: ccRegion,
19327
19327
  provider
@@ -22007,7 +22007,7 @@ async function publishToSns(topicArn, request) {
22007
22007
  }
22008
22008
  async function invokeLambda(serviceToken, request) {
22009
22009
  if (localCustomResourceRuntimeActive()) {
22010
- const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-gD0yCVTA.js");
22010
+ const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-Igdxgp4i.js");
22011
22011
  const local = await invokeCustomResourceFunctionLocally({
22012
22012
  lambda: this.lambdaClient,
22013
22013
  s3: this.s3Client
@@ -25338,15 +25338,18 @@ function finalSnapshotFailure(message, error) {
25338
25338
  const thrown = new CdkdError(message, "FINAL_SNAPSHOT_FAILED", cause);
25339
25339
  return cause !== void 0 && describeAwsFailure(cause).redacted ? markRedactedCause(thrown) : thrown;
25340
25340
  }
25341
+ function finalSnapshotWaitStopped(snapshotId, logicalId, sourceId, noun) {
25342
+ return new CdkdError(safeMsg`Stopped waiting for final snapshot ${snapshotId} of ${logicalId} (${sourceId}): ` + `the run was interrupted. The ${noun} was NOT deleted; the snapshot continues in AWS and the next attempt resumes it.`, "FINAL_SNAPSHOT_FAILED");
25343
+ }
25341
25344
 
25342
25345
  // src/provisioning/final-snapshot/ebs.ts
25343
25346
  function isVolumeNotFound(error) {
25344
25347
  return (error instanceof Error ? error.name : "") === "InvalidVolume.NotFound" || errMsg(error).includes("InvalidVolume.NotFound");
25345
25348
  }
25346
- async function createEbsFinalSnapshot(client, volumeId, logicalId, logger) {
25349
+ async function createEbsFinalSnapshot(client, volumeId, logicalId, logger, options = {}) {
25347
25350
  let snapshotId;
25348
25351
  try {
25349
- snapshotId = (await client.send(new DescribeSnapshotsCommand({
25352
+ const existing = await client.send(new DescribeSnapshotsCommand({
25350
25353
  OwnerIds: ["self"],
25351
25354
  Filters: [{
25352
25355
  Name: `tag:${EBS_FINAL_SNAPSHOT_TAG_KEY}`,
@@ -25355,7 +25358,9 @@ async function createEbsFinalSnapshot(client, volumeId, logicalId, logger) {
25355
25358
  Name: "status",
25356
25359
  Values: ["pending", "completed"]
25357
25360
  }]
25358
- }))).Snapshots?.[0]?.SnapshotId;
25361
+ }));
25362
+ const bound = options.reuseStartedAtOrAfter;
25363
+ snapshotId = (bound === void 0 ? existing.Snapshots?.[0] : existing.Snapshots?.find((s) => s.StartTime !== void 0 && new Date(s.StartTime).getTime() >= bound))?.SnapshotId;
25359
25364
  if (snapshotId) logger.debug(`Reusing existing final snapshot ${snapshotId} for ${logicalId} (${volumeId}) from a previous destroy attempt`);
25360
25365
  } catch (probeError) {
25361
25366
  logger.debug(`Final-snapshot reuse probe failed for ${volumeId}: ${errMsg(probeError)}`);
@@ -25402,16 +25407,17 @@ async function createEbsFinalSnapshot(client, volumeId, logicalId, logger) {
25402
25407
  }
25403
25408
  if (state === "error") throw new CdkdError(`Final snapshot ${snapshotId} for ${logicalId} (${volumeId}) entered 'error' state. The volume was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
25404
25409
  if (Date.now() >= deadline) throw new CdkdError(`Timed out waiting for final snapshot ${snapshotId} of ${logicalId} (${volumeId}) to complete. The volume was NOT deleted; the snapshot continues in AWS — re-run the destroy once it completes (the existing snapshot is reused, not duplicated).`, "FINAL_SNAPSHOT_TIMEOUT");
25410
+ if (options.stop?.() === true) throw finalSnapshotWaitStopped(snapshotId, logicalId, volumeId, "volume");
25405
25411
  await finalSnapshotDelays.sleep(PRE_DELETE_SNAPSHOT_POLL_INTERVAL_MS);
25406
25412
  }
25407
25413
  }
25408
25414
 
25409
25415
  // src/provisioning/final-snapshot/pre-delete.ts
25410
- async function createPreDeleteFinalSnapshot(resourceType, physicalId, logicalId, clients, logger) {
25416
+ async function createPreDeleteFinalSnapshot(resourceType, physicalId, logicalId, clients, logger, options = {}) {
25411
25417
  switch (resourceType) {
25412
- case "AWS::EC2::Volume": return createEbsFinalSnapshot(clients.ec2, physicalId, logicalId, logger);
25413
- case "AWS::Redshift::Cluster": return createRedshiftFinalSnapshot(clients.redshift, physicalId, logicalId, logger);
25414
- case "AWS::ElastiCache::ReplicationGroup": return createReplicationGroupFinalSnapshot(clients.elastiCache, physicalId, logicalId, logger);
25418
+ case "AWS::EC2::Volume": return createEbsFinalSnapshot(clients.ec2, physicalId, logicalId, logger, options);
25419
+ case "AWS::Redshift::Cluster": return createRedshiftFinalSnapshot(clients.redshift, physicalId, logicalId, logger, options);
25420
+ case "AWS::ElastiCache::ReplicationGroup": return createReplicationGroupFinalSnapshot(clients.elastiCache, physicalId, logicalId, logger, options);
25415
25421
  default: throw new CdkdError(`No pre-delete final-snapshot implementation for ${logicalId} (${resourceType}). The resource was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
25416
25422
  }
25417
25423
  }
@@ -25438,19 +25444,24 @@ async function waitForNamedSnapshot(opts) {
25438
25444
  }
25439
25445
  if (status !== void 0 && opts.failedStatuses.includes(status)) throw new CdkdError(`Final snapshot ${snapshotId} for ${logicalId} (${sourceId}) entered '${status}' state. The ${noun} was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
25440
25446
  if (Date.now() >= deadline) throw new CdkdError(`Timed out waiting for final snapshot ${snapshotId} of ${logicalId} (${sourceId}) to become ready. The ${noun} was NOT deleted; the snapshot continues in AWS — re-run the delete once it is ready (the existing snapshot is reused, not duplicated).`, "FINAL_SNAPSHOT_TIMEOUT");
25447
+ if (opts.stop?.() === true) throw finalSnapshotWaitStopped(snapshotId, logicalId, sourceId, noun);
25441
25448
  await finalSnapshotDelays.sleep(PRE_DELETE_SNAPSHOT_POLL_INTERVAL_MS);
25442
25449
  }
25443
25450
  }
25444
25451
  function errorNameOrMessageIncludes(error, token) {
25445
25452
  return (error instanceof Error ? error.name : "") === token || errMsg(error).includes(token);
25446
25453
  }
25454
+ function startedAtOrAfter(started, bound) {
25455
+ if (bound === void 0) return true;
25456
+ return started !== void 0 && new Date(started).getTime() >= bound;
25457
+ }
25447
25458
  const REUSE_PROBE_MAX_PAGES = 10;
25448
25459
  function generatedSnapshotNameMatcher(physicalId, resourceType) {
25449
25460
  const escaped = finalSnapshotNamePrefix(physicalId, resourceType).replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
25450
25461
  return new RegExp(`^${escaped}\\d{8}-\\d{6}$`);
25451
25462
  }
25452
25463
  const RESUMABLE_SNAPSHOT_STATUS = "creating";
25453
- async function createRedshiftFinalSnapshot(client, clusterId, logicalId, logger) {
25464
+ async function createRedshiftFinalSnapshot(client, clusterId, logicalId, logger, options = {}) {
25454
25465
  const matches = generatedSnapshotNameMatcher(clusterId, "AWS::Redshift::Cluster");
25455
25466
  let snapshotId;
25456
25467
  try {
@@ -25461,7 +25472,7 @@ async function createRedshiftFinalSnapshot(client, clusterId, logicalId, logger)
25461
25472
  SnapshotType: "manual",
25462
25473
  ...marker !== void 0 && { Marker: marker }
25463
25474
  }));
25464
- snapshotId = existing.Snapshots?.find((s) => s.SnapshotIdentifier !== void 0 && matches.test(s.SnapshotIdentifier) && s.Status === RESUMABLE_SNAPSHOT_STATUS)?.SnapshotIdentifier;
25475
+ snapshotId = existing.Snapshots?.find((s) => s.SnapshotIdentifier !== void 0 && matches.test(s.SnapshotIdentifier) && s.Status === RESUMABLE_SNAPSHOT_STATUS && startedAtOrAfter(s.SnapshotCreateTime, options.reuseStartedAtOrAfter))?.SnapshotIdentifier;
25465
25476
  marker = existing.Marker;
25466
25477
  if (marker === void 0) break;
25467
25478
  }
@@ -25483,7 +25494,7 @@ async function createRedshiftFinalSnapshot(client, clusterId, logicalId, logger)
25483
25494
  logger.debug(`Redshift cluster ${clusterId} no longer exists — skipping final snapshot for ${logicalId}`);
25484
25495
  return null;
25485
25496
  }
25486
- if (errorNameOrMessageIncludes(createError, "InvalidClusterStateFault")) {
25497
+ if (options.refuseUnsnapshottableState !== true && errorNameOrMessageIncludes(createError, "InvalidClusterStateFault")) {
25487
25498
  logger.info(`Redshift cluster ${clusterId} is not in a snapshottable state (likely already deleting) — skipping the final snapshot for ${logicalId}: ${errMsg(createError)}`);
25488
25499
  return null;
25489
25500
  }
@@ -25507,12 +25518,13 @@ async function createRedshiftFinalSnapshot(client, clusterId, logicalId, logger)
25507
25518
  return (await client.send(new DescribeClusterSnapshotsCommand({ SnapshotIdentifier: snapshotId }))).Snapshots?.[0]?.Status;
25508
25519
  },
25509
25520
  isTransientNotFound: (e) => errorNameOrMessageIncludes(e, "ClusterSnapshotNotFoundFault"),
25510
- logger
25521
+ logger,
25522
+ stop: options.stop
25511
25523
  });
25512
- await waitForRedshiftClusterSettled(client, clusterId, logicalId, logger);
25524
+ await waitForRedshiftClusterSettled(client, clusterId, logicalId, logger, options.stop);
25513
25525
  return readySnapshotId;
25514
25526
  }
25515
- async function waitForRedshiftClusterSettled(client, clusterId, logicalId, logger) {
25527
+ async function waitForRedshiftClusterSettled(client, clusterId, logicalId, logger, stop) {
25516
25528
  const deadline = Date.now() + REDSHIFT_CLUSTER_SETTLE_TIMEOUT_MS;
25517
25529
  for (;;) {
25518
25530
  let status;
@@ -25532,10 +25544,11 @@ async function waitForRedshiftClusterSettled(client, clusterId, logicalId, logge
25532
25544
  return;
25533
25545
  }
25534
25546
  logger.debug(`Waiting for Redshift cluster ${clusterId} to settle (status: ${status})`);
25547
+ if (stop?.() === true) throw new CdkdError(`Stopped waiting for Redshift cluster ${clusterId} (${logicalId}) to settle after its final snapshot: the run was interrupted. The cluster was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
25535
25548
  await finalSnapshotDelays.sleep(PRE_DELETE_SNAPSHOT_POLL_INTERVAL_MS);
25536
25549
  }
25537
25550
  }
25538
- async function createReplicationGroupFinalSnapshot(client, replicationGroupId, logicalId, logger) {
25551
+ async function createReplicationGroupFinalSnapshot(client, replicationGroupId, logicalId, logger, options = {}) {
25539
25552
  let snapshotSource;
25540
25553
  try {
25541
25554
  const group = (await client.send(new DescribeReplicationGroupsCommand({ ReplicationGroupId: replicationGroupId }))).ReplicationGroups?.[0];
@@ -25567,7 +25580,7 @@ async function createReplicationGroupFinalSnapshot(client, replicationGroupId, l
25567
25580
  ...snapshotSource,
25568
25581
  ...marker !== void 0 && { Marker: marker }
25569
25582
  }));
25570
- snapshotId = existing.Snapshots?.find((s) => s.SnapshotName !== void 0 && matches.test(s.SnapshotName) && s.SnapshotStatus === RESUMABLE_SNAPSHOT_STATUS)?.SnapshotName;
25583
+ snapshotId = existing.Snapshots?.find((s) => s.SnapshotName !== void 0 && matches.test(s.SnapshotName) && s.SnapshotStatus === RESUMABLE_SNAPSHOT_STATUS && startedAtOrAfter(s.NodeSnapshots?.[0]?.SnapshotCreateTime, options.reuseStartedAtOrAfter))?.SnapshotName;
25571
25584
  marker = existing.Marker;
25572
25585
  if (marker === void 0) break;
25573
25586
  }
@@ -25589,7 +25602,7 @@ async function createReplicationGroupFinalSnapshot(client, replicationGroupId, l
25589
25602
  logger.debug(`Replication group ${replicationGroupId} no longer exists — skipping final snapshot for ${logicalId}`);
25590
25603
  return null;
25591
25604
  }
25592
- if (errorNameOrMessageIncludes(createError, "InvalidReplicationGroupStateFault")) {
25605
+ if (options.refuseUnsnapshottableState !== true && errorNameOrMessageIncludes(createError, "InvalidReplicationGroupStateFault")) {
25593
25606
  logger.info(`Replication group ${replicationGroupId} is not in a snapshottable state (likely already deleting) — skipping the final snapshot for ${logicalId}: ${errMsg(createError)}`);
25594
25607
  return null;
25595
25608
  }
@@ -25609,7 +25622,8 @@ async function createReplicationGroupFinalSnapshot(client, replicationGroupId, l
25609
25622
  return (await client.send(new DescribeSnapshotsCommand$1({ SnapshotName: snapshotId }))).Snapshots?.[0]?.SnapshotStatus;
25610
25623
  },
25611
25624
  isTransientNotFound: (e) => errorNameOrMessageIncludes(e, "SnapshotNotFoundFault"),
25612
- logger
25625
+ logger,
25626
+ stop: options.stop
25613
25627
  });
25614
25628
  }
25615
25629
 
@@ -25654,7 +25668,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
25654
25668
  if (resourceType !== "AWS::RDS::DBInstance") return false;
25655
25669
  if (region === void 0 || region === "") return false;
25656
25670
  const mask = input.mask ?? ((text) => text);
25657
- const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-Dx5O9bW4.js").then((n) => n.l);
25671
+ const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-YGp4k5-z.js").then((n) => n.l);
25658
25672
  let reason;
25659
25673
  try {
25660
25674
  const live = await describeDBInstanceInRegion(physicalId, region);
@@ -25694,14 +25708,26 @@ async function prepareFinalSnapshotForDelete(deps, logicalId, resourceType, curr
25694
25708
  throw ccRoutedFinalSnapshotError(logicalId, resourceType, "--skip-final-snapshot");
25695
25709
  }
25696
25710
  if (PRE_DELETE_SNAPSHOT_TYPES.has(resourceType)) {
25697
- await createPreDeleteFinalSnapshot(resourceType, currentResource.physicalId, logicalId, deps.options.finalSnapshotClients ?? getAwsClients(), mask === void 0 ? deps.logger : {
25698
- info: (message) => deps.logger.info(mask(message)),
25699
- debug: (message) => deps.logger.debug(mask(message))
25700
- });
25711
+ await takePreDeleteSnapshot(deps, logicalId, resourceType, currentResource.physicalId, mask);
25701
25712
  return;
25702
25713
  }
25703
25714
  throw unsupportedFinalSnapshotError(logicalId, resourceType, "--skip-final-snapshot");
25704
25715
  }
25716
+ async function prepareCreateFirstFinalSnapshot(deps, logicalId, resourceType, currentResource, policy, mask) {
25717
+ if (policy === "Snapshot" && deps.options.skipFinalSnapshot !== true && PRE_DELETE_SNAPSHOT_TYPES.has(resourceType)) return buildFinalSnapshotIdentifier(currentResource.physicalId, resourceType);
25718
+ return prepareFinalSnapshotForDelete(deps, logicalId, resourceType, currentResource, policy, mask);
25719
+ }
25720
+ function owesPreDeleteSnapshot(resourceType, finalSnapshotIdentifier) {
25721
+ return finalSnapshotIdentifier !== void 0 && PRE_DELETE_SNAPSHOT_TYPES.has(resourceType);
25722
+ }
25723
+ async function takePreDeleteSnapshot(deps, logicalId, resourceType, physicalId, mask, options) {
25724
+ const logger = mask === void 0 ? deps.logger : {
25725
+ info: (message) => deps.logger.info(mask(message)),
25726
+ debug: (message) => deps.logger.debug(mask(message))
25727
+ };
25728
+ const clients = deps.options.finalSnapshotClients ?? getAwsClients();
25729
+ await (options === void 0 ? createPreDeleteFinalSnapshot(resourceType, physicalId, logicalId, clients, logger) : createPreDeleteFinalSnapshot(resourceType, physicalId, logicalId, clients, logger, options));
25730
+ }
25705
25731
 
25706
25732
  // src/deployment/deploy-engine/masking/remedy.ts
25707
25733
  function maskedRecordRemedyFor(reads, resources, causeScoped = false) {
@@ -27580,11 +27606,18 @@ function addSuperseded(host, entry) {
27580
27606
  host.supersededResources = [...(Array.isArray(host.supersededResources) ? host.supersededResources : []).filter((row) => !isSupersededResourceRecord(row) || row.state.physicalId !== entry.state.physicalId || row.state.resourceType !== entry.state.resourceType), entry];
27581
27607
  }
27582
27608
  function canRecordSuperseded(record, deleteContext) {
27583
- if (deleteContext.noEchoDeleteValues !== void 0) return false;
27609
+ if (deleteNeedsThisRunsNoEchoValues(record, deleteContext.noEchoDeleteValues)) return false;
27610
+ if (deleteContext.persistedRecord !== true && Array.isArray(record.noEchoLeaves) && record.noEchoLeaves.length > 0) return false;
27584
27611
  if (deleteContext.inlinePolicyClaimed !== void 0) return false;
27585
- if (Array.isArray(record.noEchoLeaves) && record.noEchoLeaves.length > 0) return false;
27586
27612
  return !INLINE_POLICY_TYPES.has(record.resourceType);
27587
27613
  }
27614
+ function deleteNeedsThisRunsNoEchoValues(record, noEchoDeleteValues) {
27615
+ if (noEchoDeleteValues !== void 0) return true;
27616
+ return readsNoEchoDeleteValues(record.resourceType) && Array.isArray(record.noEchoLeaves) && record.noEchoLeaves.length > 0;
27617
+ }
27618
+ function isInlinePolicyType(resourceType) {
27619
+ return INLINE_POLICY_TYPES.has(resourceType);
27620
+ }
27588
27621
  const INLINE_POLICY_TYPES = /* @__PURE__ */ new Set([
27589
27622
  "AWS::IAM::Policy",
27590
27623
  "AWS::IAM::RolePolicy",
@@ -27612,12 +27645,44 @@ function withoutSuperseded(state) {
27612
27645
  }
27613
27646
  async function deleteSupersededEntry(entry, input) {
27614
27647
  const record = entry.state;
27648
+ const owesSnapshot = entry.skipFinalSnapshot !== true && entry.finalSnapshotIdentifier !== void 0 && PRE_DELETE_SNAPSHOT_TYPES.has(record.resourceType);
27649
+ if (owesSnapshot) {
27650
+ if (input.preDeleteSnapshot === void 0) return {
27651
+ kind: "failed",
27652
+ error: new CdkdError(`The final snapshot of ${entry.logicalId}'s superseded ${record.resourceType} could not be taken here. The resource was NOT deleted.`, "FINAL_SNAPSHOT_FAILED")
27653
+ };
27654
+ if (input.stop()) return {
27655
+ kind: "failed",
27656
+ error: new CdkdError(`The run was interrupted before the final snapshot of ${entry.logicalId}'s superseded ${record.resourceType}. The resource was NOT deleted.`, "FINAL_SNAPSHOT_FAILED")
27657
+ };
27658
+ try {
27659
+ await createPreDeleteFinalSnapshot(record.resourceType, record.physicalId, entry.logicalId, input.preDeleteSnapshot.clients, input.preDeleteSnapshot.logger, {
27660
+ refuseUnsnapshottableState: true,
27661
+ reuseStartedAtOrAfter: Number.isFinite(entry.supersededAt) ? entry.supersededAt : Date.now(),
27662
+ stop: input.stop
27663
+ });
27664
+ } catch (error) {
27665
+ return {
27666
+ kind: "failed",
27667
+ error
27668
+ };
27669
+ }
27670
+ }
27671
+ const { finalSnapshotIdentifier: _taken, ...snapshotTaken } = entry;
27672
+ const failed = (error) => owesSnapshot ? {
27673
+ kind: "failed",
27674
+ error,
27675
+ replacement: snapshotTaken
27676
+ } : {
27677
+ kind: "failed",
27678
+ error
27679
+ };
27615
27680
  let result;
27616
27681
  try {
27617
27682
  const send = () => input.provider.delete(entry.logicalId, record.physicalId, record.resourceType, record.properties, {
27618
27683
  expectedRegion: input.region,
27619
27684
  ...entry.forceDataDelete === true && { forceDataDelete: true },
27620
- ...entry.finalSnapshotIdentifier !== void 0 && { finalSnapshotIdentifier: entry.finalSnapshotIdentifier },
27685
+ ...entry.finalSnapshotIdentifier !== void 0 && !PRE_DELETE_SNAPSHOT_TYPES.has(record.resourceType) && { finalSnapshotIdentifier: entry.finalSnapshotIdentifier },
27621
27686
  deletionPolicy: replacementDeletePolicy(entry.updateReplacePolicy),
27622
27687
  ...entry.skipFinalSnapshot === true && { skipFinalSnapshot: true },
27623
27688
  ...input.removeProtection === true && { removeProtection: true },
@@ -27630,10 +27695,7 @@ async function deleteSupersededEntry(entry, input) {
27630
27695
  });
27631
27696
  result = input.once === true ? await send() : await retryWhileInUse(send, input.stop);
27632
27697
  } catch (error) {
27633
- return {
27634
- kind: "failed",
27635
- error
27636
- };
27698
+ return failed(error);
27637
27699
  }
27638
27700
  reportDeleteGuards(result, {
27639
27701
  physicalId: record.physicalId,
@@ -27670,7 +27732,7 @@ async function retryWhileInUse(send, stop) {
27670
27732
  for (let attempt = 1;; attempt++) try {
27671
27733
  return await send();
27672
27734
  } catch (error) {
27673
- if (attempt >= supersededInUseRetry.attempts || stop() || !isInUseRefusal(error)) throw error;
27735
+ if (attempt >= supersededInUseRetry.attempts || stop() || !isInUseRefusal(error) || isMarkedNonRetryable(error)) throw error;
27674
27736
  await new Promise((resolve) => setTimeout(resolve, supersededInUseRetry.delayMs));
27675
27737
  if (stop()) throw error;
27676
27738
  }
@@ -27780,6 +27842,11 @@ async function deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType,
27780
27842
  return;
27781
27843
  }
27782
27844
  if (!isRetry) deps.logger.info(safeMsg` Deleting old ${logicalId} (${displayPhysicalId(currentResource.resourceType, currentResource.physicalId)})...`);
27845
+ let sentSnapshotIdentifier = finalSnapshotIdentifier;
27846
+ if (owesPreDeleteSnapshot(oldResourceType, finalSnapshotIdentifier)) {
27847
+ if (!await takeOwedSnapshot(run, deps, logicalId, currentResource, secrets, isRetry)) return;
27848
+ sentSnapshotIdentifier = void 0;
27849
+ }
27783
27850
  let deleteResult = void 0;
27784
27851
  let deleteFailed = false;
27785
27852
  const inlinePolicyClaimed = isStandaloneInlinePolicyType(oldResourceType) ? deps.inlinePolicyClaimedFor(oldResourceType, logicalId, deps.deployStateResources()) : void 0;
@@ -27787,7 +27854,7 @@ async function deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType,
27787
27854
  const sendDelete = () => deleteProvider.delete(logicalId, currentResource.physicalId, oldResourceType, deleteProperties, {
27788
27855
  expectedRegion: deps.stackRegion,
27789
27856
  forceDataDelete: deps.options.forceStatefulRecreation === true,
27790
- ...finalSnapshotIdentifier !== void 0 && { finalSnapshotIdentifier },
27857
+ ...sentSnapshotIdentifier !== void 0 && { finalSnapshotIdentifier: sentSnapshotIdentifier },
27791
27858
  ...replacementDeleteContext(deps, updateReplacePolicy),
27792
27859
  recordedAttributes: currentResource.attributes,
27793
27860
  recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
@@ -27807,7 +27874,7 @@ async function deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType,
27807
27874
  deps.logger.info(safeMsg` Could not delete old ${logicalId} (${currentResource.physicalId}) yet: ${deleteMsg}. Retrying after the rest of the deploy.`);
27808
27875
  recordSupersededForDeferral(run, deps, logicalId, currentResource, {
27809
27876
  updateReplacePolicy,
27810
- finalSnapshotIdentifier,
27877
+ finalSnapshotIdentifier: sentSnapshotIdentifier,
27811
27878
  noEchoDeleteValues,
27812
27879
  inlinePolicyClaimed
27813
27880
  });
@@ -27817,7 +27884,7 @@ async function deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType,
27817
27884
  provisionedBy: deleteProvisionedBy,
27818
27885
  failureMessage: deleteMsg,
27819
27886
  ...currentResource.dependencies !== void 0 && { dependencies: currentResource.dependencies },
27820
- retry: () => deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType, currentResource, deleteProvider, deleteProperties, finalSnapshotIdentifier, updateReplacePolicy, secrets, deleteProvisionedBy, noEchoDeleteValues, true)
27887
+ retry: () => deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType, currentResource, deleteProvider, deleteProperties, sentSnapshotIdentifier, updateReplacePolicy, secrets, deleteProvisionedBy, noEchoDeleteValues, true)
27821
27888
  });
27822
27889
  return;
27823
27890
  }
@@ -27844,24 +27911,59 @@ async function deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType,
27844
27911
  deps.logger.info(isRetry ? safeMsg` ${green("✓")} Old ${logicalId} (${currentResource.physicalId}) deleted` : safeMsg` ${green("✓")} Old resource deleted`);
27845
27912
  }
27846
27913
  }
27914
+ async function takeOwedSnapshot(run, deps, logicalId, oldResource, secrets, isRetry) {
27915
+ const recorded = isRetry ? run.supersededEntries.get(logicalId) : void 0;
27916
+ const tracking = () => recorded !== void 0 ? "kept" : oldIdHeldByAnotherRecord(deps, logicalId, oldResource) ? "held" : "untracked";
27917
+ if (isRetry && deps.interrupted()) {
27918
+ deps.logger.warn(safeMsg` ⚠ Old ${logicalId} (${oldResource.physicalId}) was not deleted: the deploy was interrupted before its final snapshot (UpdateReplacePolicy: Snapshot). ` + (tracking() === "kept" ? safeMsg`${SUPERSEDED_KEPT_REMEDY}.` : tracking() === "held" ? "Another resource of this stack records the same physical id." : "Delete it manually once you have a snapshot; it is no longer tracked in state."));
27919
+ return false;
27920
+ }
27921
+ const snapshotMask = createUnionSecretMasker([secrets, secretNameBagFor(deps.secretsRun(), logicalId)]);
27922
+ try {
27923
+ await takePreDeleteSnapshot(deps, logicalId, oldResource.resourceType, oldResource.physicalId, snapshotMask, {
27924
+ refuseUnsnapshottableState: true,
27925
+ reuseStartedAtOrAfter: reuseBound(recorded),
27926
+ ...isRetry && { stop: () => deps.interrupted() }
27927
+ });
27928
+ } catch (snapshotError) {
27929
+ if (!isRetry) run.replacedOldMaySurvive.set(logicalId, "kept");
27930
+ deps.logger.warn(safeMsg` ⚠ Final snapshot for old ${logicalId} (${oldResource.physicalId}) ` + safeMsg`failed: ${asIsMessage(snapshotMask(describeAwsFailure(snapshotError).detail))}. ` + `The old resource was NOT deleted (UpdateReplacePolicy: Snapshot). ` + (tracking() === "kept" ? safeMsg`${SUPERSEDED_KEPT_REMEDY}.` : tracking() === "held" ? "Another resource of this stack records the same physical id." : "Delete it manually once you have a snapshot; it is no longer tracked in state."));
27931
+ return false;
27932
+ }
27933
+ if (recorded?.finalSnapshotIdentifier !== void 0 && run.supersededHost !== void 0) {
27934
+ const { finalSnapshotIdentifier: _taken, ...taken } = recorded;
27935
+ addSuperseded(run.supersededHost, taken);
27936
+ run.supersededEntries.set(logicalId, taken);
27937
+ }
27938
+ return true;
27939
+ }
27940
+ function reuseBound(recorded) {
27941
+ return recorded !== void 0 && Number.isFinite(recorded.supersededAt) ? recorded.supersededAt : Date.now();
27942
+ }
27847
27943
  function deferToCleanupPhase(run, deps, logicalId, oldResource, updateReplacePolicy, context) {
27848
27944
  if (run.deferredReplacedDeletes === void 0) return false;
27849
- if (updateReplacePolicy === "Snapshot" && deps.options.skipFinalSnapshot !== true) return false;
27850
- if (isStandaloneInlinePolicyType(oldResource.resourceType)) return false;
27945
+ if (updateReplacePolicy === "Snapshot" && deps.options.skipFinalSnapshot !== true && !ATOMIC_FINAL_SNAPSHOT_TYPES.has(oldResource.resourceType) && !owesPreDeleteSnapshot(oldResource.resourceType, context.finalSnapshotIdentifier)) return false;
27946
+ if (isInlinePolicyType(oldResource.resourceType)) return false;
27947
+ if (oldIdHeldByAnotherRecord(deps, logicalId, oldResource)) return false;
27851
27948
  recordSupersededForDeferral(run, deps, logicalId, oldResource, {
27852
27949
  updateReplacePolicy,
27853
27950
  finalSnapshotIdentifier: context.finalSnapshotIdentifier,
27854
27951
  noEchoDeleteValues: context.noEchoDeleteValues,
27855
27952
  inlinePolicyClaimed: void 0
27856
27953
  });
27857
- return run.supersededEntries.get(logicalId)?.state === oldResource;
27954
+ if (run.supersededEntries.get(logicalId)?.state === oldResource) return true;
27955
+ return deleteNeedsThisRunsNoEchoValues(oldResource, context.noEchoDeleteValues);
27956
+ }
27957
+ function oldIdHeldByAnotherRecord(deps, logicalId, oldResource) {
27958
+ return Object.entries(deps.deployStateResources()).some(([id, record]) => id !== logicalId && record?.physicalId === oldResource.physicalId);
27858
27959
  }
27859
27960
  function recordSupersededForDeferral(run, deps, logicalId, oldResource, context) {
27860
27961
  const host = run.supersededHost;
27861
27962
  if (host === void 0 || !canRecordSuperseded(oldResource, {
27862
27963
  noEchoDeleteValues: context.noEchoDeleteValues,
27863
- inlinePolicyClaimed: context.inlinePolicyClaimed
27864
- }) || Object.entries(deps.deployStateResources()).some(([id, record]) => id !== logicalId && record?.physicalId === oldResource.physicalId)) return;
27964
+ inlinePolicyClaimed: context.inlinePolicyClaimed,
27965
+ persistedRecord: true
27966
+ }) || oldIdHeldByAnotherRecord(deps, logicalId, oldResource)) return;
27865
27967
  const entry = {
27866
27968
  logicalId,
27867
27969
  supersededAt: Date.now(),
@@ -27879,7 +27981,7 @@ function recordSupersededForDeferral(run, deps, logicalId, oldResource, context)
27879
27981
  async function createFirstThenDeleteOld(run, deps, input) {
27880
27982
  const { logicalId, resourceType, currentResource, secrets } = input;
27881
27983
  const retainOld = input.retainOld === true;
27882
- const finalSnapshotIdentifier = retainOld ? void 0 : await prepareFinalSnapshotForDelete(deps, logicalId, input.oldResourceType, currentResource, input.snapshotPolicy, createUnionSecretMasker([secrets, secretNameBagFor(deps.secretsRun(), logicalId)]));
27984
+ const finalSnapshotIdentifier = retainOld ? void 0 : await prepareCreateFirstFinalSnapshot(deps, logicalId, input.oldResourceType, currentResource, input.snapshotPolicy, createUnionSecretMasker([secrets, secretNameBagFor(deps.secretsRun(), logicalId)]));
27883
27985
  deps.logger.info(retainOld ? safeMsg` ${logicalId}'s new name differs from the one the old resource holds — creating the new resource (the old one is retained)...` : safeMsg` ${logicalId}'s new name differs from the one the old resource holds — creating the new resource before deleting the old one...`);
27884
27986
  const maskName = maskRewrittenSentName(resourceType, input.createProps, logicalId, (text) => maskSecretsInText(text, secrets));
27885
27987
  let createResult;
@@ -28013,7 +28115,10 @@ async function retryDeferredReplacedDeletes(run, deps, stackName, counts) {
28013
28115
  };
28014
28116
  const pending = new Map(deferred);
28015
28117
  while (pending.size > 0) {
28016
- if (deps.interrupted()) break;
28118
+ if (deps.interrupted()) {
28119
+ warnUnsentUntracked(run, deps, pending);
28120
+ break;
28121
+ }
28017
28122
  const dependedOn = /* @__PURE__ */ new Set();
28018
28123
  for (const [logicalId, entry] of pending) for (const dep of entry.dependencies ?? []) if (dep !== logicalId && pending.has(dep)) dependedOn.add(dep);
28019
28124
  const wave = [...pending].filter(([logicalId]) => !dependedOn.has(logicalId));
@@ -28025,12 +28130,18 @@ async function retryDeferredReplacedDeletes(run, deps, stackName, counts) {
28025
28130
  }));
28026
28131
  }
28027
28132
  }
28133
+ function warnUnsentUntracked(run, deps, pending) {
28134
+ for (const [logicalId, entry] of pending) {
28135
+ if (run.supersededEntries.has(logicalId)) continue;
28136
+ withPrintingSecrets(secretNameBagFor(deps.secretsRun(), logicalId), () => deps.logger.warn(safeMsg` ⚠ Old ${logicalId} (${entry.physicalId}) was not deleted: the deploy was interrupted. It is no longer tracked in state, so delete it manually`));
28137
+ }
28138
+ }
28028
28139
  function warnUnretriedReplacedDeletes(run, deps, why) {
28029
28140
  const deferred = run.deferredReplacedDeletes;
28030
28141
  run.deferredReplacedDeletes = void 0;
28031
28142
  const cause = why === "failed" ? "the deploy failed first" : why === "interrupted" ? "the deploy was interrupted" : "its nested stack's cleanup could not run";
28032
28143
  const noteFor = (logicalId) => run.supersededEntries.has(logicalId) ? `not retried: ${cause}; cdkd keeps it in state, and the next deploy retries the delete` : `not retried: ${cause}; it is no longer tracked in state, so delete it manually`;
28033
- for (const [logicalId, entry] of deferred ?? []) withPrintingSecrets(secretNameBagFor(deps.secretsRun(), logicalId), () => why === "cleanup-failed" && entry.failureMessage === void 0 ? deps.logger.warn(safeMsg` ⚠ Old ${logicalId} (${entry.physicalId}) was not deleted: ${cause}. ${run.supersededEntries.has(logicalId) ? "cdkd keeps it in state, and the next deploy deletes it" : "It is no longer tracked in state, so delete it manually"}`) : entry.cleanupPhase === true ? deps.logger.info(safeMsg` Old ${logicalId} (${entry.physicalId}) was not deleted: ${cause}. A rollback of the deploy adopts it again; otherwise ${run.supersededEntries.has(logicalId) ? "cdkd keeps it in state, and the next deploy deletes it" : "it is no longer tracked in state, so delete it manually"}`) : deps.logger.warn(entry.failureMessage === void 0 ? safeMsg` ⚠ The old physical id of ${logicalId} (${entry.physicalId}) was not sent its Delete: ${cause}. A rollback sends the new id an Update with the old properties, and this id is tracked again if the handler answers it; otherwise ${run.supersededEntries.has(logicalId) ? "cdkd keeps it in state, and the next deploy sends the Delete" : "it is no longer tracked in state, so delete it manually"}` : safeMsg` ⚠ Failed to delete old resource ${logicalId} (${entry.physicalId}): ${entry.failureMessage} (${noteFor(logicalId)})`));
28144
+ for (const [logicalId, entry] of deferred ?? []) withPrintingSecrets(secretNameBagFor(deps.secretsRun(), logicalId), () => why === "cleanup-failed" && entry.failureMessage === void 0 ? deps.logger.warn(safeMsg` ⚠ Old ${logicalId} (${entry.physicalId}) was not deleted: ${cause}. ${run.supersededEntries.has(logicalId) ? "cdkd keeps it in state, and the next deploy deletes it" : "It is no longer tracked in state, so delete it manually"}`) : entry.cleanupPhase === true ? run.supersededEntries.has(logicalId) ? deps.logger.info(safeMsg` Old ${logicalId} (${entry.physicalId}) was not deleted: ${cause}. A rollback of the deploy adopts it again; otherwise cdkd keeps it in state, and the next deploy deletes it`) : deps.logger.warn(safeMsg` ⚠ Old ${logicalId} (${entry.physicalId}) was not deleted: ${cause}. A rollback of the deploy adopts it again; otherwise it is no longer tracked in state, so delete it manually`) : deps.logger.warn(entry.failureMessage === void 0 ? safeMsg` ⚠ The old physical id of ${logicalId} (${entry.physicalId}) was not sent its Delete: ${cause}. A rollback sends the new id an Update with the old properties, and this id is tracked again if the handler answers it; otherwise ${run.supersededEntries.has(logicalId) ? "cdkd keeps it in state, and the next deploy sends the Delete" : "it is no longer tracked in state, so delete it manually"}` : safeMsg` ⚠ Failed to delete old resource ${logicalId} (${entry.physicalId}): ${entry.failureMessage} (${noteFor(logicalId)})`));
28034
28145
  }
28035
28146
 
28036
28147
  // src/deployment/masking-retry-logger.ts
@@ -38538,7 +38649,14 @@ async function retryCarriedSupersededResources(engine, host, carried, resources,
38538
38649
  region: engine.stackRegion,
38539
38650
  maskSecrets: createSecretMasker(bag),
38540
38651
  stop: () => engine.interrupted,
38541
- once: options.waitInUse !== true
38652
+ once: options.waitInUse !== true,
38653
+ preDeleteSnapshot: {
38654
+ clients: engine.options.finalSnapshotClients ?? getAwsClients(),
38655
+ logger: {
38656
+ info: (message) => engine.logger.info(maskSecretsInText(message, bag)),
38657
+ debug: (message) => engine.logger.debug(maskSecretsInText(message, bag))
38658
+ }
38659
+ }
38542
38660
  });
38543
38661
  } catch (error) {
38544
38662
  outcome = {
@@ -38547,6 +38665,10 @@ async function retryCarriedSupersededResources(engine, host, carried, resources,
38547
38665
  };
38548
38666
  }
38549
38667
  if (outcome.kind === "failed") {
38668
+ if (outcome.replacement !== void 0) {
38669
+ addSuperseded(host, outcome.replacement);
38670
+ changed = true;
38671
+ }
38550
38672
  const detail = maskSecretsInText(describeAwsFailure(outcome.error).detail, bag);
38551
38673
  engine.logger.warn(safeMsg` ⚠ Failed to delete old resource ${logicalId} (${physicalId}): ${detail}. ${SUPERSEDED_KEPT_REMEDY}.`);
38552
38674
  return;
@@ -38627,11 +38749,14 @@ async function runQueuedNestedCleanup(engine, stackName, host, pass, context) {
38627
38749
  const persisted = supersededResourcesOf(fresh.state);
38628
38750
  const stillOwed = (entry) => persisted.some((row) => sameSuperseded(row, entry)) && !isSupersededHeld(entry, read.state.resources);
38629
38751
  const run = engine.replacementRun;
38630
- for (const [logicalId] of run.deferredReplacedDeletes ?? []) {
38752
+ for (const [logicalId, entry] of run.deferredReplacedDeletes ?? []) {
38631
38753
  const recorded = run.supersededEntries.get(logicalId);
38632
38754
  if (recorded !== void 0 && !stillOwed(recorded)) {
38633
38755
  run.deferredReplacedDeletes?.delete(logicalId);
38634
38756
  engine.logger.debug(safeMsg`Old ${logicalId} of nested stack ${display} is no longer awaiting its delete; not deleting it`);
38757
+ } else if (recorded === void 0 && Object.values(read.state.resources).some((record) => typeof record === "object" && record !== null && record.physicalId === entry.physicalId)) {
38758
+ run.deferredReplacedDeletes?.delete(logicalId);
38759
+ engine.logger.warn(safeMsg` ⚠ Old ${logicalId} of nested stack ${display} (${entry.physicalId}) was not deleted: a record of that stack names its physical id again, and cdkd never deletes an id a record names`);
38635
38760
  }
38636
38761
  }
38637
38762
  const before = supersededResourcesOf(host);
@@ -38640,9 +38765,10 @@ async function runQueuedNestedCleanup(engine, stackName, host, pass, context) {
38640
38765
  updatePartial: 0
38641
38766
  };
38642
38767
  await pass(stillOwed, counts);
38643
- const remaining = new Set(Array.isArray(host.supersededResources) ? host.supersededResources : []);
38644
- const dropped = before.filter((entry) => !remaining.has(entry));
38645
- const unrecorded = dropped.length > 0 ? await persistDropped(engine, stackName, read, dropped) : 0;
38768
+ const after = supersededResourcesOf(host);
38769
+ const dropped = before.filter((entry) => !after.some((row) => sameSuperseded(row, entry)));
38770
+ const replaced = after.filter((row) => !before.includes(row) && before.some((entry) => sameSuperseded(row, entry)));
38771
+ const unrecorded = dropped.length > 0 || replaced.length > 0 ? await persistDropped(engine, stackName, read, dropped, replaced) : 0;
38646
38772
  return { updatePartial: counts.updatePartial + unrecorded };
38647
38773
  } finally {
38648
38774
  try {
@@ -38659,14 +38785,22 @@ function sameSuperseded(row, entry) {
38659
38785
  return row.logicalId === entry.logicalId && row.state.physicalId === entry.state.physicalId && row.state.resourceType === entry.state.resourceType;
38660
38786
  }
38661
38787
  const PERSIST_DROPPED_ATTEMPTS = 4;
38662
- async function persistDropped(engine, stackName, fresh, dropped) {
38788
+ async function persistDropped(engine, stackName, fresh, dropped, replaced = []) {
38663
38789
  const region = engine.stackRegion;
38664
38790
  let current = fresh;
38665
38791
  for (let attempt = 1;; attempt++) {
38666
38792
  const rows = current.state.supersededResources;
38667
38793
  if (!Array.isArray(rows)) return 0;
38668
- const kept = rows.filter((row) => !isSupersededResourceRecord(row) || !dropped.some((entry) => sameSuperseded(row, entry)));
38669
- if (kept.length === rows.length) return 0;
38794
+ let changed = false;
38795
+ const kept = rows.filter((row) => !isSupersededResourceRecord(row) || !dropped.some((entry) => sameSuperseded(row, entry))).map((row) => {
38796
+ if (!isSupersededResourceRecord(row)) return row;
38797
+ const replacement = replaced.find((entry) => sameSuperseded(row, entry));
38798
+ if (replacement === void 0 || replacement.finalSnapshotIdentifier !== void 0 || row.finalSnapshotIdentifier === void 0) return row;
38799
+ changed = true;
38800
+ const { finalSnapshotIdentifier: _taken, ...rest } = row;
38801
+ return rest;
38802
+ });
38803
+ if (kept.length === rows.length && !changed) return 0;
38670
38804
  const { supersededResources: _rows, ...rest } = current.state;
38671
38805
  const next = {
38672
38806
  ...rest,
@@ -46712,7 +46846,7 @@ async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResour
46712
46846
  let cleanupFinalSnapshotId;
46713
46847
  let snapshotBlockedDelete = false;
46714
46848
  try {
46715
- cleanupFinalSnapshotId = await prepareFinalSnapshotForDelete(engine.replacementDeps(), logicalId, oldResourceType, currentResource, updateReplacePolicy, createUnionSecretMasker([updateSecrets, secretNameBagFor(engine.secretsRun, logicalId)]));
46849
+ cleanupFinalSnapshotId = await prepareCreateFirstFinalSnapshot(engine.replacementDeps(), logicalId, oldResourceType, currentResource, updateReplacePolicy, createUnionSecretMasker([updateSecrets, secretNameBagFor(engine.secretsRun, logicalId)]));
46716
46850
  } catch (snapshotError) {
46717
46851
  if (snapshotError instanceof CdkdError && snapshotError.code === "FINAL_SNAPSHOT_UNSUPPORTED") throw snapshotError;
46718
46852
  snapshotBlockedDelete = true;
@@ -50846,4 +50980,4 @@ var DeployEngine = class {
50846
50980
  };
50847
50981
 
50848
50982
  export { planVectorIndexUpdates as $, stackIdTailOf as $a, S3StateBackend as $c, ATOMIC_FINAL_SNAPSHOT_TYPES as $i, getBootstrapMarkerKey as $l, sgProtocolKey as $n, keepsSecretReferenceToken as $o, displayTextOrWithheld as $r, unreadableResourceEntries as $s, displacedOpClause as $t, recordedProtectionEvidence as A, customResourceStackName as Aa, refuseMalformedResourcesForDestroy as Ac, cyan as Ai, synthesizedStacks as Al, constructPathOf as An, isUnboundTemplateParameter as Ao, withPreviousPolicies as Ar, malformedOrphanRecordsRefusalMessage as As, hasCdkAutoDeleteTag as At, declaredStreamTagsMember as B, resolvedResourceTimeoutMs as Ba, hasReadableOutputs as Bc, createReadOnlyAttributeHealerFactory as Bi, rewriteTemplateAssetReferences as Bl, changedReferenceReason as Bn, promoteInPlaceAttributeDependents as Bo, nameGenerationHighWaterOf as Br, isReadableResourceEntry as Bs, updateRefactorMarker as Bt, pendingMovesOutOf as C, responsePresignClient as Ca, repairMalformedOutputsForReadOnly as Cc, isSupersededResourceRecord as Ci, SSM_PARAMETER_VALUE_PREFIX as Cl, crossStackReadsForPartialSave as Cn, regionLessSecretName as Co, planFailedOps as Cr, parameterInputsFor as Cs, TABLE_INDEX_NOUN as Ct, findServiceTokenRefusals as D, getCurrentResourceSecrets as Da, malformedResourcesWarning as Dc, supersededResourcesOf as Di, purgeNoncurrentKeyVersions as Dl, noEchoMacParametersOf as Dn, s3BucketRegionalDomainName as Do, IMPLICIT_DELETE_DEPENDENCIES as Dr, maskedPropertyFingerprint as Ds, waitForIndexesSettled as Dt, deferredServiceTokenWarning as E, isCustomResourceType as Ea, malformedRenderedContainersWarning as Ec, supersededHolderOf as Ei, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as El, noEchoMacBinding as En, s3BucketDualStackDomainName as Eo, replacementNeverSwapped as Er, declaresNoEcho as Es, relayedIndexBusyDelete as Et, readProtection as F, setLocalCustomResourceRuntimeEnabled as Fa, accountArgs as Fc, noEchoAttributeNamesOf as Fi, isDefaultBootstrapBucketName as Fl, movedToHint as Fn, refStateLookupFromResource as Fo, redactedDeleteAddressSkip as Fr, refuseMalformedOrphanRecordsForDestroy as Fs, readRefactorMarkerOnce as Ft, streamMemberRefusals as G, deleteLeftInPlace as Ga, unwrittenCreateOnlyReplacement as Gc, orphanRecordsPrintingBag as Gi, resolveFileAssetSourcePath as Gl, parseMappingFile as Gn, recordedReferenceRegions as Go, withNameGenerationReached as Gr, refuseMalformedResourceAttributesForOrphan as Gs, formatResourceLine as Gt, reverseMapStreamPolicy as H, RollbackInlinePolicyWriters as Ha, findActionableSdkUnwired as Hc, journaledOrphanPrintingBag as Hi, getDockerImageBySourceHash as Hl, isPairableType as Hn, outputReferenceProvenanceOf as Ho, retiredAfterRollback as Hr, malformedLocalResourcesWarning as Hs, readsOnlyNoEchoParameters as Ht, DynamoDBGlobalTableProvider as I, withCustomResourceStack as Ia, withheldAccountClause as Ic, noEchoComparisonForTemplate as Ii, isDefaultBootstrapRepoName as Il, rollbackOrphanIds as In, lacksRecordedRefArn as Io, segmentCleanupOptions as Ir, refuseMalformedOrphansForOrphan as Is, refactorMarkerMovesOf as It, isTtlAlreadyDisabled as J, isWaitAbandonedError as Ja, withoutUnwrittenSdkUnwiredProperties as Jc, secretNamedAttributeNamesOf as Ji, AssetModeResolver as Jl, referencedLogicalIds as Jn, getAccountInfo as Jo, computeParameterTaint as Jr, refuseMalformedResourceEntriesForDestroy as Js, lookupEachName as Jt, streamPolicyMatchesDeclared as K, deleteSkipReason as Ka, withoutAcceptedSdkUnwiredProperties as Kc, secretNamePrintingBag as Ki, warnAbsoluteAssetPath as Kl, propertiesChangedReason as Kn, referenceProvenanceOf as Ko, getCurrentProducerRegions as Kr, refuseMalformedResourceEntries as Ks, chunks as Kt, STREAM_POLICY_KEY as L, waitForLambdaFunctionActive as La, STATE_RESOURCES_MALFORMED as Lc, noEchoExactEchoLeavesOf as Li, loadPublishableAssetManifest as Ll, withMovedTo as Ln, lacksRecordedTableArn as Lo, removeProtectionTypeList as Lr, repairMalformedOrphanRecordsForReadOnly as Ls, refactorMarkerRefusalMessage as Lt, PROTECTION_PROPERTY_BY_TYPE as M, customResourcesRunWithoutApp as Ma, refuseMalformedState as Mc, green as Mi, createAssetRedirectResolver as Ml, formatDestructiveChange as Mn, AWS_NO_VALUE as Mo, REDACTED_DELETE_ADDRESS_SKIP_REASON as Mr, malformedOrphanRowsKeptWarning as Ms, keptForRetainedRecord as Mt, isProtectionValueActive as N, localCustomResourceCommand as Na, repairMalformedResourcesForReadOnly as Nc, red as Ni, createLazyAssetModeContext as Nl, findRefactorHints as Nn, cfnRefValueFromPhysicalId as No, isRedactedRecordedValue as Nr, previewableOrphanRecords as Ns, recordRetainedForReadoption as Nt, serviceTokenBlockingReason as O, withPrintingSecrets as Oa, malformedStateRefusalMessage as Oc, withoutSuperseded as Oi, decodeListingKey as Ol, noEchoMacVerdict as On, s3BucketWebsiteUrl as Oo, computeImplicitDeleteEdges as Or, deployRefusesOrphanRowsReason as Os, ECR_AUTO_DELETE_IMAGES_TAG as Ot, perType as P, localCustomResourceRuntimeActive as Pa, JSON_LISTING_HOLE_VALUE as Pc, yellow as Pi, flattenAssetPlaceholders as Pl, hintSidesOf as Pn, isStalePlaceholderArnAttribute as Po, redactedDeleteAddressFields as Pr, refuseMalformedOrphanRecords as Ps, readRefactorMarker as Pt, sendTtlWaitingOutRateLimit as Q, poisonRenderedSpellingsCollidingIn as Qa, TemplateParser as Qc, extractDeploymentEventError as Qi, isCrossRegionRedirect as Ql, cfnIngressPortValue as Qn, carriesDynamicReference as Qo, WITHHELD_NAME_DISPLAY as Qr, repairMalformedResourceEntriesForReadOnly as Qs, NESTED_PENDING_PARENT_REASON as Qt, STREAM_TAGS_KEY as R, CloudControlProvider as Ra, UNREADABLE_RESOURCES_MAP_ROW as Rc, noEchoParameterNamesOf as Ri, redirectDockerAsset as Rl, changedReferenceInDiff as Rn, parseWebACLArn as Ro, orphanNeedsIdentity as Rr, unpreviewableOrphanRecords as Rs, refuseRefactorMarker as Rt, hasPendingMovesOut as S, customResourceResponseExpirationWarning as Sa, refuseMalformedOutputsForDestroy as Sc, holdsSupersededResources as Si, templateIdentity as Sl, DeploymentEventsStore as Sn, producerRegionsFromState as So, isReplacementOrphan as Sr, movedMaskedProperties as Ss, INDEX_SETTLE_POLL_INTERVAL_MS as St, refusePendingMovesOut as T, readsNoEchoDeleteValues as Ta, refuseDivergentRecordRegionForDestroy as Tc, supersededHeldByOtherTypeWarning as Ti, ssmResolvedValueType as Tl, createNoEchoValueMacs as Tn, s3BucketDomainName as To, recordUnderIdIsNotOwn as Tr, passedParameterClassesOf as Ts, maskedLogger as Tt, streamDeclaresPolicy as U, UNSPECIFIED_SKIP_REASON as Ua, findHandledUnwrittenCreateOnly as Uc, maskEventTextWithBoundBags as Ui, isCfnTemplateAssetPath as Ul, looselyEqual as Un, recordedOutputReferenceRegions as Uo, retiredNameGenerationsAfter as Ur, malformedResourceEntriesWarning as Us, getPriorAttempts as Ut, planStreamMemberOps as V, setResolvedResourceTimeouts as Va, hasReadableResources as Vc, completedReplayEntries as Vi, AssetManifestLoader as Vl, differingRemedy as Vn, keepHeldTokenProvenance as Vo, nameScopeOf as Vr, malformedLocalResourceEntriesWarning as Vs, macWriteOnlyKeys as Vt, streamDeclaresTags as W, deleteIndeterminateGuards as Wa, findSdkUnwiredProperties as Wc, namingSecretsWithRecordedNoEcho as Wi, parseAssetManifestBody as Wl, mappingPairs as Wn, recordedProvenanceOf as Wo, retiredNameGenerationsLeaving as Wr, malformedScrubResourceEntriesRefusalMessage as Ws, markRefusedBeforeApplying as Wt, planTimeToLive as X, isSelectOutOfBounds as Xa, hasNoCloudControlHandlers as Xc, stateSecretNameNeedles as Xi, buildDenyExternalAccessPolicy as Xl, stripSiblingOwnedSgRules as Xn, carriesFetchableDynamicReference as Xo, reachableDivergentParameters as Xr, refuseMalformedResourceEntriesForImportSave as Xs, pendingRequestCount as Xt, isTtlRateLimited as Y, IntrinsicFunctionResolver as Ya, NO_CC_HANDLERS_REASON as Yc, secretNamedRecordNeedles as Yi, ensureAssetStorage as Yl, siblingOwnedSgRuleIdentities as Yn, isImpossibleEmptyStoredAttribute as Yo, namesAnyDeclaredParameter as Yr, refuseMalformedResourceEntriesForImport as Ys, withApiLimit as Yt, readTtlSpec as Z, isAlwaysLiveAttribute as Za, PROPERTY_COVERAGE_BY_TYPE as Zc, storedSecretNameNeedles as Zi, assertAssetBucketRegion as Zl, withoutSiblingOwnedSgRules as Zn, isNamelessDynamicReferenceError as Zo, resourcesNamingDeclaredParameter as Zr, refuseMalformedResourceEntriesForOrphan as Zs, resolvePendingCloudControlRequests as Zt, conditionFingerprint as _, ccBrokenReason as _a, malformedLocalOutputsWarning as _c, destroyStackRecordsView as _i, missingStateBucketRemedy as _l, sameJournaledOrphans as _n, applyCallerIdentityCredentials as _o, acquireIdempotencyToken as _r, toCfnInteger as _s, compensateRemovedDeletionProtection as _t, renderAssemblyPathEscape as _u, scanActiveConsumers as a, refusesFinalSnapshot as aa, refuseMalformedResourcePropertiesForExport as ac, exportNameNoEchoParameters as ai, rebuildClientForBucketRegion as al, revertNestedChildFromJournal as an, withSecretPhysicalIdsMaskedInState as ao, settleUnsettledPrevious as ar, replacementSidesForLog as as, contributorInsightsRefusals as at, getCdkdAssetBucketName as au, readRecordedConditionVerdicts as b, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as ba, refuseMalformedNestedChildOutputs as bc, replacedDeleteFailureVerdict as bi, listNestedTemplateRows as bl, planOrphanAdoption as bn, classifyRecordedSecretRegion as bo, demoteSupersededOrphans as br, inputFingerprinter as bs, resolveDynamoDbDeleteBudgetMs as bt, resolveBucketRegion as bu, nestedSsmNameDeferredNote as c, buildFinalSnapshotIdentifier as ca, UNREADABLE_ORPHANS_CONTAINER_ROW as cc, noEchoParameterValueSeed as ci, applyCrossPrefixScan as cl, collectNestedChildUnaddressed as cn, refuseUnreadableCdkCrossAccountRefs as co, equalModuloMarkedMask as cr, isPlainReferenceTo as cs, planIndexContributorInsightsOps as ct, hasOwnKey as cu, slashedSsmNameHealAdoptedNote as d, collectPrincipalsAttachingPolicy as da, malformedOrphansWarning as dc, isExportAliasCollision as di, isNotImplemented as dl, deleteJournaledOrphans as dn, assertSendableRoleArn as do, updatePartialMessage as dr, isStatefulRecreateTargetForReplace as ds, reverseMapTableContributorInsights as dt, ownValue as du, PRE_DELETE_SNAPSHOT_TYPES as ea, malformedDriftResourcePropertiesWarning as ec, exportAliasCollisionScrubWarning as ei, splitImportedOps as el, displacedPhysicalIdShown as en, isSettledInstanceState as eo, canonicalizeIpProtocolValue as er, withSharedDrainBudget as es, readbackVectorIndexes as et, parseBootstrapMarker as eu, slashedSsmNameHealNote as f, stripSiblingOwnedMembers as fa, refuseMalformedOrphans as fc, bindingSkippedOutputs as fi, stackInstanceIdOf as fl, dropFailedCommands as fn, explicitRoleArnOrThrow as fo, updatePartialReason as fr, isStatefulRecreateTargetSync as fs, stripIndexContributorInsights as ft, absoluteAssemblyPathEscape as fu, makeCanonicalizePropertiesFn as g, ProviderRegistry as ga, malformedExportSourceWarning as gc, awaitInFlightSibling as gi, stringifyValue as gl, loadJournaledOrphans as gn, AWS_CREDENTIAL_ENV_KEYS as go, withCreateTokenLedger as gr, isWarmThroughputDecrease as gs, beginDeleteWait as gt, namesTheSameDirectory as gu, inheritedProvenanceForChildDiff as h, CC_BROKEN_REASON as ha, malformedExportNamesWarning as hc, maskingRetryLogger as hi, isSensitiveAttributeName as hl, journaledOrphanLines as hn, sendableAssumeRoleCommand as ho, reserveStackCreateToken as hr, coerceWarmThroughput as hs, DYNAMODB_DELETE_POLL_COST_MS as ht, displayAssemblyPath as hu, mergeNoChangeOutputs as i, isFinalSnapshotError as ia, refuseMalformedResourcePropertiesForDrift as ic, carriedExportAliasExposure as ii, hasUnverifiableParameterRefusal as il, recordDisplacedSkips as in, secretSegmentsOfState as io, recordAfterRollbackUpdate as ir, markNewValueKnownAfterDeploy as is, CONTRIBUTOR_INSIGHTS_KEY as it, BOOTSTRAP_MARKER_PREFIX as iu, recordedProtectionNote as j, customResourcesFailedWithoutApp as ja, refuseMalformedResourcesForExport as jc, gray as ji, buildAssetRedirectMap as jl, findDestructiveChanges as jn, parameterTypeMayLoseSecretIdentity as jo, findNestedStackTypeChanges as jr, malformedOrphanRecordsWarning as js, isTruthyCfnBoolean as jt, diffSecurity as k, NO_LOCAL_CUSTOM_RESOURCES_FLAG as ka, refuseMalformedResourcesForDeploy as kc, bold as ki, rememberSynthesizedStacks as kl, noEchoValueMacsOf as kn, coerceParameterTypedValue as ko, resolveReplacementOldType as kr, isReadableOrphanRecord as ks, S3_AUTO_DELETE_OBJECTS_TAG as kt, nestedSsmNameRowNote as l, collectGroupsAddedBySiblings as la, hasReadableOrphans as lc, collectDeclaredOutputNames as li, crossPrefixDeniedWarning as ll, getCurrentNestedStackContext as ln, applyRoleArnIfSet as lo, equalModuloMask as lr, shownType as ls, readContributorInsightsSpec as lt, hasPlainPrototype as lu, crossStackOutputProvenanceSource as m, withoutSiblingOwned as ma, repairMalformedOrphansForReadOnly as mc, DEFAULT_RESOURCE_WARN_AFTER_MS as mi, isSecretValuedAttribute as ml, isHandledOrphan as mn, parseIamRoleArn as mo, ledgerForStack as mr, WARM_THROUGHPUT_MEMBERS as ms, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as mt, describeFileReadFailure as mu, isSecretBearingReferenceString as n, ccRoutedInstanceTakesNoSnapshot as na, refuseMalformedResourceProperties as nc, secretBearingStateKeyWarning as ni, readOnlyStateVersionOf as nl, getNestedRevertRun as nn, maskedSecretSegment as no, replayRollback as nr, INTRINSIC_KEYS as ns, vectorIndexesSettled as nt, validateAssetBucketName as nu, inRunStackKey as o, unsupportedFinalSnapshotError as oa, refuseMalformedResourcePropertiesForOrphan as oc, exportNameSecretExposure as oi, CrossPrefixReadError as ol, revertedNestedRowIds as on, resolveDynamicReferences as oo, withUnprovenUnsettled as or, siblingsOf as os, indexDeclaresContributorInsights as ot, getCdkdContainerRepoName as ou, slashedSsmNameHealPendingNote as p, withoutSiblingAttachedArns as pa, refuseMalformedOrphansForDestroy as pc, DEFAULT_RESOURCE_TIMEOUT_MS as pi, withStackInstanceIdWithheld as pl, dropFailedHint as pn, isIamRoleArn as po, earliestDefined as pr, renderStatefulReason as ps, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as pt, assemblyPathEscape as pu, streamTagsMatchDeclared as q, withIndeterminateGuard as qa, withoutSdkUnwiredProperties as qc, secretNamePrintingBags as qi, warnWholeAssemblyAsSource as ql, proposeRenames as qn, referenceTokensIn as qo, inheritProducerRegions as qr, refuseMalformedResourceEntriesForDeploy as qs, isAccessDeniedError as qt, keptWholeReasonText as r, effectiveDeletionPolicy as ra, refuseMalformedResourcePropertiesForDestroy as rc, secretSafeKeyDisplay as ri, hasReasonlessBaselineRefusal as rl, nestedChildStackName as rn, secretPhysicalIdSegment as ro, DELETED_RESOURCE_REMEDY as rr, containsIntrinsic as rs, vectorIndexesShapeDetail as rt, validateContainerRepoName as ru, checkNestedSsmNames as s, createPreDeleteFinalSnapshot as sa, repairMalformedResourcePropertiesForReadOnly as sc, isWholeDynamicReferenceValue as si, CrossPrefixScanCache as sl, withNestedRevertRun as sn, producerLookupOver as so, calculateResourceDrift as sr, findReplacedReadersOfRecreateTargets as ss, planContributorInsightsOp as st, defineOwnKey as su, DeployEngine as t, ccRoutedFinalSnapshotError as ta, malformedResourcePropertiesWarning as tc, secretBearing as ti, isKnownTokenFreeState as tl, dropSettledNestedJournals as tn, APPSYNC_APIKEY_ARN_RESOURCE_PATH as to, replayFailedOperations as tr, namesRecreatedParent as ts, vectorIndexesForCreate as tt, readBootstrapMarkerBody as tu, healSlashedSsmParameterNames as u, collectManagedPolicyArnsAttachedBySiblings as ua, malformedOrphansRefusalMessage as uc, collectPublishedOutputNames as ui, isAccessDenied$1 as ul, withNestedStackContext as un, assertFlagRoleArn as uo, undeclaredEmptyObservedKeys as ur, MULTI_REGION_RECREATE_BLOCKED_TYPES as us, reverseMapIndexContributorInsights as ut, nullPrototypeRecord as uu, conditionInputsFrom as v, isCustomResource as va, malformedOutputsRefusalMessage as vc, getStackRecords as vi, findNestedTemplateTreeDefect as vl, makeForeignHolderScan as vn, callerEnvCredentials as vo, planRollback as vr, toFiniteNumber as vs, deleteBudgetKey as vt, resolveAssemblyPath as vu, pendingMovesRefusalMessage as w, TemplateNoEchoReresolver as wa, STATE_REGION_DIVERGED as wc, supersededAfterRollback as wi, isListParameterType as wl, NOECHO_MAC_KEY_ALIAS as wn, s3BucketArn as wo, recheckFailedPlan as wr, maskedInputProof as ws, deleteTableWithIndexBusyRetry as wt, childTemplateLoader as x, applyCustomResourceResponseExpiration as xa, refuseMalformedOutputs as xc, deleteSupersededEntry as xi, renderNestedTemplateTreeDefect as xl, DeploymentEventsReader as xn, classifyReplaySecretRegion as xo, isJournaledOrphan as xr, maskedPropertyFingerprintsOf as xs, DELETE_INDEX_WAIT_PROCEED_NOTE as xt, parentSuppliedValues as y, wouldReturnToSdkProvider as ya, malformedOutputsWarning as yc, withStackRecords as yi, isAbsoluteAssetPath as yl, makeSiblingClaimReader as yn, envCredentialsAreAssumedRole as yo, seedsDeleteFirstGuard as yr, tryGetTopLevelWriteOnlyProperties as ys, resolveDynamoDbDeleteBudgetClock as yt, clearBucketRegionCache as yu, declaredStreamPolicyMember as z, waitForGoneAfterDelete as za, displayLogicalId as zc, withAttemptedItemsMasked as zi, redirectFileAsset as zl, changedReferencePath as zn, extractGetAttRefs as zo, nameGenerationCarriedFrom as zr, unreadableOrphanRecords as zs, sameMove as zt };
50849
- //# sourceMappingURL=deploy-engine-axD9sX_9.js.map
50983
+ //# sourceMappingURL=deploy-engine-BQVJRB0k.js.map