@cdkd/cli 0.350.4 → 0.351.1

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-B6WnCkIH.js} +3 -3
  2. package/dist/{ambient-client-defaults-CepgBr_y.js.map → ambient-client-defaults-B6WnCkIH.js.map} +1 -1
  3. package/dist/{asg-provider-26AfIhcd.js → asg-provider-Cvt28cjZ.js} +6 -6
  4. package/dist/{asg-provider-26AfIhcd.js.map → asg-provider-Cvt28cjZ.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-2Kfh-v8P.js → custom-resource-runtime-q-XZhmNY.js} +6 -6
  7. package/dist/{custom-resource-runtime-2Kfh-v8P.js.map → custom-resource-runtime-q-XZhmNY.js.map} +1 -1
  8. package/dist/db-associated-roles-C4lSFcA4.js +74 -0
  9. package/dist/db-associated-roles-C4lSFcA4.js.map +1 -0
  10. package/dist/delete-started-B5fdSbyi.js +887 -0
  11. package/dist/delete-started-B5fdSbyi.js.map +1 -0
  12. package/dist/{deploy-engine-DLmPF7r5.js → deploy-engine-BCutoRqN.js} +650 -198
  13. package/dist/deploy-engine-BCutoRqN.js.map +1 -0
  14. package/dist/{diff-calculator-DYUmMeew.js → diff-calculator-Dpy3mtdK.js} +12 -12
  15. package/dist/{diff-calculator-DYUmMeew.js.map → diff-calculator-Dpy3mtdK.js.map} +1 -1
  16. package/dist/{ec2-termination-protection-Di3eM8PN.js → ec2-termination-protection-DEedWKNw.js} +6 -6
  17. package/dist/{ec2-termination-protection-Di3eM8PN.js.map → ec2-termination-protection-DEedWKNw.js.map} +1 -1
  18. package/dist/{ecr-uri-6HdJfJPR.js → ecr-uri-BdY53T_-.js} +2 -2
  19. package/dist/{ecr-uri-6HdJfJPR.js.map → ecr-uri-BdY53T_-.js.map} +1 -1
  20. package/dist/{expected-bucket-owner-Drp-CSQY.js → expected-bucket-owner-iywep2CV.js} +2 -2
  21. package/dist/{expected-bucket-owner-Drp-CSQY.js.map → expected-bucket-owner-iywep2CV.js.map} +1 -1
  22. package/dist/{iam-role-provider-B5c4V2kT.js → iam-role-provider-BQAmYWyO.js} +7 -7
  23. package/dist/{iam-role-provider-B5c4V2kT.js.map → iam-role-provider-BQAmYWyO.js.map} +1 -1
  24. package/dist/{image-plan-CYouJkYM.js → image-plan-Cc837NpF.js} +8 -8
  25. package/dist/{image-plan-CYouJkYM.js.map → image-plan-Cc837NpF.js.map} +1 -1
  26. package/dist/index.d.ts +7 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/{logger-6lyGJVGE.js → logger-CmaW95DR.js} +2 -2
  30. package/dist/{logger-6lyGJVGE.js.map → logger-CmaW95DR.js.map} +1 -1
  31. package/dist/{neptune-provider-Dhody0jz.js → neptune-provider-BkaMldJg.js} +7 -7
  32. package/dist/{neptune-provider-Dhody0jz.js.map → neptune-provider-BkaMldJg.js.map} +1 -1
  33. package/dist/{program-BMBei2v9.js → program-8-3OnhIJ.js} +122 -22
  34. package/dist/program-8-3OnhIJ.js.map +1 -0
  35. package/dist/{provider-classes-B3qqzXp-.js → provider-classes-DcmiLT1V.js} +276 -113
  36. package/dist/provider-classes-DcmiLT1V.js.map +1 -0
  37. package/dist/{rds-provider-CXjWWFKT.js → rds-provider-BWOEzXOQ.js} +20 -691
  38. package/dist/rds-provider-BWOEzXOQ.js.map +1 -0
  39. package/dist/{read-replica-iA8yd-HO.js → read-replica-BQhsK5Fn.js} +3 -3
  40. package/dist/{read-replica-iA8yd-HO.js.map → read-replica-BQhsK5Fn.js.map} +1 -1
  41. package/dist/{replacement-rules-B4fLD_Ru.js → replacement-rules-DywtM6vS.js} +60 -7
  42. package/dist/replacement-rules-DywtM6vS.js.map +1 -0
  43. package/dist/{resource-deadline-BcEyGRdL.js → resource-deadline-C_l7cJ75.js} +45 -5
  44. package/dist/resource-deadline-C_l7cJ75.js.map +1 -0
  45. package/dist/{run-cli-Dp938GHN.js → run-cli-lankPggb.js} +2 -2
  46. package/dist/{run-cli-Dp938GHN.js.map → run-cli-lankPggb.js.map} +1 -1
  47. package/dist/{update-removal-1ZPAMzvz.js → update-removal-MnBAwEGA.js} +4 -4
  48. package/dist/{update-removal-1ZPAMzvz.js.map → update-removal-MnBAwEGA.js.map} +1 -1
  49. package/dist/{version-D_7vFUjp.js → version-7SpD1NBk.js} +2 -2
  50. package/dist/{version-D_7vFUjp.js.map → version-7SpD1NBk.js.map} +1 -1
  51. package/package.json +3 -3
  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-7SpD1NBk.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-CmaW95DR.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-B6WnCkIH.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-DEedWKNw.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-iywep2CV.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-MnBAwEGA.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-B5fdSbyi.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-DywtM6vS.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-C_l7cJ75.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-iywep2CV.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"]),
@@ -8682,34 +8687,34 @@ function passedKey(passed) {
8682
8687
  function isNestedStackRow(logicalId, walk) {
8683
8688
  if (!Object.hasOwn(walk.resources, logicalId)) return false;
8684
8689
  const definition = walk.resources[logicalId];
8685
- return isPlainObject$8(definition) && definition["Type"] === "AWS::CloudFormation::Stack";
8690
+ return isPlainObject$9(definition) && definition["Type"] === "AWS::CloudFormation::Stack";
8686
8691
  }
8687
8692
  function getAttAttribute(operand, target) {
8688
8693
  if (Array.isArray(operand)) return operand.length === 2 && typeof operand[1] === "string" ? operand[1] : void 0;
8689
8694
  return typeof operand === "string" ? operand.slice(target.length + 1) : void 0;
8690
8695
  }
8691
8696
  function rowParameters(definition) {
8692
- const properties = isPlainObject$8(definition) ? definition["Properties"] : void 0;
8697
+ const properties = isPlainObject$9(definition) ? definition["Properties"] : void 0;
8693
8698
  if (properties === void 0) return {};
8694
- if (!isPlainObject$8(properties)) return "unknown";
8699
+ if (!isPlainObject$9(properties)) return "unknown";
8695
8700
  const parameters = properties["Parameters"];
8696
8701
  if (parameters === void 0) return {};
8697
- if (!isPlainObject$8(parameters) || intrinsicKey(parameters) !== void 0) return "unknown";
8702
+ if (!isPlainObject$9(parameters) || intrinsicKey(parameters) !== void 0) return "unknown";
8698
8703
  return parameters;
8699
8704
  }
8700
8705
  function childParameterInputs(template, passed) {
8701
- const declared = isPlainObject$8(template.Parameters) ? template.Parameters : {};
8706
+ const declared = isPlainObject$9(template.Parameters) ? template.Parameters : {};
8702
8707
  const inputs = /* @__PURE__ */ new Map();
8703
8708
  for (const name of Object.keys(declared)) {
8704
8709
  const definition = declared[name];
8705
- if (isPlainObject$8(definition) && declaresNoEcho(definition)) inputs.set(name, { kind: "secret" });
8710
+ if (isPlainObject$9(definition) && declaresNoEcho(definition)) inputs.set(name, { kind: "secret" });
8706
8711
  else if (passed.has(name)) {
8707
8712
  const passedClass = passed.get(name);
8708
8713
  inputs.set(name, passedClass === "clean" ? {
8709
8714
  kind: "value",
8710
8715
  value: void 0
8711
8716
  } : passedClass === "unknown" ? { kind: "unknown" } : { kind: "secret" });
8712
- } else if (isPlainObject$8(definition) && Object.hasOwn(definition, "Default") && !carriesSecretValue(definition["Default"], [])) inputs.set(name, {
8717
+ } else if (isPlainObject$9(definition) && Object.hasOwn(definition, "Default") && !carriesSecretValue(definition["Default"], [])) inputs.set(name, {
8713
8718
  kind: "value",
8714
8719
  value: definition["Default"]
8715
8720
  });
@@ -8726,7 +8731,7 @@ function closureClass(closure) {
8726
8731
  return closure.unread ? "unread" : "clean";
8727
8732
  }
8728
8733
  async function childOutputClass(loaded, outputName, passed, chain, shared) {
8729
- if (loaded === void 0 || !isPlainObject$8(loaded.template)) return "unknown";
8734
+ if (loaded === void 0 || !isPlainObject$9(loaded.template)) return "unknown";
8730
8735
  const scopeKey = JSON.stringify([loaded.identity, passedKey(passed)]);
8731
8736
  const memoKey = JSON.stringify([scopeKey, outputName]);
8732
8737
  const memo = shared.outputs.get(memoKey);
@@ -8739,8 +8744,8 @@ async function classifyChildOutput(loaded, outputName, passed, chain, shared, sc
8739
8744
  if (++shared.steps > MAX_NESTED_OUTPUT_STEPS) return "unknown";
8740
8745
  if (chain.includes(loaded.identity) || chain.length >= MAX_NESTED_OUTPUT_DEPTH) return "unknown";
8741
8746
  const template = loaded.template;
8742
- const output = (isPlainObject$8(template.Outputs) ? template.Outputs : {})[outputName];
8743
- if (!isPlainObject$8(output) || !Object.hasOwn(output, "Value")) return "unknown";
8747
+ const output = (isPlainObject$9(template.Outputs) ? template.Outputs : {})[outputName];
8748
+ if (!isPlainObject$9(output) || !Object.hasOwn(output, "Value")) return "unknown";
8744
8749
  const scope = {
8745
8750
  walk: newWalk({
8746
8751
  template,
@@ -8812,14 +8817,14 @@ async function expressionClass(value, scope) {
8812
8817
  return result;
8813
8818
  };
8814
8819
  if (Array.isArray(value)) return all(value);
8815
- if (!isPlainObject$8(value)) return "clean";
8820
+ if (!isPlainObject$9(value)) return "clean";
8816
8821
  const key = intrinsicKey(value);
8817
8822
  if (key === void 0) return all(Object.values(value));
8818
8823
  const operand = value[key];
8819
8824
  switch (key) {
8820
8825
  case "Ref": return typeof operand === "string" ? nameClass(operand, scope) : "unknown";
8821
8826
  case "Fn::GetAtt": {
8822
- const target = getAttTarget(operand);
8827
+ const target = getAttTarget$1(operand);
8823
8828
  if (target === void 0) return "secret";
8824
8829
  const attribute = getAttAttribute(operand, target);
8825
8830
  return worseOf(attribute === void 0 && Array.isArray(operand) ? await all(operand.slice(1)) : "clean", await attributeClass(target, attribute, scope));
@@ -8827,7 +8832,7 @@ async function expressionClass(value, scope) {
8827
8832
  case "Fn::Sub": {
8828
8833
  const text = Array.isArray(operand) ? operand[0] : operand;
8829
8834
  if (typeof text !== "string") return worseOf("unknown", await expressionClass(operand, scope));
8830
- const vars = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
8835
+ const vars = Array.isArray(operand) && isPlainObject$9(operand[1]) ? operand[1] : {};
8831
8836
  let result = text.includes("{{resolve:") ? "secret" : "clean";
8832
8837
  result = worseOf(result, await all(Object.values(vars)));
8833
8838
  for (const name of subPlaceholders(text)) {
@@ -8919,7 +8924,7 @@ async function classifyPassedParameters(parameters, sources) {
8919
8924
  }
8920
8925
  async function classifyPassed(parameters, sources, nested) {
8921
8926
  const classes = /* @__PURE__ */ new Map();
8922
- if (!isPlainObject$8(parameters)) return classes;
8927
+ if (!isPlainObject$9(parameters)) return classes;
8923
8928
  for (const [name, expression] of Object.entries(parameters)) {
8924
8929
  let passedClass;
8925
8930
  try {
@@ -8941,7 +8946,7 @@ function passedParameterClassesOf(bag) {
8941
8946
 
8942
8947
  // src/deployment/masked-property-fingerprints/input-walk.ts
8943
8948
  var UnknownInput = class extends Error {};
8944
- function isPlainObject$8(value) {
8949
+ function isPlainObject$9(value) {
8945
8950
  return value !== null && typeof value === "object" && !Array.isArray(value);
8946
8951
  }
8947
8952
  const DYNAMIC_REFERENCE_OPEN = "{{resolve:";
@@ -8961,7 +8966,7 @@ function carriesSecretValue(value, corpora) {
8961
8966
  return false;
8962
8967
  }
8963
8968
  function parameterInputsFor(args) {
8964
- const declared = isPlainObject$8(args.template.Parameters) ? args.template.Parameters : {};
8969
+ const declared = isPlainObject$9(args.template.Parameters) ? args.template.Parameters : {};
8965
8970
  const values = args.values ?? {};
8966
8971
  const inputs = /* @__PURE__ */ new Map();
8967
8972
  const bound = {};
@@ -8972,7 +8977,7 @@ function parameterInputsFor(args) {
8972
8977
  continue;
8973
8978
  }
8974
8979
  const value = values[name];
8975
- let secret = isPlainObject$8(definition) && declaresNoEcho(definition) || carriesSecretValue(value, []);
8980
+ let secret = isPlainObject$9(definition) && declaresNoEcho(definition) || carriesSecretValue(value, []);
8976
8981
  if (!secret && args.nestedChild === true && args.supplied !== void 0) {
8977
8982
  if (Object.hasOwn(args.supplied, name)) {
8978
8983
  const passed = args.passedClasses?.get(name);
@@ -9032,10 +9037,10 @@ function intrinsicKey(value) {
9032
9037
  const OPAQUE_ATTRIBUTE_TYPES = /* @__PURE__ */ new Set(["AWS::CloudFormation::CustomResource", NESTED_STACK_TYPE$5]);
9033
9038
  function hasOpaqueAttributes(logicalId, walk) {
9034
9039
  const definition = walk.resources[logicalId];
9035
- const type = isPlainObject$8(definition) ? definition["Type"] : void 0;
9040
+ const type = isPlainObject$9(definition) ? definition["Type"] : void 0;
9036
9041
  return typeof type === "string" && (type.startsWith("Custom::") || OPAQUE_ATTRIBUTE_TYPES.has(type));
9037
9042
  }
9038
- function getAttTarget(operand) {
9043
+ function getAttTarget$1(operand) {
9039
9044
  if (Array.isArray(operand) && typeof operand[0] === "string") return operand[0];
9040
9045
  if (typeof operand === "string" && operand.includes(".")) return operand.split(".")[0];
9041
9046
  }
@@ -9057,19 +9062,19 @@ function taintOf(logicalId, walk) {
9057
9062
  const visit = (value) => {
9058
9063
  if (typeof value === "string") return value.includes(DYNAMIC_REFERENCE_OPEN);
9059
9064
  if (Array.isArray(value)) return value.some(visit);
9060
- if (!isPlainObject$8(value)) return false;
9065
+ if (!isPlainObject$9(value)) return false;
9061
9066
  const key = intrinsicKey(value);
9062
9067
  const operand = key === void 0 ? void 0 : value[key];
9063
9068
  let verdict = "clean";
9064
9069
  if (key === "Ref" && typeof operand === "string") verdict = nameTaint(operand);
9065
9070
  else if (key === "Fn::GetAtt") {
9066
- const target = getAttTarget(operand);
9071
+ const target = getAttTarget$1(operand);
9067
9072
  verdict = target === void 0 || Object.hasOwn(walk.resources, target) && hasOpaqueAttributes(target, walk) ? "tainted" : nameTaint(target);
9068
9073
  } else if (key === "Fn::ImportValue" || key === "Fn::GetStackOutput") verdict = "tainted";
9069
9074
  else if (key === "Fn::FindInMap" && mapReadClass(operand, walk.sources.template) !== "clean") verdict = "tainted";
9070
9075
  else if (key === "Fn::Sub") {
9071
9076
  const text = Array.isArray(operand) ? operand[0] : operand;
9072
- const vars = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
9077
+ const vars = Array.isArray(operand) && isPlainObject$9(operand[1]) ? operand[1] : {};
9073
9078
  if (typeof text === "string") for (const name of subPlaceholders(text)) {
9074
9079
  if (Object.hasOwn(vars, name)) continue;
9075
9080
  const owner = name.includes(".") ? name.split(".")[0] : name;
@@ -9083,7 +9088,7 @@ function taintOf(logicalId, walk) {
9083
9088
  return Object.values(value).some(visit);
9084
9089
  };
9085
9090
  const definition = walk.resources[logicalId];
9086
- const result = visit(isPlainObject$8(definition) ? definition["Properties"] : void 0) ? "tainted" : unknown ? "unknown" : "clean";
9091
+ const result = visit(isPlainObject$9(definition) ? definition["Properties"] : void 0) ? "tainted" : unknown ? "unknown" : "clean";
9087
9092
  walk.inProgress.delete(logicalId);
9088
9093
  walk.taint.set(logicalId, result);
9089
9094
  return result;
@@ -9099,7 +9104,7 @@ function conditionInput(name, walk) {
9099
9104
  return typeof verdict === "boolean" ? verdict : "unknown";
9100
9105
  }
9101
9106
  function conditionClosure(name, walk) {
9102
- const definitions = isPlainObject$8(walk.sources.template.Conditions) ? walk.sources.template.Conditions : {};
9107
+ const definitions = isPlainObject$9(walk.sources.template.Conditions) ? walk.sources.template.Conditions : {};
9103
9108
  let secret = false;
9104
9109
  let unknown = false;
9105
9110
  let unread = false;
@@ -9114,7 +9119,7 @@ function conditionClosure(name, walk) {
9114
9119
  value.forEach(visit);
9115
9120
  return;
9116
9121
  }
9117
- if (!isPlainObject$8(value)) return;
9122
+ if (!isPlainObject$9(value)) return;
9118
9123
  const keys = Object.keys(value);
9119
9124
  if (keys.length === 1 && keys[0] === "Condition" && typeof value["Condition"] === "string") {
9120
9125
  pending.push(value["Condition"]);
@@ -9147,7 +9152,7 @@ function conditionClosure(name, walk) {
9147
9152
  if (key === "Fn::Sub") {
9148
9153
  const operand = value["Fn::Sub"];
9149
9154
  const text = Array.isArray(operand) ? operand[0] : operand;
9150
- const vars = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
9155
+ const vars = Array.isArray(operand) && isPlainObject$9(operand[1]) ? operand[1] : {};
9151
9156
  if (typeof text === "string") for (const name of subPlaceholders(text)) {
9152
9157
  if (Object.hasOwn(vars, name)) continue;
9153
9158
  if (name.includes(".") && !name.startsWith("AWS::")) secret = true;
@@ -9176,8 +9181,8 @@ function mapReadClass(operand, template) {
9176
9181
  const mapName = Array.isArray(operand) ? operand[0] : void 0;
9177
9182
  if (typeof mapName !== "string") return "unknown";
9178
9183
  const mappings = template.Mappings;
9179
- const map = isPlainObject$8(mappings) && Object.hasOwn(mappings, mapName) ? mappings[mapName] : void 0;
9180
- if (!isPlainObject$8(map)) return "unknown";
9184
+ const map = isPlainObject$9(mappings) && Object.hasOwn(mappings, mapName) ? mappings[mapName] : void 0;
9185
+ if (!isPlainObject$9(map)) return "unknown";
9181
9186
  return carriesSecretValue(map, []) ? "secret" : "clean";
9182
9187
  }
9183
9188
  async function resolvedInput(node, walk) {
@@ -9255,7 +9260,7 @@ async function inputForm(value, walk) {
9255
9260
  ...proof(walk, () => parts.every(isProven))
9256
9261
  };
9257
9262
  }
9258
- if (!isPlainObject$8(value)) return {
9263
+ if (!isPlainObject$9(value)) return {
9259
9264
  form: value,
9260
9265
  concrete: true
9261
9266
  };
@@ -9276,7 +9281,7 @@ async function inputForm(value, walk) {
9276
9281
  concrete: false
9277
9282
  };
9278
9283
  case "Fn::GetAtt": {
9279
- const target = getAttTarget(operand);
9284
+ const target = getAttTarget$1(operand);
9280
9285
  if (target !== void 0 && isNestedStackRow(target, walk)) return nestedOutputInput(target, getAttAttribute(operand, target), value, walk);
9281
9286
  if (target === void 0 || !Object.hasOwn(walk.resources, target) || hasOpaqueAttributes(target, walk)) return {
9282
9287
  form: value,
@@ -9319,7 +9324,7 @@ async function inputForm(value, walk) {
9319
9324
  concrete: false
9320
9325
  };
9321
9326
  }
9322
- const explicit = Array.isArray(operand) && isPlainObject$8(operand[1]) ? operand[1] : {};
9327
+ const explicit = Array.isArray(operand) && isPlainObject$9(operand[1]) ? operand[1] : {};
9323
9328
  const vars = await inputForm(explicit, walk);
9324
9329
  const placeholders = [];
9325
9330
  let concrete = vars.concrete && !text.includes("{{resolve:");
@@ -9377,8 +9382,8 @@ function newWalk(sources, nested = {
9377
9382
  return {
9378
9383
  ...covered !== void 0 && { covered },
9379
9384
  sources,
9380
- resources: isPlainObject$8(sources.template.Resources) ? sources.template.Resources : {},
9381
- parameters: isPlainObject$8(sources.template.Parameters) ? sources.template.Parameters : {},
9385
+ resources: isPlainObject$9(sources.template.Resources) ? sources.template.Resources : {},
9386
+ parameters: isPlainObject$9(sources.template.Parameters) ? sources.template.Parameters : {},
9382
9387
  taint: /* @__PURE__ */ new Map(),
9383
9388
  inProgress: /* @__PURE__ */ new Set(),
9384
9389
  stackChain: nested.stackChain,
@@ -9414,7 +9419,7 @@ function possiblyMaskedKeys(resolvedProps, corpora) {
9414
9419
  const wholeShortLeaf = (value) => {
9415
9420
  if (typeof value === "string") return short.includes(value);
9416
9421
  if (Array.isArray(value)) return value.some(wholeShortLeaf);
9417
- if (isPlainObject$8(value)) return Object.values(value).some(wholeShortLeaf);
9422
+ if (isPlainObject$9(value)) return Object.values(value).some(wholeShortLeaf);
9418
9423
  return false;
9419
9424
  };
9420
9425
  return Object.keys(resolvedProps).filter((key) => {
@@ -9445,7 +9450,7 @@ function maskedPropertyFingerprintsOf(record) {
9445
9450
  const read = /* @__PURE__ */ new Map();
9446
9451
  if (record === null || typeof record !== "object") return read;
9447
9452
  const field = record.maskedPropertyFingerprints;
9448
- if (!isPlainObject$8(field)) return read;
9453
+ if (!isPlainObject$9(field)) return read;
9449
9454
  for (const [key, value] of Object.entries(field)) if (typeof value === "string" && value.startsWith("sha256:")) read.set(key, value);
9450
9455
  return read;
9451
9456
  }
@@ -9453,7 +9458,7 @@ function maskedPropertyInputFingerprintsOf(record) {
9453
9458
  const read = /* @__PURE__ */ new Map();
9454
9459
  if (record === null || typeof record !== "object") return read;
9455
9460
  const field = record.maskedPropertyInputFingerprints;
9456
- if (!isPlainObject$8(field)) return read;
9461
+ if (!isPlainObject$9(field)) return read;
9457
9462
  const text = maskedPropertyFingerprintsOf(record);
9458
9463
  for (const [key, value] of Object.entries(field)) {
9459
9464
  if (typeof value !== "string" || !value.startsWith("inputs-sha256:")) continue;
@@ -9500,7 +9505,7 @@ async function movedMaskedProperties(record, templateProps, fingerprinter, onReb
9500
9505
  function withRebaselinedFingerprints(record, fingerprints) {
9501
9506
  const text = maskedPropertyFingerprintsOf(record);
9502
9507
  const field = record.maskedPropertyInputFingerprints;
9503
- const next = isPlainObject$8(field) ? Object.entries(field) : [];
9508
+ const next = isPlainObject$9(field) ? Object.entries(field) : [];
9504
9509
  let changed = false;
9505
9510
  for (const [key, value] of Object.entries(fingerprints)) {
9506
9511
  if (text.get(key) !== splitInputFingerprint(value).text) continue;
@@ -9533,10 +9538,10 @@ function withMaskedPropertyFingerprints(scrubbed, writtenBag, templateProps, sec
9533
9538
  fingerprints = maskedPropertyFingerprintsFor(scrubbed.properties, templateProps);
9534
9539
  inputs = boundInputFingerprints(fingerprints, inputFingerprints);
9535
9540
  } else {
9536
- if (!isPlainObject$8(previous)) return scrubbed;
9541
+ if (!isPlainObject$9(previous)) return scrubbed;
9537
9542
  if (corpora.length === 0) return scrubbed;
9538
9543
  fingerprints = { ...previous };
9539
- inputs = isPlainObject$8(previousInputs) ? { ...previousInputs } : void 0;
9544
+ inputs = isPlainObject$9(previousInputs) ? { ...previousInputs } : void 0;
9540
9545
  }
9541
9546
  if (fingerprints !== void 0 && corpora.length > 0) {
9542
9547
  const refused = Object.keys(fingerprints).filter((key) => Object.hasOwn(templateProps, key) && corpora.some((corpus) => templateCarriesNeedle(templateProps[key], corpus)));
@@ -11624,11 +11629,11 @@ function validReferenceRegion(region) {
11624
11629
  if (typeof region !== "string") return void 0;
11625
11630
  return canonicalizeRegion(region) === region && isClientSafeRegion(region) ? region : void 0;
11626
11631
  }
11627
- function isPlainObject$7(value) {
11632
+ function isPlainObject$8(value) {
11628
11633
  return value !== null && typeof value === "object" && !Array.isArray(value);
11629
11634
  }
11630
11635
  function validateReferenceProvenance(token, raw) {
11631
- if (!isSingleDynamicReferenceToken(token) || !isPlainObject$7(raw)) return void 0;
11636
+ if (!isSingleDynamicReferenceToken(token) || !isPlainObject$8(raw)) return void 0;
11632
11637
  const versionsRaw = Object.hasOwn(raw, "versions") ? raw["versions"] : void 0;
11633
11638
  const readRaw = Object.hasOwn(raw, "readVersions") ? raw["readVersions"] : void 0;
11634
11639
  if (readRaw !== void 0) {
@@ -11646,11 +11651,11 @@ function validateReferenceProvenance(token, raw) {
11646
11651
  return out;
11647
11652
  }
11648
11653
  function referenceProvenanceOf(record) {
11649
- if (!isPlainObject$7(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
11654
+ if (!isPlainObject$8(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
11650
11655
  return validatedBag(record["referenceProvenance"]);
11651
11656
  }
11652
11657
  function validatedBag(field) {
11653
- if (!isPlainObject$7(field)) return void 0;
11658
+ if (!isPlainObject$8(field)) return void 0;
11654
11659
  const out = Object.create(null);
11655
11660
  for (const [token, raw] of Object.entries(field)) {
11656
11661
  const entry = validateReferenceProvenance(token, raw);
@@ -11659,9 +11664,9 @@ function validatedBag(field) {
11659
11664
  return { ...out };
11660
11665
  }
11661
11666
  function recordedProvenanceOf(record, token) {
11662
- if (!isPlainObject$7(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
11667
+ if (!isPlainObject$8(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
11663
11668
  const field = record["referenceProvenance"];
11664
- if (!isPlainObject$7(field) || !Object.hasOwn(field, token)) return void 0;
11669
+ if (!isPlainObject$8(field) || !Object.hasOwn(field, token)) return void 0;
11665
11670
  return validateReferenceProvenance(token, field[token]);
11666
11671
  }
11667
11672
  function recordedReferenceRegions(record) {
@@ -11683,7 +11688,7 @@ function regionsOf(field) {
11683
11688
  function keepHeldTokenProvenance(record) {
11684
11689
  if (!hasReferenceProvenanceField(record)) return record;
11685
11690
  const field = record.referenceProvenance;
11686
- if (!isPlainObject$7(field)) return record;
11691
+ if (!isPlainObject$8(field)) return record;
11687
11692
  const held = recordReferenceTokens(record);
11688
11693
  const keys = Object.keys(field);
11689
11694
  if (keys.every((token) => held.has(token))) return record;
@@ -11695,12 +11700,12 @@ function keepHeldTokenProvenance(record) {
11695
11700
  };
11696
11701
  }
11697
11702
  function hasReferenceProvenanceField(record) {
11698
- return isPlainObject$7(record) && Object.hasOwn(record, "referenceProvenance") && record["referenceProvenance"] !== void 0;
11703
+ return isPlainObject$8(record) && Object.hasOwn(record, "referenceProvenance") && record["referenceProvenance"] !== void 0;
11699
11704
  }
11700
11705
  function outputReferenceProvenanceOf(state, outputKey) {
11701
- if (!isPlainObject$7(state) || !Object.hasOwn(state, "outputReferenceProvenance")) return;
11706
+ if (!isPlainObject$8(state) || !Object.hasOwn(state, "outputReferenceProvenance")) return;
11702
11707
  const field = state["outputReferenceProvenance"];
11703
- if (!isPlainObject$7(field) || !Object.hasOwn(field, outputKey)) return void 0;
11708
+ if (!isPlainObject$8(field) || !Object.hasOwn(field, outputKey)) return void 0;
11704
11709
  return validatedBag(field[outputKey]);
11705
11710
  }
11706
11711
  function persistable(token, entry) {
@@ -11718,7 +11723,7 @@ function tokensUnderPaths(properties, paths) {
11718
11723
  for (const item of value) descend(item, path, next);
11719
11724
  return;
11720
11725
  }
11721
- if (isPlainObject$7(value) && Object.hasOwn(value, path[at])) descend(value[path[at]], path, at + 1);
11726
+ if (isPlainObject$8(value) && Object.hasOwn(value, path[at])) descend(value[path[at]], path, at + 1);
11722
11727
  };
11723
11728
  for (const path of paths) descend(properties, path, 0);
11724
11729
  return out;
@@ -11761,7 +11766,7 @@ function unionWithPrevious(pass, before) {
11761
11766
  }
11762
11767
  function outputProvenanceForPersist(args) {
11763
11768
  const { outputs, resolvedThisRun, carriedFrom, sinkOf } = args;
11764
- if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$7(carriedFrom.outputReferenceProvenance) ? carriedFrom.outputReferenceProvenance : void 0;
11769
+ if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$8(carriedFrom.outputReferenceProvenance) ? carriedFrom.outputReferenceProvenance : void 0;
11765
11770
  let out;
11766
11771
  for (const [outputKey, value] of Object.entries(outputs)) {
11767
11772
  const sink = sinkOf(outputKey);
@@ -12538,6 +12543,54 @@ 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
+ "AWS::ElastiCache::CacheCluster": {
12565
+ RedisEndpoint: { required: ["Address", "Port"] },
12566
+ ConfigurationEndpoint: { required: ["Address", "Port"] }
12567
+ }
12568
+ };
12569
+ function shapeOf(resourceType, attributeName) {
12570
+ if (!Object.hasOwn(FLAT_OBJECT_MEMBERS, resourceType)) return void 0;
12571
+ const byType = FLAT_OBJECT_MEMBERS[resourceType];
12572
+ return Object.hasOwn(byType, attributeName) ? byType[attributeName] : void 0;
12573
+ }
12574
+ function memberValue(attributes, key) {
12575
+ const value = Object.hasOwn(attributes, key) ? attributes[key] : void 0;
12576
+ return value === null || value === "" ? void 0 : value;
12577
+ }
12578
+ function assembleFlatObjectAttribute(resourceType, attributeName, attributes) {
12579
+ const shape = attributes === void 0 ? void 0 : shapeOf(resourceType, attributeName);
12580
+ if (attributes === void 0 || shape === void 0) return void 0;
12581
+ const entries = [];
12582
+ for (const member of shape.required) {
12583
+ const value = memberValue(attributes, `${attributeName}.${member}`);
12584
+ if (value === void 0) return void 0;
12585
+ entries.push([member, value]);
12586
+ }
12587
+ for (const member of shape.optional ?? []) {
12588
+ const value = memberValue(attributes, `${attributeName}.${member}`);
12589
+ if (value !== void 0) entries.push([member, value]);
12590
+ }
12591
+ return Object.fromEntries(entries.sort(([a], [b]) => a.localeCompare(b)));
12592
+ }
12593
+
12541
12594
  // src/deployment/intrinsic-resolver/getatt-heal.ts
12542
12595
  function staleRecordRemedy(resolver, outcome, context) {
12543
12596
  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 +12635,9 @@ async function healStaleAttributes(_resolver, logicalId, resource, context) {
12582
12635
  };
12583
12636
  }
12584
12637
  }
12585
- function usableHealedAttribute(_resolver, outcome, attributeName) {
12638
+ function usableHealedAttribute(_resolver, outcome, attributeName, resourceType) {
12586
12639
  if (outcome?.kind !== "read") return void 0;
12587
- const value = readHealedAttribute(outcome.attributes, attributeName);
12640
+ const value = readHealedAttribute(outcome.attributes, attributeName) ?? (resourceType === void 0 ? void 0 : assembleFlatObjectAttribute(resourceType, attributeName, outcome.attributes));
12588
12641
  return value === void 0 || carriesSecretMask(value) ? void 0 : value;
12589
12642
  }
12590
12643
  function serveHealedAttribute(resolver, logicalId, attributeName, value, context) {
@@ -12606,7 +12659,7 @@ async function constructWithStaleRecordHeal(resolver, resource, attributeName, c
12606
12659
  if (!(error instanceof StaleAttributeMissSignal)) throw error;
12607
12660
  }
12608
12661
  const outcome = await healStaleAttributes(resolver, logicalId, resource, context) ?? { kind: "not-attempted" };
12609
- const healed = usableHealedAttribute(resolver, outcome, attributeName);
12662
+ const healed = usableHealedAttribute(resolver, outcome, attributeName, resource.resourceType);
12610
12663
  if (healed !== void 0) return serveHealedAttribute(resolver, logicalId, attributeName, healed, context);
12611
12664
  return constructGuardedAttribute(resolver, resource, attributeName, {
12612
12665
  ...context,
@@ -12747,6 +12800,22 @@ function guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceT
12747
12800
  resolver.logger.warn(`Unknown attribute ${displayMasked(resolver, attributeName, context)} for resource type ${loggedType}, returning physical ID${withheld}`);
12748
12801
  return physicalId;
12749
12802
  }
12803
+ function endpointTheEngineLacks(resource, attributeName) {
12804
+ if (resource.resourceType !== "AWS::ElastiCache::CacheCluster") return void 0;
12805
+ const engine = resource.properties?.["Engine"];
12806
+ if (typeof engine !== "string") return void 0;
12807
+ const top = attributeName.split(".")[0];
12808
+ const isMemcached = engine.toLowerCase() === "memcached";
12809
+ if (top === "RedisEndpoint" && isMemcached) return "RedisEndpoint";
12810
+ if (top === "ConfigurationEndpoint" && !isMemcached) return "ConfigurationEndpoint";
12811
+ }
12812
+ function refuseEndpointTheEngineLacks(resolver, resource, logicalId, attributeName, context) {
12813
+ const lacking = endpointTheEngineLacks(resource, attributeName);
12814
+ if (lacking === void 0) return;
12815
+ const engine = String(resource.properties?.["Engine"]);
12816
+ const other = lacking === "RedisEndpoint" ? "ConfigurationEndpoint" : "RedisEndpoint";
12817
+ throw markNonRetryable(new IntrinsicResolutionRefusalError(`Cannot resolve Fn::GetAtt [${displayMasked(resolver, logicalId, context)}, ${displayMasked(resolver, attributeName, context)}]: the cache cluster's engine is ${displayMasked(resolver, engine, context)}, which has no ${lacking}. CloudFormation answers an empty Address and Port for it; cdkd refuses instead of passing an empty endpoint on. Reference ${other} instead.`));
12818
+ }
12750
12819
 
12751
12820
  // src/deployment/intrinsic-resolver/getatt-construct-core.ts
12752
12821
  const NOT_CONSTRUCTED = Symbol("NOT_CONSTRUCTED");
@@ -14678,11 +14747,31 @@ async function constructAttributeForAppTypes(resolver, resource, attributeName,
14678
14747
  why: "its ARN carries a group id cdkd cannot build from the group name"
14679
14748
  });
14680
14749
  }
14750
+ if (resourceType === "AWS::ElastiCache::CacheCluster") switch (attributeName) {
14751
+ case "RedisEndpoint":
14752
+ case "RedisEndpoint.Address":
14753
+ case "RedisEndpoint.Port":
14754
+ case "ConfigurationEndpoint":
14755
+ case "ConfigurationEndpoint.Address":
14756
+ case "ConfigurationEndpoint.Port":
14757
+ healBeforeConstructing(resolver, context);
14758
+ refuseUnconstructibleAttribute(resolver, {
14759
+ logicalId,
14760
+ attributeName,
14761
+ resourceType,
14762
+ context,
14763
+ why: "cdkd cannot build it from the cache cluster id",
14764
+ remedyWhenHealCompleted: "ElastiCache does not report it for the cluster yet (it may still be creating): deploy again once the cluster is available."
14765
+ });
14766
+ }
14681
14767
  if (resourceType === "AWS::RDS::DBInstance" || resourceType === "AWS::DocDB::DBInstance" || resourceType === "AWS::Neptune::DBInstance") {
14682
14768
  switch (attributeName) {
14683
14769
  case "DBInstanceArn":
14684
14770
  case "Arn": return `arn:${partition}:rds:${region}:${accountId}:db:${physicalId}`;
14685
14771
  case "DbiResourceId":
14772
+ case "Endpoint":
14773
+ case "ListenerEndpoint":
14774
+ case "CertificateDetails":
14686
14775
  case "Endpoint.HostedZoneId":
14687
14776
  case "ListenerEndpoint.Address":
14688
14777
  case "ListenerEndpoint.Port":
@@ -14697,15 +14786,29 @@ async function constructAttributeForAppTypes(resolver, resource, attributeName,
14697
14786
  resourceType,
14698
14787
  context,
14699
14788
  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."
14789
+ 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
14790
  });
14702
14791
  }
14703
14792
  return guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceType, physicalId, context);
14704
14793
  }
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);
14794
+ if (resourceType === "AWS::RDS::DBCluster" || resourceType === "AWS::DocDB::DBCluster" || resourceType === "AWS::Neptune::DBCluster") {
14795
+ switch (attributeName) {
14796
+ case "DBClusterArn":
14797
+ case "Arn": return `arn:${partition}:rds:${region}:${accountId}:cluster:${physicalId}`;
14798
+ case "Endpoint":
14799
+ case "ReadEndpoint":
14800
+ if (resourceType !== "AWS::RDS::DBCluster") break;
14801
+ healBeforeConstructing(resolver, context);
14802
+ refuseUnconstructibleAttribute(resolver, {
14803
+ logicalId,
14804
+ attributeName,
14805
+ resourceType,
14806
+ context,
14807
+ why: "cdkd cannot build it from the DB cluster identifier",
14808
+ remedyWhenHealCompleted: "RDS does not report it for the cluster yet (it may still be creating): deploy again once the cluster is available."
14809
+ });
14810
+ }
14811
+ return guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceType, physicalId, context);
14709
14812
  }
14710
14813
  if (resourceType === "AWS::S3Express::DirectoryBucket" && attributeName === "AvailabilityZoneName") {
14711
14814
  const zoneId = /--([a-z0-9]+(?:-[a-z0-9]+)*)--x-s3$/.exec(physicalId)?.[1];
@@ -16029,8 +16132,9 @@ async function resolveGetAtt(resolver, getAtt, context) {
16029
16132
  const resource = lookupResourceRecord(resolver, logicalId, "Fn::GetAtt", context);
16030
16133
  if (!resource) throw markNonRetryable(/* @__PURE__ */ new Error(`Resource ${displayMasked(resolver, logicalId, context)} not found for Fn::GetAtt`));
16031
16134
  recordSecretNamedRead(logicalId, void 0, context);
16135
+ refuseEndpointTheEngineLacks(resolver, resource, logicalId, attributeName, context);
16032
16136
  if (!isAlwaysLiveAttribute(resource.resourceType, attributeName) && resource.attributes !== void 0) {
16033
- const storedValue = Object.hasOwn(resource.attributes, attributeName) ? resource.attributes[attributeName] : void 0;
16137
+ const storedValue = Object.hasOwn(resource.attributes, attributeName) ? resource.attributes[attributeName] : assembleFlatObjectAttribute(resource.resourceType, attributeName, resource.attributes);
16034
16138
  const flatValue = isImpossibleEmptyStoredAttribute(resource.resourceType, attributeName, storedValue) ? void 0 : storedValue;
16035
16139
  if (flatValue !== void 0) {
16036
16140
  if (isStalePlaceholderArnAttribute(resource.resourceType, attributeName, flatValue)) {
@@ -17646,7 +17750,7 @@ function apiGatewayV2DefinitionObject(location) {
17646
17750
  }
17647
17751
 
17648
17752
  // src/provisioning/cc-nested-create-only-patch.ts
17649
- function isPlainObject$6(value) {
17753
+ function isPlainObject$7(value) {
17650
17754
  return typeof value === "object" && value !== null && !Array.isArray(value);
17651
17755
  }
17652
17756
  function topLevelKeyOf(op) {
@@ -17656,14 +17760,14 @@ function topLevelKeyOf(op) {
17656
17760
  return pointer.replace(/~1/g, "/").replace(/~0/g, "~");
17657
17761
  }
17658
17762
  function writesTopLevelObject(patch) {
17659
- return patch.some((op) => topLevelKeyOf(op) !== void 0 && isPlainObject$6(op.value));
17763
+ return patch.some((op) => topLevelKeyOf(op) !== void 0 && isPlainObject$7(op.value));
17660
17764
  }
17661
17765
  function omitsThroughObjects(root, path) {
17662
17766
  let node = root;
17663
17767
  for (const segment of path) {
17664
17768
  if (!Object.hasOwn(node, segment)) return true;
17665
17769
  const next = node[segment];
17666
- if (!isPlainObject$6(next)) return false;
17770
+ if (!isPlainObject$7(next)) return false;
17667
17771
  node = next;
17668
17772
  }
17669
17773
  return false;
@@ -17671,7 +17775,7 @@ function omitsThroughObjects(root, path) {
17671
17775
  function valueAt(root, path) {
17672
17776
  let node = root;
17673
17777
  for (const segment of path) {
17674
- if (!isPlainObject$6(node) || !Object.hasOwn(node, segment)) return void 0;
17778
+ if (!isPlainObject$7(node) || !Object.hasOwn(node, segment)) return void 0;
17675
17779
  node = node[segment];
17676
17780
  }
17677
17781
  return node;
@@ -17680,7 +17784,7 @@ function nestedCreateOnlyGaps(patch, createOnlyPaths) {
17680
17784
  const gaps = [];
17681
17785
  for (const op of patch) {
17682
17786
  const key = topLevelKeyOf(op);
17683
- if (key === void 0 || !isPlainObject$6(op.value)) continue;
17787
+ if (key === void 0 || !isPlainObject$7(op.value)) continue;
17684
17788
  for (const path of createOnlyPaths) {
17685
17789
  if (path.length < 2 || path[0] !== key) continue;
17686
17790
  if (omitsThroughObjects(op.value, path.slice(1))) gaps.push([...path]);
@@ -17691,7 +17795,7 @@ function nestedCreateOnlyGaps(patch, createOnlyPaths) {
17691
17795
  function withCarriedCreateOnlyMembers(patch, gaps, liveModel) {
17692
17796
  return patch.map((op) => {
17693
17797
  const key = topLevelKeyOf(op);
17694
- if (key === void 0 || !isPlainObject$6(op.value)) return op;
17798
+ if (key === void 0 || !isPlainObject$7(op.value)) return op;
17695
17799
  let value;
17696
17800
  for (const path of gaps) {
17697
17801
  if (path[0] !== key) continue;
@@ -17701,7 +17805,7 @@ function withCarriedCreateOnlyMembers(patch, gaps, liveModel) {
17701
17805
  const rest = path.slice(1);
17702
17806
  let parent = value;
17703
17807
  for (const segment of rest.slice(0, -1)) {
17704
- if (!isPlainObject$6(parent[segment])) parent[segment] = {};
17808
+ if (!isPlainObject$7(parent[segment])) parent[segment] = {};
17705
17809
  parent = parent[segment];
17706
17810
  }
17707
17811
  parent[rest[rest.length - 1]] = live;
@@ -18868,7 +18972,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
18868
18972
  const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
18869
18973
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
18870
18974
  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");
18975
+ const { ASGProvider } = await import("./asg-provider-Cvt28cjZ.js");
18872
18976
  const delegateRegion = ambientRegion();
18873
18977
  let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
18874
18978
  if (asgProvider === void 0) {
@@ -19022,7 +19126,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
19022
19126
  const family = SDK_DELETE_FAMILIES.get(resourceType);
19023
19127
  const cached = this.sdkDeleteDelegates.get(family);
19024
19128
  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 });
19129
+ const provider = family === "rds" ? new (await (import("./rds-provider-BWOEzXOQ.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-BkaMldJg.js"))).NeptuneProvider({ region: ccRegion });
19026
19130
  this.sdkDeleteDelegates.set(family, {
19027
19131
  region: ccRegion,
19028
19132
  provider
@@ -19540,11 +19644,7 @@ async function enrichResourceAttributes(resourceType, physicalId, attributes, lo
19540
19644
  try {
19541
19645
  const cluster = (await new RDSClient({ ...ambientClientDefaults() }).send(new DescribeDBClustersCommand({ DBClusterIdentifier: physicalId }))).DBClusters?.[0];
19542
19646
  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;
19647
+ Object.assign(enriched, dbClusterAttributes(cluster));
19548
19648
  log.debug(`Enriched RDS DBCluster ${physicalId} with Endpoint/Port/Arn from DescribeDBClusters`);
19549
19649
  }
19550
19650
  } catch (error) {
@@ -19555,7 +19655,7 @@ async function enrichResourceAttributes(resourceType, physicalId, attributes, lo
19555
19655
  try {
19556
19656
  const inst = (await new RDSClient({ ...ambientClientDefaults() }).send(new DescribeDBInstancesCommand({ DBInstanceIdentifier: physicalId }))).DBInstances?.[0];
19557
19657
  if (inst) {
19558
- Object.assign(enriched, dbInstanceAttributes(inst));
19658
+ Object.assign(enriched, dbInstanceAttributes(inst, { settled: true }));
19559
19659
  log.debug(`Enriched RDS DBInstance ${physicalId} with Endpoint/Port/Arn from DescribeDBInstances`);
19560
19660
  }
19561
19661
  } catch (error) {
@@ -20620,7 +20720,7 @@ async function create$1(logicalId, resourceType, properties, context) {
20620
20720
  ResourceType: resourceType,
20621
20721
  LogicalResourceId: logicalId,
20622
20722
  StackId: invocation.stackId,
20623
- ResourceProperties: this.stringifyProperties(properties)
20723
+ ResourceProperties: this.stringifyProperties(properties, context?.typedPayloadLeaves)
20624
20724
  }), maskerOrIdentity(context?.maskSecrets), { properties });
20625
20725
  if (cfnResponse.Status === "FAILED") throw new Error(`Custom resource handler returned FAILED: ${cfnResponse.Reason || "Unknown reason"}`);
20626
20726
  const physicalId = respondedPhysicalId(cfnResponse) ?? logicalId;
@@ -20653,8 +20753,8 @@ async function update$1(logicalId, physicalId, resourceType, properties, previou
20653
20753
  LogicalResourceId: logicalId,
20654
20754
  PhysicalResourceId: physicalId,
20655
20755
  StackId: invocation.stackId,
20656
- ResourceProperties: this.stringifyProperties(properties),
20657
- OldResourceProperties: this.stringifyProperties(previousProperties)
20756
+ ResourceProperties: this.stringifyProperties(properties, context?.typedPayloadLeaves),
20757
+ OldResourceProperties: this.stringifyProperties(previousProperties, context?.previousTypedPayloadLeaves)
20658
20758
  }), maskerOrIdentity(context?.maskSecrets), {
20659
20759
  properties,
20660
20760
  previousProperties
@@ -21160,7 +21260,7 @@ async function deleteImpl(logicalId, physicalId, resourceType, properties, conte
21160
21260
  LogicalResourceId: logicalId,
21161
21261
  PhysicalResourceId: physicalId,
21162
21262
  StackId: invocation.stackId,
21163
- ResourceProperties: this.stringifyProperties(payload)
21263
+ ResourceProperties: this.stringifyProperties(payload, context?.recordedTypedPayloadLeaves)
21164
21264
  }), deleteMask);
21165
21265
  if (cfnResponse.Status === "FAILED") {
21166
21266
  this.logger.warn(show(`Custom resource delete handler returned FAILED for ${logicalId}: ${cfnResponse.Reason || "Unknown reason"}. The handler reported that it did NOT delete, so anything this custom resource manages is LEFT IN PLACE${handlerSkipRemedy(context, logicalId)}`));
@@ -21694,7 +21794,7 @@ async function publishToSns(topicArn, request) {
21694
21794
  }
21695
21795
  async function invokeLambda(serviceToken, request) {
21696
21796
  if (localCustomResourceRuntimeActive()) {
21697
- const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-2Kfh-v8P.js");
21797
+ const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-q-XZhmNY.js");
21698
21798
  const local = await invokeCustomResourceFunctionLocally({
21699
21799
  lambda: this.lambdaClient,
21700
21800
  s3: this.s3Client
@@ -21710,6 +21810,167 @@ async function invokeLambda(serviceToken, request) {
21710
21810
  }));
21711
21811
  }
21712
21812
 
21813
+ // src/provisioning/custom-resource-payload-types.ts
21814
+ function isPlainObject$6(value) {
21815
+ return value !== null && typeof value === "object" && !Array.isArray(value);
21816
+ }
21817
+ function intrinsicKeyOf(node) {
21818
+ const keys = Object.keys(node);
21819
+ if (keys.length !== 1) return void 0;
21820
+ const key = keys[0];
21821
+ return key === "Ref" || key.startsWith("Fn::") ? key : void 0;
21822
+ }
21823
+ function literalIndex(index) {
21824
+ if (typeof index === "number" && Number.isInteger(index)) return index;
21825
+ if (typeof index === "string" && /^\d+$/.test(index)) return Number(index);
21826
+ }
21827
+ function isNoValue$1(node) {
21828
+ return isPlainObject$6(node) && intrinsicKeyOf(node) === "Ref" && node["Ref"] === "AWS::NoValue";
21829
+ }
21830
+ function servesScalarAttributesAsStrings(resourceType) {
21831
+ return resourceType !== void 0 && (resourceType.startsWith("Custom::") || resourceType === "AWS::CloudFormation::CustomResource" || resourceType === "AWS::CloudFormation::Stack");
21832
+ }
21833
+ function getAttTarget(argument) {
21834
+ if (typeof argument === "string") {
21835
+ const dot = argument.indexOf(".");
21836
+ return dot > 0 ? argument.slice(0, dot) : void 0;
21837
+ }
21838
+ if (Array.isArray(argument) && typeof argument[0] === "string") return argument[0];
21839
+ }
21840
+ function holdsNonString(value) {
21841
+ if (typeof value === "number" || typeof value === "boolean") return true;
21842
+ if (Array.isArray(value)) return value.some(holdsNonString);
21843
+ if (isPlainObject$6(value)) return Object.values(value).some(holdsNonString);
21844
+ return false;
21845
+ }
21846
+ function typedPayloadLeavesOf(template, resolved, sources) {
21847
+ const coordinates = [];
21848
+ const ancestors = /* @__PURE__ */ new Set();
21849
+ const push = (path, value) => {
21850
+ if (holdsNonString(value)) coordinates.push(path);
21851
+ };
21852
+ const pushGetAtt = (node, value, path) => {
21853
+ const target = getAttTarget(node["Fn::GetAtt"]);
21854
+ if ((value === null || typeof value !== "object") && servesScalarAttributesAsStrings(target && sources.resourceTypeOf(target))) return;
21855
+ push(path, value);
21856
+ };
21857
+ const walk = (source, value, path) => {
21858
+ if (value === void 0) return;
21859
+ if (source === null || typeof source !== "object") return;
21860
+ if (ancestors.has(source)) return;
21861
+ ancestors.add(source);
21862
+ try {
21863
+ if (Array.isArray(source)) {
21864
+ const kept = source.filter((item) => !isNoValue$1(item));
21865
+ if (Array.isArray(value) && value.length === kept.length) kept.forEach((item, index) => walk(item, value[index], [...path, index]));
21866
+ return;
21867
+ }
21868
+ const record = source;
21869
+ const intrinsic = intrinsicKeyOf(record);
21870
+ if (intrinsic === void 0) {
21871
+ if (!isPlainObject$6(value)) return;
21872
+ for (const [key, child] of Object.entries(record)) if (Object.hasOwn(value, key)) walk(child, value[key], [...path, key]);
21873
+ return;
21874
+ }
21875
+ if (intrinsic === "Fn::GetAtt") {
21876
+ pushGetAtt(record, value, path);
21877
+ return;
21878
+ }
21879
+ if (intrinsic === "Fn::If") {
21880
+ const argument = record["Fn::If"];
21881
+ if (Array.isArray(argument) && argument.length === 3 && typeof argument[0] === "string") {
21882
+ const conditions = sources.conditions;
21883
+ if (conditions !== void 0 && Object.hasOwn(conditions, argument[0])) walk(conditions[argument[0]] ? argument[1] : argument[2], value, path);
21884
+ }
21885
+ return;
21886
+ }
21887
+ if (intrinsic === "Fn::Select") {
21888
+ const argument = record["Fn::Select"];
21889
+ if (Array.isArray(argument) && argument.length === 2) {
21890
+ const index = literalIndex(argument[0]);
21891
+ const list = argument[1];
21892
+ if (index !== void 0 && Array.isArray(list) && index < list.length) walk(list[index], value, path);
21893
+ else if (isPlainObject$6(list) && intrinsicKeyOf(list) === "Fn::GetAtt") pushGetAtt(list, value, path);
21894
+ }
21895
+ return;
21896
+ }
21897
+ } finally {
21898
+ ancestors.delete(source);
21899
+ }
21900
+ };
21901
+ walk(template, resolved, []);
21902
+ return coordinates;
21903
+ }
21904
+ function segmentKey(segment) {
21905
+ return `${typeof segment === "number" ? "n" : "s"}:${segment}`;
21906
+ }
21907
+ function trieOf(coordinates) {
21908
+ const root = {
21909
+ typed: false,
21910
+ children: /* @__PURE__ */ new Map()
21911
+ };
21912
+ for (const coordinate of coordinates) {
21913
+ if (!Array.isArray(coordinate)) continue;
21914
+ let node = root;
21915
+ for (const segment of coordinate) {
21916
+ if (typeof segment !== "string" && typeof segment !== "number") break;
21917
+ const key = segmentKey(segment);
21918
+ let child = node.children.get(key);
21919
+ if (child === void 0) {
21920
+ child = {
21921
+ typed: false,
21922
+ children: /* @__PURE__ */ new Map()
21923
+ };
21924
+ node.children.set(key, child);
21925
+ }
21926
+ node = child;
21927
+ }
21928
+ node.typed = true;
21929
+ }
21930
+ return root;
21931
+ }
21932
+ function setOwn(target, key, value) {
21933
+ Object.defineProperty(target, key, {
21934
+ value,
21935
+ enumerable: true,
21936
+ writable: true,
21937
+ configurable: true
21938
+ });
21939
+ }
21940
+ function legacyStringify(properties) {
21941
+ const result = {};
21942
+ for (const [key, value] of Object.entries(properties)) if (typeof value === "boolean" || typeof value === "number") setOwn(result, key, String(value));
21943
+ else if (isPlainObject$6(value)) setOwn(result, key, legacyStringify(value));
21944
+ else setOwn(result, key, value);
21945
+ return result;
21946
+ }
21947
+ function serializeResourceProperties(properties, typedLeaves) {
21948
+ const leaves = recordedTypedPayloadLeavesOf({ typedPayloadLeaves: typedLeaves });
21949
+ if (leaves === void 0) return legacyStringify(properties);
21950
+ const walk = (value, node) => {
21951
+ if (node?.typed === true) return value;
21952
+ if (typeof value === "boolean" || typeof value === "number") return String(value);
21953
+ if (Array.isArray(value)) return value.map((item, index) => walk(item, node?.children.get(segmentKey(index))));
21954
+ if (isPlainObject$6(value)) {
21955
+ const result = {};
21956
+ for (const [key, child] of Object.entries(value)) setOwn(result, key, walk(child, node?.children.get(segmentKey(key))));
21957
+ return result;
21958
+ }
21959
+ return value;
21960
+ };
21961
+ return walk(properties, trieOf(leaves));
21962
+ }
21963
+ function recordedTypedPayloadLeavesOf(record) {
21964
+ const field = record.typedPayloadLeaves;
21965
+ if (!Array.isArray(field)) return void 0;
21966
+ const leaves = [];
21967
+ for (const coordinate of field) {
21968
+ if (!Array.isArray(coordinate) || !coordinate.every((segment) => typeof segment === "string" || typeof segment === "number")) return;
21969
+ leaves.push(coordinate);
21970
+ }
21971
+ return leaves;
21972
+ }
21973
+
21713
21974
  // src/provisioning/providers/custom-resource/response.ts
21714
21975
  async function getCustomResourceResponse(lambdaResponse, responseKey, logicalId, operation, mask) {
21715
21976
  if (lambdaResponse.FunctionError) {
@@ -21833,13 +22094,8 @@ async function cleanupResponseObject(responseKey) {
21833
22094
  objectDescription: CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION
21834
22095
  });
21835
22096
  }
21836
- function stringifyProperties(properties) {
21837
- const result = {};
21838
- for (const [key, value] of Object.entries(properties)) if (typeof value === "boolean") result[key] = String(value);
21839
- else if (typeof value === "number") result[key] = String(value);
21840
- else if (typeof value === "object" && value !== null && !Array.isArray(value)) result[key] = this.stringifyProperties(value);
21841
- else result[key] = value;
21842
- return result;
22097
+ function stringifyProperties(properties, typedLeaves) {
22098
+ return serializeResourceProperties(properties, typedLeaves);
21843
22099
  }
21844
22100
  function sleep(ms) {
21845
22101
  return customResourceRetryDelays.sleep(ms);
@@ -22005,8 +22261,8 @@ var CustomResourceProvider = class CustomResourceProvider {
22005
22261
  cleanupResponseObject(responseKey) {
22006
22262
  return cleanupResponseObject.call(this, responseKey);
22007
22263
  }
22008
- stringifyProperties(properties) {
22009
- return stringifyProperties.call(this, properties);
22264
+ stringifyProperties(properties, typedLeaves) {
22265
+ return stringifyProperties.call(this, properties, typedLeaves);
22010
22266
  }
22011
22267
  sleep(ms) {
22012
22268
  return sleep.call(this, ms);
@@ -24844,7 +25100,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
24844
25100
  if (resourceType !== "AWS::RDS::DBInstance") return false;
24845
25101
  if (region === void 0 || region === "") return false;
24846
25102
  const mask = input.mask ?? ((text) => text);
24847
- const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-iA8yd-HO.js").then((n) => n.l);
25103
+ const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-BQhsK5Fn.js").then((n) => n.l);
24848
25104
  let reason;
24849
25105
  try {
24850
25106
  const live = await describeDBInstanceInRegion(physicalId, region);
@@ -24988,10 +25244,11 @@ function recordRollbackDeleteGuards(result, logicalId, physicalId, scope) {
24988
25244
  }
24989
25245
  const SKIP_FINAL_SNAPSHOT_FLAG = "--skip-final-snapshot";
24990
25246
  const REPLAYING_STATE_CREATE_CONTEXT = { replayingState: true };
24991
- function replayingStateCreateContext(secrets) {
25247
+ function replayingStateCreateContext(secrets, typedPayloadLeaves) {
24992
25248
  return {
24993
25249
  ...REPLAYING_STATE_CREATE_CONTEXT,
24994
- maskSecrets: createSecretMasker(secrets)
25250
+ maskSecrets: createSecretMasker(secrets),
25251
+ ...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
24995
25252
  };
24996
25253
  }
24997
25254
  function maskedRollbackEventError(error, mask) {
@@ -26517,6 +26774,7 @@ async function replaceDeleteFirstAndRecreate(run, deps, logicalId, resourceType,
26517
26774
  recordedAttributes: currentResource.attributes,
26518
26775
  recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
26519
26776
  recordedNoEchoLeaves: currentResource.noEchoLeaves,
26777
+ recordedTypedPayloadLeaves: currentResource.typedPayloadLeaves,
26520
26778
  ...noEchoDeleteValues !== void 0 && { noEchoDeleteValues },
26521
26779
  maskSecrets: deleteMask
26522
26780
  }));
@@ -26810,6 +27068,7 @@ async function deleteSupersededEntry(entry, input) {
26810
27068
  recordedAttributes: record.attributes,
26811
27069
  recordedCreateOnlyDrops: record.acceptedCreateOnlyDrops,
26812
27070
  recordedNoEchoLeaves: record.noEchoLeaves,
27071
+ recordedTypedPayloadLeaves: record.typedPayloadLeaves,
26813
27072
  maskSecrets: input.maskSecrets
26814
27073
  });
26815
27074
  result = input.once === true ? await send() : await retryWhileInUse(send, input.stop);
@@ -26941,6 +27200,7 @@ async function deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType,
26941
27200
  recordedAttributes: currentResource.attributes,
26942
27201
  recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
26943
27202
  recordedNoEchoLeaves: currentResource.noEchoLeaves,
27203
+ recordedTypedPayloadLeaves: currentResource.typedPayloadLeaves,
26944
27204
  ...noEchoDeleteValues !== void 0 && { noEchoDeleteValues },
26945
27205
  ...inlinePolicyClaimed && { inlinePolicyClaimed },
26946
27206
  maskSecrets: createUnionSecretMasker([secrets, secretNameBagFor(deps.secretsRun(), logicalId)])
@@ -27025,7 +27285,10 @@ async function createFirstThenDeleteOld(run, deps, input) {
27025
27285
  stackName: input.stackName,
27026
27286
  createdVia: input.createdVia,
27027
27287
  resolvedProps: input.resolvedProps
27028
- }, () => deps.withRetry(() => withCurrentResourceSecrets(secrets, () => input.createProvider.create(logicalId, resourceType, input.createProps, { maskSecrets: createSecretMasker(secrets) })), logicalId, void 0, void 0, input.createProvider));
27288
+ }, () => deps.withRetry(() => withCurrentResourceSecrets(secrets, () => input.createProvider.create(logicalId, resourceType, input.createProps, {
27289
+ maskSecrets: createSecretMasker(secrets),
27290
+ ...input.typedPayloadLeaves !== void 0 && { typedPayloadLeaves: input.typedPayloadLeaves }
27291
+ })), logicalId, void 0, void 0, input.createProvider));
27029
27292
  } catch (createError) {
27030
27293
  if (!isNameCollisionErrorFrom(createError, logicalId)) throw createError;
27031
27294
  const createFailure = describeAwsFailure(createError);
@@ -28499,6 +28762,7 @@ async function runMovedIdCleanups(queue, scope) {
28499
28762
  recordedAttributes: sent.attributes,
28500
28763
  recordedCreateOnlyDrops: sent.acceptedCreateOnlyDrops,
28501
28764
  recordedNoEchoLeaves: sent.noEchoLeaves,
28765
+ recordedTypedPayloadLeaves: sent.typedPayloadLeaves,
28502
28766
  maskSecrets: mask
28503
28767
  }));
28504
28768
  throwIfDeleteSkipped(outcome, logicalId, sent.physicalId, "while deleting the physical id the rollback moved off", {
@@ -29878,6 +30142,7 @@ async function replayDelete(s) {
29878
30142
  recordedAttributes: stateResources[op.logicalId]?.attributes,
29879
30143
  recordedCreateOnlyDrops: stateResources[op.logicalId]?.acceptedCreateOnlyDrops,
29880
30144
  recordedNoEchoLeaves: stateResources[op.logicalId]?.noEchoLeaves,
30145
+ recordedTypedPayloadLeaves: stateResources[op.logicalId]?.typedPayloadLeaves,
29881
30146
  maskSecrets: mask
29882
30147
  }));
29883
30148
  const createRollbackDelete = removeProtection ? await runDeleteAttempt(true, deleteCreated) : await deleteCreated();
@@ -30740,6 +31005,7 @@ async function replayReadopt(s, survivor) {
30740
31005
  recordedAttributes: current.attributes,
30741
31006
  recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
30742
31007
  recordedNoEchoLeaves: current.noEchoLeaves,
31008
+ recordedTypedPayloadLeaves: current.typedPayloadLeaves,
30743
31009
  maskSecrets: mask
30744
31010
  }));
30745
31011
  throwIfDeleteSkipped(readoptDelete, op.logicalId, current.physicalId, `while reversing its replacement (re-adopting the ${oldKind} old resource)`, {
@@ -30848,7 +31114,9 @@ async function replayRevert(s) {
30848
31114
  recordedAttributes: current.attributes,
30849
31115
  recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
30850
31116
  ...revertClaimed && { inlinePolicyClaimed: revertClaimed },
30851
- ...unsettledContextOf(current, previousState)
31117
+ ...unsettledContextOf(current, previousState),
31118
+ typedPayloadLeaves: previousState.typedPayloadLeaves,
31119
+ previousTypedPayloadLeaves: current.typedPayloadLeaves
30852
31120
  }
30853
31121
  ], op.logicalId, logger, isInterrupted, secrets, mask));
30854
31122
  if (revertResult) recordNoEchoAttributeValues(revertResult, secrets, desiredProps);
@@ -30951,6 +31219,7 @@ async function recreateOldResource(s, r) {
30951
31219
  recordedAttributes: current.attributes,
30952
31220
  recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
30953
31221
  recordedNoEchoLeaves: current.noEchoLeaves,
31222
+ recordedTypedPayloadLeaves: current.typedPayloadLeaves,
30954
31223
  maskSecrets: mask
30955
31224
  }));
30956
31225
  throwIfDeleteSkipped(deleteNewFirst, op.logicalId, current.physicalId, purpose, newDeleteGuardScope(deleteNewFirstRoute.provisionedBy));
@@ -30963,7 +31232,7 @@ async function recreateOldResource(s, r) {
30963
31232
  };
30964
31233
  const recreateAfterNewDeleted = async () => {
30965
31234
  try {
30966
- return await createWithRollbackRetry(createProvider, () => inOriginalPrefix(() => withCurrentResourceSecrets(secrets, () => createProvider.create(op.logicalId, oldType, replayCreateProps(), replayingStateCreateContext(secrets)))), op.logicalId, logger, isInterrupted, mask, {
31235
+ return await createWithRollbackRetry(createProvider, () => inOriginalPrefix(() => withCurrentResourceSecrets(secrets, () => createProvider.create(op.logicalId, oldType, replayCreateProps(), replayingStateCreateContext(secrets, prev.typedPayloadLeaves)))), op.logicalId, logger, isInterrupted, mask, {
30967
31236
  isRetryable: isRecreateRetryableError,
30968
31237
  interruptedMessage: "Rollback interrupted while waiting for the new resource to release its name or slot"
30969
31238
  });
@@ -30982,7 +31251,7 @@ async function recreateOldResource(s, r) {
30982
31251
  deletedNewFirst = true;
30983
31252
  createResult = await recreateAfterNewDeleted();
30984
31253
  } else try {
30985
- createResult = await createWithRollbackRetry(createProvider, () => inOriginalPrefix(() => withCurrentResourceSecrets(secrets, () => createProvider.create(op.logicalId, oldType, replayCreateProps(), replayingStateCreateContext(secrets)))), op.logicalId, logger, isInterrupted, mask, {
31254
+ createResult = await createWithRollbackRetry(createProvider, () => inOriginalPrefix(() => withCurrentResourceSecrets(secrets, () => createProvider.create(op.logicalId, oldType, replayCreateProps(), replayingStateCreateContext(secrets, prev.typedPayloadLeaves)))), op.logicalId, logger, isInterrupted, mask, {
30986
31255
  isRetryable: isNameCooldownError,
30987
31256
  interruptedMessage: "Rollback interrupted while waiting out the name cooldown"
30988
31257
  });
@@ -31109,6 +31378,7 @@ async function finishReverseReplacement(s, r, createResult, deletedNewFirst) {
31109
31378
  recordedAttributes: current.attributes,
31110
31379
  recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
31111
31380
  recordedNoEchoLeaves: current.noEchoLeaves,
31381
+ recordedTypedPayloadLeaves: current.typedPayloadLeaves,
31112
31382
  maskSecrets: mask
31113
31383
  }));
31114
31384
  throwIfDeleteSkipped(deleteNewAfterRecreate, op.logicalId, current.physicalId, "while deleting the new resource after re-creating the old one", newDeleteGuardScope(deleteNewAfterRecreateRoute.provisionedBy));
@@ -31786,6 +32056,7 @@ async function replayFailedOperationsUnbound(failedOps, stateResources, stackNam
31786
32056
  recordedAttributes: failedCreateRecord?.attributes,
31787
32057
  recordedCreateOnlyDrops: failedCreateRecord?.acceptedCreateOnlyDrops,
31788
32058
  recordedNoEchoLeaves: nonEmptyOrUndefined([...maskedLeafCoordinatesOf(op.attemptedProperties ?? {}), ...failedCreateRecord?.noEchoLeaves ?? []]),
32059
+ recordedTypedPayloadLeaves: failedCreateRecord?.typedPayloadLeaves,
31789
32060
  ...op.physicalIdRecoveredFromError === true && {
31790
32061
  failedCreateOrphan: true,
31791
32062
  resolveAttemptedProperties: () => resolveReplayProps(op.attemptedProperties, resolver, secrets, ctx, op.logicalId),
@@ -31903,7 +32174,8 @@ async function replayFailedOperationsUnbound(failedOps, stateResources, stackNam
31903
32174
  recordedAttributes: current.attributes,
31904
32175
  recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
31905
32176
  ...revertFailedClaimed && { inlinePolicyClaimed: revertFailedClaimed },
31906
- ...revertUnsettled
32177
+ ...revertUnsettled,
32178
+ typedPayloadLeaves: prev.typedPayloadLeaves
31907
32179
  }
31908
32180
  ], op.logicalId, logger, options.isInterrupted, secrets, mask));
31909
32181
  if (revertFailedResult) recordNoEchoAttributeValues(revertFailedResult, secrets, desiredProps);
@@ -33974,6 +34246,7 @@ async function loadJournaledOrphans(stateBackend, stackName, region, rollbackOrp
33974
34246
  unreadable: true
33975
34247
  };
33976
34248
  }
34249
+ options.onSegments?.(segments);
33977
34250
  const physicalIdOnly = (ops) => ops.filter((op) => op.changeType !== "CREATE");
33978
34251
  const evidence = segments.map((segment) => options.deployRunId !== void 0 && segment.reason === "nested-pending-parent" && segment.runId === options.deployRunId ? {
33979
34252
  ...segment,
@@ -34114,7 +34387,8 @@ async function settleJournaledOrphansOnSuccess(args) {
34114
34387
  orphans = await loadJournaledOrphans(stateBackend, stackName, region, args.rollbackOrphans, logger, {
34115
34388
  newerOperations,
34116
34389
  ...args.deployRunId !== void 0 && { deployRunId: args.deployRunId },
34117
- unreadableOutcome: "the successful deploy removes the journal"
34390
+ unreadableOutcome: "the successful deploy removes the journal",
34391
+ ...args.onSegments !== void 0 && { onSegments: args.onSegments }
34118
34392
  });
34119
34393
  } catch (err) {
34120
34394
  logger.warn(safeMsg`Could not act on the rollback journal of stack ${stack}: ${errorDetail(err)}. It is kept.`);
@@ -34276,6 +34550,123 @@ async function collectNestedChildUnaddressed(fn) {
34276
34550
  };
34277
34551
  }
34278
34552
 
34553
+ // src/deployment/deploy-engine/record-shape.ts
34554
+ function auditResolvedAssetReferences(options, logicalId, resourceType, resolvedProps) {
34555
+ const redirect = options.assetRedirect;
34556
+ if (!redirect) return;
34557
+ const findings = findUnrewrittenAssetReferences(resolvedProps, redirect);
34558
+ if (findings.length === 0) return;
34559
+ const detail = findings.map((f) => safeMsg` - ${f.path}: still references '${f.source}'`).join("\n");
34560
+ 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);
34561
+ }
34562
+ function extractAllDependencies(template, logicalId) {
34563
+ const resource = template?.Resources?.[logicalId];
34564
+ if (!resource) return void 0;
34565
+ const parser = new TemplateParser();
34566
+ const parameterNames = new Set(Object.keys(template?.Parameters ?? {}));
34567
+ const deps = [...parser.extractDependencies(resource)].filter((dep) => !parameterNames.has(dep));
34568
+ return deps.length > 0 ? deps : void 0;
34569
+ }
34570
+ function withTemplateDependencies(resources, template, { removalsOnly = false } = {}) {
34571
+ let refreshed;
34572
+ for (const [logicalId, record] of Object.entries(resources)) {
34573
+ if (!Object.hasOwn(template.Resources ?? {}, logicalId)) continue;
34574
+ const derived = extractAllDependencies(template, logicalId) ?? [];
34575
+ const have = Array.isArray(record.dependencies) ? record.dependencies : [];
34576
+ const haveSet = new Set(have);
34577
+ const want = removalsOnly ? [...haveSet].filter((id) => derived.includes(id)) : derived;
34578
+ if (want.length === haveSet.size && want.every((id) => haveSet.has(id))) continue;
34579
+ refreshed ??= { ...resources };
34580
+ const { dependencies: _stale, ...rest } = record;
34581
+ refreshed[logicalId] = want.length > 0 ? {
34582
+ ...rest,
34583
+ dependencies: want
34584
+ } : rest;
34585
+ }
34586
+ return refreshed;
34587
+ }
34588
+ function sameIds(a, b) {
34589
+ const set = new Set(a);
34590
+ return set.size === new Set(b).size && b.every((id) => set.has(id));
34591
+ }
34592
+ function dependenciesOf(record) {
34593
+ return Array.isArray(record?.dependencies) ? record.dependencies : [];
34594
+ }
34595
+ function nestedDependencySnapshot(previous, saved, template, touchedLogicalIds) {
34596
+ const final = withTemplateDependencies(saved, template, { removalsOnly: true }) ?? saved;
34597
+ const previousDependencies = {};
34598
+ const templateDependencies = {};
34599
+ for (const [logicalId, record] of Object.entries(final)) {
34600
+ if (!Object.hasOwn(template.Resources ?? {}, logicalId)) continue;
34601
+ const before = Object.hasOwn(previous, logicalId) ? previous[logicalId] : void 0;
34602
+ if (before !== void 0 && !touchedLogicalIds.has(logicalId)) {
34603
+ const had = dependenciesOf(before);
34604
+ if (!sameIds(had, dependenciesOf(record))) previousDependencies[logicalId] = [...had];
34605
+ }
34606
+ const derived = extractAllDependencies(template, logicalId) ?? [];
34607
+ if (!sameIds(derived, dependenciesOf(record))) templateDependencies[logicalId] = derived;
34608
+ }
34609
+ return {
34610
+ ...Object.keys(previousDependencies).length > 0 && { previousDependencies },
34611
+ ...Object.keys(templateDependencies).length > 0 && { templateDependencies }
34612
+ };
34613
+ }
34614
+ function withRecordedDependencies(resources, lists, onCycle) {
34615
+ let next;
34616
+ for (const [logicalId, list] of Object.entries(lists)) {
34617
+ const record = Object.hasOwn(resources, logicalId) ? resources[logicalId] : void 0;
34618
+ if (record === void 0 || sameIds(dependenciesOf(record), list)) continue;
34619
+ next ??= { ...resources };
34620
+ const { dependencies: _old, ...rest } = record;
34621
+ next[logicalId] = list.length > 0 ? {
34622
+ ...rest,
34623
+ dependencies: [...list]
34624
+ } : rest;
34625
+ }
34626
+ if (next === void 0) return void 0;
34627
+ if (!hasDependencyCycle(next)) return next;
34628
+ onCycle?.();
34629
+ }
34630
+ function hasDependencyCycle(resources) {
34631
+ const state = /* @__PURE__ */ new Map();
34632
+ const visit = (id) => {
34633
+ const mark = state.get(id);
34634
+ if (mark === "done") return false;
34635
+ if (mark === "open") return true;
34636
+ state.set(id, "open");
34637
+ for (const dep of dependenciesOf(resources[id])) if (Object.hasOwn(resources, dep) && visit(dep)) return true;
34638
+ state.set(id, "done");
34639
+ return false;
34640
+ };
34641
+ return Object.keys(resources).some((id) => visit(id));
34642
+ }
34643
+ function withPropertiesMarksOf(original, rebuilt) {
34644
+ return carryRedactionMarks(original, rebuilt);
34645
+ }
34646
+ function propertiesToRecord(desiredProperties, result, resourceType, provisionedBy) {
34647
+ if (result.effectiveProperties) return markWrittenFromDeployedTemplate(markLeafCertifiedBag(provisionedBy === "sdk" ? withoutSdkUnwiredProperties(resourceType, result.effectiveProperties) : result.effectiveProperties));
34648
+ const written = provisionedBy === "sdk" ? withoutSdkUnwiredProperties(resourceType, desiredProperties) : desiredProperties;
34649
+ return markWrittenFromDeployedTemplate(markSameGenerationBag(written));
34650
+ }
34651
+ function extractTemplateAttributes(template, logicalId) {
34652
+ const resource = template?.Resources?.[logicalId];
34653
+ return {
34654
+ deletionPolicy: resource?.DeletionPolicy,
34655
+ updateReplacePolicy: resource?.UpdateReplacePolicy
34656
+ };
34657
+ }
34658
+ function acceptedCreateOnlyDropsField(recordedProperties, resourceType, provisionedBy, mode, previous) {
34659
+ const carried = mode === "in-place" ? acceptedCreateOnlyDropsOf(previous) : void 0;
34660
+ return { acceptedCreateOnlyDrops: acceptedCreateOnlyDropsEvidence(recordedProperties, resourceType, provisionedBy, carried) };
34661
+ }
34662
+ function secretNamedAttributesField(result, previous) {
34663
+ const reported = result.secretNamedAttributeNames;
34664
+ const source = reported !== void 0 ? reported : previous?.secretNamedAttributes;
34665
+ if (!Array.isArray(source)) return {};
34666
+ const names = source.filter((name) => typeof name === "string" && name !== "");
34667
+ return names.length > 0 ? { secretNamedAttributes: names } : {};
34668
+ }
34669
+
34279
34670
  // src/deployment/nested-child-journal.ts
34280
34671
  const NESTED_PENDING_PARENT_REASON = "nested-pending-parent";
34281
34672
  const NESTED_STACK_TYPE$3 = "AWS::CloudFormation::Stack";
@@ -34383,7 +34774,8 @@ async function dropNestedChildJournals(args) {
34383
34774
  try {
34384
34775
  if (await withChildLock(args.lockManager, child, region, logger, async () => {
34385
34776
  if (args.beforeDelete) {
34386
- if (!await args.beforeDelete(child, await readOwnRecord(stateBackend, child, region))) return false;
34777
+ const own = await readOwnRecord(stateBackend, child, region);
34778
+ if (!await args.beforeDelete(child, own?.state, own?.etag)) return false;
34387
34779
  }
34388
34780
  let gone;
34389
34781
  try {
@@ -34403,10 +34795,31 @@ async function dropNestedChildJournals(args) {
34403
34795
  }
34404
34796
  }
34405
34797
  }
34798
+ async function recordChildTemplateDependencies(args) {
34799
+ const { child, state, runId, logger } = args;
34800
+ if (runId === void 0) return;
34801
+ const lists = args.segments.findLast((segment) => segment.runId === runId && segment.reason === "nested-pending-parent")?.templateDependencies;
34802
+ if (lists === void 0) return;
34803
+ 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.`));
34804
+ if (resources === void 0) return;
34805
+ try {
34806
+ await args.stateBackend.saveState(child, args.region, {
34807
+ ...state,
34808
+ ...stackInstanceIdCarriedFrom(state),
34809
+ resources,
34810
+ lastModified: Date.now()
34811
+ }, { expectedEtag: args.etag });
34812
+ } catch (error) {
34813
+ 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.`);
34814
+ }
34815
+ }
34406
34816
  async function readOwnRecord(stateBackend, child, region) {
34407
34817
  try {
34408
34818
  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;
34819
+ if (data && isPlainRecord(data.state) && isPlainRecord(data.state.resources) && (data.state.stackName === void 0 || data.state.stackName === child)) return {
34820
+ state: data.state,
34821
+ etag: data.etag
34822
+ };
34410
34823
  } catch {}
34411
34824
  }
34412
34825
  async function dropSettledNestedJournals(args) {
@@ -34582,6 +34995,18 @@ async function revertNestedChildFromJournal(args) {
34582
34995
  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
34996
  }
34584
34997
  restoring = failures === 0;
34998
+ if (restoring) {
34999
+ const lists = {};
35000
+ const decided = /* @__PURE__ */ new Set();
35001
+ for (const segment of segments) {
35002
+ for (const [id, list] of Object.entries(segment.previousDependencies ?? {})) {
35003
+ if (!decided.has(id)) lists[id] = list;
35004
+ decided.add(id);
35005
+ }
35006
+ for (const op of segment.operations) decided.add(op.logicalId);
35007
+ }
35008
+ 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.`)));
35009
+ }
34585
35010
  await save();
34586
35011
  if (restoring && persisted && restoredOutputs && ctx.exportIndexStore) await ctx.exportIndexStore.updateForStack(childStackName, region, importableOutputs(nextState()));
34587
35012
  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 +35491,9 @@ async function writeRollbackJournalSegment(deps, stackName, completedOperations,
35066
35491
  ...nestedPending.previousOutputs,
35067
35492
  outputs: maskOutputsByPosition(deps.noEchoRun(), deps.noEchoDeps(), nestedPending.previousOutputs.outputs)
35068
35493
  } },
35069
- ...nestedPending?.previousCrossStackReads && { previousCrossStackReads: nestedPending.previousCrossStackReads }
35494
+ ...nestedPending?.previousCrossStackReads && { previousCrossStackReads: nestedPending.previousCrossStackReads },
35495
+ ...nestedPending?.previousDependencies && { previousDependencies: nestedPending.previousDependencies },
35496
+ ...nestedPending?.templateDependencies && { templateDependencies: nestedPending.templateDependencies }
35070
35497
  };
35071
35498
  await deps.stateBackend.appendRollbackJournalSegment(stackName, deps.stackRegion, segment);
35072
35499
  deps.logger.debug(safeMsg`Rollback journal segment written (${reason})`);
@@ -35101,14 +35528,17 @@ function foreignHolderResolver(deps) {
35101
35528
  return answer;
35102
35529
  };
35103
35530
  }
35104
- async function settleJournalAfterSuccess(deps, stackName, completedOperations, previousState, finalResources, initialDeploy) {
35531
+ async function settleJournalAfterSuccess(deps, stackName, completedOperations, previousState, finalResources, initialDeploy, template) {
35105
35532
  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
- }));
35533
+ await writeRollbackJournalSegment(deps, stackName, completedOperations, [], NESTED_PENDING_PARENT_REASON, initialDeploy, {
35534
+ ...template !== void 0 && nestedDependencySnapshot(previousState.resources, finalResources, template, new Set(completedOperations.map((op) => op.logicalId))),
35535
+ ...nestedPendingSnapshot(previousState, (name) => {
35536
+ const verdict = deps.outputsRun().carriedExportAliasRefusal;
35537
+ const dropped = verdict === void 0 || verdict(name, name) !== void 0;
35538
+ 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.");
35539
+ return dropped;
35540
+ })
35541
+ });
35112
35542
  return 0;
35113
35543
  }
35114
35544
  let nestedLeft = 0;
@@ -35149,7 +35579,8 @@ async function settleJournalAfterSuccess(deps, stackName, completedOperations, p
35149
35579
  region: deps.stackRegion,
35150
35580
  resources: finalResources,
35151
35581
  logger: deps.logger,
35152
- beforeDelete: async (child, childRecord) => {
35582
+ beforeDelete: async (child, childRecord, childEtag) => {
35583
+ let childSegments = [];
35153
35584
  const childState = childRecord !== void 0 && hasReadableOrphans(childRecord) ? childRecord : void 0;
35154
35585
  const settled = await settleJournaledOrphansOnSuccess({
35155
35586
  stateBackend: deps.stateBackend,
@@ -35171,6 +35602,19 @@ async function settleJournalAfterSuccess(deps, stackName, completedOperations, p
35171
35602
  producerRegionsIncomplete: true,
35172
35603
  nestedChildStack: child
35173
35604
  },
35605
+ logger: deps.logger,
35606
+ onSegments: (segments) => {
35607
+ childSegments = segments;
35608
+ }
35609
+ });
35610
+ if (childState !== void 0 && childEtag !== void 0) await recordChildTemplateDependencies({
35611
+ stateBackend: deps.stateBackend,
35612
+ child,
35613
+ region: deps.stackRegion,
35614
+ state: childState,
35615
+ etag: childEtag,
35616
+ segments: childSegments,
35617
+ runId: deps.options.eventRecorder?.runId,
35174
35618
  logger: deps.logger
35175
35619
  });
35176
35620
  nestedLeft += settled.unaddressed;
@@ -35958,48 +36402,16 @@ var GeneratedNameGuard = class GeneratedNameGuard {
35958
36402
  }
35959
36403
  };
35960
36404
 
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) };
36405
+ // src/deployment/deploy-engine/custom-resource-payload-leaves.ts
36406
+ function customResourcePayloadLeaves(resourceType, templateProperties, resolvedProperties, template, conditions, stateResources) {
36407
+ if (!isCustomResourceType(resourceType) || templateProperties === void 0) return void 0;
36408
+ return typedPayloadLeavesOf(templateProperties, resolvedProperties, {
36409
+ conditions,
36410
+ resourceTypeOf: (id) => template?.Resources?.[id]?.Type ?? (Object.hasOwn(stateResources, id) ? stateResources[id]?.resourceType : void 0)
36411
+ }).map((coordinate) => [...coordinate]);
35996
36412
  }
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 } : {};
36413
+ function customResourcePayloadLeavesField(leaves) {
36414
+ return leaves === void 0 ? {} : { typedPayloadLeaves: leaves };
36003
36415
  }
36004
36416
 
36005
36417
  // src/utils/resource-line.ts
@@ -36313,6 +36725,7 @@ async function provisionCreate(engine, logicalId, change, stateResources, stackN
36313
36725
  });
36314
36726
  const createProvider = createDecision.provider;
36315
36727
  const createProps = createDecision.provisionedBy === "cc-api" ? preparePropertiesForCcApi(engine.providerRegistry, resourceType, resolvedProps, logicalId) : resolvedProps;
36728
+ const typedPayloadLeaves = customResourcePayloadLeaves(resourceType, desiredProps, resolvedProps, template, conditions, stateResources);
36316
36729
  const resumed = await resumeAbandonedCreate(engine, {
36317
36730
  logicalId,
36318
36731
  resourceType,
@@ -36347,7 +36760,10 @@ async function provisionCreate(engine, logicalId, change, stateResources, stackN
36347
36760
  });
36348
36761
  engine.generatedNameGuard?.noteSent(logicalId);
36349
36762
  try {
36350
- result = await engine.withRetry(() => withCurrentResourceSecrets(createSecrets, () => createProvider.create(logicalId, resourceType, createProps, { maskSecrets: createSecretMasker(createSecrets) })), logicalId, void 0, void 0, createProvider);
36763
+ result = await engine.withRetry(() => withCurrentResourceSecrets(createSecrets, () => createProvider.create(logicalId, resourceType, createProps, {
36764
+ maskSecrets: createSecretMasker(createSecrets),
36765
+ ...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
36766
+ })), logicalId, void 0, void 0, createProvider);
36351
36767
  } catch (error) {
36352
36768
  engine.generatedNameGuard?.noteFailed(logicalId, error);
36353
36769
  throw error;
@@ -36368,7 +36784,8 @@ async function provisionCreate(engine, logicalId, change, stateResources, stackN
36368
36784
  ...secretNamedAttributesField(result),
36369
36785
  ...dependencies && dependencies.length > 0 && { dependencies },
36370
36786
  ...templateAttrs,
36371
- provisionedBy: createDecision.provisionedBy
36787
+ provisionedBy: createDecision.provisionedBy,
36788
+ ...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
36372
36789
  };
36373
36790
  clearCreatedReport();
36374
36791
  engine.recordInlinePolicyWrite(logicalId, "create");
@@ -36973,6 +37390,7 @@ Drop the record with: ${dropCommand}`);
36973
37390
  recordedAttributes: currentResource.attributes,
36974
37391
  recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
36975
37392
  recordedNoEchoLeaves: currentResource.noEchoLeaves,
37393
+ recordedTypedPayloadLeaves: currentResource.typedPayloadLeaves,
36976
37394
  maskSecrets: createUnionSecretMasker([secretNameBagFor(deps.secretsRun(), logicalId)])
36977
37395
  }), logicalId, 3, 5e3, deleteProvider);
36978
37396
  } catch (deleteError) {
@@ -44738,6 +45156,11 @@ async function compareWithRecord(engine, logicalId, change, stateResources, temp
44738
45156
  }
44739
45157
  }
44740
45158
  }
45159
+ const literalRewrites = secretRerenderPairs(updateSecrets);
45160
+ if (literalRewrites.length > 0) for (const bag of new Set(repairable)) for (const key of Object.keys(bag)) {
45161
+ const repaired = repairEmbeddedPhysicalNamesTowards(bag[key], desiredForSkipCheck[key], literalRewrites);
45162
+ if (repaired !== bag[key]) bag[key] = repaired;
45163
+ }
44741
45164
  const attributes = currentResource.attributes;
44742
45165
  if (attributes !== void 0 && attributes !== null && embeddedRewrites.length > 0) for (const key of Object.keys(attributes)) {
44743
45166
  const repaired = replaceEmbeddedPhysicalNameRewrites(attributes[key], embeddedRewrites);
@@ -44907,7 +45330,7 @@ function refuseUnsafeReplacement(engine, { change, currentProps, currentResource
44907
45330
  }
44908
45331
 
44909
45332
  // src/deployment/deploy-engine/update-replace/recreate.ts
44910
- async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, recreateViaCcApi }) {
45333
+ async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, recreateViaCcApi, typedPayloadLeaves }) {
44911
45334
  let createResult;
44912
45335
  refuseRestoreFromItself(resourceType, replaceProps, currentResource.physicalId, logicalId, {
44913
45336
  region: engine.stackRegion,
@@ -44942,6 +45365,7 @@ async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSam
44942
45365
  recordedAttributes: currentResource.attributes,
44943
45366
  recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
44944
45367
  recordedNoEchoLeaves: currentResource.noEchoLeaves,
45368
+ recordedTypedPayloadLeaves: currentResource.typedPayloadLeaves,
44945
45369
  ...noEchoDeleteValues !== void 0 && { noEchoDeleteValues },
44946
45370
  maskSecrets: createUnionSecretMasker([updateSecrets, secretNameBagFor(engine.secretsRun, logicalId)])
44947
45371
  }));
@@ -44974,7 +45398,10 @@ async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSam
44974
45398
  stackName,
44975
45399
  createdVia: replaceDecision.provisionedBy,
44976
45400
  resolvedProps
44977
- }, () => withRetry(() => engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => replaceProvider.create(logicalId, resourceType, replaceProps, { maskSecrets: createSecretMasker(updateSecrets) })), logicalId, void 0, void 0, replaceProvider, true), logicalId, {
45401
+ }, () => withRetry(() => engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => replaceProvider.create(logicalId, resourceType, replaceProps, {
45402
+ maskSecrets: createSecretMasker(updateSecrets),
45403
+ ...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
45404
+ })), logicalId, void 0, void 0, replaceProvider, true), logicalId, {
44978
45405
  maxRetries: 8,
44979
45406
  initialDelayMs: 2e3,
44980
45407
  maxDelayMs: 1e4,
@@ -44988,7 +45415,7 @@ async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSam
44988
45415
  }
44989
45416
 
44990
45417
  // src/deployment/deploy-engine/update-replace/create-first.ts
44991
- async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, lostWithParent, nameChange }) {
45418
+ async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, typedPayloadLeaves, lostWithParent, nameChange }) {
44992
45419
  let createResult;
44993
45420
  engine.logger.info(safeMsg` Creating new ${logicalId}...`);
44994
45421
  let deletedOldFirst = lostWithParent !== void 0;
@@ -45004,7 +45431,10 @@ async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResour
45004
45431
  createdVia: replaceDecision.provisionedBy,
45005
45432
  resolvedProps,
45006
45433
  keepsName: lostWithParent !== void 0
45007
- }, () => engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => replaceProvider.create(logicalId, resourceType, replaceProps, { maskSecrets: createSecretMasker(updateSecrets) })), logicalId, void 0, void 0, replaceProvider, lostWithParent !== void 0));
45434
+ }, () => engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => replaceProvider.create(logicalId, resourceType, replaceProps, {
45435
+ maskSecrets: createSecretMasker(updateSecrets),
45436
+ ...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
45437
+ })), logicalId, void 0, void 0, replaceProvider, lostWithParent !== void 0));
45008
45438
  } catch (createError) {
45009
45439
  const createFailure = describeAwsFailure(createError);
45010
45440
  const createAwsMsg = displayAwsMessage(maskSecretsInText(createFailure.detail, updateSecrets));
@@ -45119,6 +45549,7 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
45119
45549
  });
45120
45550
  const replaceProvider = replaceDecision.provider;
45121
45551
  const replaceProps = replaceDecision.provisionedBy === "cc-api" ? preparePropertiesForCcApi(engine.providerRegistry, resourceType, resolvedProps, logicalId) : resolvedProps;
45552
+ const typedPayloadLeaves = customResourcePayloadLeaves(resourceType, template?.Resources?.[logicalId]?.Properties, resolvedProps, template, engine.noEchoRun.noEchoConditions, stateResources);
45122
45553
  const oldDeleteRoute = engine.providerRegistry.getProviderFor({
45123
45554
  resourceType: oldResourceType,
45124
45555
  provisionedBy: currentResource.provisionedBy
@@ -45168,6 +45599,7 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
45168
45599
  deleteProvisionedBy: oldDeleteRoute.provisionedBy,
45169
45600
  deleteProperties: currentResource.properties,
45170
45601
  secrets: updateSecrets,
45602
+ typedPayloadLeaves,
45171
45603
  change: nameChange,
45172
45604
  equalIdIsSameResource,
45173
45605
  snapshotPolicy: updateReplacePolicy,
@@ -45191,7 +45623,8 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
45191
45623
  stackName,
45192
45624
  updateReplacePolicy,
45193
45625
  updateSecrets,
45194
- recreateViaCcApi
45626
+ recreateViaCcApi,
45627
+ typedPayloadLeaves
45195
45628
  });
45196
45629
  else createResult = await replaceCreateFirst(engine, {
45197
45630
  currentResource,
@@ -45210,6 +45643,7 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
45210
45643
  updateReplacePolicy,
45211
45644
  updateSecrets,
45212
45645
  lostWithParent,
45646
+ typedPayloadLeaves,
45213
45647
  nameChange
45214
45648
  });
45215
45649
  registerNoEchoAttributes(engine.secretsRun, engine.maskingDeps(), logicalId, createResult, updateSecrets, resolvedProps);
@@ -45225,7 +45659,8 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
45225
45659
  ...secretNamedAttributesField(createResult),
45226
45660
  ...dependencies && dependencies.length > 0 && { dependencies },
45227
45661
  ...extractTemplateAttributes(template, logicalId),
45228
- provisionedBy: replaceDecision.provisionedBy
45662
+ provisionedBy: replaceDecision.provisionedBy,
45663
+ ...customResourcePayloadLeavesField(typedPayloadLeaves)
45229
45664
  };
45230
45665
  clearCreatedReport();
45231
45666
  engine.recordInlinePolicyWrite(logicalId, "create");
@@ -45259,6 +45694,36 @@ function ccAutoRouteUpdateFailureRemedy(logicalId, resourceType, autoRoutedPrope
45259
45694
  return `\nThis update moved the resource from its SDK provider to Cloud Control API, because the SDK provider does not handle ${shown}. Cloud Control addresses it by the physical id the SDK provider recorded, and for some types that is not an identifier Cloud Control accepts. ` + (nestedChild ? `It is in a nested stack, which --recreate-via-cc-api cannot address: ${preferSdk}, or remove ${them} from the template.` : `Two ways through: re-create the resource on Cloud Control with --recreate-via-cc-api ${id} (destroys and re-creates it), or ${preferSdk}.`);
45260
45695
  }
45261
45696
 
45697
+ // src/deployment/deploy-engine/update-in-place/unsettled-marks.ts
45698
+ function unsettledMarkSinks(engine, logicalId, resolvedProps, currentResource) {
45699
+ return {
45700
+ markUnsettled: (propertyName) => {
45701
+ if (typeof propertyName !== "string" || propertyName === "") return;
45702
+ if (!Object.hasOwn(resolvedProps, propertyName) && !Object.hasOwn(currentResource.properties ?? {}, propertyName)) {
45703
+ engine.logger.debug(safeMsg`${logicalId}: ignored an unsettled mark for ${propertyName}, which is not one of its properties`);
45704
+ return;
45705
+ }
45706
+ let marks = engine.unsettledMarks.get(logicalId);
45707
+ if (marks === void 0) {
45708
+ marks = /* @__PURE__ */ new Set();
45709
+ engine.unsettledMarks.set(logicalId, marks);
45710
+ }
45711
+ marks.add(propertyName);
45712
+ },
45713
+ markAttempted: (path, items) => {
45714
+ if (typeof path !== "string" || path === "") return;
45715
+ let byPath = engine.unsettledItemMarks.get(logicalId);
45716
+ if (byPath === void 0) {
45717
+ byPath = /* @__PURE__ */ new Map();
45718
+ engine.unsettledItemMarks.set(logicalId, byPath);
45719
+ }
45720
+ const names = byPath.get(path) ?? /* @__PURE__ */ new Set();
45721
+ for (const item of items) if (typeof item === "string" && item !== "") names.add(item);
45722
+ byPath.set(path, names);
45723
+ }
45724
+ };
45725
+ }
45726
+
45262
45727
  // src/deployment/deploy-engine/replacement/cleanup-old-id.ts
45263
45728
  async function deleteOldIdAfterDeploy(run, deps, input) {
45264
45729
  const { logicalId, oldResource } = input;
@@ -45384,6 +45849,7 @@ async function replaceFallbackFor(engine, { currentProps, currentResource, logic
45384
45849
  recordedAttributes: currentResource.attributes,
45385
45850
  recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
45386
45851
  recordedNoEchoLeaves: currentResource.noEchoLeaves,
45852
+ recordedTypedPayloadLeaves: currentResource.typedPayloadLeaves,
45387
45853
  ...noEchoDeleteValues !== void 0 && { noEchoDeleteValues },
45388
45854
  maskSecrets: createUnionSecretMasker([updateSecrets, secretNameBagFor(engine.secretsRun, logicalId)])
45389
45855
  }));
@@ -45586,6 +46052,7 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
45586
46052
  let captureProvider = updateProvider;
45587
46053
  let replacedAtGeneration;
45588
46054
  const inlinePolicyClaimed = engine.inlinePolicyClaimedFor(resourceType, logicalId, stateResources);
46055
+ const typedPayloadLeaves = customResourcePayloadLeaves(resourceType, template?.Resources?.[logicalId]?.Properties, resolvedProps, template, conditions, stateResources);
45589
46056
  try {
45590
46057
  result = await engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => updateProvider.update(logicalId, currentResource.physicalId, resourceType, removal.properties, previousSettled, {
45591
46058
  maskSecrets: createSecretMasker(updateSecrets),
@@ -45593,33 +46060,14 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
45593
46060
  recordedAttributes: currentResource.attributes,
45594
46061
  recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
45595
46062
  ...inlinePolicyClaimed && { inlinePolicyClaimed },
46063
+ ...typedPayloadLeaves !== void 0 && {
46064
+ typedPayloadLeaves,
46065
+ previousTypedPayloadLeaves: recordedTypedPayloadLeavesOf(currentResource)
46066
+ },
45596
46067
  ...removal.context,
45597
46068
  changedProperties: changedForProvider,
45598
46069
  ...noEchoUpdateContext(engine, logicalId, noEchoOnlyForProvider, changedForProvider),
45599
- markUnsettled: (propertyName) => {
45600
- if (typeof propertyName !== "string" || propertyName === "") return;
45601
- if (!Object.hasOwn(resolvedProps, propertyName) && !Object.hasOwn(currentResource.properties ?? {}, propertyName)) {
45602
- engine.logger.debug(safeMsg`${logicalId}: ignored an unsettled mark for ${propertyName}, which is not one of its properties`);
45603
- return;
45604
- }
45605
- let marks = engine.unsettledMarks.get(logicalId);
45606
- if (marks === void 0) {
45607
- marks = /* @__PURE__ */ new Set();
45608
- engine.unsettledMarks.set(logicalId, marks);
45609
- }
45610
- marks.add(propertyName);
45611
- },
45612
- markAttempted: (path, items) => {
45613
- if (typeof path !== "string" || path === "") return;
45614
- let byPath = engine.unsettledItemMarks.get(logicalId);
45615
- if (byPath === void 0) {
45616
- byPath = /* @__PURE__ */ new Map();
45617
- engine.unsettledItemMarks.set(logicalId, byPath);
45618
- }
45619
- const names = byPath.get(path) ?? /* @__PURE__ */ new Set();
45620
- for (const item of items) if (typeof item === "string" && item !== "") names.add(item);
45621
- byPath.set(path, names);
45622
- },
46070
+ ...unsettledMarkSinks(engine, logicalId, resolvedProps, currentResource),
45623
46071
  ...unsettled.size > 0 && { unsettledProperties: unsettled },
45624
46072
  ...unsettledItems.size > 0 && { unsettledItems }
45625
46073
  })), logicalId, void 0, void 0, updateProvider);
@@ -45745,6 +46193,7 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
45745
46193
  ...dependencies && dependencies.length > 0 && { dependencies },
45746
46194
  ...extractTemplateAttributes(template, logicalId),
45747
46195
  provisionedBy: resultProvisionedBy,
46196
+ ...typedPayloadLeaves !== void 0 && { typedPayloadLeaves },
45748
46197
  ...stillUnsettled.length > 0 && {
45749
46198
  unsettledProperties: stillUnsettled,
45750
46199
  ...unsettledItemsField(currentResource, stillUnsettled)
@@ -47171,6 +47620,7 @@ async function executeDeployment(engine, template, currentState, changes, dag, e
47171
47620
  await writeRollbackJournalSegment(engine.rollbackDeps(), stackName, completedOperations, failedOperations, "no-rollback-failure", currentEtag === void 0);
47172
47621
  throw outputError;
47173
47622
  }
47623
+ Object.assign(newResources, withTemplateDependencies(newResources, template, { removalsOnly: engine.options.parentStackInfo !== void 0 }));
47174
47624
  return {
47175
47625
  state: {
47176
47626
  version: 17,
@@ -48474,14 +48924,15 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
48474
48924
  stackName
48475
48925
  });
48476
48926
  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) {
48927
+ const refreshedResources = withTemplateDependencies(currentState.resources, effectiveTemplate, { removalsOnly: engine.options.parentStackInfo !== void 0 });
48928
+ if (observedRefresh || refreshedResources !== void 0 || outputProvenanceBackfill || maskedFingerprintsBackfilled || conditionVerdictsChanged || outputsChanged || exportSetChanged || skippedOutputsChanged || orphansChanged || supersededChanged || terminationProtectionChanged || ssmNamesHealed || nestedSsmNamesMarked || healedAttributesPending) {
48478
48929
  await resolveStackInstanceId();
48479
48930
  try {
48480
48931
  const refreshedState = {
48481
48932
  version: 17,
48482
48933
  region: engine.stackRegion,
48483
48934
  stackName: currentState.stackName,
48484
- resources: currentState.resources,
48935
+ resources: refreshedResources ?? currentState.resources,
48485
48936
  ...orphansCarriedFrom(currentState),
48486
48937
  ...stackInstanceIdCarriedFrom(currentState),
48487
48938
  outputs: outputsChanged ? outputsToPersist : persistedOutputs,
@@ -48504,6 +48955,7 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
48504
48955
  outputs: redactOutputs(engine.maskingDeps(), refreshedState.outputs)
48505
48956
  }));
48506
48957
  } else if (observedRefresh) engine.logger.debug("Persisted refreshed observedProperties (no-change path)");
48958
+ else if (refreshedResources !== void 0) engine.logger.debug("Persisted dependencies refreshed from the template (no-change path)");
48507
48959
  else if (healedAttributesPending) engine.logger.debug("Persisted attributes re-read from AWS for a stale record (no-change path)");
48508
48960
  else engine.logger.debug("Persisted skipped-outputs record (no outputs-value diff, no-change path)");
48509
48961
  } catch (saveError) {
@@ -48511,7 +48963,7 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
48511
48963
  }
48512
48964
  }
48513
48965
  }
48514
- const journaledOrphansLeft = engine.options.dryRun ? 0 : await settleJournalAfterSuccess(engine.rollbackDeps(), stackName, [], currentState, currentState.resources, currentEtag === void 0);
48966
+ const journaledOrphansLeft = engine.options.dryRun ? 0 : await settleJournalAfterSuccess(engine.rollbackDeps(), stackName, [], currentState, currentState.resources, currentEtag === void 0, effectiveTemplate);
48515
48967
  clock.lap("no-change path");
48516
48968
  return {
48517
48969
  stackName,
@@ -48622,7 +49074,7 @@ async function settleSuccessfulDeploy(engine, { stackName, template, currentStat
48622
49074
  }
48623
49075
  })();
48624
49076
  const [journaledOrphansLeft] = await Promise.all([
48625
- settleJournalAfterSuccess(engine.rollbackDeps(), stackName, completedOperations, currentState, newState.resources, currentEtag === void 0),
49077
+ settleJournalAfterSuccess(engine.rollbackDeps(), stackName, completedOperations, currentState, newState.resources, currentEtag === void 0, template),
48626
49078
  engine.exportIndexStore ? engine.exportIndexStore.updateForStack(stackName, engine.stackRegion, importableOutputs({
48627
49079
  ...newState,
48628
49080
  outputs: redactOutputs(engine.maskingDeps(), newState.outputs)
@@ -49247,4 +49699,4 @@ var DeployEngine = class {
49247
49699
  };
49248
49700
 
49249
49701
  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
49702
+ //# sourceMappingURL=deploy-engine-BCutoRqN.js.map