@cdkd/cli 0.371.0 → 0.372.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/{ambient-client-defaults-DzKSQvWN.js → ambient-client-defaults-B9_o60dB.js} +3 -3
  2. package/dist/{ambient-client-defaults-DzKSQvWN.js.map → ambient-client-defaults-B9_o60dB.js.map} +1 -1
  3. package/dist/{asg-provider-BkR7gv40.js → asg-provider-D6gQPSZu.js} +8 -8
  4. package/dist/{asg-provider-BkR7gv40.js.map → asg-provider-D6gQPSZu.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{created-resource-sink-D7FufEaB.js → created-resource-sink-CxezDoaQ.js} +4 -4
  7. package/dist/{created-resource-sink-D7FufEaB.js.map → created-resource-sink-CxezDoaQ.js.map} +1 -1
  8. package/dist/{custom-resource-runtime-DyUvtovF.js → custom-resource-runtime-BiP0vn3W.js} +6 -6
  9. package/dist/{custom-resource-runtime-DyUvtovF.js.map → custom-resource-runtime-BiP0vn3W.js.map} +1 -1
  10. package/dist/{db-associated-roles-Dq-VSmuu.js → db-associated-roles-BfvrD9UK.js} +2 -2
  11. package/dist/{db-associated-roles-Dq-VSmuu.js.map → db-associated-roles-BfvrD9UK.js.map} +1 -1
  12. package/dist/{delete-started-C8fWcehI.js → delete-started-BtXSEHsh.js} +4 -4
  13. package/dist/{delete-started-C8fWcehI.js.map → delete-started-BtXSEHsh.js.map} +1 -1
  14. package/dist/{deploy-engine-BsKzx9ys.js → deploy-engine-D6iEbD4R.js} +1889 -301
  15. package/dist/deploy-engine-D6iEbD4R.js.map +1 -0
  16. package/dist/{ec2-termination-protection-CJjU7OpO.js → ec2-termination-protection-DXZyU3Q0.js} +3 -3
  17. package/dist/{ec2-termination-protection-CJjU7OpO.js.map → ec2-termination-protection-DXZyU3Q0.js.map} +1 -1
  18. package/dist/{ecr-uri-BYBZlAlS.js → ecr-uri-C0JbYdmm.js} +2 -2
  19. package/dist/{ecr-uri-BYBZlAlS.js.map → ecr-uri-C0JbYdmm.js.map} +1 -1
  20. package/dist/{emr-cluster-provider-Cz2_BHvv.js → emr-cluster-provider-BCu1qq9J.js} +10 -10
  21. package/dist/{emr-cluster-provider-Cz2_BHvv.js.map → emr-cluster-provider-BCu1qq9J.js.map} +1 -1
  22. package/dist/{expected-bucket-owner-Dr7zxlJn.js → expected-bucket-owner-C2OXO5oD.js} +2 -2
  23. package/dist/{expected-bucket-owner-Dr7zxlJn.js.map → expected-bucket-owner-C2OXO5oD.js.map} +1 -1
  24. package/dist/{iam-role-provider-C27pVBaA.js → iam-role-provider-DFBJRsvA.js} +12 -12
  25. package/dist/{iam-role-provider-C27pVBaA.js.map → iam-role-provider-DFBJRsvA.js.map} +1 -1
  26. package/dist/{identity-read-denied-DHWVUHrX.js → identity-read-denied-C17mECu-.js} +5 -5
  27. package/dist/{identity-read-denied-DHWVUHrX.js.map → identity-read-denied-C17mECu-.js.map} +1 -1
  28. package/dist/{image-plan-D2uTAfxX.js → image-plan-sEIpoR31.js} +18 -11
  29. package/dist/image-plan-sEIpoR31.js.map +1 -0
  30. package/dist/index.d.ts +6 -0
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +5 -5
  33. package/dist/{logger-DVdLGob_.js → logger-BoDS8cs5.js} +2 -2
  34. package/dist/{logger-DVdLGob_.js.map → logger-BoDS8cs5.js.map} +1 -1
  35. package/dist/{neptune-provider-CkbTF9aG.js → neptune-provider-CL5WtULJ.js} +9 -9
  36. package/dist/{neptune-provider-CkbTF9aG.js.map → neptune-provider-CL5WtULJ.js.map} +1 -1
  37. package/dist/{program-BBg-9V23.js → program-BBXUa34K.js} +530 -59
  38. package/dist/program-BBXUa34K.js.map +1 -0
  39. package/dist/{provider-classes-DWi0yjHc.js → provider-classes-BiWcIBLc.js} +32 -25
  40. package/dist/{provider-classes-DWi0yjHc.js.map → provider-classes-BiWcIBLc.js.map} +1 -1
  41. package/dist/{rds-provider-BV4XW4wv.js → rds-provider--XBD_TS8.js} +25 -14
  42. package/dist/{rds-provider-BV4XW4wv.js.map → rds-provider--XBD_TS8.js.map} +1 -1
  43. package/dist/{read-replica-B08_DZNH.js → read-replica-apcXpKN9.js} +3 -3
  44. package/dist/{read-replica-B08_DZNH.js.map → read-replica-apcXpKN9.js.map} +1 -1
  45. package/dist/{redacted-delete-address-Be4d3ZWA.js → redacted-delete-address-S_A40Diz.js} +4 -4
  46. package/dist/{redacted-delete-address-Be4d3ZWA.js.map → redacted-delete-address-S_A40Diz.js.map} +1 -1
  47. package/dist/{replacement-rules-DL9MZWSp.js → replacement-rules-BArdRPgU.js} +125 -26
  48. package/dist/replacement-rules-BArdRPgU.js.map +1 -0
  49. package/dist/{resource-deadline-D65EA80y.js → resource-deadline-DWvjidOS.js} +2 -2
  50. package/dist/{resource-deadline-D65EA80y.js.map → resource-deadline-DWvjidOS.js.map} +1 -1
  51. package/dist/{restore-source-guard-ClcpxInI.js → restore-source-guard-k9BQAviV.js} +4 -4
  52. package/dist/{restore-source-guard-ClcpxInI.js.map → restore-source-guard-k9BQAviV.js.map} +1 -1
  53. package/dist/{run-cli-zFQkbzGk.js → run-cli-DEVVmR3v.js} +2 -2
  54. package/dist/{run-cli-zFQkbzGk.js.map → run-cli-DEVVmR3v.js.map} +1 -1
  55. package/dist/{secret-reference-immutable-Bh9gCLFt.js → secret-reference-immutable-0mb2D0J5.js} +20 -11
  56. package/dist/secret-reference-immutable-0mb2D0J5.js.map +1 -0
  57. package/dist/{settle-own-write-members-B-g5oflo.js → settle-own-write-members-DPTK_vVK.js} +13 -684
  58. package/dist/settle-own-write-members-DPTK_vVK.js.map +1 -0
  59. package/dist/{tag-list-DX_Ke9se.js → tag-list-B19O4m3W.js} +4 -4
  60. package/dist/{tag-list-DX_Ke9se.js.map → tag-list-B19O4m3W.js.map} +1 -1
  61. package/dist/{version-G1wdb4QW.js → version-Byf_RTiH.js} +2 -2
  62. package/dist/{version-G1wdb4QW.js.map → version-Byf_RTiH.js.map} +1 -1
  63. package/package.json +1 -1
  64. package/dist/deploy-engine-BsKzx9ys.js.map +0 -1
  65. package/dist/image-plan-D2uTAfxX.js.map +0 -1
  66. package/dist/program-BBg-9V23.js.map +0 -1
  67. package/dist/replacement-rules-DL9MZWSp.js.map +0 -1
  68. package/dist/secret-reference-immutable-Bh9gCLFt.js.map +0 -1
  69. package/dist/settle-own-write-members-B-g5oflo.js.map +0 -1
@@ -1,20 +1,20 @@
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-G1wdb4QW.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-DVdLGob_.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, R as isRetryableTransientError, 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-DzKSQvWN.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-Byf_RTiH.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-BoDS8cs5.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, R as isRetryableTransientError, 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-B9_o60dB.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 { C as timePhase, D as parseFailureDebugDetail, E as jsonParseFailureStandIn, O as parseJsonNamingNoBody, T as describeJsonParseFailure, _ as CREATE_ONLY_PATHS_SNAPSHOT, a as getCreateOnlyPropertyPaths, b as phaseTimingsEnabled, c as templateResourceTypes, d as hasNoRegistrySchema, f as isAwsEmulatorRegistryMiss, g as withRetry, h as IAM_PROPAGATION_MAX_DELAY_MS, k as utf8ByteLength, l as parseCreateOnlyPropertyPointers, m as scheduleDescribeType, n as unchangedBehindSecretReference, o as isIntrinsicShaped, p as reportAwsEmulatorRegistryMiss, r as cachedCreateOnlyPropertyPaths, s as prefetchCreateOnlyPropertyPaths, t as onlySecretReferencesDiffer, u as describeTypeWithThrottleRetry, v as PhaseClock, w as timePhaseSync, x as recordPhase, y as phaseScopeForStack } from "./secret-reference-immutable-Bh9gCLFt.js";
6
+ import { C as timePhase, D as parseFailureDebugDetail, E as jsonParseFailureStandIn, O as parseJsonNamingNoBody, T as describeJsonParseFailure, _ as CREATE_ONLY_PATHS_SNAPSHOT, a as getCreateOnlyPropertyPaths, b as phaseTimingsEnabled, c as templateResourceTypes, d as hasNoRegistrySchema, f as isAwsEmulatorRegistryMiss, g as withRetry, h as IAM_PROPAGATION_MAX_DELAY_MS, i as createOnlyChangeRequiresReplacement, k as utf8ByteLength, l as parseCreateOnlyPropertyPointers, m as scheduleDescribeType, n as unchangedBehindSecretReference, o as isIntrinsicShaped, p as reportAwsEmulatorRegistryMiss, r as cachedCreateOnlyPropertyPaths, s as prefetchCreateOnlyPropertyPaths, t as onlySecretReferencesDiffer, u as describeTypeWithThrottleRetry, v as PhaseClock, w as timePhaseSync, x as recordPhase, y as phaseScopeForStack } from "./secret-reference-immutable-0mb2D0J5.js";
7
7
  import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
8
- import { $ as ElapsedBudget, At as resourceTypeShown, Ct as startInterruptWatch, D as isQuotableImportValue, Et as compositeIdSeparatorRefusal, F as markNotGone, Ft as isSecretDerivedValue, Gt as isAuxiliaryFailure, Ht as createdBeforeFailure, I as compensateProtectionFlip, It as maskDeep, Jt as markCreatedBeforeFailure, Kt as isAuxiliaryMarkOf, L as deleteWithProtectionCompensation, Lt as maskerOrIdentity, Mt as stateOrphanRecordRemedy, N as resolveExplicitPhysicalId, Nt as createMaskedLogSinks, O as normalizeAwsTagsToCfn, Ot as logicalIdShown, P as isMarkedNotGone, Pt as createMaskedRetryLogger, Q as runDeleteAttempt, Rt as withDerivedNameMasks, St as isInterruptedWaitError, Ut as createdResourceIdentityBeforeFailure, X as isTerminalDeleteFailure, Y as ProtectionFlipRegistry, Z as protectionFlipKey, _ as withoutServerErrorRetries, an as sanitizeRecoveryValue, b as assertRegionMatch, cn as WAIT_CONDITION_SIGNAL_PREFIX, dn as withPasteableAwsProfile, et as ElapsedBudgetRegistry, fn as injectiveKey, hn as producerRecordKey, i as reportCreatedResource, in as recoveryCommandFlags, j as refusalTypeShown, jt as segmentAfterAnchor, k as quotedRemedyLogicalId, n as clearCreatedReport, nt as DELETION_PROTECTION_DOC_POINTER, o as retractCreatedResource, on as CUSTOM_RESOURCE_RESPONSE_PREFIX, ot as pasteableAwsCommand, qt as markAuxiliaryFailure, r as collectCreatedResources, sn as DEFAULT_STATE_PREFIX, st as protectedReplacementAdvice, t as CreatedResourceSink, tt as monotonicNowMs, vt as withUnchangedSecretPrincipalLists, wt as canonicalizeRoute53QueryName, y as RESOURCE_NOT_FOUND, z as observeThenDisableProtection, zt as RETRY_AUXILIARY_OWNER } from "./created-resource-sink-D7FufEaB.js";
9
- import { t as expectedOwnerParam } from "./expected-bucket-owner-Dr7zxlJn.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-C8fWcehI.js";
11
- import { $t as inheritedParameterExpression, A as witnessNormalize, An as recordDerivedMaskOnlyValue, At as withPhysicalNameCopies, B as redactionClaimOf, Bn as isDynamicReferenceString, Cn as isNoEchoParameterPlaintext, Ct as replaceWholeLeaves, D as recordedNoEchoValuesOf, Dn as noEchoParameterPlaintextsOf, Dt as repairPhysicalNameCopyLeaves, E as recordPassedNoEchoParameters, En as markNoEchoParameterClass, Et as repairEmbeddedPhysicalNamesTowards, F as markLeafCertifiedBag, Fn as recordNoEchoParameterFreshValue, Ft as DYNAMIC_REFERENCE_TOKEN_SCAN, G as foldRecording, Gt as splitOutsideDynamicReferences, H as mixedLiteralAnswered, Hn as maskMatchSpans, Ht as arrayPairsWhateverDrops, I as markSameGenerationBag, In as recordProvenPublicExpression, It as dynamicReferenceSpans, J as hasPassProvenance, Jt as recordTakenIfBranch, K as openRecordingScope, Kt as standsForInheritedSecret, L as mergeResolvedPairs, Ln as wholeStringLeavesOf, Lt as dynamicReferenceTokens, M as carryRedactionMarks, Mt as spanNamesResolvableService, N as intrinsicLeafResolutionOf, O as replaceAtCoordinates, On as pinScopedSecretVerdict, Ot as replaceEmbeddedPhysicalNameRewrites, P as isSameGenerationBag, Pn as recordNoEchoAttributeValues, Pt as staticTemplateText, Q as recordReferenceResolution, Qt as inheritNestedStackParameterAssociations, R as recordIntrinsicLeafResolution, Rn as withoutNoEchoParameterEntries, S as noEchoParametersReadBy, Sn as isMaskOnlyPlaintext, St as overlapRuleAnswered, Tn as isSecretExpressionByVerdictOrSpelling, Tt as embeddedPhysicalNameRewrites, U as withLegacyMixedScan, V as resolvedPlaintextOf, Vn as isSingleDynamicReferenceToken, W as redactForState, Wt as rereadParameterExpression, X as passReadVersionsFor, Xt as recordInheritedPseudoParameters, Y as passProvenanceFor, Yt as inheritedPseudoValue, Z as recordReferenceProvenanceEntry, Zt as templateRereadsAccountId, _ as noEchoComparison, _n as splitGetAttStringForm, _t as maskSecretsInError, an as carriesFreshNoEchoValue, at as literalSplitDelimitersOf, bn as contradictProvenPublicExpression, bt as legacyLeavesWithoutMask, c as parseLambdaFunctionAddress, cn as recordRecoverableMaskedOutput, ct as printingCorpusOf, d as canonicalJson$7, dt as recordLogOnlyValue, en as inheritedRenderedToken, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordPhysicalNameCopy, ft as shareLogOnlyValues, g as maskedLeafCoordinatesOf, gn as recordCrossStackExpression, gt as maskRecordedSecretsInText, h as maskWholeValue, hn as crossStackSourceKey, ht as errorCauseChain, in as withdrawRenderedParameterSpelling, it as hasMaskableValues, jn as recordFreshNoEchoValuesIn, jt as withoutPhysicalNameCopies, k as valueAtCoordinate, kt as scrubResourceRecord, ln as recoverMaskedOutput, lt as recordLogOnlyParameterValue, m as maskReadbackAtCoordinates, mn as nestedStackRowTagSpellingOf, mt as createSecretMasker, nn as recordInheritedParameterValue, nt as createUnionSecretMasker, on as embedsFreshNoEchoValue, ot as logOnlyValueCount, p as maskAtCoordinates, pn as recordNestedStackParameterExpressions, pt as unionOfSecretBags, q as recordSecretResolution, qt as recordDroppedArrayElements, rn as redactInheritedParameterValue, rt as hasLogOnlyValues, sn as freshNoEchoLeafPositions, st as logOnlyValuesOf, t as ReplacementRulesRegistry, tn as recordInheritedParameterRead, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as physicalNameCopiesOf, ut as recordLogOnlySplitFragments, v as noEchoCoordinatesOf, vn as carriesSecretMask, vt as maskSecretsInText, w as readbackPathFor, wn as isScopedSecretVerdict, wt as withLegacyOverlapScan, x as noEchoParameterNodesAt, xn as freshNoEchoValuesOf, xt as legacyReferenceLeavesOnly, y as noEchoLeavesOf, yn as carryFreshNoEchoMark, yt as differingStringLeaves, z as recordIntrinsicLeafResolutionAs, zt as secretRerenderPairs } from "./replacement-rules-DL9MZWSp.js";
12
- import { S as willReplaceGroup, _ as INSTANCE_REFRESH_TRIGGER_PROPERTIES, a as reDisableInstanceApiTermination, b as ignoresUnmodifiedGroupSize, c as resolvedResourceTimeoutMs, d as isRefusedBeforeApplying, f as markRefusedBeforeApplying, g as withPriorAttempts, h as provenOrphanIdsInJournal, i as observeThenDisableInstanceApiTermination, m as priorAttemptsInJournal, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as priorAttemptLookup, r as isTerminationProtectionPropagationError, v as REPLACEMENT_TRIGGER_PROPERTIES, x as rollingUpdatePolicy } from "./ec2-termination-protection-CJjU7OpO.js";
13
- import { C as withUnsettledItems, S as unsettledPropertiesOf, T as withoutUnsettledProperties, _ as isUsableAttemptedName, b as unsettledItemsOf, c as definedAttributes, d as awaitDeferredResource, f as awaitUpstreamReadiness, g as withDeferredReadinessScope, i as refuseRestoreFromItself, p as currentDeferredReadinessScope, v as unsettledContextOf, w as withUnsettledProperties, x as unsettledItemsTopKey, y as unsettledItemsField } from "./restore-source-guard-ClcpxInI.js";
14
- import { S as isoTimestampAttribute, _ as isRecordedIdentityAttribute, a as lookupEachName, b as newCopyDeleteAttributes, d as identityWarner, h as attributesAfterUpdate, i as isAccessDeniedError, l as assertRecordedIdentity, m as SURVIVOR_IDENTITY_ATTRIBUTES, p as recordedIdentityId, t as deniedIdentityReadRefusal, u as differingIdentityWarning, v as isUsableIdentityValue, x as replaceDeadIdentity, y as keepRecordedIdentity } from "./identity-read-denied-DHWVUHrX.js";
15
- import { a as refuseMalformedDesiredTags, i as readTagList, r as planTagDiff, s as tagPlanWarning } from "./tag-list-DX_Ke9se.js";
16
- import { a as withResourceDeadline, c as removalWarning, d as withoutInjectedRemovals, i as whileEnclosingDeadlinesPaused, n as enclosingDeadlineRemainingMs, r as outsideEnclosingDeadlines, s as prepareRemovalForUpdate, t as enclosingDeadlineExpired } from "./resource-deadline-D65EA80y.js";
17
- import { n as isRedactedRecordedValue } from "./redacted-delete-address-Be4d3ZWA.js";
8
+ import { $ as ElapsedBudget, At as resourceTypeShown, Ct as startInterruptWatch, D as isQuotableImportValue, Et as compositeIdSeparatorRefusal, F as markNotGone, Ft as isSecretDerivedValue, Gt as isAuxiliaryFailure, Ht as createdBeforeFailure, I as compensateProtectionFlip, It as maskDeep, Jt as markCreatedBeforeFailure, Kt as isAuxiliaryMarkOf, L as deleteWithProtectionCompensation, Lt as maskerOrIdentity, Mt as stateOrphanRecordRemedy, N as resolveExplicitPhysicalId, Nt as createMaskedLogSinks, O as normalizeAwsTagsToCfn, Ot as logicalIdShown, P as isMarkedNotGone, Pt as createMaskedRetryLogger, Q as runDeleteAttempt, Rt as withDerivedNameMasks, St as isInterruptedWaitError, Ut as createdResourceIdentityBeforeFailure, X as isTerminalDeleteFailure, Y as ProtectionFlipRegistry, Z as protectionFlipKey, _ as withoutServerErrorRetries, an as sanitizeRecoveryValue, b as assertRegionMatch, cn as WAIT_CONDITION_SIGNAL_PREFIX, dn as withPasteableAwsProfile, et as ElapsedBudgetRegistry, fn as injectiveKey, hn as producerRecordKey, i as reportCreatedResource, in as recoveryCommandFlags, j as refusalTypeShown, jt as segmentAfterAnchor, k as quotedRemedyLogicalId, n as clearCreatedReport, nt as DELETION_PROTECTION_DOC_POINTER, o as retractCreatedResource, on as CUSTOM_RESOURCE_RESPONSE_PREFIX, ot as pasteableAwsCommand, qt as markAuxiliaryFailure, r as collectCreatedResources, sn as DEFAULT_STATE_PREFIX, st as protectedReplacementAdvice, t as CreatedResourceSink, tt as monotonicNowMs, vt as withUnchangedSecretPrincipalLists, wt as canonicalizeRoute53QueryName, y as RESOURCE_NOT_FOUND, z as observeThenDisableProtection, zt as RETRY_AUXILIARY_OWNER } from "./created-resource-sink-CxezDoaQ.js";
9
+ import { t as expectedOwnerParam } from "./expected-bucket-owner-C2OXO5oD.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-BtXSEHsh.js";
11
+ import { $ as recordSecretResolution, $t as recordDroppedArrayElements, A as readbackPathFor, An as isScopedSecretVerdict, At as withLegacyOverlapScan, B as isSameGenerationBag, Bn as recordNoEchoAttributeValues, Bt as staticTemplateText, C as noEchoComparison, Cn as splitGetAttStringForm, Ct as maskSecretsInError, D as noEchoParameterNodesAt, Dn as freshNoEchoValuesOf, Dt as legacyReferenceLeavesOnly, En as contradictProvenPublicExpression, Et as legacyLeavesWithoutMask, F as valueAtCoordinate, Ft as scrubResourceRecord, G as recordIntrinsicLeafResolutionAs, Gt as secretRerenderPairs, H as markSameGenerationBag, Hn as recordProvenPublicExpression, Ht as dynamicReferenceSpans, I as witnessNormalize, In as recordDerivedMaskOnlyValue, It as withPhysicalNameCopies, J as mixedLiteralAnswered, Jn as maskMatchSpans, Jt as arrayPairsWhateverDrops, K as redactionClaimOf, Kn as isDynamicReferenceString, Ln as recordFreshNoEchoValuesIn, Lt as withoutPhysicalNameCopies, M as recordPassedNoEchoParameters, Mn as markNoEchoParameterClass, Mt as repairEmbeddedPhysicalNamesTowards, N as recordedNoEchoValuesOf, Nn as noEchoParameterPlaintextsOf, Nt as repairPhysicalNameCopyLeaves, O as noEchoParametersReadBy, On as isMaskOnlyPlaintext, Ot as overlapRuleAnswered, P as replaceAtCoordinates, Pn as pinScopedSecretVerdict, Pt as replaceEmbeddedPhysicalNameRewrites, Q as openRecordingScope, Qt as standsForInheritedSecret, R as carryRedactionMarks, Rt as spanNamesResolvableService, S as maskedLeafCoordinatesOf, Sn as recordCrossStackExpression, St as maskRecordedSecretsInText, T as noEchoLeavesOf, Tn as carryFreshNoEchoMark, Tt as differingStringLeaves, U as mergeResolvedPairs, Un as wholeStringLeavesOf, Ut as dynamicReferenceTokens, V as markLeafCertifiedBag, Vn as recordNoEchoParameterFreshValue, Vt as DYNAMIC_REFERENCE_TOKEN_SCAN, W as recordIntrinsicLeafResolution, Wn as withoutNoEchoParameterEntries, X as redactForState, Xt as rereadParameterExpression, Y as withLegacyMixedScan, Z as foldRecording, Zt as splitOutsideDynamicReferences, _ as canonicalJson$7, _t as recordLogOnlyValue, a as liveHoldsFreshLeaves, an as inheritedParameterExpression, b as maskReadbackAtCoordinates, bn as nestedStackRowTagSpellingOf, bt as createSecretMasker, cn as recordInheritedParameterValue, ct as createUnionSecretMasker, dn as carriesFreshNoEchoValue, dt as literalSplitDelimitersOf, en as recordTakenIfBranch, et as hasPassProvenance, fn as embedsFreshNoEchoValue, ft as logOnlyValueCount, g as canonicalCoordinates, gn as physicalNameCopiesOf, gt as recordLogOnlySplitFragments, hn as recoverMaskedOutput, ht as recordLogOnlyParameterValue, i as keyOrderFreeJson, in as inheritNestedStackParameterAssociations, it as recordReferenceResolution, jn as isSecretExpressionByVerdictOrSpelling, jt as embeddedPhysicalNameRewrites, kn as isNoEchoParameterPlaintext, kt as replaceWholeLeaves, ln as redactInheritedParameterValue, lt as hasLogOnlyValues, m as parseLambdaFunctionAddress, mn as recordRecoverableMaskedOutput, mt as printingCorpusOf, n as grantSentence, nn as recordInheritedPseudoParameters, nt as passReadVersionsFor, o as outputMapsEqual, on as inheritedRenderedToken, ot as carryLogOnlyValues, pn as freshNoEchoLeafPositions, pt as logOnlyValuesOf, q as resolvedPlaintextOf, qn as isSingleDynamicReferenceToken, r as isReplacementCeiling, rn as templateRereadsAccountId, rt as recordReferenceProvenanceEntry, s as readDenialOf, sn as recordInheritedParameterRead, st as carryLogOnlyValuesCarriedBy, t as ReplacementRulesRegistry, tn as inheritedPseudoValue, tt as passProvenanceFor, un as withdrawRenderedParameterSpelling, ut as hasMaskableValues, v as isMarkedCoordinate, vn as recordPhysicalNameCopy, vt as shareLogOnlyValues, w as noEchoCoordinatesOf, wn as carriesSecretMask, wt as maskSecretsInText, x as maskWholeValue, xn as crossStackSourceKey, xt as errorCauseChain, y as maskAtCoordinates, yn as recordNestedStackParameterExpressions, yt as unionOfSecretBags, z as intrinsicLeafResolutionOf } from "./replacement-rules-BArdRPgU.js";
12
+ import { S as willReplaceGroup, _ as INSTANCE_REFRESH_TRIGGER_PROPERTIES, a as reDisableInstanceApiTermination, b as ignoresUnmodifiedGroupSize, c as resolvedResourceTimeoutMs, d as isRefusedBeforeApplying, f as markRefusedBeforeApplying, g as withPriorAttempts, h as provenOrphanIdsInJournal, i as observeThenDisableInstanceApiTermination, m as priorAttemptsInJournal, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as priorAttemptLookup, r as isTerminationProtectionPropagationError, v as REPLACEMENT_TRIGGER_PROPERTIES, x as rollingUpdatePolicy, y as changedTriggers } from "./ec2-termination-protection-DXZyU3Q0.js";
13
+ import { C as withUnsettledItems, S as unsettledPropertiesOf, T as withoutUnsettledProperties, _ as isUsableAttemptedName, b as unsettledItemsOf, c as definedAttributes, d as awaitDeferredResource, f as awaitUpstreamReadiness, g as withDeferredReadinessScope, i as refuseRestoreFromItself, p as currentDeferredReadinessScope, v as unsettledContextOf, w as withUnsettledProperties, x as unsettledItemsTopKey, y as unsettledItemsField } from "./restore-source-guard-k9BQAviV.js";
14
+ import { S as isoTimestampAttribute, _ as isRecordedIdentityAttribute, a as lookupEachName, b as newCopyDeleteAttributes, d as identityWarner, h as attributesAfterUpdate, i as isAccessDeniedError, l as assertRecordedIdentity, m as SURVIVOR_IDENTITY_ATTRIBUTES, p as recordedIdentityId, t as deniedIdentityReadRefusal, u as differingIdentityWarning, v as isUsableIdentityValue, x as replaceDeadIdentity, y as keepRecordedIdentity } from "./identity-read-denied-C17mECu-.js";
15
+ import { a as refuseMalformedDesiredTags, i as readTagList, r as planTagDiff, s as tagPlanWarning } from "./tag-list-B19O4m3W.js";
16
+ import { a as withResourceDeadline, c as removalWarning, d as withoutInjectedRemovals, i as whileEnclosingDeadlinesPaused, n as enclosingDeadlineRemainingMs, r as outsideEnclosingDeadlines, s as prepareRemovalForUpdate, t as enclosingDeadlineExpired } from "./resource-deadline-DWvjidOS.js";
17
+ import { n as isRedactedRecordedValue } from "./redacted-delete-address-S_A40Diz.js";
18
18
  import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
19
19
  import { AsyncLocalStorage } from "node:async_hooks";
20
20
  import { CreateBucketCommand, DeleteObjectCommand, DeleteObjectsCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchKey, PutBucketEncryptionCommand, PutBucketLifecycleConfigurationCommand, PutBucketPolicyCommand, PutObjectCommand, PutPublicAccessBlockCommand, S3Client } from "@aws-sdk/client-s3";
@@ -88,7 +88,7 @@ async function resolveBucketRegion(bucketName, opts = {}) {
88
88
  });
89
89
  }
90
90
  try {
91
- const { expectedOwnerParam } = await import("./expected-bucket-owner-Dr7zxlJn.js").then((n) => n.n);
91
+ const { expectedOwnerParam } = await import("./expected-bucket-owner-C2OXO5oD.js").then((n) => n.n);
92
92
  return (await client.send(new GetBucketLocationCommand({
93
93
  Bucket: bucketName,
94
94
  ...await expectedOwnerParam(client)
@@ -4393,6 +4393,25 @@ var TemplateParser = class {
4393
4393
  }
4394
4394
  };
4395
4395
 
4396
+ // src/analyzer/diff-calculator/update-policy-replacement.ts
4397
+ function markUpdatePolicyReplacements(changes, desiredTemplate) {
4398
+ for (const [logicalId, change] of changes) {
4399
+ if (change.changeType !== "UPDATE") continue;
4400
+ if (change.resourceType !== "AWS::AutoScaling::AutoScalingGroup") continue;
4401
+ const updatePolicy = desiredTemplate.Resources[logicalId]?.UpdatePolicy;
4402
+ if (typeof updatePolicy !== "object" || updatePolicy === null) continue;
4403
+ if (!willReplaceGroup(updatePolicy)) continue;
4404
+ for (const pc of change.propertyChanges ?? []) {
4405
+ if (pc.noEchoPromoted === true) continue;
4406
+ const top = pc.path.split(/[.[]/)[0] ?? pc.path;
4407
+ if (!REPLACEMENT_TRIGGER_PROPERTIES.includes(top)) continue;
4408
+ if (pc.inPlacePropagated !== true && pc.replacementPropagated !== true && changedTriggers([top], change.desiredProperties ?? {}, change.currentProperties ?? {}).length === 0) continue;
4409
+ pc.requiresReplacement = true;
4410
+ pc.updatePolicyReplacement = true;
4411
+ }
4412
+ }
4413
+ }
4414
+
4396
4415
  // src/provisioning/providers/sns-subscription/attribute-plan.ts
4397
4416
  const MUTABLE_ATTRIBUTES = [
4398
4417
  "RawMessageDelivery",
@@ -9218,34 +9237,34 @@ function passedKey(passed) {
9218
9237
  function isNestedStackRow(logicalId, walk) {
9219
9238
  if (!Object.hasOwn(walk.resources, logicalId)) return false;
9220
9239
  const definition = walk.resources[logicalId];
9221
- return isPlainObject$10(definition) && definition["Type"] === "AWS::CloudFormation::Stack";
9240
+ return isPlainObject$11(definition) && definition["Type"] === "AWS::CloudFormation::Stack";
9222
9241
  }
9223
9242
  function getAttAttribute(operand, target) {
9224
9243
  if (Array.isArray(operand)) return operand.length === 2 && typeof operand[1] === "string" ? operand[1] : void 0;
9225
9244
  return typeof operand === "string" ? operand.slice(target.length + 1) : void 0;
9226
9245
  }
9227
9246
  function rowParameters(definition) {
9228
- const properties = isPlainObject$10(definition) ? definition["Properties"] : void 0;
9247
+ const properties = isPlainObject$11(definition) ? definition["Properties"] : void 0;
9229
9248
  if (properties === void 0) return {};
9230
- if (!isPlainObject$10(properties)) return "unknown";
9249
+ if (!isPlainObject$11(properties)) return "unknown";
9231
9250
  const parameters = properties["Parameters"];
9232
9251
  if (parameters === void 0) return {};
9233
- if (!isPlainObject$10(parameters) || intrinsicKey(parameters) !== void 0) return "unknown";
9252
+ if (!isPlainObject$11(parameters) || intrinsicKey(parameters) !== void 0) return "unknown";
9234
9253
  return parameters;
9235
9254
  }
9236
9255
  function childParameterInputs(template, passed) {
9237
- const declared = isPlainObject$10(template.Parameters) ? template.Parameters : {};
9256
+ const declared = isPlainObject$11(template.Parameters) ? template.Parameters : {};
9238
9257
  const inputs = /* @__PURE__ */ new Map();
9239
9258
  for (const name of Object.keys(declared)) {
9240
9259
  const definition = declared[name];
9241
- if (isPlainObject$10(definition) && declaresNoEcho(definition)) inputs.set(name, { kind: "secret" });
9260
+ if (isPlainObject$11(definition) && declaresNoEcho(definition)) inputs.set(name, { kind: "secret" });
9242
9261
  else if (passed.has(name)) {
9243
9262
  const passedClass = passed.get(name);
9244
9263
  inputs.set(name, passedClass === "clean" ? {
9245
9264
  kind: "value",
9246
9265
  value: void 0
9247
9266
  } : passedClass === "unknown" ? { kind: "unknown" } : { kind: "secret" });
9248
- } else if (isPlainObject$10(definition) && Object.hasOwn(definition, "Default") && !carriesSecretValue(definition["Default"], [])) inputs.set(name, {
9267
+ } else if (isPlainObject$11(definition) && Object.hasOwn(definition, "Default") && !carriesSecretValue(definition["Default"], [])) inputs.set(name, {
9249
9268
  kind: "value",
9250
9269
  value: definition["Default"]
9251
9270
  });
@@ -9262,7 +9281,7 @@ function closureClass(closure) {
9262
9281
  return closure.unread ? "unread" : "clean";
9263
9282
  }
9264
9283
  async function childOutputClass(loaded, outputName, passed, chain, shared) {
9265
- if (loaded === void 0 || !isPlainObject$10(loaded.template)) return "unknown";
9284
+ if (loaded === void 0 || !isPlainObject$11(loaded.template)) return "unknown";
9266
9285
  const scopeKey = JSON.stringify([loaded.identity, passedKey(passed)]);
9267
9286
  const memoKey = JSON.stringify([scopeKey, outputName]);
9268
9287
  const memo = shared.outputs.get(memoKey);
@@ -9275,8 +9294,8 @@ async function classifyChildOutput(loaded, outputName, passed, chain, shared, sc
9275
9294
  if (++shared.steps > MAX_NESTED_OUTPUT_STEPS) return "unknown";
9276
9295
  if (chain.includes(loaded.identity) || chain.length >= MAX_NESTED_OUTPUT_DEPTH) return "unknown";
9277
9296
  const template = loaded.template;
9278
- const output = (isPlainObject$10(template.Outputs) ? template.Outputs : {})[outputName];
9279
- if (!isPlainObject$10(output) || !Object.hasOwn(output, "Value")) return "unknown";
9297
+ const output = (isPlainObject$11(template.Outputs) ? template.Outputs : {})[outputName];
9298
+ if (!isPlainObject$11(output) || !Object.hasOwn(output, "Value")) return "unknown";
9280
9299
  const scope = {
9281
9300
  walk: newWalk({
9282
9301
  template,
@@ -9348,7 +9367,7 @@ async function expressionClass(value, scope) {
9348
9367
  return result;
9349
9368
  };
9350
9369
  if (Array.isArray(value)) return all(value);
9351
- if (!isPlainObject$10(value)) return "clean";
9370
+ if (!isPlainObject$11(value)) return "clean";
9352
9371
  const key = intrinsicKey(value);
9353
9372
  if (key === void 0) return all(Object.values(value));
9354
9373
  const operand = value[key];
@@ -9363,7 +9382,7 @@ async function expressionClass(value, scope) {
9363
9382
  case "Fn::Sub": {
9364
9383
  const text = Array.isArray(operand) ? operand[0] : operand;
9365
9384
  if (typeof text !== "string") return worseOf("unknown", await expressionClass(operand, scope));
9366
- const vars = Array.isArray(operand) && isPlainObject$10(operand[1]) ? operand[1] : {};
9385
+ const vars = Array.isArray(operand) && isPlainObject$11(operand[1]) ? operand[1] : {};
9367
9386
  let result = text.includes("{{resolve:") ? "secret" : "clean";
9368
9387
  result = worseOf(result, await all(Object.values(vars)));
9369
9388
  for (const name of subPlaceholders(text)) {
@@ -9455,7 +9474,7 @@ async function classifyPassedParameters(parameters, sources) {
9455
9474
  }
9456
9475
  async function classifyPassed(parameters, sources, nested) {
9457
9476
  const classes = /* @__PURE__ */ new Map();
9458
- if (!isPlainObject$10(parameters)) return classes;
9477
+ if (!isPlainObject$11(parameters)) return classes;
9459
9478
  for (const [name, expression] of Object.entries(parameters)) {
9460
9479
  let passedClass;
9461
9480
  try {
@@ -9477,7 +9496,7 @@ function passedParameterClassesOf(bag) {
9477
9496
 
9478
9497
  // src/deployment/masked-property-fingerprints/input-walk.ts
9479
9498
  var UnknownInput = class extends Error {};
9480
- function isPlainObject$10(value) {
9499
+ function isPlainObject$11(value) {
9481
9500
  return value !== null && typeof value === "object" && !Array.isArray(value);
9482
9501
  }
9483
9502
  const DYNAMIC_REFERENCE_OPEN = "{{resolve:";
@@ -9497,7 +9516,7 @@ function carriesSecretValue(value, corpora) {
9497
9516
  return false;
9498
9517
  }
9499
9518
  function parameterInputsFor(args) {
9500
- const declared = isPlainObject$10(args.template.Parameters) ? args.template.Parameters : {};
9519
+ const declared = isPlainObject$11(args.template.Parameters) ? args.template.Parameters : {};
9501
9520
  const values = args.values ?? {};
9502
9521
  const inputs = /* @__PURE__ */ new Map();
9503
9522
  const bound = {};
@@ -9508,7 +9527,7 @@ function parameterInputsFor(args) {
9508
9527
  continue;
9509
9528
  }
9510
9529
  const value = values[name];
9511
- let secret = isPlainObject$10(definition) && declaresNoEcho(definition) || carriesSecretValue(value, []);
9530
+ let secret = isPlainObject$11(definition) && declaresNoEcho(definition) || carriesSecretValue(value, []);
9512
9531
  if (!secret && args.nestedChild === true && args.supplied !== void 0) {
9513
9532
  if (Object.hasOwn(args.supplied, name)) {
9514
9533
  const passed = args.passedClasses?.get(name);
@@ -9568,7 +9587,7 @@ function intrinsicKey(value) {
9568
9587
  const OPAQUE_ATTRIBUTE_TYPES = /* @__PURE__ */ new Set(["AWS::CloudFormation::CustomResource", NESTED_STACK_TYPE$4]);
9569
9588
  function hasOpaqueAttributes(logicalId, walk) {
9570
9589
  const definition = walk.resources[logicalId];
9571
- const type = isPlainObject$10(definition) ? definition["Type"] : void 0;
9590
+ const type = isPlainObject$11(definition) ? definition["Type"] : void 0;
9572
9591
  return typeof type === "string" && (type.startsWith("Custom::") || OPAQUE_ATTRIBUTE_TYPES.has(type));
9573
9592
  }
9574
9593
  function getAttTarget$1(operand) {
@@ -9593,7 +9612,7 @@ function taintOf(logicalId, walk) {
9593
9612
  const visit = (value) => {
9594
9613
  if (typeof value === "string") return value.includes(DYNAMIC_REFERENCE_OPEN);
9595
9614
  if (Array.isArray(value)) return value.some(visit);
9596
- if (!isPlainObject$10(value)) return false;
9615
+ if (!isPlainObject$11(value)) return false;
9597
9616
  const key = intrinsicKey(value);
9598
9617
  const operand = key === void 0 ? void 0 : value[key];
9599
9618
  let verdict = "clean";
@@ -9605,7 +9624,7 @@ function taintOf(logicalId, walk) {
9605
9624
  else if (key === "Fn::FindInMap" && mapReadClass(operand, walk.sources.template) !== "clean") verdict = "tainted";
9606
9625
  else if (key === "Fn::Sub") {
9607
9626
  const text = Array.isArray(operand) ? operand[0] : operand;
9608
- const vars = Array.isArray(operand) && isPlainObject$10(operand[1]) ? operand[1] : {};
9627
+ const vars = Array.isArray(operand) && isPlainObject$11(operand[1]) ? operand[1] : {};
9609
9628
  if (typeof text === "string") for (const name of subPlaceholders(text)) {
9610
9629
  if (Object.hasOwn(vars, name)) continue;
9611
9630
  const owner = name.includes(".") ? name.split(".")[0] : name;
@@ -9619,7 +9638,7 @@ function taintOf(logicalId, walk) {
9619
9638
  return Object.values(value).some(visit);
9620
9639
  };
9621
9640
  const definition = walk.resources[logicalId];
9622
- const result = visit(isPlainObject$10(definition) ? definition["Properties"] : void 0) ? "tainted" : unknown ? "unknown" : "clean";
9641
+ const result = visit(isPlainObject$11(definition) ? definition["Properties"] : void 0) ? "tainted" : unknown ? "unknown" : "clean";
9623
9642
  walk.inProgress.delete(logicalId);
9624
9643
  walk.taint.set(logicalId, result);
9625
9644
  return result;
@@ -9635,7 +9654,7 @@ function conditionInput(name, walk) {
9635
9654
  return typeof verdict === "boolean" ? verdict : "unknown";
9636
9655
  }
9637
9656
  function conditionClosure(name, walk) {
9638
- const definitions = isPlainObject$10(walk.sources.template.Conditions) ? walk.sources.template.Conditions : {};
9657
+ const definitions = isPlainObject$11(walk.sources.template.Conditions) ? walk.sources.template.Conditions : {};
9639
9658
  let secret = false;
9640
9659
  let unknown = false;
9641
9660
  let unread = false;
@@ -9650,7 +9669,7 @@ function conditionClosure(name, walk) {
9650
9669
  value.forEach(visit);
9651
9670
  return;
9652
9671
  }
9653
- if (!isPlainObject$10(value)) return;
9672
+ if (!isPlainObject$11(value)) return;
9654
9673
  const keys = Object.keys(value);
9655
9674
  if (keys.length === 1 && keys[0] === "Condition" && typeof value["Condition"] === "string") {
9656
9675
  pending.push(value["Condition"]);
@@ -9683,7 +9702,7 @@ function conditionClosure(name, walk) {
9683
9702
  if (key === "Fn::Sub") {
9684
9703
  const operand = value["Fn::Sub"];
9685
9704
  const text = Array.isArray(operand) ? operand[0] : operand;
9686
- const vars = Array.isArray(operand) && isPlainObject$10(operand[1]) ? operand[1] : {};
9705
+ const vars = Array.isArray(operand) && isPlainObject$11(operand[1]) ? operand[1] : {};
9687
9706
  if (typeof text === "string") for (const name of subPlaceholders(text)) {
9688
9707
  if (Object.hasOwn(vars, name)) continue;
9689
9708
  if (name.includes(".") && !name.startsWith("AWS::")) secret = true;
@@ -9712,8 +9731,8 @@ function mapReadClass(operand, template) {
9712
9731
  const mapName = Array.isArray(operand) ? operand[0] : void 0;
9713
9732
  if (typeof mapName !== "string") return "unknown";
9714
9733
  const mappings = template.Mappings;
9715
- const map = isPlainObject$10(mappings) && Object.hasOwn(mappings, mapName) ? mappings[mapName] : void 0;
9716
- if (!isPlainObject$10(map)) return "unknown";
9734
+ const map = isPlainObject$11(mappings) && Object.hasOwn(mappings, mapName) ? mappings[mapName] : void 0;
9735
+ if (!isPlainObject$11(map)) return "unknown";
9717
9736
  return carriesSecretValue(map, []) ? "secret" : "clean";
9718
9737
  }
9719
9738
  async function resolvedInput(node, walk) {
@@ -9791,7 +9810,7 @@ async function inputForm(value, walk) {
9791
9810
  ...proof(walk, () => parts.every(isProven))
9792
9811
  };
9793
9812
  }
9794
- if (!isPlainObject$10(value)) return {
9813
+ if (!isPlainObject$11(value)) return {
9795
9814
  form: value,
9796
9815
  concrete: true
9797
9816
  };
@@ -9855,7 +9874,7 @@ async function inputForm(value, walk) {
9855
9874
  concrete: false
9856
9875
  };
9857
9876
  }
9858
- const explicit = Array.isArray(operand) && isPlainObject$10(operand[1]) ? operand[1] : {};
9877
+ const explicit = Array.isArray(operand) && isPlainObject$11(operand[1]) ? operand[1] : {};
9859
9878
  const vars = await inputForm(explicit, walk);
9860
9879
  const placeholders = [];
9861
9880
  let concrete = vars.concrete && !text.includes("{{resolve:");
@@ -9913,8 +9932,8 @@ function newWalk(sources, nested = {
9913
9932
  return {
9914
9933
  ...covered !== void 0 && { covered },
9915
9934
  sources,
9916
- resources: isPlainObject$10(sources.template.Resources) ? sources.template.Resources : {},
9917
- parameters: isPlainObject$10(sources.template.Parameters) ? sources.template.Parameters : {},
9935
+ resources: isPlainObject$11(sources.template.Resources) ? sources.template.Resources : {},
9936
+ parameters: isPlainObject$11(sources.template.Parameters) ? sources.template.Parameters : {},
9918
9937
  taint: /* @__PURE__ */ new Map(),
9919
9938
  inProgress: /* @__PURE__ */ new Set(),
9920
9939
  stackChain: nested.stackChain,
@@ -9950,7 +9969,7 @@ function possiblyMaskedKeys(resolvedProps, corpora) {
9950
9969
  const wholeShortLeaf = (value) => {
9951
9970
  if (typeof value === "string") return short.includes(value);
9952
9971
  if (Array.isArray(value)) return value.some(wholeShortLeaf);
9953
- if (isPlainObject$10(value)) return Object.values(value).some(wholeShortLeaf);
9972
+ if (isPlainObject$11(value)) return Object.values(value).some(wholeShortLeaf);
9954
9973
  return false;
9955
9974
  };
9956
9975
  return Object.keys(resolvedProps).filter((key) => {
@@ -9981,7 +10000,7 @@ function maskedPropertyFingerprintsOf(record) {
9981
10000
  const read = /* @__PURE__ */ new Map();
9982
10001
  if (record === null || typeof record !== "object") return read;
9983
10002
  const field = record.maskedPropertyFingerprints;
9984
- if (!isPlainObject$10(field)) return read;
10003
+ if (!isPlainObject$11(field)) return read;
9985
10004
  for (const [key, value] of Object.entries(field)) if (typeof value === "string" && value.startsWith("sha256:")) read.set(key, value);
9986
10005
  return read;
9987
10006
  }
@@ -9989,7 +10008,7 @@ function maskedPropertyInputFingerprintsOf(record) {
9989
10008
  const read = /* @__PURE__ */ new Map();
9990
10009
  if (record === null || typeof record !== "object") return read;
9991
10010
  const field = record.maskedPropertyInputFingerprints;
9992
- if (!isPlainObject$10(field)) return read;
10011
+ if (!isPlainObject$11(field)) return read;
9993
10012
  const text = maskedPropertyFingerprintsOf(record);
9994
10013
  for (const [key, value] of Object.entries(field)) {
9995
10014
  if (typeof value !== "string" || !value.startsWith("inputs-sha256:")) continue;
@@ -10036,7 +10055,7 @@ async function movedMaskedProperties(record, templateProps, fingerprinter, onReb
10036
10055
  function withRebaselinedFingerprints(record, fingerprints) {
10037
10056
  const text = maskedPropertyFingerprintsOf(record);
10038
10057
  const field = record.maskedPropertyInputFingerprints;
10039
- const next = isPlainObject$10(field) ? Object.entries(field) : [];
10058
+ const next = isPlainObject$11(field) ? Object.entries(field) : [];
10040
10059
  let changed = false;
10041
10060
  for (const [key, value] of Object.entries(fingerprints)) {
10042
10061
  if (text.get(key) !== splitInputFingerprint(value).text) continue;
@@ -10069,10 +10088,10 @@ function withMaskedPropertyFingerprints(scrubbed, writtenBag, templateProps, sec
10069
10088
  fingerprints = maskedPropertyFingerprintsFor(scrubbed.properties, templateProps);
10070
10089
  inputs = boundInputFingerprints(fingerprints, inputFingerprints);
10071
10090
  } else {
10072
- if (!isPlainObject$10(previous)) return scrubbed;
10091
+ if (!isPlainObject$11(previous)) return scrubbed;
10073
10092
  if (corpora.length === 0) return scrubbed;
10074
10093
  fingerprints = { ...previous };
10075
- inputs = isPlainObject$10(previousInputs) ? { ...previousInputs } : void 0;
10094
+ inputs = isPlainObject$11(previousInputs) ? { ...previousInputs } : void 0;
10076
10095
  }
10077
10096
  if (fingerprints !== void 0 && corpora.length > 0) {
10078
10097
  const refused = Object.keys(fingerprints).filter((key) => Object.hasOwn(templateProps, key) && corpora.some((corpus) => templateCarriesNeedle(templateProps[key], corpus)));
@@ -11536,14 +11555,15 @@ async function findReplacedReadersOfRecreateTargets(input) {
11536
11555
  }
11537
11556
  return found;
11538
11557
  }
11539
- function renderStatefulReplacedReadersRefusal(readers, forceStatefulRecreation) {
11558
+ function renderStatefulReplacedReadersRefusal(readers, forceStatefulRecreation, targetFlag = "--recreate-via-*") {
11540
11559
  if (forceStatefulRecreation) return void 0;
11541
11560
  const blocked = readers.filter((r) => r.statefulReason !== null);
11542
11561
  if (blocked.length === 0) return void 0;
11562
+ const recreate = targetFlag === "--recreate-via-*";
11543
11563
  return [
11544
- "A --recreate-via-* target is read through a create-only property of a stateful resource, which is replaced when the recreate gives the target a new physical id:",
11564
+ `A ${targetFlag} target is read through a create-only property of a stateful resource, which is replaced when the ${recreate ? "recreate" : "replacement"} gives the target a new physical id:`,
11545
11565
  ...blocked.map((r) => safeMsg` - ${r.logicalId} (${shownType(r.resourceType)}) reads ${r.reads} via ${r.properties.join(", ")}`),
11546
- "Re-run with --force-stateful-recreation to confirm the data loss, or drop the recreate flag. Nothing was changed."
11566
+ `Re-run with --force-stateful-recreation to confirm the data loss, or drop the ${recreate ? "recreate flag" : "flag"}. Nothing was changed.`
11547
11567
  ].join("\n");
11548
11568
  }
11549
11569
  function shownType(resourceType) {
@@ -11551,7 +11571,7 @@ function shownType(resourceType) {
11551
11571
  }
11552
11572
  async function refuseStatefulReplacedReaders(input) {
11553
11573
  if (input.forceStatefulRecreation || input.targetIds.length === 0) return;
11554
- const refusal = renderStatefulReplacedReadersRefusal(await findReplacedReadersOfRecreateTargets(input), false);
11574
+ const refusal = renderStatefulReplacedReadersRefusal(await findReplacedReadersOfRecreateTargets(input), false, input.targetFlag);
11555
11575
  if (refusal !== void 0) throw markNonRetryable(new CdkdError(refusal, "STATEFUL_REPLACE_BLOCKED"));
11556
11576
  }
11557
11577
  function takenFnIfArms(value, conditions) {
@@ -11640,6 +11660,519 @@ function isLegacyHandleId(physicalId) {
11640
11660
  return typeof physicalId === "string" && physicalId.startsWith("cdkd-wait-condition-handle-");
11641
11661
  }
11642
11662
 
11663
+ // src/analyzer/diff-calculator/legacy-handle-heal.ts
11664
+ const LEGACY_HANDLE_HEAL_REASON = "issues a signal URL in place of the placeholder id an earlier cdkd recorded";
11665
+ function markLegacyHandleHeals(changes, currentResources, desiredTemplate, extractReferences) {
11666
+ const legacy = /* @__PURE__ */ new Set();
11667
+ for (const [logicalId, record] of Object.entries(currentResources)) if (record.resourceType === "AWS::CloudFormation::WaitConditionHandle" && isLegacyHandleId(record.physicalId) && desiredTemplate.Resources[logicalId]?.Type === "AWS::CloudFormation::WaitConditionHandle") legacy.add(logicalId);
11668
+ if (legacy.size === 0) return [];
11669
+ const waitedOn = /* @__PURE__ */ new Set();
11670
+ for (const resource of Object.values(desiredTemplate.Resources)) {
11671
+ if (resource.Type !== "AWS::CloudFormation::WaitCondition") continue;
11672
+ for (const ref of extractReferences(resource.Properties?.["Handle"])) if (legacy.has(ref)) waitedOn.add(ref);
11673
+ }
11674
+ const healed = [];
11675
+ for (const handleId of waitedOn) {
11676
+ const change = changes.get(handleId);
11677
+ if (change === void 0) continue;
11678
+ if (change.changeType !== "NO_CHANGE" && change.changeType !== "UPDATE") continue;
11679
+ change.changeType = "UPDATE";
11680
+ change.propertyChanges ??= [];
11681
+ change.providerReplacement = LEGACY_HANDLE_HEAL_REASON;
11682
+ healed.push(handleId);
11683
+ }
11684
+ return healed;
11685
+ }
11686
+
11687
+ // src/analyzer/diff-calculator/in-place-cc-derived-attrs.generated.ts
11688
+ const CC_IN_PLACE_UPDATE_DERIVED_ATTRS = {
11689
+ "AWS::AIOps::InvestigationGroup": ["LastModifiedAt", "LastModifiedBy"],
11690
+ "AWS::ARCRegionSwitch::Plan": ["Version"],
11691
+ "AWS::AccessAnalyzer::ArchiveRule": ["UpdatedAt"],
11692
+ "AWS::AccountAccess::Application": ["UpdatedAt"],
11693
+ "AWS::AgentRegistry::Registry": ["UpdatedAt"],
11694
+ "AWS::AgentRegistry::RegistryRecord": ["UpdatedAt"],
11695
+ "AWS::AmazonMQ::Broker": ["ConfigurationRevision", "EngineVersionCurrent"],
11696
+ "AWS::AmazonMQ::Configuration": ["Revision"],
11697
+ "AWS::AmplifyUIBuilder::Component": ["ModifiedAt"],
11698
+ "AWS::AmplifyUIBuilder::Theme": ["ModifiedAt"],
11699
+ "AWS::ApiGatewayV2::PortalProduct": ["LastModified"],
11700
+ "AWS::AppConfig::ExperimentDefinition": ["UpdatedAt"],
11701
+ "AWS::AppConfig::ExperimentRun": ["UpdatedAt"],
11702
+ "AWS::AppConfig::Extension": ["VersionNumber"],
11703
+ "AWS::AppFabric::AppAuthorization": ["UpdatedAt"],
11704
+ "AWS::AppFabric::Ingestion": ["UpdatedAt"],
11705
+ "AWS::AppFabric::IngestionDestination": ["UpdatedAt"],
11706
+ "AWS::AppIntegrations::Application": ["LastModifiedRegion", "LastModifiedTime"],
11707
+ "AWS::AppStream::Entitlement": ["LastModifiedTime"],
11708
+ "AWS::AppTest::TestCase": [
11709
+ "LastUpdateTime",
11710
+ "LatestVersion",
11711
+ "TestCaseVersion"
11712
+ ],
11713
+ "AWS::ApplicationSignals::GroupingConfiguration": ["UpdatedAt"],
11714
+ "AWS::ApplicationSignals::ServiceLevelObjective": ["LastUpdatedTime"],
11715
+ "AWS::Athena::SystemTables": ["LastModifiedAt"],
11716
+ "AWS::AuditManager::AssessmentFramework": ["LastUpdatedAt", "LastUpdatedBy"],
11717
+ "AWS::B2BI::Capability": ["ModifiedAt"],
11718
+ "AWS::B2BI::Partnership": ["ModifiedAt"],
11719
+ "AWS::B2BI::Profile": ["ModifiedAt"],
11720
+ "AWS::B2BI::Transformer": ["ModifiedAt"],
11721
+ "AWS::BCM::Dashboard": ["UpdatedAt"],
11722
+ "AWS::BCM::ScheduledReport": ["UpdatedAt"],
11723
+ "AWS::Backup::BackupPlan": ["VersionId"],
11724
+ "AWS::Backup::TieringConfiguration": ["LastUpdatedTime"],
11725
+ "AWS::Bedrock::Agent": ["AgentVersion", "UpdatedAt"],
11726
+ "AWS::Bedrock::AgentAlias": ["UpdatedAt"],
11727
+ "AWS::Bedrock::ApplicationInferenceProfile": ["UpdatedAt"],
11728
+ "AWS::Bedrock::AutomatedReasoningPolicy": ["UpdatedAt", "Version"],
11729
+ "AWS::Bedrock::AutomatedReasoningPolicyVersion": ["UpdatedAt"],
11730
+ "AWS::Bedrock::Blueprint": ["LastModifiedTime"],
11731
+ "AWS::Bedrock::DataAutomationProject": ["LastModifiedTime"],
11732
+ "AWS::Bedrock::DataSource": ["UpdatedAt"],
11733
+ "AWS::Bedrock::EnforcedGuardrailConfiguration": ["UpdatedAt", "UpdatedBy"],
11734
+ "AWS::Bedrock::Flow": ["UpdatedAt", "Version"],
11735
+ "AWS::Bedrock::FlowAlias": ["UpdatedAt"],
11736
+ "AWS::Bedrock::Guardrail": ["UpdatedAt", "Version"],
11737
+ "AWS::Bedrock::IntelligentPromptRouter": ["UpdatedAt"],
11738
+ "AWS::Bedrock::KnowledgeBase": ["UpdatedAt"],
11739
+ "AWS::Bedrock::KnowledgeBasePolicy": ["RevisionId"],
11740
+ "AWS::Bedrock::Prompt": ["UpdatedAt", "Version"],
11741
+ "AWS::Bedrock::PromptVersion": ["UpdatedAt"],
11742
+ "AWS::Bedrock::RetrievalInstruction": ["UpdatedAt"],
11743
+ "AWS::Bedrock::Session": ["LastUpdatedAt"],
11744
+ "AWS::BedrockAgentCore::ApiKeyCredentialProvider": ["LastUpdatedTime"],
11745
+ "AWS::BedrockAgentCore::BrowserCustom": ["LastUpdatedAt"],
11746
+ "AWS::BedrockAgentCore::BrowserProfile": ["LastUpdatedAt"],
11747
+ "AWS::BedrockAgentCore::CapacityProvider": ["LastUpdatedAt"],
11748
+ "AWS::BedrockAgentCore::CodeInterpreterCustom": ["LastUpdatedAt"],
11749
+ "AWS::BedrockAgentCore::ConfigurationBundle": ["UpdatedAt", "VersionId"],
11750
+ "AWS::BedrockAgentCore::ConsentPortal": ["UpdatedAt"],
11751
+ "AWS::BedrockAgentCore::Dataset": ["UpdatedAt"],
11752
+ "AWS::BedrockAgentCore::Gateway": ["UpdatedAt"],
11753
+ "AWS::BedrockAgentCore::GatewayRateLimit": ["UpdatedAt"],
11754
+ "AWS::BedrockAgentCore::GatewayRule": ["UpdatedAt"],
11755
+ "AWS::BedrockAgentCore::GatewayTarget": ["UpdatedAt"],
11756
+ "AWS::BedrockAgentCore::Harness": ["UpdatedAt", "Version"],
11757
+ "AWS::BedrockAgentCore::HarnessEndpoint": ["LiveVersion", "UpdatedAt"],
11758
+ "AWS::BedrockAgentCore::Memory": ["UpdatedAt"],
11759
+ "AWS::BedrockAgentCore::OAuth2CredentialProvider": ["LastUpdatedTime"],
11760
+ "AWS::BedrockAgentCore::OnlineEvaluationConfig": ["UpdatedAt"],
11761
+ "AWS::BedrockAgentCore::PaymentCredentialProvider": ["LastUpdatedTime"],
11762
+ "AWS::BedrockAgentCore::PaymentManager": ["LastUpdatedAt"],
11763
+ "AWS::BedrockAgentCore::Policy": ["UpdatedAt"],
11764
+ "AWS::BedrockAgentCore::PolicyEngine": ["UpdatedAt"],
11765
+ "AWS::BedrockAgentCore::RuntimeEndpoint": [
11766
+ "LastUpdatedAt",
11767
+ "LiveVersion",
11768
+ "TargetVersion"
11769
+ ],
11770
+ "AWS::BedrockAgentCore::WorkloadIdentity": ["LastUpdatedTime"],
11771
+ "AWS::Billing::BillingView": ["UpdatedAt"],
11772
+ "AWS::BillingConductor::BillingGroup": ["LastModifiedTime"],
11773
+ "AWS::BillingConductor::CustomLineItem": ["LastModifiedTime"],
11774
+ "AWS::BillingConductor::PricingPlan": ["LastModifiedTime"],
11775
+ "AWS::BillingConductor::PricingRule": ["LastModifiedTime"],
11776
+ "AWS::Braket::SpendingLimit": ["UpdatedAt"],
11777
+ "AWS::CE::AnomalyMonitor": ["LastUpdatedDate"],
11778
+ "AWS::Cases::CaseRule": ["LastModifiedTime"],
11779
+ "AWS::Cases::Field": ["LastModifiedTime"],
11780
+ "AWS::Cases::Layout": ["LastModifiedTime"],
11781
+ "AWS::Cases::Template": ["LastModifiedTime"],
11782
+ "AWS::Cassandra::Type": ["LastModifiedTimestamp"],
11783
+ "AWS::Chime::AppInstance": ["LastUpdatedTimestamp"],
11784
+ "AWS::Chime::AppInstanceBot": ["LastUpdatedTimestamp"],
11785
+ "AWS::Chime::Channel": ["LastUpdatedTimestamp"],
11786
+ "AWS::Chime::ChannelFlow": ["LastUpdatedTimestamp"],
11787
+ "AWS::Chime::MediaInsightsPipelineConfiguration": ["UpdatedTimestamp"],
11788
+ "AWS::Chime::MediaPipelineKinesisVideoStreamPool": ["UpdatedTimestamp"],
11789
+ "AWS::Chime::SipMediaApplication": ["UpdatedTimestamp"],
11790
+ "AWS::Chime::VoiceConnector": ["UpdatedTimestamp"],
11791
+ "AWS::CloudFormation::GeneratedTemplate": ["LastUpdatedTime"],
11792
+ "AWS::CloudFront::AnycastIpList": ["ETag"],
11793
+ "AWS::CloudFront::CachePolicy": ["LastModifiedTime"],
11794
+ "AWS::CloudFront::ConnectionFunction": ["ETag", "LastModifiedTime"],
11795
+ "AWS::CloudFront::ConnectionGroup": ["ETag", "LastModifiedTime"],
11796
+ "AWS::CloudFront::ContinuousDeploymentPolicy": ["LastModifiedTime"],
11797
+ "AWS::CloudFront::DistributionTenant": ["ETag", "LastModifiedTime"],
11798
+ "AWS::CloudFront::FieldLevelEncryptionConfig": ["LastModifiedTime"],
11799
+ "AWS::CloudFront::FieldLevelEncryptionProfile": ["LastModifiedTime"],
11800
+ "AWS::CloudFront::KeyGroup": ["LastModifiedTime"],
11801
+ "AWS::CloudFront::OriginRequestPolicy": ["LastModifiedTime"],
11802
+ "AWS::CloudFront::ResponseHeadersPolicy": ["LastModifiedTime"],
11803
+ "AWS::CloudFront::TrustStore": ["ETag", "LastModifiedTime"],
11804
+ "AWS::CloudFront::VpcOrigin": ["LastModifiedTime"],
11805
+ "AWS::CloudTrail::Dashboard": ["UpdatedTimestamp"],
11806
+ "AWS::CloudTrail::EventDataStore": ["UpdatedTimestamp"],
11807
+ "AWS::CloudWatch::AccessGrant": ["UpdatedAt"],
11808
+ "AWS::CloudWatch::AccessProfile": ["UpdatedAt"],
11809
+ "AWS::CloudWatch::AlarmMuteRule": ["LastUpdatedTimestamp"],
11810
+ "AWS::CloudWatch::Alert": ["UpdatedAt"],
11811
+ "AWS::CloudWatch::Domain": ["UpdatedAt"],
11812
+ "AWS::CloudWatch::DomainAccessGrantForOrganization": ["UpdatedAt"],
11813
+ "AWS::CloudWatch::DomainForOrganization": ["UpdatedAt"],
11814
+ "AWS::CloudWatch::Integration": ["UpdatedAt"],
11815
+ "AWS::CloudWatch::MetricDataQueryDefinition": ["UpdatedAt"],
11816
+ "AWS::CloudWatch::MetricStream": ["LastUpdateDate"],
11817
+ "AWS::CloudWatch::OmniDashboard": ["UpdatedAt"],
11818
+ "AWS::CloudWatch::ResourceMetricsConfiguration": ["UpdatedAt"],
11819
+ "AWS::CloudWatch::Space": ["UpdatedAt"],
11820
+ "AWS::CloudWatch::View": ["UpdatedAt"],
11821
+ "AWS::CodePipeline::Pipeline": ["Version"],
11822
+ "AWS::Comprehend::DocumentClassifierEndpoint": ["LastModifiedTime"],
11823
+ "AWS::Comprehend::EntityRecognizerEndpoint": ["LastModifiedTime"],
11824
+ "AWS::ComputeOptimizer::AutomationRule": ["LastUpdatedTimestamp", "RuleRevision"],
11825
+ "AWS::Connect::AgentStatus": ["LastModifiedRegion", "LastModifiedTime"],
11826
+ "AWS::Connect::DataTable": [
11827
+ "LastModifiedRegion",
11828
+ "LastModifiedTime",
11829
+ "LockVersion"
11830
+ ],
11831
+ "AWS::Connect::DataTableAttribute": [
11832
+ "LastModifiedRegion",
11833
+ "LastModifiedTime",
11834
+ "LockVersion"
11835
+ ],
11836
+ "AWS::Connect::Metric": [
11837
+ "LastModifiedRegion",
11838
+ "LastModifiedTime",
11839
+ "LastModifiedUser"
11840
+ ],
11841
+ "AWS::Connect::PredefinedAttribute": ["LastModifiedRegion", "LastModifiedTime"],
11842
+ "AWS::Connect::Queue": ["LastModifiedRegion", "LastModifiedTime"],
11843
+ "AWS::Connect::SecurityProfile": ["LastModifiedRegion", "LastModifiedTime"],
11844
+ "AWS::Connect::TestCase": ["LastModifiedRegion", "LastModifiedTime"],
11845
+ "AWS::Connect::Vocabulary": ["LastModifiedTime"],
11846
+ "AWS::CustomerProfiles::CalculatedAttributeDefinition": ["LastUpdatedAt"],
11847
+ "AWS::CustomerProfiles::Domain": ["LastUpdatedAt"],
11848
+ "AWS::CustomerProfiles::DomainObjectType": ["LastUpdatedAt"],
11849
+ "AWS::CustomerProfiles::EventTrigger": ["LastUpdatedAt"],
11850
+ "AWS::CustomerProfiles::Integration": ["LastUpdatedAt"],
11851
+ "AWS::CustomerProfiles::ObjectType": ["LastUpdatedAt"],
11852
+ "AWS::CustomerProfiles::Recommender": ["LastUpdatedAt"],
11853
+ "AWS::DRS::RecoveryPlan": ["UpdatedAt"],
11854
+ "AWS::DSQL::Cluster": ["PolicyVersion"],
11855
+ "AWS::DataExchange::DataSet": ["UpdatedAt"],
11856
+ "AWS::DataExchange::EventAction": ["UpdatedAt"],
11857
+ "AWS::DataZone::DataSource": ["UpdatedAt"],
11858
+ "AWS::DataZone::Domain": ["LastUpdatedAt"],
11859
+ "AWS::DataZone::DomainUnit": ["LastUpdatedAt"],
11860
+ "AWS::DataZone::Environment": ["UpdatedAt"],
11861
+ "AWS::DataZone::EnvironmentBlueprintConfiguration": ["UpdatedAt"],
11862
+ "AWS::DataZone::EnvironmentProfile": ["UpdatedAt"],
11863
+ "AWS::DataZone::FormType": ["Revision"],
11864
+ "AWS::DataZone::Project": ["LastUpdatedAt"],
11865
+ "AWS::DataZone::ProjectProfile": ["LastUpdatedAt"],
11866
+ "AWS::DataZone::SubscriptionTarget": ["UpdatedAt", "UpdatedBy"],
11867
+ "AWS::DevOpsAgent::AgentSpace": ["UpdatedAt"],
11868
+ "AWS::DevOpsAgent::Asset": ["UpdatedAt", "Version"],
11869
+ "AWS::DevOpsAgent::Association": ["UpdatedAt"],
11870
+ "AWS::DevOpsAgent::Trigger": ["UpdatedAt"],
11871
+ "AWS::EC2::FcaPolicy": ["LatestVersion", "VersionExpectedEffectiveAt"],
11872
+ "AWS::EC2::FpgaImage": ["UpdateTime"],
11873
+ "AWS::EC2::NetworkInsightsAccessScope": ["UpdatedDate"],
11874
+ "AWS::EC2::PrefixList": ["Version"],
11875
+ "AWS::EC2::SqlHaStandbyDetectedInstance": ["LastUpdatedTime"],
11876
+ "AWS::EC2::VerifiedAccessEndpoint": ["LastUpdatedTime"],
11877
+ "AWS::EC2::VerifiedAccessGroup": ["LastUpdatedTime"],
11878
+ "AWS::EC2::VerifiedAccessInstance": ["LastUpdatedTime"],
11879
+ "AWS::EC2::VerifiedAccessTrustProvider": ["LastUpdatedTime"],
11880
+ "AWS::ECR::RepositoryCreationTemplate": ["UpdatedAt"],
11881
+ "AWS::ECS::Daemon": ["UpdatedAt"],
11882
+ "AWS::ECS::ExpressGatewayService": ["UpdatedAt"],
11883
+ "AWS::ECS::Gateway": ["UpdatedAt"],
11884
+ "AWS::EKS::Capability": ["ModifiedAt", "Version"],
11885
+ "AWS::EVS::Environment": ["ModifiedAt"],
11886
+ "AWS::ElastiCache::ServerlessCache": ["FullEngineVersion"],
11887
+ "AWS::EntityResolution::IdMappingWorkflow": ["UpdatedAt"],
11888
+ "AWS::EntityResolution::IdNamespace": ["UpdatedAt"],
11889
+ "AWS::EntityResolution::MatchingWorkflow": ["UpdatedAt"],
11890
+ "AWS::EntityResolution::SchemaMapping": ["UpdatedAt"],
11891
+ "AWS::EventSchemas::Schema": [
11892
+ "LastModified",
11893
+ "SchemaVersion",
11894
+ "VersionCreatedDate"
11895
+ ],
11896
+ "AWS::EventsV2::EventBus": ["LastModifiedTime"],
11897
+ "AWS::EventsV2::EventSource": ["LastModifiedTime"],
11898
+ "AWS::EventsV2::ResourcePolicy": ["RevisionId"],
11899
+ "AWS::EventsV2::Subscriber": ["LastModifiedTime"],
11900
+ "AWS::FMS::ApplicationsList": ["LastUpdateTime"],
11901
+ "AWS::FMS::ProtocolsList": ["LastUpdateTime"],
11902
+ "AWS::FraudDetector::Detector": ["DetectorVersionId", "LastUpdatedTime"],
11903
+ "AWS::FraudDetector::EntityType": ["LastUpdatedTime"],
11904
+ "AWS::FraudDetector::EventType": ["LastUpdatedTime"],
11905
+ "AWS::FraudDetector::Label": ["LastUpdatedTime"],
11906
+ "AWS::FraudDetector::List": ["LastUpdatedTime"],
11907
+ "AWS::FraudDetector::Outcome": ["LastUpdatedTime"],
11908
+ "AWS::FraudDetector::Variable": ["LastUpdatedTime"],
11909
+ "AWS::GameLift::ContainerGroupDefinition": ["VersionNumber"],
11910
+ "AWS::Glue::Blueprint": ["LastModifiedOn"],
11911
+ "AWS::Glue::Catalog": ["UpdateTime"],
11912
+ "AWS::Grafana::Workspace": ["ModificationTimestamp"],
11913
+ "AWS::Greengrass::ConnectorDefinition": ["LatestVersionArn"],
11914
+ "AWS::Greengrass::CoreDefinition": ["LatestVersionArn"],
11915
+ "AWS::Greengrass::DeviceDefinition": ["LatestVersionArn"],
11916
+ "AWS::Greengrass::FunctionDefinition": ["LatestVersionArn"],
11917
+ "AWS::Greengrass::Group": ["LatestVersionArn"],
11918
+ "AWS::Greengrass::LoggerDefinition": ["LatestVersionArn"],
11919
+ "AWS::Greengrass::ResourceDefinition": ["LatestVersionArn"],
11920
+ "AWS::Greengrass::SubscriptionDefinition": ["LatestVersionArn"],
11921
+ "AWS::GuardDuty::CustomDetectionRuleAssociation": ["UpdatedAt"],
11922
+ "AWS::GuardDuty::ThreatEntitySet": ["UpdatedAt"],
11923
+ "AWS::GuardDuty::TrustedEntitySet": ["UpdatedAt"],
11924
+ "AWS::HealthImaging::Datastore": ["UpdatedAt"],
11925
+ "AWS::IdentityStore::User": ["UpdatedAt", "UpdatedBy"],
11926
+ "AWS::ImageBuilder::Image": [
11927
+ "LatestVersion",
11928
+ "LatestVersion.Arn",
11929
+ "LatestVersion.Major",
11930
+ "LatestVersion.Minor",
11931
+ "LatestVersion.Patch"
11932
+ ],
11933
+ "AWS::InspectorV2::CodeSecurityIntegration": ["LastUpdatedAt"],
11934
+ "AWS::InspectorV2::Connector": ["LastUpdatedAt"],
11935
+ "AWS::InternetMonitor::Monitor": ["ModifiedAt"],
11936
+ "AWS::Invoicing::InvoiceUnit": ["LastModified"],
11937
+ "AWS::Invoicing::ProcurementPortalPreference": ["LastUpdateDate", "Version"],
11938
+ "AWS::IoT::EncryptionConfiguration": ["LastModifiedDate"],
11939
+ "AWS::IoT::FleetMetric": ["LastModifiedDate", "Version"],
11940
+ "AWS::IoT::OTAUpdate": ["LastModifiedDate"],
11941
+ "AWS::IoT::Stream": ["LastUpdatedAt", "StreamVersion"],
11942
+ "AWS::IoTCoreDeviceAdvisor::SuiteDefinition": ["SuiteDefinitionVersion"],
11943
+ "AWS::IoTFleetWise::Campaign": ["LastModificationTime"],
11944
+ "AWS::IoTFleetWise::DecoderManifest": ["LastModificationTime"],
11945
+ "AWS::IoTFleetWise::Fleet": ["LastModificationTime"],
11946
+ "AWS::IoTFleetWise::ModelManifest": ["LastModificationTime"],
11947
+ "AWS::IoTFleetWise::SignalCatalog": ["LastModificationTime"],
11948
+ "AWS::IoTFleetWise::StateTemplate": ["LastModificationTime"],
11949
+ "AWS::IoTFleetWise::Vehicle": ["LastModificationTime"],
11950
+ "AWS::IoTSiteWise::Application": ["UpdatedAt"],
11951
+ "AWS::IoTSiteWise::Workspace": ["UpdatedAt"],
11952
+ "AWS::IoTTwinMaker::ComponentType": ["UpdateDateTime"],
11953
+ "AWS::IoTTwinMaker::Entity": ["UpdateDateTime"],
11954
+ "AWS::IoTTwinMaker::Scene": ["UpdateDateTime"],
11955
+ "AWS::IoTTwinMaker::SyncJob": ["UpdateDateTime"],
11956
+ "AWS::IoTTwinMaker::Workspace": ["UpdateDateTime"],
11957
+ "AWS::Lambda::Runtime": ["LastModified"],
11958
+ "AWS::Lambda::RuntimeAlias": ["LastModified", "RuntimeVersionArn"],
11959
+ "AWS::Lambda::RuntimeVersion": ["LastModified"],
11960
+ "AWS::Lambda::WebFunction": ["UpdatedAt"],
11961
+ "AWS::Lex::ResourcePolicy": ["RevisionId"],
11962
+ "AWS::LicenseManager::Grant": ["Version"],
11963
+ "AWS::LicenseManager::License": ["Version"],
11964
+ "AWS::Location::APIKey": ["UpdateTime"],
11965
+ "AWS::Location::GeofenceCollection": ["UpdateTime"],
11966
+ "AWS::Location::Map": ["UpdateTime"],
11967
+ "AWS::Location::PlaceIndex": ["UpdateTime"],
11968
+ "AWS::Location::RouteCalculator": ["UpdateTime"],
11969
+ "AWS::Location::Tracker": ["UpdateTime"],
11970
+ "AWS::Logs::LogAnomalyDetector": ["LastModifiedTimeStamp"],
11971
+ "AWS::Logs::ScheduledQuery": ["LastUpdatedTime"],
11972
+ "AWS::Logs::StorageTierPolicy": ["LastUpdatedTime"],
11973
+ "AWS::MGN::Application": ["LastModifiedDateTime"],
11974
+ "AWS::MGN::NetworkMigrationDefinition": ["UpdatedAt"],
11975
+ "AWS::MGN::Wave": ["LastModifiedDateTime"],
11976
+ "AWS::MPA::ApprovalTeam": ["LastUpdateTime", "VersionId"],
11977
+ "AWS::MSK::ClusterPolicy": ["CurrentVersion"],
11978
+ "AWS::MSK::Replicator": ["CurrentVersion"],
11979
+ "AWS::MWAAServerless::Workflow": ["ModifiedAt", "WorkflowVersion"],
11980
+ "AWS::Macie::Member": ["UpdatedAt"],
11981
+ "AWS::MediaConnect::DestinationEndpoint": ["UpdatedAt"],
11982
+ "AWS::MediaConnect::RouterInput": ["UpdatedAt"],
11983
+ "AWS::MediaConnect::RouterNetworkInterface": ["UpdatedAt"],
11984
+ "AWS::MediaConnect::RouterOutput": ["UpdatedAt"],
11985
+ "AWS::MediaConnect::SourceEndpoint": ["UpdatedAt"],
11986
+ "AWS::MediaLive::CloudWatchAlarmTemplate": ["ModifiedAt"],
11987
+ "AWS::MediaLive::CloudWatchAlarmTemplateGroup": ["ModifiedAt"],
11988
+ "AWS::MediaLive::EventBridgeRuleTemplate": ["ModifiedAt"],
11989
+ "AWS::MediaLive::EventBridgeRuleTemplateGroup": ["ModifiedAt"],
11990
+ "AWS::MediaLive::SignalMap": ["ModifiedAt"],
11991
+ "AWS::MediaPackageV2::Channel": ["ModifiedAt"],
11992
+ "AWS::MediaPackageV2::ChannelGroup": ["ModifiedAt"],
11993
+ "AWS::MediaPackageV2::OriginEndpoint": ["ModifiedAt"],
11994
+ "AWS::NetworkFlowMonitor::Monitor": ["ModifiedAt"],
11995
+ "AWS::NetworkFlowMonitor::PerformanceMonitor": ["ModifiedAt"],
11996
+ "AWS::NetworkManager::ConnectAttachment": ["UpdatedAt"],
11997
+ "AWS::NetworkManager::DirectConnectGatewayAttachment": ["UpdatedAt"],
11998
+ "AWS::NetworkManager::SiteToSiteVpnAttachment": ["UpdatedAt"],
11999
+ "AWS::NetworkManager::TransitGatewayRouteTableAttachment": ["UpdatedAt"],
12000
+ "AWS::NetworkManager::VpcAttachment": ["UpdatedAt"],
12001
+ "AWS::NetworkMonitor::Monitor": ["ModifiedAt"],
12002
+ "AWS::NetworkMonitor::Probe": ["ModifiedAt"],
12003
+ "AWS::NetworkSecurityManager::Deployment": ["UpdatedAt", "Version"],
12004
+ "AWS::NetworkSecurityManager::Policy": ["UpdatedAt", "Version"],
12005
+ "AWS::NetworkSecurityManager::Rule": ["UpdatedAt", "Version"],
12006
+ "AWS::NetworkSecurityManager::Scope": ["UpdatedAt", "Version"],
12007
+ "AWS::NetworkSecurityManager::Template": ["UpdatedAt", "Version"],
12008
+ "AWS::NotificationsContacts::EmailContact": ["EmailContact.UpdateTime"],
12009
+ "AWS::ObservabilityAdmin::DatasetIntegration": ["UpdatedAt"],
12010
+ "AWS::Omics::AnnotationStore": ["UpdateTime"],
12011
+ "AWS::Omics::SequenceStore": ["UpdateTime"],
12012
+ "AWS::Omics::VariantStore": ["UpdateTime"],
12013
+ "AWS::Panorama::ApplicationInstance": ["LastUpdatedTime"],
12014
+ "AWS::Personalize::Campaign": ["LastUpdatedDateTime"],
12015
+ "AWS::Personalize::Filter": ["LastUpdatedDateTime"],
12016
+ "AWS::Personalize::Recommender": ["LastUpdatedDateTime"],
12017
+ "AWS::Polly::Lexicon": ["LastModified"],
12018
+ "AWS::PricingPlanManager::Subscription": ["UpdatedAt"],
12019
+ "AWS::QBusiness::Application": ["UpdatedAt"],
12020
+ "AWS::QBusiness::DataAccessor": ["UpdatedAt"],
12021
+ "AWS::QBusiness::DataSource": ["UpdatedAt"],
12022
+ "AWS::QBusiness::Index": ["UpdatedAt"],
12023
+ "AWS::QBusiness::Plugin": ["UpdatedAt"],
12024
+ "AWS::QBusiness::Retriever": ["UpdatedAt"],
12025
+ "AWS::QBusiness::WebExperience": ["UpdatedAt"],
12026
+ "AWS::QuickSight::ActionConnector": ["LastUpdatedTime"],
12027
+ "AWS::QuickSight::Agent": ["UpdatedAt"],
12028
+ "AWS::QuickSight::Analysis": ["LastUpdatedTime"],
12029
+ "AWS::QuickSight::ApprovalPolicy": ["UpdatedAt"],
12030
+ "AWS::QuickSight::Brand": [
12031
+ "LastUpdatedTime",
12032
+ "VersionId",
12033
+ "VersionStatus"
12034
+ ],
12035
+ "AWS::QuickSight::DLPSetting": ["UpdatedAt"],
12036
+ "AWS::QuickSight::Dashboard": [
12037
+ "LastUpdatedTime",
12038
+ "Version",
12039
+ "Version.Arn",
12040
+ "Version.CreatedTime",
12041
+ "Version.DataSetArns",
12042
+ "Version.Description",
12043
+ "Version.Errors",
12044
+ "Version.Sheets",
12045
+ "Version.SourceEntityArn",
12046
+ "Version.Status",
12047
+ "Version.ThemeArn",
12048
+ "Version.VersionNumber"
12049
+ ],
12050
+ "AWS::QuickSight::DataSet": ["LastUpdatedTime"],
12051
+ "AWS::QuickSight::DataSource": ["LastUpdatedTime"],
12052
+ "AWS::QuickSight::Flow": ["LastUpdatedTime"],
12053
+ "AWS::QuickSight::Folder": ["LastUpdatedTime"],
12054
+ "AWS::QuickSight::KnowledgeBase": ["UpdatedAt"],
12055
+ "AWS::QuickSight::LimitsProfile": ["UpdatedAt"],
12056
+ "AWS::QuickSight::OAuthClientApplication": ["LastUpdatedTime"],
12057
+ "AWS::QuickSight::Space": ["UpdatedAt"],
12058
+ "AWS::QuickSight::Template": [
12059
+ "LastUpdatedTime",
12060
+ "Version",
12061
+ "Version.CreatedTime",
12062
+ "Version.DataSetConfigurations",
12063
+ "Version.Description",
12064
+ "Version.Errors",
12065
+ "Version.Sheets",
12066
+ "Version.SourceEntityArn",
12067
+ "Version.Status",
12068
+ "Version.ThemeArn",
12069
+ "Version.VersionNumber"
12070
+ ],
12071
+ "AWS::QuickSight::Theme": [
12072
+ "LastUpdatedTime",
12073
+ "Version",
12074
+ "Version.Arn",
12075
+ "Version.BaseThemeId",
12076
+ "Version.Configuration",
12077
+ "Version.Configuration.DataColorPalette",
12078
+ "Version.Configuration.Sheet",
12079
+ "Version.Configuration.Typography",
12080
+ "Version.Configuration.UIColorPalette",
12081
+ "Version.CreatedTime",
12082
+ "Version.Description",
12083
+ "Version.Errors",
12084
+ "Version.Status",
12085
+ "Version.VersionNumber"
12086
+ ],
12087
+ "AWS::QuickSight::VPCConnection": ["LastUpdatedTime"],
12088
+ "AWS::RAM::PermissionAssociation": ["LastUpdatedTime", "PermissionVersion"],
12089
+ "AWS::RAM::PrincipalAssociation": ["LastUpdatedTime"],
12090
+ "AWS::RAM::ResourceAssociation": ["LastUpdatedTime"],
12091
+ "AWS::RAM::ResourceShare": ["LastUpdatedTime"],
12092
+ "AWS::RAM::SourceAssociation": ["LastUpdatedTime"],
12093
+ "AWS::RTBFabric::InboundExternalLink": ["UpdatedTimestamp"],
12094
+ "AWS::RTBFabric::Link": ["UpdatedTimestamp"],
12095
+ "AWS::RTBFabric::LinkRoutingRule": ["UpdatedTimestamp"],
12096
+ "AWS::RTBFabric::OutboundExternalLink": ["UpdatedTimestamp"],
12097
+ "AWS::RTBFabric::RequesterGateway": ["UpdatedTimestamp"],
12098
+ "AWS::RTBFabric::ResponderGateway": ["UpdatedTimestamp"],
12099
+ "AWS::ResilienceHubV2::Policy": ["UpdatedAt"],
12100
+ "AWS::ResilienceHubV2::Service": ["UpdatedAt"],
12101
+ "AWS::ResilienceHubV2::ServiceFunction": ["UpdatedAt"],
12102
+ "AWS::ResilienceHubV2::System": ["UpdatedAt"],
12103
+ "AWS::ResilienceHubV2::UserJourney": ["UpdatedAt"],
12104
+ "AWS::Route53::TrafficPolicy": ["Version"],
12105
+ "AWS::Route53GlobalResolver::AccessSource": ["UpdatedAt"],
12106
+ "AWS::Route53GlobalResolver::AccessToken": ["UpdatedAt"],
12107
+ "AWS::Route53GlobalResolver::DnsView": ["UpdatedAt"],
12108
+ "AWS::Route53GlobalResolver::FirewallDomainList": ["UpdatedAt"],
12109
+ "AWS::Route53GlobalResolver::FirewallRule": ["UpdatedAt"],
12110
+ "AWS::Route53GlobalResolver::GlobalResolver": ["UpdatedAt"],
12111
+ "AWS::Route53GlobalResolver::HostedZoneAssociation": ["UpdatedAt"],
12112
+ "AWS::Route53Resolver::FirewallDomainList": ["ModificationTime"],
12113
+ "AWS::Route53Resolver::FirewallRuleGroup": ["ModificationTime"],
12114
+ "AWS::Route53Resolver::FirewallRuleGroupAssociation": ["ModificationTime"],
12115
+ "AWS::Route53Resolver::OutpostResolver": ["ModificationTime"],
12116
+ "AWS::SCN::DataIntegrationFlow": ["LastModifiedTime"],
12117
+ "AWS::SCN::Dataset": ["LastModifiedTime"],
12118
+ "AWS::SCN::Instance": ["LastModifiedTime", "VersionNumber"],
12119
+ "AWS::SCN::Namespace": ["LastModifiedTime"],
12120
+ "AWS::SSM::CloudConnector": ["UpdatedAt"],
12121
+ "AWS::SSM::DefaultHostManagementConfiguration": ["LastModifiedDate", "LastModifiedUser"],
12122
+ "AWS::SSM::OpsItem": [
12123
+ "LastModifiedBy",
12124
+ "LastModifiedTime",
12125
+ "Version"
12126
+ ],
12127
+ "AWS::SSM::ServiceSetting": ["LastModifiedDate", "LastModifiedUser"],
12128
+ "AWS::SSMQuickSetup::ConfigurationManager": ["LastModifiedAt"],
12129
+ "AWS::SageMaker::Action": ["LastModifiedTime"],
12130
+ "AWS::SageMaker::Artifact": ["LastModifiedTime"],
12131
+ "AWS::SageMaker::ClusterSchedulerConfig": ["ClusterSchedulerConfigVersion"],
12132
+ "AWS::SageMaker::ComputeQuota": ["ComputeQuotaVersion", "LastModifiedTime"],
12133
+ "AWS::SageMaker::Context": ["LastModifiedTime"],
12134
+ "AWS::SageMaker::Experiment": ["LastModifiedTime"],
12135
+ "AWS::SageMaker::ExperimentTrialComponent": ["LastModifiedTime"],
12136
+ "AWS::SageMaker::Extension": ["LastModifiedTime"],
12137
+ "AWS::SageMaker::Hub": ["LastModifiedTime"],
12138
+ "AWS::SageMaker::InferenceComponent": ["LastModifiedTime"],
12139
+ "AWS::SageMaker::InferenceExperiment": ["LastModifiedTime"],
12140
+ "AWS::SageMaker::MlflowApp": ["LastModifiedTime", "MlflowVersion"],
12141
+ "AWS::SageMaker::ModelCard": ["LastModifiedTime", "ModelCardVersion"],
12142
+ "AWS::SageMaker::MonitoringSchedule": ["LastModifiedTime"],
12143
+ "AWS::SageMaker::PartnerApp": ["CurrentVersionEolDate"],
12144
+ "AWS::SageMaker::ProcessingJob": ["LastModifiedTime"],
12145
+ "AWS::SageMaker::TrialComponent": ["LastModifiedTime"],
12146
+ "AWS::Scheduler::ScheduleGroup": ["LastModificationDate"],
12147
+ "AWS::SecurityAgent::AgentSpace": ["UpdatedAt"],
12148
+ "AWS::SecurityAgent::Artifact": ["UpdatedAt"],
12149
+ "AWS::SecurityAgent::Pentest": ["UpdatedAt"],
12150
+ "AWS::SecurityHub::AutomationRule": ["UpdatedAt"],
12151
+ "AWS::SecurityHub::AutomationRuleV2": ["UpdatedAt"],
12152
+ "AWS::SecurityHub::ConfigurationPolicy": ["UpdatedAt"],
12153
+ "AWS::SecurityHub::Connector": ["LastUpdatedAt"],
12154
+ "AWS::SecurityHub::ConnectorV2": ["LastUpdatedAt"],
12155
+ "AWS::SecurityHub::PolicyAssociation": ["UpdatedAt"],
12156
+ "AWS::Transcribe::CallAnalyticsCategory": ["LastUpdateTime"],
12157
+ "AWS::Transcribe::Vocabulary": ["LastModifiedTime"],
12158
+ "AWS::Translate::ParallelData": ["LastUpdatedAt"],
12159
+ "AWS::Translate::Terminology": ["LastUpdatedAt"],
12160
+ "AWS::VpcLattice::Service": ["LastUpdatedAt"],
12161
+ "AWS::VpcLattice::ServiceNetwork": ["LastUpdatedAt"],
12162
+ "AWS::VpcLattice::TargetGroup": ["LastUpdatedAt"],
12163
+ "AWS::WellArchitected::AgentContext": ["LastModifiedAt", "LastModifiedBy"],
12164
+ "AWS::WellArchitected::AgentGoal": ["LastModifiedAt", "LastModifiedBy"],
12165
+ "AWS::WellArchitected::AgentOrganizationalProfile": ["LastModifiedAt", "LastModifiedBy"],
12166
+ "AWS::WellArchitected::AgentProfile": ["LastModifiedAt", "LastModifiedBy"],
12167
+ "AWS::WellArchitected::Profile": ["ProfileVersion", "UpdatedAt"],
12168
+ "AWS::WellArchitected::ReviewTemplate": ["UpdatedAt"],
12169
+ "AWS::Wisdom::AIAgent": ["ModifiedTimeSeconds"],
12170
+ "AWS::Wisdom::AIGuardrail": ["ModifiedTimeSeconds"],
12171
+ "AWS::Wisdom::AIPrompt": ["ModifiedTimeSeconds"],
12172
+ "AWS::Wisdom::Content": ["RevisionId"],
12173
+ "AWS::WorkSpacesThinClient::Environment": ["PendingSoftwareSetVersion", "UpdatedAt"]
12174
+ };
12175
+
11643
12176
  // src/analyzer/diff-calculator/shared.ts
11644
12177
  const INTRINSIC_KEYS = /* @__PURE__ */ new Set([
11645
12178
  "Ref",
@@ -11658,7 +12191,7 @@ const INTRINSIC_KEYS = /* @__PURE__ */ new Set([
11658
12191
  "Fn::Or",
11659
12192
  "Fn::Not"
11660
12193
  ]);
11661
- const IN_PLACE_UPDATE_DERIVED_ATTRS = Object.freeze({
12194
+ const HAND_IN_PLACE_UPDATE_DERIVED_ATTRS = Object.freeze({
11662
12195
  "AWS::EC2::LaunchTemplate": /* @__PURE__ */ new Set(["LatestVersionNumber", "DefaultVersionNumber"]),
11663
12196
  "AWS::EC2::Instance": /* @__PURE__ */ new Set([
11664
12197
  "PublicIp",
@@ -11667,6 +12200,7 @@ const IN_PLACE_UPDATE_DERIVED_ATTRS = Object.freeze({
11667
12200
  ]),
11668
12201
  "AWS::BedrockAgentCore::Runtime": /* @__PURE__ */ new Set(["AgentRuntimeVersion", "LastUpdatedAt"])
11669
12202
  });
12203
+ const IN_PLACE_UPDATE_DERIVED_ATTRS = Object.freeze(Object.fromEntries([.../* @__PURE__ */ new Set([...Object.keys(HAND_IN_PLACE_UPDATE_DERIVED_ATTRS), ...Object.keys(CC_IN_PLACE_UPDATE_DERIVED_ATTRS)])].map((type) => [type, /* @__PURE__ */ new Set([...HAND_IN_PLACE_UPDATE_DERIVED_ATTRS[type] ?? [], ...CC_IN_PLACE_UPDATE_DERIVED_ATTRS[type] ?? []])])));
11670
12204
  const MICROVM_IMAGE_BUILD_KEYS = /* @__PURE__ */ new Set([
11671
12205
  "BaseImageArn",
11672
12206
  "BaseImageVersion",
@@ -11714,6 +12248,24 @@ const IN_PLACE_UPDATE_ATTRS_MOVED_BY = Object.freeze({
11714
12248
  "CertificateDetails.ValidTill": /* @__PURE__ */ new Set(["CACertificateIdentifier"]),
11715
12249
  SecondaryAvailabilityZone: /* @__PURE__ */ new Set(["MultiAZ"])
11716
12250
  }),
12251
+ "AWS::CodeStarConnections::SyncConfiguration": Object.freeze({
12252
+ OwnerId: /* @__PURE__ */ new Set(["RepositoryLinkId"]),
12253
+ RepositoryName: /* @__PURE__ */ new Set(["RepositoryLinkId"]),
12254
+ ProviderType: /* @__PURE__ */ new Set(["RepositoryLinkId"])
12255
+ }),
12256
+ "AWS::DataSync::LocationFSxWindows": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
12257
+ "AWS::DataSync::LocationS3": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
12258
+ "AWS::DataSync::LocationEFS": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
12259
+ "AWS::DataSync::LocationFSxLustre": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
12260
+ "AWS::DataSync::LocationFSxOpenZFS": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
12261
+ "AWS::DataSync::LocationFSxONTAP": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory", "Protocol"]) }),
12262
+ "AWS::DataSync::LocationNFS": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory", "ServerHostname"]) }),
12263
+ "AWS::DataSync::LocationSMB": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory", "ServerHostname"]) }),
12264
+ "AWS::DataSync::LocationHDFS": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory", "NameNodes"]) }),
12265
+ "AWS::DataSync::LocationObjectStorage": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory", "ServerHostname"]) }),
12266
+ "AWS::DataSync::LocationAzureBlob": Object.freeze({ LocationUri: /* @__PURE__ */ new Set(["Subdirectory"]) }),
12267
+ "AWS::Deadline::Monitor": Object.freeze({ Url: /* @__PURE__ */ new Set(["Subdomain"]) }),
12268
+ "AWS::EC2::GatewayRouteTableAssociation": Object.freeze({ AssociationId: /* @__PURE__ */ new Set(["RouteTableId"]) }),
11717
12269
  "AWS::EC2::VPCEndpoint": Object.freeze({
11718
12270
  NetworkInterfaceIds: /* @__PURE__ */ new Set(["SubnetIds"]),
11719
12271
  DnsEntries: /* @__PURE__ */ new Set([
@@ -11835,26 +12387,26 @@ function principalListLengthMoves(oldValue, newValue) {
11835
12387
  const after = length(newValue);
11836
12388
  return before === void 0 || after === void 0 || before !== after;
11837
12389
  }
11838
- function bagOf(value) {
12390
+ function bagOf$1(value) {
11839
12391
  if (value === void 0 || value === null) return null;
11840
12392
  return typeof value === "object" && !Array.isArray(value) && !isIntrinsicShaped(value) ? value : void 0;
11841
12393
  }
11842
12394
  function metadataConfigurationAddedOrRemoved(oldValue, newValue) {
11843
- const before = bagOf(oldValue);
11844
- const after = bagOf(newValue);
12395
+ const before = bagOf$1(oldValue);
12396
+ const after = bagOf$1(newValue);
11845
12397
  if (before === void 0 || after === void 0) return true;
11846
12398
  return before === null !== (after === null);
11847
12399
  }
11848
12400
  function metadataTableStateFlips(member) {
11849
12401
  const stateOf = (bag) => {
11850
- const table = bagOf(bag[member]);
12402
+ const table = bagOf$1(bag[member]);
11851
12403
  if (table === void 0) return void 0;
11852
12404
  return table === null ? "DISABLED" : table["ConfigurationState"] ?? "DISABLED";
11853
12405
  };
11854
12406
  return (oldValue, newValue) => {
11855
12407
  if (metadataConfigurationAddedOrRemoved(oldValue, newValue)) return true;
11856
- const before = stateOf(bagOf(oldValue));
11857
- const after = stateOf(bagOf(newValue));
12408
+ const before = stateOf(bagOf$1(oldValue));
12409
+ const after = stateOf(bagOf$1(newValue));
11858
12410
  if (typeof before !== "string" || typeof after !== "string") return true;
11859
12411
  return before !== after;
11860
12412
  };
@@ -11923,6 +12475,180 @@ function markNewValueKnownAfterDeploy(change, path) {
11923
12475
  }
11924
12476
  }
11925
12477
 
12478
+ // src/analyzer/diff-calculator/calculate-diff.ts
12479
+ async function calculateDiff(currentState, desiredTemplate, resolveFn, canonicalizeProperties, allowedUnsupportedProperties, freshParameters, maskForLog, recreateTargets, maskedInputs, refusalRecovery, noEchoCompare, readProvenance, forcedNestedChildRuns, updatePolicy) {
12480
+ const changes = /* @__PURE__ */ new Map();
12481
+ refuseMalformedResourceEntriesForDeploy(currentState, void 0, void 0, refusalRecovery);
12482
+ refuseMalformedResourceProperties(currentState, void 0, void 0, refusalRecovery);
12483
+ const currentResources = currentState.resources;
12484
+ const desiredResources = desiredTemplate.Resources;
12485
+ this.logger.debug("Calculating diff...");
12486
+ this.logger.debug(`Current resources: ${Object.keys(currentResources).length}`);
12487
+ this.logger.debug(`Desired resources: ${Object.keys(desiredResources).length}`);
12488
+ const processedLogicalIds = /* @__PURE__ */ new Set();
12489
+ const rawGetAttRefs = /* @__PURE__ */ new Map();
12490
+ for (const [logicalId, desiredResource] of Object.entries(desiredResources)) {
12491
+ if (desiredResource.Type === "AWS::CDK::Metadata") continue;
12492
+ const perProp = /* @__PURE__ */ new Map();
12493
+ for (const [propKey, propValue] of Object.entries(desiredResource.Properties ?? {})) {
12494
+ const refs = DiffCalculator.extractGetAttRefs(propValue);
12495
+ if (refs.size > 0) perProp.set(propKey, refs);
12496
+ }
12497
+ if (perProp.size > 0) rawGetAttRefs.set(logicalId, perProp);
12498
+ }
12499
+ for (const [logicalId, desiredResource] of Object.entries(desiredResources)) {
12500
+ if (desiredResource.Type === "AWS::CDK::Metadata") {
12501
+ this.logger.debug(`Skipping metadata resource: ${logicalId}`);
12502
+ processedLogicalIds.add(logicalId);
12503
+ continue;
12504
+ }
12505
+ processedLogicalIds.add(logicalId);
12506
+ const currentResource = currentResources[logicalId];
12507
+ if (!currentResource) {
12508
+ changes.set(logicalId, {
12509
+ logicalId,
12510
+ changeType: "CREATE",
12511
+ resourceType: desiredResource.Type,
12512
+ desiredProperties: desiredResource.Properties || {}
12513
+ });
12514
+ this.logger.debug(`CREATE: ${logicalId} (${desiredResource.Type})`);
12515
+ } else if (currentResource.resourceType !== desiredResource.Type) {
12516
+ const propertyChanges = [{
12517
+ path: "Type",
12518
+ oldValue: currentResource.resourceType,
12519
+ newValue: desiredResource.Type,
12520
+ requiresReplacement: true
12521
+ }];
12522
+ changes.set(logicalId, {
12523
+ logicalId,
12524
+ changeType: "UPDATE",
12525
+ resourceType: desiredResource.Type,
12526
+ currentProperties: currentResource.properties,
12527
+ desiredProperties: desiredResource.Properties || {},
12528
+ propertyChanges
12529
+ });
12530
+ this.logger.debug(`UPDATE (Type change): ${logicalId} (from ${currentResource.resourceType} to ${desiredResource.Type})`);
12531
+ } else {
12532
+ const rawDesiredProps = desiredResource.Properties || {};
12533
+ const resolvedDesiredProps = resolveFn ? await this.resolveBestEffort(rawDesiredProps, resolveFn) : rawDesiredProps;
12534
+ const sdkRouted = currentResource.provisionedBy !== "cc-api";
12535
+ const desiredAfterDrops = sdkRouted && allowedUnsupportedProperties ? withoutAcceptedSdkUnwiredProperties(desiredResource.Type, resolvedDesiredProps, allowedUnsupportedProperties, currentResource.properties) : resolvedDesiredProps;
12536
+ const currentAfterDrops = sdkRouted ? withoutUnwrittenSdkUnwiredProperties(desiredResource.Type, currentResource.properties, resolvedDesiredProps, allowedUnsupportedProperties ?? /* @__PURE__ */ new Set(), acceptedCreateOnlyDropsOf(currentResource)) : currentResource.properties;
12537
+ const desiredPropsForCompare = canonicalizeProperties ? canonicalizeProperties(desiredResource.Type, desiredAfterDrops) : desiredAfterDrops;
12538
+ const currentPropsForCompare = canonicalizeProperties && sdkRouted ? canonicalizeProperties(desiredResource.Type, currentAfterDrops) : currentAfterDrops;
12539
+ const droppedKeys = canonicalizeProperties ? Object.keys(desiredAfterDrops).filter((key) => !Object.hasOwn(desiredPropsForCompare, key)) : [];
12540
+ if (droppedKeys.length > 0) this.logger.warn(`${logicalId} (${desiredResource.Type}): part of the declared properties cannot be sent as declared and is ignored when comparing against deployed state — the provider narrows them (${droppedKeys.join(", ")}). Fix the template to declare only what the resource supports; until then changes to the ignored keys have no effect.`);
12541
+ else if (canonicalizeProperties && !this.valuesEqual(desiredPropsForCompare, desiredAfterDrops)) this.logger.debug(`${logicalId} (${desiredResource.Type}): the provider normalizes part of the declared properties before sending them; the comparison uses the normalized form. Nothing is dropped.`);
12542
+ const noEchoCompared = noEchoCompare?.({
12543
+ logicalId,
12544
+ resourceType: desiredResource.Type,
12545
+ templateProperties: rawDesiredProps,
12546
+ desired: desiredPropsForCompare,
12547
+ current: currentPropsForCompare
12548
+ });
12549
+ const desiredCompared = noEchoCompared?.desired ?? desiredPropsForCompare;
12550
+ const currentCompared = noEchoCompared?.current ?? currentPropsForCompare;
12551
+ const propertyChanges = await this.compareProperties(desiredResource.Type, currentCompared, desiredCompared, maskForLog);
12552
+ const reported = new Set(propertyChanges.map((pc) => pc.path));
12553
+ const rebaselined = [];
12554
+ const moved = await movedMaskedProperties(currentResource, rawDesiredProps, maskedInputs && inputFingerprinter(rawDesiredProps, maskedInputs.sources), maskedInputs?.rebaselined && ((key, fingerprint) => rebaselined.push([key, fingerprint])));
12555
+ if (rebaselined.length > 0) maskedInputs.rebaselined.set(logicalId, Object.fromEntries(rebaselined));
12556
+ for (const key of moved) {
12557
+ if (reported.has(key)) continue;
12558
+ if (!Object.hasOwn(currentCompared, key)) continue;
12559
+ if (!Object.hasOwn(desiredCompared, key)) continue;
12560
+ const oldValue = currentCompared[key];
12561
+ const newValue = desiredCompared[key];
12562
+ propertyChanges.push({
12563
+ path: key,
12564
+ oldValue,
12565
+ newValue,
12566
+ requiresReplacement: await this.maskedEditRequiresReplacement(desiredResource.Type, key, oldValue, newValue, {
12567
+ oldProperties: currentCompared,
12568
+ newProperties: desiredCompared
12569
+ }),
12570
+ maskedExpressionChanged: true
12571
+ });
12572
+ this.logger.debug(safeMsg`${logicalId}: ${key} is recorded masked and its template expression or a resolved input changed`);
12573
+ }
12574
+ const listed = new Set(propertyChanges.map((pc) => pc.path));
12575
+ for (const key of unsettledPropertiesOf(currentResource)) {
12576
+ if (listed.has(key)) continue;
12577
+ propertyChanges.push({
12578
+ path: key,
12579
+ oldValue: currentCompared[key],
12580
+ newValue: desiredCompared[key],
12581
+ requiresReplacement: false,
12582
+ unsettled: true
12583
+ });
12584
+ this.logger.debug(safeMsg`${logicalId}: ${key} is unsettled after a failed update and is sent again`);
12585
+ }
12586
+ const attributeChanges = this.compareAttributes(currentResource, desiredResource);
12587
+ if (propertyChanges.length > 0 || attributeChanges.length > 0) {
12588
+ const providerReplacement = propertyChanges.length > 0 ? providerReplacementReason(desiredResource.Type, currentResource, resolvedDesiredProps) : void 0;
12589
+ changes.set(logicalId, {
12590
+ logicalId,
12591
+ changeType: "UPDATE",
12592
+ resourceType: desiredResource.Type,
12593
+ currentProperties: currentResource.properties,
12594
+ desiredProperties: rawDesiredProps,
12595
+ propertyChanges,
12596
+ ...attributeChanges.length > 0 && { attributeChanges },
12597
+ ...providerReplacement !== void 0 && { providerReplacement }
12598
+ });
12599
+ this.logger.debug(`UPDATE: ${logicalId} (${propertyChanges.length} property changes, ${attributeChanges.length} attribute changes)`);
12600
+ } else {
12601
+ changes.set(logicalId, {
12602
+ logicalId,
12603
+ changeType: "NO_CHANGE",
12604
+ resourceType: desiredResource.Type,
12605
+ currentProperties: currentResource.properties,
12606
+ desiredProperties: rawDesiredProps
12607
+ });
12608
+ this.logger.debug(`NO_CHANGE: ${logicalId}`);
12609
+ }
12610
+ }
12611
+ }
12612
+ for (const [logicalId, currentResource] of Object.entries(currentResources)) if (!processedLogicalIds.has(logicalId)) {
12613
+ changes.set(logicalId, {
12614
+ logicalId,
12615
+ changeType: "DELETE",
12616
+ resourceType: currentResource.resourceType,
12617
+ currentProperties: currentResource.properties
12618
+ });
12619
+ this.logger.debug(`DELETE: ${logicalId} (${currentResource.resourceType})`);
12620
+ }
12621
+ for (const logicalId of forcedNestedChildRuns ?? []) {
12622
+ const change = changes.get(logicalId);
12623
+ if (change?.resourceType !== "AWS::CloudFormation::Stack") continue;
12624
+ if (change.changeType === "NO_CHANGE") {
12625
+ change.changeType = "UPDATE";
12626
+ change.propertyChanges = [];
12627
+ }
12628
+ if (change.changeType === "UPDATE") change.nestedChildHeal = true;
12629
+ }
12630
+ const forcedReplacements = /* @__PURE__ */ new Set();
12631
+ for (const logicalId of recreateTargets ?? []) {
12632
+ const changeType = changes.get(logicalId)?.changeType;
12633
+ if (changeType === "NO_CHANGE" || changeType === "UPDATE") forcedReplacements.add(logicalId);
12634
+ }
12635
+ for (const logicalId of markLegacyHandleHeals(changes, currentResources, desiredTemplate, (v) => this.parser.extractReferences(v))) forcedReplacements.add(logicalId);
12636
+ const provenanceChanges = await this.promoteReadProvenanceDependents(changes, currentState, desiredTemplate, readProvenance);
12637
+ const syntheticCreateOnlyPaths = await this.loadSyntheticCreateOnlyPaths(changes, desiredTemplate, rawGetAttRefs, freshParameters, forcedReplacements);
12638
+ for (const { change, pc, upstreams } of provenanceChanges) {
12639
+ const templateValue = desiredTemplate.Resources[change.logicalId]?.Properties?.[pc.path];
12640
+ pc.requiresReplacement = this.syntheticRequiresReplacement(change.resourceType, pc.path, syntheticCreateOnlyPaths, upstreams.some((id) => isPlainReferenceTo(templateValue, id, desiredTemplate.Resources[id]?.Type)), siblingsOf(change));
12641
+ }
12642
+ do {
12643
+ if (updatePolicy === true) markUpdatePolicyReplacements(changes, desiredTemplate);
12644
+ this.promoteReplacementDependents(changes, desiredTemplate, syntheticCreateOnlyPaths, forcedReplacements);
12645
+ } while (this.promoteInPlaceAttributeDependents(changes, desiredTemplate, rawGetAttRefs, syntheticCreateOnlyPaths, freshParameters));
12646
+ dropSupersededProviderReplacements(changes);
12647
+ const summary = this.getSummary(changes);
12648
+ this.logger.debug(`Diff calculated: ${summary.create} CREATE, ${summary.update} UPDATE, ${summary.delete} DELETE, ${summary.noChange} NO_CHANGE`);
12649
+ return changes;
12650
+ }
12651
+
11926
12652
  // src/deployment/child-of-recreated-parent.ts
11927
12653
  const LAMBDA_FUNCTION = "AWS::Lambda::Function";
11928
12654
  const IAM_ROLE = "AWS::IAM::Role";
@@ -12629,11 +13355,11 @@ function validReferenceRegion(region) {
12629
13355
  if (typeof region !== "string") return void 0;
12630
13356
  return canonicalizeRegion(region) === region && isClientSafeRegion(region) ? region : void 0;
12631
13357
  }
12632
- function isPlainObject$9(value) {
13358
+ function isPlainObject$10(value) {
12633
13359
  return value !== null && typeof value === "object" && !Array.isArray(value);
12634
13360
  }
12635
13361
  function validateReferenceProvenance(token, raw) {
12636
- if (!isSingleDynamicReferenceToken(token) || !isPlainObject$9(raw)) return void 0;
13362
+ if (!isSingleDynamicReferenceToken(token) || !isPlainObject$10(raw)) return void 0;
12637
13363
  const versionsRaw = Object.hasOwn(raw, "versions") ? raw["versions"] : void 0;
12638
13364
  const readRaw = Object.hasOwn(raw, "readVersions") ? raw["readVersions"] : void 0;
12639
13365
  if (readRaw !== void 0) {
@@ -12664,10 +13390,10 @@ function withTokenVersionsDropped(record, tokens) {
12664
13390
  }
12665
13391
  function withoutVersionAttestation(record) {
12666
13392
  const field = record.referenceProvenance;
12667
- if (!isPlainObject$9(field)) return record;
12668
- if (!Object.values(field).some((entry) => isPlainObject$9(entry) && Object.hasOwn(entry, "versionsSent"))) return record;
13393
+ if (!isPlainObject$10(field)) return record;
13394
+ if (!Object.values(field).some((entry) => isPlainObject$10(entry) && Object.hasOwn(entry, "versionsSent"))) return record;
12669
13395
  const out = {};
12670
- for (const [token, entry] of Object.entries(field)) if (isPlainObject$9(entry) && Object.hasOwn(entry, "versionsSent")) {
13396
+ for (const [token, entry] of Object.entries(field)) if (isPlainObject$10(entry) && Object.hasOwn(entry, "versionsSent")) {
12671
13397
  const { versionsSent: _dropped, ...rest } = entry;
12672
13398
  out[token] = rest;
12673
13399
  } else out[token] = entry;
@@ -12677,11 +13403,11 @@ function withoutVersionAttestation(record) {
12677
13403
  };
12678
13404
  }
12679
13405
  function referenceProvenanceOf(record) {
12680
- if (!isPlainObject$9(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
13406
+ if (!isPlainObject$10(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
12681
13407
  return validatedBag(record["referenceProvenance"]);
12682
13408
  }
12683
13409
  function validatedBag(field) {
12684
- if (!isPlainObject$9(field)) return void 0;
13410
+ if (!isPlainObject$10(field)) return void 0;
12685
13411
  const out = Object.create(null);
12686
13412
  for (const [token, raw] of Object.entries(field)) {
12687
13413
  const entry = validateReferenceProvenance(token, raw);
@@ -12690,9 +13416,9 @@ function validatedBag(field) {
12690
13416
  return { ...out };
12691
13417
  }
12692
13418
  function recordedProvenanceOf(record, token) {
12693
- if (!isPlainObject$9(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
13419
+ if (!isPlainObject$10(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
12694
13420
  const field = record["referenceProvenance"];
12695
- if (!isPlainObject$9(field) || !Object.hasOwn(field, token)) return void 0;
13421
+ if (!isPlainObject$10(field) || !Object.hasOwn(field, token)) return void 0;
12696
13422
  return validateReferenceProvenance(token, field[token]);
12697
13423
  }
12698
13424
  function recordedReferenceRegions(record) {
@@ -12714,7 +13440,7 @@ function regionsOf(field) {
12714
13440
  function keepHeldTokenProvenance(record) {
12715
13441
  if (!hasReferenceProvenanceField(record)) return record;
12716
13442
  const field = record.referenceProvenance;
12717
- if (!isPlainObject$9(field)) return record;
13443
+ if (!isPlainObject$10(field)) return record;
12718
13444
  const held = recordReferenceTokens(record);
12719
13445
  const keys = Object.keys(field);
12720
13446
  if (keys.every((token) => held.has(token))) return record;
@@ -12726,12 +13452,12 @@ function keepHeldTokenProvenance(record) {
12726
13452
  };
12727
13453
  }
12728
13454
  function hasReferenceProvenanceField(record) {
12729
- return isPlainObject$9(record) && Object.hasOwn(record, "referenceProvenance") && record["referenceProvenance"] !== void 0;
13455
+ return isPlainObject$10(record) && Object.hasOwn(record, "referenceProvenance") && record["referenceProvenance"] !== void 0;
12730
13456
  }
12731
13457
  function outputReferenceProvenanceOf(state, outputKey) {
12732
- if (!isPlainObject$9(state) || !Object.hasOwn(state, "outputReferenceProvenance")) return;
13458
+ if (!isPlainObject$10(state) || !Object.hasOwn(state, "outputReferenceProvenance")) return;
12733
13459
  const field = state["outputReferenceProvenance"];
12734
- if (!isPlainObject$9(field) || !Object.hasOwn(field, outputKey)) return void 0;
13460
+ if (!isPlainObject$10(field) || !Object.hasOwn(field, outputKey)) return void 0;
12735
13461
  return validatedBag(field[outputKey]);
12736
13462
  }
12737
13463
  function persistable(token, entry) {
@@ -12749,7 +13475,7 @@ function tokensUnderPaths(properties, paths) {
12749
13475
  for (const item of value) descend(item, path, next);
12750
13476
  return;
12751
13477
  }
12752
- if (isPlainObject$9(value) && Object.hasOwn(value, path[at])) descend(value[path[at]], path, at + 1);
13478
+ if (isPlainObject$10(value) && Object.hasOwn(value, path[at])) descend(value[path[at]], path, at + 1);
12753
13479
  };
12754
13480
  for (const path of paths) descend(properties, path, 0);
12755
13481
  return out;
@@ -12795,7 +13521,7 @@ function unionWithPrevious(pass, before) {
12795
13521
  }
12796
13522
  function outputProvenanceForPersist(args) {
12797
13523
  const { outputs, resolvedThisRun, carriedFrom, sinkOf } = args;
12798
- if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$9(carriedFrom.outputReferenceProvenance) ? carriedFrom.outputReferenceProvenance : void 0;
13524
+ if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$10(carriedFrom.outputReferenceProvenance) ? carriedFrom.outputReferenceProvenance : void 0;
12799
13525
  let out;
12800
13526
  for (const [outputKey, value] of Object.entries(outputs)) {
12801
13527
  const sink = sinkOf(outputKey);
@@ -12820,6 +13546,283 @@ function withReferenceProvenance(record, field) {
12820
13546
  };
12821
13547
  }
12822
13548
 
13549
+ // src/analyzer/read-provenance-promotion.ts
13550
+ function isPlainObject$9(value) {
13551
+ return value !== null && typeof value === "object" && !Array.isArray(value);
13552
+ }
13553
+ function readsAcrossStacks(value) {
13554
+ if (Array.isArray(value)) return value.some(readsAcrossStacks);
13555
+ if (!isPlainObject$9(value)) return false;
13556
+ if (Object.hasOwn(value, "Fn::ImportValue") || Object.hasOwn(value, "Fn::GetStackOutput")) return true;
13557
+ return Object.values(value).some(readsAcrossStacks);
13558
+ }
13559
+ function recordedReadVersions(record) {
13560
+ if (!isPlainObject$9(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
13561
+ const field = referenceProvenanceOf(record);
13562
+ if (field === void 0) return void 0;
13563
+ let out;
13564
+ for (const [token, entry] of Object.entries(field)) if (entry.readVersions !== void 0 && entry.readVersions.length > 0) (out ??= /* @__PURE__ */ new Map()).set(token, entry.readVersions);
13565
+ return out;
13566
+ }
13567
+ async function readProvenancePromotions(args) {
13568
+ const { currentState, desiredTemplate, sources } = args;
13569
+ const parser = args.parser ?? new TemplateParser();
13570
+ const records = currentState.resources;
13571
+ const parameters = isPlainObject$9(desiredTemplate.Parameters) ? desiredTemplate.Parameters : void 0;
13572
+ const out = [];
13573
+ for (const { logicalId, changeType } of args.rows) {
13574
+ if (changeType !== "NO_CHANGE" && changeType !== "UPDATE") continue;
13575
+ const record = Object.hasOwn(records, logicalId) ? records[logicalId] : void 0;
13576
+ const readVersions = recordedReadVersions(record);
13577
+ if (readVersions === void 0) continue;
13578
+ const resource = Object.hasOwn(desiredTemplate.Resources, logicalId) ? desiredTemplate.Resources[logicalId] : void 0;
13579
+ const properties = isPlainObject$9(resource?.Properties) ? resource.Properties : {};
13580
+ const reads = [];
13581
+ for (const [key, value] of Object.entries(properties)) {
13582
+ const referenced = [...parser.extractReferences(value)].filter((id) => id !== logicalId);
13583
+ const resourceIds = referenced.filter((id) => Object.hasOwn(desiredTemplate.Resources, id));
13584
+ const readsParameter = parameters !== void 0 && referenced.some((id) => Object.hasOwn(parameters, id));
13585
+ const crossStack = readsAcrossStacks(value);
13586
+ if (resourceIds.length === 0 && !readsParameter && !crossStack) continue;
13587
+ reads.push({
13588
+ key,
13589
+ value,
13590
+ resources: resourceIds,
13591
+ parameters: readsParameter,
13592
+ crossStack
13593
+ });
13594
+ }
13595
+ if (reads.length === 0) continue;
13596
+ let crossStackBags = [];
13597
+ if (sources?.crossStackOutputs !== void 0) {
13598
+ const crossValues = reads.filter((r) => r.crossStack).map((r) => r.value);
13599
+ if (crossValues.length > 0) crossStackBags = await sources.crossStackOutputs(crossValues);
13600
+ }
13601
+ const upstreamIds = new Set(reads.flatMap((r) => r.resources));
13602
+ const readsAnyParameter = reads.some((r) => r.parameters);
13603
+ const moved = [];
13604
+ for (const [token, recorded] of readVersions) {
13605
+ const domain = /* @__PURE__ */ new Set();
13606
+ let member = false;
13607
+ const join = (versions) => {
13608
+ if (versions === void 0 || versions.length === 0) return;
13609
+ member = true;
13610
+ for (const version of versions) domain.add(version);
13611
+ };
13612
+ for (const id of upstreamIds) {
13613
+ const upstream = Object.hasOwn(records, id) ? records[id] : void 0;
13614
+ join(recordedProvenanceOf(upstream, token)?.versions);
13615
+ }
13616
+ if (readsAnyParameter && sources?.inherited !== void 0) join(sources.inherited.get(token)?.versions);
13617
+ for (const bag of crossStackBags) if (Object.hasOwn(bag, token)) join(bag[token]?.versions);
13618
+ if (!member) continue;
13619
+ if (recorded.some((version) => !domain.has(version))) moved.push(token);
13620
+ }
13621
+ if (moved.length === 0) continue;
13622
+ const recordProperties = isPlainObject$9(record?.properties) ? record.properties : {};
13623
+ const keys = [];
13624
+ for (const r of reads) {
13625
+ if (!Object.hasOwn(recordProperties, r.key)) continue;
13626
+ const held = referenceTokensIn(recordProperties[r.key]);
13627
+ if (!moved.some((token) => held.has(token))) continue;
13628
+ keys.push({
13629
+ key: r.key,
13630
+ upstreams: r.resources
13631
+ });
13632
+ }
13633
+ if (keys.length === 0) continue;
13634
+ out.push({
13635
+ logicalId,
13636
+ keys,
13637
+ tokens: moved
13638
+ });
13639
+ }
13640
+ return out;
13641
+ }
13642
+
13643
+ // src/analyzer/diff-calculator/promotion.ts
13644
+ async function promoteReadProvenanceDependents(changes, currentState, desiredTemplate, sources) {
13645
+ if (isKnownTokenFreeState(currentState)) return [];
13646
+ const promotions = await readProvenancePromotions({
13647
+ rows: changes.values(),
13648
+ currentState,
13649
+ desiredTemplate,
13650
+ sources,
13651
+ parser: this.parser
13652
+ });
13653
+ const out = [];
13654
+ for (const promotion of promotions) {
13655
+ const change = changes.get(promotion.logicalId);
13656
+ if (change === void 0) continue;
13657
+ const existingPaths = new Set((change.propertyChanges ?? []).map((pc) => pc.path));
13658
+ const synthetic = [];
13659
+ for (const { key, upstreams } of promotion.keys) {
13660
+ if (existingPaths.has(key)) continue;
13661
+ const pc = {
13662
+ path: key,
13663
+ oldValue: change.currentProperties?.[key],
13664
+ newValue: change.desiredProperties?.[key],
13665
+ requiresReplacement: false,
13666
+ inPlacePropagated: true,
13667
+ readProvenancePromoted: true
13668
+ };
13669
+ synthetic.push(pc);
13670
+ out.push({
13671
+ change,
13672
+ pc,
13673
+ upstreams
13674
+ });
13675
+ }
13676
+ if (synthetic.length === 0) continue;
13677
+ if (change.changeType === "NO_CHANGE") {
13678
+ change.changeType = "UPDATE";
13679
+ change.propertyChanges = synthetic;
13680
+ } else change.propertyChanges = [...change.propertyChanges ?? [], ...synthetic];
13681
+ this.logger.debug(safeMsg`UPDATE (promoted): ${promotion.logicalId} holds a secret reference read at a version its upstream no longer records (${synthetic.map((pc) => pc.path).join(", ")})`);
13682
+ }
13683
+ return out;
13684
+ }
13685
+ async function loadSyntheticCreateOnlyPaths(changes, desiredTemplate, rawGetAttRefs, freshParameters, forcedReplacements) {
13686
+ const loaded = /* @__PURE__ */ new Map();
13687
+ const queue = [...freshParameters ?? []];
13688
+ for (const [logicalId, change] of changes) if (change.changeType === "UPDATE" || forcedReplacements.has(logicalId)) queue.push(logicalId);
13689
+ if (queue.length === 0) return loaded;
13690
+ const readersOf = /* @__PURE__ */ new Map();
13691
+ const addEdge = (referencedId, readerId) => {
13692
+ if (referencedId === readerId) return;
13693
+ let readers = readersOf.get(referencedId);
13694
+ if (!readers) {
13695
+ readers = /* @__PURE__ */ new Set();
13696
+ readersOf.set(referencedId, readers);
13697
+ }
13698
+ readers.add(readerId);
13699
+ };
13700
+ for (const [logicalId, resource] of Object.entries(desiredTemplate.Resources)) {
13701
+ if (resource.Type === "AWS::CDK::Metadata") continue;
13702
+ for (const value of Object.values(resource.Properties ?? {})) for (const referencedId of this.parser.extractReferences(value)) addEdge(referencedId, logicalId);
13703
+ for (const perUpstream of rawGetAttRefs.get(logicalId)?.values() ?? []) for (const referencedId of perUpstream.keys()) addEdge(referencedId, logicalId);
13704
+ }
13705
+ const reached = new Set(queue);
13706
+ while (queue.length > 0) for (const readerId of readersOf.get(queue.shift()) ?? []) {
13707
+ if (reached.has(readerId)) continue;
13708
+ reached.add(readerId);
13709
+ queue.push(readerId);
13710
+ }
13711
+ const candidateKeys = /* @__PURE__ */ new Map();
13712
+ for (const logicalId of reached) {
13713
+ const change = changes.get(logicalId);
13714
+ if (!change) continue;
13715
+ if (change.changeType !== "NO_CHANGE" && change.changeType !== "UPDATE") continue;
13716
+ for (const [key, value] of Object.entries(change.desiredProperties ?? {})) {
13717
+ if (this.replacementRules.isClassified(change.resourceType, key)) continue;
13718
+ if (!containsIntrinsic(value)) continue;
13719
+ let keys = candidateKeys.get(change.resourceType);
13720
+ if (!keys) {
13721
+ keys = /* @__PURE__ */ new Set();
13722
+ candidateKeys.set(change.resourceType, keys);
13723
+ }
13724
+ keys.add(key);
13725
+ }
13726
+ }
13727
+ const types = candidateKeys.keys();
13728
+ await Promise.all([...types].map(async (type) => {
13729
+ const whole = new Set((await getCreateOnlyPropertyPaths(type)).filter((path) => path.length === 1).map((path) => path[0]));
13730
+ if (![...candidateKeys.get(type)].some((key) => whole.has(key))) {
13731
+ loaded.set(type, {
13732
+ whole,
13733
+ unconfirmable: /* @__PURE__ */ new Set()
13734
+ });
13735
+ return;
13736
+ }
13737
+ const writeOnly = await tryGetTopLevelWriteOnlyProperties(type);
13738
+ if (writeOnly === void 0) {
13739
+ this.logger.debug(safeMsg`Write-only properties of ${type} unknown: no create-only replacement ceiling for its promoted readers but a plain reference to a replaced resource`);
13740
+ loaded.set(type, {
13741
+ whole,
13742
+ unconfirmable: "all"
13743
+ });
13744
+ return;
13745
+ }
13746
+ loaded.set(type, {
13747
+ whole,
13748
+ unconfirmable: new Set([...whole].filter((key) => writeOnly.has(key)))
13749
+ });
13750
+ }));
13751
+ return loaded;
13752
+ }
13753
+ function syntheticRequiresReplacement(resourceType, propKey, syntheticCreateOnlyPaths, plainReference, siblings) {
13754
+ if (this.replacementRules.requiresReplacement(resourceType, propKey, void 0, void 0, siblings)) return true;
13755
+ if (this.replacementRules.isClassified(resourceType, propKey)) return false;
13756
+ const createOnly = syntheticCreateOnlyPaths.get(resourceType);
13757
+ if (createOnly === void 0 || !createOnly.whole.has(propKey)) return false;
13758
+ if (plainReference) return true;
13759
+ return createOnly.unconfirmable !== "all" && !createOnly.unconfirmable.has(propKey);
13760
+ }
13761
+ function promoteReplacementDependents(changes, desiredTemplate, syntheticCreateOnlyPaths, forcedReplacements) {
13762
+ const queue = [];
13763
+ for (const [logicalId, change] of changes) if (forcedReplacements.has(logicalId) || change.changeType === "UPDATE" && change.propertyChanges?.some((pc) => pc.requiresReplacement && pc.noEchoPromoted !== true)) queue.push(logicalId);
13764
+ if (queue.length === 0) return;
13765
+ const dependentsOf = /* @__PURE__ */ new Map();
13766
+ for (const [logicalId, resource] of Object.entries(desiredTemplate.Resources)) {
13767
+ if (resource.Type === "AWS::CDK::Metadata") continue;
13768
+ for (const [propKey, propValue] of Object.entries(resource.Properties ?? {})) for (const referencedId of this.parser.extractReferences(propValue)) {
13769
+ if (referencedId === logicalId) continue;
13770
+ let dependents = dependentsOf.get(referencedId);
13771
+ if (!dependents) {
13772
+ dependents = /* @__PURE__ */ new Map();
13773
+ dependentsOf.set(referencedId, dependents);
13774
+ }
13775
+ let propKeys = dependents.get(logicalId);
13776
+ if (!propKeys) {
13777
+ propKeys = /* @__PURE__ */ new Set();
13778
+ dependents.set(logicalId, propKeys);
13779
+ }
13780
+ propKeys.add(propKey);
13781
+ }
13782
+ }
13783
+ const enqueued = new Set(queue);
13784
+ while (queue.length > 0) {
13785
+ const replacedId = queue.shift();
13786
+ const dependents = dependentsOf.get(replacedId);
13787
+ if (!dependents) continue;
13788
+ for (const [dependentId, refPropKeys] of dependents) {
13789
+ const change = changes.get(dependentId);
13790
+ if (!change) continue;
13791
+ if (change.changeType !== "NO_CHANGE" && change.changeType !== "UPDATE") continue;
13792
+ const existingPaths = new Set((change.propertyChanges ?? []).map((pc) => pc.path));
13793
+ const syntheticChanges = [];
13794
+ for (const propKey of refPropKeys) {
13795
+ if (existingPaths.has(propKey)) {
13796
+ markNewValueKnownAfterDeploy(change, propKey);
13797
+ continue;
13798
+ }
13799
+ const oldValue = change.currentProperties?.[propKey];
13800
+ const newValue = change.desiredProperties?.[propKey];
13801
+ syntheticChanges.push({
13802
+ path: propKey,
13803
+ oldValue,
13804
+ newValue,
13805
+ replacementPropagated: true,
13806
+ requiresReplacement: this.syntheticRequiresReplacement(change.resourceType, propKey, syntheticCreateOnlyPaths, isPlainReferenceTo(desiredTemplate.Resources[dependentId]?.Properties?.[propKey], replacedId, desiredTemplate.Resources[replacedId]?.Type), siblingsOf(change)) || namesRecreatedParent(change.resourceType, propKey, changes.get(replacedId)?.resourceType)
13807
+ });
13808
+ }
13809
+ if (syntheticChanges.length === 0) continue;
13810
+ if (change.changeType === "NO_CHANGE") {
13811
+ change.changeType = "UPDATE";
13812
+ change.propertyChanges = syntheticChanges;
13813
+ this.logger.debug(`UPDATE (promoted): ${dependentId} references replaced resource ${replacedId} via ${[...refPropKeys].join(", ")}`);
13814
+ } else {
13815
+ change.propertyChanges = [...change.propertyChanges ?? [], ...syntheticChanges];
13816
+ this.logger.debug(`UPDATE (augmented): ${dependentId} references replaced resource ${replacedId} via ${[...refPropKeys].join(", ")}`);
13817
+ }
13818
+ if (!enqueued.has(dependentId) && change.propertyChanges.some((pc) => pc.requiresReplacement)) {
13819
+ enqueued.add(dependentId);
13820
+ queue.push(dependentId);
13821
+ }
13822
+ }
13823
+ }
13824
+ }
13825
+
12823
13826
  // src/analyzer/diff-calculator/in-place-promotion.ts
12824
13827
  function promoteInPlaceAttributeDependents(changes, desiredTemplate, rawGetAttRefs, syntheticCreateOnlyPaths, freshParameters) {
12825
13828
  const changedPropsByUpstream = /* @__PURE__ */ new Map();
@@ -13866,6 +14869,114 @@ function assembleFlatObjectAttribute(resourceType, attributeName, attributes) {
13866
14869
  return Object.fromEntries(entries.sort(([a], [b]) => a.localeCompare(b)));
13867
14870
  }
13868
14871
 
14872
+ // src/deployment/intrinsic-resolver/getatt-stale-shape.ts
14873
+ function scalarText(value) {
14874
+ if (typeof value === "number" && Number.isFinite(value)) return String(value);
14875
+ if (typeof value === "string" && value !== "") return value;
14876
+ }
14877
+ function isOffOrAbsent(value) {
14878
+ return value === void 0 || value === false || value === "false";
14879
+ }
14880
+ function isClusterMember(properties) {
14881
+ return scalarText(properties["DBClusterIdentifier"]) !== void 0;
14882
+ }
14883
+ function differs(property, attribute, caseInsensitive = false) {
14884
+ const want = scalarText(property);
14885
+ const have = scalarText(attribute);
14886
+ if (want === void 0 || have === void 0) return false;
14887
+ return caseInsensitive ? want.toLowerCase() !== have.toLowerCase() : want !== have;
14888
+ }
14889
+ const STALE_SHAPE_TYPES = { "AWS::RDS::DBInstance": {
14890
+ propertyInputs: [
14891
+ "Port",
14892
+ "CACertificateIdentifier",
14893
+ "MultiAZ",
14894
+ "DBClusterIdentifier"
14895
+ ],
14896
+ attributeInputs: [
14897
+ "Endpoint.Port",
14898
+ "CertificateDetails.CAIdentifier",
14899
+ "SecondaryAvailabilityZone"
14900
+ ],
14901
+ checks: [
14902
+ {
14903
+ holds: (p, a) => !isClusterMember(p) && differs(p["Port"], a["Endpoint.Port"]),
14904
+ attributes: [
14905
+ "Endpoint.Port",
14906
+ "Endpoint",
14907
+ "ListenerEndpoint.Port",
14908
+ "ListenerEndpoint"
14909
+ ]
14910
+ },
14911
+ {
14912
+ holds: (p, a) => differs(p["CACertificateIdentifier"], a["CertificateDetails.CAIdentifier"], true),
14913
+ attributes: [
14914
+ "CertificateDetails.CAIdentifier",
14915
+ "CertificateDetails.ValidTill",
14916
+ "CertificateDetails"
14917
+ ]
14918
+ },
14919
+ {
14920
+ holds: (p, a) => !isClusterMember(p) && isOffOrAbsent(p["MultiAZ"]) && scalarText(a["SecondaryAvailabilityZone"]) !== void 0,
14921
+ attributes: ["SecondaryAvailabilityZone"],
14922
+ absenceIsStale: true
14923
+ }
14924
+ ]
14925
+ } };
14926
+ const MASK$1 = "***";
14927
+ const DYNAMIC_REFERENCE = "{{resolve:";
14928
+ function bagOf(value) {
14929
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? value : {};
14930
+ }
14931
+ function inputsOf(shape, properties, attributes) {
14932
+ const values = [...shape.propertyInputs.map((key) => Object.hasOwn(properties, key) ? properties[key] : void 0), ...shape.attributeInputs.map((key) => Object.hasOwn(attributes, key) ? attributes[key] : void 0)];
14933
+ return values.every((value) => value === void 0 || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value) || typeof value === "string" && !value.includes(MASK$1) && !value.includes(DYNAMIC_REFERENCE)) ? values : void 0;
14934
+ }
14935
+ function staleShapeAttributeNames(record) {
14936
+ return namesOf(record, () => true);
14937
+ }
14938
+ function namesOf(record, keep) {
14939
+ const resourceType = record.resourceType;
14940
+ if (typeof resourceType !== "string" || !Object.hasOwn(STALE_SHAPE_TYPES, resourceType)) return /* @__PURE__ */ new Set();
14941
+ const shape = STALE_SHAPE_TYPES[resourceType];
14942
+ const properties = bagOf(record.properties);
14943
+ const attributes = bagOf(record.attributes);
14944
+ if (inputsOf(shape, properties, attributes) === void 0) return /* @__PURE__ */ new Set();
14945
+ const names = /* @__PURE__ */ new Set();
14946
+ for (const check of shape.checks) if (keep(check) && check.holds(properties, attributes)) for (const name of check.attributes) names.add(name);
14947
+ return names;
14948
+ }
14949
+ function staleShapeInputs(record) {
14950
+ const resourceType = record.resourceType;
14951
+ if (typeof resourceType !== "string" || !Object.hasOwn(STALE_SHAPE_TYPES, resourceType)) return;
14952
+ return inputsOf(STALE_SHAPE_TYPES[resourceType], bagOf(record.properties), bagOf(record.attributes));
14953
+ }
14954
+ function staleShapeFingerprint(record) {
14955
+ const inputs = staleShapeInputs(record);
14956
+ if (inputs === void 0) return void 0;
14957
+ return createHash("sha256").update(JSON.stringify([record.resourceType, inputs.map((v) => v === void 0 ? null : v)])).digest("hex");
14958
+ }
14959
+ function withoutLapsedStaleShapeStamp(record) {
14960
+ if (record.attributesReadAfterApply === void 0 || isStaleShapeStamped(record)) return record;
14961
+ const { attributesReadAfterApply: _lapsed, ...rest } = record;
14962
+ return rest;
14963
+ }
14964
+ function isStaleShapeStamped(record) {
14965
+ const stamp = record.attributesReadAfterApply;
14966
+ return typeof stamp === "string" && stamp === staleShapeFingerprint(record);
14967
+ }
14968
+ function needsStaleShapeRead(record, attributeName) {
14969
+ return staleShapeAttributeNames(record).has(attributeName) && !isStaleShapeStamped(record);
14970
+ }
14971
+ function staleShapeReplaceableKeys(record) {
14972
+ if (isStaleShapeStamped(record)) return /* @__PURE__ */ new Set();
14973
+ const attributes = bagOf(record.attributes);
14974
+ return new Set([...staleShapeAttributeNames(record)].filter((key) => Object.hasOwn(attributes, key)));
14975
+ }
14976
+ function staleShapeAbsenceIsStale(record, attributeName) {
14977
+ return !isStaleShapeStamped(record) && namesOf(record, (check) => check.absenceIsStale === true).has(attributeName);
14978
+ }
14979
+
13869
14980
  // src/deployment/intrinsic-resolver/getatt-heal.ts
13870
14981
  function staleRecordRemedy(resolver, outcome, context) {
13871
14982
  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"))}`;
@@ -14001,6 +15112,21 @@ function isMaskedOwnIdCopy(record, key, recorded, healed, producerSecrets) {
14001
15112
  secrets: producerSecrets
14002
15113
  })) === healed;
14003
15114
  }
15115
+ function healStaleShapeAttribute(resolver, logicalId, resource, attributeName, context) {
15116
+ if (context.attributeHealer === void 0 || !needsStaleShapeRead(resource, attributeName)) return;
15117
+ return (async () => {
15118
+ const outcome = await healStaleAttributes(resolver, logicalId, resource, context);
15119
+ if (outcome?.kind !== "read") return void 0;
15120
+ const healed = usableHealedAttribute(resolver, outcome, attributeName, resource.resourceType);
15121
+ if (healed !== void 0) return {
15122
+ kind: "served",
15123
+ value: serveHealedAttribute(resolver, logicalId, attributeName, healed, context)
15124
+ };
15125
+ if (!staleShapeAbsenceIsStale(resource, attributeName)) return void 0;
15126
+ if (outcome.pendingKeys?.includes(attributeName) === true) return void 0;
15127
+ return readHealedAttribute(outcome.attributes, attributeName) !== void 0 || Object.keys(outcome.attributes).some((key) => key.startsWith(`${attributeName}.`)) || healWithheld(resolver, outcome, attributeName) || (outcome.withheldKeys ?? []).some((key) => key.startsWith(`${attributeName}.`)) ? void 0 : { kind: "absent" };
15128
+ })();
15129
+ }
14004
15130
  function healMaskedOwnIdAttribute(resolver, logicalId, resource, attributeName, stored, context) {
14005
15131
  if (stored !== "***" || context.attributeHealer === void 0) return void 0;
14006
15132
  return (async () => {
@@ -17546,7 +18672,10 @@ async function resolveGetAtt(resolver, getAtt, context) {
17546
18672
  refuseUnexposedRecordedIdentity(resolver, resource.resourceType, logicalId, attributeName, context);
17547
18673
  if (!isAlwaysLiveAttribute(resource.resourceType, attributeName) && resource.attributes !== void 0) {
17548
18674
  const storedValue = Object.hasOwn(resource.attributes, attributeName) ? resource.attributes[attributeName] : assembleFlatObjectAttribute(resource.resourceType, attributeName, resource.attributes);
17549
- const flatValue = isImpossibleEmptyStoredAttribute(resource.resourceType, attributeName, storedValue) ? void 0 : storedValue;
18675
+ const staleShapeRead = storedValue === void 0 ? void 0 : healStaleShapeAttribute(resolver, logicalId, resource, attributeName, context);
18676
+ const staleShape = staleShapeRead === void 0 ? void 0 : await staleShapeRead;
18677
+ if (staleShape?.kind === "served") return staleShape.value;
18678
+ const flatValue = staleShape?.kind === "absent" || isImpossibleEmptyStoredAttribute(resource.resourceType, attributeName, storedValue) ? void 0 : storedValue;
17550
18679
  if (flatValue !== void 0) {
17551
18680
  if (isStalePlaceholderArnAttribute(resource.resourceType, attributeName, flatValue)) {
17552
18681
  const outcome = await healStaleAttributes(resolver, logicalId, resource, context);
@@ -18429,6 +19558,180 @@ var IntrinsicFunctionResolver = class IntrinsicFunctionResolver {
18429
19558
  }
18430
19559
  };
18431
19560
 
19561
+ // src/analyzer/diff-calculator/compare.ts
19562
+ async function resolveBestEffort(properties, resolveFn) {
19563
+ const resolved = {};
19564
+ for (const [key, value] of Object.entries(properties)) try {
19565
+ const resolvedValue = await resolveFn(structuredClone(value));
19566
+ if (resolvedValue === AWS_NO_VALUE) continue;
19567
+ resolved[key] = resolvedValue;
19568
+ } catch {
19569
+ resolved[key] = value;
19570
+ }
19571
+ return resolved;
19572
+ }
19573
+ function compareAttributes(currentResource, desiredResource) {
19574
+ const changes = [];
19575
+ if (currentResource.deletionPolicy !== desiredResource.DeletionPolicy) changes.push({
19576
+ attribute: "DeletionPolicy",
19577
+ oldValue: currentResource.deletionPolicy,
19578
+ newValue: desiredResource.DeletionPolicy
19579
+ });
19580
+ if (currentResource.updateReplacePolicy !== desiredResource.UpdateReplacePolicy) changes.push({
19581
+ attribute: "UpdateReplacePolicy",
19582
+ oldValue: currentResource.updateReplacePolicy,
19583
+ newValue: desiredResource.UpdateReplacePolicy
19584
+ });
19585
+ return changes;
19586
+ }
19587
+ async function compareProperties(resourceType, currentProperties, desiredProperties, maskForLog) {
19588
+ const changes = [];
19589
+ const allKeys = /* @__PURE__ */ new Set([...Object.keys(currentProperties), ...Object.keys(desiredProperties)]);
19590
+ let createOnlyPaths;
19591
+ for (const key of allKeys) {
19592
+ const oldValue = currentProperties[key];
19593
+ const newValue = desiredProperties[key];
19594
+ if (!this.valuesEqual(oldValue, newValue)) {
19595
+ let requiresReplacement = this.replacementRules.requiresReplacement(resourceType, key, oldValue, newValue, {
19596
+ oldProperties: currentProperties,
19597
+ newProperties: desiredProperties
19598
+ });
19599
+ if (!requiresReplacement && !this.replacementRules.isClassified(resourceType, key)) {
19600
+ if (createOnlyPaths === void 0) createOnlyPaths = await getCreateOnlyPropertyPaths(resourceType);
19601
+ if (createOnlyChangeRequiresReplacement(createOnlyPaths, key, oldValue, newValue, (a, b) => this.valuesEqual(a, b))) {
19602
+ requiresReplacement = true;
19603
+ this.logger.debug(`Property ${key} of ${resourceType} changed a createOnly path per the CFn schema — requires replacement`);
19604
+ }
19605
+ }
19606
+ changes.push({
19607
+ path: key,
19608
+ oldValue,
19609
+ newValue,
19610
+ requiresReplacement
19611
+ });
19612
+ if (requiresReplacement) {
19613
+ const mask = maskerOrIdentity(maskForLog);
19614
+ const [oldText, newText] = replacementSidesForLog(oldValue, newValue, mask);
19615
+ this.logger.debug(mask(safeMsg`Property ${mask(key)} of ${mask(resourceType)} requires replacement (from ${oldText} to ${newText})`));
19616
+ }
19617
+ }
19618
+ }
19619
+ return changes;
19620
+ }
19621
+ async function maskedEditRequiresReplacement(resourceType, key, oldValue, newValue, siblings) {
19622
+ if (this.replacementRules.requiresReplacement(resourceType, key, oldValue, newValue, siblings)) return true;
19623
+ if (this.replacementRules.isClassified(resourceType, key) && this.replacementRules.conditionalReplacementVerdict(resourceType, key, oldValue, newValue, siblings) === void 0) return false;
19624
+ return (await getCreateOnlyPropertyPaths(resourceType)).some((path) => path.length === 1 && path[0] === key);
19625
+ }
19626
+ function isIntrinsic$2(value) {
19627
+ if (value === null || value === void 0 || typeof value !== "object" || Array.isArray(value)) return false;
19628
+ const keys = Object.keys(value);
19629
+ return keys.length === 1 && DiffCalculator.INTRINSIC_KEYS.has(keys[0]);
19630
+ }
19631
+ function valuesEqual(a, b) {
19632
+ if (a === b) return true;
19633
+ if (a == null || b == null) return a === b;
19634
+ if (DiffCalculator.isIntrinsic(a) !== DiffCalculator.isIntrinsic(b)) return false;
19635
+ if (Array.isArray(a) && Array.isArray(b)) {
19636
+ if (a.length !== b.length) return false;
19637
+ return a.every((val, index) => this.valuesEqual(val, b[index]));
19638
+ }
19639
+ if (typeof a === "object" && typeof b === "object") {
19640
+ const aObj = a;
19641
+ const bObj = b;
19642
+ const aKeys = Object.keys(aObj);
19643
+ const bKeys = Object.keys(bObj);
19644
+ if (aKeys.length !== bKeys.length) return false;
19645
+ for (const key of bKeys) {
19646
+ if (!Object.hasOwn(aObj, key)) return false;
19647
+ if (!this.valuesEqual(aObj[key], bObj[key])) return false;
19648
+ }
19649
+ return true;
19650
+ }
19651
+ return false;
19652
+ }
19653
+
19654
+ // src/analyzer/diff-calculator.ts
19655
+ var DiffCalculator = class {
19656
+ logger = getLogger().child("DiffCalculator");
19657
+ replacementRules = new ReplacementRulesRegistry();
19658
+ parser = new TemplateParser();
19659
+ conditionalReplacementVerdict(resourceType, propertyPath, oldValue, newValue, siblings) {
19660
+ return this.replacementRules.conditionalReplacementVerdict(resourceType, propertyPath, oldValue, newValue, siblings);
19661
+ }
19662
+ calculateDiff(currentState, desiredTemplate, resolveFn, canonicalizeProperties, allowedUnsupportedProperties, freshParameters, maskForLog, recreateTargets, maskedInputs, refusalRecovery, noEchoCompare, readProvenance, forcedNestedChildRuns, updatePolicy) {
19663
+ return calculateDiff.call(this, currentState, desiredTemplate, resolveFn, canonicalizeProperties, allowedUnsupportedProperties, freshParameters, maskForLog, recreateTargets, maskedInputs, refusalRecovery, noEchoCompare, readProvenance, forcedNestedChildRuns, updatePolicy);
19664
+ }
19665
+ promoteReadProvenanceDependents(changes, currentState, desiredTemplate, sources) {
19666
+ return promoteReadProvenanceDependents.call(this, changes, currentState, desiredTemplate, sources);
19667
+ }
19668
+ loadSyntheticCreateOnlyPaths(changes, desiredTemplate, rawGetAttRefs, freshParameters, forcedReplacements) {
19669
+ return loadSyntheticCreateOnlyPaths.call(this, changes, desiredTemplate, rawGetAttRefs, freshParameters, forcedReplacements);
19670
+ }
19671
+ syntheticRequiresReplacement(resourceType, propKey, syntheticCreateOnlyPaths, plainReference, siblings) {
19672
+ return syntheticRequiresReplacement.call(this, resourceType, propKey, syntheticCreateOnlyPaths, plainReference, siblings);
19673
+ }
19674
+ promoteReplacementDependents(changes, desiredTemplate, syntheticCreateOnlyPaths, forcedReplacements) {
19675
+ return promoteReplacementDependents.call(this, changes, desiredTemplate, syntheticCreateOnlyPaths, forcedReplacements);
19676
+ }
19677
+ promoteInPlaceAttributeDependents(changes, desiredTemplate, rawGetAttRefs, syntheticCreateOnlyPaths, freshParameters) {
19678
+ return promoteInPlaceAttributeDependents.call(this, changes, desiredTemplate, rawGetAttRefs, syntheticCreateOnlyPaths, freshParameters);
19679
+ }
19680
+ static extractGetAttRefs(value) {
19681
+ return extractGetAttRefs(value);
19682
+ }
19683
+ resolveBestEffort(properties, resolveFn) {
19684
+ return resolveBestEffort.call(this, properties, resolveFn);
19685
+ }
19686
+ compareAttributes(currentResource, desiredResource) {
19687
+ return compareAttributes.call(this, currentResource, desiredResource);
19688
+ }
19689
+ compareProperties(resourceType, currentProperties, desiredProperties, maskForLog) {
19690
+ return compareProperties.call(this, resourceType, currentProperties, desiredProperties, maskForLog);
19691
+ }
19692
+ maskedEditRequiresReplacement(resourceType, key, oldValue, newValue, siblings) {
19693
+ return maskedEditRequiresReplacement.call(this, resourceType, key, oldValue, newValue, siblings);
19694
+ }
19695
+ static INTRINSIC_KEYS = INTRINSIC_KEYS;
19696
+ static isIntrinsic(value) {
19697
+ return isIntrinsic$2(value);
19698
+ }
19699
+ valuesEqual(a, b) {
19700
+ return valuesEqual.call(this, a, b);
19701
+ }
19702
+ getSummary(changes) {
19703
+ const summary = {
19704
+ create: 0,
19705
+ update: 0,
19706
+ delete: 0,
19707
+ noChange: 0,
19708
+ total: changes.size
19709
+ };
19710
+ for (const change of changes.values()) switch (change.changeType) {
19711
+ case "CREATE":
19712
+ summary.create++;
19713
+ break;
19714
+ case "UPDATE":
19715
+ summary.update++;
19716
+ break;
19717
+ case "DELETE":
19718
+ summary.delete++;
19719
+ break;
19720
+ case "NO_CHANGE": summary.noChange++;
19721
+ }
19722
+ return summary;
19723
+ }
19724
+ filterByType(changes, type) {
19725
+ return Array.from(changes.values()).filter((change) => change.changeType === type);
19726
+ }
19727
+ hasChanges(changes) {
19728
+ return Array.from(changes.values()).some((change) => change.changeType !== "NO_CHANGE");
19729
+ }
19730
+ getReplacementChanges(changes) {
19731
+ return Array.from(changes.values()).filter((change) => change.changeType === "UPDATE" && change.propertyChanges?.some((pc) => pc.requiresReplacement));
19732
+ }
19733
+ };
19734
+
18432
19735
  // src/provisioning/json-patch-generator.ts
18433
19736
  var JsonPatchGenerator = class {
18434
19737
  logger = getLogger().child("JsonPatchGenerator");
@@ -21147,7 +22450,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
21147
22450
  const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
21148
22451
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
21149
22452
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
21150
- const { ASGProvider } = await import("./asg-provider-BkR7gv40.js");
22453
+ const { ASGProvider } = await import("./asg-provider-D6gQPSZu.js");
21151
22454
  const delegateRegion = ambientRegion();
21152
22455
  let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
21153
22456
  if (asgProvider === void 0) {
@@ -21158,7 +22461,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
21158
22461
  }
21159
22462
  if (context?.removeProtection === true && resourceType === "AWS::EMR::Cluster") {
21160
22463
  this.logger.debug(safeMsg`Delegating protected EMR cluster ${logicalId} delete to the SDK EMRClusterProvider (Cloud Control cannot lift termination protection)`);
21161
- const { EMRClusterProvider } = await import("./emr-cluster-provider-Cz2_BHvv.js");
22464
+ const { EMRClusterProvider } = await import("./emr-cluster-provider-BCu1qq9J.js");
21162
22465
  return withIndeterminateGuard(await new EMRClusterProvider().delete(logicalId, physicalId, resourceType, properties, context), indeterminateGuard);
21163
22466
  }
21164
22467
  await assertRecordedIdentityBeforeCcDelete.call(this, logicalId, resourceType, physicalId, context);
@@ -21307,7 +22610,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
21307
22610
  const family = SDK_DELETE_FAMILIES.get(resourceType);
21308
22611
  const cached = this.sdkDeleteDelegates.get(family);
21309
22612
  if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
21310
- const provider = family === "rds" ? new (await (import("./rds-provider-BV4XW4wv.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-CkbTF9aG.js"))).NeptuneProvider({ region: ccRegion });
22613
+ const provider = family === "rds" ? new (await (import("./rds-provider--XBD_TS8.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-CL5WtULJ.js"))).NeptuneProvider({ region: ccRegion });
21311
22614
  this.sdkDeleteDelegates.set(family, {
21312
22615
  region: ccRegion,
21313
22616
  provider
@@ -23886,7 +25189,7 @@ async function publishToSns(topicArn, request) {
23886
25189
  }
23887
25190
  async function invokeLambda(serviceToken, request) {
23888
25191
  if (localCustomResourceRuntimeActive()) {
23889
- const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-DyUvtovF.js");
25192
+ const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-BiP0vn3W.js");
23890
25193
  const local = await invokeCustomResourceFunctionLocally({
23891
25194
  lambda: this.lambdaClient,
23892
25195
  s3: this.s3Client
@@ -28232,6 +29535,7 @@ var ReplacementRunState = class {
28232
29535
  replacedOldMaySurvive = /* @__PURE__ */ new Map();
28233
29536
  replacedOldIdentity = /* @__PURE__ */ new Map();
28234
29537
  recreatedUnderSameId = /* @__PURE__ */ new Set();
29538
+ fallbackReplacedElsewhere = /* @__PURE__ */ new Set();
28235
29539
  restoredLostChildren = /* @__PURE__ */ new Set();
28236
29540
  updatesThatSentNothing = /* @__PURE__ */ new Set();
28237
29541
  updateWasReplaced = /* @__PURE__ */ new Map();
@@ -28622,7 +29926,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
28622
29926
  if (resourceType !== "AWS::RDS::DBInstance") return false;
28623
29927
  if (region === void 0 || region === "") return false;
28624
29928
  const mask = input.mask ?? ((text) => text);
28625
- const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-B08_DZNH.js").then((n) => n.l);
29929
+ const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-apcXpKN9.js").then((n) => n.l);
28626
29930
  let reason;
28627
29931
  try {
28628
29932
  const live = await describeDBInstanceInRegion(physicalId, region);
@@ -28686,93 +29990,6 @@ function maskedRecordRemedyFor(reads, resources, causeScoped = false) {
28686
29990
  return [parts.join(" "), ...commandLines].join("\n");
28687
29991
  }
28688
29992
 
28689
- // src/deployment/deploy-value-equality.ts
28690
- function isReplacementCeiling(pc) {
28691
- return pc.requiresReplacement && (pc.inPlacePropagated === true || pc.replacementPropagated === true);
28692
- }
28693
- function keyOrderFreeJson(value) {
28694
- return JSON.stringify(value, (_key, node) => {
28695
- if (node === null || typeof node !== "object" || Array.isArray(node)) return node;
28696
- const sorted = Object.create(null);
28697
- for (const key of Object.keys(node).sort()) sorted[key] = node[key];
28698
- return sorted;
28699
- });
28700
- }
28701
- const IAM_ACTION = /^[a-z0-9-]{1,64}:[A-Za-z0-9*]{1,128}$/;
28702
- const ACTION_IN_MESSAGE = [/\bperform:\s*([a-z0-9-]{1,64}:[A-Za-z0-9*]{1,128})(?=\s|$|[.,;])/, /\ballows the ([a-z0-9-]{1,64}:[A-Za-z0-9*]{1,128}) action\b/];
28703
- const DENIAL_CLASSES = /* @__PURE__ */ new Set([
28704
- "AccessDenied",
28705
- "AccessDeniedException",
28706
- "AuthorizationError",
28707
- "UnauthorizedOperation"
28708
- ]);
28709
- function readDenialOf(error) {
28710
- try {
28711
- const name = error?.name;
28712
- if (typeof name !== "string" || !DENIAL_CLASSES.has(name)) return void 0;
28713
- const message = error.message;
28714
- let action;
28715
- if (typeof message === "string") for (const pattern of ACTION_IN_MESSAGE) {
28716
- const found = pattern.exec(message)?.[1];
28717
- if (found !== void 0 && IAM_ACTION.test(found)) {
28718
- action = found;
28719
- break;
28720
- }
28721
- }
28722
- return {
28723
- ...action !== void 0 && { action },
28724
- errorClass: name
28725
- };
28726
- } catch {
28727
- return;
28728
- }
28729
- }
28730
- function grantSentence(denied) {
28731
- const what = denied.action !== void 0 ? `the ${denied.action} permission` : `the read permission the provider's readback of this resource type needs`;
28732
- return `AWS denied the read${denied.errorClass !== void 0 ? ` (${denied.errorClass})` : ""}, and re-running would be denied the same way: grant ${what} to the credentials cdkd runs with, then re-run`;
28733
- }
28734
- function liveHoldsFreshLeaves(live, leaves) {
28735
- for (const leaf of leaves) {
28736
- let node = live;
28737
- for (const segment of leaf.path) {
28738
- if (typeof segment === "number") {
28739
- if (!Array.isArray(node) || segment >= node.length) return false;
28740
- node = node[segment];
28741
- continue;
28742
- }
28743
- if (node === null || typeof node !== "object" || Array.isArray(node)) return false;
28744
- if (!Object.prototype.hasOwnProperty.call(node, segment)) return false;
28745
- node = node[segment];
28746
- }
28747
- if (typeof leaf.plaintext === "string") {
28748
- if (typeof node !== "string" || node !== leaf.plaintext) return false;
28749
- } else if (node === void 0 || keyOrderFreeJson(node) !== keyOrderFreeJson(leaf.plaintext)) return false;
28750
- }
28751
- return true;
28752
- }
28753
- function outputMapsEqual(a, b) {
28754
- return deepEqualValue(a, b);
28755
- }
28756
- function deepEqualValue(a, b) {
28757
- if (a === b) return true;
28758
- if (a == null || b == null) return a === b;
28759
- if (typeof a !== typeof b) return false;
28760
- if (typeof a !== "object") return false;
28761
- if (Array.isArray(a) || Array.isArray(b)) {
28762
- if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;
28763
- return a.every((v, i) => deepEqualValue(v, b[i]));
28764
- }
28765
- const ao = a;
28766
- const bo = b;
28767
- const ak = Object.keys(ao);
28768
- if (ak.length !== Object.keys(bo).length) return false;
28769
- for (const k of ak) {
28770
- if (!Object.prototype.hasOwnProperty.call(bo, k)) return false;
28771
- if (!deepEqualValue(ao[k], bo[k])) return false;
28772
- }
28773
- return true;
28774
- }
28775
-
28776
29993
  // src/types/deployment-events.ts
28777
29994
  function extractDeploymentEventError(err) {
28778
29995
  if (!(err instanceof Error)) return {
@@ -29473,10 +30690,12 @@ async function readRecordAttributes(input) {
29473
30690
  const reported = Object.entries(normalizeHealedAttributes(found.attributes));
29474
30691
  const attributes = Object.fromEntries(reported.filter(([, value]) => !carriesSecretMask(value)));
29475
30692
  const withheldKeys = reported.filter(([, value]) => carriesSecretMask(value)).map(([key]) => key);
30693
+ const pendingKeys = Array.isArray(found.pendingAttributeKeys) ? found.pendingAttributeKeys.filter((key) => typeof key === "string") : [];
29476
30694
  return {
29477
30695
  kind: "read",
29478
30696
  attributes,
29479
- ...withheldKeys.length > 0 && { withheldKeys }
30697
+ ...withheldKeys.length > 0 && { withheldKeys },
30698
+ ...pendingKeys.length > 0 && { pendingKeys }
29480
30699
  };
29481
30700
  }
29482
30701
  function createReadOnlyAttributeHealerFactory(options) {
@@ -30615,9 +31834,130 @@ function noteRolledBackCreate(scope, op, record) {
30615
31834
  scope.onRolledBackCreate?.(create);
30616
31835
  }
30617
31836
 
31837
+ // src/utils/ip-protocol.ts
31838
+ const PROTOCOL_NUMBER_TO_NAME = /* @__PURE__ */ new Map([
31839
+ ["1", "icmp"],
31840
+ ["6", "tcp"],
31841
+ ["17", "udp"],
31842
+ ["58", "icmpv6"]
31843
+ ]);
31844
+ const CANONICAL_PROTOCOL_NAMES = new Set(PROTOCOL_NUMBER_TO_NAME.values());
31845
+ function canonicalizeIpProtocolValue(value) {
31846
+ let text;
31847
+ if (typeof value === "string") text = value;
31848
+ else if (typeof value === "number") text = String(value);
31849
+ else return value;
31850
+ const renamed = PROTOCOL_NUMBER_TO_NAME.get(text);
31851
+ if (renamed !== void 0) return renamed;
31852
+ const lowered = text.toLowerCase();
31853
+ if (CANONICAL_PROTOCOL_NAMES.has(lowered)) return lowered;
31854
+ return text;
31855
+ }
31856
+
31857
+ // src/utils/ipv4-cidr.ts
31858
+ function canonicalizeIpv4Cidr(value) {
31859
+ const match = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\/(\d{1,2})$/.exec(value);
31860
+ if (!match) return void 0;
31861
+ const octets = [
31862
+ match[1],
31863
+ match[2],
31864
+ match[3],
31865
+ match[4]
31866
+ ].map(Number);
31867
+ const prefixLength = Number(match[5]);
31868
+ if (prefixLength > 32 || octets.some((octet) => octet > 255)) return void 0;
31869
+ const network = ((octets[0] << 24 | octets[1] << 16 | octets[2] << 8 | octets[3]) >>> 0 & (prefixLength === 0 ? 0 : 4294967295 << 32 - prefixLength >>> 0)) >>> 0;
31870
+ return `${[
31871
+ network >>> 24,
31872
+ network >>> 16 & 255,
31873
+ network >>> 8 & 255,
31874
+ network & 255
31875
+ ].join(".")}/${prefixLength}`;
31876
+ }
31877
+
31878
+ // src/utils/ipv6-cidr.ts
31879
+ function canonicalizeIpv6Cidr(value) {
31880
+ const match = /^([0-9a-fA-F:.]{2,45})\/(\d{1,3})$/.exec(value);
31881
+ if (!match || !isIPv6(match[1])) return void 0;
31882
+ const prefix = Number(match[2]);
31883
+ if (prefix > 128) return void 0;
31884
+ try {
31885
+ const [left, right] = new URL(`http://[${match[1]}]/`).hostname.slice(1, -1).split("::");
31886
+ const before = left ? left.split(":") : [];
31887
+ const after = right ? right.split(":") : [];
31888
+ const pieces = right === void 0 ? before : [
31889
+ ...before,
31890
+ ...new Array(8 - before.length - after.length).fill("0"),
31891
+ ...after
31892
+ ];
31893
+ const hostBits = BigInt(128 - prefix);
31894
+ const hex = (BigInt(`0x${pieces.map((piece) => piece.padStart(4, "0")).join("")}`) >> hostBits << hostBits).toString(16).padStart(32, "0");
31895
+ const expanded = Array.from({ length: 8 }, (_, index) => hex.slice(index * 4, index * 4 + 4)).join(":");
31896
+ return `${new URL(`http://[${expanded}]/`).hostname.slice(1, -1)}/${prefix}`;
31897
+ } catch {
31898
+ return;
31899
+ }
31900
+ }
31901
+
31902
+ // src/provisioning/sg-rule-identity.ts
31903
+ function sgProtocolKey(value) {
31904
+ return canonicalizeIpProtocolValue(value ?? "-1");
31905
+ }
31906
+ function sgCidrKey(value) {
31907
+ if (typeof value !== "string") return value;
31908
+ const ipv4 = /^(0|[1-9]\d{0,2})(\.(0|[1-9]\d{0,2})){3}\/(0|[1-9]\d?)$/.test(value) ? canonicalizeIpv4Cidr(value) : void 0;
31909
+ if (ipv4 !== void 0) return ipv4;
31910
+ const slash = value.lastIndexOf("/");
31911
+ if (value.includes(":") && /^(0|[1-9]\d{0,2})$/.test(value.slice(slash + 1))) return canonicalizeIpv6Cidr(value) ?? value;
31912
+ return value;
31913
+ }
31914
+ function cfnIngressPortValue(value) {
31915
+ if (value === void 0 || value === null) return -1;
31916
+ if (typeof value === "number") return Number.isFinite(value) ? value : NaN;
31917
+ if (typeof value === "string") {
31918
+ const trimmed = value.trim();
31919
+ if (trimmed === "") return -1;
31920
+ const parsed = Number(trimmed);
31921
+ return Number.isFinite(parsed) ? parsed : NaN;
31922
+ }
31923
+ return NaN;
31924
+ }
31925
+ const SG_RULE_ID_PATTERN = /^sgr-[0-9a-f]+$/;
31926
+ function recordedSgRuleId(attributes) {
31927
+ const recorded = attributes?.["Id"];
31928
+ return typeof recorded === "string" && SG_RULE_ID_PATTERN.test(recorded) ? recorded : void 0;
31929
+ }
31930
+ const INGRESS_SOURCE_KEYS = [
31931
+ "CidrIp",
31932
+ "CidrIpv6",
31933
+ "SourcePrefixListId",
31934
+ "SourceSecurityGroupId"
31935
+ ];
31936
+ function ingressRuleSourceKey(properties) {
31937
+ if (properties === void 0 || properties["SourceSecurityGroupName"] !== void 0) return;
31938
+ const present = INGRESS_SOURCE_KEYS.filter((key) => properties[key] !== void 0);
31939
+ if (present.length !== 1) return void 0;
31940
+ const key = present[0];
31941
+ const value = properties[key];
31942
+ if (typeof value !== "string" || value === "") return void 0;
31943
+ const keyed = key === "CidrIp" || key === "CidrIpv6" ? sgCidrKey(value) : value;
31944
+ return typeof keyed === "string" ? `${key}=${keyed}` : void 0;
31945
+ }
31946
+
30618
31947
  // src/deployment/type-change-guard.ts
31948
+ const EQUAL_ID_HOOK_TYPES = /* @__PURE__ */ new Set([
31949
+ "AWS::Glue::Table",
31950
+ "AWS::Lambda::Permission",
31951
+ "AWS::EC2::SecurityGroupIngress",
31952
+ "AWS::ApiGateway::Stage",
31953
+ "AWS::ApiGatewayV2::Stage"
31954
+ ]);
30619
31955
  function equalIdNamesDifferentResources(input) {
31956
+ if (!EQUAL_ID_HOOK_TYPES.has(input.resourceType)) return false;
30620
31957
  if (input.resourceType === "AWS::Lambda::Permission") return permissionsOnDifferentFunctions(input.oldProperties, input.newProperties);
31958
+ if (input.resourceType === "AWS::EC2::SecurityGroupIngress") return ingressRulesFromDifferentSources(input.oldProperties, input.newProperties);
31959
+ const parentKey = STAGE_PARENT_KEYS[input.resourceType];
31960
+ if (parentKey !== void 0) return stagesOnDifferentApis(input.oldProperties, input.newProperties, parentKey);
30621
31961
  if (input.resourceType !== "AWS::Glue::Table" || input.physicalId === void 0) return false;
30622
31962
  const oldDb = input.oldProperties?.["DatabaseName"];
30623
31963
  const newDb = input.newProperties?.["DatabaseName"];
@@ -30635,6 +31975,22 @@ function permissionsOnDifferentFunctions(oldProperties, newProperties) {
30635
31975
  const newName = parseLambdaFunctionAddress(newFn)?.name;
30636
31976
  return oldName !== void 0 && newName !== void 0 && oldName !== newName;
30637
31977
  }
31978
+ function ingressRulesFromDifferentSources(oldProperties, newProperties) {
31979
+ const oldSource = ingressRuleSourceKey(oldProperties);
31980
+ const newSource = ingressRuleSourceKey(newProperties);
31981
+ if (!isUsableIdentityValue(oldSource) || !isUsableIdentityValue(newSource)) return false;
31982
+ return oldSource !== newSource;
31983
+ }
31984
+ const STAGE_PARENT_KEYS = {
31985
+ "AWS::ApiGateway::Stage": "RestApiId",
31986
+ "AWS::ApiGatewayV2::Stage": "ApiId"
31987
+ };
31988
+ function stagesOnDifferentApis(oldProperties, newProperties, parentKey) {
31989
+ const oldApi = oldProperties?.[parentKey];
31990
+ const newApi = newProperties?.[parentKey];
31991
+ if (!isUsableIdentityValue(oldApi) || !isUsableIdentityValue(newApi)) return false;
31992
+ return oldApi !== newApi;
31993
+ }
30638
31994
  function equalIdNamesSameResource(input) {
30639
31995
  if (input.oldType === input.newType) return !equalIdNamesDifferentResources({
30640
31996
  resourceType: input.oldType,
@@ -37000,100 +38356,6 @@ async function buildSgRuleCaptureSiblings(deps, capturedLogicalId, capturedPhysi
37000
38356
  return Object.keys(siblings).length > 0 ? { siblings } : void 0;
37001
38357
  }
37002
38358
 
37003
- // src/utils/ip-protocol.ts
37004
- const PROTOCOL_NUMBER_TO_NAME = /* @__PURE__ */ new Map([
37005
- ["1", "icmp"],
37006
- ["6", "tcp"],
37007
- ["17", "udp"],
37008
- ["58", "icmpv6"]
37009
- ]);
37010
- const CANONICAL_PROTOCOL_NAMES = new Set(PROTOCOL_NUMBER_TO_NAME.values());
37011
- function canonicalizeIpProtocolValue(value) {
37012
- let text;
37013
- if (typeof value === "string") text = value;
37014
- else if (typeof value === "number") text = String(value);
37015
- else return value;
37016
- const renamed = PROTOCOL_NUMBER_TO_NAME.get(text);
37017
- if (renamed !== void 0) return renamed;
37018
- const lowered = text.toLowerCase();
37019
- if (CANONICAL_PROTOCOL_NAMES.has(lowered)) return lowered;
37020
- return text;
37021
- }
37022
-
37023
- // src/utils/ipv4-cidr.ts
37024
- function canonicalizeIpv4Cidr(value) {
37025
- const match = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\/(\d{1,2})$/.exec(value);
37026
- if (!match) return void 0;
37027
- const octets = [
37028
- match[1],
37029
- match[2],
37030
- match[3],
37031
- match[4]
37032
- ].map(Number);
37033
- const prefixLength = Number(match[5]);
37034
- if (prefixLength > 32 || octets.some((octet) => octet > 255)) return void 0;
37035
- const network = ((octets[0] << 24 | octets[1] << 16 | octets[2] << 8 | octets[3]) >>> 0 & (prefixLength === 0 ? 0 : 4294967295 << 32 - prefixLength >>> 0)) >>> 0;
37036
- return `${[
37037
- network >>> 24,
37038
- network >>> 16 & 255,
37039
- network >>> 8 & 255,
37040
- network & 255
37041
- ].join(".")}/${prefixLength}`;
37042
- }
37043
-
37044
- // src/utils/ipv6-cidr.ts
37045
- function canonicalizeIpv6Cidr(value) {
37046
- const match = /^([0-9a-fA-F:.]{2,45})\/(\d{1,3})$/.exec(value);
37047
- if (!match || !isIPv6(match[1])) return void 0;
37048
- const prefix = Number(match[2]);
37049
- if (prefix > 128) return void 0;
37050
- try {
37051
- const [left, right] = new URL(`http://[${match[1]}]/`).hostname.slice(1, -1).split("::");
37052
- const before = left ? left.split(":") : [];
37053
- const after = right ? right.split(":") : [];
37054
- const pieces = right === void 0 ? before : [
37055
- ...before,
37056
- ...new Array(8 - before.length - after.length).fill("0"),
37057
- ...after
37058
- ];
37059
- const hostBits = BigInt(128 - prefix);
37060
- const hex = (BigInt(`0x${pieces.map((piece) => piece.padStart(4, "0")).join("")}`) >> hostBits << hostBits).toString(16).padStart(32, "0");
37061
- const expanded = Array.from({ length: 8 }, (_, index) => hex.slice(index * 4, index * 4 + 4)).join(":");
37062
- return `${new URL(`http://[${expanded}]/`).hostname.slice(1, -1)}/${prefix}`;
37063
- } catch {
37064
- return;
37065
- }
37066
- }
37067
-
37068
- // src/provisioning/sg-rule-identity.ts
37069
- function sgProtocolKey(value) {
37070
- return canonicalizeIpProtocolValue(value ?? "-1");
37071
- }
37072
- function sgCidrKey(value) {
37073
- if (typeof value !== "string") return value;
37074
- const ipv4 = /^(0|[1-9]\d{0,2})(\.(0|[1-9]\d{0,2})){3}\/(0|[1-9]\d?)$/.test(value) ? canonicalizeIpv4Cidr(value) : void 0;
37075
- if (ipv4 !== void 0) return ipv4;
37076
- const slash = value.lastIndexOf("/");
37077
- if (value.includes(":") && /^(0|[1-9]\d{0,2})$/.test(value.slice(slash + 1))) return canonicalizeIpv6Cidr(value) ?? value;
37078
- return value;
37079
- }
37080
- function cfnIngressPortValue(value) {
37081
- if (value === void 0 || value === null) return -1;
37082
- if (typeof value === "number") return Number.isFinite(value) ? value : NaN;
37083
- if (typeof value === "string") {
37084
- const trimmed = value.trim();
37085
- if (trimmed === "") return -1;
37086
- const parsed = Number(trimmed);
37087
- return Number.isFinite(parsed) ? parsed : NaN;
37088
- }
37089
- return NaN;
37090
- }
37091
- const SG_RULE_ID_PATTERN = /^sgr-[0-9a-f]+$/;
37092
- function recordedSgRuleId(attributes) {
37093
- const recorded = attributes?.["Id"];
37094
- return typeof recorded === "string" && SG_RULE_ID_PATTERN.test(recorded) ? recorded : void 0;
37095
- }
37096
-
37097
38359
  // src/provisioning/sg-sibling-rules.ts
37098
38360
  const RULE_TYPE = {
37099
38361
  ingress: "AWS::EC2::SecurityGroupIngress",
@@ -38486,7 +39748,7 @@ var AttributeHealer = class {
38486
39748
  physicalId: resource.physicalId,
38487
39749
  resourceType: resource.resourceType,
38488
39750
  source: resource.attributes,
38489
- attributes: outcome.attributes
39751
+ attributes: withoutPendingKeys(outcome.attributes, outcome.pendingKeys)
38490
39752
  });
38491
39753
  return outcome;
38492
39754
  }).catch((error) => ({
@@ -38499,11 +39761,13 @@ var AttributeHealer = class {
38499
39761
  async read(logicalId, resource, stackName) {
38500
39762
  const outcome = await this.readOutcome(logicalId, resource, stackName);
38501
39763
  if (outcome.kind !== "read") return outcome;
38502
- const { attributes } = outcome;
39764
+ const { attributes, withheldKeys, pendingKeys } = outcome;
38503
39765
  if (Object.keys(attributes).length > 0) this.healed.set(logicalId, {
38504
39766
  physicalId: resource.physicalId,
38505
39767
  resourceType: resource.resourceType,
38506
- attributes
39768
+ attributes: withoutPendingKeys(attributes, pendingKeys),
39769
+ ...withheldKeys !== void 0 && { withheldKeys },
39770
+ ...pendingKeys !== void 0 && { pendingKeys }
38507
39771
  });
38508
39772
  return outcome;
38509
39773
  }
@@ -38523,7 +39787,7 @@ var AttributeHealer = class {
38523
39787
  region: this.deps.stackRegion
38524
39788
  }));
38525
39789
  if (outcome.kind !== "read") return outcome;
38526
- this.deps.logger.debug(safeMsg`Re-read the attributes of ${displaySafe(logicalId)} (${displaySafe(resource.resourceType)}) from AWS — its state record lacked one a Fn::GetAtt asked for: ${Object.keys(outcome.attributes).length} attribute(s) read`);
39790
+ this.deps.logger.debug(safeMsg`Re-read the attributes of ${displaySafe(logicalId)} (${displaySafe(resource.resourceType)}) from AWS — its state record lacked (or held a stale copy of) one a Fn::GetAtt asked for: ${Object.keys(outcome.attributes).length} attribute(s) read`);
38527
39791
  return outcome;
38528
39792
  }
38529
39793
  withHealedAttributes(logicalId, record) {
@@ -38537,11 +39801,15 @@ var AttributeHealer = class {
38537
39801
  }
38538
39802
  const healed = this.healed.get(logicalId);
38539
39803
  if (healed === void 0 || healed.physicalId !== record.physicalId || healed.resourceType !== record.resourceType || !this.isEligible(logicalId, record)) return record;
38540
- const merged = mergeHealedAttributes(record.attributes, healed.attributes, (key, value, healedValue) => isStalePlaceholderArnAttribute(record.resourceType, key, value) || isMaskedOwnIdCopy(record, key, value, healedValue, this.deps.resolvedSecretsOf(logicalId)));
38541
- return merged === record.attributes || merged === void 0 ? record : {
39804
+ const staleKeys = staleShapeReplaceableKeys(record);
39805
+ const pending = new Set(healed.pendingKeys ?? []);
39806
+ const attributes = withoutUnreportedStaleKeys(mergeHealedAttributes(record.attributes, healed.attributes, (key, value, healedValue) => isStalePlaceholderArnAttribute(record.resourceType, key, value) || isMaskedOwnIdCopy(record, key, value, healedValue, this.deps.resolvedSecretsOf(logicalId)) || staleKeys.has(key)), new Set([...staleKeys].filter((key) => !pending.has(key) && staleShapeAbsenceIsStale(record, key))), healed);
39807
+ const next = attributes === record.attributes || attributes === void 0 ? record : {
38542
39808
  ...record,
38543
- attributes: merged
39809
+ attributes
38544
39810
  };
39811
+ const settled = ![...staleKeys].some((key) => pending.has(key));
39812
+ return staleKeys.size === 0 || !settled ? next : stampStaleShape(next, this.deps.resolvedSecretsOf(logicalId));
38545
39813
  }
38546
39814
  hasUnpersistedHeals(resources) {
38547
39815
  for (const logicalId of /* @__PURE__ */ new Set([...this.healed.keys(), ...this.readyRead.keys()])) {
@@ -38551,6 +39819,34 @@ var AttributeHealer = class {
38551
39819
  return false;
38552
39820
  }
38553
39821
  };
39822
+ function withoutPendingKeys(attributes, pendingKeys) {
39823
+ if (pendingKeys === void 0 || pendingKeys.length === 0) return attributes;
39824
+ const pending = new Set(pendingKeys);
39825
+ return Object.fromEntries(Object.entries(attributes).filter(([key]) => !pending.has(key)));
39826
+ }
39827
+ function withoutUnreportedStaleKeys(attributes, dropKeys, healed) {
39828
+ if (attributes === void 0) return attributes;
39829
+ const withheld = healed.withheldKeys ?? [];
39830
+ const drop = [...dropKeys].filter((key) => !Object.hasOwn(healed.attributes, key) && !withheld.some((w) => w === key || key.startsWith(`${w}.`)) && Object.hasOwn(attributes, key));
39831
+ if (drop.length === 0) return attributes;
39832
+ const next = { ...attributes };
39833
+ for (const key of drop) delete next[key];
39834
+ return next;
39835
+ }
39836
+ function stampStaleShape(record, secrets) {
39837
+ if (staleShapeAttributeNames(record).size === 0) return record;
39838
+ const stamp = staleShapeFingerprint(record);
39839
+ if (stamp === void 0 || record.attributesReadAfterApply === stamp) return record;
39840
+ const inputs = staleShapeInputs(record);
39841
+ if (hasMaskableValues(secrets) && !isDeepStrictEqual(redactForState(inputs, {
39842
+ provenance: "value-scan",
39843
+ secrets
39844
+ }), inputs)) return record;
39845
+ return {
39846
+ ...record,
39847
+ attributesReadAfterApply: stamp
39848
+ };
39849
+ }
38554
39850
  const healJudges = /* @__PURE__ */ new WeakMap();
38555
39851
  function healPrintingBag(baseline, logicalId, resource, namingSecrets) {
38556
39852
  if (!Object.hasOwn(baseline, logicalId) || baseline[logicalId] !== resource) return secretNamePrintingBags({
@@ -54157,6 +55453,7 @@ async function replaceFallbackFor(engine, { currentProps, currentResource, logic
54157
55453
  } : { outcome: "updated" }
54158
55454
  };
54159
55455
  if (createResult.effectiveProperties) replacementResult.effectiveProperties = createResult.effectiveProperties;
55456
+ if (!engine.replacementRun.recreatedUnderSameId.has(logicalId)) engine.replacementRun.fallbackReplacedElsewhere.add(logicalId);
54160
55457
  return {
54161
55458
  result: replacementResult,
54162
55459
  provisionedBy: replDecision.provisionedBy,
@@ -54164,6 +55461,59 @@ async function replaceFallbackFor(engine, { currentProps, currentResource, logic
54164
55461
  };
54165
55462
  }
54166
55463
 
55464
+ // src/deployment/deploy-engine/update-in-place/update-failure-remedy.ts
55465
+ const CC_NOT_UPDATABLE_CODE = "NotUpdatable";
55466
+ const CC_NOT_UPDATABLE_EXCEPTION = "NotUpdatableException";
55467
+ const NEW_ISSUE_URL = "https://github.com/go-to-k/cdkd/issues/new";
55468
+ function isNotUpdatableError(error, logicalId) {
55469
+ let current = error;
55470
+ for (let depth = 0; current !== null && current !== void 0 && depth < 5; depth++) {
55471
+ const link = current;
55472
+ if (typeof link.logicalId === "string" && link.logicalId !== logicalId) return false;
55473
+ if (link.name === CC_NOT_UPDATABLE_EXCEPTION) return true;
55474
+ if (link.ccErrorCode === "NotUpdatable" && link.ccOperation === "UPDATE") return true;
55475
+ current = link.cause;
55476
+ }
55477
+ return false;
55478
+ }
55479
+ function replacementRuleIssueUrl(resourceType, properties) {
55480
+ if (!/^(AWS|Alexa)::/.test(resourceType)) return void 0;
55481
+ const shown = properties.length > 0 ? properties.join(", ") : "(unknown)";
55482
+ const params = new URLSearchParams({
55483
+ title: `Replacement rule: ${resourceType} ${shown}`,
55484
+ body: `Cloud Control refused an in-place update that CloudFormation applies by replacement.\n\nResource type: ${resourceType}\nProperty: ${shown}\nError code: ${CC_NOT_UPDATABLE_CODE}\n`
55485
+ });
55486
+ return `${NEW_ISSUE_URL}?${params.toString()}`;
55487
+ }
55488
+ function notUpdatableRemedy(input) {
55489
+ const properties = [...input.changedProperties].sort();
55490
+ const changes = properties.length > 0 ? `, which changes ${properties.join(", ")}` : "";
55491
+ const stateful = input.updateReplacePolicy !== "Retain" && isStatefulRecreateTargetForReplace(input.record.resourceType, input.record.properties, input.record.observedProperties) !== null;
55492
+ const how = input.nestedChild ? " --replace-resource names a top-level stack's resources only, so it cannot replace a resource of a nested stack." : ` To replace it in this deploy, as CloudFormation does: ${pasteableCommand("cdkd deploy", [{
55493
+ value: input.stackName,
55494
+ hole: "stack"
55495
+ }, {
55496
+ flag: "--replace-resource",
55497
+ value: input.logicalId,
55498
+ hole: "logicalId"
55499
+ }]).command}.` + (stateful ? safeMsg` ${input.logicalId} is stateful: replacing it deletes its data, which the deploy asks you to confirm with --force-stateful-recreation.` : "");
55500
+ const issueUrl = replacementRuleIssueUrl(input.resourceType, properties);
55501
+ return safeMsg`\n${input.logicalId} (${input.resourceType}): Cloud Control refused this update in place (${CC_NOT_UPDATABLE_CODE})${changes}; CloudFormation replaces the resource for such a change.` + how + (issueUrl === void 0 ? "" : `\ncdkd has no replacement rule for this property yet; report it so one is added: ${issueUrl}`);
55502
+ }
55503
+ function withUpdateFailureRemedy(engine, updateError, logicalId, remedy, updateSecrets) {
55504
+ if (remedy === "" || !(updateError instanceof Error) || isInterruptedWaitError(updateError) || isWaitAbandonedError(updateError)) return updateError;
55505
+ const updateFailure = describeAwsFailure(updateError);
55506
+ if (updateFailure.redacted) {
55507
+ const shownSecrets = unionOfSecretBags([updateSecrets, printingSecretsFor(engine.secretsRun, logicalId)]);
55508
+ engine.logger.debug(safeMsg`${maskSecretsInText(logicalId, shownSecrets)}: the update failed: ${asIsMessage(maskSecretsInText(updateFailure.detail, shownSecrets))}`);
55509
+ const wrapped = new Error(`${displaySafe(updateFailure.summary)}${remedy}`, { cause: updateError });
55510
+ if (updateError.name !== "CredentialsProviderError") wrapped.name = updateError.name;
55511
+ return markRedactedCause(wrapped);
55512
+ }
55513
+ updateError.message += remedy;
55514
+ return updateError;
55515
+ }
55516
+
54167
55517
  // src/deployment/deploy-engine/update-in-place/write-only-secret-skip.ts
54168
55518
  function sameAttestedVersion(key, previous, desired, record, secrets, maskSecrets) {
54169
55519
  if (!Object.hasOwn(previous, key) || !Object.hasOwn(desired, key)) return false;
@@ -54377,19 +55727,16 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
54377
55727
  captureProvider = fallbackOutcome.captureProvider;
54378
55728
  replacedAtGeneration = fallbackGeneration;
54379
55729
  } else {
54380
- if (currentResource.provisionedBy !== "cc-api" && updateDecision.ccRouteReason !== void 0 && updateError instanceof Error && !isInterruptedWaitError(updateError) && !isWaitAbandonedError(updateError)) {
54381
- const remedy = ccAutoRouteUpdateFailureRemedy(logicalId, resourceType, updateDecision.ccRouteReason.properties, engine.options.parentStackInfo !== void 0, currentResource.physicalId !== recordedResource.physicalId);
54382
- const updateFailure = describeAwsFailure(updateError);
54383
- if (updateFailure.redacted) {
54384
- const shownSecrets = unionOfSecretBags([updateSecrets, printingSecretsFor(engine.secretsRun, logicalId)]);
54385
- engine.logger.debug(safeMsg`${maskSecretsInText(logicalId, shownSecrets)}: the update failed: ${asIsMessage(maskSecretsInText(updateFailure.detail, shownSecrets))}`);
54386
- const wrapped = new Error(`${displaySafe(updateFailure.summary)}${remedy}`, { cause: updateError });
54387
- if (updateError.name !== "CredentialsProviderError") wrapped.name = updateError.name;
54388
- throw markRedactedCause(wrapped);
54389
- }
54390
- updateError.message += remedy;
54391
- }
54392
- throw updateError;
55730
+ const remedy = (currentResource.provisionedBy !== "cc-api" && updateDecision.ccRouteReason !== void 0 ? ccAutoRouteUpdateFailureRemedy(logicalId, resourceType, updateDecision.ccRouteReason.properties, engine.options.parentStackInfo !== void 0, currentResource.physicalId !== recordedResource.physicalId) : "") + (isNotUpdatableError(updateError, logicalId) ? notUpdatableRemedy({
55731
+ logicalId,
55732
+ resourceType,
55733
+ stackName,
55734
+ changedProperties,
55735
+ record: currentResource,
55736
+ updateReplacePolicy,
55737
+ nestedChild: engine.options.parentStackInfo !== void 0
55738
+ }) : "");
55739
+ throw withUpdateFailureRemedy(engine, updateError, logicalId, remedy, updateSecrets);
54393
55740
  }
54394
55741
  }
54395
55742
  const stillUnsettled = result.wasReplaced ? [] : await unsettledAfterUpdate({
@@ -55327,7 +56674,7 @@ async function journalOrphanIdentity(engine, orphanOp, carried, readIdentity = t
55327
56674
 
55328
56675
  // src/deployment/deploy-engine/execute/lost-children.ts
55329
56676
  function enqueueLostChildren(run, executor) {
55330
- const { engine, changes, deleteChanges, template, newResources, conditions, progress, dag } = run;
56677
+ const { engine, changes, deleteChanges, template, newResources, conditions, progress } = run;
55331
56678
  const lostIds = noChangeChildrenOfRecreatedParents({
55332
56679
  changes,
55333
56680
  skip: deleteChanges,
@@ -55343,11 +56690,15 @@ function enqueueLostChildren(run, executor) {
55343
56690
  engine.logger.info(survivesParent(change.resourceType) ? safeMsg` ${id} was attached to a resource the update-failure fallback re-created under the same name: attaching it again` : safeMsg` ${id} went with a resource the update-failure fallback re-created under the same id: re-creating it`);
55344
56691
  }
55345
56692
  if (progress) progress.total += lostIds.length;
55346
- const lost = new Set(lostIds);
56693
+ addPromotedNodes(run, executor, lostIds);
56694
+ }
56695
+ function addPromotedNodes(run, executor, ids) {
56696
+ const { engine, changes, dag } = run;
56697
+ const lost = new Set(ids);
55347
56698
  const isMember = (id) => executor.has(id) || lost.has(id);
55348
56699
  const dependenciesOf = (id) => engine.dagBuilder.getDirectDependencies(dag, id);
55349
- const lostDeps = nearestMemberDependencies(lostIds, dependenciesOf, isMember);
55350
- for (const id of lostIds) executor.add({
56700
+ const lostDeps = nearestMemberDependencies(ids, dependenciesOf, isMember);
56701
+ for (const id of ids) executor.add({
55351
56702
  id,
55352
56703
  dependencies: lostDeps.get(id),
55353
56704
  state: "pending",
@@ -55358,6 +56709,74 @@ function enqueueLostChildren(run, executor) {
55358
56709
  for (const node of pending) for (const dep of pendingDeps.get(node.id)) if (lost.has(dep)) node.dependencies.add(dep);
55359
56710
  }
55360
56711
 
56712
+ // src/deployment/deploy-engine/execute/fallback-replaced-readers.ts
56713
+ async function enqueueReadersOfFallbackReplacement(run, executor, replacedId) {
56714
+ const { engine, changes, template, progress } = run;
56715
+ const replaced = changes.get(replacedId);
56716
+ if (replaced === void 0) return;
56717
+ const resources = template.Resources ?? {};
56718
+ const diff = engine.diffCalculator;
56719
+ const parser = new TemplateParser();
56720
+ const rawGetAttRefs = /* @__PURE__ */ new Map();
56721
+ const readersOf = /* @__PURE__ */ new Map();
56722
+ const addEdge = (referencedId, readerId) => {
56723
+ if (referencedId === readerId) return;
56724
+ let readers = readersOf.get(referencedId);
56725
+ if (readers === void 0) {
56726
+ readers = /* @__PURE__ */ new Set();
56727
+ readersOf.set(referencedId, readers);
56728
+ }
56729
+ readers.add(readerId);
56730
+ };
56731
+ for (const [logicalId, resource] of Object.entries(resources)) {
56732
+ if (resource.Type === "AWS::CDK::Metadata") continue;
56733
+ const perProp = /* @__PURE__ */ new Map();
56734
+ for (const [propKey, propValue] of Object.entries(resource.Properties ?? {})) {
56735
+ for (const referencedId of parser.extractReferences(propValue)) addEdge(referencedId, logicalId);
56736
+ const refs = DiffCalculator.extractGetAttRefs(propValue);
56737
+ if (refs.size > 0) perProp.set(propKey, refs);
56738
+ for (const referencedId of refs.keys()) addEdge(referencedId, logicalId);
56739
+ }
56740
+ if (perProp.size > 0) rawGetAttRefs.set(logicalId, perProp);
56741
+ }
56742
+ const reached = /* @__PURE__ */ new Set();
56743
+ const queue = [replacedId];
56744
+ while (queue.length > 0) for (const readerId of readersOf.get(queue.shift()) ?? []) {
56745
+ if (readerId === replacedId || reached.has(readerId)) continue;
56746
+ reached.add(readerId);
56747
+ queue.push(readerId);
56748
+ }
56749
+ if (reached.size === 0) return;
56750
+ const readers = /* @__PURE__ */ new Map();
56751
+ for (const id of reached) {
56752
+ const change = changes.get(id);
56753
+ if (change !== void 0) readers.set(id, change);
56754
+ }
56755
+ const scope = new Map([[replacedId, replaced], ...readers]);
56756
+ const forced = /* @__PURE__ */ new Set([replacedId]);
56757
+ const syntheticCreateOnlyPaths = await diff.loadSyntheticCreateOnlyPaths(scope, template, rawGetAttRefs, void 0, forced);
56758
+ const before = new Map([...readers].map(([id, change]) => [id, change.changeType]));
56759
+ const replacingBefore = new Set([...readers].filter(([, change]) => (change.propertyChanges ?? []).some((pc) => pc.requiresReplacement)).map(([id]) => id));
56760
+ do
56761
+ diff.promoteReplacementDependents(scope, template, syntheticCreateOnlyPaths, forced);
56762
+ while (diff.promoteInPlaceAttributeDependents(readers, template, rawGetAttRefs, syntheticCreateOnlyPaths));
56763
+ dropSupersededProviderReplacements(readers);
56764
+ const promoted = [];
56765
+ for (const [id, change] of readers) {
56766
+ if (change.changeType !== "UPDATE") continue;
56767
+ const replacing = (change.propertyChanges ?? []).some((pc) => pc.requiresReplacement);
56768
+ if (before.get(id) !== "NO_CHANGE") {
56769
+ if (replacing && !replacingBefore.has(id)) engine.logger.info(safeMsg` ${id} reads ${replacedId}, which the update-failure fallback replaced: replacing it instead of updating it in place (a create-only property holds the reference)`);
56770
+ continue;
56771
+ }
56772
+ promoted.push(id);
56773
+ engine.logger.info(replacing ? safeMsg` ${id} reads ${replacedId}, which the update-failure fallback replaced: replacing it too (a create-only property holds the reference)` : safeMsg` ${id} reads ${replacedId}, which the update-failure fallback replaced: updating it`);
56774
+ }
56775
+ if (promoted.length === 0) return;
56776
+ if (progress) progress.total += promoted.length;
56777
+ addPromotedNodes(run, executor, promoted);
56778
+ }
56779
+
55361
56780
  // src/deployment/deploy-engine/execute/provision-node.ts
55362
56781
  const NO_REPLACEMENT_ORPHAN_TYPES = /* @__PURE__ */ new Set([
55363
56782
  "AWS::CloudFormation::Stack",
@@ -55513,6 +56932,7 @@ async function provisionCreateUpdateNode(run, createUpdateExecutor, enqueueLostC
55513
56932
  engine.deferredReadiness.record(logicalId, change.resourceType, change.changeType, readinessScope.deferred);
55514
56933
  saveStateAfterResource(logicalId);
55515
56934
  if (engine.replacementRun.recreatedUnderSameId.has(logicalId)) enqueueLostChildren(createUpdateExecutor);
56935
+ if (engine.replacementRun.fallbackReplacedElsewhere.has(logicalId)) await enqueueReadersOfFallbackReplacement(run, createUpdateExecutor, logicalId);
55516
56936
  const created = change.changeType === "CREATE" || newResources[logicalId]?.physicalId !== physicalIdBefore;
55517
56937
  await awaitCreationSignals(engine, logicalId, signalWaitStart, created);
55518
56938
  }
@@ -55786,6 +57206,60 @@ function promoteRecreateTargets(changes, recreateTargets, stackName) {
55786
57206
  };
55787
57207
  }
55788
57208
 
57209
+ // src/deployment/replace-resource-targets.ts
57210
+ function replaceResourceIdsFor(replaceResources, stackName) {
57211
+ if (replaceResources === void 0 || replaceResources.stackName !== stackName) return void 0;
57212
+ return replaceResources.logicalIds.size > 0 ? replaceResources.logicalIds : void 0;
57213
+ }
57214
+ function planReplaceResourceTargets(changes, targetIds) {
57215
+ const replaced = [];
57216
+ const unreplaced = [];
57217
+ for (const logicalId of targetIds) {
57218
+ const change = changes.get(logicalId);
57219
+ const propertyChanges = change?.propertyChanges ?? [];
57220
+ if (change?.changeType === "NO_CHANGE" || change?.changeType === "UPDATE" && !propertyChanges.some(isTemplateChange)) throw markNonRetryable(new CdkdError(safeMsg`--replace-resource ${logicalId}: this deploy changes no property of ${logicalId}, so there is no update to replace. To destroy and re-create an unchanged resource, use --recreate-via-cc-api or --recreate-via-sdk-provider.`, "REPLACE_RESOURCE_REFUSED"));
57221
+ if (propertyChanges.some((pc) => pc.noEchoPromoted === true)) throw markNonRetryable(new CdkdError(safeMsg`--replace-resource ${logicalId}: a NoEcho value feeds this update of ${logicalId}, and cdkd never replaces a resource on a NoEcho value's word. Use --recreate-via-cc-api or --recreate-via-sdk-provider to destroy and re-create it.`, "REPLACE_RESOURCE_REFUSED"));
57222
+ if (change?.changeType !== "UPDATE") {
57223
+ unreplaced.push({
57224
+ logicalId,
57225
+ changeType: change?.changeType
57226
+ });
57227
+ continue;
57228
+ }
57229
+ if (change.resourceType === "AWS::CloudFormation::Stack") throw markNonRetryable(new CdkdError(safeMsg`--replace-resource ${logicalId}: ${logicalId} is a nested stack (AWS::CloudFormation::Stack), which is updated in place; replacing it would delete and re-create its whole child stack. Drop the flag for it.`, "REPLACE_RESOURCE_REFUSED"));
57230
+ change.propertyChanges = propertyChanges.map((pc) => {
57231
+ const { inPlacePropagated: _inPlace, replacementPropagated: _replaced, ...forced } = pc;
57232
+ return {
57233
+ ...forced,
57234
+ requiresReplacement: true
57235
+ };
57236
+ });
57237
+ delete change.providerReplacement;
57238
+ replaced.push(logicalId);
57239
+ }
57240
+ return {
57241
+ replaced,
57242
+ unreplaced
57243
+ };
57244
+ }
57245
+ function refuseStatefulReplaceResourceTargets(input) {
57246
+ if (input.forceStatefulRecreation) return;
57247
+ const lines = [];
57248
+ for (const logicalId of input.targetIds) {
57249
+ const record = input.state.resources[logicalId];
57250
+ if (record === void 0) continue;
57251
+ if (input.template.Resources?.[logicalId]?.UpdateReplacePolicy === "Retain") continue;
57252
+ const reason = isStatefulRecreateTargetForReplace(record.resourceType, record.properties, record.observedProperties);
57253
+ if (reason === null) continue;
57254
+ lines.push(safeMsg` - ${logicalId} (${shownType(record.resourceType)}): ${renderStatefulReason(reason)}`);
57255
+ }
57256
+ if (lines.length === 0) return;
57257
+ throw markNonRetryable(new CdkdError(`--replace-resource names a stateful resource, and replacing it deletes it:\n${lines.join("\n")}\nRe-run with --force-stateful-recreation to confirm the data loss, or drop --replace-resource for it.`, "STATEFUL_REPLACE_BLOCKED"));
57258
+ }
57259
+ function isTemplateChange(pc) {
57260
+ return pc.inPlacePropagated !== true && pc.replacementPropagated !== true && pc.noEchoPromoted !== true;
57261
+ }
57262
+
55789
57263
  // src/deployment/export-change-guard.ts
55790
57264
  async function findAffectedExports({ template, conditions, changes, currentState, resolve, replaces }) {
55791
57265
  const published = importableOutputKeys(currentState);
@@ -55842,8 +57316,13 @@ async function valueMayChange(output, publishedValue, changes, resolve, replaces
55842
57316
  if (change === void 0 || change.changeType === "NO_CHANGE") continue;
55843
57317
  if (change.changeType !== "UPDATE") return "changed";
55844
57318
  touchesChangedResource = true;
55845
- if (isCustomResourceType(change.resourceType)) readsUpdatedCustomResource = true;
55846
- else if (inPlaceUpdateMayMove(change, reads)) return "changed";
57319
+ if (isCustomResourceType(change.resourceType)) {
57320
+ readsUpdatedCustomResource = true;
57321
+ continue;
57322
+ }
57323
+ const verdict = inPlaceUpdateMayMove(change, reads);
57324
+ if (verdict === "changed") return "changed";
57325
+ if (verdict === "after-update") readsUpdatedCustomResource = true;
55847
57326
  }
55848
57327
  if (publishedValue === "***") return readsUpdatedCustomResource ? "changed" : "unchanged";
55849
57328
  if (readsUpdatedCustomResource && JSON.stringify(publishedValue)?.includes("***") === true) return "changed";
@@ -55880,16 +57359,20 @@ async function findChangedDeferredExports(deferred, currentState, resolve) {
55880
57359
  }
55881
57360
  function inPlaceUpdateMayMove(change, reads) {
55882
57361
  const type = change.resourceType;
57362
+ const afterUpdate = Object.hasOwn(CC_IN_PLACE_UPDATE_DERIVED_ATTRS, type) ? CC_IN_PLACE_UPDATE_DERIVED_ATTRS[type] : void 0;
57363
+ let deferred = false;
55883
57364
  const changed = new Set((change.propertyChanges ?? []).map((pc) => pc.path));
55884
57365
  const derived = Object.hasOwn(IN_PLACE_UPDATE_DERIVED_ATTRS, type) ? IN_PLACE_UPDATE_DERIVED_ATTRS[type] : void 0;
55885
57366
  const prefixes = Object.hasOwn(IN_PLACE_UPDATE_DERIVED_ATTR_PREFIXES, type) ? IN_PLACE_UPDATE_DERIVED_ATTR_PREFIXES[type] : void 0;
55886
57367
  for (const attr of reads) {
55887
57368
  if (attr === "<Ref>") continue;
55888
- if (changed.has(attr) || derived?.has(attr) === true) return true;
55889
- if (attributeMovedByChangedProperty(type, attr, changed, (prop) => recordedAndDesiredOf(change, prop))) return true;
55890
- if (prefixes?.some((prefix) => attr.startsWith(prefix)) === true) return true;
57369
+ if (changed.has(attr)) return "changed";
57370
+ if (derived?.has(attr) === true && afterUpdate?.includes(attr) !== true) return "changed";
57371
+ if (attributeMovedByChangedProperty(type, attr, changed, (prop) => recordedAndDesiredOf(change, prop))) return "changed";
57372
+ if (prefixes?.some((prefix) => attr.startsWith(prefix)) === true) return "changed";
57373
+ if (afterUpdate?.includes(attr) === true) deferred = true;
55891
57374
  }
55892
- return false;
57375
+ return deferred ? "after-update" : "unchanged";
55893
57376
  }
55894
57377
  function holdsDynamicReference(value) {
55895
57378
  return JSON.stringify(value)?.includes("{{resolve:") === true;
@@ -56032,6 +57515,25 @@ function healsReadByExports(heals, template) {
56032
57515
 
56033
57516
  // src/deployment/deploy-engine/deploy-flow/plan-checks.ts
56034
57517
  async function refuseUnsafePlan(engine, { stackName, ssmNameHeals = [], currentState, effectiveTemplate, parameterValues, conditions, changes, diffResolverContext }) {
57518
+ const replaceResourceIds = replaceResourceIdsFor(engine.options.replaceResources, stackName);
57519
+ if (replaceResourceIds !== void 0) {
57520
+ const { replaced, unreplaced } = planReplaceResourceTargets(changes, replaceResourceIds);
57521
+ for (const { logicalId, changeType } of unreplaced) engine.logger.warn(changeType === void 0 ? safeMsg`--replace-resource ${logicalId}: not replaced, stack ${stackName} has no such resource.` : safeMsg`--replace-resource ${logicalId}: not replaced, this deploy will ${changeType.toLowerCase()} it instead.`);
57522
+ refuseStatefulReplaceResourceTargets({
57523
+ targetIds: replaced,
57524
+ state: currentState,
57525
+ template: effectiveTemplate,
57526
+ forceStatefulRecreation: engine.options.forceStatefulRecreation === true
57527
+ });
57528
+ await refuseStatefulReplacedReaders({
57529
+ template: effectiveTemplate,
57530
+ state: currentState,
57531
+ targetIds: replaced,
57532
+ conditions,
57533
+ forceStatefulRecreation: engine.options.forceStatefulRecreation === true,
57534
+ targetFlag: "--replace-resource"
57535
+ });
57536
+ }
56035
57537
  const nestedStackTypeChanges = findNestedStackTypeChanges({
56036
57538
  changes,
56037
57539
  stateResources: currentState.resources
@@ -57130,6 +58632,78 @@ function visit(container, key, stored, declared, out, depth) {
57130
58632
  collect(stored, declared, out, depth + 1);
57131
58633
  }
57132
58634
 
58635
+ // src/deployment/zoneless-db-instance-heal.ts
58636
+ const DB_INSTANCE = "AWS::RDS::DBInstance";
58637
+ const blank = (value) => value === void 0 || value === null || value === "";
58638
+ async function healZonelessDbInstanceRecords(input) {
58639
+ const { resources, template, resolve, readLiveZone, log } = input;
58640
+ const candidates = [];
58641
+ for (const [logicalId, record] of Object.entries(resources)) {
58642
+ if (record?.resourceType !== DB_INSTANCE) continue;
58643
+ const declared = template.Resources?.[logicalId];
58644
+ if (declared?.Type !== DB_INSTANCE || !isReadableBag(declared.Properties)) continue;
58645
+ if (!isReadableBag(record.properties)) continue;
58646
+ if (!blank(record.properties["AvailabilityZone"])) continue;
58647
+ const declaredZone = declared.Properties["AvailabilityZone"];
58648
+ if (blank(declaredZone)) continue;
58649
+ candidates.push([
58650
+ logicalId,
58651
+ record,
58652
+ declaredZone
58653
+ ]);
58654
+ }
58655
+ if (candidates.length === 0) return [];
58656
+ return (await Promise.all(candidates.map(async ([logicalId, record, declaredZone]) => {
58657
+ let desired;
58658
+ try {
58659
+ desired = await resolve(structuredClone(declaredZone));
58660
+ } catch {
58661
+ return;
58662
+ }
58663
+ if (typeof desired !== "string" || desired === "") return void 0;
58664
+ let live = (isReadableBag(record.observedProperties) ? record.observedProperties["AvailabilityZone"] : void 0) === desired ? desired : void 0;
58665
+ if (live === void 0) {
58666
+ if (readLiveZone === void 0 || !hasAddressablePhysicalId(record)) return void 0;
58667
+ try {
58668
+ live = await readLiveZone(record.physicalId);
58669
+ } catch (error) {
58670
+ log(safeMsg`${logicalId}: its state record holds no AvailabilityZone and the instance's zone could not be read (${error instanceof Error ? error.name : "error"}); the declared zone is compared as added`, "info");
58671
+ return;
58672
+ }
58673
+ if (live !== desired) {
58674
+ log(safeMsg`${logicalId}: its state record holds no AvailabilityZone and the instance runs in ${live ?? "no reported zone"}, not the declared ${desired}; the declared zone is compared as added`, "info");
58675
+ return;
58676
+ }
58677
+ }
58678
+ resources[logicalId] = {
58679
+ ...record,
58680
+ properties: {
58681
+ ...record.properties,
58682
+ AvailabilityZone: live
58683
+ }
58684
+ };
58685
+ log(safeMsg`${logicalId}: its state record holds no AvailabilityZone and the instance runs in the declared ${live}; recorded, not a change`, "debug");
58686
+ return logicalId;
58687
+ }))).filter((id) => id !== void 0);
58688
+ }
58689
+
58690
+ // src/provisioning/providers/rds/live-zone.ts
58691
+ async function readDbInstanceAvailabilityZone(identifier, region, client) {
58692
+ const owned = client === void 0;
58693
+ const rds = client ?? new RDSClient({
58694
+ ...ambientClientDefaults(),
58695
+ region
58696
+ });
58697
+ try {
58698
+ const instance = (await rds.send(new DescribeDBInstancesCommand({ DBInstanceIdentifier: identifier }))).DBInstances?.[0];
58699
+ if (instance?.DBInstanceIdentifier?.toLowerCase() !== identifier.toLowerCase()) return;
58700
+ const zone = instance.AvailabilityZone;
58701
+ return typeof zone === "string" && zone !== "" ? zone : void 0;
58702
+ } finally {
58703
+ if (owned) rds.destroy();
58704
+ }
58705
+ }
58706
+
57133
58707
  // src/provisioning/canonicalize-properties.ts
57134
58708
  function makeCanonicalizePropertiesFn(registry) {
57135
58709
  const logger = getLogger().child("canonicalize-properties");
@@ -57218,13 +58792,20 @@ async function calculateDeployDiff(engine, { stackName, currentState, effectiveT
57218
58792
  const crossStackReads = /* @__PURE__ */ new Map();
57219
58793
  diffResolverContext.crossStackReads = crossStackReads;
57220
58794
  const diffResolveFn = (value) => engine.resolver.resolve(value, diffResolverContext);
58795
+ const zonelessRecordsHealed = await healZonelessDbInstanceRecords({
58796
+ resources: currentState.resources,
58797
+ template: effectiveTemplate,
58798
+ resolve: diffResolveFn,
58799
+ readLiveZone: (identifier) => readDbInstanceAvailabilityZone(identifier, engine.stackRegion),
58800
+ log: (line, level) => engine.logger[level](line)
58801
+ });
57221
58802
  const maskedInputSourcesForDiff = maskedInputSources(engine.resolverContextDeps(), effectiveTemplate, currentState.resources, conditions, stackName);
57222
58803
  const maskedInputs = maskedInputSourcesForDiff && {
57223
58804
  sources: maskedInputSourcesForDiff,
57224
58805
  rebaselined: /* @__PURE__ */ new Map()
57225
58806
  };
57226
58807
  clock.lap("journal, parameters, conditions, DAG build");
57227
- const changes = await engine.diffCalculator.calculateDiff(currentState, effectiveTemplate, diffResolveFn, makeCanonicalizePropertiesFn(engine.providerRegistry), engine.providerRegistry.getAllowedUnsupportedProperties?.(), freshNoEchoParametersWithDeclared(engine.noEchoRun.inheritedNoEchoParameters, effectiveTemplate), diffLogMasker(engine.secretsRun, engine.maskingDeps(), diffResolverContext.recordedSecretValues, effectiveTemplate, parameterValues, currentState.resources), recreateTargetIdsFor(engine.options.recreateTargets, stackName), maskedInputs, engine.options.refusalRecovery, noEchoDiffComparison(engine.noEchoRun, engine.noEchoDeps(), currentState.resources, effectiveTemplate, conditions, parameterValues, stackName), {
58808
+ const changes = await engine.diffCalculator.calculateDiff(currentState, effectiveTemplate, diffResolveFn, makeCanonicalizePropertiesFn(engine.providerRegistry), engine.providerRegistry.getAllowedUnsupportedProperties?.(), freshNoEchoParametersWithDeclared(engine.noEchoRun.inheritedNoEchoParameters, effectiveTemplate), diffLogMasker(engine.secretsRun, engine.maskingDeps(), diffResolverContext.recordedSecretValues, effectiveTemplate, parameterValues, currentState.resources), forcedReplacementIds(recreateTargetIdsFor(engine.options.recreateTargets, stackName), replaceResourceIdsFor(engine.options.replaceResources, stackName)), maskedInputs, engine.options.refusalRecovery, noEchoDiffComparison(engine.noEchoRun, engine.noEchoDeps(), currentState.resources, effectiveTemplate, conditions, parameterValues, stackName), {
57228
58809
  ...engine.options.inheritedReferenceProvenance && { inherited: engine.options.inheritedReferenceProvenance },
57229
58810
  crossStackOutputs: crossStackOutputProvenanceSource(crossStackReads, engine.recordedImports, engine.stateBackend)
57230
58811
  }, forcedNestedChildRuns, engine.options.updatePolicy === true);
@@ -57239,9 +58820,15 @@ async function calculateDeployDiff(engine, { stackName, currentState, effectiveT
57239
58820
  state: currentState,
57240
58821
  resolve: diffResolveFn,
57241
58822
  secrets: diffResolverContext.recordedSecretValues
57242
- })
58823
+ }),
58824
+ zonelessRecordsHealed: zonelessRecordsHealed.length > 0
57243
58825
  };
57244
58826
  }
58827
+ function forcedReplacementIds(a, b) {
58828
+ if (a === void 0) return b;
58829
+ if (b === void 0) return a;
58830
+ return /* @__PURE__ */ new Set([...a, ...b]);
58831
+ }
57245
58832
 
57246
58833
  // src/deployment/nested-ssm-name-check.ts
57247
58834
  const NESTED_STACK_TYPE = "AWS::CloudFormation::Stack";
@@ -57462,7 +59049,7 @@ function keptWholeReasonText(reason) {
57462
59049
  }
57463
59050
 
57464
59051
  // src/deployment/deploy-engine/deploy-flow/no-change.ts
57465
- async function deployWithoutChanges(engine, { stackName, template, currentState, currentEtag, effectiveTemplate, outputsDigestSource, parameterValues, conditions, conditionVerdicts, migrationPending, maskedFingerprintsBackfilled, orphansChanged, terminationProtectionChanged, ssmNamesHealed, nestedSsmNamesMarked, resolveStackInstanceId, startProvenanceCapture, startTime, clock }) {
59052
+ async function deployWithoutChanges(engine, { stackName, template, currentState, currentEtag, effectiveTemplate, outputsDigestSource, parameterValues, conditions, conditionVerdicts, migrationPending, maskedFingerprintsBackfilled, orphansChanged, terminationProtectionChanged, ssmNamesHealed, zonelessRecordsHealed = false, nestedSsmNamesMarked, resolveStackInstanceId, startProvenanceCapture, startTime, clock }) {
57466
59053
  engine.logger.info("No changes detected. Stack is up to date.");
57467
59054
  startProvenanceCapture();
57468
59055
  const unmarked = supersededResourcesOf(currentState).some((e) => e.heldForConsumers !== true);
@@ -57514,7 +59101,7 @@ async function deployWithoutChanges(engine, { stackName, template, currentState,
57514
59101
  });
57515
59102
  const outputProvenanceBackfill = !outputsChanged && currentState.outputReferenceProvenance === void 0 && engine.provenanceBaseline?.tokenFree === false && engine.outputReferenceProvenanceFor(persistedOutputs, redactOutputs(engine.maskingDeps(), persistedOutputs)) !== void 0;
57516
59103
  const refreshedResources = withTemplateDependencies(currentState.resources, effectiveTemplate, { removalsOnly: engine.options.parentStackInfo !== void 0 });
57517
- if (observedRefresh || refreshedResources !== void 0 || outputProvenanceBackfill || maskedFingerprintsBackfilled || conditionVerdictsChanged || outputsChanged || exportSetChanged || skippedOutputsChanged || orphansChanged || supersededChanged || terminationProtectionChanged || ssmNamesHealed || nestedSsmNamesMarked || healedAttributesPending || readsAdded) {
59104
+ if (observedRefresh || refreshedResources !== void 0 || outputProvenanceBackfill || maskedFingerprintsBackfilled || conditionVerdictsChanged || outputsChanged || exportSetChanged || skippedOutputsChanged || orphansChanged || supersededChanged || terminationProtectionChanged || ssmNamesHealed || zonelessRecordsHealed || nestedSsmNamesMarked || healedAttributesPending || readsAdded) {
57518
59105
  await resolveStackInstanceId();
57519
59106
  try {
57520
59107
  const refreshedState = {
@@ -57874,7 +59461,7 @@ async function doDeployWithPrefetch(engine, stackName, synthTemplate, createOnly
57874
59461
  for (const row of nestedCheck?.deferredRows ?? []) engine.logger.info(nestedSsmNameDeferredNote(row));
57875
59462
  const marksNestedCheck = nestedCheck?.complete === true && !Object.values(orphanPlan.adopted).some((r) => r.resourceType === "AWS::CloudFormation::Stack");
57876
59463
  const signalReceiverChanged = await ensureSignalReceiver(engine, stackName, effectiveTemplate, currentState);
57877
- const { diffResolverContext, maskedInputs, changes, expectedChildTags } = await calculateDeployDiff(engine, {
59464
+ const { diffResolverContext, maskedInputs, changes, expectedChildTags, zonelessRecordsHealed } = await calculateDeployDiff(engine, {
57878
59465
  stackName,
57879
59466
  currentState,
57880
59467
  effectiveTemplate,
@@ -57947,6 +59534,7 @@ async function doDeployWithPrefetch(engine, stackName, synthTemplate, createOnly
57947
59534
  orphansChanged,
57948
59535
  terminationProtectionChanged: terminationProtectionChanged || signalReceiverChanged,
57949
59536
  ssmNamesHealed: ssmNameHeals.length > 0,
59537
+ zonelessRecordsHealed,
57950
59538
  nestedSsmNamesMarked: marksNestedCheck,
57951
59539
  resolveStackInstanceId,
57952
59540
  startProvenanceCapture,
@@ -58441,5 +60029,5 @@ var DeployEngine = class {
58441
60029
  }
58442
60030
  };
58443
60031
 
58444
- export { deletionProtectionRefusal as $, orphanRecordsPrintingBag as $a, APPSYNC_APIKEY_ARN_RESOURCE_PATH as $c, getCdkdAssetBucketName as $d, getCurrentProducerRegions as $i, malformedOrphansWarning as $l, withNestedRevertRun as $n, evaluateSignals as $o, cfnIngressPortValue as $r, producerRegionsFromState as $s, reverseMapIndexContributorInsights as $t, rebuildClientForBucketRegion as $u, serviceTokenBlockingReason as A, supersededResourcesOf as Aa, carriesFetchableDynamicReference as Ac, isDefaultBootstrapRepoName as Ad, seedsDeleteFirstGuard as Ai, malformedLocalResourcesWarning as Al, deleteSignalReceiver as An, KMS_DEFAULT_KEY_POLICY_ID as Ao, rollbackOrphanIds as Ar, IntrinsicFunctionResolver as As, declaredTagsReadback as At, findActionableSdkUnwired as Au, STREAM_TAGS_KEY as B, green as Ba, siblingsOf as Bc, warnAbsoluteAssetPath as Bd, attemptUsesCompletedCreate as Bi, repairMalformedResourceEntriesForReadOnly as Bl, formatResourceLine as Bn, reReadUntilSettled as Bo, propertiesChangedReason as Br, applyRoleArnIfSet as Bs, sendTtlWaitingOutRateLimit as Bt, dropSupersededProviderReplacements as Bu, slashedSsmNameHealAdoptedNote as C, deleteSupersededEntry as Ca, recordedProvenanceOf as Cc, rememberSynthesizedStacks as Cd, replacementCreateRoutesToCloudControl as Ci, refuseMalformedOrphanRecordsForDestroy as Cl, readRefactorMarker as Cn, withoutSiblingOwned as Co, findDestructiveChanges as Cr, deleteIndeterminateGuards as Cs, readCapacityNumber as Ct, accountArgs as Cu, inRunStackKey as D, supersededDependentsFirst as Da, withoutVersionAttestation as Dc, createLazyAssetModeContext as Dd, withCreateTokenLedger as Di, unreadableOrphanRecords as Dl, refuseRefactorMarker as Dn, revertStackRecordsView as Do, findRefactorHints as Dr, getReadOnlyPropertyPaths as Ds, tableNameReleaseWait as Dt, displayLogicalId as Du, scanActiveConsumers as E, supersededAfterRollback as Ea, referenceTokensIn as Ec, createAssetRedirectResolver as Ed, reserveStackCreateToken as Ei, unpreviewableOrphanRecords as El, refactorMarkerRefusalMessage as En, getStackRecords as Eo, orphanedLogicalIds as Er, withIndeterminateGuard as Es, tableDeleteGoneWait as Et, UNREADABLE_RESOURCES_MAP_ROW as Eu, isProtectionValueActive as F, withPreviousPolicies as Fa, namesRecreatedParent as Fc, AssetManifestLoader as Fd, recheckFailedPlan as Fi, refuseMalformedResourceEntriesForDeploy as Fl, childStackTags as Fn, declaredPolicyDocument as Fo, differingRemedy as Fr, isSettledInstanceState as Fs, takeTagWrite as Ft, withoutSdkUnwiredProperties as Fu, reverseMapStreamPolicy as G, noEchoExactEchoLeavesOf as Ga, shownType as Gc, assertAssetBucketRegion as Gd, orphanNeedsIdentity as Gi, refuseMalformedResourcePropertiesForDestroy as Gl, displacedOpClause as Gn, policyContentKey as Go, undeclaredGrantSiblingMembers as Gr, parseIamRoleArn as Gs, vectorIndexesShapeDetail as Gt, wireAttributeValue as Gu, declaredStreamTagsMember as H, yellow as Ha, isLegacyHandleId as Hc, AssetModeResolver as Hd, segmentCleanupOptions as Hi, malformedDriftResourcePropertiesWarning as Hl, pendingRequestCount as Hn, warnUnsettledMember as Ho, referencedLogicalIds as Hr, assertSendableRoleArn as Hs, readbackVectorIndexes as Ht, providerReplacementReason as Hu, perType as I, findNestedStackTypeChanges as Ia, INTRINSIC_KEYS as Ic, getDockerImageBySourceHash as Id, recordUnderIdIsNotOwn as Ii, refuseMalformedResourceEntriesForDestroy as Il, literalRowTags as In, efsPolicyMatchesDeclared as Io, isPairableType as Ir, connectInstanceIdOf as Is, isTtlAlreadyDisabled as It, withoutUnwrittenSdkUnwiredProperties as Iu, streamMemberRefusals as J, createReadOnlyAttributeHealerFactory as Ja, isStatefulRecreateTargetSync as Jc, parseBootstrapMarker as Jd, nameScopeOf as Ji, refuseMalformedResourcePropertiesForOrphan as Jl, getNestedRevertRun as Jn, ccBrokenReason as Jo, sgSiblingDecidedById as Jr, applyCallerIdentityCredentials as Js, contributorInsightsRefusals as Jt, splitImportedOps as Ju, streamDeclaresPolicy as K, noEchoParameterNamesOf as Ka, MULTI_REGION_RECREATE_BLOCKED_TYPES as Kc, isCrossRegionRedirect as Kd, nameGenerationCarriedFrom as Ki, refuseMalformedResourcePropertiesForDrift as Kl, displacedPhysicalIdShown as Kn, CC_BROKEN_REASON as Ko, recordedRuleIdOf as Kr, sendableAssumeRoleCommand as Ks, CONTRIBUTOR_INSIGHTS_KEY as Kt, TemplateParser as Ku, readProtection as L, bold as La, containsIntrinsic as Lc, isCfnTemplateAssetPath as Ld, replacementNeverSwapped as Li, refuseMalformedResourceEntriesForImport as Ll, macWriteOnlyKeys as Ln, lambdaPermissionMatchesDeclared as Lo, looselyEqual as Lr, resolveDynamicReferences as Ls, isTtlRateLimited as Lt, NO_CC_HANDLERS_REASON as Lu, recordedProtectionEvidence as M, replacedDeleteFailureVerdict as Ma, carriesDynamicReference as Mc, redirectDockerAsset as Md, isJournaledOrphan as Mi, malformedScrubResourceEntriesRefusalMessage as Ml, removeSignalReceiverNamed as Mn, OWN_WRITE_REREAD_DELAYS_MS as Mo, changedReferenceInDiff as Mr, isAlwaysLiveAttribute as Ms, recordTagWrite as Mt, findSdkUnwiredProperties as Mu, recordedProtectionNote as N, snapshotSegmentSurvivors as Na, keepsSecretReferenceToken as Nc, redirectFileAsset as Nd, isReplacementOrphan as Ni, refuseMalformedResourceAttributesForOrphan as Nl, settleStackTagChildRuns as Nn, SNS_DEFAULT_POLICY_ID as No, changedReferencePath as Nr, poisonRenderedSpellingsCollidingIn as Ns, settleWrittenTags as Nt, unwrittenCreateOnlyReplacement as Nu, deferredServiceTokenWarning as O, supersededHeldByOtherTypeWarning as Oa, getAccountInfo as Oc, flattenAssetPlaceholders as Od, acquireIdempotencyToken as Oi, isReadableResourceEntry as Ol, sameMove as On, verifiedIdentityCache as Oo, hintSidesOf as Or, isWaitAbandonedError as Os, TAGS_BASELINE_REREAD_DELAYS_MS as Ot, hasReadableOutputs as Ou, PROTECTION_PROPERTY_BY_TYPE as P, resolveReplacementOldType as Pa, withSharedDrainBudget as Pc, rewriteTemplateAssetReferences as Pd, planFailedOps as Pi, refuseMalformedResourceEntries as Pl, childRowTags as Pn, declaredMemberDocument as Po, changedReferenceReason as Pr, stackIdTailOf as Ps, tagsMatchDeclared as Pt, withoutAcceptedSdkUnwiredProperties as Pu, declaresIndexList as Q, namingSecretsWithRecordedNoEcho as Qa, toFiniteNumber as Qc, BOOTSTRAP_MARKER_PREFIX as Qd, withNameGenerationReached as Qi, malformedOrphansRefusalMessage as Ql, revertedNestedRowIds as Qn, classifyHandleUrl as Qo, SG_RULE_ID_PATTERN as Qr, classifyReplaySecretRegion as Qs, readContributorInsightsSpec as Qt, hasUnverifiableParameterRefusal as Qu, DynamoDBGlobalTableProvider as R, cyan as Ra, markNewValueKnownAfterDeploy as Rc, parseAssetManifestBody as Rd, IMPLICIT_DELETE_DEPENDENCIES as Ri, refuseMalformedResourceEntriesForImportSave as Rl, readsOnlyNoEchoParameters as Rn, memberReadFailure as Ro, mappingPairs as Rr, producerLookupOver as Rs, planTimeToLive as Rt, hasNoCloudControlHandlers as Ru, healSlashedSsmParameterNames as S, maskingRetryLogger as Sa, recordedOutputReferenceRegions as Sc, decodeListingKey as Sd, findUpdatePolicyReplacementRefusals as Si, refuseMalformedOrphanRecords as Sl, recordRetainedForReadoption as Sn, withoutSiblingAttachedArns as So, constructPathOf as Sr, UNSPECIFIED_SKIP_REASON as Ss, pointInTimeRecoveryRefusal as St, JSON_LISTING_HOLE_VALUE as Su, slashedSsmNameHealPendingNote as T, isSupersededResourceRecord as Ta, referenceProvenanceOf as Tc, buildAssetRedirectMap as Td, ledgerForStack as Ti, repairMalformedOrphanRecordsForReadOnly as Tl, refactorMarkerMovesOf as Tn, destroyStackRecordsView as To, formatDestructiveChange as Tr, deleteSkipReason as Ts, sseSpecificationToSend as Tt, STATE_RESOURCES_MALFORMED as Tu, planStreamMemberOps as U, noEchoAttributeNamesOf as Ua, findReplacedReadersOfRecreateTargets as Uc, ensureAssetStorage as Ud, removeProtectionTypeList as Ui, malformedResourcePropertiesWarning as Ul, resolvePendingCloudControlRequests as Un, verbatimEchoDriftKeys as Uo, siblingOwnedRevertDesired as Ur, explicitRoleArnOrThrow as Us, vectorIndexesForCreate as Ut, normalizeRecordName as Uu, declaredStreamPolicyMember as V, red as Va, LEGACY_HANDLE_ID_PREFIX as Vc, warnWholeAssemblyAsSource as Vd, readsRegeneratingSecret as Vi, unreadableResourceEntries as Vl, startForceQuitFlushes as Vn, settleDeclaredMember as Vo, proposeRenames as Vr, assertFlagRoleArn as Vs, planVectorIndexUpdates as Vt, providerReplacementOldDeleted as Vu, readStreamPolicy as W, noEchoComparisonForTemplate as Wa, isPlainReferenceTo as Wc, buildDenyExternalAccessPolicy as Wd, removeProtectionTypes as Wi, refuseMalformedResourceProperties as Wl, NESTED_PENDING_PARENT_REASON as Wn, attemptedPolicyDocument as Wo, stripSiblingOwnedParentMembers as Wr, isIamRoleArn as Ws, vectorIndexesSettled as Wt, planSubscriptionAttributes as Wu, streamTagsMatchDeclared as X, journaledOrphanPrintingBag as Xa, isWarmThroughputDecrease as Xc, validateAssetBucketName as Xd, retiredNameGenerationsAfter as Xi, UNREADABLE_ORPHANS_CONTAINER_ROW as Xl, recordDisplacedSkips as Xn, wouldReturnToSdkProvider as Xo, siblingRecordedSgRuleIds as Xr, envCredentialsAreAssumedRole as Xs, planContributorInsightsOp as Xt, readOnlyStateVersionOf as Xu, streamPolicyMatchesDeclared as Y, completedReplayEntries as Ya, renderStatefulReason as Yc, readBootstrapMarkerBody as Yd, retiredAfterRollback as Yi, repairMalformedResourcePropertiesForReadOnly as Yl, nestedChildStackName as Yn, isCustomResource as Yo, siblingOwnedSgRuleIdentities as Yr, callerEnvCredentials as Ys, indexDeclaresContributorInsights as Yt, isKnownTokenFreeState as Yu, canonicalizeStaleIndexDescription as Z, maskEventTextWithBoundBags as Za, toCfnInteger as Zc, validateContainerRepoName as Zd, retiredNameGenerationsLeaving as Zi, hasReadableOrphans as Zl, revertNestedChildFromJournal as Zn, WaitConditionSignalStore as Zo, withoutSiblingOwnedSgRules as Zr, classifyRecordedSecretRegion as Zs, planIndexContributorInsightsOps as Zt, hasReasonlessBaselineRefusal as Zu, hasPendingMovesOut as _, collectPublishedOutputNames as _a, parseWebACLArn as _c, SSM_PARAMETER_VALUE_PREFIX as _d, equalModuloMarkedMask as _i, isReadableOrphanRecord as _l, S3_AUTO_DELETE_OBJECTS_TAG as _n, buildFinalSnapshotIdentifier as _o, createNoEchoValueMacs as _r, withCustomResourceStack as _s, hasUsableDeclaredCapacity as _t, refuseMalformedResourcesForDeploy as _u, mergeNoChangeOutputs as a, WITHHELD_NAME_DISPLAY as aa, s3BucketDualStackDomainName as ac, isNotImplemented as ad, ownValue as af, canonicalizeIpProtocolValue as ai, getSettledWriteOnlyPropertyPaths as al, compensateRemovedDeletionProtection as an, stateSecretNameNeedles as ao, dropFailedHint as ar, TemplateNoEchoReresolver as as, sameJsonValue as at, malformedLocalOutputsWarning as au, refusePendingMovesOut as b, DEFAULT_RESOURCE_TIMEOUT_MS as ba, keepHeldTokenProvenance as bc, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as bd, updatePartialMessage as bi, malformedOrphanRowsKeptWarning as bl, NestedCleanupQueue as bn, collectPrincipalsAttachingPolicy as bo, noEchoMacVerdict as br, waitForGoneAfterDelete as bs, mapSSESpecification as bt, refuseMalformedState as bu, nestedSsmNameRowNote as c, secretBearing as ca, coerceParameterTypedValue as cc, isSecretValuedAttribute as cd, describeFileReadFailure as cf, DELETED_RESOURCE_REMEDY as ci, inputFingerprinter as cl, resolveDynamoDbDeleteBudgetMs as cn, ATOMIC_FINAL_SNAPSHOT_TYPES as co, loadJournaledOrphans as cr, getCurrentResourceSecrets as cs, desiredBagIsInformative as ct, refuseMalformedNestedChildOutputs as cu, makeCanonicalizePropertiesFn as d, carriedExportAliasExposure as da, AWS_NO_VALUE as dc, missingStateBucketRemedy as dd, renderAssemblyPathEscape as df, earlyDeletedOld as di, parameterInputsFor as dl, TABLE_INDEX_NOUN as dn, ccRoutedInstanceTakesNoSnapshot as do, makeSiblingClaimReader as dr, customResourceStackName as ds, sentWarmThroughputMembers as dt, repairMalformedOutputsForReadOnly as du, inheritProducerRegions as ea, regionLessSecretName as ec, CrossPrefixReadError as ed, getCdkdContainerRepoName as ef, recordedSgRuleId as ei, displayPhysicalId as el, reverseMapTableContributorInsights as en, secretNamePrintingBag as eo, collectNestedChildUnaddressed as er, isSignalKey as es, desiredIndexEntriesByName as et, refuseMalformedOrphans as eu, conditionFingerprint as f, exportNameNoEchoParameters as fa, cfnRefValueFromPhysicalId as fc, findNestedTemplateTreeDefect as fd, resolveAssemblyPath as ff, buildReadCurrentStateContext as fi, maskedInputProof as fl, deleteTableWithIndexBusyRetry as fn, effectiveDeletionPolicy as fo, planOrphanAdoption as fr, customResourcesFailedWithoutApp as fs, trimUnsentWarmMembers as ft, STATE_REGION_DIVERGED as fu, childTemplateLoader as g, collectDeclaredOutputNames as ga, lacksRecordedTableArn as gc, templateIdentity as gd, calculateResourceDrift as gi, deployRefusesOrphanRowsReason as gl, ECR_AUTO_DELETE_IMAGES_TAG as gn, createPreDeleteFinalSnapshot as go, NOECHO_MAC_KEY_ALIAS as gr, setLocalCustomResourceRuntimeEnabled as gs, deleteTableRetryDelays as gt, malformedStateRefusalMessage as gu, readRecordedConditionVerdicts as h, noEchoParameterValueSeed as ha, lacksRecordedRefArn as hc, renderNestedTemplateTreeDefect as hd, withUnprovenUnsettled as hi, maskedPropertyFingerprint as hl, waitForIndexesSettled as hn, unsupportedFinalSnapshotError as ho, crossStackReadsForPartialSave as hr, localCustomResourceRuntimeActive as hs, KINESIS_DISABLE_PENDING_STATUSES as ht, malformedResourcesWarning as hu, keptWholeReasonText as i, resourcesNamingDeclaredParameter as ia, s3BucketDomainName as ic, isAccessDenied$1 as id, nullPrototypeRecord as if, canonicalizeIpv4Cidr as ii, withSecretPhysicalIdsMaskedInState as il, beginDeleteWait as in, stackSecretNamesMasker as io, dropFailedCommands as ir, responsePresignClient as is, reverseMapSecondaryIndex as it, malformedExportSourceWarning as iu, diffSecurity as j, withoutSuperseded as ja, isNamelessDynamicReferenceError as jc, loadPublishableAssetManifest as jd, demoteSupersededOrphans as ji, malformedResourceEntriesWarning as jl, isReceiver as jn, LAMBDA_PERMISSION_STATEMENT_KEYS as jo, withMovedTo as jr, isSelectOutOfBounds as js, isDynamoDBTableArnIn as jt, findHandledUnwrittenCreateOnly as ju, findServiceTokenRefusals as k, supersededHolderOf as ka, isImpossibleEmptyStoredAttribute as kc, isDefaultBootstrapBucketName as kd, planRollback as ki, malformedLocalResourceEntriesWarning as kl, updateRefactorMarker as kn, withStackRecords as ko, movedToHint as kr, markWaitAbandoned as ks, clearTagWrites as kt, hasReadableResources as ku, crossStackOutputProvenanceSource as l, secretBearingStateKeyWarning as la, isUnboundTemplateParameter as lc, isSensitiveAttributeName as ld, displayAssemblyPath as lf, PLANNED_EARLY_DELETE_CONSEQUENCE as li, maskedPropertyFingerprintsOf as ll, DELETE_INDEX_WAIT_PROCEED_NOTE as ln, PRE_DELETE_SNAPSHOT_TYPES as lo, sameJournaledOrphans as lr, withPrintingSecrets as ls, isRefusedWarmThroughput as lt, refuseMalformedOutputs as lu, parentSuppliedValues as m, isWholeDynamicReferenceValue as ma, refStateLookupFromResource as mc, listNestedTemplateRows as md, resolveBucketRegion as mf, settleUnsettledPrevious as mi, declaresNoEcho as ml, relayedIndexBusyDelete as mn, refusesFinalSnapshot as mo, DeploymentEventsStore as mr, localCustomResourceCommand as ms, KINESIS_DESTINATION_SETTLE_POLL_MS as mt, malformedRenderedContainersWarning as mu, applyStackTagsToTemplate as n, namesAnyDeclaredParameter as na, dnsEntryStrings as nc, applyCrossPrefixScan as nd, hasOwnKey as nf, sgProtocolKey as ni, secretPhysicalIdSegment as nl, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as nn, secretNamedAttributeNamesOf as no, withNestedStackContext as nr, applyCustomResourceResponseExpiration as ns, localSecondaryIndexesKey as nt, repairMalformedOrphansForReadOnly as nu, checkNestedSsmNames as o, displayTextOrWithheld as oa, s3BucketRegionalDomainName as oc, stackInstanceIdOf as od, absoluteAssemblyPathEscape as of, replayFailedOperations as oi, getTopLevelKeysHoldingUnreadableCreateOnly as ol, deleteBudgetKey as on, storedSecretNameNeedles as oo, isHandledOrphan as or, readsNoEchoDeleteValues as os, coerceWarmThroughput as ot, malformedOutputsRefusalMessage as ou, conditionInputsFrom as p, exportNameSecretExposure as pa, isStalePlaceholderArnAttribute as pc, isAbsoluteAssetPath as pd, clearBucketRegionCache as pf, recordAfterRollbackUpdate as pi, passedParameterClassesOf as pl, maskedLogger as pn, isFinalSnapshotError as po, DeploymentEventsReader as pr, customResourcesRunWithoutApp as ps, warmThroughputAlreadyMatches as pt, refuseDivergentRecordRegionForDestroy as pu, streamDeclaresTags as q, withAttemptedItemsMasked as qa, isStatefulRecreateTargetForReplace as qc, getBootstrapMarkerKey as qd, nameGenerationHighWaterOf as qi, refuseMalformedResourcePropertiesForExport as ql, dropSettledNestedJournals as qn, ProviderRegistry as qo, sgRuleOwnershipIdentity as qr, AWS_CREDENTIAL_ENV_KEYS as qs, completeTableContributorInsightsBaseline as qt, S3StateBackend as qu, isSecretBearingReferenceString as r, reachableDivergentParameters as ra, s3BucketArn as rc, crossPrefixDeniedWarning as rd, hasPlainPrototype as rf, canonicalizeIpv6Cidr as ri, secretSegmentsOfState as rl, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as rn, secretNamedRecordNeedles as ro, deleteJournaledOrphans as rr, customResourceResponseExpirationWarning as rs, projectIndexesOnto as rt, malformedExportNamesWarning as ru, nestedSsmNameDeferredNote as s, exportAliasCollisionScrubWarning as sa, s3BucketWebsiteUrl as sc, withStackInstanceIdWithheld as sd, assemblyPathEscape as sf, replayRollback as si, tryGetTopLevelWriteOnlyProperties as sl, resolveDynamoDbDeleteBudgetClock as sn, extractDeploymentEventError as so, journaledOrphanLines as sr, isCustomResourceType$1 as ss, declaresWarmThroughput as st, malformedOutputsWarning as su, DeployEngine as t, computeParameterTaint as ta, isUnexposedRecordedIdentity as tc, CrossPrefixScanCache as td, defineOwnKey as tf, sgCidrKey as ti, maskedSecretSegment as tl, stripIndexContributorInsights as tn, secretNamePrintingBags as to, getCurrentNestedStackContext as tr, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as ts, gsiUnsendableChangeRefusal as tt, refuseMalformedOrphansForDestroy as tu, inheritedProvenanceForChildDiff as u, secretSafeKeyDisplay as ua, parameterTypeMayLoseSecretIdentity as uc, stringifyValue as ud, namesTheSameDirectory as uf, earlyDeleteWhen as ui, movedMaskedProperties as ul, INDEX_SETTLE_POLL_INTERVAL_MS as un, ccRoutedFinalSnapshotError as uo, makeForeignHolderScan as ur, NO_LOCAL_CUSTOM_RESOURCES_FLAG as us, readbackWarmThroughput as ut, refuseMalformedOutputsForDestroy as uu, pendingMovesOutOf as v, isExportAliasCollision as va, extractGetAttRefs as vc, isListParameterType as vd, equalModuloMask as vi, malformedOrphanRecordsRefusalMessage as vl, hasCdkAutoDeleteTag as vn, collectGroupsAddedBySiblings as vo, noEchoMacBinding as vr, waitForLambdaFunctionActive as vs, isPlainCapacityBlock as vt, refuseMalformedResourcesForDestroy as vu, slashedSsmNameHealNote as w, holdsSupersededResources as wa, recordedReferenceRegions as wc, synthesizedStacks as wd, earliestDefined as wi, refuseMalformedOrphansForOrphan as wl, readRefactorMarkerOnce as wn, awaitInFlightSibling as wo, formatChangeCounts as wr, deleteLeftInPlace as ws, sseSpecificationRefusal as wt, withheldAccountClause as wu, warnLegacySpelling as x, DEFAULT_RESOURCE_WARN_AFTER_MS as xa, outputReferenceProvenanceOf as xc, purgeNoncurrentKeyVersions as xd, updatePartialReason as xi, previewableOrphanRecords as xl, keptForRetainedRecord as xn, isStoredExpression as xo, noEchoValueMacsOf as xr, RollbackInlinePolicyWriters as xs, maskLeafValue as xt, repairMalformedResourcesForReadOnly as xu, pendingMovesRefusalMessage as y, bindingSkippedOutputs as ya, promoteInPlaceAttributeDependents as yc, ssmResolvedValueType as yd, undeclaredEmptyObservedKeys as yi, malformedOrphanRecordsWarning as yl, isTruthyCfnBoolean as yn, collectManagedPolicyArnsAttachedBySiblings as yo, noEchoMacParametersOf as yr, CloudControlProvider as ys, isTableName as yt, refuseMalformedResourcesForExport as yu, STREAM_POLICY_KEY as z, gray as za, replacementSidesForLog as zc, resolveFileAssetSourcePath as zd, computeImplicitDeleteEdges as zi, refuseMalformedResourceEntriesForOrphan as zl, licensedNameHolder as zn, policyDocumentMatchesDeclared as zo, parseMappingFile as zr, refuseUnreadableCdkCrossAccountRefs as zs, readTtlSpec as zt, PROPERTY_COVERAGE_BY_TYPE as zu };
58445
- //# sourceMappingURL=deploy-engine-BsKzx9ys.js.map
60032
+ export { streamTagsMatchDeclared as $, journaledOrphanPrintingBag as $a, withSecretPhysicalIdsMaskedInState as $c, resolveAssemblyPath as $d, resourcesNamingDeclaredParameter as $i, malformedOutputsWarning as $l, recordDisplacedSkips as $n, wouldReturnToSdkProvider as $o, siblingRecordedSgRuleIds as $r, callerEnvCredentials as $s, planContributorInsightsOp as $t, findNestedTemplateTreeDefect as $u, deferredServiceTokenWarning as A, withPreviousPolicies as Aa, carriesFetchableDynamicReference as Ac, ensureAssetStorage as Ad, recheckFailedPlan as Ai, refuseMalformedResourceEntriesForImport as Al, refuseRefactorMarker as An, revertStackRecordsView as Ao, findRefactorHints as Ar, getReadOnlyPropertyPaths as As, tableNameReleaseWait as At, providerReplacementOldDeleted as Au, readProtection as B, bold as Ba, shownType as Bc, getCdkdAssetBucketName as Bd, orphanNeedsIdentity as Bi, refuseMalformedResourcePropertiesForOrphan as Bl, macWriteOnlyKeys as Bn, lambdaPermissionMatchesDeclared as Bo, looselyEqual as Br, connectInstanceIdOf as Bs, isTtlRateLimited as Bt, rebuildClientForBucketRegion as Bu, warnLegacySpelling as C, supersededHeldByOtherTypeWarning as Ca, keepHeldTokenProvenance as Cc, getDockerImageBySourceHash as Cd, acquireIdempotencyToken as Ci, malformedLocalResourcesWarning as Cl, NestedCleanupQueue as Cn, collectPrincipalsAttachingPolicy as Co, noEchoMacVerdict as Cr, waitForGoneAfterDelete as Cs, mapSSESpecification as Ct, findHandledUnwrittenCreateOnly as Cu, slashedSsmNameHealPendingNote as D, replacedDeleteFailureVerdict as Da, withoutVersionAttestation as Dc, warnAbsoluteAssetPath as Dd, isJournaledOrphan as Di, refuseMalformedResourceEntries as Dl, readRefactorMarkerOnce as Dn, awaitInFlightSibling as Do, formatChangeCounts as Dr, deleteLeftInPlace as Ds, sseSpecificationRefusal as Dt, NO_CC_HANDLERS_REASON as Du, slashedSsmNameHealNote as E, withoutSuperseded as Ea, recordedReferenceRegions as Ec, resolveFileAssetSourcePath as Ed, demoteSupersededOrphans as Ei, refuseMalformedResourceAttributesForOrphan as El, readRefactorMarker as En, withoutSiblingOwned as Eo, findDestructiveChanges as Er, deleteIndeterminateGuards as Es, readCapacityNumber as Et, withoutSdkUnwiredProperties as Eu, recordedProtectionEvidence as F, sgCidrKey as Fa, INTRINSIC_KEYS as Fc, parseBootstrapMarker as Fd, attemptUsesCompletedCreate as Fi, malformedDriftResourcePropertiesWarning as Fl, removeSignalReceiverNamed as Fn, OWN_WRITE_REREAD_DELAYS_MS as Fo, changedReferenceInDiff as Fr, isSelectOutOfBounds as Fs, recordTagWrite as Ft, S3StateBackend as Fu, declaredStreamTagsMember as G, yellow as Ga, isWarmThroughputDecrease as Gc, nullPrototypeRecord as Gd, retiredNameGenerationsAfter as Gi, malformedOrphansWarning as Gl, pendingRequestCount as Gn, warnUnsettledMember as Go, referencedLogicalIds as Gr, assertFlagRoleArn as Gs, readbackVectorIndexes as Gt, isAccessDenied$1 as Gu, STREAM_POLICY_KEY as H, gray as Ha, isStatefulRecreateTargetForReplace as Hc, defineOwnKey as Hd, nameGenerationHighWaterOf as Hi, UNREADABLE_ORPHANS_CONTAINER_ROW as Hl, licensedNameHolder as Hn, policyDocumentMatchesDeclared as Ho, parseMappingFile as Hr, producerLookupOver as Hs, readTtlSpec as Ht, CrossPrefixScanCache as Hu, recordedProtectionNote as I, sgProtocolKey as Ia, LEGACY_HANDLE_HEAL_REASON as Ic, readBootstrapMarkerBody as Id, readsRegeneratingSecret as Ii, malformedResourcePropertiesWarning as Il, settleStackTagChildRuns as In, SNS_DEFAULT_POLICY_ID as Io, changedReferencePath as Ir, isAlwaysLiveAttribute as Is, settleWrittenTags as It, splitImportedOps as Iu, reverseMapStreamPolicy as J, noEchoExactEchoLeavesOf as Ja, APPSYNC_APIKEY_ARN_RESOURCE_PATH as Jc, assemblyPathEscape as Jd, getCurrentProducerRegions as Ji, repairMalformedOrphansForReadOnly as Jl, displacedOpClause as Jn, policyContentKey as Jo, undeclaredGrantSiblingMembers as Jr, isIamRoleArn as Js, vectorIndexesShapeDetail as Jt, withStackInstanceIdWithheld as Ju, planStreamMemberOps as K, noEchoAttributeNamesOf as Ka, toCfnInteger as Kc, ownValue as Kd, retiredNameGenerationsLeaving as Ki, refuseMalformedOrphans as Kl, resolvePendingCloudControlRequests as Kn, verbatimEchoDriftKeys as Ko, siblingOwnedRevertDesired as Kr, assertSendableRoleArn as Ks, vectorIndexesForCreate as Kt, isNotImplemented as Ku, PROTECTION_PROPERTY_BY_TYPE as L, canonicalizeIpv6Cidr as La, LEGACY_HANDLE_ID_PREFIX as Lc, validateAssetBucketName as Ld, segmentCleanupOptions as Li, refuseMalformedResourcePropertiesForDestroy as Ll, childRowTags as Ln, declaredMemberDocument as Lo, changedReferenceReason as Lr, poisonRenderedSpellingsCollidingIn as Ls, tagsMatchDeclared as Lt, readOnlyStateVersionOf as Lu, serviceTokenBlockingReason as M, SG_RULE_ID_PATTERN as Ma, carriesDynamicReference as Mc, assertAssetBucketRegion as Md, replacementNeverSwapped as Mi, refuseMalformedResourceEntriesForOrphan as Ml, updateRefactorMarker as Mn, withStackRecords as Mo, movedToHint as Mr, markWaitAbandoned as Ms, clearTagWrites as Mt, planSubscriptionAttributes as Mu, diffSecurity as N, cfnIngressPortValue as Na, keepsSecretReferenceToken as Nc, isCrossRegionRedirect as Nd, IMPLICIT_DELETE_DEPENDENCIES as Ni, repairMalformedResourceEntriesForReadOnly as Nl, deleteSignalReceiver as Nn, KMS_DEFAULT_KEY_POLICY_ID as No, rollbackOrphanIds as Nr, DiffCalculator as Ns, declaredTagsReadback as Nt, wireAttributeValue as Nu, scanActiveConsumers as O, snapshotSegmentSurvivors as Oa, getAccountInfo as Oc, warnWholeAssemblyAsSource as Od, isReplacementOrphan as Oi, refuseMalformedResourceEntriesForDeploy as Ol, refactorMarkerMovesOf as On, destroyStackRecordsView as Oo, formatDestructiveChange as Or, deleteSkipReason as Os, sseSpecificationToSend as Ot, hasNoCloudControlHandlers as Ou, isScrutinizedProperty as P, recordedSgRuleId as Pa, withSharedDrainBudget as Pc, getBootstrapMarkerKey as Pd, computeImplicitDeleteEdges as Pi, unreadableResourceEntries as Pl, isReceiver as Pn, LAMBDA_PERMISSION_STATEMENT_KEYS as Po, withMovedTo as Pr, IntrinsicFunctionResolver as Ps, isDynamoDBTableArnIn as Pt, TemplateParser as Pu, streamPolicyMatchesDeclared as Q, completedReplayEntries as Qa, secretSegmentsOfState as Qc, renderAssemblyPathEscape as Qd, reachableDivergentParameters as Qi, malformedOutputsRefusalMessage as Ql, nestedChildStackName as Qn, isCustomResource as Qo, siblingOwnedSgRuleIdentities as Qr, applyCallerIdentityCredentials as Qs, indexDeclaresContributorInsights as Qt, missingStateBucketRemedy as Qu, isProtectionValueActive as R, canonicalizeIpv4Cidr as Ra, isLegacyHandleId as Rc, validateContainerRepoName as Rd, removeProtectionTypeList as Ri, refuseMalformedResourcePropertiesForDrift as Rl, childStackTags as Rn, declaredPolicyDocument as Ro, differingRemedy as Rr, stackIdTailOf as Rs, takeTagWrite as Rt, hasReasonlessBaselineRefusal as Ru, refusePendingMovesOut as S, supersededDependentsFirst as Sa, parseWebACLArn as Sc, AssetManifestLoader as Sd, withCreateTokenLedger as Si, malformedLocalResourceEntriesWarning as Sl, isTruthyCfnBoolean as Sn, collectManagedPolicyArnsAttachedBySiblings as So, noEchoMacParametersOf as Sr, CloudControlProvider as Ss, isTableName as St, findActionableSdkUnwired as Su, slashedSsmNameHealAdoptedNote as T, supersededResourcesOf as Ta, recordedOutputReferenceRegions as Tc, parseAssetManifestBody as Td, seedsDeleteFirstGuard as Ti, malformedScrubResourceEntriesRefusalMessage as Tl, recordRetainedForReadoption as Tn, withoutSiblingAttachedArns as To, constructPathOf as Tr, UNSPECIFIED_SKIP_REASON as Ts, pointInTimeRecoveryRefusal as Tt, unwrittenCreateOnlyReplacement as Tu, STREAM_TAGS_KEY as U, green as Ua, isStatefulRecreateTargetSync as Uc, hasOwnKey as Ud, nameScopeOf as Ui, hasReadableOrphans as Ul, formatResourceLine as Un, reReadUntilSettled as Uo, propertiesChangedReason as Ur, refuseUnreadableCdkCrossAccountRefs as Us, sendTtlWaitingOutRateLimit as Ut, applyCrossPrefixScan as Uu, DynamoDBGlobalTableProvider as V, cyan as Va, MULTI_REGION_RECREATE_BLOCKED_TYPES as Vc, getCdkdContainerRepoName as Vd, nameGenerationCarriedFrom as Vi, repairMalformedResourcePropertiesForReadOnly as Vl, readsOnlyNoEchoParameters as Vn, memberReadFailure as Vo, mappingPairs as Vr, resolveDynamicReferences as Vs, planTimeToLive as Vt, CrossPrefixReadError as Vu, declaredStreamPolicyMember as W, red as Wa, renderStatefulReason as Wc, hasPlainPrototype as Wd, retiredAfterRollback as Wi, malformedOrphansRefusalMessage as Wl, startForceQuitFlushes as Wn, settleDeclaredMember as Wo, proposeRenames as Wr, applyRoleArnIfSet as Ws, planVectorIndexUpdates as Wt, crossPrefixDeniedWarning as Wu, streamDeclaresTags as X, withAttemptedItemsMasked as Xa, maskedSecretSegment as Xc, displayAssemblyPath as Xd, computeParameterTaint as Xi, malformedExportSourceWarning as Xl, dropSettledNestedJournals as Xn, ProviderRegistry as Xo, sgRuleOwnershipIdentity as Xr, sendableAssumeRoleCommand as Xs, completeTableContributorInsightsBaseline as Xt, isSensitiveAttributeName as Xu, streamDeclaresPolicy as Y, noEchoParameterNamesOf as Ya, displayPhysicalId as Yc, describeFileReadFailure as Yd, inheritProducerRegions as Yi, malformedExportNamesWarning as Yl, displacedPhysicalIdShown as Yn, CC_BROKEN_REASON as Yo, recordedRuleIdOf as Yr, parseIamRoleArn as Ys, CONTRIBUTOR_INSIGHTS_KEY as Yt, isSecretValuedAttribute as Yu, streamMemberRefusals as Z, createReadOnlyAttributeHealerFactory as Za, secretPhysicalIdSegment as Zc, namesTheSameDirectory as Zd, namesAnyDeclaredParameter as Zi, malformedLocalOutputsWarning as Zl, getNestedRevertRun as Zn, ccBrokenReason as Zo, sgSiblingDecidedById as Zr, AWS_CREDENTIAL_ENV_KEYS as Zs, contributorInsightsRefusals as Zt, stringifyValue as Zu, readRecordedConditionVerdicts as _, maskingRetryLogger as _a, cfnRefValueFromPhysicalId as _c, isDefaultBootstrapRepoName as _d, findUpdatePolicyReplacementRefusals as _i, refuseMalformedOrphansForOrphan as _l, relayedIndexBusyDelete as _n, refusesFinalSnapshot as _o, DeploymentEventsStore as _r, localCustomResourceCommand as _s, KINESIS_DESTINATION_SETTLE_POLL_MS as _t, STATE_RESOURCES_MALFORMED as _u, mergeNoChangeOutputs as a, secretSafeKeyDisplay as aa, withoutLapsedStaleShapeStamp as ac, isListParameterType as ad, earlyDeleteWhen as ai, maskedInputProof as al, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as an, secretNamedAttributeNamesOf as ao, withNestedStackContext as ar, applyCustomResourceResponseExpiration as as, localSecondaryIndexesKey as at, refuseDivergentRecordRegionForDestroy as au, pendingMovesOutOf as b, isSupersededResourceRecord as ba, lacksRecordedRefArn as bc, redirectFileAsset as bd, ledgerForStack as bi, unreadableOrphanRecords as bl, S3_AUTO_DELETE_OBJECTS_TAG as bn, buildFinalSnapshotIdentifier as bo, createNoEchoValueMacs as br, withCustomResourceStack as bs, hasUsableDeclaredCapacity as bt, hasReadableOutputs as bu, nestedSsmNameRowNote as c, exportNameSecretExposure as ca, s3BucketArn as cc, purgeNoncurrentKeyVersions as cd, recordAfterRollbackUpdate as ci, maskedPropertyFingerprint as cl, compensateRemovedDeletionProtection as cn, stateSecretNameNeedles as co, dropFailedHint as cr, TemplateNoEchoReresolver as cs, sameJsonValue as ct, malformedStateRefusalMessage as cu, makeCanonicalizePropertiesFn as d, collectDeclaredOutputNames as da, s3BucketRegionalDomainName as dc, synthesizedStacks as dd, calculateResourceDrift as di, malformedOrphanRecordsRefusalMessage as dl, resolveDynamoDbDeleteBudgetMs as dn, ATOMIC_FINAL_SNAPSHOT_TYPES as do, loadJournaledOrphans as dr, getCurrentResourceSecrets as ds, desiredBagIsInformative as dt, refuseMalformedResourcesForExport as du, WITHHELD_NAME_DISPLAY as ea, envCredentialsAreAssumedRole as ec, isAbsoluteAssetPath as ed, clearBucketRegionCache as ef, withoutSiblingOwnedSgRules as ei, getSettledWriteOnlyPropertyPaths as el, planIndexContributorInsightsOps as en, maskEventTextWithBoundBags as eo, revertNestedChildFromJournal as er, WaitConditionSignalStore as es, canonicalizeStaleIndexDescription as et, refuseMalformedNestedChildOutputs as eu, readDbInstanceAvailabilityZone as f, collectPublishedOutputNames as fa, s3BucketWebsiteUrl as fc, buildAssetRedirectMap as fd, equalModuloMarkedMask as fi, malformedOrphanRecordsWarning as fl, DELETE_INDEX_WAIT_PROCEED_NOTE as fn, PRE_DELETE_SNAPSHOT_TYPES as fo, sameJournaledOrphans as fr, withPrintingSecrets as fs, isRefusedWarmThroughput as ft, refuseMalformedState as fu, parentSuppliedValues as g, DEFAULT_RESOURCE_WARN_AFTER_MS as ga, AWS_NO_VALUE as gc, isDefaultBootstrapBucketName as gd, updatePartialReason as gi, refuseMalformedOrphanRecordsForDestroy as gl, maskedLogger as gn, isFinalSnapshotError as go, DeploymentEventsReader as gr, customResourcesRunWithoutApp as gs, warmThroughputAlreadyMatches as gt, withheldAccountClause as gu, conditionInputsFrom as h, DEFAULT_RESOURCE_TIMEOUT_MS as ha, parameterTypeMayLoseSecretIdentity as hc, flattenAssetPlaceholders as hd, updatePartialMessage as hi, refuseMalformedOrphanRecords as hl, deleteTableWithIndexBusyRetry as hn, effectiveDeletionPolicy as ho, planOrphanAdoption as hr, customResourcesFailedWithoutApp as hs, trimUnsentWarmMembers as ht, accountArgs as hu, keptWholeReasonText as i, secretBearingStateKeyWarning as ia, regionLessSecretName as ic, SSM_PARAMETER_VALUE_PREFIX as id, PLANNED_EARLY_DELETE_CONSEQUENCE as ii, parameterInputsFor as il, stripIndexContributorInsights as in, secretNamePrintingBags as io, getCurrentNestedStackContext as ir, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as is, gsiUnsendableChangeRefusal as it, STATE_REGION_DIVERGED as iu, findServiceTokenRefusals as j, findNestedStackTypeChanges as ja, isNamelessDynamicReferenceError as jc, buildDenyExternalAccessPolicy as jd, recordUnderIdIsNotOwn as ji, refuseMalformedResourceEntriesForImportSave as jl, sameMove as jn, verifiedIdentityCache as jo, hintSidesOf as jr, isWaitAbandonedError as js, TAGS_BASELINE_REREAD_DELAYS_MS as jt, normalizeRecordName as ju, inRunStackKey as k, resolveReplacementOldType as ka, isImpossibleEmptyStoredAttribute as kc, AssetModeResolver as kd, planFailedOps as ki, refuseMalformedResourceEntriesForDestroy as kl, refactorMarkerRefusalMessage as kn, getStackRecords as ko, orphanedLogicalIds as kr, withIndeterminateGuard as ks, tableDeleteGoneWait as kt, PROPERTY_COVERAGE_BY_TYPE as ku, crossStackOutputProvenanceSource as l, isWholeDynamicReferenceValue as la, s3BucketDomainName as lc, decodeListingKey as ld, settleUnsettledPrevious as li, deployRefusesOrphanRowsReason as ll, deleteBudgetKey as ln, storedSecretNameNeedles as lo, isHandledOrphan as lr, readsNoEchoDeleteValues as ls, coerceWarmThroughput as lt, refuseMalformedResourcesForDeploy as lu, conditionFingerprint as m, bindingSkippedOutputs as ma, isUnboundTemplateParameter as mc, createLazyAssetModeContext as md, undeclaredEmptyObservedKeys as mi, previewableOrphanRecords as ml, TABLE_INDEX_NOUN as mn, ccRoutedInstanceTakesNoSnapshot as mo, makeSiblingClaimReader as mr, customResourceStackName as ms, sentWarmThroughputMembers as mt, JSON_LISTING_HOLE_VALUE as mu, applyStackTagsToTemplate as n, exportAliasCollisionScrubWarning as na, classifyReplaySecretRegion as nc, renderNestedTemplateTreeDefect as nd, replayRollback as ni, tryGetTopLevelWriteOnlyProperties as nl, reverseMapIndexContributorInsights as nn, orphanRecordsPrintingBag as no, withNestedRevertRun as nr, evaluateSignals as ns, deletionProtectionRefusal as nt, refuseMalformedOutputsForDestroy as nu, checkNestedSsmNames as o, carriedExportAliasExposure as oa, isUnexposedRecordedIdentity as oc, ssmResolvedValueType as od, earlyDeletedOld as oi, passedParameterClassesOf as ol, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as on, secretNamedRecordNeedles as oo, deleteJournaledOrphans as or, customResourceResponseExpirationWarning as os, projectIndexesOnto as ot, malformedRenderedContainersWarning as ou, healZonelessDbInstanceRecords as p, isExportAliasCollision as pa, coerceParameterTypedValue as pc, createAssetRedirectResolver as pd, equalModuloMask as pi, malformedOrphanRowsKeptWarning as pl, INDEX_SETTLE_POLL_INTERVAL_MS as pn, ccRoutedFinalSnapshotError as po, makeForeignHolderScan as pr, NO_LOCAL_CUSTOM_RESOURCES_FLAG as ps, readbackWarmThroughput as pt, repairMalformedResourcesForReadOnly as pu, readStreamPolicy as q, noEchoComparisonForTemplate as qa, toFiniteNumber as qc, absoluteAssemblyPathEscape as qd, withNameGenerationReached as qi, refuseMalformedOrphansForDestroy as ql, NESTED_PENDING_PARENT_REASON as qn, attemptedPolicyDocument as qo, stripSiblingOwnedParentMembers as qr, explicitRoleArnOrThrow as qs, vectorIndexesSettled as qt, stackInstanceIdOf as qu, isSecretBearingReferenceString as r, secretBearing as ra, producerRegionsFromState as rc, templateIdentity as rd, DELETED_RESOURCE_REMEDY as ri, maskedPropertyFingerprintsOf as rl, reverseMapTableContributorInsights as rn, secretNamePrintingBag as ro, collectNestedChildUnaddressed as rr, isSignalKey as rs, desiredIndexEntriesByName as rt, repairMalformedOutputsForReadOnly as ru, nestedSsmNameDeferredNote as s, exportNameNoEchoParameters as sa, dnsEntryStrings as sc, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as sd, buildReadCurrentStateContext as si, declaresNoEcho as sl, beginDeleteWait as sn, stackSecretNamesMasker as so, dropFailedCommands as sr, responsePresignClient as ss, reverseMapSecondaryIndex as st, malformedResourcesWarning as su, DeployEngine as t, displayTextOrWithheld as ta, classifyRecordedSecretRegion as tc, listNestedTemplateRows as td, resolveBucketRegion as tf, replayFailedOperations as ti, getTopLevelKeysHoldingUnreadableCreateOnly as tl, readContributorInsightsSpec as tn, namingSecretsWithRecordedNoEcho as to, revertedNestedRowIds as tr, classifyHandleUrl as ts, declaresIndexList as tt, refuseMalformedOutputs as tu, inheritedProvenanceForChildDiff as u, noEchoParameterValueSeed as ua, s3BucketDualStackDomainName as uc, rememberSynthesizedStacks as ud, withUnprovenUnsettled as ui, isReadableOrphanRecord as ul, resolveDynamoDbDeleteBudgetClock as un, extractDeploymentEventError as uo, journaledOrphanLines as ur, isCustomResourceType$1 as us, declaresWarmThroughput as ut, refuseMalformedResourcesForDestroy as uu, childTemplateLoader as v, deleteSupersededEntry as va, isStalePlaceholderArnAttribute as vc, loadPublishableAssetManifest as vd, replacementCreateRoutesToCloudControl as vi, repairMalformedOrphanRecordsForReadOnly as vl, waitForIndexesSettled as vn, unsupportedFinalSnapshotError as vo, crossStackReadsForPartialSave as vr, localCustomResourceRuntimeActive as vs, KINESIS_DISABLE_PENDING_STATUSES as vt, UNREADABLE_RESOURCES_MAP_ROW as vu, healSlashedSsmParameterNames as w, supersededHolderOf as wa, outputReferenceProvenanceOf as wc, isCfnTemplateAssetPath as wd, planRollback as wi, malformedResourceEntriesWarning as wl, keptForRetainedRecord as wn, isStoredExpression as wo, noEchoValueMacsOf as wr, RollbackInlinePolicyWriters as ws, maskLeafValue as wt, findSdkUnwiredProperties as wu, pendingMovesRefusalMessage as x, supersededAfterRollback as xa, lacksRecordedTableArn as xc, rewriteTemplateAssetReferences as xd, reserveStackCreateToken as xi, isReadableResourceEntry as xl, hasCdkAutoDeleteTag as xn, collectGroupsAddedBySiblings as xo, noEchoMacBinding as xr, waitForLambdaFunctionActive as xs, isPlainCapacityBlock as xt, hasReadableResources as xu, hasPendingMovesOut as y, holdsSupersededResources as ya, refStateLookupFromResource as yc, redirectDockerAsset as yd, earliestDefined as yi, unpreviewableOrphanRecords as yl, ECR_AUTO_DELETE_IMAGES_TAG as yn, createPreDeleteFinalSnapshot as yo, NOECHO_MAC_KEY_ALIAS as yr, setLocalCustomResourceRuntimeEnabled as ys, deleteTableRetryDelays as yt, displayLogicalId as yu, perType as z, canonicalizeIpProtocolValue as za, findReplacedReadersOfRecreateTargets as zc, BOOTSTRAP_MARKER_PREFIX as zd, removeProtectionTypes as zi, refuseMalformedResourcePropertiesForExport as zl, literalRowTags as zn, efsPolicyMatchesDeclared as zo, isPairableType as zr, isSettledInstanceState as zs, isTtlAlreadyDisabled as zt, hasUnverifiableParameterRefusal as zu };
60033
+ //# sourceMappingURL=deploy-engine-D6iEbD4R.js.map