@cdkd/cli 0.350.4 → 0.351.0

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 (61) hide show
  1. package/dist/{ambient-client-defaults-CepgBr_y.js → ambient-client-defaults-BdOY70NL.js} +3 -3
  2. package/dist/{ambient-client-defaults-CepgBr_y.js.map → ambient-client-defaults-BdOY70NL.js.map} +1 -1
  3. package/dist/{asg-provider-26AfIhcd.js → asg-provider-BhktjcGM.js} +6 -6
  4. package/dist/{asg-provider-26AfIhcd.js.map → asg-provider-BhktjcGM.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-2Kfh-v8P.js → custom-resource-runtime-BkEa9HAa.js} +6 -6
  7. package/dist/{custom-resource-runtime-2Kfh-v8P.js.map → custom-resource-runtime-BkEa9HAa.js.map} +1 -1
  8. package/dist/db-associated-roles-DZ1mRuUA.js +74 -0
  9. package/dist/db-associated-roles-DZ1mRuUA.js.map +1 -0
  10. package/dist/delete-started-ByP_GmQ7.js +887 -0
  11. package/dist/delete-started-ByP_GmQ7.js.map +1 -0
  12. package/dist/{deploy-engine-DLmPF7r5.js → deploy-engine-BZNCiQ-B.js} +289 -91
  13. package/dist/deploy-engine-BZNCiQ-B.js.map +1 -0
  14. package/dist/{diff-calculator-DYUmMeew.js → diff-calculator-vaWjL6sQ.js} +12 -12
  15. package/dist/{diff-calculator-DYUmMeew.js.map → diff-calculator-vaWjL6sQ.js.map} +1 -1
  16. package/dist/{ec2-termination-protection-Di3eM8PN.js → ec2-termination-protection-DpNlPDar.js} +6 -6
  17. package/dist/{ec2-termination-protection-Di3eM8PN.js.map → ec2-termination-protection-DpNlPDar.js.map} +1 -1
  18. package/dist/{ecr-uri-6HdJfJPR.js → ecr-uri-Cd_x_ldh.js} +2 -2
  19. package/dist/{ecr-uri-6HdJfJPR.js.map → ecr-uri-Cd_x_ldh.js.map} +1 -1
  20. package/dist/{expected-bucket-owner-Drp-CSQY.js → expected-bucket-owner-Ba9LshiP.js} +2 -2
  21. package/dist/{expected-bucket-owner-Drp-CSQY.js.map → expected-bucket-owner-Ba9LshiP.js.map} +1 -1
  22. package/dist/{iam-role-provider-B5c4V2kT.js → iam-role-provider-CL-dMrn4.js} +7 -7
  23. package/dist/{iam-role-provider-B5c4V2kT.js.map → iam-role-provider-CL-dMrn4.js.map} +1 -1
  24. package/dist/{image-plan-CYouJkYM.js → image-plan-C0B05bHS.js} +8 -8
  25. package/dist/{image-plan-CYouJkYM.js.map → image-plan-C0B05bHS.js.map} +1 -1
  26. package/dist/index.d.ts +2 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/{logger-6lyGJVGE.js → logger-DpAGzSvV.js} +2 -2
  30. package/dist/{logger-6lyGJVGE.js.map → logger-DpAGzSvV.js.map} +1 -1
  31. package/dist/{neptune-provider-Dhody0jz.js → neptune-provider-CJuYc8IB.js} +7 -7
  32. package/dist/{neptune-provider-Dhody0jz.js.map → neptune-provider-CJuYc8IB.js.map} +1 -1
  33. package/dist/{program-BMBei2v9.js → program-CUCE3lAz.js} +121 -22
  34. package/dist/program-CUCE3lAz.js.map +1 -0
  35. package/dist/{provider-classes-B3qqzXp-.js → provider-classes-YUbciPtV.js} +199 -63
  36. package/dist/provider-classes-YUbciPtV.js.map +1 -0
  37. package/dist/{rds-provider-CXjWWFKT.js → rds-provider-CbmVLapS.js} +20 -691
  38. package/dist/rds-provider-CbmVLapS.js.map +1 -0
  39. package/dist/{read-replica-iA8yd-HO.js → read-replica-BQ5dRRmm.js} +3 -3
  40. package/dist/{read-replica-iA8yd-HO.js.map → read-replica-BQ5dRRmm.js.map} +1 -1
  41. package/dist/{replacement-rules-B4fLD_Ru.js → replacement-rules-DZphESoc.js} +60 -7
  42. package/dist/replacement-rules-DZphESoc.js.map +1 -0
  43. package/dist/{resource-deadline-BcEyGRdL.js → resource-deadline-_gEj2hxY.js} +45 -5
  44. package/dist/resource-deadline-_gEj2hxY.js.map +1 -0
  45. package/dist/{run-cli-Dp938GHN.js → run-cli-bzXhjxpe.js} +2 -2
  46. package/dist/{run-cli-Dp938GHN.js.map → run-cli-bzXhjxpe.js.map} +1 -1
  47. package/dist/{update-removal-1ZPAMzvz.js → update-removal-DOUUID3B.js} +4 -4
  48. package/dist/{update-removal-1ZPAMzvz.js.map → update-removal-DOUUID3B.js.map} +1 -1
  49. package/dist/{version-D_7vFUjp.js → version-DTKcNNDa.js} +2 -2
  50. package/dist/{version-D_7vFUjp.js.map → version-DTKcNNDa.js.map} +1 -1
  51. package/package.json +2 -2
  52. package/dist/db-instance-modify-retry-BoKzNMfz.js +0 -116
  53. package/dist/db-instance-modify-retry-BoKzNMfz.js.map +0 -1
  54. package/dist/delete-started-Bq_G9e4j.js +0 -192
  55. package/dist/delete-started-Bq_G9e4j.js.map +0 -1
  56. package/dist/deploy-engine-DLmPF7r5.js.map +0 -1
  57. package/dist/program-BMBei2v9.js.map +0 -1
  58. package/dist/provider-classes-B3qqzXp-.js.map +0 -1
  59. package/dist/rds-provider-CXjWWFKT.js.map +0 -1
  60. package/dist/replacement-rules-B4fLD_Ru.js.map +0 -1
  61. package/dist/resource-deadline-BcEyGRdL.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-D_7vFUjp.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-6lyGJVGE.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-CepgBr_y.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-DTKcNNDa.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-DpAGzSvV.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-BdOY70NL.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 describeJsonParseFailure, C as PhaseClock, E as recordPhase, M as parseFailureDebugDetail, N as parseJsonNamingNoBody, O as timePhase, P as utf8ByteLength, S as CREATE_ONLY_PATHS_SNAPSHOT, T as phaseTimingsEnabled, _ as hasNoRegistrySchema, a as reDisableInstanceApiTermination, b as IAM_PROPAGATION_MAX_DELAY_MS, c as unchangedBehindSecretReference, d as getCreateOnlyPropertyPaths, f as isIntrinsicShaped, g as describeTypeWithThrottleRetry, h as parseCreateOnlyPropertyPointers, i as observeThenDisableInstanceApiTermination, j as jsonParseFailureStandIn, k as timePhaseSync, l as cachedCreateOnlyPropertyPaths, m as templateResourceTypes, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as prefetchCreateOnlyPropertyPaths, r as isTerminationProtectionPropagationError, v as isAwsEmulatorRegistryMiss, w as phaseScopeForStack, x as withRetry, y as reportAwsEmulatorRegistryMiss } from "./ec2-termination-protection-Di3eM8PN.js";
6
+ import { A as describeJsonParseFailure, C as PhaseClock, E as recordPhase, M as parseFailureDebugDetail, N as parseJsonNamingNoBody, O as timePhase, P as utf8ByteLength, S as CREATE_ONLY_PATHS_SNAPSHOT, T as phaseTimingsEnabled, _ as hasNoRegistrySchema, a as reDisableInstanceApiTermination, b as IAM_PROPAGATION_MAX_DELAY_MS, c as unchangedBehindSecretReference, d as getCreateOnlyPropertyPaths, f as isIntrinsicShaped, g as describeTypeWithThrottleRetry, h as parseCreateOnlyPropertyPointers, i as observeThenDisableInstanceApiTermination, j as jsonParseFailureStandIn, k as timePhaseSync, l as cachedCreateOnlyPropertyPaths, m as templateResourceTypes, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as prefetchCreateOnlyPropertyPaths, r as isTerminationProtectionPropagationError, v as isAwsEmulatorRegistryMiss, w as phaseScopeForStack, x as withRetry, y as reportAwsEmulatorRegistryMiss } from "./ec2-termination-protection-DpNlPDar.js";
7
7
  import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
8
- import { t as expectedOwnerParam } from "./expected-bucket-owner-Drp-CSQY.js";
9
- 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, dt as ElapsedBudgetRegistry, f as retractCreatedResource, fn as producerRecordKey, ft as monotonicNowMs, hn as withPasteableAwsProfile, jt as resourceTypeShown, kt as logicalIdShown, l as collectCreatedResources, ln as injectiveKey, 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-1ZPAMzvz.js";
10
- import { _ as stackInstanceIdCarriedFrom, a as slowCcOperationTimeoutMs, c as exportNamesCarriedFrom, d as importableOutputs, f as isReadableBag, g as skippedOutputsCarriedFrom, h as shouldRetainResource, i as dbInstanceAttributes, m as orphansCarriedFrom, n as isRefusedByName, o as acceptedCreateOnlyDropsOf, p as orphansAfterRollback, r as markDeleteStarted, s as describeRegionValueKind, t as isDeleteStarted, u as importableOutputKeys } from "./delete-started-Bq_G9e4j.js";
11
- import { $t as withdrawRenderedParameterSpelling, A as witnessNormalize, An as recordProvenPublicExpression, At as withoutPhysicalNameCopies, B as redactionClaimOf, Bt as splitOutsideDynamicReferences, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, Fn as isSingleDynamicReferenceToken, G as foldRecording, Gt as recordInheritedPseudoParameters, H as mixedLiteralAnswered, Ht as recordDroppedArrayElements, I as markSameGenerationBag, In as maskMatchSpans, J as hasPassProvenance, Jt as inheritedParameterExpression, K as openRecordingScope, Kt as templateRereadsAccountId, L as mergeResolvedPairs, Lt as arrayPairsWhateverDrops, M as carryRedactionMarks, Mn as withoutNoEchoParameterEntries, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, On as recordNoEchoAttributeValues, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as isDynamicReferenceString, Q as recordReferenceResolution, Qt as redactInheritedParameterValue, R as recordIntrinsicLeafResolution, S as noEchoParametersReadBy, Sn as pinScopedSecretVerdict, St as replaceWholeLeaves, Tn as recordFreshNoEchoValuesIn, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as recordTakenIfBranch, V as resolvedPlaintextOf, Vt as standsForInheritedSecret, W as redactForState, Wt as inheritedPseudoValue, X as passReadVersionsFor, Xt as recordInheritedParameterRead, Y as passProvenanceFor, Yt as inheritedRenderedToken, Z as recordReferenceProvenanceEntry, Zt as recordInheritedParameterValue, _ as noEchoComparison, _n as isNoEchoParameterPlaintext, _t as maskSecretsInText, an as physicalNameCopiesOf, at as literalSplitDelimitersOf, bn as markNoEchoParameterClass, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, cn as recordNestedStackParameterExpressions, ct as recordLogOnlyParameterValue, d as canonicalJson$5, dn as splitGetAttStringForm, dt as shareLogOnlyValues, en as carriesFreshNoEchoValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as carriesSecretMask, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as isMaskOnlyPlaintext, gt as maskSecretsInError, h as maskWholeValue, hn as freshNoEchoValuesOf, ht as maskRecordedSecretsInText, in as recoverMaskedOutput, it as hasMaskableValues, jn as wholeStringLeavesOf, jt as spanNamesResolvableService, k as valueAtCoordinate, kn as recordNoEchoParameterFreshValue, kt as withPhysicalNameCopies, ln as crossStackSourceKey, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as contradictProvenPublicExpression, mt as errorCauseChain, nn as freshNoEchoLeafPositions, nt as createUnionSecretMasker, p as maskAtCoordinates, pn as carryFreshNoEchoMark, pt as createSecretMasker, q as recordSecretResolution, qt as inheritNestedStackParameterAssociations, rn as recordRecoverableMaskedOutput, rt as hasLogOnlyValues, sn as recordPhysicalNameCopy, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as embedsFreshNoEchoValue, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordCrossStackExpression, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isScopedSecretVerdict, vt as differingStringLeaves, w as readbackPathFor, wn as recordDerivedMaskOnlyValue, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as noEchoParameterPlaintextsOf, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isSecretExpressionByVerdictOrSpelling, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as rereadParameterExpression } from "./replacement-rules-B4fLD_Ru.js";
12
- import { C as unsettledItemsTopKey, D as withoutUnsettledProperties, E as withUnsettledProperties, S as unsettledItemsOf, T as withUnsettledItems, _ as definedAttributes, b as unsettledContextOf, c as refuseRestoreFromItself, f as planTagDiff, g as tagPlanWarning, i as withResourceDeadline, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, r as whileEnclosingDeadlinesPaused, t as enclosingDeadlineExpired, w as unsettledPropertiesOf, x as unsettledItemsField, y as isUsableAttemptedName } from "./resource-deadline-BcEyGRdL.js";
8
+ import { t as expectedOwnerParam } from "./expected-bucket-owner-Ba9LshiP.js";
9
+ 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, dt as ElapsedBudgetRegistry, f as retractCreatedResource, fn as producerRecordKey, ft as monotonicNowMs, hn as withPasteableAwsProfile, jt as resourceTypeShown, kt as logicalIdShown, l as collectCreatedResources, ln as injectiveKey, 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-DOUUID3B.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-ByP_GmQ7.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-DZphESoc.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-_gEj2hxY.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, 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-Drp-CSQY.js").then((n) => n.n);
85
+ const { expectedOwnerParam } = await import("./expected-bucket-owner-Ba9LshiP.js").then((n) => n.n);
86
86
  return (await client.send(new GetBucketLocationCommand({
87
87
  Bucket: bucketName,
88
88
  ...await expectedOwnerParam(client)
@@ -3354,6 +3354,10 @@ function parseRollbackJournal(bodyString, stackName) {
3354
3354
  });
3355
3355
  }
3356
3356
  }
3357
+ for (const field of ["previousDependencies", "templateDependencies"]) {
3358
+ const lists = seg[field];
3359
+ if (lists !== void 0 && (typeof lists !== "object" || lists === null || Array.isArray(lists) || !Object.values(lists).every((list) => Array.isArray(list) && list.every((id) => typeof id === "string")))) refuseMalformed(shownStack, `segments[${s}].${field} must map logical ids to string arrays when present.`);
3360
+ }
3357
3361
  const prevOut = seg["previousOutputs"];
3358
3362
  if (prevOut !== void 0) {
3359
3363
  const outputs = typeof prevOut === "object" && prevOut !== null && !Array.isArray(prevOut) ? prevOut["outputs"] : void 0;
@@ -5506,9 +5510,10 @@ const PROPERTY_COVERAGE_BY_TYPE = /* @__PURE__ */ new Map([
5506
5510
  "RuntimePlatform",
5507
5511
  "Tags",
5508
5512
  "TaskRoleArn",
5513
+ "TrustedExecutionConfiguration",
5509
5514
  "Volumes"
5510
5515
  ]),
5511
- sdkUnwired: /* @__PURE__ */ new Map([["InferenceAccelerators", "AWS Elastic Inference end-of-life 2024-04; use AWS Inferentia / Trainium accelerator instance families instead"], ["TrustedExecutionConfiguration", "not yet implemented by cdkd"]]),
5516
+ sdkUnwired: /* @__PURE__ */ new Map([["InferenceAccelerators", "AWS Elastic Inference end-of-life 2024-04; use AWS Inferentia / Trainium accelerator instance families instead"]]),
5512
5517
  createOnlyDrops: /* @__PURE__ */ new Set(["InferenceAccelerators"]),
5513
5518
  readOnly: /* @__PURE__ */ new Set(["TaskDefinitionArn"]),
5514
5519
  primaryIdentifier: /* @__PURE__ */ new Set(["TaskDefinitionArn"]),
@@ -12538,6 +12543,50 @@ function s3BucketWebsiteUrl(bucketName, region) {
12538
12543
  return `http://${bucketName}.s3-website${S3_WEBSITE_ENDPOINT_LEGACY_DASH_REGIONS.has(folded) ? "-" : "."}${folded}.${urlSuffix}`;
12539
12544
  }
12540
12545
 
12546
+ // src/deployment/intrinsic-resolver/getatt/flat-object-attributes.ts
12547
+ const FLAT_OBJECT_MEMBERS = {
12548
+ "AWS::RDS::DBInstance": {
12549
+ Endpoint: { required: [
12550
+ "Address",
12551
+ "HostedZoneId",
12552
+ "Port"
12553
+ ] },
12554
+ ListenerEndpoint: {
12555
+ required: ["Address", "Port"],
12556
+ optional: ["HostedZoneId"]
12557
+ },
12558
+ CertificateDetails: { required: ["CAIdentifier", "ValidTill"] }
12559
+ },
12560
+ "AWS::RDS::DBCluster": {
12561
+ Endpoint: { required: ["Address", "Port"] },
12562
+ ReadEndpoint: { required: ["Address"] }
12563
+ }
12564
+ };
12565
+ function shapeOf(resourceType, attributeName) {
12566
+ if (!Object.hasOwn(FLAT_OBJECT_MEMBERS, resourceType)) return void 0;
12567
+ const byType = FLAT_OBJECT_MEMBERS[resourceType];
12568
+ return Object.hasOwn(byType, attributeName) ? byType[attributeName] : void 0;
12569
+ }
12570
+ function memberValue(attributes, key) {
12571
+ const value = Object.hasOwn(attributes, key) ? attributes[key] : void 0;
12572
+ return value === null || value === "" ? void 0 : value;
12573
+ }
12574
+ function assembleFlatObjectAttribute(resourceType, attributeName, attributes) {
12575
+ const shape = attributes === void 0 ? void 0 : shapeOf(resourceType, attributeName);
12576
+ if (attributes === void 0 || shape === void 0) return void 0;
12577
+ const entries = [];
12578
+ for (const member of shape.required) {
12579
+ const value = memberValue(attributes, `${attributeName}.${member}`);
12580
+ if (value === void 0) return void 0;
12581
+ entries.push([member, value]);
12582
+ }
12583
+ for (const member of shape.optional ?? []) {
12584
+ const value = memberValue(attributes, `${attributeName}.${member}`);
12585
+ if (value !== void 0) entries.push([member, value]);
12586
+ }
12587
+ return Object.fromEntries(entries.sort(([a], [b]) => a.localeCompare(b)));
12588
+ }
12589
+
12541
12590
  // src/deployment/intrinsic-resolver/getatt-heal.ts
12542
12591
  function staleRecordRemedy(resolver, outcome, context) {
12543
12592
  const touch = `change any property of the resource so its next update re-records the attributes, or re-import it with ${proseQuoted(cdkdRemedy("cdkd import"))}`;
@@ -12582,9 +12631,9 @@ async function healStaleAttributes(_resolver, logicalId, resource, context) {
12582
12631
  };
12583
12632
  }
12584
12633
  }
12585
- function usableHealedAttribute(_resolver, outcome, attributeName) {
12634
+ function usableHealedAttribute(_resolver, outcome, attributeName, resourceType) {
12586
12635
  if (outcome?.kind !== "read") return void 0;
12587
- const value = readHealedAttribute(outcome.attributes, attributeName);
12636
+ const value = readHealedAttribute(outcome.attributes, attributeName) ?? (resourceType === void 0 ? void 0 : assembleFlatObjectAttribute(resourceType, attributeName, outcome.attributes));
12588
12637
  return value === void 0 || carriesSecretMask(value) ? void 0 : value;
12589
12638
  }
12590
12639
  function serveHealedAttribute(resolver, logicalId, attributeName, value, context) {
@@ -12606,7 +12655,7 @@ async function constructWithStaleRecordHeal(resolver, resource, attributeName, c
12606
12655
  if (!(error instanceof StaleAttributeMissSignal)) throw error;
12607
12656
  }
12608
12657
  const outcome = await healStaleAttributes(resolver, logicalId, resource, context) ?? { kind: "not-attempted" };
12609
- const healed = usableHealedAttribute(resolver, outcome, attributeName);
12658
+ const healed = usableHealedAttribute(resolver, outcome, attributeName, resource.resourceType);
12610
12659
  if (healed !== void 0) return serveHealedAttribute(resolver, logicalId, attributeName, healed, context);
12611
12660
  return constructGuardedAttribute(resolver, resource, attributeName, {
12612
12661
  ...context,
@@ -14683,6 +14732,9 @@ async function constructAttributeForAppTypes(resolver, resource, attributeName,
14683
14732
  case "DBInstanceArn":
14684
14733
  case "Arn": return `arn:${partition}:rds:${region}:${accountId}:db:${physicalId}`;
14685
14734
  case "DbiResourceId":
14735
+ case "Endpoint":
14736
+ case "ListenerEndpoint":
14737
+ case "CertificateDetails":
14686
14738
  case "Endpoint.HostedZoneId":
14687
14739
  case "ListenerEndpoint.Address":
14688
14740
  case "ListenerEndpoint.Port":
@@ -14697,15 +14749,29 @@ async function constructAttributeForAppTypes(resolver, resource, attributeName,
14697
14749
  resourceType,
14698
14750
  context,
14699
14751
  why: "cdkd cannot build it from the DB instance identifier",
14700
- remedyWhenHealCompleted: attributeName.startsWith("ListenerEndpoint.") ? "This DB instance has no listener endpoint, and CloudFormation cannot return one for it either: remove the reference, or use Endpoint.Address." : "RDS does not report it for the instance yet (it may still be creating): deploy again once the instance is available."
14752
+ remedyWhenHealCompleted: attributeName.startsWith("ListenerEndpoint") ? "This DB instance has no listener endpoint, and CloudFormation cannot return one for it either: remove the reference, or use Endpoint.Address." : "RDS does not report it for the instance yet (it may still be creating): deploy again once the instance is available."
14701
14753
  });
14702
14754
  }
14703
14755
  return guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceType, physicalId, context);
14704
14756
  }
14705
- if (resourceType === "AWS::RDS::DBCluster" || resourceType === "AWS::DocDB::DBCluster" || resourceType === "AWS::Neptune::DBCluster") switch (attributeName) {
14706
- case "DBClusterArn":
14707
- case "Arn": return `arn:${partition}:rds:${region}:${accountId}:cluster:${physicalId}`;
14708
- default: return guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceType, physicalId, context);
14757
+ if (resourceType === "AWS::RDS::DBCluster" || resourceType === "AWS::DocDB::DBCluster" || resourceType === "AWS::Neptune::DBCluster") {
14758
+ switch (attributeName) {
14759
+ case "DBClusterArn":
14760
+ case "Arn": return `arn:${partition}:rds:${region}:${accountId}:cluster:${physicalId}`;
14761
+ case "Endpoint":
14762
+ case "ReadEndpoint":
14763
+ if (resourceType !== "AWS::RDS::DBCluster") break;
14764
+ healBeforeConstructing(resolver, context);
14765
+ refuseUnconstructibleAttribute(resolver, {
14766
+ logicalId,
14767
+ attributeName,
14768
+ resourceType,
14769
+ context,
14770
+ why: "cdkd cannot build it from the DB cluster identifier",
14771
+ remedyWhenHealCompleted: "RDS does not report it for the cluster yet (it may still be creating): deploy again once the cluster is available."
14772
+ });
14773
+ }
14774
+ return guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceType, physicalId, context);
14709
14775
  }
14710
14776
  if (resourceType === "AWS::S3Express::DirectoryBucket" && attributeName === "AvailabilityZoneName") {
14711
14777
  const zoneId = /--([a-z0-9]+(?:-[a-z0-9]+)*)--x-s3$/.exec(physicalId)?.[1];
@@ -16030,7 +16096,7 @@ async function resolveGetAtt(resolver, getAtt, context) {
16030
16096
  if (!resource) throw markNonRetryable(/* @__PURE__ */ new Error(`Resource ${displayMasked(resolver, logicalId, context)} not found for Fn::GetAtt`));
16031
16097
  recordSecretNamedRead(logicalId, void 0, context);
16032
16098
  if (!isAlwaysLiveAttribute(resource.resourceType, attributeName) && resource.attributes !== void 0) {
16033
- const storedValue = Object.hasOwn(resource.attributes, attributeName) ? resource.attributes[attributeName] : void 0;
16099
+ const storedValue = Object.hasOwn(resource.attributes, attributeName) ? resource.attributes[attributeName] : assembleFlatObjectAttribute(resource.resourceType, attributeName, resource.attributes);
16034
16100
  const flatValue = isImpossibleEmptyStoredAttribute(resource.resourceType, attributeName, storedValue) ? void 0 : storedValue;
16035
16101
  if (flatValue !== void 0) {
16036
16102
  if (isStalePlaceholderArnAttribute(resource.resourceType, attributeName, flatValue)) {
@@ -18868,7 +18934,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
18868
18934
  const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
18869
18935
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
18870
18936
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
18871
- const { ASGProvider } = await import("./asg-provider-26AfIhcd.js");
18937
+ const { ASGProvider } = await import("./asg-provider-BhktjcGM.js");
18872
18938
  const delegateRegion = ambientRegion();
18873
18939
  let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
18874
18940
  if (asgProvider === void 0) {
@@ -19022,7 +19088,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
19022
19088
  const family = SDK_DELETE_FAMILIES.get(resourceType);
19023
19089
  const cached = this.sdkDeleteDelegates.get(family);
19024
19090
  if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
19025
- const provider = family === "rds" ? new (await (import("./rds-provider-CXjWWFKT.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-Dhody0jz.js"))).NeptuneProvider({ region: ccRegion });
19091
+ const provider = family === "rds" ? new (await (import("./rds-provider-CbmVLapS.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-CJuYc8IB.js"))).NeptuneProvider({ region: ccRegion });
19026
19092
  this.sdkDeleteDelegates.set(family, {
19027
19093
  region: ccRegion,
19028
19094
  provider
@@ -19540,11 +19606,7 @@ async function enrichResourceAttributes(resourceType, physicalId, attributes, lo
19540
19606
  try {
19541
19607
  const cluster = (await new RDSClient({ ...ambientClientDefaults() }).send(new DescribeDBClustersCommand({ DBClusterIdentifier: physicalId }))).DBClusters?.[0];
19542
19608
  if (cluster) {
19543
- if (cluster.Endpoint) enriched["Endpoint.Address"] = cluster.Endpoint;
19544
- if (cluster.Port !== void 0) enriched["Endpoint.Port"] = String(cluster.Port);
19545
- if (cluster.ReaderEndpoint) enriched["ReadEndpoint.Address"] = cluster.ReaderEndpoint;
19546
- if (cluster.DBClusterArn) enriched["Arn"] = cluster.DBClusterArn;
19547
- if (cluster.DbClusterResourceId) enriched["DBClusterResourceId"] = cluster.DbClusterResourceId;
19609
+ Object.assign(enriched, dbClusterAttributes(cluster));
19548
19610
  log.debug(`Enriched RDS DBCluster ${physicalId} with Endpoint/Port/Arn from DescribeDBClusters`);
19549
19611
  }
19550
19612
  } catch (error) {
@@ -19555,7 +19617,7 @@ async function enrichResourceAttributes(resourceType, physicalId, attributes, lo
19555
19617
  try {
19556
19618
  const inst = (await new RDSClient({ ...ambientClientDefaults() }).send(new DescribeDBInstancesCommand({ DBInstanceIdentifier: physicalId }))).DBInstances?.[0];
19557
19619
  if (inst) {
19558
- Object.assign(enriched, dbInstanceAttributes(inst));
19620
+ Object.assign(enriched, dbInstanceAttributes(inst, { settled: true }));
19559
19621
  log.debug(`Enriched RDS DBInstance ${physicalId} with Endpoint/Port/Arn from DescribeDBInstances`);
19560
19622
  }
19561
19623
  } catch (error) {
@@ -21694,7 +21756,7 @@ async function publishToSns(topicArn, request) {
21694
21756
  }
21695
21757
  async function invokeLambda(serviceToken, request) {
21696
21758
  if (localCustomResourceRuntimeActive()) {
21697
- const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-2Kfh-v8P.js");
21759
+ const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-BkEa9HAa.js");
21698
21760
  const local = await invokeCustomResourceFunctionLocally({
21699
21761
  lambda: this.lambdaClient,
21700
21762
  s3: this.s3Client
@@ -24844,7 +24906,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
24844
24906
  if (resourceType !== "AWS::RDS::DBInstance") return false;
24845
24907
  if (region === void 0 || region === "") return false;
24846
24908
  const mask = input.mask ?? ((text) => text);
24847
- const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-iA8yd-HO.js").then((n) => n.l);
24909
+ const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-BQ5dRRmm.js").then((n) => n.l);
24848
24910
  let reason;
24849
24911
  try {
24850
24912
  const live = await describeDBInstanceInRegion(physicalId, region);
@@ -33974,6 +34036,7 @@ async function loadJournaledOrphans(stateBackend, stackName, region, rollbackOrp
33974
34036
  unreadable: true
33975
34037
  };
33976
34038
  }
34039
+ options.onSegments?.(segments);
33977
34040
  const physicalIdOnly = (ops) => ops.filter((op) => op.changeType !== "CREATE");
33978
34041
  const evidence = segments.map((segment) => options.deployRunId !== void 0 && segment.reason === "nested-pending-parent" && segment.runId === options.deployRunId ? {
33979
34042
  ...segment,
@@ -34114,7 +34177,8 @@ async function settleJournaledOrphansOnSuccess(args) {
34114
34177
  orphans = await loadJournaledOrphans(stateBackend, stackName, region, args.rollbackOrphans, logger, {
34115
34178
  newerOperations,
34116
34179
  ...args.deployRunId !== void 0 && { deployRunId: args.deployRunId },
34117
- unreadableOutcome: "the successful deploy removes the journal"
34180
+ unreadableOutcome: "the successful deploy removes the journal",
34181
+ ...args.onSegments !== void 0 && { onSegments: args.onSegments }
34118
34182
  });
34119
34183
  } catch (err) {
34120
34184
  logger.warn(safeMsg`Could not act on the rollback journal of stack ${stack}: ${errorDetail(err)}. It is kept.`);
@@ -34276,6 +34340,123 @@ async function collectNestedChildUnaddressed(fn) {
34276
34340
  };
34277
34341
  }
34278
34342
 
34343
+ // src/deployment/deploy-engine/record-shape.ts
34344
+ function auditResolvedAssetReferences(options, logicalId, resourceType, resolvedProps) {
34345
+ const redirect = options.assetRedirect;
34346
+ if (!redirect) return;
34347
+ const findings = findUnrewrittenAssetReferences(resolvedProps, redirect);
34348
+ if (findings.length === 0) return;
34349
+ const detail = findings.map((f) => safeMsg` - ${f.path}: still references '${f.source}'`).join("\n");
34350
+ throw new ProvisioningError(safeMsg`Unrewritten asset reference on '${logicalId}' (${resourceType}): this region uses ` + `cdkd-owned asset storage, but the following resolved properties still point at the CDK bootstrap storage that 'cdk gc' may garbage-collect:\n${detail}\nThis is a template shape cdkd's asset-reference rewrite did not cover — deploying it would split-brain the stack (assets in cdkd storage, properties reading the CDK bucket). Please report this at https://github.com/go-to-k/cdkd/issues with the property shape. Workaround: deploy with --use-cdk-bootstrap-assets to pin the legacy destinations for this app.`, resourceType, logicalId);
34351
+ }
34352
+ function extractAllDependencies(template, logicalId) {
34353
+ const resource = template?.Resources?.[logicalId];
34354
+ if (!resource) return void 0;
34355
+ const parser = new TemplateParser();
34356
+ const parameterNames = new Set(Object.keys(template?.Parameters ?? {}));
34357
+ const deps = [...parser.extractDependencies(resource)].filter((dep) => !parameterNames.has(dep));
34358
+ return deps.length > 0 ? deps : void 0;
34359
+ }
34360
+ function withTemplateDependencies(resources, template, { removalsOnly = false } = {}) {
34361
+ let refreshed;
34362
+ for (const [logicalId, record] of Object.entries(resources)) {
34363
+ if (!Object.hasOwn(template.Resources ?? {}, logicalId)) continue;
34364
+ const derived = extractAllDependencies(template, logicalId) ?? [];
34365
+ const have = Array.isArray(record.dependencies) ? record.dependencies : [];
34366
+ const haveSet = new Set(have);
34367
+ const want = removalsOnly ? [...haveSet].filter((id) => derived.includes(id)) : derived;
34368
+ if (want.length === haveSet.size && want.every((id) => haveSet.has(id))) continue;
34369
+ refreshed ??= { ...resources };
34370
+ const { dependencies: _stale, ...rest } = record;
34371
+ refreshed[logicalId] = want.length > 0 ? {
34372
+ ...rest,
34373
+ dependencies: want
34374
+ } : rest;
34375
+ }
34376
+ return refreshed;
34377
+ }
34378
+ function sameIds(a, b) {
34379
+ const set = new Set(a);
34380
+ return set.size === new Set(b).size && b.every((id) => set.has(id));
34381
+ }
34382
+ function dependenciesOf(record) {
34383
+ return Array.isArray(record?.dependencies) ? record.dependencies : [];
34384
+ }
34385
+ function nestedDependencySnapshot(previous, saved, template, touchedLogicalIds) {
34386
+ const final = withTemplateDependencies(saved, template, { removalsOnly: true }) ?? saved;
34387
+ const previousDependencies = {};
34388
+ const templateDependencies = {};
34389
+ for (const [logicalId, record] of Object.entries(final)) {
34390
+ if (!Object.hasOwn(template.Resources ?? {}, logicalId)) continue;
34391
+ const before = Object.hasOwn(previous, logicalId) ? previous[logicalId] : void 0;
34392
+ if (before !== void 0 && !touchedLogicalIds.has(logicalId)) {
34393
+ const had = dependenciesOf(before);
34394
+ if (!sameIds(had, dependenciesOf(record))) previousDependencies[logicalId] = [...had];
34395
+ }
34396
+ const derived = extractAllDependencies(template, logicalId) ?? [];
34397
+ if (!sameIds(derived, dependenciesOf(record))) templateDependencies[logicalId] = derived;
34398
+ }
34399
+ return {
34400
+ ...Object.keys(previousDependencies).length > 0 && { previousDependencies },
34401
+ ...Object.keys(templateDependencies).length > 0 && { templateDependencies }
34402
+ };
34403
+ }
34404
+ function withRecordedDependencies(resources, lists, onCycle) {
34405
+ let next;
34406
+ for (const [logicalId, list] of Object.entries(lists)) {
34407
+ const record = Object.hasOwn(resources, logicalId) ? resources[logicalId] : void 0;
34408
+ if (record === void 0 || sameIds(dependenciesOf(record), list)) continue;
34409
+ next ??= { ...resources };
34410
+ const { dependencies: _old, ...rest } = record;
34411
+ next[logicalId] = list.length > 0 ? {
34412
+ ...rest,
34413
+ dependencies: [...list]
34414
+ } : rest;
34415
+ }
34416
+ if (next === void 0) return void 0;
34417
+ if (!hasDependencyCycle(next)) return next;
34418
+ onCycle?.();
34419
+ }
34420
+ function hasDependencyCycle(resources) {
34421
+ const state = /* @__PURE__ */ new Map();
34422
+ const visit = (id) => {
34423
+ const mark = state.get(id);
34424
+ if (mark === "done") return false;
34425
+ if (mark === "open") return true;
34426
+ state.set(id, "open");
34427
+ for (const dep of dependenciesOf(resources[id])) if (Object.hasOwn(resources, dep) && visit(dep)) return true;
34428
+ state.set(id, "done");
34429
+ return false;
34430
+ };
34431
+ return Object.keys(resources).some((id) => visit(id));
34432
+ }
34433
+ function withPropertiesMarksOf(original, rebuilt) {
34434
+ return carryRedactionMarks(original, rebuilt);
34435
+ }
34436
+ function propertiesToRecord(desiredProperties, result, resourceType, provisionedBy) {
34437
+ if (result.effectiveProperties) return markWrittenFromDeployedTemplate(markLeafCertifiedBag(provisionedBy === "sdk" ? withoutSdkUnwiredProperties(resourceType, result.effectiveProperties) : result.effectiveProperties));
34438
+ const written = provisionedBy === "sdk" ? withoutSdkUnwiredProperties(resourceType, desiredProperties) : desiredProperties;
34439
+ return markWrittenFromDeployedTemplate(markSameGenerationBag(written));
34440
+ }
34441
+ function extractTemplateAttributes(template, logicalId) {
34442
+ const resource = template?.Resources?.[logicalId];
34443
+ return {
34444
+ deletionPolicy: resource?.DeletionPolicy,
34445
+ updateReplacePolicy: resource?.UpdateReplacePolicy
34446
+ };
34447
+ }
34448
+ function acceptedCreateOnlyDropsField(recordedProperties, resourceType, provisionedBy, mode, previous) {
34449
+ const carried = mode === "in-place" ? acceptedCreateOnlyDropsOf(previous) : void 0;
34450
+ return { acceptedCreateOnlyDrops: acceptedCreateOnlyDropsEvidence(recordedProperties, resourceType, provisionedBy, carried) };
34451
+ }
34452
+ function secretNamedAttributesField(result, previous) {
34453
+ const reported = result.secretNamedAttributeNames;
34454
+ const source = reported !== void 0 ? reported : previous?.secretNamedAttributes;
34455
+ if (!Array.isArray(source)) return {};
34456
+ const names = source.filter((name) => typeof name === "string" && name !== "");
34457
+ return names.length > 0 ? { secretNamedAttributes: names } : {};
34458
+ }
34459
+
34279
34460
  // src/deployment/nested-child-journal.ts
34280
34461
  const NESTED_PENDING_PARENT_REASON = "nested-pending-parent";
34281
34462
  const NESTED_STACK_TYPE$3 = "AWS::CloudFormation::Stack";
@@ -34383,7 +34564,8 @@ async function dropNestedChildJournals(args) {
34383
34564
  try {
34384
34565
  if (await withChildLock(args.lockManager, child, region, logger, async () => {
34385
34566
  if (args.beforeDelete) {
34386
- if (!await args.beforeDelete(child, await readOwnRecord(stateBackend, child, region))) return false;
34567
+ const own = await readOwnRecord(stateBackend, child, region);
34568
+ if (!await args.beforeDelete(child, own?.state, own?.etag)) return false;
34387
34569
  }
34388
34570
  let gone;
34389
34571
  try {
@@ -34403,10 +34585,31 @@ async function dropNestedChildJournals(args) {
34403
34585
  }
34404
34586
  }
34405
34587
  }
34588
+ async function recordChildTemplateDependencies(args) {
34589
+ const { child, state, runId, logger } = args;
34590
+ if (runId === void 0) return;
34591
+ const lists = args.segments.findLast((segment) => segment.runId === runId && segment.reason === "nested-pending-parent")?.templateDependencies;
34592
+ if (lists === void 0) return;
34593
+ const resources = withRecordedDependencies(state.resources, lists, () => logger.debug(safeMsg`Kept the recorded dependencies of nested stack ${displaySafe(child)}: the template's would form a cycle.`));
34594
+ if (resources === void 0) return;
34595
+ try {
34596
+ await args.stateBackend.saveState(child, args.region, {
34597
+ ...state,
34598
+ ...stackInstanceIdCarriedFrom(state),
34599
+ resources,
34600
+ lastModified: Date.now()
34601
+ }, { expectedEtag: args.etag });
34602
+ } catch (error) {
34603
+ logger.warn(safeMsg`Could not record the template's dependencies on nested stack ${displaySafe(child)}: ` + safeMsg`${errorText(error)}. A destroy may order its resources by an older template.`);
34604
+ }
34605
+ }
34406
34606
  async function readOwnRecord(stateBackend, child, region) {
34407
34607
  try {
34408
34608
  const data = await stateBackend.getState(child, region);
34409
- if (data && isPlainRecord(data.state) && isPlainRecord(data.state.resources) && (data.state.stackName === void 0 || data.state.stackName === child)) return data.state;
34609
+ if (data && isPlainRecord(data.state) && isPlainRecord(data.state.resources) && (data.state.stackName === void 0 || data.state.stackName === child)) return {
34610
+ state: data.state,
34611
+ etag: data.etag
34612
+ };
34410
34613
  } catch {}
34411
34614
  }
34412
34615
  async function dropSettledNestedJournals(args) {
@@ -34582,6 +34785,18 @@ async function revertNestedChildFromJournal(args) {
34582
34785
  for (const op of split.displaced) logger.warn(safeMsg`Nested stack ${childStackName}: ${op.logicalId} ` + safeMsg`${displacedOpClause(op, segment.importedResources ?? [], logger)}; ` + "not reverted, check that resource by hand");
34583
34786
  }
34584
34787
  restoring = failures === 0;
34788
+ if (restoring) {
34789
+ const lists = {};
34790
+ const decided = /* @__PURE__ */ new Set();
34791
+ for (const segment of segments) {
34792
+ for (const [id, list] of Object.entries(segment.previousDependencies ?? {})) {
34793
+ if (!decided.has(id)) lists[id] = list;
34794
+ decided.add(id);
34795
+ }
34796
+ for (const op of segment.operations) decided.add(op.logicalId);
34797
+ }
34798
+ Object.assign(stateResources, withRecordedDependencies(stateResources, lists, () => logger.debug(safeMsg`Kept the dependencies of nested stack ${shownChild} as the replay left them: the pre-run ones would form a cycle.`)));
34799
+ }
34585
34800
  await save();
34586
34801
  if (restoring && persisted && restoredOutputs && ctx.exportIndexStore) await ctx.exportIndexStore.updateForStack(childStackName, region, importableOutputs(nextState()));
34587
34802
  if (warnings > 0) logger.warn(safeMsg`Nested stack ${shownChild}: ${warnings} operation(s) were skipped with a warning during ` + `its revert (see above); they may need attention by hand.`);
@@ -35066,7 +35281,9 @@ async function writeRollbackJournalSegment(deps, stackName, completedOperations,
35066
35281
  ...nestedPending.previousOutputs,
35067
35282
  outputs: maskOutputsByPosition(deps.noEchoRun(), deps.noEchoDeps(), nestedPending.previousOutputs.outputs)
35068
35283
  } },
35069
- ...nestedPending?.previousCrossStackReads && { previousCrossStackReads: nestedPending.previousCrossStackReads }
35284
+ ...nestedPending?.previousCrossStackReads && { previousCrossStackReads: nestedPending.previousCrossStackReads },
35285
+ ...nestedPending?.previousDependencies && { previousDependencies: nestedPending.previousDependencies },
35286
+ ...nestedPending?.templateDependencies && { templateDependencies: nestedPending.templateDependencies }
35070
35287
  };
35071
35288
  await deps.stateBackend.appendRollbackJournalSegment(stackName, deps.stackRegion, segment);
35072
35289
  deps.logger.debug(safeMsg`Rollback journal segment written (${reason})`);
@@ -35101,14 +35318,17 @@ function foreignHolderResolver(deps) {
35101
35318
  return answer;
35102
35319
  };
35103
35320
  }
35104
- async function settleJournalAfterSuccess(deps, stackName, completedOperations, previousState, finalResources, initialDeploy) {
35321
+ async function settleJournalAfterSuccess(deps, stackName, completedOperations, previousState, finalResources, initialDeploy, template) {
35105
35322
  if (deps.options.parentStackInfo) {
35106
- await writeRollbackJournalSegment(deps, stackName, completedOperations, [], NESTED_PENDING_PARENT_REASON, initialDeploy, nestedPendingSnapshot(previousState, (name) => {
35107
- const verdict = deps.outputsRun().carriedExportAliasRefusal;
35108
- const dropped = verdict === void 0 || verdict(name, name) !== void 0;
35109
- if (dropped) deps.logger.warn(verdict === void 0 ? "An export alias the previous record published was not kept for a revert of this nested stack: no export-name verdict is available." : "An export alias the previous record published was not kept for a revert of this nested stack: its name contains a NoEcho value.");
35110
- return dropped;
35111
- }));
35323
+ await writeRollbackJournalSegment(deps, stackName, completedOperations, [], NESTED_PENDING_PARENT_REASON, initialDeploy, {
35324
+ ...template !== void 0 && nestedDependencySnapshot(previousState.resources, finalResources, template, new Set(completedOperations.map((op) => op.logicalId))),
35325
+ ...nestedPendingSnapshot(previousState, (name) => {
35326
+ const verdict = deps.outputsRun().carriedExportAliasRefusal;
35327
+ const dropped = verdict === void 0 || verdict(name, name) !== void 0;
35328
+ if (dropped) deps.logger.warn(verdict === void 0 ? "An export alias the previous record published was not kept for a revert of this nested stack: no export-name verdict is available." : "An export alias the previous record published was not kept for a revert of this nested stack: its name contains a NoEcho value.");
35329
+ return dropped;
35330
+ })
35331
+ });
35112
35332
  return 0;
35113
35333
  }
35114
35334
  let nestedLeft = 0;
@@ -35149,7 +35369,8 @@ async function settleJournalAfterSuccess(deps, stackName, completedOperations, p
35149
35369
  region: deps.stackRegion,
35150
35370
  resources: finalResources,
35151
35371
  logger: deps.logger,
35152
- beforeDelete: async (child, childRecord) => {
35372
+ beforeDelete: async (child, childRecord, childEtag) => {
35373
+ let childSegments = [];
35153
35374
  const childState = childRecord !== void 0 && hasReadableOrphans(childRecord) ? childRecord : void 0;
35154
35375
  const settled = await settleJournaledOrphansOnSuccess({
35155
35376
  stateBackend: deps.stateBackend,
@@ -35171,6 +35392,19 @@ async function settleJournalAfterSuccess(deps, stackName, completedOperations, p
35171
35392
  producerRegionsIncomplete: true,
35172
35393
  nestedChildStack: child
35173
35394
  },
35395
+ logger: deps.logger,
35396
+ onSegments: (segments) => {
35397
+ childSegments = segments;
35398
+ }
35399
+ });
35400
+ if (childState !== void 0 && childEtag !== void 0) await recordChildTemplateDependencies({
35401
+ stateBackend: deps.stateBackend,
35402
+ child,
35403
+ region: deps.stackRegion,
35404
+ state: childState,
35405
+ etag: childEtag,
35406
+ segments: childSegments,
35407
+ runId: deps.options.eventRecorder?.runId,
35174
35408
  logger: deps.logger
35175
35409
  });
35176
35410
  nestedLeft += settled.unaddressed;
@@ -35958,50 +36192,6 @@ var GeneratedNameGuard = class GeneratedNameGuard {
35958
36192
  }
35959
36193
  };
35960
36194
 
35961
- // src/deployment/deploy-engine/record-shape.ts
35962
- function auditResolvedAssetReferences(options, logicalId, resourceType, resolvedProps) {
35963
- const redirect = options.assetRedirect;
35964
- if (!redirect) return;
35965
- const findings = findUnrewrittenAssetReferences(resolvedProps, redirect);
35966
- if (findings.length === 0) return;
35967
- const detail = findings.map((f) => safeMsg` - ${f.path}: still references '${f.source}'`).join("\n");
35968
- throw new ProvisioningError(safeMsg`Unrewritten asset reference on '${logicalId}' (${resourceType}): this region uses ` + `cdkd-owned asset storage, but the following resolved properties still point at the CDK bootstrap storage that 'cdk gc' may garbage-collect:\n${detail}\nThis is a template shape cdkd's asset-reference rewrite did not cover — deploying it would split-brain the stack (assets in cdkd storage, properties reading the CDK bucket). Please report this at https://github.com/go-to-k/cdkd/issues with the property shape. Workaround: deploy with --use-cdk-bootstrap-assets to pin the legacy destinations for this app.`, resourceType, logicalId);
35969
- }
35970
- function extractAllDependencies(template, logicalId) {
35971
- const resource = template?.Resources?.[logicalId];
35972
- if (!resource) return void 0;
35973
- const parser = new TemplateParser();
35974
- const parameterNames = new Set(Object.keys(template?.Parameters ?? {}));
35975
- const deps = [...parser.extractDependencies(resource)].filter((dep) => !parameterNames.has(dep));
35976
- return deps.length > 0 ? deps : void 0;
35977
- }
35978
- function withPropertiesMarksOf(original, rebuilt) {
35979
- return carryRedactionMarks(original, rebuilt);
35980
- }
35981
- function propertiesToRecord(desiredProperties, result, resourceType, provisionedBy) {
35982
- if (result.effectiveProperties) return markWrittenFromDeployedTemplate(markLeafCertifiedBag(provisionedBy === "sdk" ? withoutSdkUnwiredProperties(resourceType, result.effectiveProperties) : result.effectiveProperties));
35983
- const written = provisionedBy === "sdk" ? withoutSdkUnwiredProperties(resourceType, desiredProperties) : desiredProperties;
35984
- return markWrittenFromDeployedTemplate(markSameGenerationBag(written));
35985
- }
35986
- function extractTemplateAttributes(template, logicalId) {
35987
- const resource = template?.Resources?.[logicalId];
35988
- return {
35989
- deletionPolicy: resource?.DeletionPolicy,
35990
- updateReplacePolicy: resource?.UpdateReplacePolicy
35991
- };
35992
- }
35993
- function acceptedCreateOnlyDropsField(recordedProperties, resourceType, provisionedBy, mode, previous) {
35994
- const carried = mode === "in-place" ? acceptedCreateOnlyDropsOf(previous) : void 0;
35995
- return { acceptedCreateOnlyDrops: acceptedCreateOnlyDropsEvidence(recordedProperties, resourceType, provisionedBy, carried) };
35996
- }
35997
- function secretNamedAttributesField(result, previous) {
35998
- const reported = result.secretNamedAttributeNames;
35999
- const source = reported !== void 0 ? reported : previous?.secretNamedAttributes;
36000
- if (!Array.isArray(source)) return {};
36001
- const names = source.filter((name) => typeof name === "string" && name !== "");
36002
- return names.length > 0 ? { secretNamedAttributes: names } : {};
36003
- }
36004
-
36005
36195
  // src/utils/resource-line.ts
36006
36196
  function formatResourceLine(op, logicalId, resourceType, verbOverride) {
36007
36197
  const body = `${bold(displaySafe(logicalId))} ${gray(`(${displaySafe(resourceType)})`)}`;
@@ -44738,6 +44928,11 @@ async function compareWithRecord(engine, logicalId, change, stateResources, temp
44738
44928
  }
44739
44929
  }
44740
44930
  }
44931
+ const literalRewrites = secretRerenderPairs(updateSecrets);
44932
+ if (literalRewrites.length > 0) for (const bag of new Set(repairable)) for (const key of Object.keys(bag)) {
44933
+ const repaired = repairEmbeddedPhysicalNamesTowards(bag[key], desiredForSkipCheck[key], literalRewrites);
44934
+ if (repaired !== bag[key]) bag[key] = repaired;
44935
+ }
44741
44936
  const attributes = currentResource.attributes;
44742
44937
  if (attributes !== void 0 && attributes !== null && embeddedRewrites.length > 0) for (const key of Object.keys(attributes)) {
44743
44938
  const repaired = replaceEmbeddedPhysicalNameRewrites(attributes[key], embeddedRewrites);
@@ -47171,6 +47366,7 @@ async function executeDeployment(engine, template, currentState, changes, dag, e
47171
47366
  await writeRollbackJournalSegment(engine.rollbackDeps(), stackName, completedOperations, failedOperations, "no-rollback-failure", currentEtag === void 0);
47172
47367
  throw outputError;
47173
47368
  }
47369
+ Object.assign(newResources, withTemplateDependencies(newResources, template, { removalsOnly: engine.options.parentStackInfo !== void 0 }));
47174
47370
  return {
47175
47371
  state: {
47176
47372
  version: 17,
@@ -48474,14 +48670,15 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
48474
48670
  stackName
48475
48671
  });
48476
48672
  const outputProvenanceBackfill = !outputsChanged && currentState.outputReferenceProvenance === void 0 && engine.provenanceBaseline?.tokenFree === false && engine.outputReferenceProvenanceFor(persistedOutputs, redactOutputs(engine.maskingDeps(), persistedOutputs)) !== void 0;
48477
- if (observedRefresh || outputProvenanceBackfill || maskedFingerprintsBackfilled || conditionVerdictsChanged || outputsChanged || exportSetChanged || skippedOutputsChanged || orphansChanged || supersededChanged || terminationProtectionChanged || ssmNamesHealed || nestedSsmNamesMarked || healedAttributesPending) {
48673
+ const refreshedResources = withTemplateDependencies(currentState.resources, effectiveTemplate, { removalsOnly: engine.options.parentStackInfo !== void 0 });
48674
+ if (observedRefresh || refreshedResources !== void 0 || outputProvenanceBackfill || maskedFingerprintsBackfilled || conditionVerdictsChanged || outputsChanged || exportSetChanged || skippedOutputsChanged || orphansChanged || supersededChanged || terminationProtectionChanged || ssmNamesHealed || nestedSsmNamesMarked || healedAttributesPending) {
48478
48675
  await resolveStackInstanceId();
48479
48676
  try {
48480
48677
  const refreshedState = {
48481
48678
  version: 17,
48482
48679
  region: engine.stackRegion,
48483
48680
  stackName: currentState.stackName,
48484
- resources: currentState.resources,
48681
+ resources: refreshedResources ?? currentState.resources,
48485
48682
  ...orphansCarriedFrom(currentState),
48486
48683
  ...stackInstanceIdCarriedFrom(currentState),
48487
48684
  outputs: outputsChanged ? outputsToPersist : persistedOutputs,
@@ -48504,6 +48701,7 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
48504
48701
  outputs: redactOutputs(engine.maskingDeps(), refreshedState.outputs)
48505
48702
  }));
48506
48703
  } else if (observedRefresh) engine.logger.debug("Persisted refreshed observedProperties (no-change path)");
48704
+ else if (refreshedResources !== void 0) engine.logger.debug("Persisted dependencies refreshed from the template (no-change path)");
48507
48705
  else if (healedAttributesPending) engine.logger.debug("Persisted attributes re-read from AWS for a stale record (no-change path)");
48508
48706
  else engine.logger.debug("Persisted skipped-outputs record (no outputs-value diff, no-change path)");
48509
48707
  } catch (saveError) {
@@ -48511,7 +48709,7 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
48511
48709
  }
48512
48710
  }
48513
48711
  }
48514
- const journaledOrphansLeft = engine.options.dryRun ? 0 : await settleJournalAfterSuccess(engine.rollbackDeps(), stackName, [], currentState, currentState.resources, currentEtag === void 0);
48712
+ const journaledOrphansLeft = engine.options.dryRun ? 0 : await settleJournalAfterSuccess(engine.rollbackDeps(), stackName, [], currentState, currentState.resources, currentEtag === void 0, effectiveTemplate);
48515
48713
  clock.lap("no-change path");
48516
48714
  return {
48517
48715
  stackName,
@@ -48622,7 +48820,7 @@ async function settleSuccessfulDeploy(engine, { stackName, template, currentStat
48622
48820
  }
48623
48821
  })();
48624
48822
  const [journaledOrphansLeft] = await Promise.all([
48625
- settleJournalAfterSuccess(engine.rollbackDeps(), stackName, completedOperations, currentState, newState.resources, currentEtag === void 0),
48823
+ settleJournalAfterSuccess(engine.rollbackDeps(), stackName, completedOperations, currentState, newState.resources, currentEtag === void 0, template),
48626
48824
  engine.exportIndexStore ? engine.exportIndexStore.updateForStack(stackName, engine.stackRegion, importableOutputs({
48627
48825
  ...newState,
48628
48826
  outputs: redactOutputs(engine.maskingDeps(), newState.outputs)
@@ -49247,4 +49445,4 @@ var DeployEngine = class {
49247
49445
  };
49248
49446
 
49249
49447
  export { isTtlAlreadyDisabled as $, refuseUnreadableCdkCrossAccountRefs as $a, isAccessDenied$1 as $c, ccRoutedFinalSnapshotError as $i, resolveAssemblyPath as $l, replayFailedOperations as $n, isPlainReferenceTo as $o, secretBearing as $r, UNREADABLE_ORPHANS_CONTAINER_ROW as $s, lookupEachName as $t, refusePendingMovesOut as A, CloudControlProvider as Aa, displayLogicalId as Ac, green as Ai, resolveFileAssetSourcePath as Al, noEchoMacBinding as An, extractGetAttRefs as Ao, REDACTED_DELETE_ADDRESS_SKIP_REASON as Ar, unreadableOrphanRecords as As, maskedLogger as At, readProtection as B, isWaitAbandonedError as Ba, NO_CC_HANDLERS_REASON as Bc, journaledOrphanPrintingBag as Bi, rememberSynthesizedStacks as Bl, rollbackOrphanIds as Bn, isImpossibleEmptyStoredAttribute as Bo, retiredAfterRollback as Br, refuseMalformedResourceEntriesForImport as Bs, readRefactorMarkerOnce as Bt, isAbsoluteAssetPath as C, customResourcesFailedWithoutApp as Ca, refuseMalformedState as Cc, supersededHeldByOtherTypeWarning as Ci, validateAssetBucketName as Cl, makeForeignHolderScan as Cn, AWS_NO_VALUE as Co, recordUnderIdIsNotOwn as Cr, malformedOrphanRowsKeptWarning as Cs, deleteBudgetKey as Ct, hasPendingMovesOut as D, setLocalCustomResourceRuntimeEnabled as Da, withheldAccountClause as Dc, bold as Di, getDockerImageBySourceHash as Dl, DeploymentEventsStore as Dn, lacksRecordedRefArn as Do, resolveReplacementOldType as Dr, refuseMalformedOrphansForOrphan as Ds, INDEX_SETTLE_POLL_INTERVAL_MS as Dt, templateIdentity as E, localCustomResourceRuntimeActive as Ea, accountArgs as Ec, withoutSuperseded as Ei, AssetManifestLoader as El, DeploymentEventsReader as En, refStateLookupFromResource as Eo, computeImplicitDeleteEdges as Er, refuseMalformedOrphanRecordsForDestroy as Es, DELETE_INDEX_WAIT_PROCEED_NOTE as Et, recordedProtectionEvidence as F, UNSPECIFIED_SKIP_REASON as Fa, findSdkUnwiredProperties as Fc, noEchoExactEchoLeavesOf as Fi, isListParameterType as Fl, findDestructiveChanges as Fn, recordedProvenanceOf as Fo, removeProtectionTypeList as Fr, malformedScrubResourceEntriesRefusalMessage as Fs, hasCdkAutoDeleteTag as Ft, declaredStreamTagsMember as G, stackIdTailOf as Ga, isKnownTokenFreeState as Gc, secretNamePrintingBags as Gi, nullPrototypeRecord as Gl, differingRemedy as Gn, withSharedDrainBudget as Go, inheritProducerRegions as Gr, malformedDriftResourcePropertiesWarning as Gs, updateRefactorMarker as Gt, STREAM_POLICY_KEY as H, isSelectOutOfBounds as Ha, TemplateParser as Hc, namingSecretsWithRecordedNoEcho as Hi, defineOwnKey as Hl, changedReferenceInDiff as Hn, isNamelessDynamicReferenceError as Ho, retiredNameGenerationsLeaving as Hr, refuseMalformedResourceEntriesForOrphan as Hs, refactorMarkerRefusalMessage as Ht, recordedProtectionNote as I, deleteIndeterminateGuards as Ia, unwrittenCreateOnlyReplacement as Ic, noEchoParameterNamesOf as Ii, ssmResolvedValueType as Il, formatDestructiveChange as In, recordedReferenceRegions as Io, orphanNeedsIdentity as Ir, refuseMalformedResourceAttributesForOrphan as Is, isTruthyCfnBoolean as It, streamDeclaresPolicy as J, maskedSecretSegment as Ja, rebuildClientForBucketRegion as Jc, stateSecretNameNeedles as Ji, assemblyPathEscape as Jl, mappingPairs as Jn, containsIntrinsic as Jo, reachableDivergentParameters as Jr, refuseMalformedResourcePropertiesForDestroy as Js, getPriorAttempts as Jt, planStreamMemberOps as K, isSettledInstanceState as Ka, hasReasonlessBaselineRefusal as Kc, secretNamedAttributeNamesOf as Ki, ownValue as Kl, isPairableType as Kn, namesRecreatedParent as Ko, computeParameterTaint as Kr, malformedResourcePropertiesWarning as Ks, macWriteOnlyKeys as Kt, PROTECTION_PROPERTY_BY_TYPE as L, deleteLeftInPlace as La, withoutAcceptedSdkUnwiredProperties as Lc, withAttemptedItemsMasked as Li, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Ll, findRefactorHints as Ln, referenceProvenanceOf as Lo, nameGenerationCarriedFrom as Lr, refuseMalformedResourceEntries as Ls, keptForRetainedRecord as Lt, findServiceTokenRefusals as M, resolvedResourceTimeoutMs as Ma, hasReadableResources as Mc, yellow as Mi, warnWholeAssemblyAsSource as Ml, noEchoMacVerdict as Mn, keepHeldTokenProvenance as Mo, redactedDeleteAddressFields as Mr, malformedLocalResourceEntriesWarning as Ms, waitForIndexesSettled as Mt, serviceTokenBlockingReason as N, setResolvedResourceTimeouts as Na, findActionableSdkUnwired as Nc, noEchoAttributeNamesOf as Ni, missingStateBucketRemedy as Nl, noEchoValueMacsOf as Nn, outputReferenceProvenanceOf as No, redactedDeleteAddressSkip as Nr, malformedLocalResourcesWarning as Ns, ECR_AUTO_DELETE_IMAGES_TAG as Nt, pendingMovesOutOf as O, withCustomResourceStack as Oa, STATE_RESOURCES_MALFORMED as Oc, cyan as Oi, isCfnTemplateAssetPath as Ol, NOECHO_MAC_KEY_ALIAS as On, lacksRecordedTableArn as Oo, withPreviousPolicies as Or, repairMalformedOrphanRecordsForReadOnly as Os, TABLE_INDEX_NOUN as Ot, diffSecurity as P, RollbackInlinePolicyWriters as Pa, findHandledUnwrittenCreateOnly as Pc, noEchoComparisonForTemplate as Pi, SSM_PARAMETER_VALUE_PREFIX as Pl, constructPathOf as Pn, recordedOutputReferenceRegions as Po, segmentCleanupOptions as Pr, malformedResourceEntriesWarning as Ps, S3_AUTO_DELETE_OBJECTS_TAG as Pt, streamTagsMatchDeclared as Q, producerLookupOver as Qa, crossPrefixDeniedWarning as Qc, PRE_DELETE_SNAPSHOT_TYPES as Qi, renderAssemblyPathEscape as Ql, referencedLogicalIds as Qn, findReplacedReadersOfRecreateTargets as Qo, exportAliasCollisionScrubWarning as Qr, repairMalformedResourcePropertiesForReadOnly as Qs, isAccessDeniedError as Qt, isProtectionValueActive as R, deleteSkipReason as Ra, withoutSdkUnwiredProperties as Rc, createReadOnlyAttributeHealerFactory as Ri, purgeNoncurrentKeyVersions as Rl, hintSidesOf as Rn, referenceTokensIn as Ro, nameGenerationHighWaterOf as Rr, refuseMalformedResourceEntriesForDeploy as Rs, recordRetainedForReadoption as Rt, findNestedTemplateTreeDefect as S, customResourceStackName as Sa, refuseMalformedResourcesForExport as Sc, supersededAfterRollback as Si, readBootstrapMarkerBody as Sl, sameJournaledOrphans as Sn, parameterTypeMayLoseSecretIdentity as So, recheckFailedPlan as Sr, malformedOrphanRecordsWarning as Ss, compensateRemovedDeletionProtection as St, renderNestedTemplateTreeDefect as T, localCustomResourceCommand as Ta, JSON_LISTING_HOLE_VALUE as Tc, supersededResourcesOf as Ti, BOOTSTRAP_MARKER_PREFIX as Tl, planOrphanAdoption as Tn, isStalePlaceholderArnAttribute as To, IMPLICIT_DELETE_DEPENDENCIES as Tr, refuseMalformedOrphanRecords as Ts, resolveDynamoDbDeleteBudgetMs as Tt, STREAM_TAGS_KEY as U, isAlwaysLiveAttribute as Ua, S3StateBackend as Uc, orphanRecordsPrintingBag as Ui, hasOwnKey as Ul, changedReferencePath as Un, carriesDynamicReference as Uo, withNameGenerationReached as Ur, repairMalformedResourceEntriesForReadOnly as Us, refuseRefactorMarker as Ut, DynamoDBGlobalTableProvider as V, IntrinsicFunctionResolver as Va, hasNoCloudControlHandlers as Vc, maskEventTextWithBoundBags as Vi, synthesizedStacks as Vl, withMovedTo as Vn, carriesFetchableDynamicReference as Vo, retiredNameGenerationsAfter as Vr, refuseMalformedResourceEntriesForImportSave as Vs, refactorMarkerMovesOf as Vt, declaredStreamPolicyMember as W, poisonRenderedSpellingsCollidingIn as Wa, splitImportedOps as Wc, secretNamePrintingBag as Wi, hasPlainPrototype as Wl, changedReferenceReason as Wn, keepsSecretReferenceToken as Wo, getCurrentProducerRegions as Wr, unreadableResourceEntries as Ws, sameMove as Wt, streamMemberRefusals as X, withSecretPhysicalIdsMaskedInState as Xa, CrossPrefixScanCache as Xc, extractDeploymentEventError as Xi, displayAssemblyPath as Xl, propertiesChangedReason as Xn, replacementSidesForLog as Xo, WITHHELD_NAME_DISPLAY as Xr, refuseMalformedResourcePropertiesForExport as Xs, formatResourceLine as Xt, streamDeclaresTags as Y, secretSegmentsOfState as Ya, CrossPrefixReadError as Yc, storedSecretNameNeedles as Yi, describeFileReadFailure as Yl, parseMappingFile as Yn, markNewValueKnownAfterDeploy as Yo, resourcesNamingDeclaredParameter as Yr, refuseMalformedResourcePropertiesForDrift as Ys, markRefusedBeforeApplying as Yt, streamPolicyMatchesDeclared as Z, resolveDynamicReferences as Za, applyCrossPrefixScan as Zc, ATOMIC_FINAL_SNAPSHOT_TYPES as Zi, namesTheSameDirectory as Zl, proposeRenames as Zn, siblingsOf as Zo, displayTextOrWithheld as Zr, refuseMalformedResourcePropertiesForOrphan as Zs, chunks as Zt, conditionFingerprint as _, readsNoEchoDeleteValues as _a, malformedRenderedContainersWarning as _c, withStackRecords as _i, buildDenyExternalAccessPolicy as _l, dropFailedCommands as _n, s3BucketDualStackDomainName as _o, seedsDeleteFirstGuard as _r, declaresNoEcho as _s, stripIndexContributorInsights as _t, scanActiveConsumers as a, createPreDeleteFinalSnapshot as aa, repairMalformedOrphansForReadOnly as ac, isWholeDynamicReferenceValue as ai, stringifyValue as al, displacedPhysicalIdShown as an, parseIamRoleArn as ao, calculateResourceDrift as ar, WARM_THROUGHPUT_MEMBERS as as, readbackVectorIndexes as at, readRecordedConditionVerdicts as b, withPrintingSecrets as ba, refuseMalformedResourcesForDeploy as bc, holdsSupersededResources as bi, getBootstrapMarkerKey as bl, journaledOrphanLines as bn, coerceParameterTypedValue as bo, isReplacementOrphan as br, isReadableOrphanRecord as bs, DYNAMODB_DELETE_POLL_COST_MS as bt, nestedSsmNameDeferredNote as c, ProviderRegistry as ca, malformedLocalOutputsWarning as cc, collectPublishedOutputNames as ci, flattenAssetPlaceholders as cl, nestedChildStackName as cn, applyCallerIdentityCredentials as co, undeclaredEmptyObservedKeys as cr, toCfnInteger as cs, vectorIndexesShapeDetail as ct, slashedSsmNameHealAdoptedNote as d, wouldReturnToSdkProvider as da, refuseMalformedNestedChildOutputs as dc, DEFAULT_RESOURCE_TIMEOUT_MS as di, loadPublishableAssetManifest as dl, revertedNestedRowIds as dn, classifyRecordedSecretRegion as do, earliestDefined as dr, inputFingerprinter as ds, indexDeclaresContributorInsights as dt, ccRoutedInstanceTakesNoSnapshot as ea, hasReadableOrphans as ec, secretBearingStateKeyWarning as ei, isNotImplemented as el, withApiLimit as en, applyRoleArnIfSet as eo, replayRollback as er, shownType as es, isTtlRateLimited as et, clearBucketRegionCache as eu, slashedSsmNameHealNote as f, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as fa, refuseMalformedOutputs as fc, DEFAULT_RESOURCE_WARN_AFTER_MS as fi, redirectDockerAsset as fl, withNestedRevertRun as fn, classifyReplaySecretRegion as fo, ledgerForStack as fr, maskedPropertyFingerprintsOf as fs, planContributorInsightsOp as ft, makeCanonicalizePropertiesFn as g, TemplateNoEchoReresolver as ga, refuseDivergentRecordRegionForDestroy as gc, getStackRecords as gi, ensureAssetStorage as gl, deleteJournaledOrphans as gn, s3BucketDomainName as go, planRollback as gr, passedParameterClassesOf as gs, reverseMapTableContributorInsights as gt, inheritedProvenanceForChildDiff as h, responsePresignClient as ha, STATE_REGION_DIVERGED as hc, destroyStackRecordsView as hi, AssetModeResolver as hl, withNestedStackContext as hn, s3BucketArn as ho, acquireIdempotencyToken as hr, maskedInputProof as hs, reverseMapIndexContributorInsights as ht, mergeNoChangeOutputs as i, unsupportedFinalSnapshotError as ia, refuseMalformedOrphansForDestroy as ic, exportNameSecretExposure as ii, isSensitiveAttributeName as il, displacedOpClause as in, isIamRoleArn as io, withUnprovenUnsettled as ir, renderStatefulReason as is, planVectorIndexUpdates as it, deferredServiceTokenWarning as j, waitForGoneAfterDelete as ja, hasReadableOutputs as jc, red as ji, warnAbsoluteAssetPath as jl, noEchoMacParametersOf as jn, promoteInPlaceAttributeDependents as jo, isRedactedRecordedValue as jr, isReadableResourceEntry as js, relayedIndexBusyDelete as jt, pendingMovesRefusalMessage as k, waitForLambdaFunctionActive as ka, UNREADABLE_RESOURCES_MAP_ROW as kc, gray as ki, parseAssetManifestBody as kl, createNoEchoValueMacs as kn, parseWebACLArn as ko, findNestedStackTypeChanges as kr, unpreviewableOrphanRecords as ks, deleteTableWithIndexBusyRetry as kt, nestedSsmNameRowNote as l, ccBrokenReason as la, malformedOutputsRefusalMessage as lc, isExportAliasCollision as li, isDefaultBootstrapBucketName as ll, recordDisplacedSkips as ln, callerEnvCredentials as lo, updatePartialMessage as lr, toFiniteNumber as ls, CONTRIBUTOR_INSIGHTS_KEY as lt, crossStackOutputProvenanceSource as m, customResourceResponseExpirationWarning as ma, repairMalformedOutputsForReadOnly as mc, awaitInFlightSibling as mi, rewriteTemplateAssetReferences as ml, getCurrentNestedStackContext as mn, regionLessSecretName as mo, withCreateTokenLedger as mr, parameterInputsFor as ms, readContributorInsightsSpec as mt, isSecretBearingReferenceString as n, isFinalSnapshotError as na, malformedOrphansWarning as nc, carriedExportAliasExposure as ni, withStackInstanceIdWithheld as nl, resolvePendingCloudControlRequests as nn, assertSendableRoleArn as no, recordAfterRollbackUpdate as nr, isStatefulRecreateTargetForReplace as ns, readTtlSpec as nt, inRunStackKey as o, buildFinalSnapshotIdentifier as oa, malformedExportNamesWarning as oc, noEchoParameterValueSeed as oi, buildAssetRedirectMap as ol, dropSettledNestedJournals as on, sendableAssumeRoleCommand as oo, equalModuloMarkedMask as or, coerceWarmThroughput as os, vectorIndexesForCreate as ot, slashedSsmNameHealPendingNote as p, applyCustomResourceResponseExpiration as pa, refuseMalformedOutputsForDestroy as pc, maskingRetryLogger as pi, redirectFileAsset as pl, collectNestedChildUnaddressed as pn, producerRegionsFromState as po, reserveStackCreateToken as pr, movedMaskedProperties as ps, planIndexContributorInsightsOps as pt, reverseMapStreamPolicy as q, APPSYNC_APIKEY_ARN_RESOURCE_PATH as qa, hasUnverifiableParameterRefusal as qc, secretNamedRecordNeedles as qi, absoluteAssemblyPathEscape as ql, looselyEqual as qn, INTRINSIC_KEYS as qo, namesAnyDeclaredParameter as qr, refuseMalformedResourceProperties as qs, readsOnlyNoEchoParameters as qt, keptWholeReasonText as r, refusesFinalSnapshot as ra, refuseMalformedOrphans as rc, exportNameNoEchoParameters as ri, isSecretValuedAttribute as rl, NESTED_PENDING_PARENT_REASON as rn, explicitRoleArnOrThrow as ro, settleUnsettledPrevious as rr, isStatefulRecreateTargetSync as rs, sendTtlWaitingOutRateLimit as rt, checkNestedSsmNames as s, CC_BROKEN_REASON as sa, malformedExportSourceWarning as sc, collectDeclaredOutputNames as si, createAssetRedirectResolver as sl, getNestedRevertRun as sn, AWS_CREDENTIAL_ENV_KEYS as so, equalModuloMask as sr, isWarmThroughputDecrease as ss, vectorIndexesSettled as st, DeployEngine as t, effectiveDeletionPolicy as ta, malformedOrphansRefusalMessage as tc, secretSafeKeyDisplay as ti, stackInstanceIdOf as tl, pendingRequestCount as tn, assertFlagRoleArn as to, DELETED_RESOURCE_REMEDY as tr, MULTI_REGION_RECREATE_BLOCKED_TYPES as ts, planTimeToLive as tt, resolveBucketRegion as tu, healSlashedSsmParameterNames as u, isCustomResource as ua, malformedOutputsWarning as uc, bindingSkippedOutputs as ui, isDefaultBootstrapRepoName as ul, revertNestedChildFromJournal as un, envCredentialsAreAssumedRole as uo, updatePartialReason as ur, tryGetTopLevelWriteOnlyProperties as us, contributorInsightsRefusals as ut, conditionInputsFrom as v, isCustomResourceType as va, malformedResourcesWarning as vc, replacedDeleteFailureVerdict as vi, assertAssetBucketRegion as vl, dropFailedHint as vn, s3BucketRegionalDomainName as vo, demoteSupersededOrphans as vr, maskedPropertyFingerprint as vs, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as vt, listNestedTemplateRows as w, customResourcesRunWithoutApp as wa, repairMalformedResourcesForReadOnly as wc, supersededHolderOf as wi, validateContainerRepoName as wl, makeSiblingClaimReader as wn, cfnRefValueFromPhysicalId as wo, replacementNeverSwapped as wr, previewableOrphanRecords as ws, resolveDynamoDbDeleteBudgetClock as wt, childTemplateLoader as x, NO_LOCAL_CUSTOM_RESOURCES_FLAG as xa, refuseMalformedResourcesForDestroy as xc, isSupersededResourceRecord as xi, parseBootstrapMarker as xl, loadJournaledOrphans as xn, isUnboundTemplateParameter as xo, planFailedOps as xr, malformedOrphanRecordsRefusalMessage as xs, beginDeleteWait as xt, parentSuppliedValues as y, getCurrentResourceSecrets as ya, malformedStateRefusalMessage as yc, deleteSupersededEntry as yi, isCrossRegionRedirect as yl, isHandledOrphan as yn, s3BucketWebsiteUrl as yo, isJournaledOrphan as yr, deployRefusesOrphanRowsReason as ys, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as yt, perType as z, withIndeterminateGuard as za, withoutUnwrittenSdkUnwiredProperties as zc, completedReplayEntries as zi, decodeListingKey as zl, movedToHint as zn, getAccountInfo as zo, nameScopeOf as zr, refuseMalformedResourceEntriesForDestroy as zs, readRefactorMarker as zt };
49250
- //# sourceMappingURL=deploy-engine-DLmPF7r5.js.map
49448
+ //# sourceMappingURL=deploy-engine-BZNCiQ-B.js.map