@cdkd/cli 0.366.1 → 0.366.3

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 (52) hide show
  1. package/dist/{ambient-client-defaults-CvOlhm1d.js → ambient-client-defaults-D4Iv5q9T.js} +7 -4
  2. package/dist/{ambient-client-defaults-CvOlhm1d.js.map → ambient-client-defaults-D4Iv5q9T.js.map} +1 -1
  3. package/dist/{asg-provider-CBS6w9nU.js → asg-provider-C6ZZEfBX.js} +6 -6
  4. package/dist/{asg-provider-CBS6w9nU.js.map → asg-provider-C6ZZEfBX.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-nKBSJ8xg.js → custom-resource-runtime-BcjqJN8N.js} +6 -6
  7. package/dist/{custom-resource-runtime-nKBSJ8xg.js.map → custom-resource-runtime-BcjqJN8N.js.map} +1 -1
  8. package/dist/{db-associated-roles-B1qNCxK9.js → db-associated-roles-DllYmRoV.js} +2 -2
  9. package/dist/{db-associated-roles-B1qNCxK9.js.map → db-associated-roles-DllYmRoV.js.map} +1 -1
  10. package/dist/{delete-started-BdH7k4V-.js → delete-started-B1_1Gx-5.js} +6 -6
  11. package/dist/{delete-started-BdH7k4V-.js.map → delete-started-B1_1Gx-5.js.map} +1 -1
  12. package/dist/{deploy-engine-BrbeNr1n.js → deploy-engine-Dtsub41u.js} +980 -413
  13. package/dist/deploy-engine-Dtsub41u.js.map +1 -0
  14. package/dist/{ec2-termination-protection-C-QH13lG.js → ec2-termination-protection-NjsX1wkX.js} +6 -6
  15. package/dist/{ec2-termination-protection-C-QH13lG.js.map → ec2-termination-protection-NjsX1wkX.js.map} +1 -1
  16. package/dist/{ecr-uri-7-3D0mhp.js → ecr-uri-oZsRnk-M.js} +2 -2
  17. package/dist/{ecr-uri-7-3D0mhp.js.map → ecr-uri-oZsRnk-M.js.map} +1 -1
  18. package/dist/{expected-bucket-owner-C9e1dPk6.js → expected-bucket-owner-DyUXGJMw.js} +2 -2
  19. package/dist/{expected-bucket-owner-C9e1dPk6.js.map → expected-bucket-owner-DyUXGJMw.js.map} +1 -1
  20. package/dist/{iam-role-provider-ChwJY8pn.js → iam-role-provider-D_1oapA-.js} +77 -18
  21. package/dist/{iam-role-provider-ChwJY8pn.js.map → iam-role-provider-D_1oapA-.js.map} +1 -1
  22. package/dist/{image-plan-B1aW8zVe.js → image-plan-BEvmQV_l.js} +9 -9
  23. package/dist/{image-plan-B1aW8zVe.js.map → image-plan-BEvmQV_l.js.map} +1 -1
  24. package/dist/index.js +5 -5
  25. package/dist/{logger-0WCzMnXc.js → logger-Dr5FQ5uQ.js} +2 -2
  26. package/dist/{logger-0WCzMnXc.js.map → logger-Dr5FQ5uQ.js.map} +1 -1
  27. package/dist/{neptune-provider-BEkpYrGj.js → neptune-provider-C0m4IHD7.js} +7 -7
  28. package/dist/{neptune-provider-BEkpYrGj.js.map → neptune-provider-C0m4IHD7.js.map} +1 -1
  29. package/dist/{program-73k0SoOP.js → program-DwAbyuS-.js} +1158 -1124
  30. package/dist/program-DwAbyuS-.js.map +1 -0
  31. package/dist/{provider-classes-COU3GAT5.js → provider-classes-Dc0pZOL3.js} +605 -484
  32. package/dist/provider-classes-Dc0pZOL3.js.map +1 -0
  33. package/dist/{rds-provider-D_ypFjdI.js → rds-provider-BH_C1IUh.js} +10 -10
  34. package/dist/{rds-provider-D_ypFjdI.js.map → rds-provider-BH_C1IUh.js.map} +1 -1
  35. package/dist/{read-replica-D012SPdT.js → read-replica-D8tp4_Dg.js} +3 -3
  36. package/dist/{read-replica-D012SPdT.js.map → read-replica-D8tp4_Dg.js.map} +1 -1
  37. package/dist/{replacement-rules-S9fm3-4G.js → replacement-rules-Cn95yn6B.js} +3 -3
  38. package/dist/{replacement-rules-S9fm3-4G.js.map → replacement-rules-Cn95yn6B.js.map} +1 -1
  39. package/dist/{resource-deadline-BiWaN52w.js → resource-deadline-Bbcb2bjo.js} +4 -4
  40. package/dist/{resource-deadline-BiWaN52w.js.map → resource-deadline-Bbcb2bjo.js.map} +1 -1
  41. package/dist/{restore-source-guard-BeTKRtrT.js → restore-source-guard-DA9TSeTJ.js} +4 -4
  42. package/dist/{restore-source-guard-BeTKRtrT.js.map → restore-source-guard-DA9TSeTJ.js.map} +1 -1
  43. package/dist/{run-cli-CF35Yn-t.js → run-cli-BU8F9JJg.js} +2 -2
  44. package/dist/{run-cli-CF35Yn-t.js.map → run-cli-BU8F9JJg.js.map} +1 -1
  45. package/dist/{settle-own-write-members-B4QcneiO.js → settle-own-write-members-D-eXBnXf.js} +12 -15
  46. package/dist/{settle-own-write-members-B4QcneiO.js.map → settle-own-write-members-D-eXBnXf.js.map} +1 -1
  47. package/dist/{version-Df9DK8jT.js → version-DS_Jdkik.js} +2 -2
  48. package/dist/{version-Df9DK8jT.js.map → version-DS_Jdkik.js.map} +1 -1
  49. package/package.json +1 -1
  50. package/dist/deploy-engine-BrbeNr1n.js.map +0 -1
  51. package/dist/program-73k0SoOP.js.map +0 -1
  52. package/dist/provider-classes-COU3GAT5.js.map +0 -1
@@ -1,15 +1,15 @@
1
- import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, a as UNSHOWABLE_VALUE, c as deployReplaceCommand, d as pasteableCommand, f as physicalIdShownBesideCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE } from "./version-Df9DK8jT.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-0WCzMnXc.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-CvOlhm1d.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-DS_Jdkik.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-Dr5FQ5uQ.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-D4Iv5q9T.js";
4
4
  import { a as getAssumedRoleCredentials, c as setAssumedRoleCredentials, d as quietS3Logger, f as ambientRegion, i as awsEndpointOverrideUrl, n as awsClientDefaults, o as getPreAssumeEnvCredentials, r as awsEndpointOverrideActive, t as SECOND_ROLE_PUBLISH_REFUSAL, u as setPreAssumeEnvCredentials } from "./aws-client-defaults-DAebi99J.js";
5
5
  import { l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
6
- import { A as IAM_PROPAGATION_MAX_DELAY_MS, B as phaseScopeForStack, C as prefetchCreateOnlyPropertyPaths, D as hasNoRegistrySchema, E as describeTypeWithThrottleRetry, G as timePhaseSync, H as recordPhase, I as ignoresUnmodifiedGroupSize, J as parseFailureDebugDetail, K as describeJsonParseFailure, L as rollingUpdatePolicy, M as CREATE_ONLY_PATHS_SNAPSHOT, N as INSTANCE_REFRESH_TRIGGER_PROPERTIES, O as isAwsEmulatorRegistryMiss, P as REPLACEMENT_TRIGGER_PROPERTIES, R as willReplaceGroup, S as isIntrinsicShaped, T as parseCreateOnlyPropertyPointers, V as phaseTimingsEnabled, W as timePhase, X as utf8ByteLength, Y as parseJsonNamingNoBody, _ as onlySecretReferencesDiffer, a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, d as isRefusedBeforeApplying, f as markRefusedBeforeApplying, g as withPriorAttempts, h as provenOrphanIdsInJournal, i as observeThenDisableInstanceApiTermination, j as withRetry, k as reportAwsEmulatorRegistryMiss, m as priorAttemptsInJournal, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as priorAttemptLookup, q as jsonParseFailureStandIn, r as isTerminationProtectionPropagationError, v as unchangedBehindSecretReference, w as templateResourceTypes, x as getCreateOnlyPropertyPaths, y as cachedCreateOnlyPropertyPaths, z as PhaseClock } from "./ec2-termination-protection-C-QH13lG.js";
6
+ import { A as IAM_PROPAGATION_MAX_DELAY_MS, B as phaseScopeForStack, C as prefetchCreateOnlyPropertyPaths, D as hasNoRegistrySchema, E as describeTypeWithThrottleRetry, G as timePhaseSync, H as recordPhase, I as ignoresUnmodifiedGroupSize, J as parseFailureDebugDetail, K as describeJsonParseFailure, L as rollingUpdatePolicy, M as CREATE_ONLY_PATHS_SNAPSHOT, N as INSTANCE_REFRESH_TRIGGER_PROPERTIES, O as isAwsEmulatorRegistryMiss, P as REPLACEMENT_TRIGGER_PROPERTIES, R as willReplaceGroup, S as isIntrinsicShaped, T as parseCreateOnlyPropertyPointers, V as phaseTimingsEnabled, W as timePhase, X as utf8ByteLength, Y as parseJsonNamingNoBody, _ as onlySecretReferencesDiffer, a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, d as isRefusedBeforeApplying, f as markRefusedBeforeApplying, g as withPriorAttempts, h as provenOrphanIdsInJournal, i as observeThenDisableInstanceApiTermination, j as withRetry, k as reportAwsEmulatorRegistryMiss, m as priorAttemptsInJournal, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as priorAttemptLookup, q as jsonParseFailureStandIn, r as isTerminationProtectionPropagationError, v as unchangedBehindSecretReference, w as templateResourceTypes, x as getCreateOnlyPropertyPaths, y as cachedCreateOnlyPropertyPaths, z as PhaseClock } from "./ec2-termination-protection-NjsX1wkX.js";
7
7
  import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
8
- import { A as assertRegionMatch, B as refusalTypeShown, Bt as segmentAfterAnchor, D as withoutServerErrorRetries, Ft as compositeIdSeparatorRefusal, G as compensateProtectionFlip, Gt as maskDeep, H as resolveExplicitPhysicalId, Ht as createMaskedLogSinks, J as observeThenDisableProtection, Jt as RETRY_AUXILIARY_OWNER, K as deleteWithProtectionCompensation, Kt as maskerOrIdentity, L as isQuotableImportValue, Lt as logicalIdShown, Mt as withUnchangedSecretPrincipalLists, Nt as canonicalizeRoute53QueryName, Qt as createdResourceIdentityBeforeFailure, R as normalizeAwsTagsToCfn, St as startInterruptWatch, U as isMarkedNotGone, Ut as createMaskedRetryLogger, Vt as stateOrphanRecordRemedy, W as markNotGone, Wt as isSecretDerivedValue, Zt as createdBeforeFailure, _n as WAIT_CONDITION_SIGNAL_PREFIX, at as isTerminalDeleteFailure, bn as withPasteableAwsProfile, ct as ElapsedBudget, d as CreatedResourceSink, dt as DELETION_PROTECTION_DOC_POINTER, en as isAuxiliaryFailure, f as clearCreatedReport, g as retractCreatedResource, gn as DEFAULT_STATE_PREFIX, gt as protectedReplacementAdvice, hn as CUSTOM_RESOURCE_RESPONSE_PREFIX, ht as pasteableAwsCommand, i as withResourceDeadline, it as ProtectionFlipRegistry, k as RESOURCE_NOT_FOUND, lt as ElapsedBudgetRegistry, m as reportCreatedResource, mn as sanitizeRecoveryValue, n as enclosingDeadlineRemainingMs, nn as markAuxiliaryFailure, o as prepareRemovalForUpdate, ot as protectionFlipKey, p as collectCreatedResources, pn as recoveryCommandFlags, qt as withDerivedNameMasks, r as whileEnclosingDeadlinesPaused, rn as markCreatedBeforeFailure, s as removalWarning, st as runDeleteAttempt, t as enclosingDeadlineExpired, tn as isAuxiliaryMarkOf, u as withoutInjectedRemovals, ut as monotonicNowMs, wn as producerRecordKey, xn as injectiveKey, xt as isInterruptedWaitError, z as quotedRemedyLogicalId, zt as resourceTypeShown } from "./resource-deadline-BiWaN52w.js";
9
- import { t as expectedOwnerParam } from "./expected-bucket-owner-C9e1dPk6.js";
10
- import { At as SURVIVOR_IDENTITY_ATTRIBUTES, Bt as describeRegionValueKind, Et as identityWarner, Ft as keepRecordedIdentity, Gt as isReadableBag, It as newCopyDeleteAttributes, Jt as shouldRetainResource, Kt as orphansAfterRollback, Lt as replaceDeadIdentity, Nt as isRecordedIdentityAttribute, Ot as recordedIdentityId, Pt as isUsableIdentityValue, Tt as differingIdentityWarning, Ut as importableOutputKeys, Vt as exportNamesCarriedFrom, Wt as importableOutputs, Xt as stackInstanceIdCarriedFrom, Yt as skippedOutputsCarriedFrom, bt as lookupEachName, gt as deniedIdentityReadRefusal, ht as dbInstanceAttributes, i as dbClusterAttributes, jt as attributesAfterUpdate, kt as slowCcOperationTimeoutMs, n as isRefusedByName, qt as orphansCarriedFrom, r as markDeleteStarted, t as isDeleteStarted, wt as assertRecordedIdentity, yt as isAccessDeniedError, zt as acceptedCreateOnlyDropsOf } from "./delete-started-BdH7k4V-.js";
11
- import { $t as recordInheritedParameterValue, A as witnessNormalize, An as recordNoEchoAttributeValues, At as withoutPhysicalNameCopies, B as redactionClaimOf, Cn as noEchoParameterPlaintextsOf, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dn as recordFreshNoEchoValuesIn, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, En as recordDerivedMaskOnlyValue, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, G as foldRecording, Gt as recordTakenIfBranch, H as mixedLiteralAnswered, Ht as splitOutsideDynamicReferences, I as markSameGenerationBag, In as isDynamicReferenceString, It as secretRerenderPairs, J as hasPassProvenance, Jt as templateRereadsAccountId, K as openRecordingScope, Kt as inheritedPseudoValue, L as mergeResolvedPairs, Ln as isSingleDynamicReferenceToken, M as carryRedactionMarks, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as withoutNoEchoParameterEntries, Q as recordReferenceResolution, Qt as recordInheritedParameterRead, R as recordIntrinsicLeafResolution, Rn as maskMatchSpans, S as noEchoParametersReadBy, Sn as markNoEchoParameterClass, St as replaceWholeLeaves, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as standsForInheritedSecret, V as resolvedPlaintextOf, Vt as rereadParameterExpression, W as redactForState, Wt as recordDroppedArrayElements, X as passReadVersionsFor, Xt as inheritedParameterExpression, Y as passProvenanceFor, Yt as inheritNestedStackParameterAssociations, Z as recordReferenceProvenanceEntry, Zt as inheritedRenderedToken, _ as noEchoComparison, _n as freshNoEchoValuesOf, _t as maskSecretsInText, an as recordRecoverableMaskedOutput, at as literalSplitDelimitersOf, bn as isScopedSecretVerdict, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, ct as recordLogOnlyParameterValue, d as canonicalJson$7, dn as crossStackSourceKey, dt as shareLogOnlyValues, en as redactInheritedParameterValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordCrossStackExpression, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as contradictProvenPublicExpression, gt as maskSecretsInError, h as maskWholeValue, hn as carryFreshNoEchoMark, ht as maskRecordedSecretsInText, in as freshNoEchoLeafPositions, it as hasMaskableValues, jn as recordNoEchoParameterFreshValue, jt as spanNamesResolvableService, k as valueAtCoordinate, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nn as carriesFreshNoEchoValue, nt as createUnionSecretMasker, on as recoverMaskedOutput, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, q as recordSecretResolution, qt as recordInheritedPseudoParameters, rn as embedsFreshNoEchoValue, rt as hasLogOnlyValues, sn as physicalNameCopiesOf, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as withdrawRenderedParameterSpelling, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isMaskOnlyPlaintext, vt as differingStringLeaves, w as readbackPathFor, wn as pinScopedSecretVerdict, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as isSecretExpressionByVerdictOrSpelling, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isNoEchoParameterPlaintext, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as arrayPairsWhateverDrops } from "./replacement-rules-S9fm3-4G.js";
12
- import { C as withUnsettledItems, S as unsettledPropertiesOf, T as withoutUnsettledProperties, _ as isUsableAttemptedName, b as unsettledItemsOf, c as planTagDiff, f as tagPlanWarning, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, u as refuseMalformedDesiredTags, v as unsettledContextOf, w as withUnsettledProperties, x as unsettledItemsTopKey, y as unsettledItemsField } from "./restore-source-guard-BeTKRtrT.js";
8
+ import { A as assertRegionMatch, B as refusalTypeShown, Bt as segmentAfterAnchor, D as withoutServerErrorRetries, Ft as compositeIdSeparatorRefusal, G as compensateProtectionFlip, Gt as maskDeep, H as resolveExplicitPhysicalId, Ht as createMaskedLogSinks, J as observeThenDisableProtection, Jt as RETRY_AUXILIARY_OWNER, K as deleteWithProtectionCompensation, Kt as maskerOrIdentity, L as isQuotableImportValue, Lt as logicalIdShown, Mt as withUnchangedSecretPrincipalLists, Nt as canonicalizeRoute53QueryName, Qt as createdResourceIdentityBeforeFailure, R as normalizeAwsTagsToCfn, St as startInterruptWatch, U as isMarkedNotGone, Ut as createMaskedRetryLogger, Vt as stateOrphanRecordRemedy, W as markNotGone, Wt as isSecretDerivedValue, Zt as createdBeforeFailure, _n as WAIT_CONDITION_SIGNAL_PREFIX, at as isTerminalDeleteFailure, bn as withPasteableAwsProfile, ct as ElapsedBudget, d as CreatedResourceSink, dt as DELETION_PROTECTION_DOC_POINTER, en as isAuxiliaryFailure, f as clearCreatedReport, g as retractCreatedResource, gn as DEFAULT_STATE_PREFIX, gt as protectedReplacementAdvice, hn as CUSTOM_RESOURCE_RESPONSE_PREFIX, ht as pasteableAwsCommand, i as withResourceDeadline, it as ProtectionFlipRegistry, k as RESOURCE_NOT_FOUND, lt as ElapsedBudgetRegistry, m as reportCreatedResource, mn as sanitizeRecoveryValue, n as enclosingDeadlineRemainingMs, nn as markAuxiliaryFailure, o as prepareRemovalForUpdate, ot as protectionFlipKey, p as collectCreatedResources, pn as recoveryCommandFlags, qt as withDerivedNameMasks, r as whileEnclosingDeadlinesPaused, rn as markCreatedBeforeFailure, s as removalWarning, st as runDeleteAttempt, t as enclosingDeadlineExpired, tn as isAuxiliaryMarkOf, u as withoutInjectedRemovals, ut as monotonicNowMs, wn as producerRecordKey, xn as injectiveKey, xt as isInterruptedWaitError, z as quotedRemedyLogicalId, zt as resourceTypeShown } from "./resource-deadline-Bbcb2bjo.js";
9
+ import { t as expectedOwnerParam } from "./expected-bucket-owner-DyUXGJMw.js";
10
+ import { At as SURVIVOR_IDENTITY_ATTRIBUTES, Bt as describeRegionValueKind, Et as identityWarner, Ft as keepRecordedIdentity, Gt as isReadableBag, It as newCopyDeleteAttributes, Jt as shouldRetainResource, Kt as orphansAfterRollback, Lt as replaceDeadIdentity, Nt as isRecordedIdentityAttribute, Ot as recordedIdentityId, Pt as isUsableIdentityValue, Tt as differingIdentityWarning, Ut as importableOutputKeys, Vt as exportNamesCarriedFrom, Wt as importableOutputs, Xt as stackInstanceIdCarriedFrom, Yt as skippedOutputsCarriedFrom, bt as lookupEachName, gt as deniedIdentityReadRefusal, ht as dbInstanceAttributes, i as dbClusterAttributes, jt as attributesAfterUpdate, kt as slowCcOperationTimeoutMs, n as isRefusedByName, qt as orphansCarriedFrom, r as markDeleteStarted, t as isDeleteStarted, wt as assertRecordedIdentity, yt as isAccessDeniedError, zt as acceptedCreateOnlyDropsOf } from "./delete-started-B1_1Gx-5.js";
11
+ import { $t as recordInheritedParameterValue, A as witnessNormalize, An as recordNoEchoAttributeValues, At as withoutPhysicalNameCopies, B as redactionClaimOf, Cn as noEchoParameterPlaintextsOf, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dn as recordFreshNoEchoValuesIn, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, En as recordDerivedMaskOnlyValue, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, G as foldRecording, Gt as recordTakenIfBranch, H as mixedLiteralAnswered, Ht as splitOutsideDynamicReferences, I as markSameGenerationBag, In as isDynamicReferenceString, It as secretRerenderPairs, J as hasPassProvenance, Jt as templateRereadsAccountId, K as openRecordingScope, Kt as inheritedPseudoValue, L as mergeResolvedPairs, Ln as isSingleDynamicReferenceToken, M as carryRedactionMarks, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as withoutNoEchoParameterEntries, Q as recordReferenceResolution, Qt as recordInheritedParameterRead, R as recordIntrinsicLeafResolution, Rn as maskMatchSpans, S as noEchoParametersReadBy, Sn as markNoEchoParameterClass, St as replaceWholeLeaves, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as standsForInheritedSecret, V as resolvedPlaintextOf, Vt as rereadParameterExpression, W as redactForState, Wt as recordDroppedArrayElements, X as passReadVersionsFor, Xt as inheritedParameterExpression, Y as passProvenanceFor, Yt as inheritNestedStackParameterAssociations, Z as recordReferenceProvenanceEntry, Zt as inheritedRenderedToken, _ as noEchoComparison, _n as freshNoEchoValuesOf, _t as maskSecretsInText, an as recordRecoverableMaskedOutput, at as literalSplitDelimitersOf, bn as isScopedSecretVerdict, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, ct as recordLogOnlyParameterValue, d as canonicalJson$7, dn as crossStackSourceKey, dt as shareLogOnlyValues, en as redactInheritedParameterValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordCrossStackExpression, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as contradictProvenPublicExpression, gt as maskSecretsInError, h as maskWholeValue, hn as carryFreshNoEchoMark, ht as maskRecordedSecretsInText, in as freshNoEchoLeafPositions, it as hasMaskableValues, jn as recordNoEchoParameterFreshValue, jt as spanNamesResolvableService, k as valueAtCoordinate, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nn as carriesFreshNoEchoValue, nt as createUnionSecretMasker, on as recoverMaskedOutput, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, q as recordSecretResolution, qt as recordInheritedPseudoParameters, rn as embedsFreshNoEchoValue, rt as hasLogOnlyValues, sn as physicalNameCopiesOf, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as withdrawRenderedParameterSpelling, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isMaskOnlyPlaintext, vt as differingStringLeaves, w as readbackPathFor, wn as pinScopedSecretVerdict, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as isSecretExpressionByVerdictOrSpelling, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isNoEchoParameterPlaintext, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as arrayPairsWhateverDrops } from "./replacement-rules-Cn95yn6B.js";
12
+ import { C as withUnsettledItems, S as unsettledPropertiesOf, T as withoutUnsettledProperties, _ as isUsableAttemptedName, b as unsettledItemsOf, c as planTagDiff, f as tagPlanWarning, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, u as refuseMalformedDesiredTags, v as unsettledContextOf, w as withUnsettledProperties, x as unsettledItemsTopKey, y as unsettledItemsField } from "./restore-source-guard-DA9TSeTJ.js";
13
13
  import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
14
14
  import { AsyncLocalStorage } from "node:async_hooks";
15
15
  import { CreateBucketCommand, DeleteObjectCommand, DeleteObjectsCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchKey, PutBucketEncryptionCommand, PutBucketLifecycleConfigurationCommand, PutBucketPolicyCommand, PutObjectCommand, PutPublicAccessBlockCommand, S3Client } from "@aws-sdk/client-s3";
@@ -39,6 +39,7 @@ import { isDeepStrictEqual } from "node:util";
39
39
  import { DescribeDBClustersCommand, DescribeDBInstancesCommand, RDSClient } from "@aws-sdk/client-rds";
40
40
  import { DescribeDomainCommand, OpenSearchClient } from "@aws-sdk/client-opensearch";
41
41
  import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
42
+ import { isIPv6 } from "node:net";
42
43
  import { ApplicationAutoScalingClient, DeleteScalingPolicyCommand, DeregisterScalableTargetCommand, DescribeScalableTargetsCommand, DescribeScalingPoliciesCommand, PutScalingPolicyCommand, RegisterScalableTargetCommand } from "@aws-sdk/client-application-auto-scaling";
43
44
 
44
45
  // src/utils/aws-region-resolver.ts
@@ -82,7 +83,7 @@ async function resolveBucketRegion(bucketName, opts = {}) {
82
83
  });
83
84
  }
84
85
  try {
85
- const { expectedOwnerParam } = await import("./expected-bucket-owner-C9e1dPk6.js").then((n) => n.n);
86
+ const { expectedOwnerParam } = await import("./expected-bucket-owner-DyUXGJMw.js").then((n) => n.n);
86
87
  return (await client.send(new GetBucketLocationCommand({
87
88
  Bucket: bucketName,
88
89
  ...await expectedOwnerParam(client)
@@ -7810,6 +7811,7 @@ const NON_PROVISIONABLE_TYPES = /* @__PURE__ */ new Set([
7810
7811
  "AWS::ElastiCache::SecurityGroup",
7811
7812
  "AWS::ElastiCache::SecurityGroupIngress",
7812
7813
  "AWS::ElasticLoadBalancingV2::ListenerCertificate",
7814
+ "AWS::Elasticsearch::Domain",
7813
7815
  "AWS::EMR::NotebookExecution",
7814
7816
  "AWS::EMR::Session",
7815
7817
  "AWS::EMRContainers::JobRun",
@@ -8141,9 +8143,9 @@ function findRoutableUnrecognizedProperties(resourceType, templateProperties, al
8141
8143
  const coverage = getPropertyCoverage(resourceType);
8142
8144
  if (!templateProperties || !coverage) return [];
8143
8145
  if (coverage.ccRouteUnavailable || hasNoCloudControlHandlers(resourceType)) return [];
8144
- return findUnrecognizedProperties(resourceType, templateProperties).filter((property) => !coverage.readOnly.has(property) && !allowedKeys.has(`${resourceType}:${property}`) && !(recordedProperties != null && typeof recordedProperties === "object" && Object.hasOwn(recordedProperties, property) && sameJsonValue(recordedProperties[property], templateProperties[property], options?.unresolvedAs ?? "unchanged")));
8146
+ return findUnrecognizedProperties(resourceType, templateProperties).filter((property) => !coverage.readOnly.has(property) && !allowedKeys.has(`${resourceType}:${property}`) && !(recordedProperties != null && typeof recordedProperties === "object" && Object.hasOwn(recordedProperties, property) && sameJsonValue$1(recordedProperties[property], templateProperties[property], options?.unresolvedAs ?? "unchanged")));
8145
8147
  }
8146
- function sameJsonValue(recorded, desired, unresolvedAs) {
8148
+ function sameJsonValue$1(recorded, desired, unresolvedAs) {
8147
8149
  const recordedJson = toJsonValue(recorded);
8148
8150
  if (JSON.stringify(recordedJson)?.includes("{{resolve:") === true) return true;
8149
8151
  const desiredJson = toJsonValue(desired);
@@ -8209,7 +8211,7 @@ function evidenceNamedUnwritten(resourceType, recordedProperties, desiredPropert
8209
8211
  return [...findSdkUnwiredProperties(resourceType, recordedProperties).map(({ property }) => property).filter((property) => createOnly.has(property) && evidence.has(property) && !accepted.has(property)), ...findHandledUnwrittenCreateOnly(resourceType, recordedProperties, evidence)].sort((a, b) => a.localeCompare(b));
8210
8212
  }
8211
8213
  function askedUnchanged(recordedProperties, desiredProperties, property) {
8212
- return sameJsonValue(recordedProperties[property], desiredProperties[property], "unchanged");
8214
+ return sameJsonValue$1(recordedProperties[property], desiredProperties[property], "unchanged");
8213
8215
  }
8214
8216
  const HANDLED_NEVER_SENT_CREATE_ONLY = /* @__PURE__ */ new Map([["AWS::RDS::DBInstance", /* @__PURE__ */ new Set(["SourceRegion"])], ["AWS::RDS::DBCluster", /* @__PURE__ */ new Set(["SourceRegion"])]]);
8215
8217
  function findHandledUnwrittenCreateOnly(resourceType, recordedProperties, evidence) {
@@ -11168,7 +11170,7 @@ function toFiniteNumber(value) {
11168
11170
  function toCfnInteger(value) {
11169
11171
  return coerceCfnInteger(typeof value === "string" ? value.trim() : value);
11170
11172
  }
11171
- function coerceWarmThroughput(raw) {
11173
+ function coerceWarmThroughput$1(raw) {
11172
11174
  if (typeof raw !== "object" || raw === null || Array.isArray(raw)) return { droppedMembers: [] };
11173
11175
  const bag = raw;
11174
11176
  const spec = {};
@@ -11299,6 +11301,7 @@ const STATEFUL_TYPES = /* @__PURE__ */ new Set([
11299
11301
  "AWS::S3Vectors::Index",
11300
11302
  "AWS::Bedrock::KnowledgeBase",
11301
11303
  "AWS::Bedrock::DataAutomationLibrary",
11304
+ "AWS::OpenSearchMemory::Space",
11302
11305
  "AWS::Lightsail::Bucket",
11303
11306
  "AWS::S3Outposts::Bucket",
11304
11307
  "AWS::HealthImaging::Datastore",
@@ -20592,7 +20595,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
20592
20595
  const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
20593
20596
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
20594
20597
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
20595
- const { ASGProvider } = await import("./asg-provider-CBS6w9nU.js");
20598
+ const { ASGProvider } = await import("./asg-provider-C6ZZEfBX.js");
20596
20599
  const delegateRegion = ambientRegion();
20597
20600
  let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
20598
20601
  if (asgProvider === void 0) {
@@ -20747,7 +20750,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
20747
20750
  const family = SDK_DELETE_FAMILIES.get(resourceType);
20748
20751
  const cached = this.sdkDeleteDelegates.get(family);
20749
20752
  if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
20750
- const provider = family === "rds" ? new (await (import("./rds-provider-D_ypFjdI.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-BEkpYrGj.js"))).NeptuneProvider({ region: ccRegion });
20753
+ const provider = family === "rds" ? new (await (import("./rds-provider-BH_C1IUh.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-C0m4IHD7.js"))).NeptuneProvider({ region: ccRegion });
20751
20754
  this.sdkDeleteDelegates.set(family, {
20752
20755
  region: ccRegion,
20753
20756
  provider
@@ -22310,7 +22313,7 @@ function getCurrentResourceSecrets() {
22310
22313
  }
22311
22314
 
22312
22315
  // src/provisioning/custom-resource-secure-references.ts
22313
- function isCustomResourceType(resourceType) {
22316
+ function isCustomResourceType$1(resourceType) {
22314
22317
  return resourceType === "AWS::CloudFormation::CustomResource" || resourceType.startsWith("Custom::");
22315
22318
  }
22316
22319
  const SECURE_REFERENCE_SERVICES = /* @__PURE__ */ new Set(["secretsmanager", "ssm-secure"]);
@@ -22323,7 +22326,7 @@ function referenceService(token) {
22323
22326
  return token.slice(10).split(":")[0] ?? "";
22324
22327
  }
22325
22328
  function findSecureReferencePaths(resourceType, properties) {
22326
- if (!isCustomResourceType(resourceType) || properties == null) return [];
22329
+ if (!isCustomResourceType$1(resourceType) || properties == null) return [];
22327
22330
  const paths = [];
22328
22331
  const onPath = /* @__PURE__ */ new Set();
22329
22332
  const walk = (node, path, inIntrinsic) => {
@@ -22375,7 +22378,7 @@ function findResolvedSecretPaths(properties, secrets) {
22375
22378
  function readsNoEchoDeleteValues(resourceType) {
22376
22379
  return resourceType === "AWS::CloudFormation::CustomResource" || resourceType.startsWith("Custom::") || resourceType === "AWS::CloudFormation::Stack";
22377
22380
  }
22378
- function isRecord(value) {
22381
+ function isRecord$1(value) {
22379
22382
  return value !== null && typeof value === "object" && !Array.isArray(value);
22380
22383
  }
22381
22384
  function maskedNoEchoCoordinates(properties, recordedLeaves) {
@@ -22438,7 +22441,7 @@ async function noEchoDeleteValuesFromResolved(options) {
22438
22441
  const nodes = noEchoParameterNodesAt(templateResource.Properties, resolvedProperties, options.noEchoParameters, options.conditions);
22439
22442
  const bag = new Map(options.secrets);
22440
22443
  carryLogOnlyValues(options.secrets, bag);
22441
- const templateProps = isRecord(templateResource.Properties) ? templateResource.Properties : {};
22444
+ const templateProps = isRecord$1(templateResource.Properties) ? templateResource.Properties : {};
22442
22445
  const fingerprinter = options.inputSources === void 0 ? void 0 : inputFingerprinter(templateProps, options.inputSources);
22443
22446
  const leaves = [];
22444
22447
  for (const coordinate of masked) {
@@ -22615,7 +22618,7 @@ var TemplateNoEchoReresolver = class TemplateNoEchoReresolver {
22615
22618
  if (parameters === void 0) return void 0;
22616
22619
  const nodes = noEchoParameterNodesAt(templateResource.Properties, record.properties, this.noEchoParameters, void 0);
22617
22620
  const declared = new Set(Object.keys(this.options.template.Parameters ?? {}));
22618
- const templateProps = isRecord(templateResource.Properties) ? templateResource.Properties : {};
22621
+ const templateProps = isRecord$1(templateResource.Properties) ? templateResource.Properties : {};
22619
22622
  const fingerprinter = inputFingerprinter(templateProps, this.inputSources(parameters));
22620
22623
  const refused = this.options.maskedParameters ?? /* @__PURE__ */ new Set();
22621
22624
  const bag = await this.noEchoNeedles();
@@ -23323,7 +23326,7 @@ async function publishToSns(topicArn, request) {
23323
23326
  }
23324
23327
  async function invokeLambda(serviceToken, request) {
23325
23328
  if (localCustomResourceRuntimeActive()) {
23326
- const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-nKBSJ8xg.js");
23329
+ const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-BcjqJN8N.js");
23327
23330
  const local = await invokeCustomResourceFunctionLocally({
23328
23331
  lambda: this.lambdaClient,
23329
23332
  s3: this.s3Client
@@ -26804,7 +26807,7 @@ async function attemptedPolicyDocument(recorded, resolve) {
26804
26807
  };
26805
26808
  }
26806
26809
  const ACCOUNT_ID = /^\d{12}$/;
26807
- const ACCOUNT_ROOT_ARN = /^arn:[a-z-]+:iam::(\d{12}):root$/;
26810
+ const ACCOUNT_ROOT_ARN = /^arn:([a-z-]+):iam::(\d{12}):root$/;
26808
26811
  const LIST_KEYS = [
26809
26812
  "Action",
26810
26813
  "NotAction",
@@ -26815,27 +26818,51 @@ const PRINCIPAL_KEYS = ["Principal", "NotPrincipal"];
26815
26818
  function unwrapSingle(value) {
26816
26819
  return Array.isArray(value) && value.length === 1 ? value[0] : value;
26817
26820
  }
26818
- function accountKey(value) {
26821
+ function accountKey(value, partition) {
26819
26822
  if (typeof value !== "string") return value;
26820
- if (ACCOUNT_ID.test(value)) return `account:${value}`;
26823
+ if (ACCOUNT_ID.test(value)) return partition === void 0 ? `account:${value}` : `account:${partition}:${value}`;
26821
26824
  const m = ACCOUNT_ROOT_ARN.exec(value);
26822
- return m ? `account:${m[1]}` : value;
26825
+ if (!m) return `principal:${value}`;
26826
+ return partition === void 0 ? `account:${m[2]}` : `account:${m[1]}:${m[2]}`;
26823
26827
  }
26824
26828
  const ANYONE = "anyone:*";
26825
- function normalizePrincipal(principal) {
26829
+ function normalizePrincipal(principal, partition) {
26826
26830
  if (principal === "*") return ANYONE;
26831
+ if (typeof principal === "string") return `principal:${principal}`;
26827
26832
  if (principal === null || typeof principal !== "object" || Array.isArray(principal)) return principal;
26828
26833
  const keys = Object.keys(principal);
26829
26834
  if (keys.length === 1 && keys[0] === "AWS" && unwrapSingle(principal["AWS"]) === "*") return ANYONE;
26830
- const out = {};
26831
- for (const [key, raw] of Object.entries(principal)) out[key] = unwrapSingle(key === "AWS" ? Array.isArray(raw) ? raw.map(accountKey) : accountKey(raw) : raw);
26835
+ const out = Object.create(null);
26836
+ for (const [key, raw] of Object.entries(principal)) out[key] = unwrapSingle(key === "AWS" ? Array.isArray(raw) ? raw.map((v) => accountKey(v, partition)) : accountKey(raw, partition) : raw);
26832
26837
  return out;
26833
26838
  }
26834
- function normalizeStatement(statement) {
26839
+ function normalizeStatement(statement, partition) {
26835
26840
  if (statement === null || typeof statement !== "object" || Array.isArray(statement)) return statement;
26836
26841
  const out = { ...statement };
26837
26842
  for (const key of LIST_KEYS) if (Object.prototype.hasOwnProperty.call(out, key)) out[key] = unwrapSingle(out[key]);
26838
- for (const key of PRINCIPAL_KEYS) if (Object.prototype.hasOwnProperty.call(out, key)) out[key] = normalizePrincipal(out[key]);
26843
+ for (const key of PRINCIPAL_KEYS) if (Object.prototype.hasOwnProperty.call(out, key)) out[key] = normalizePrincipal(out[key], partition);
26844
+ const effect = out["Effect"];
26845
+ if (typeof effect === "string") {
26846
+ const lower = effect.toLowerCase();
26847
+ if (lower === "allow") out["Effect"] = "Allow";
26848
+ else if (lower === "deny") out["Effect"] = "Deny";
26849
+ }
26850
+ if (Object.prototype.hasOwnProperty.call(out, "Condition")) out["Condition"] = normalizeConditionValues(out["Condition"]);
26851
+ return out;
26852
+ }
26853
+ function normalizeConditionValues(condition) {
26854
+ if (condition === null || typeof condition !== "object" || Array.isArray(condition)) return condition;
26855
+ const scalar = (v) => typeof v === "number" || typeof v === "boolean" ? String(v) : v;
26856
+ const out = Object.create(null);
26857
+ for (const [operator, block] of Object.entries(condition)) {
26858
+ if (block === null || typeof block !== "object" || Array.isArray(block)) {
26859
+ out[operator] = block;
26860
+ continue;
26861
+ }
26862
+ const values = Object.create(null);
26863
+ for (const [key, value] of Object.entries(block)) values[key] = Array.isArray(value) ? value.map(scalar) : scalar(value);
26864
+ out[operator] = values;
26865
+ }
26839
26866
  return out;
26840
26867
  }
26841
26868
  function canonicalJson$5(value) {
@@ -26850,7 +26877,7 @@ function canonicalJson$5(value) {
26850
26877
  };
26851
26878
  return JSON.stringify(sortKeys(value));
26852
26879
  }
26853
- function policyContentKey(document) {
26880
+ function policyContentKey(document, partition) {
26854
26881
  let value = document;
26855
26882
  if (typeof document === "string") try {
26856
26883
  value = JSON.parse(document);
@@ -26859,7 +26886,7 @@ function policyContentKey(document) {
26859
26886
  }
26860
26887
  if (value !== null && typeof value === "object" && !Array.isArray(value)) {
26861
26888
  const doc = { ...value };
26862
- if (Object.prototype.hasOwnProperty.call(doc, "Statement")) doc["Statement"] = (Array.isArray(doc["Statement"]) ? doc["Statement"] : [doc["Statement"]]).map(normalizeStatement);
26889
+ if (Object.prototype.hasOwnProperty.call(doc, "Statement")) doc["Statement"] = (Array.isArray(doc["Statement"]) ? doc["Statement"] : [doc["Statement"]]).map((statement) => normalizeStatement(statement, partition));
26863
26890
  value = doc;
26864
26891
  }
26865
26892
  return canonicalJson$5(value);
@@ -26890,6 +26917,82 @@ const OMITTED_POLICY_VERSION = "2008-10-17";
26890
26917
  function isOmittedVersionDefault(path, value, verbatimKeys) {
26891
26918
  return value === "2008-10-17" && verbatimKeys.some((key) => path === `${key}.Version`);
26892
26919
  }
26920
+ const POLICY_LIST_KEYS = /* @__PURE__ */ new Set([
26921
+ "Action",
26922
+ "NotAction",
26923
+ "Resource",
26924
+ "NotResource"
26925
+ ]);
26926
+ const POLICY_PRINCIPAL_KEYS = /* @__PURE__ */ new Set(["Principal", "NotPrincipal"]);
26927
+ const BARE_ACCOUNT_ID = /^\d{12}$/;
26928
+ const ACCOUNT_ROOT_PRINCIPAL = /^arn:aws(?:-[a-z]+)*:iam::(\d{12}):root$/;
26929
+ function isRecord(value) {
26930
+ return typeof value === "object" && value !== null && !Array.isArray(value);
26931
+ }
26932
+ function mapRecord(value, fn) {
26933
+ const out = nullPrototypeRecord();
26934
+ for (const key of Object.keys(value)) out[key] = fn(key, value[key]);
26935
+ return out;
26936
+ }
26937
+ function unwrapOneElementList(value) {
26938
+ return Array.isArray(value) && value.length === 1 ? value[0] : value;
26939
+ }
26940
+ function accountPrincipalForm(value) {
26941
+ return typeof value === "string" && BARE_ACCOUNT_ID.test(value) ? `${BARE_ACCOUNT_MARK}${value}` : value;
26942
+ }
26943
+ const BARE_ACCOUNT_MARK = "\0account:";
26944
+ function policyFoldLeafEqual(a, b) {
26945
+ if (a === b) return true;
26946
+ const [bare, other] = a.startsWith(BARE_ACCOUNT_MARK) ? [a, b] : [b, a];
26947
+ if (!bare.startsWith(BARE_ACCOUNT_MARK)) return false;
26948
+ const root = ACCOUNT_ROOT_PRINCIPAL.exec(other);
26949
+ return root !== null && root[1] === bare.slice(9);
26950
+ }
26951
+ function conditionValueForm(value) {
26952
+ const scalar = (v) => typeof v === "number" || typeof v === "boolean" ? String(v) : v;
26953
+ return Array.isArray(value) ? value.map(scalar) : scalar(value);
26954
+ }
26955
+ function statementFieldForm(field, value) {
26956
+ const [head, second, third, ...rest] = field;
26957
+ if (head === void 0) return isRecord(value) ? mapRecord(value, (k, v) => statementFieldForm([k], v)) : value;
26958
+ if (rest.length > 0) return value;
26959
+ if (POLICY_LIST_KEYS.has(head)) return second === void 0 ? unwrapOneElementList(value) : value;
26960
+ if (head === "Effect") return second === void 0 && typeof value === "string" ? value.toLowerCase() : value;
26961
+ if (POLICY_PRINCIPAL_KEYS.has(head)) {
26962
+ if (second === void 0) return isRecord(value) ? mapRecord(value, (k, v) => statementFieldForm([head, k], v)) : value;
26963
+ if (third !== void 0) return value;
26964
+ const unwrapped = unwrapOneElementList(value);
26965
+ if (second !== "AWS") return unwrapped;
26966
+ return Array.isArray(unwrapped) ? unwrapped.map(accountPrincipalForm) : accountPrincipalForm(unwrapped);
26967
+ }
26968
+ if (head === "Condition") {
26969
+ if (second === void 0) return isRecord(value) ? mapRecord(value, (op, v) => statementFieldForm([head, op], v)) : value;
26970
+ if (third === void 0) return isRecord(value) ? mapRecord(value, (k, v) => statementFieldForm([
26971
+ head,
26972
+ second,
26973
+ k
26974
+ ], v)) : value;
26975
+ return conditionValueForm(value);
26976
+ }
26977
+ return value;
26978
+ }
26979
+ function statementFieldSegments(rest) {
26980
+ const segments = rest.split(".");
26981
+ return segments[0] === "Condition" && segments.length > 3 ? [
26982
+ segments[0],
26983
+ segments[1],
26984
+ segments.slice(2).join(".")
26985
+ ] : segments;
26986
+ }
26987
+ const NOT_A_POLICY_PATH = Symbol("not a policy path");
26988
+ function canonicalPolicyFoldForm(path, value, verbatimKeys) {
26989
+ for (const key of verbatimKeys) {
26990
+ const statementPath = `${key}.Statement`;
26991
+ if (path === statementPath) return Array.isArray(value) ? value.map((s) => statementFieldForm([], s)) : statementFieldForm([], value);
26992
+ if (path.startsWith(`${statementPath}.`)) return statementFieldForm(statementFieldSegments(path.slice(statementPath.length + 1)), value);
26993
+ }
26994
+ return NOT_A_POLICY_PATH;
26995
+ }
26893
26996
 
26894
26997
  // src/provisioning/settle-after-own-write.ts
26895
26998
  const OWN_WRITE_REREAD_DELAYS_MS = [
@@ -26982,8 +27085,8 @@ function declaredPolicyDocument(properties) {
26982
27085
  if (typeof doc === "string") return doc === "" ? void 0 : doc;
26983
27086
  return typeof doc === "object" && doc !== null && !Array.isArray(doc) ? doc : void 0;
26984
27087
  }
26985
- function policyDocumentMatchesDeclared(answer, declared) {
26986
- return answer !== void 0 && policyContentKey(foldConditionValues(withoutOmittedVersionDefault(answer, declared))) === policyContentKey(foldConditionValues(declared));
27088
+ function policyDocumentMatchesDeclared(answer, declared, partition) {
27089
+ return answer !== void 0 && policyContentKey(foldConditionValues(withoutOmittedVersionDefault(answer, declared)), partition) === policyContentKey(foldConditionValues(declared), partition);
26987
27090
  }
26988
27091
  function withoutOmittedVersionDefault(answer, declared) {
26989
27092
  const read = parsedDocument(answer);
@@ -27017,13 +27120,13 @@ function foldConditionValues(document) {
27017
27120
  if (typeof entry !== "object" || entry === null || Array.isArray(entry)) return entry;
27018
27121
  const condition = entry["Condition"];
27019
27122
  if (typeof condition !== "object" || condition === null || Array.isArray(condition)) return entry;
27020
- const folded = {};
27123
+ const folded = Object.create(null);
27021
27124
  for (const [operator, block] of Object.entries(condition)) {
27022
27125
  if (typeof block !== "object" || block === null || Array.isArray(block)) {
27023
27126
  folded[operator] = block;
27024
27127
  continue;
27025
27128
  }
27026
- const values = {};
27129
+ const values = Object.create(null);
27027
27130
  for (const [key, value] of Object.entries(block)) values[key] = Array.isArray(value) && value.length === 1 ? value[0] : value;
27028
27131
  folded[operator] = values;
27029
27132
  }
@@ -27991,7 +28094,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
27991
28094
  if (resourceType !== "AWS::RDS::DBInstance") return false;
27992
28095
  if (region === void 0 || region === "") return false;
27993
28096
  const mask = input.mask ?? ((text) => text);
27994
- const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-D012SPdT.js").then((n) => n.l);
28097
+ const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-D8tp4_Dg.js").then((n) => n.l);
27995
28098
  let reason;
27996
28099
  try {
27997
28100
  const live = await describeDBInstanceInRegion(physicalId, region);
@@ -30088,7 +30191,7 @@ function isReplacementOp(op) {
30088
30191
  }));
30089
30192
  }
30090
30193
  function movedIdLeftForCleanup(op) {
30091
- return op.changeType === "UPDATE" && op.oldPhysicalIdLeftForCleanup === true && isCustomResourceType(op.resourceType) && op.wasReplaced === true && op.oldDeletedBeforeCreate !== true && typeof op.physicalId === "string" && typeof op.previousState?.physicalId === "string" && op.previousState.physicalId !== op.physicalId && !isTypeChangeOp(op);
30194
+ return op.changeType === "UPDATE" && op.oldPhysicalIdLeftForCleanup === true && isCustomResourceType$1(op.resourceType) && op.wasReplaced === true && op.oldDeletedBeforeCreate !== true && typeof op.physicalId === "string" && typeof op.previousState?.physicalId === "string" && op.previousState.physicalId !== op.physicalId && !isTypeChangeOp(op);
30092
30195
  }
30093
30196
  function sameIdRecreated(op) {
30094
30197
  return op.oldDeletedBeforeCreate === true && op.wasReplaced !== false && op.physicalId !== void 0 && op.previousState?.physicalId === op.physicalId;
@@ -34073,7 +34176,38 @@ function canonicalizeTagListsDeep(v) {
34073
34176
  }
34074
34177
  const ID_RE = /^[a-z][a-z0-9]*-[0-9a-f]{6,}$/;
34075
34178
  const isIdLike = (s) => typeof s === "string" && (s.startsWith("arn:") || ID_RE.test(s));
34076
- const ORDER_SIGNIFICANT_ID_ARRAY_PATHS = { "AWS::Lambda::Function": ["Layers"] };
34179
+ const ORDER_SIGNIFICANT_ID_ARRAY_PATHS = {
34180
+ "AWS::Lambda::Function": [
34181
+ "Layers",
34182
+ "ImageConfig.Command",
34183
+ "ImageConfig.EntryPoint"
34184
+ ],
34185
+ "AWS::ECS::TaskDefinition": [
34186
+ "ContainerDefinitions.Command",
34187
+ "ContainerDefinitions.EntryPoint",
34188
+ "ContainerDefinitions.HealthCheck.Command"
34189
+ ],
34190
+ "AWS::Batch::JobDefinition": [
34191
+ "ContainerProperties.Command",
34192
+ "EcsProperties.TaskProperties.Containers.Command",
34193
+ "EksProperties.PodProperties.Containers.Command",
34194
+ "EksProperties.PodProperties.Containers.Args",
34195
+ "EksProperties.PodProperties.InitContainers.Command",
34196
+ "EksProperties.PodProperties.InitContainers.Args",
34197
+ "NodeProperties.NodeRangeProperties.Container.Command",
34198
+ "NodeProperties.NodeRangeProperties.EcsProperties.TaskProperties.Containers.Command",
34199
+ "NodeProperties.NodeRangeProperties.EksProperties.PodProperties.Containers.Command",
34200
+ "NodeProperties.NodeRangeProperties.EksProperties.PodProperties.Containers.Args",
34201
+ "NodeProperties.NodeRangeProperties.EksProperties.PodProperties.InitContainers.Command",
34202
+ "NodeProperties.NodeRangeProperties.EksProperties.PodProperties.InitContainers.Args"
34203
+ ],
34204
+ "AWS::EMR::Step": ["HadoopJarStep.Args"],
34205
+ "AWS::EMR::Cluster": [
34206
+ "Steps.HadoopJarStep.Args",
34207
+ "BootstrapActions.ScriptBootstrapAction.Args",
34208
+ "Applications.Args"
34209
+ ]
34210
+ };
34077
34211
  function orderSignificantIdArrayPaths(resourceType) {
34078
34212
  if (resourceType === void 0 || !Object.hasOwn(ORDER_SIGNIFICANT_ID_ARRAY_PATHS, resourceType)) return [];
34079
34213
  return ORDER_SIGNIFICANT_ID_ARRAY_PATHS[resourceType];
@@ -34183,6 +34317,7 @@ function diffAt(path, stateValue, awsValue, out, ignorePaths, unionWalkObjects,
34183
34317
  awsForm = asStatementList(awsForm, stateForm);
34184
34318
  }
34185
34319
  if (deepEqual$1(stateForm, awsForm)) return;
34320
+ if (policyFoldsEqual(path, stateForm, awsForm, unionWalkPaths)) return;
34186
34321
  if (typeof stateValue === "string" && stateValue.includes("{{resolve:")) return;
34187
34322
  if (isPlainObject$5(stateForm) && isPlainObject$5(awsForm) && !Array.isArray(stateForm) && !Array.isArray(awsForm)) {
34188
34323
  const keys = unionWalkObjects || matchesPathPrefix(path, unionWalkPaths) ? /* @__PURE__ */ new Set([...Object.keys(stateForm), ...Object.keys(awsForm)]) : Object.keys(stateForm);
@@ -34205,17 +34340,18 @@ function jsonForm(value) {
34205
34340
  const toJSON = value.toJSON;
34206
34341
  return typeof toJSON === "function" ? toJSON.call(value) : value;
34207
34342
  }
34208
- function deepEqual$1(a, b) {
34343
+ function deepEqual$1(a, b, stringLeafEqual) {
34209
34344
  a = jsonForm(a);
34210
34345
  b = jsonForm(b);
34211
34346
  if (a === b) return true;
34347
+ if (stringLeafEqual && typeof a === "string" && typeof b === "string") return stringLeafEqual(a, b);
34212
34348
  if (a === null || b === null || a === void 0 || b === void 0) return a === b;
34213
34349
  if (typeof a !== typeof b) return false;
34214
34350
  if (typeof a !== "object") return false;
34215
34351
  if (Array.isArray(a) || Array.isArray(b)) {
34216
34352
  if (!Array.isArray(a) || !Array.isArray(b)) return false;
34217
34353
  if (a.length !== b.length) return false;
34218
- return a.every((v, i) => deepEqual$1(v, b[i]));
34354
+ return a.every((v, i) => deepEqual$1(v, b[i], stringLeafEqual));
34219
34355
  }
34220
34356
  const aObj = a;
34221
34357
  const bObj = b;
@@ -34223,7 +34359,7 @@ function deepEqual$1(a, b) {
34223
34359
  if (aKeys.length !== definedKeys(bObj).length) return false;
34224
34360
  for (const key of aKeys) {
34225
34361
  if (!Object.prototype.hasOwnProperty.call(bObj, key)) return false;
34226
- if (!deepEqual$1(aObj[key], bObj[key])) return false;
34362
+ if (!deepEqual$1(aObj[key], bObj[key], stringLeafEqual)) return false;
34227
34363
  }
34228
34364
  return true;
34229
34365
  }
@@ -34304,6 +34440,11 @@ function definedKeys(obj) {
34304
34440
  function asStatementList(statement, other) {
34305
34441
  return isPlainObject$5(statement) && !Array.isArray(statement) && Array.isArray(other) ? [statement] : statement;
34306
34442
  }
34443
+ function policyFoldsEqual(path, stateForm, awsForm, verbatimKeys) {
34444
+ const state = canonicalPolicyFoldForm(path, stateForm, verbatimKeys);
34445
+ if (state === NOT_A_POLICY_PATH) return false;
34446
+ return deepEqual$1(state, canonicalPolicyFoldForm(path, awsForm, verbatimKeys), policyFoldLeafEqual);
34447
+ }
34307
34448
  function isPlainObject$5(value) {
34308
34449
  return typeof value === "object" && value !== null;
34309
34450
  }
@@ -36242,10 +36383,63 @@ function canonicalizeIpProtocolValue(value) {
36242
36383
  return text;
36243
36384
  }
36244
36385
 
36386
+ // src/utils/ipv4-cidr.ts
36387
+ function canonicalizeIpv4Cidr(value) {
36388
+ const match = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\/(\d{1,2})$/.exec(value);
36389
+ if (!match) return void 0;
36390
+ const octets = [
36391
+ match[1],
36392
+ match[2],
36393
+ match[3],
36394
+ match[4]
36395
+ ].map(Number);
36396
+ const prefixLength = Number(match[5]);
36397
+ if (prefixLength > 32 || octets.some((octet) => octet > 255)) return void 0;
36398
+ const network = ((octets[0] << 24 | octets[1] << 16 | octets[2] << 8 | octets[3]) >>> 0 & (prefixLength === 0 ? 0 : 4294967295 << 32 - prefixLength >>> 0)) >>> 0;
36399
+ return `${[
36400
+ network >>> 24,
36401
+ network >>> 16 & 255,
36402
+ network >>> 8 & 255,
36403
+ network & 255
36404
+ ].join(".")}/${prefixLength}`;
36405
+ }
36406
+
36407
+ // src/utils/ipv6-cidr.ts
36408
+ function canonicalizeIpv6Cidr(value) {
36409
+ const match = /^([0-9a-fA-F:.]{2,45})\/(\d{1,3})$/.exec(value);
36410
+ if (!match || !isIPv6(match[1])) return void 0;
36411
+ const prefix = Number(match[2]);
36412
+ if (prefix > 128) return void 0;
36413
+ try {
36414
+ const [left, right] = new URL(`http://[${match[1]}]/`).hostname.slice(1, -1).split("::");
36415
+ const before = left ? left.split(":") : [];
36416
+ const after = right ? right.split(":") : [];
36417
+ const pieces = right === void 0 ? before : [
36418
+ ...before,
36419
+ ...new Array(8 - before.length - after.length).fill("0"),
36420
+ ...after
36421
+ ];
36422
+ const hostBits = BigInt(128 - prefix);
36423
+ const hex = (BigInt(`0x${pieces.map((piece) => piece.padStart(4, "0")).join("")}`) >> hostBits << hostBits).toString(16).padStart(32, "0");
36424
+ const expanded = Array.from({ length: 8 }, (_, index) => hex.slice(index * 4, index * 4 + 4)).join(":");
36425
+ return `${new URL(`http://[${expanded}]/`).hostname.slice(1, -1)}/${prefix}`;
36426
+ } catch {
36427
+ return;
36428
+ }
36429
+ }
36430
+
36245
36431
  // src/provisioning/sg-rule-identity.ts
36246
36432
  function sgProtocolKey(value) {
36247
36433
  return canonicalizeIpProtocolValue(value ?? "-1");
36248
36434
  }
36435
+ function sgCidrKey(value) {
36436
+ if (typeof value !== "string") return value;
36437
+ 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;
36438
+ if (ipv4 !== void 0) return ipv4;
36439
+ const slash = value.lastIndexOf("/");
36440
+ if (value.includes(":") && /^(0|[1-9]\d{0,2})$/.test(value.slice(slash + 1))) return canonicalizeIpv6Cidr(value) ?? value;
36441
+ return value;
36442
+ }
36249
36443
  function cfnIngressPortValue(value) {
36250
36444
  if (value === void 0 || value === null) return -1;
36251
36445
  if (typeof value === "number") return Number.isFinite(value) ? value : NaN;
@@ -36305,7 +36499,7 @@ function sgRuleOwnershipIdentity(rule, direction) {
36305
36499
  sgProtocolKey(rule["IpProtocol"]),
36306
36500
  from,
36307
36501
  to,
36308
- ...PEER_KEYS[direction].map((key) => rule[key] ?? null)
36502
+ ...PEER_KEYS[direction].map((key) => key.startsWith("Cidr") ? sgCidrKey(rule[key] ?? null) : rule[key] ?? null)
36309
36503
  ]);
36310
36504
  }
36311
36505
  function siblingOwnedSgRuleIdentities(groupId, direction, properties, context, skip) {
@@ -41590,7 +41784,7 @@ var GeneratedNameGuard = class GeneratedNameGuard {
41590
41784
 
41591
41785
  // src/deployment/deploy-engine/custom-resource-payload-leaves.ts
41592
41786
  function customResourcePayloadLeaves(resourceType, templateProperties, resolvedProperties, template, conditions, stateResources) {
41593
- if (!isCustomResourceType(resourceType) || templateProperties === void 0) return void 0;
41787
+ if (!isCustomResourceType$1(resourceType) || templateProperties === void 0) return void 0;
41594
41788
  return typedPayloadLeavesOf(templateProperties, resolvedProperties, {
41595
41789
  conditions,
41596
41790
  resourceTypeOf: (id) => template?.Resources?.[id]?.Type ?? (Object.hasOwn(stateResources, id) ? stateResources[id]?.resourceType : void 0)
@@ -42899,7 +43093,7 @@ async function resolveTemplateMetadata(engine, logicalId, stateResources, stackN
42899
43093
  for (const ref of templateParser().extractReferences(metadata)) if (noEchoParameters.has(ref) || noEchoAttributes.has(ref)) throw new Error(`${logicalId}'s Metadata reads a NoEcho value`);
42900
43094
  for (const [ref, attribute] of getAttReadsOf(metadata)) {
42901
43095
  const type = template.Resources?.[ref]?.Type;
42902
- if (isSensitiveAttributeName(attribute) || isSecretValuedAttribute(type, attribute) || type !== void 0 && isCustomResourceType(type)) throw new Error(`${logicalId}'s Metadata reads a credential-bearing attribute`);
43096
+ if (isSensitiveAttributeName(attribute) || isSecretValuedAttribute(type, attribute) || type !== void 0 && isCustomResourceType$1(type)) throw new Error(`${logicalId}'s Metadata reads a credential-bearing attribute`);
42903
43097
  }
42904
43098
  const context = buildResolverContext(engine.resolverContextDeps(), {
42905
43099
  template,
@@ -44528,7 +44722,7 @@ function toSdkGlobalSecondaryIndexes(properties, region, billingMode, source = "
44528
44722
  KeySchema: gsi["KeySchema"],
44529
44723
  Projection: gsi["Projection"]
44530
44724
  };
44531
- const warmCoercion = coerceWarmThroughput(gsi["WarmThroughput"]);
44725
+ const warmCoercion = coerceWarmThroughput$1(gsi["WarmThroughput"]);
44532
44726
  if (warmCoercion.spec) sdk.WarmThroughput = warmCoercion.spec;
44533
44727
  const warmDiagnostic = warmThroughputDiagnostic(gsi["WarmThroughput"], warmCoercion, typeof indexName === "string" ? indexName : void 0);
44534
44728
  if (warmDiagnostic) diagnostics?.push(warmDiagnostic);
@@ -45463,7 +45657,7 @@ const replicaDeleteGoneWait = {
45463
45657
  maxWaitMs: 600 * DYNAMODB_DELETE_POLL_COST_MS,
45464
45658
  pollIntervalMs: INDEX_SETTLE_POLL_INTERVAL_MS
45465
45659
  };
45466
- const deleteTableRetryDelays = {};
45660
+ const deleteTableRetryDelays$1 = {};
45467
45661
  function collectAutoScalingTargets(properties, localRegion) {
45468
45662
  const specs = [];
45469
45663
  const tableWrite = asRecord(asRecord(properties["WriteProvisionedThroughputSettings"])?.["WriteCapacityAutoScalingSettings"]);
@@ -46082,7 +46276,7 @@ async function create(logicalId, resourceType, properties, context) {
46082
46276
  if (properties["LocalSecondaryIndexes"]) createParams.LocalSecondaryIndexes = properties["LocalSecondaryIndexes"];
46083
46277
  const createVectorIndexes = vectorIndexesForCreate(properties["VectorIndexes"]);
46084
46278
  if (createVectorIndexes !== void 0) createParams.VectorIndexes = createVectorIndexes;
46085
- const warmCoercion = coerceWarmThroughput(properties["WarmThroughput"]);
46279
+ const warmCoercion = coerceWarmThroughput$1(properties["WarmThroughput"]);
46086
46280
  if (warmCoercion.spec) createParams.WarmThroughput = warmCoercion.spec;
46087
46281
  const warmDiagnostic = warmThroughputDiagnostic(properties["WarmThroughput"], warmCoercion, void 0);
46088
46282
  if (warmDiagnostic) diagnostics.push(warmDiagnostic);
@@ -46154,14 +46348,14 @@ async function create(logicalId, resourceType, properties, context) {
46154
46348
  }
46155
46349
 
46156
46350
  // src/provisioning/providers/dynamodb-globaltable/projection.ts
46157
- function isTableName(id) {
46351
+ function isTableName$1(id) {
46158
46352
  return /^[A-Za-z0-9_.-]{3,255}$/.test(id);
46159
46353
  }
46160
46354
  const DRIFT_STRIPPED_INDEX_MEMBERS = [{
46161
46355
  listKey: "GlobalSecondaryIndexes",
46162
46356
  member: "WarmThroughput"
46163
46357
  }];
46164
- function maskLeafValue(value, maskSecrets) {
46358
+ function maskLeafValue$1(value, maskSecrets) {
46165
46359
  return maskDeep(value, maskSecrets);
46166
46360
  }
46167
46361
  function isPlainObject$3(value) {
@@ -46312,7 +46506,7 @@ async function rollBackCreatedVectorTable(logicalId, tableName, maskSecrets) {
46312
46506
  }),
46313
46507
  shouldKeepRetrying: () => budget !== void 0 && !budget.isExhausted(),
46314
46508
  retryWarning: () => `DynamoDB GlobalTable ${logicalId}: AWS refused the DeleteTable rolling back the partially-created table ${tableName} because ${TABLE_INDEX_NOUN} is still being created, updated or deleted. Waiting for the indexes to settle and retrying (up to ${8} retries in all, within ~${Math.max(1, Math.round((budget?.totalMs ?? 0) / 6e4))} minutes).`,
46315
- sleepSeam: deleteTableRetryDelays
46509
+ sleepSeam: deleteTableRetryDelays$1
46316
46510
  });
46317
46511
  }
46318
46512
  function reportThroughputDiagnostics(diagnostics, logicalId, physicalId, maskSecrets = (text) => text) {
@@ -47325,7 +47519,7 @@ async function updatePhasePlan(scope) {
47325
47519
  const desiredDeclaresBillingMode = properties["BillingMode"] !== void 0;
47326
47520
  const seedAbsentFromLive = recordedOldBillingAbsent && desiredDeclaresBillingMode;
47327
47521
  const oldBilling = recordedOldBillingUsable ? recordedOldBilling : recordedOldBillingAbsent ? seedAbsentFromLive ? liveBillingMode : "PAY_PER_REQUEST" : liveBillingMode;
47328
- if (!recordedOldBillingUsable && !recordedOldBillingAbsent) warn(`AWS::DynamoDB::GlobalTable ${logicalId}: the recorded previous BillingMode is unusable (${JSON.stringify(maskLeafValue(recordedOldBilling, maskSecrets))}) — using the table's actual billing mode (${oldBilling}) as the comparison baseline for this update so a corrected template does not issue a same-mode UpdateTable.`);
47522
+ if (!recordedOldBillingUsable && !recordedOldBillingAbsent) warn(`AWS::DynamoDB::GlobalTable ${logicalId}: the recorded previous BillingMode is unusable (${JSON.stringify(maskLeafValue$1(recordedOldBilling, maskSecrets))}) — using the table's actual billing mode (${oldBilling}) as the comparison baseline for this update so a corrected template does not issue a same-mode UpdateTable.`);
47329
47523
  if (seedAbsentFromLive && oldBilling !== "PAY_PER_REQUEST") warn(`AWS::DynamoDB::GlobalTable ${logicalId}: the cdkd state record declares no BillingMode — using ${oldBilling} as the comparison baseline for this update (${reportedBillingMode !== void 0 ? "the mode DescribeTable reports" : "inferred: DescribeTable reports no BillingModeSummary, which means the table was created without an explicit mode"}), so a template declaring a different mode still applies the flip instead of comparing equal to the create-path default.`);
47330
47524
  let billingUnusable = false;
47331
47525
  const requestedBilling = requireConfigString(properties["BillingMode"], "PAY_PER_REQUEST", "AWS::DynamoDB::GlobalTable BillingMode", { onUnusable: (message) => {
@@ -47336,7 +47530,7 @@ async function updatePhasePlan(scope) {
47336
47530
  const onDemandCeilingLive = oldBilling === "PAY_PER_REQUEST" && newBilling === "PAY_PER_REQUEST";
47337
47531
  const diagnostics = [];
47338
47532
  if (!deepEqual(properties["WarmThroughput"], previousProperties["WarmThroughput"])) {
47339
- const warmUpdateDiagnostic = warmThroughputDiagnostic(properties["WarmThroughput"], coerceWarmThroughput(properties["WarmThroughput"]), void 0);
47533
+ const warmUpdateDiagnostic = warmThroughputDiagnostic(properties["WarmThroughput"], coerceWarmThroughput$1(properties["WarmThroughput"]), void 0);
47340
47534
  if (warmUpdateDiagnostic) diagnostics.push(warmUpdateDiagnostic);
47341
47535
  }
47342
47536
  const desiredCeilings = collectTableOnDemandCeilings(properties, currentRegion, diagnostics, maskSecrets);
@@ -47842,7 +48036,7 @@ async function updatePhaseIndexes(scope) {
47842
48036
  }
47843
48037
  if (vectorIndexPlan !== void 0) await this.applyVectorIndexUpdates(physicalId, logicalId, vectorIndexPlan, properties["AttributeDefinitions"], maskSecrets);
47844
48038
  if (!deepEqual(properties["WarmThroughput"], previousProperties["WarmThroughput"])) {
47845
- const warmCoercion = coerceWarmThroughput(properties["WarmThroughput"]);
48039
+ const warmCoercion = coerceWarmThroughput$1(properties["WarmThroughput"]);
47846
48040
  const warmToSend = this.tableWarmThroughputForSend(warmCoercion.spec, describeResp.Table?.WarmThroughput, logicalId, physicalId, maskSecrets);
47847
48041
  if (warmToSend) {
47848
48042
  markUnsettled("WarmThroughput");
@@ -48604,7 +48798,7 @@ async function deleteGlobalTableResource(logicalId, physicalId, resourceType, co
48604
48798
  loopLogger.warn(`DynamoDB GlobalTable ${logicalId}: giving up the index-busy DeleteTable retry on ${physicalId} — the delete path has spent its whole ${Math.round(budget.totalMs / 6e4)}-minute budget, so the destroy fails on AWS's refusal; re-running it succeeds once the index is ACTIVE.`);
48605
48799
  return false;
48606
48800
  },
48607
- sleepSeam: deleteTableRetryDelays
48801
+ sleepSeam: deleteTableRetryDelays$1
48608
48802
  });
48609
48803
  await this.waitForTableGone(physicalId, logicalId, 600, budget, context?.maskSecrets);
48610
48804
  await Promise.all([...droppedReplicaRegions].map((region) => waitForGoneAfterDelete({
@@ -48643,6 +48837,290 @@ async function deleteGlobalTableResource(logicalId, physicalId, resourceType, co
48643
48837
  }
48644
48838
  }
48645
48839
 
48840
+ // src/provisioning/providers/dynamodb-table/table-helpers.ts
48841
+ function isTableName(id) {
48842
+ return /^[A-Za-z0-9_.-]{3,255}$/.test(id);
48843
+ }
48844
+ function mapSSESpecification(raw) {
48845
+ if (raw === null || typeof raw !== "object") return;
48846
+ const cfn = raw;
48847
+ const out = {};
48848
+ if (cfn.SSEEnabled !== void 0) out.Enabled = coerceCfnBoolean(cfn.SSEEnabled) === true;
48849
+ if (typeof cfn.SSEType === "string") out.SSEType = cfn.SSEType;
48850
+ if (typeof cfn.KMSMasterKeyId === "string") out.KMSMasterKeyId = cfn.KMSMasterKeyId;
48851
+ return out;
48852
+ }
48853
+ function sseSpecificationRefusal(value, logicalId) {
48854
+ const path = `AWS::DynamoDB::Table ${logicalId} SSESpecification`;
48855
+ if (value === null) return `${path} must be an object (got null)`;
48856
+ return configBooleanRefusal(value, "SSEEnabled", path);
48857
+ }
48858
+ function sseSpecificationToSend(desired, previous, liveSse, described) {
48859
+ const status = liveSse?.Status;
48860
+ const liveOn = status === "ENABLED" || status === "ENABLING" || status === "UPDATING";
48861
+ const liveOff = described && (liveSse === void 0 || status === "DISABLED" || status === "DISABLING");
48862
+ if (desired !== void 0) {
48863
+ const mapped = mapSSESpecification(desired);
48864
+ if (mapped === void 0 || Object.keys(mapped).length === 0) return void 0;
48865
+ if (mapped.Enabled === false && liveOff) return void 0;
48866
+ const liveKeyArn = liveSse?.KMSMasterKeyArn;
48867
+ if (mapped.Enabled === true && status === "ENABLED" && mapped.KMSMasterKeyId !== void 0 && liveKeyArn?.includes(":key/") === true && (mapped.KMSMasterKeyId === liveKeyArn || mapped.KMSMasterKeyId === liveKeyArn.slice(liveKeyArn.lastIndexOf(":key/") + 5)) && (mapped.SSEType === void 0 || mapped.SSEType === liveSse?.SSEType)) return;
48868
+ return mapped;
48869
+ }
48870
+ if (liveOff) return void 0;
48871
+ const previousOn = previous !== null && typeof previous === "object" ? coerceCfnBoolean(previous["SSEEnabled"]) === true : false;
48872
+ return liveOn || previousOn ? { Enabled: false } : void 0;
48873
+ }
48874
+ function readCapacityNumber(block, member) {
48875
+ if (!isPlainCapacityBlock(block)) return void 0;
48876
+ return coerceCfnInteger(block[member]);
48877
+ }
48878
+ function pointInTimeRecoveryRefusal(spec) {
48879
+ return configIntegerRefusal(spec, "RecoveryPeriodInDays", "AWS::DynamoDB::Table PointInTimeRecoverySpecification", 1, 35);
48880
+ }
48881
+ function isPlainCapacityBlock(value) {
48882
+ return typeof value === "object" && value !== null && !Array.isArray(value);
48883
+ }
48884
+ function hasUsableDeclaredCapacity(entry) {
48885
+ const declared = entry?.["ProvisionedThroughput"];
48886
+ return readCapacityNumber(declared, "ReadCapacityUnits") !== void 0 && readCapacityNumber(declared, "WriteCapacityUnits") !== void 0;
48887
+ }
48888
+ const KINESIS_DESTINATION_SETTLE_POLL_MS = 2e3;
48889
+ const KINESIS_DISABLE_PENDING_STATUSES = /* @__PURE__ */ new Set([
48890
+ "ACTIVE",
48891
+ "ENABLING",
48892
+ "UPDATING",
48893
+ "DISABLING"
48894
+ ]);
48895
+ const deleteTableRetryDelays = {};
48896
+ function maskLeafValue(value, maskSecrets) {
48897
+ return maskDeep(value, maskSecrets);
48898
+ }
48899
+ const tableNameReleaseWait = {
48900
+ maxPolls: 600,
48901
+ intervalMs: INDEX_SETTLE_POLL_INTERVAL_MS
48902
+ };
48903
+ const tableDeleteGoneWait = {
48904
+ maxWaitMs: 600 * DYNAMODB_DELETE_POLL_COST_MS,
48905
+ pollIntervalMs: INDEX_SETTLE_POLL_INTERVAL_MS
48906
+ };
48907
+
48908
+ // src/provisioning/providers/dynamodb-table/warm-throughput.ts
48909
+ function isSendableWarmThroughput(value) {
48910
+ return coerceWarmThroughput(value) !== void 0;
48911
+ }
48912
+ function coerceWarmThroughput(value) {
48913
+ const { spec, droppedMembers } = coerceWarmThroughput$1(value);
48914
+ if (spec === void 0) return void 0;
48915
+ return {
48916
+ spec,
48917
+ dropped: [...droppedMembers]
48918
+ };
48919
+ }
48920
+ function isRecordedSentStandIn(value) {
48921
+ return typeof value === "string" && (dynamicReferenceTokens(value).length > 0 || value === "***");
48922
+ }
48923
+ function sentWarmThroughputMembers(value) {
48924
+ const members = /* @__PURE__ */ new Set();
48925
+ const coerced = coerceWarmThroughput(value);
48926
+ for (const member of WARM_THROUGHPUT_MEMBERS) if (coerced?.spec[member] !== void 0) members.add(member);
48927
+ else if (isPlainCapacityBlock(value) && isRecordedSentStandIn(value[member])) members.add(member);
48928
+ return members;
48929
+ }
48930
+ function wasSentWarmThroughput(value) {
48931
+ return sentWarmThroughputMembers(value).size > 0;
48932
+ }
48933
+ function readbackWarmThroughput(live, members, declared) {
48934
+ const moving = live.Status === "UPDATING" ? coerceWarmThroughput(declared)?.spec : void 0;
48935
+ const out = {};
48936
+ for (const member of WARM_THROUGHPUT_MEMBERS) {
48937
+ const value = live[member];
48938
+ if (value === void 0) continue;
48939
+ if (members !== void 0 && !members.has(member)) continue;
48940
+ const target = moving?.[member];
48941
+ out[member] = target === void 0 ? value : Math.max(value, target);
48942
+ }
48943
+ return Object.keys(out).length > 0 ? out : void 0;
48944
+ }
48945
+ function trimUnsentWarmMembers(baselineBlock, sent) {
48946
+ if (sent.size === 0 || !isPlainCapacityBlock(baselineBlock)) return baselineBlock;
48947
+ const unsent = WARM_THROUGHPUT_MEMBERS.filter((member) => member in baselineBlock && !sent.has(member));
48948
+ if (unsent.length === 0) return baselineBlock;
48949
+ const trimmed = { ...baselineBlock };
48950
+ for (const member of unsent) delete trimmed[member];
48951
+ return trimmed;
48952
+ }
48953
+ function isRefusedWarmThroughput(value) {
48954
+ if (value === void 0) return false;
48955
+ if (!value) return false;
48956
+ return !isSendableWarmThroughput(value);
48957
+ }
48958
+ function desiredBagIsInformative(properties) {
48959
+ return properties !== void 0 && Object.keys(properties).length > 0;
48960
+ }
48961
+ function declaresWarmThroughput(properties) {
48962
+ if (!desiredBagIsInformative(properties)) return true;
48963
+ return properties !== void 0 && wasSentWarmThroughput(properties["WarmThroughput"]);
48964
+ }
48965
+ function warmThroughputAlreadyMatches(desired, live) {
48966
+ if (live === void 0) return false;
48967
+ let compared = 0;
48968
+ for (const member of WARM_THROUGHPUT_MEMBERS) {
48969
+ if (desired[member] === void 0) continue;
48970
+ const wanted = toFiniteNumber(desired[member]);
48971
+ const current = toFiniteNumber(live[member]);
48972
+ if (wanted === void 0 || current === void 0) return false;
48973
+ if (wanted !== current) return false;
48974
+ compared++;
48975
+ }
48976
+ return compared > 0;
48977
+ }
48978
+
48979
+ // src/provisioning/providers/dynamodb-table/indexes.ts
48980
+ function reverseMapSecondaryIndex(live, desired, bagInformative) {
48981
+ const out = {};
48982
+ if (live.IndexName !== void 0) out["IndexName"] = live.IndexName;
48983
+ if (live.KeySchema !== void 0) out["KeySchema"] = live.KeySchema.map((element) => ({ ...element }));
48984
+ if (live.Projection !== void 0) {
48985
+ const projection = {};
48986
+ if (live.Projection.ProjectionType !== void 0) projection["ProjectionType"] = live.Projection.ProjectionType;
48987
+ if (live.Projection.NonKeyAttributes !== void 0) projection["NonKeyAttributes"] = [...live.Projection.NonKeyAttributes];
48988
+ if (Object.keys(projection).length > 0) out["Projection"] = projection;
48989
+ }
48990
+ if ("ProvisionedThroughput" in live && indexDeclares(desired, "ProvisionedThroughput", bagInformative) && live.ProvisionedThroughput) {
48991
+ const provisioned = live.ProvisionedThroughput;
48992
+ const pt = {};
48993
+ if (provisioned.ReadCapacityUnits !== void 0) pt["ReadCapacityUnits"] = provisioned.ReadCapacityUnits;
48994
+ if (provisioned.WriteCapacityUnits !== void 0) pt["WriteCapacityUnits"] = provisioned.WriteCapacityUnits;
48995
+ if (Object.keys(pt).length > 0) out["ProvisionedThroughput"] = pt;
48996
+ }
48997
+ if ("OnDemandThroughput" in live && indexDeclares(desired, "OnDemandThroughput", bagInformative) && live.OnDemandThroughput) {
48998
+ const onDemand = live.OnDemandThroughput;
48999
+ const odt = {};
49000
+ if (onDemand.MaxReadRequestUnits !== void 0) odt["MaxReadRequestUnits"] = onDemand.MaxReadRequestUnits;
49001
+ if (onDemand.MaxWriteRequestUnits !== void 0) odt["MaxWriteRequestUnits"] = onDemand.MaxWriteRequestUnits;
49002
+ if (Object.keys(odt).length > 0) out["OnDemandThroughput"] = odt;
49003
+ }
49004
+ if ("WarmThroughput" in live && indexDeclares(desired, "WarmThroughput", bagInformative) && live.WarmThroughput) {
49005
+ const wt = readbackWarmThroughput(live.WarmThroughput, bagInformative ? sentWarmThroughputMembers(desired?.["WarmThroughput"]) : void 0, bagInformative ? desired?.["WarmThroughput"] : void 0);
49006
+ if (wt !== void 0) out["WarmThroughput"] = wt;
49007
+ }
49008
+ return out;
49009
+ }
49010
+ const SDK_ONLY_INDEX_MEMBERS = [
49011
+ "IndexStatus",
49012
+ "Backfilling",
49013
+ "IndexSizeBytes",
49014
+ "ItemCount",
49015
+ "IndexArn"
49016
+ ];
49017
+ const SDK_ONLY_THROUGHPUT_MEMBERS = [
49018
+ "NumberOfDecreasesToday",
49019
+ "LastIncreaseDateTime",
49020
+ "LastDecreaseDateTime"
49021
+ ];
49022
+ function canonicalizeStaleIndexDescription(element) {
49023
+ if (typeof element !== "object" || element === null || Array.isArray(element)) return element;
49024
+ const copy = { ...element };
49025
+ let changed = false;
49026
+ for (const member of SDK_ONLY_INDEX_MEMBERS) if (member in copy) {
49027
+ delete copy[member];
49028
+ changed = true;
49029
+ }
49030
+ const pt = copy["ProvisionedThroughput"];
49031
+ if (isPlainCapacityBlock(pt) && SDK_ONLY_THROUGHPUT_MEMBERS.some((member) => member in pt)) {
49032
+ changed = true;
49033
+ const trimmed = { ...pt };
49034
+ for (const member of SDK_ONLY_THROUGHPUT_MEMBERS) delete trimmed[member];
49035
+ if ((trimmed["ReadCapacityUnits"] ?? 0) === 0 && (trimmed["WriteCapacityUnits"] ?? 0) === 0) delete copy["ProvisionedThroughput"];
49036
+ else copy["ProvisionedThroughput"] = trimmed;
49037
+ }
49038
+ const warm = copy["WarmThroughput"];
49039
+ if (isPlainCapacityBlock(warm) && "Status" in warm) {
49040
+ delete copy["WarmThroughput"];
49041
+ changed = true;
49042
+ }
49043
+ return changed ? copy : element;
49044
+ }
49045
+ function sameJsonValue(a, b) {
49046
+ const toJson = (v) => v === void 0 ? void 0 : JSON.parse(JSON.stringify(v));
49047
+ return isDeepStrictEqual(toJson(a), toJson(b));
49048
+ }
49049
+ function gsiUnsendableChangeRefusal(previousGsis, desiredGsis, logicalId) {
49050
+ const asEntries = (value) => value === void 0 || value === null ? [] : Array.isArray(value) ? value.filter((entry) => typeof entry === "object" && entry !== null && Boolean(entry["IndexName"])) : void 0;
49051
+ const prev = asEntries(previousGsis);
49052
+ const desired = asEntries(desiredGsis);
49053
+ if (prev === void 0 || desired === void 0) return void 0;
49054
+ const prevByName = new Map(prev.map((g) => [String(g["IndexName"]), g]));
49055
+ for (const gsi of desired) {
49056
+ const name = String(gsi["IndexName"]);
49057
+ const before = prevByName.get(name);
49058
+ if (before === void 0) {
49059
+ if (!gsi["KeySchema"]) return `GlobalSecondaryIndex ${name} on DynamoDB table ${logicalId} is missing KeySchema`;
49060
+ } else if (!sameJsonValue(before["KeySchema"], gsi["KeySchema"]) || !sameJsonValue(before["Projection"], gsi["Projection"])) return `GlobalSecondaryIndex ${name} on DynamoDB table ${logicalId} changed its KeySchema or Projection, which DynamoDB cannot modify in place. Rename the index (so it is dropped and re-created) or replace the table.`;
49061
+ }
49062
+ }
49063
+ function indexDeclares(desired, key, bagInformative) {
49064
+ if (!bagInformative) return true;
49065
+ const value = desired?.[key];
49066
+ return key === "WarmThroughput" ? wasSentWarmThroughput(value) : Boolean(value);
49067
+ }
49068
+ function declaresIndexList(value) {
49069
+ return Array.isArray(value) && value.length > 0;
49070
+ }
49071
+ function deletionProtectionRefusal(value, logicalId) {
49072
+ return configBooleanRefusal({ DeletionProtectionEnabled: value }, "DeletionProtectionEnabled", `AWS::DynamoDB::Table ${logicalId}`);
49073
+ }
49074
+ function localSecondaryIndexesKey(value) {
49075
+ if (value === void 0 || value === null) return "[]";
49076
+ if (!Array.isArray(value)) return JSON.stringify(value);
49077
+ const isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
49078
+ const entries = value.map((entry) => {
49079
+ if (!isRecord(entry)) return JSON.stringify(entry);
49080
+ const keySchema = Array.isArray(entry["KeySchema"]) ? entry["KeySchema"].map((element) => isRecord(element) ? {
49081
+ AttributeName: element["AttributeName"],
49082
+ KeyType: element["KeyType"]
49083
+ } : element) : entry["KeySchema"];
49084
+ const projection = entry["Projection"];
49085
+ const projectionKey = isRecord(projection) ? {
49086
+ ProjectionType: projection["ProjectionType"],
49087
+ NonKeyAttributes: Array.isArray(projection["NonKeyAttributes"]) ? projection["NonKeyAttributes"].length > 0 ? [...projection["NonKeyAttributes"]].map(String).sort() : void 0 : projection["NonKeyAttributes"]
49088
+ } : projection;
49089
+ return JSON.stringify({
49090
+ IndexName: entry["IndexName"],
49091
+ KeySchema: keySchema,
49092
+ Projection: projectionKey
49093
+ });
49094
+ });
49095
+ return JSON.stringify(entries.sort());
49096
+ }
49097
+ function desiredIndexEntriesByName(value) {
49098
+ const byName = /* @__PURE__ */ new Map();
49099
+ if (!declaresIndexList(value)) return byName;
49100
+ for (const entry of value) {
49101
+ if (typeof entry !== "object" || entry === null || Array.isArray(entry)) continue;
49102
+ const name = entry["IndexName"];
49103
+ if (typeof name === "string") byName.set(name, entry);
49104
+ }
49105
+ return byName;
49106
+ }
49107
+ function projectIndexesOnto(live, recorded, desired, attempted = /* @__PURE__ */ new Set()) {
49108
+ if (!Array.isArray(live)) return void 0;
49109
+ const named = new Set([...attempted].filter(isUsableAttemptedName));
49110
+ for (const list of [recorded, desired]) {
49111
+ if (!Array.isArray(list)) continue;
49112
+ for (const entry of list) {
49113
+ const name = typeof entry === "object" && entry !== null ? entry["IndexName"] : void 0;
49114
+ if (typeof name === "string") named.add(name);
49115
+ }
49116
+ }
49117
+ const kept = live.filter((entry) => {
49118
+ const name = typeof entry === "object" && entry !== null ? entry["IndexName"] : void 0;
49119
+ return typeof name === "string" && named.has(name);
49120
+ });
49121
+ return kept.length > 0 ? kept : void 0;
49122
+ }
49123
+
48646
49124
  // src/provisioning/dynamodb-stream-members.ts
48647
49125
  const STREAM_SPECIFICATION_KEY = "StreamSpecification";
48648
49126
  const STREAM_POLICY_KEY = "ResourcePolicy";
@@ -48985,7 +49463,7 @@ function settleReplicaTags(listTags, written, logicalId) {
48985
49463
  // src/provisioning/providers/dynamodb-globaltable/read.ts
48986
49464
  async function isSameResource(journaledPhysicalId, record, resourceType, context) {
48987
49465
  if (resourceType !== "AWS::DynamoDB::GlobalTable") return "unknown";
48988
- if (!isTableName(journaledPhysicalId) || !isTableName(record.physicalId)) return "unknown";
49466
+ if (!isTableName$1(journaledPhysicalId) || !isTableName$1(record.physicalId)) return "unknown";
48989
49467
  if (journaledPhysicalId === record.physicalId) return "same";
48990
49468
  if (await this.dynamoDBClient.config.region() !== context.expectedRegion) return "unknown";
48991
49469
  const recordTableId = await this.readTableIdIfExists(record.physicalId);
@@ -48995,7 +49473,7 @@ async function isSameResource(journaledPhysicalId, record, resourceType, context
48995
49473
  return journaledTableId === recordTableId ? "same" : "different";
48996
49474
  }
48997
49475
  async function resourceIdentity(physicalId, resourceType, context) {
48998
- if (resourceType !== "AWS::DynamoDB::GlobalTable" || !isTableName(physicalId)) return;
49476
+ if (resourceType !== "AWS::DynamoDB::GlobalTable" || !isTableName$1(physicalId)) return;
48999
49477
  if (await this.dynamoDBClient.config.region() !== context.expectedRegion) return void 0;
49000
49478
  const live = await this.readTableIdIfExists(physicalId);
49001
49479
  return live === void 0 ? RESOURCE_NOT_FOUND : live;
@@ -49178,10 +49656,9 @@ async function readCurrentState(physicalId, logicalId, _resourceType, properties
49178
49656
  if (gsi.KeySchema) entry["KeySchema"] = gsi.KeySchema;
49179
49657
  if (gsi.Projection) entry["Projection"] = gsi.Projection;
49180
49658
  if (gsi.WarmThroughput) {
49181
- const warm = {};
49182
- if (gsi.WarmThroughput.ReadUnitsPerSecond !== void 0) warm["ReadUnitsPerSecond"] = gsi.WarmThroughput.ReadUnitsPerSecond;
49183
- if (gsi.WarmThroughput.WriteUnitsPerSecond !== void 0) warm["WriteUnitsPerSecond"] = gsi.WarmThroughput.WriteUnitsPerSecond;
49184
- if (Object.keys(warm).length > 0) entry["WarmThroughput"] = warm;
49659
+ const declaredWarm = desiredIndexEntriesByName(properties?.["GlobalSecondaryIndexes"]).get(gsi.IndexName)?.["WarmThroughput"];
49660
+ const warm = readbackWarmThroughput(gsi.WarmThroughput, void 0, declaredWarm);
49661
+ if (warm !== void 0) entry["WarmThroughput"] = warm;
49185
49662
  }
49186
49663
  const replicaEntry = { IndexName: gsi.IndexName };
49187
49664
  if (billingMode === "PROVISIONED") {
@@ -49215,7 +49692,7 @@ async function readCurrentState(physicalId, logicalId, _resourceType, properties
49215
49692
  } else result["WriteProvisionedThroughputSettings"] = {};
49216
49693
  const liveVectorIndexes = readbackVectorIndexes(table.VectorIndexes);
49217
49694
  if (liveVectorIndexes !== void 0) result["VectorIndexes"] = liveVectorIndexes;
49218
- const declaredWarm = coerceWarmThroughput(properties?.["WarmThroughput"]).spec;
49695
+ const declaredWarm = coerceWarmThroughput$1(properties?.["WarmThroughput"]).spec;
49219
49696
  if (declaredWarm && table.WarmThroughput) {
49220
49697
  const warm = {};
49221
49698
  for (const member of WARM_THROUGHPUT_MEMBERS) {
@@ -49252,7 +49729,7 @@ function getDriftUnknownPaths(_resourceType, properties) {
49252
49729
  const paths = ["TableType"];
49253
49730
  if (properties === void 0 || Object.keys(properties).length === 0) return paths;
49254
49731
  if (properties["BillingMode"] !== "PROVISIONED") paths.push(TABLE_READ_PROVISIONED_KEY);
49255
- if (!coerceWarmThroughput(properties["WarmThroughput"]).spec) paths.push("WarmThroughput");
49732
+ if (!coerceWarmThroughput$1(properties["WarmThroughput"]).spec) paths.push("WarmThroughput");
49256
49733
  return paths;
49257
49734
  }
49258
49735
  function getDriftUnorderedPaths(_resourceType) {
@@ -49262,22 +49739,41 @@ function getDriftUnorderedPaths(_resourceType) {
49262
49739
  "VectorIndexes"
49263
49740
  ];
49264
49741
  }
49265
- function canonicalizeDriftProperties(resourceType, properties) {
49266
- if (resourceType !== "AWS::DynamoDB::GlobalTable") return properties;
49267
- let result = properties;
49742
+ function canonicalizeIndexWarmThroughput(bag, properties) {
49743
+ let result = bag;
49268
49744
  for (const { listKey, member } of DRIFT_STRIPPED_INDEX_MEMBERS) {
49269
49745
  const list = result[listKey];
49270
49746
  if (!Array.isArray(list)) continue;
49271
- let stripped = false;
49747
+ const declared = properties === void 0 ? void 0 : desiredIndexEntriesByName(properties[listKey]);
49748
+ let changed = false;
49272
49749
  const canonical = list.map((element) => {
49273
49750
  const entry = asRecord(element);
49274
49751
  if (!entry || !(member in entry)) return element;
49275
- stripped = true;
49752
+ const name = entry["IndexName"];
49753
+ const sent = declared !== void 0 && typeof name === "string" ? sentWarmThroughputMembers(declared.get(name)?.[member]) : /* @__PURE__ */ new Set();
49754
+ const block = entry[member];
49755
+ if (sent.size > 0 && isPlainCapacityBlock(block)) {
49756
+ const coerced = coerceWarmThroughput$1(block).spec;
49757
+ const kept = {};
49758
+ let rewritten = false;
49759
+ for (const key of Object.keys(block)) {
49760
+ if (!sent.has(key)) continue;
49761
+ kept[key] = coerced?.[key] ?? block[key];
49762
+ if (kept[key] !== block[key]) rewritten = true;
49763
+ }
49764
+ if (!rewritten && Object.keys(kept).length === Object.keys(block).length) return element;
49765
+ changed = true;
49766
+ const copy = { ...entry };
49767
+ if (Object.keys(kept).length > 0) copy[member] = kept;
49768
+ else delete copy[member];
49769
+ return copy;
49770
+ }
49771
+ changed = true;
49276
49772
  const copy = { ...entry };
49277
49773
  delete copy[member];
49278
49774
  return copy;
49279
49775
  });
49280
- if (stripped) result = {
49776
+ if (changed) result = {
49281
49777
  ...result,
49282
49778
  [listKey]: canonical
49283
49779
  };
@@ -49293,11 +49789,13 @@ function canonicalizeDesiredProperties(resourceType, properties) {
49293
49789
  [STREAM_SPECIFICATION_KEY$1]: impliedStream
49294
49790
  };
49295
49791
  }
49296
- async function canonicalizeDriftPair(resourceType, baseline, aws) {
49792
+ async function canonicalizeDriftPair(resourceType, rawBaseline, rawAws, properties) {
49297
49793
  if (resourceType !== "AWS::DynamoDB::GlobalTable") return {
49298
- baseline,
49299
- aws
49794
+ baseline: rawBaseline,
49795
+ aws: rawAws
49300
49796
  };
49797
+ const baseline = canonicalizeIndexWarmThroughput(rawBaseline, properties);
49798
+ const aws = canonicalizeIndexWarmThroughput(rawAws, properties);
49301
49799
  const localRegion = await this.dynamoDBClient.config.region() ?? "";
49302
49800
  const completed = completeLegacyLocalReplica(baseline, aws, localRegion);
49303
49801
  const converted = canonicalizePre5381ReplicaBaseline(completed, aws, localRegion, completed !== baseline);
@@ -49702,9 +50200,6 @@ var DynamoDBGlobalTableProvider = class {
49702
50200
  getDriftUnorderedPaths(...args) {
49703
50201
  return getDriftUnorderedPaths.call(this, ...args);
49704
50202
  }
49705
- canonicalizeDriftProperties(...args) {
49706
- return canonicalizeDriftProperties.call(this, ...args);
49707
- }
49708
50203
  canonicalizeDesiredProperties(...args) {
49709
50204
  return canonicalizeDesiredProperties.call(this, ...args);
49710
50205
  }
@@ -52627,7 +53122,7 @@ function findServiceTokenRefusals(input) {
52627
53122
  const refused = [];
52628
53123
  const deferred = [];
52629
53124
  for (const [logicalId, change] of input.changes) {
52630
- if (change.changeType !== "UPDATE" || !isCustomResourceType(change.resourceType)) continue;
53125
+ if (change.changeType !== "UPDATE" || !isCustomResourceType$1(change.resourceType)) continue;
52631
53126
  if (!Object.hasOwn(input.stateResources, logicalId)) continue;
52632
53127
  const record = input.stateResources[logicalId];
52633
53128
  if (record === void 0 || record.resourceType !== change.resourceType) continue;
@@ -52667,7 +53162,7 @@ function findServiceTokenRefusals(input) {
52667
53162
  };
52668
53163
  }
52669
53164
  function serviceTokenUpdateRefusal(input) {
52670
- if (!isCustomResourceType(input.resourceType) || input.recordedType !== input.resourceType) return;
53165
+ if (!isCustomResourceType$1(input.resourceType) || input.recordedType !== input.resourceType) return;
52671
53166
  const recordedProblem = uncomparableToken(input.recorded);
52672
53167
  if (recordedProblem !== void 0) return input.diffSawTokenChange ? {
52673
53168
  logicalId: input.logicalId,
@@ -53787,13 +54282,401 @@ async function rollbackFailedDeploy(run, error, initialDeploy, currentEtag) {
53787
54282
  }
53788
54283
  }
53789
54284
 
54285
+ // src/deployment/recreate-target-promotion.ts
54286
+ function recreateTargetIdsFor(recreateTargets, stackName) {
54287
+ if (recreateTargets === void 0 || recreateTargets.stackName !== stackName) return void 0;
54288
+ const ids = /* @__PURE__ */ new Set([...recreateTargets.viaCcApi, ...recreateTargets.viaSdkProvider]);
54289
+ return ids.size > 0 ? ids : void 0;
54290
+ }
54291
+ function promoteRecreateTargets(changes, recreateTargets, stackName) {
54292
+ const promoted = [];
54293
+ const unreached = [];
54294
+ if (recreateTargets === void 0 || recreateTargets.stackName !== stackName) return {
54295
+ promoted,
54296
+ unreached
54297
+ };
54298
+ const named = [...[...recreateTargets.viaCcApi].map((id) => [id, "--recreate-via-cc-api"]), ...[...recreateTargets.viaSdkProvider].map((id) => [id, "--recreate-via-sdk-provider"])];
54299
+ for (const [logicalId, flag] of named) {
54300
+ const change = changes.get(logicalId);
54301
+ if (change?.changeType === "NO_CHANGE") {
54302
+ change.changeType = "UPDATE";
54303
+ change.propertyChanges = [];
54304
+ promoted.push(logicalId);
54305
+ } else if (change?.changeType !== "UPDATE") unreached.push({
54306
+ logicalId,
54307
+ flag,
54308
+ changeType: change?.changeType
54309
+ });
54310
+ }
54311
+ return {
54312
+ promoted,
54313
+ unreached
54314
+ };
54315
+ }
54316
+
54317
+ // src/deployment/export-change-guard.ts
54318
+ async function findAffectedExports({ template, conditions, changes, currentState, resolve, replaces }) {
54319
+ const published = importableOutputKeys(currentState);
54320
+ if (published.length === 0) return [];
54321
+ const publishedSet = new Set(published);
54322
+ const declared = /* @__PURE__ */ new Map();
54323
+ const legacy = currentState.exportNames === void 0;
54324
+ for (const [outputKey, output] of Object.entries(template.Outputs ?? {})) {
54325
+ if (output === null || typeof output !== "object") continue;
54326
+ if (typeof output.Condition === "string" && conditions[output.Condition] === false) continue;
54327
+ if (legacy && publishedSet.has(outputKey)) declared.set(outputKey, output);
54328
+ const exportName = output.Export?.Name;
54329
+ if (exportName === void 0) continue;
54330
+ let name = exportName;
54331
+ if (typeof name !== "string") {
54332
+ if (holdsDynamicReference(exportName)) continue;
54333
+ try {
54334
+ name = await resolve(exportName);
54335
+ } catch {
54336
+ continue;
54337
+ }
54338
+ }
54339
+ if (typeof name === "string" && publishedSet.has(name)) declared.set(name, output);
54340
+ }
54341
+ const affected = [];
54342
+ for (const exportName of published) {
54343
+ const output = declared.get(exportName);
54344
+ if (output === void 0) {
54345
+ affected.push({
54346
+ exportName,
54347
+ reason: "removed"
54348
+ });
54349
+ continue;
54350
+ }
54351
+ const verdict = await valueMayChange(output, currentState.outputs[exportName], changes, resolve, replaces);
54352
+ if (verdict === "changed") affected.push({
54353
+ exportName,
54354
+ reason: "changed"
54355
+ });
54356
+ else if (verdict === "deferred") affected.push({
54357
+ exportName,
54358
+ reason: "deferred",
54359
+ value: output.Value
54360
+ });
54361
+ }
54362
+ return affected;
54363
+ }
54364
+ async function valueMayChange(output, publishedValue, changes, resolve, replaces) {
54365
+ let touchesChangedResource = false;
54366
+ let readsUpdatedCustomResource = false;
54367
+ for (const [logicalId, reads] of extractGetAttRefs(output.Value)) {
54368
+ if (replaces(logicalId)) return "changed";
54369
+ const change = changes.get(logicalId);
54370
+ if (change === void 0 || change.changeType === "NO_CHANGE") continue;
54371
+ if (change.changeType !== "UPDATE") return "changed";
54372
+ touchesChangedResource = true;
54373
+ if (isCustomResourceType(change.resourceType)) readsUpdatedCustomResource = true;
54374
+ else if (inPlaceUpdateMayMove(change, reads)) return "changed";
54375
+ }
54376
+ if (publishedValue === "***") return readsUpdatedCustomResource ? "changed" : "unchanged";
54377
+ if (readsUpdatedCustomResource && JSON.stringify(publishedValue)?.includes("***") === true) return "changed";
54378
+ if (holdsDynamicReference(output.Value)) return touchesChangedResource ? "changed" : "unchanged";
54379
+ let desired;
54380
+ try {
54381
+ desired = await resolve(output.Value);
54382
+ } catch {
54383
+ return touchesChangedResource ? "changed" : "unchanged";
54384
+ }
54385
+ if (desired === void 0) return touchesChangedResource ? "changed" : "unchanged";
54386
+ if (!isDeepStrictEqual(desired, publishedValue)) return "changed";
54387
+ return readsUpdatedCustomResource ? "deferred" : "unchanged";
54388
+ }
54389
+ function isCustomResourceType(type) {
54390
+ return type.startsWith("Custom::") || type === "AWS::CloudFormation::CustomResource";
54391
+ }
54392
+ async function findChangedDeferredExports(deferred, currentState, resolve) {
54393
+ const changed = [];
54394
+ for (const entry of deferred) {
54395
+ if (entry.reason !== "deferred") continue;
54396
+ let value;
54397
+ try {
54398
+ value = await resolve(entry.value);
54399
+ } catch {
54400
+ value = void 0;
54401
+ }
54402
+ if (value === void 0 || !isDeepStrictEqual(value, currentState.outputs[entry.exportName])) changed.push({
54403
+ exportName: entry.exportName,
54404
+ reason: "changed"
54405
+ });
54406
+ }
54407
+ return changed;
54408
+ }
54409
+ function inPlaceUpdateMayMove(change, reads) {
54410
+ const type = change.resourceType;
54411
+ const changed = new Set((change.propertyChanges ?? []).map((pc) => pc.path));
54412
+ const derived = Object.hasOwn(IN_PLACE_UPDATE_DERIVED_ATTRS, type) ? IN_PLACE_UPDATE_DERIVED_ATTRS[type] : void 0;
54413
+ const prefixes = Object.hasOwn(IN_PLACE_UPDATE_DERIVED_ATTR_PREFIXES, type) ? IN_PLACE_UPDATE_DERIVED_ATTR_PREFIXES[type] : void 0;
54414
+ for (const attr of reads) {
54415
+ if (attr === "<Ref>") continue;
54416
+ if (changed.has(attr) || derived?.has(attr) === true) return true;
54417
+ if (prefixes?.some((prefix) => attr.startsWith(prefix)) === true) return true;
54418
+ }
54419
+ return false;
54420
+ }
54421
+ function holdsDynamicReference(value) {
54422
+ return JSON.stringify(value)?.includes("{{resolve:") === true;
54423
+ }
54424
+ function inRunStackKey(stackName, region) {
54425
+ return producerRecordKey(stackName, canonicalizeRegion(region));
54426
+ }
54427
+
54428
+ // src/state/active-import-consumers.ts
54429
+ async function scanActiveConsumers(producerStack, producerRegion, ctx, onUnreadable) {
54430
+ const refs = await ctx.stateBackend.listStacks();
54431
+ return (await Promise.all(refs.map(async (ref) => {
54432
+ const region = ref.region ?? ctx.baseRegion;
54433
+ if (ref.stackName === producerStack && region === producerRegion) return null;
54434
+ try {
54435
+ const imports = (await ctx.stateBackend.getState(ref.stackName, region, { readOnly: true }))?.state.imports;
54436
+ if (!imports || imports.length === 0) return null;
54437
+ const matches = imports.filter((entry) => entry.sourceStack === producerStack && canonicalizeRegion(entry.sourceRegion) === canonicalizeRegion(producerRegion));
54438
+ if (matches.length === 0) return null;
54439
+ return matches.map((entry) => ({
54440
+ consumerStack: ref.stackName,
54441
+ consumerRegion: region,
54442
+ exportName: entry.exportName
54443
+ }));
54444
+ } catch {
54445
+ onUnreadable?.(ref.stackName, region);
54446
+ return null;
54447
+ }
54448
+ }))).filter((r) => r !== null).flat();
54449
+ }
54450
+
54451
+ // src/deployment/ssm-slashed-name-heal.ts
54452
+ const SSM_PARAMETER = "AWS::SSM::Parameter";
54453
+ function isObject$1(value) {
54454
+ return typeof value === "object" && value !== null && !Array.isArray(value);
54455
+ }
54456
+ function generatedNames(logicalId, stackName, stackInstanceId, record) {
54457
+ const names = [withStackScope({
54458
+ stackName,
54459
+ stackInstanceId: void 0,
54460
+ nameGenerations: void 0
54461
+ }, () => generatedNameFor(SSM_PARAMETER, logicalId))];
54462
+ if (stackInstanceId !== void 0) {
54463
+ const generation = nameGenerationOf(record, logicalId);
54464
+ names.push(withStackScope({
54465
+ stackName,
54466
+ stackInstanceId,
54467
+ nameGenerations: /* @__PURE__ */ new Map([[logicalId, generation]])
54468
+ }, () => generatedNameFor(SSM_PARAMETER, logicalId)));
54469
+ }
54470
+ return names;
54471
+ }
54472
+ function healedRecord(logicalId, record, template, stackName, stackInstanceId) {
54473
+ if (!isObject$1(record) || record["resourceType"] !== SSM_PARAMETER) return void 0;
54474
+ const physicalId = record["physicalId"];
54475
+ if (typeof physicalId !== "string" || !/^\/[^/]+$/.test(physicalId)) return void 0;
54476
+ const declared = template.Resources?.[logicalId];
54477
+ if (!isObject$1(declared) || declared["Type"] !== SSM_PARAMETER) return void 0;
54478
+ const properties = declared["Properties"] ?? {};
54479
+ if (!isObject$1(properties) || properties["Name"]) return void 0;
54480
+ const recordedProperties = record["properties"];
54481
+ if (isObject$1(recordedProperties) && recordedProperties["Name"]) return void 0;
54482
+ const state = record;
54483
+ const to = physicalId.slice(1);
54484
+ let names;
54485
+ try {
54486
+ names = generatedNames(logicalId, stackName, stackInstanceId, state);
54487
+ } catch {
54488
+ return;
54489
+ }
54490
+ if (!names.includes(to)) return void 0;
54491
+ const observed = state.observedProperties;
54492
+ return {
54493
+ record: {
54494
+ ...state,
54495
+ physicalId: to,
54496
+ ...isObject$1(observed) && observed["Name"] === physicalId && { observedProperties: {
54497
+ ...observed,
54498
+ Name: to
54499
+ } }
54500
+ },
54501
+ heal: {
54502
+ logicalId,
54503
+ from: physicalId,
54504
+ to
54505
+ }
54506
+ };
54507
+ }
54508
+ function healSlashedSsmParameterNames(state, template, stackName) {
54509
+ const resources = state.resources ?? {};
54510
+ const heals = [];
54511
+ if (!isObject$1(resources)) return {
54512
+ resources,
54513
+ heals
54514
+ };
54515
+ let stackInstanceId;
54516
+ try {
54517
+ stackInstanceId = stackInstanceIdOf(state, stackName);
54518
+ } catch {
54519
+ return {
54520
+ resources,
54521
+ heals
54522
+ };
54523
+ }
54524
+ let healedResources;
54525
+ for (const [logicalId, record] of Object.entries(resources)) {
54526
+ const result = healedRecord(logicalId, record, template, stackName, stackInstanceId);
54527
+ if (result === void 0) continue;
54528
+ healedResources ??= { ...resources };
54529
+ healedResources[logicalId] = result.record;
54530
+ heals.push(result.heal);
54531
+ }
54532
+ return {
54533
+ resources: healedResources ?? resources,
54534
+ heals
54535
+ };
54536
+ }
54537
+ function slashedSsmNameHealNote(heal) {
54538
+ return safeMsg`SSM parameter ${heal.logicalId}: its recorded name ${heal.from} is ` + safeMsg`re-spelled ${heal.to} (the same parameter in SSM), so Ref and CDK's ` + "grantRead / grantWrite ARN name it; resources referencing it update to the new spelling (go-to-k/cdkd#6274)";
54539
+ }
54540
+ function slashedSsmNameHealPendingNote(heal, stackName) {
54541
+ return safeMsg`SSM parameter ${heal.logicalId} of nested stack ${stackName}: its recorded name ` + safeMsg`${heal.from} is re-spelled ${heal.to} on the next deploy that updates this nested ` + `stack, not on this one (go-to-k/cdkd#6274)`;
54542
+ }
54543
+ function slashedSsmNameHealAdoptedNote(heal) {
54544
+ return safeMsg`SSM parameter ${heal.logicalId} (adopted back): the deploy re-spells its recorded ` + safeMsg`name ${heal.from} as ${heal.to} and updates resources referencing it; this ` + `preview does not show those updates (go-to-k/cdkd#6274)`;
54545
+ }
54546
+ function readsRef(value, logicalId) {
54547
+ if (Array.isArray(value)) return value.some((item) => readsRef(item, logicalId));
54548
+ if (!isObject$1(value)) return false;
54549
+ if (value["Ref"] === logicalId) return true;
54550
+ const sub = value["Fn::Sub"];
54551
+ const subText = Array.isArray(sub) ? sub[0] : sub;
54552
+ if (typeof subText === "string" && subText.includes(`\${${logicalId}}`)) return true;
54553
+ return Object.values(value).some((child) => readsRef(child, logicalId));
54554
+ }
54555
+ function healsReadByExports(heals, template) {
54556
+ const exported = Object.values(template.Outputs ?? {}).filter((output) => isObject$1(output) && output["Export"] !== void 0);
54557
+ return heals.filter((heal) => exported.some((output) => readsRef(output.Value, heal.logicalId)));
54558
+ }
54559
+
54560
+ // src/deployment/deploy-engine/deploy-flow/plan-checks.ts
54561
+ async function refuseUnsafePlan(engine, { stackName, ssmNameHeals = [], currentState, effectiveTemplate, parameterValues, conditions, changes, diffResolverContext }) {
54562
+ const nestedStackTypeChanges = findNestedStackTypeChanges({
54563
+ changes,
54564
+ stateResources: currentState.resources
54565
+ });
54566
+ if (nestedStackTypeChanges.length > 0) throw markNonRetryable(new CdkdError(renderNestedStackTypeChangeRefusal(nestedStackTypeChanges, stackName), "TYPE_CHANGE_NESTED_STACK"));
54567
+ const policyReplacementRefusals = findUpdatePolicyReplacementRefusals(changes, effectiveTemplate, currentState.stackInstanceId !== void 0, (logicalId, change) => replacementCreateRoutesToCloudControl((input) => engine.providerRegistry.getProviderFor(input), change, currentState.resources[logicalId]?.properties));
54568
+ if (policyReplacementRefusals.length > 0) throw markNonRetryable(new CdkdError(policyReplacementRefusals.join("\n"), "UPDATE_POLICY_REPLACEMENT_REFUSED"));
54569
+ const deferredExports = await refuseInUseExportChanges(engine, {
54570
+ stackName,
54571
+ ssmNameHeals,
54572
+ currentState,
54573
+ effectiveTemplate,
54574
+ conditions,
54575
+ changes,
54576
+ diffResolverContext
54577
+ });
54578
+ const serviceTokenRefusals = findServiceTokenRefusals({
54579
+ changes,
54580
+ stateResources: currentState.resources,
54581
+ recreateTargetIds: recreateTargetIdsFor(engine.options.recreateTargets, stackName)
54582
+ }).refused;
54583
+ if (serviceTokenRefusals.length > 0) {
54584
+ const mask = diffLogMasker(engine.secretsRun, engine.maskingDeps(), diffResolverContext.recordedSecretValues, effectiveTemplate, parameterValues, currentState.resources);
54585
+ throw markNonRetryable(new CdkdError(renderServiceTokenRefusal(serviceTokenRefusals, stackName, mask), SERVICE_TOKEN_CHANGE_REFUSED));
54586
+ }
54587
+ const recreatePromotion = promoteRecreateTargets(changes, engine.options.recreateTargets, stackName);
54588
+ for (const id of recreatePromotion.promoted) engine.logger.debug(safeMsg`UPDATE (recreate target): ${id} has no template change; recreating it as requested`);
54589
+ for (const { logicalId, flag, changeType } of recreatePromotion.unreached) engine.logger.warn(changeType === void 0 ? safeMsg`${flag} ${logicalId}: not recreated, this deploy has no such resource.` : safeMsg`${flag} ${logicalId}: not recreated, this deploy will ${changeType.toLowerCase()} it instead.`);
54590
+ const ownRecreateTargets = recreateTargetIdsFor(engine.options.recreateTargets, stackName);
54591
+ if (ownRecreateTargets !== void 0) await refuseStatefulReplacedReaders({
54592
+ template: effectiveTemplate,
54593
+ state: currentState,
54594
+ targetIds: [...ownRecreateTargets],
54595
+ conditions,
54596
+ forceStatefulRecreation: engine.options.forceStatefulRecreation === true
54597
+ });
54598
+ return { deferredExports };
54599
+ }
54600
+ async function refuseInUseExportChanges(engine, { stackName, ssmNameHeals, currentState, effectiveTemplate, conditions, changes, diffResolverContext }) {
54601
+ const replaces = (logicalId) => {
54602
+ const change = changes.get(logicalId);
54603
+ const record = currentState.resources[logicalId];
54604
+ if (change === void 0 || record === void 0) return false;
54605
+ return change.changeType === "UPDATE" && ((change.propertyChanges ?? []).some((pc) => pc.requiresReplacement && pc.inPlacePropagated !== true) || record.resourceType !== change.resourceType) || recreateTargetIdsFor(engine.options.recreateTargets, stackName)?.has(logicalId) === true;
54606
+ };
54607
+ const found = await findAffectedExports({
54608
+ template: effectiveTemplate,
54609
+ conditions,
54610
+ changes,
54611
+ currentState,
54612
+ resolve: (value) => engine.resolver.resolve(value, diffResolverContext),
54613
+ replaces
54614
+ });
54615
+ const deferrable = deferralIsReversible(changes, replaces, { replaceFlag: engine.options.replace === true || engine.options.forceStatefulRecreation === true });
54616
+ const deferred = deferrable ? found.filter((a) => a.reason === "deferred") : [];
54617
+ await refuseInUseExports(engine, stackName, found.filter((a) => a.reason !== "deferred" || !deferrable).map((a) => a.reason === "deferred" ? {
54618
+ exportName: a.exportName,
54619
+ reason: "changed"
54620
+ } : a), {
54621
+ ssmNameHeals,
54622
+ effectiveTemplate
54623
+ });
54624
+ return deferred;
54625
+ }
54626
+ function deferralIsReversible(changes, replaces, { replaceFlag = false } = {}) {
54627
+ if (replaceFlag) return false;
54628
+ for (const [logicalId, change] of changes) {
54629
+ if (change.changeType === "DELETE") return false;
54630
+ if (replaces(logicalId)) return false;
54631
+ if ((change.propertyChanges ?? []).some((pc) => pc.requiresReplacement)) return false;
54632
+ if (change.changeType !== "NO_CHANGE" && change.resourceType === "AWS::CloudFormation::Stack") return false;
54633
+ }
54634
+ return true;
54635
+ }
54636
+ async function refuseDeferredExportChanges(engine, { stackName, deferred, currentState, resolve }) {
54637
+ if (deferred.length === 0) return;
54638
+ await refuseInUseExports(engine, stackName, await findChangedDeferredExports(deferred, currentState, resolve), { afterProvisioning: true });
54639
+ }
54640
+ async function refuseInUseExports(engine, stackName, affected, opts) {
54641
+ if (affected.length === 0) return;
54642
+ const reasons = new Map(affected.map((a) => [a.exportName, a.reason === "removed" ? "removed" : "changed"]));
54643
+ const inRun = engine.options.inRunStacks;
54644
+ const unreadable = [];
54645
+ const consumers = await scanActiveConsumers(stackName, engine.stackRegion, {
54646
+ stateBackend: engine.stateBackend,
54647
+ baseRegion: engine.stackRegion
54648
+ }, (unreadableStack, region) => {
54649
+ if (inRun?.has(inRunStackKey(unreadableStack, region)) !== true) unreadable.push({
54650
+ stackName: unreadableStack,
54651
+ region
54652
+ });
54653
+ });
54654
+ const refused = [];
54655
+ for (const consumer of consumers) {
54656
+ const reason = reasons.get(consumer.exportName);
54657
+ if (reason === void 0) continue;
54658
+ if (inRun?.has(inRunStackKey(consumer.consumerStack, consumer.consumerRegion))) continue;
54659
+ refused.push({
54660
+ ...consumer,
54661
+ reason
54662
+ });
54663
+ }
54664
+ if (refused.length > 0 || unreadable.length > 0) throw new ExportInUseError(stackName, engine.stackRegion, refused, {
54665
+ unreadable,
54666
+ affectedExportNames: affected.map((a) => a.exportName),
54667
+ nested: engine.options.parentStackInfo !== void 0,
54668
+ ...opts.afterProvisioning === true && { afterProvisioning: true },
54669
+ respelledSsmParameters: refused.length > 0 && opts.effectiveTemplate !== void 0 ? healsReadByExports(opts.ssmNameHeals ?? [], opts.effectiveTemplate).map((heal) => heal.logicalId) : []
54670
+ });
54671
+ }
54672
+
53790
54673
  // src/deployment/deploy-engine/execute.ts
53791
54674
  function executeDeployment(...args) {
53792
54675
  const [engine] = args;
53793
54676
  if (engine.options.parentStackInfo !== void 0) return executeDeploymentBody(...args);
53794
54677
  return withNestedCleanupQueue(new NestedCleanupQueue(), () => executeDeploymentBody(...args));
53795
54678
  }
53796
- async function executeDeploymentBody(engine, template, currentState, changes, dag, executionLevels, stackName, outputsDigestSource, parameterValues, conditions, currentEtag, progress, migrationPending = false) {
54679
+ async function executeDeploymentBody(engine, template, currentState, changes, dag, executionLevels, stackName, outputsDigestSource, parameterValues, conditions, currentEtag, progress, migrationPending = false, deferredExports = []) {
53797
54680
  const concurrency = engine.options.concurrency;
53798
54681
  const nestedCleanups = engine.options.parentStackInfo === void 0 ? getNestedCleanupQueue() : void 0;
53799
54682
  engine.deployChanges = changes;
@@ -53935,6 +54818,20 @@ async function executeDeploymentBody(engine, template, currentState, changes, da
53935
54818
  }
53936
54819
  if (engine.interrupted && hasPending(createUpdateExecutor)) throw new InterruptedError(engine.interruptCause ?? "user");
53937
54820
  }
54821
+ await refuseDeferredExportChanges(engine, {
54822
+ stackName,
54823
+ deferred: deferredExports,
54824
+ currentState,
54825
+ resolve: (value) => {
54826
+ const context = engine.outputsDeps().buildResolverContext({
54827
+ template,
54828
+ resources: newResources,
54829
+ ...parameterValues && { parameters: parameterValues },
54830
+ ...conditions && { conditions }
54831
+ }, stackName);
54832
+ return engine.resolver.resolve(value, context);
54833
+ }
54834
+ });
53938
54835
  if (deleteChanges.size > 0) {
53939
54836
  engine.logger.info(safeMsg`${red("Deleting")} ${red(deleteChanges.size)} resource(s)`);
53940
54837
  const deleteDeps = buildDeletionDependencies(deleteChanges, currentState, engine.logger);
@@ -54590,38 +55487,6 @@ function makeCanonicalizePropertiesFn(registry) {
54590
55487
  };
54591
55488
  }
54592
55489
 
54593
- // src/deployment/recreate-target-promotion.ts
54594
- function recreateTargetIdsFor(recreateTargets, stackName) {
54595
- if (recreateTargets === void 0 || recreateTargets.stackName !== stackName) return void 0;
54596
- const ids = /* @__PURE__ */ new Set([...recreateTargets.viaCcApi, ...recreateTargets.viaSdkProvider]);
54597
- return ids.size > 0 ? ids : void 0;
54598
- }
54599
- function promoteRecreateTargets(changes, recreateTargets, stackName) {
54600
- const promoted = [];
54601
- const unreached = [];
54602
- if (recreateTargets === void 0 || recreateTargets.stackName !== stackName) return {
54603
- promoted,
54604
- unreached
54605
- };
54606
- const named = [...[...recreateTargets.viaCcApi].map((id) => [id, "--recreate-via-cc-api"]), ...[...recreateTargets.viaSdkProvider].map((id) => [id, "--recreate-via-sdk-provider"])];
54607
- for (const [logicalId, flag] of named) {
54608
- const change = changes.get(logicalId);
54609
- if (change?.changeType === "NO_CHANGE") {
54610
- change.changeType = "UPDATE";
54611
- change.propertyChanges = [];
54612
- promoted.push(logicalId);
54613
- } else if (change?.changeType !== "UPDATE") unreached.push({
54614
- logicalId,
54615
- flag,
54616
- changeType: change?.changeType
54617
- });
54618
- }
54619
- return {
54620
- promoted,
54621
- unreached
54622
- };
54623
- }
54624
-
54625
55490
  // src/deployment/read-provenance-sources.ts
54626
55491
  function isPlainObject(value) {
54627
55492
  return value !== null && typeof value === "object" && !Array.isArray(value);
@@ -54711,115 +55576,6 @@ async function calculateDeployDiff(engine, { stackName, currentState, effectiveT
54711
55576
  };
54712
55577
  }
54713
55578
 
54714
- // src/deployment/ssm-slashed-name-heal.ts
54715
- const SSM_PARAMETER = "AWS::SSM::Parameter";
54716
- function isObject$1(value) {
54717
- return typeof value === "object" && value !== null && !Array.isArray(value);
54718
- }
54719
- function generatedNames(logicalId, stackName, stackInstanceId, record) {
54720
- const names = [withStackScope({
54721
- stackName,
54722
- stackInstanceId: void 0,
54723
- nameGenerations: void 0
54724
- }, () => generatedNameFor(SSM_PARAMETER, logicalId))];
54725
- if (stackInstanceId !== void 0) {
54726
- const generation = nameGenerationOf(record, logicalId);
54727
- names.push(withStackScope({
54728
- stackName,
54729
- stackInstanceId,
54730
- nameGenerations: /* @__PURE__ */ new Map([[logicalId, generation]])
54731
- }, () => generatedNameFor(SSM_PARAMETER, logicalId)));
54732
- }
54733
- return names;
54734
- }
54735
- function healedRecord(logicalId, record, template, stackName, stackInstanceId) {
54736
- if (!isObject$1(record) || record["resourceType"] !== SSM_PARAMETER) return void 0;
54737
- const physicalId = record["physicalId"];
54738
- if (typeof physicalId !== "string" || !/^\/[^/]+$/.test(physicalId)) return void 0;
54739
- const declared = template.Resources?.[logicalId];
54740
- if (!isObject$1(declared) || declared["Type"] !== SSM_PARAMETER) return void 0;
54741
- const properties = declared["Properties"] ?? {};
54742
- if (!isObject$1(properties) || properties["Name"]) return void 0;
54743
- const recordedProperties = record["properties"];
54744
- if (isObject$1(recordedProperties) && recordedProperties["Name"]) return void 0;
54745
- const state = record;
54746
- const to = physicalId.slice(1);
54747
- let names;
54748
- try {
54749
- names = generatedNames(logicalId, stackName, stackInstanceId, state);
54750
- } catch {
54751
- return;
54752
- }
54753
- if (!names.includes(to)) return void 0;
54754
- const observed = state.observedProperties;
54755
- return {
54756
- record: {
54757
- ...state,
54758
- physicalId: to,
54759
- ...isObject$1(observed) && observed["Name"] === physicalId && { observedProperties: {
54760
- ...observed,
54761
- Name: to
54762
- } }
54763
- },
54764
- heal: {
54765
- logicalId,
54766
- from: physicalId,
54767
- to
54768
- }
54769
- };
54770
- }
54771
- function healSlashedSsmParameterNames(state, template, stackName) {
54772
- const resources = state.resources ?? {};
54773
- const heals = [];
54774
- if (!isObject$1(resources)) return {
54775
- resources,
54776
- heals
54777
- };
54778
- let stackInstanceId;
54779
- try {
54780
- stackInstanceId = stackInstanceIdOf(state, stackName);
54781
- } catch {
54782
- return {
54783
- resources,
54784
- heals
54785
- };
54786
- }
54787
- let healedResources;
54788
- for (const [logicalId, record] of Object.entries(resources)) {
54789
- const result = healedRecord(logicalId, record, template, stackName, stackInstanceId);
54790
- if (result === void 0) continue;
54791
- healedResources ??= { ...resources };
54792
- healedResources[logicalId] = result.record;
54793
- heals.push(result.heal);
54794
- }
54795
- return {
54796
- resources: healedResources ?? resources,
54797
- heals
54798
- };
54799
- }
54800
- function slashedSsmNameHealNote(heal) {
54801
- return safeMsg`SSM parameter ${heal.logicalId}: its recorded name ${heal.from} is ` + safeMsg`re-spelled ${heal.to} (the same parameter in SSM), so Ref and CDK's ` + "grantRead / grantWrite ARN name it; resources referencing it update to the new spelling (go-to-k/cdkd#6274)";
54802
- }
54803
- function slashedSsmNameHealPendingNote(heal, stackName) {
54804
- return safeMsg`SSM parameter ${heal.logicalId} of nested stack ${stackName}: its recorded name ` + safeMsg`${heal.from} is re-spelled ${heal.to} on the next deploy that updates this nested ` + `stack, not on this one (go-to-k/cdkd#6274)`;
54805
- }
54806
- function slashedSsmNameHealAdoptedNote(heal) {
54807
- return safeMsg`SSM parameter ${heal.logicalId} (adopted back): the deploy re-spells its recorded ` + safeMsg`name ${heal.from} as ${heal.to} and updates resources referencing it; this ` + `preview does not show those updates (go-to-k/cdkd#6274)`;
54808
- }
54809
- function readsRef(value, logicalId) {
54810
- if (Array.isArray(value)) return value.some((item) => readsRef(item, logicalId));
54811
- if (!isObject$1(value)) return false;
54812
- if (value["Ref"] === logicalId) return true;
54813
- const sub = value["Fn::Sub"];
54814
- const subText = Array.isArray(sub) ? sub[0] : sub;
54815
- if (typeof subText === "string" && subText.includes(`\${${logicalId}}`)) return true;
54816
- return Object.values(value).some((child) => readsRef(child, logicalId));
54817
- }
54818
- function healsReadByExports(heals, template) {
54819
- const exported = Object.values(template.Outputs ?? {}).filter((output) => isObject$1(output) && output["Export"] !== void 0);
54820
- return heals.filter((heal) => exported.some((output) => readsRef(output.Value, heal.logicalId)));
54821
- }
54822
-
54823
55579
  // src/deployment/nested-ssm-name-check.ts
54824
55580
  const NESTED_STACK_TYPE = "AWS::CloudFormation::Stack";
54825
55581
  function isObject(value) {
@@ -54929,195 +55685,6 @@ function nestedSsmNameRowNote(logicalId) {
54929
55685
  return safeMsg`Nested stack ${logicalId}: a nested stack record below it holds an SSM parameter ` + "name cdkd generated before go-to-k/cdkd#6272, so this deploy updates the nested stack to re-spell it (go-to-k/cdkd#6282)";
54930
55686
  }
54931
55687
 
54932
- // src/deployment/export-change-guard.ts
54933
- async function findAffectedExports({ template, conditions, changes, currentState, resolve, replaces }) {
54934
- const published = importableOutputKeys(currentState);
54935
- if (published.length === 0) return [];
54936
- const publishedSet = new Set(published);
54937
- const declared = /* @__PURE__ */ new Map();
54938
- const legacy = currentState.exportNames === void 0;
54939
- for (const [outputKey, output] of Object.entries(template.Outputs ?? {})) {
54940
- if (output === null || typeof output !== "object") continue;
54941
- if (typeof output.Condition === "string" && conditions[output.Condition] === false) continue;
54942
- if (legacy && publishedSet.has(outputKey)) declared.set(outputKey, output);
54943
- const exportName = output.Export?.Name;
54944
- if (exportName === void 0) continue;
54945
- let name = exportName;
54946
- if (typeof name !== "string") {
54947
- if (holdsDynamicReference(exportName)) continue;
54948
- try {
54949
- name = await resolve(exportName);
54950
- } catch {
54951
- continue;
54952
- }
54953
- }
54954
- if (typeof name === "string" && publishedSet.has(name)) declared.set(name, output);
54955
- }
54956
- const affected = [];
54957
- for (const exportName of published) {
54958
- const output = declared.get(exportName);
54959
- if (output === void 0) {
54960
- affected.push({
54961
- exportName,
54962
- reason: "removed"
54963
- });
54964
- continue;
54965
- }
54966
- if (await valueMayChange(output, currentState.outputs[exportName], changes, resolve, replaces)) affected.push({
54967
- exportName,
54968
- reason: "changed"
54969
- });
54970
- }
54971
- return affected;
54972
- }
54973
- async function valueMayChange(output, publishedValue, changes, resolve, replaces) {
54974
- let touchesChangedResource = false;
54975
- for (const [logicalId, reads] of extractGetAttRefs(output.Value)) {
54976
- if (replaces(logicalId)) return true;
54977
- const change = changes.get(logicalId);
54978
- if (change === void 0 || change.changeType === "NO_CHANGE") continue;
54979
- if (change.changeType !== "UPDATE") return true;
54980
- if (inPlaceUpdateMayMove(change, reads)) return true;
54981
- touchesChangedResource = true;
54982
- }
54983
- if (publishedValue === "***") return false;
54984
- if (holdsDynamicReference(output.Value)) return touchesChangedResource;
54985
- let desired;
54986
- try {
54987
- desired = await resolve(output.Value);
54988
- } catch {
54989
- return touchesChangedResource;
54990
- }
54991
- if (desired === void 0) return touchesChangedResource;
54992
- return !isDeepStrictEqual(desired, publishedValue);
54993
- }
54994
- function inPlaceUpdateMayMove(change, reads) {
54995
- const type = change.resourceType;
54996
- if (type.startsWith("Custom::") || type === "AWS::CloudFormation::CustomResource") return true;
54997
- const changed = new Set((change.propertyChanges ?? []).map((pc) => pc.path));
54998
- const derived = Object.hasOwn(IN_PLACE_UPDATE_DERIVED_ATTRS, type) ? IN_PLACE_UPDATE_DERIVED_ATTRS[type] : void 0;
54999
- const prefixes = Object.hasOwn(IN_PLACE_UPDATE_DERIVED_ATTR_PREFIXES, type) ? IN_PLACE_UPDATE_DERIVED_ATTR_PREFIXES[type] : void 0;
55000
- for (const attr of reads) {
55001
- if (attr === "<Ref>") continue;
55002
- if (changed.has(attr) || derived?.has(attr) === true) return true;
55003
- if (prefixes?.some((prefix) => attr.startsWith(prefix)) === true) return true;
55004
- }
55005
- return false;
55006
- }
55007
- function holdsDynamicReference(value) {
55008
- return JSON.stringify(value)?.includes("{{resolve:") === true;
55009
- }
55010
- function inRunStackKey(stackName, region) {
55011
- return producerRecordKey(stackName, canonicalizeRegion(region));
55012
- }
55013
-
55014
- // src/state/active-import-consumers.ts
55015
- async function scanActiveConsumers(producerStack, producerRegion, ctx, onUnreadable) {
55016
- const refs = await ctx.stateBackend.listStacks();
55017
- return (await Promise.all(refs.map(async (ref) => {
55018
- const region = ref.region ?? ctx.baseRegion;
55019
- if (ref.stackName === producerStack && region === producerRegion) return null;
55020
- try {
55021
- const imports = (await ctx.stateBackend.getState(ref.stackName, region, { readOnly: true }))?.state.imports;
55022
- if (!imports || imports.length === 0) return null;
55023
- const matches = imports.filter((entry) => entry.sourceStack === producerStack && canonicalizeRegion(entry.sourceRegion) === canonicalizeRegion(producerRegion));
55024
- if (matches.length === 0) return null;
55025
- return matches.map((entry) => ({
55026
- consumerStack: ref.stackName,
55027
- consumerRegion: region,
55028
- exportName: entry.exportName
55029
- }));
55030
- } catch {
55031
- onUnreadable?.(ref.stackName, region);
55032
- return null;
55033
- }
55034
- }))).filter((r) => r !== null).flat();
55035
- }
55036
-
55037
- // src/deployment/deploy-engine/deploy-flow/plan-checks.ts
55038
- async function refuseUnsafePlan(engine, { stackName, ssmNameHeals = [], currentState, effectiveTemplate, parameterValues, conditions, changes, diffResolverContext }) {
55039
- const nestedStackTypeChanges = findNestedStackTypeChanges({
55040
- changes,
55041
- stateResources: currentState.resources
55042
- });
55043
- if (nestedStackTypeChanges.length > 0) throw markNonRetryable(new CdkdError(renderNestedStackTypeChangeRefusal(nestedStackTypeChanges, stackName), "TYPE_CHANGE_NESTED_STACK"));
55044
- const policyReplacementRefusals = findUpdatePolicyReplacementRefusals(changes, effectiveTemplate, currentState.stackInstanceId !== void 0, (logicalId, change) => replacementCreateRoutesToCloudControl((input) => engine.providerRegistry.getProviderFor(input), change, currentState.resources[logicalId]?.properties));
55045
- if (policyReplacementRefusals.length > 0) throw markNonRetryable(new CdkdError(policyReplacementRefusals.join("\n"), "UPDATE_POLICY_REPLACEMENT_REFUSED"));
55046
- await refuseInUseExportChanges(engine, {
55047
- stackName,
55048
- ssmNameHeals,
55049
- currentState,
55050
- effectiveTemplate,
55051
- conditions,
55052
- changes,
55053
- diffResolverContext
55054
- });
55055
- const serviceTokenRefusals = findServiceTokenRefusals({
55056
- changes,
55057
- stateResources: currentState.resources,
55058
- recreateTargetIds: recreateTargetIdsFor(engine.options.recreateTargets, stackName)
55059
- }).refused;
55060
- if (serviceTokenRefusals.length > 0) {
55061
- const mask = diffLogMasker(engine.secretsRun, engine.maskingDeps(), diffResolverContext.recordedSecretValues, effectiveTemplate, parameterValues, currentState.resources);
55062
- throw markNonRetryable(new CdkdError(renderServiceTokenRefusal(serviceTokenRefusals, stackName, mask), SERVICE_TOKEN_CHANGE_REFUSED));
55063
- }
55064
- const recreatePromotion = promoteRecreateTargets(changes, engine.options.recreateTargets, stackName);
55065
- for (const id of recreatePromotion.promoted) engine.logger.debug(safeMsg`UPDATE (recreate target): ${id} has no template change; recreating it as requested`);
55066
- for (const { logicalId, flag, changeType } of recreatePromotion.unreached) engine.logger.warn(changeType === void 0 ? safeMsg`${flag} ${logicalId}: not recreated, this deploy has no such resource.` : safeMsg`${flag} ${logicalId}: not recreated, this deploy will ${changeType.toLowerCase()} it instead.`);
55067
- const ownRecreateTargets = recreateTargetIdsFor(engine.options.recreateTargets, stackName);
55068
- if (ownRecreateTargets !== void 0) await refuseStatefulReplacedReaders({
55069
- template: effectiveTemplate,
55070
- state: currentState,
55071
- targetIds: [...ownRecreateTargets],
55072
- conditions,
55073
- forceStatefulRecreation: engine.options.forceStatefulRecreation === true
55074
- });
55075
- }
55076
- async function refuseInUseExportChanges(engine, { stackName, ssmNameHeals, currentState, effectiveTemplate, conditions, changes, diffResolverContext }) {
55077
- const affected = await findAffectedExports({
55078
- template: effectiveTemplate,
55079
- conditions,
55080
- changes,
55081
- currentState,
55082
- resolve: (value) => engine.resolver.resolve(value, diffResolverContext),
55083
- replaces: (logicalId) => {
55084
- const change = changes.get(logicalId);
55085
- const record = currentState.resources[logicalId];
55086
- if (change === void 0 || record === void 0) return false;
55087
- return change.changeType === "UPDATE" && ((change.propertyChanges ?? []).some((pc) => pc.requiresReplacement && pc.inPlacePropagated !== true) || record.resourceType !== change.resourceType) || recreateTargetIdsFor(engine.options.recreateTargets, stackName)?.has(logicalId) === true;
55088
- }
55089
- });
55090
- if (affected.length === 0) return;
55091
- const reasons = new Map(affected.map((a) => [a.exportName, a.reason]));
55092
- const inRun = engine.options.inRunStacks;
55093
- const unreadable = [];
55094
- const consumers = await scanActiveConsumers(stackName, engine.stackRegion, {
55095
- stateBackend: engine.stateBackend,
55096
- baseRegion: engine.stackRegion
55097
- }, (unreadableStack, region) => {
55098
- if (inRun?.has(inRunStackKey(unreadableStack, region)) !== true) unreadable.push({
55099
- stackName: unreadableStack,
55100
- region
55101
- });
55102
- });
55103
- const refused = [];
55104
- for (const consumer of consumers) {
55105
- const reason = reasons.get(consumer.exportName);
55106
- if (reason === void 0) continue;
55107
- if (inRun?.has(inRunStackKey(consumer.consumerStack, consumer.consumerRegion))) continue;
55108
- refused.push({
55109
- ...consumer,
55110
- reason
55111
- });
55112
- }
55113
- if (refused.length > 0 || unreadable.length > 0) throw new ExportInUseError(stackName, engine.stackRegion, refused, {
55114
- unreadable,
55115
- affectedExportNames: affected.map((a) => a.exportName),
55116
- nested: engine.options.parentStackInfo !== void 0,
55117
- respelledSsmParameters: refused.length > 0 ? healsReadByExports(ssmNameHeals, effectiveTemplate).map((heal) => heal.logicalId) : []
55118
- });
55119
- }
55120
-
55121
55688
  // src/deployment/no-change-outputs-merge.ts
55122
55689
  function isSecretBearingReferenceString(value) {
55123
55690
  if (typeof value !== "string") return false;
@@ -55619,7 +56186,7 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
55619
56186
  currentState.resources[logicalId] = withRebaselinedFingerprints(record, fingerprints);
55620
56187
  maskedFingerprintsBackfilled = true;
55621
56188
  }
55622
- await refuseUnsafePlan(engine, {
56189
+ const { deferredExports } = await refuseUnsafePlan(engine, {
55623
56190
  stackName,
55624
56191
  ssmNameHeals,
55625
56192
  currentState,
@@ -55721,7 +56288,7 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
55721
56288
  };
55722
56289
  await armSignalReceiver(engine, stackName, effectiveTemplate, changes, currentState.resources, parameterValues, conditions);
55723
56290
  clock.lap("first-deploy instance id, name guard");
55724
- const { state: newState, actualCounts, completedOperations } = await withProducerRegions(() => producerRegionEvidence(engine.rollbackDeps(), currentState), () => withStackScope(nameScope(), () => settledAfter(engine, () => executeDeployment(engine, effectiveTemplate, currentState, changes, dag, executionLevels, stackName, outputsDigestSource, parameterValues, conditions, currentEtag, progress, migrationPending))));
56291
+ const { state: newState, actualCounts, completedOperations } = await withProducerRegions(() => producerRegionEvidence(engine.rollbackDeps(), currentState), () => withStackScope(nameScope(), () => settledAfter(engine, () => executeDeployment(engine, effectiveTemplate, currentState, changes, dag, executionLevels, stackName, outputsDigestSource, parameterValues, conditions, currentEtag, progress, migrationPending, deferredExports))));
55725
56292
  clock.lap("resource DAG");
55726
56293
  try {
55727
56294
  engine.stateBackend.warmConnections(stackName, engine.stackRegion, TAIL_WARM_CONNECTIONS);
@@ -56031,5 +56598,5 @@ var DeployEngine = class {
56031
56598
  }
56032
56599
  };
56033
56600
 
56034
- export { recordTagWrite as $, policyDocumentMatchesDeclared as $a, refuseMalformedResourceEntriesForOrphan as $c, gray as $i, PROPERTY_COVERAGE_BY_TYPE as $l, parseMappingFile as $n, applyRoleArnIfSet as $o, REDACTED_DELETE_ADDRESS_SKIP_REASON as $r, LEGACY_HANDLE_ID_PREFIX as $s, removeSignalReceiverNamed as $t, resolveFileAssetSourcePath as $u, recordedProtectionEvidence as A, createPreDeleteFinalSnapshot as Aa, deployRefusesOrphanRowsReason as Ac, collectDeclaredOutputNames as Ai, malformedStateRefusalMessage as Al, DeploymentEventsStore as An, setLocalCustomResourceRuntimeEnabled as Ao, undeclaredEmptyObservedKeys as Ar, extractGetAttRefs as As, resolveDynamoDbDeleteBudgetMs as At, templateIdentity as Au, declaredStreamTagsMember as B, getStackRecords as Ba, unpreviewableOrphanRecords as Bc, supersededAfterRollback as Bi, UNREADABLE_RESOURCES_MAP_ROW as Bl, formatDestructiveChange as Bn, withIndeterminateGuard as Bo, planRollback as Br, getAccountInfo as Bs, hasCdkAutoDeleteTag as Bt, createAssetRedirectResolver as Bu, pendingMovesOutOf as C, PRE_DELETE_SNAPSHOT_TYPES as Ca, maskedPropertyFingerprintsOf as Cc, displayAssemblyPath as Cd, secretBearingStateKeyWarning as Ci, refuseMalformedOutputs as Cl, journaledOrphanLines as Cn, withPrintingSecrets as Co, buildReadCurrentStateContext as Cr, AWS_NO_VALUE as Cs, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as Ct, isSensitiveAttributeName as Cu, findServiceTokenRefusals as D, isFinalSnapshotError as Da, passedParameterClassesOf as Dc, clearBucketRegionCache as Dd, exportNameSecretExposure as Di, refuseDivergentRecordRegionForDestroy as Dl, makeSiblingClaimReader as Dn, customResourcesRunWithoutApp as Do, calculateResourceDrift as Dr, lacksRecordedRefArn as Ds, compensateRemovedDeletionProtection as Dt, isAbsoluteAssetPath as Du, deferredServiceTokenWarning as E, effectiveDeletionPolicy as Ea, maskedInputProof as Ec, resolveAssemblyPath as Ed, exportNameNoEchoParameters as Ei, STATE_REGION_DIVERGED as El, makeForeignHolderScan as En, customResourcesFailedWithoutApp as Eo, withUnprovenUnsettled as Er, refStateLookupFromResource as Es, beginDeleteWait as Et, findNestedTemplateTreeDefect as Eu, readProtection as F, isStoredExpression as Fa, previewableOrphanRecords as Fc, DEFAULT_RESOURCE_WARN_AFTER_MS as Fi, repairMalformedResourcesForReadOnly as Fl, noEchoMacParametersOf as Fn, RollbackInlinePolicyWriters as Fo, earliestDefined as Fr, recordedProvenanceOf as Fs, maskedLogger as Ft, purgeNoncurrentKeyVersions as Fu, streamDeclaresTags as G, LAMBDA_PERMISSION_STATEMENT_KEYS as Ga, malformedResourceEntriesWarning as Gc, withoutSuperseded as Gi, findHandledUnwrittenCreateOnly as Gl, withMovedTo as Gn, isSelectOutOfBounds as Go, planFailedOps as Gr, keepsSecretReferenceToken as Gs, readRefactorMarkerOnce as Gt, loadPublishableAssetManifest as Gu, readStreamPolicy as H, verifiedIdentityCache as Ha, isReadableResourceEntry as Hc, supersededHeldByOtherTypeWarning as Hi, hasReadableOutputs as Hl, hintSidesOf as Hn, isWaitAbandonedError as Ho, demoteSupersededOrphans as Hr, carriesFetchableDynamicReference as Hs, keptForRetainedRecord as Ht, flattenAssetPlaceholders as Hu, DynamoDBGlobalTableProvider as I, withoutSiblingAttachedArns as Ia, refuseMalformedOrphanRecords as Ic, maskingRetryLogger as Ii, JSON_LISTING_HOLE_VALUE as Il, noEchoMacVerdict as In, UNSPECIFIED_SKIP_REASON as Io, ledgerForStack as Ir, recordedReferenceRegions as Is, relayedIndexBusyDelete as It, decodeListingKey as Iu, streamTagsMatchDeclared as J, declaredMemberDocument as Ja, refuseMalformedResourceEntries as Jc, resolveReplacementOldType as Ji, withoutAcceptedSdkUnwiredProperties as Jl, changedReferenceReason as Jn, stackIdTailOf as Jo, replacementNeverSwapped as Jr, INTRINSIC_KEYS as Js, refuseRefactorMarker as Jt, rewriteTemplateAssetReferences as Ju, streamMemberRefusals as K, OWN_WRITE_REREAD_DELAYS_MS as Ka, malformedScrubResourceEntriesRefusalMessage as Kc, replacedDeleteFailureVerdict as Ki, findSdkUnwiredProperties as Kl, changedReferenceInDiff as Kn, isAlwaysLiveAttribute as Ko, recheckFailedPlan as Kr, withSharedDrainBudget as Ks, refactorMarkerMovesOf as Kt, redirectDockerAsset as Ku, STREAM_POLICY_KEY as L, withoutSiblingOwned as La, refuseMalformedOrphanRecordsForDestroy as Lc, deleteSupersededEntry as Li, accountArgs as Ll, noEchoValueMacsOf as Ln, deleteIndeterminateGuards as Lo, reserveStackCreateToken as Lr, referenceProvenanceOf as Ls, waitForIndexesSettled as Lt, rememberSynthesizedStacks as Lu, PROTECTION_PROPERTY_BY_TYPE as M, collectGroupsAddedBySiblings as Ma, malformedOrphanRecordsRefusalMessage as Mc, isExportAliasCollision as Mi, refuseMalformedResourcesForDestroy as Ml, NOECHO_MAC_KEY_ALIAS as Mn, waitForLambdaFunctionActive as Mo, updatePartialReason as Mr, keepHeldTokenProvenance as Ms, INDEX_SETTLE_POLL_INTERVAL_MS as Mt, isListParameterType as Mu, isProtectionValueActive as N, collectManagedPolicyArnsAttachedBySiblings as Na, malformedOrphanRecordsWarning as Nc, bindingSkippedOutputs as Ni, refuseMalformedResourcesForExport as Nl, createNoEchoValueMacs as Nn, CloudControlProvider as No, findUpdatePolicyReplacementRefusals as Nr, outputReferenceProvenanceOf as Ns, TABLE_INDEX_NOUN as Nt, ssmResolvedValueType as Nu, serviceTokenBlockingReason as O, refusesFinalSnapshot as Oa, declaresNoEcho as Oc, resolveBucketRegion as Od, isWholeDynamicReferenceValue as Oi, malformedRenderedContainersWarning as Ol, planOrphanAdoption as On, localCustomResourceCommand as Oo, equalModuloMarkedMask as Or, lacksRecordedTableArn as Os, deleteBudgetKey as Ot, listNestedTemplateRows as Ou, perType as P, collectPrincipalsAttachingPolicy as Pa, malformedOrphanRowsKeptWarning as Pc, DEFAULT_RESOURCE_TIMEOUT_MS as Pi, refuseMalformedState as Pl, noEchoMacBinding as Pn, waitForGoneAfterDelete as Po, replacementCreateRoutesToCloudControl as Pr, recordedOutputReferenceRegions as Ps, deleteTableWithIndexBusyRetry as Pt, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Pu, isDynamoDBTableArnIn as Q, memberReadFailure as Qa, refuseMalformedResourceEntriesForImportSave as Qc, cyan as Qi, hasNoCloudControlHandlers as Ql, mappingPairs as Qn, refuseUnreadableCdkCrossAccountRefs as Qo, readsRegeneratingSecret as Qr, siblingsOf as Qs, isReceiver as Qt, parseAssetManifestBody as Qu, STREAM_TAGS_KEY as R, awaitInFlightSibling as Ra, refuseMalformedOrphansForOrphan as Rc, holdsSupersededResources as Ri, withheldAccountClause as Rl, constructPathOf as Rn, deleteLeftInPlace as Ro, withCreateTokenLedger as Rr, referenceTokensIn as Rs, ECR_AUTO_DELETE_IMAGES_TAG as Rt, synthesizedStacks as Ru, hasPendingMovesOut as S, ATOMIC_FINAL_SNAPSHOT_TYPES as Sa, inputFingerprinter as Sc, describeFileReadFailure as Sd, secretBearing as Si, refuseMalformedNestedChildOutputs as Sl, isHandledOrphan as Sn, getCurrentResourceSecrets as So, earlyDeletedOld as Sr, parameterTypeMayLoseSecretIdentity as Ss, stripIndexContributorInsights as St, isSecretValuedAttribute as Su, refusePendingMovesOut as T, ccRoutedInstanceTakesNoSnapshot as Ta, parameterInputsFor as Tc, renderAssemblyPathEscape as Td, carriedExportAliasExposure as Ti, repairMalformedOutputsForReadOnly as Tl, sameJournaledOrphans as Tn, customResourceStackName as To, settleUnsettledPrevious as Tr, isStalePlaceholderArnAttribute as Ts, DYNAMODB_DELETE_POLL_COST_MS as Tt, missingStateBucketRemedy as Tu, reverseMapStreamPolicy as U, withStackRecords as Ua, malformedLocalResourceEntriesWarning as Uc, supersededHolderOf as Ui, hasReadableResources as Ul, movedToHint as Un, markWaitAbandoned as Uo, isJournaledOrphan as Ur, isNamelessDynamicReferenceError as Us, recordRetainedForReadoption as Ut, isDefaultBootstrapBucketName as Uu, planStreamMemberOps as V, revertStackRecordsView as Va, unreadableOrphanRecords as Vc, supersededDependentsFirst as Vi, displayLogicalId as Vl, findRefactorHints as Vn, getReadOnlyPropertyPaths as Vo, seedsDeleteFirstGuard as Vr, isImpossibleEmptyStoredAttribute as Vs, isTruthyCfnBoolean as Vt, createLazyAssetModeContext as Vu, streamDeclaresPolicy as W, KMS_DEFAULT_KEY_POLICY_ID as Wa, malformedLocalResourcesWarning as Wc, supersededResourcesOf as Wi, findActionableSdkUnwired as Wl, rollbackOrphanIds as Wn, IntrinsicFunctionResolver as Wo, isReplacementOrphan as Wr, carriesDynamicReference as Ws, readRefactorMarker as Wt, isDefaultBootstrapRepoName as Wu, clearTagWrites as X, efsPolicyMatchesDeclared as Xa, refuseMalformedResourceEntriesForDestroy as Xc, findNestedStackTypeChanges as Xi, withoutUnwrittenSdkUnwiredProperties as Xl, isPairableType as Xn, resolveDynamicReferences as Xo, computeImplicitDeleteEdges as Xr, markNewValueKnownAfterDeploy as Xs, updateRefactorMarker as Xt, getDockerImageBySourceHash as Xu, TAGS_BASELINE_REREAD_DELAYS_MS as Y, declaredPolicyDocument as Ya, refuseMalformedResourceEntriesForDeploy as Yc, withPreviousPolicies as Yi, withoutSdkUnwiredProperties as Yl, differingRemedy as Yn, isSettledInstanceState as Yo, IMPLICIT_DELETE_DEPENDENCIES as Yr, containsIntrinsic as Ys, sameMove as Yt, AssetManifestLoader as Yu, declaredTagsReadback as Z, lambdaPermissionMatchesDeclared as Za, refuseMalformedResourceEntriesForImport as Zc, bold as Zi, NO_CC_HANDLERS_REASON as Zl, looselyEqual as Zn, producerLookupOver as Zo, attemptUsesCompletedCreate as Zr, replacementSidesForLog as Zs, deleteSignalReceiver as Zt, isCfnTemplateAssetPath as Zu, conditionFingerprint as _, secretNamedRecordNeedles as _a, secretSegmentsOfState as _c, hasPlainPrototype as _d, reachableDivergentParameters as _i, malformedExportNamesWarning as _l, getCurrentNestedStackContext as _n, customResourceResponseExpirationWarning as _o, replayFailedOperations as _r, s3BucketDualStackDomainName as _s, planContributorInsightsOp as _t, crossPrefixDeniedWarning as _u, scanActiveConsumers as a, noEchoExactEchoLeavesOf as aa, isStatefulRecreateTargetForReplace as ac, assertAssetBucketRegion as ad, orphanNeedsIdentity as ai, refuseMalformedResourcePropertiesForDestroy as al, resolvePendingCloudControlRequests as an, policyContentKey as ao, undeclaredGrantSiblingMembers as ar, sendableAssumeRoleCommand as as, planTimeToLive as at, wireAttributeValue as au, readRecordedConditionVerdicts as b, storedSecretNameNeedles as ba, getTopLevelKeysHoldingUnreadableCreateOnly as bc, absoluteAssemblyPathEscape as bd, displayTextOrWithheld as bi, malformedOutputsRefusalMessage as bl, dropFailedCommands as bn, readsNoEchoDeleteValues as bo, PLANNED_EARLY_DELETE_CONSEQUENCE as br, coerceParameterTypedValue as bs, reverseMapIndexContributorInsights as bt, stackInstanceIdOf as bu, nestedSsmNameDeferredNote as c, createReadOnlyAttributeHealerFactory as ca, WARM_THROUGHPUT_MEMBERS as cc, parseBootstrapMarker as cd, nameScopeOf as ci, refuseMalformedResourcePropertiesForOrphan as cl, displacedPhysicalIdShown as cn, ccBrokenReason as co, sgSiblingDecidedById as cr, callerEnvCredentials as cs, planVectorIndexUpdates as ct, splitImportedOps as cu, slashedSsmNameHealAdoptedNote as d, maskEventTextWithBoundBags as da, toCfnInteger as dc, validateContainerRepoName as dd, retiredNameGenerationsLeaving as di, hasReadableOrphans as dl, nestedChildStackName as dn, WaitConditionSignalStore as do, withoutSiblingOwnedSgRules as dr, classifyReplaySecretRegion as ds, vectorIndexesSettled as dt, hasReasonlessBaselineRefusal as du, green as ea, isLegacyHandleId as ec, warnAbsoluteAssetPath as ed, isRedactedRecordedValue as ei, repairMalformedResourceEntriesForReadOnly as el, macWriteOnlyKeys as en, reReadUntilSettled as eo, propertiesChangedReason as er, assertFlagRoleArn as es, settleWrittenTags as et, dropSupersededProviderReplacements as eu, slashedSsmNameHealNote as f, namingSecretsWithRecordedNoEcho as fa, toFiniteNumber as fc, BOOTSTRAP_MARKER_PREFIX as fd, withNameGenerationReached as fi, malformedOrphansRefusalMessage as fl, recordDisplacedSkips as fn, classifyHandleUrl as fo, SG_RULE_ID_PATTERN as fr, producerRegionsFromState as fs, vectorIndexesShapeDetail as ft, hasUnverifiableParameterRefusal as fu, makeCanonicalizePropertiesFn as g, secretNamedAttributeNamesOf as ga, secretPhysicalIdSegment as gc, hasOwnKey as gd, namesAnyDeclaredParameter as gi, repairMalformedOrphansForReadOnly as gl, collectNestedChildUnaddressed as gn, applyCustomResourceResponseExpiration as go, canonicalizeIpProtocolValue as gr, s3BucketDomainName as gs, indexDeclaresContributorInsights as gt, applyCrossPrefixScan as gu, inheritedProvenanceForChildDiff as h, secretNamePrintingBags as ha, maskedSecretSegment as hc, defineOwnKey as hd, computeParameterTaint as hi, refuseMalformedOrphansForDestroy as hl, withNestedRevertRun as hn, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as ho, sgProtocolKey as hr, s3BucketArn as hs, contributorInsightsRefusals as ht, CrossPrefixScanCache as hu, mergeNoChangeOutputs as i, noEchoComparisonForTemplate as ia, MULTI_REGION_RECREATE_BLOCKED_TYPES as ic, buildDenyExternalAccessPolicy as id, removeProtectionTypeList as ii, refuseMalformedResourceProperties as il, pendingRequestCount as in, attemptedPolicyDocument as io, stripSiblingOwnedParentMembers as ir, parseIamRoleArn as is, isTtlRateLimited as it, planSubscriptionAttributes as iu, recordedProtectionNote as j, buildFinalSnapshotIdentifier as ja, isReadableOrphanRecord as jc, collectPublishedOutputNames as ji, refuseMalformedResourcesForDeploy as jl, crossStackReadsForPartialSave as jn, withCustomResourceStack as jo, updatePartialMessage as jr, promoteInPlaceAttributeDependents as js, DELETE_INDEX_WAIT_PROCEED_NOTE as jt, SSM_PARAMETER_VALUE_PREFIX as ju, diffSecurity as k, unsupportedFinalSnapshotError as ka, maskedPropertyFingerprint as kc, noEchoParameterValueSeed as ki, malformedResourcesWarning as kl, DeploymentEventsReader as kn, localCustomResourceRuntimeActive as ko, equalModuloMask as kr, parseWebACLArn as ks, resolveDynamoDbDeleteBudgetClock as kt, renderNestedTemplateTreeDefect as ku, nestedSsmNameRowNote as l, completedReplayEntries as la, coerceWarmThroughput as lc, readBootstrapMarkerBody as ld, retiredAfterRollback as li, repairMalformedResourcePropertiesForReadOnly as ll, dropSettledNestedJournals as ln, isCustomResource as lo, siblingOwnedSgRuleIdentities as lr, envCredentialsAreAssumedRole as ls, readbackVectorIndexes as lt, isKnownTokenFreeState as lu, crossStackOutputProvenanceSource as m, secretNamePrintingBag as ma, displayPhysicalId as mc, getCdkdContainerRepoName as md, inheritProducerRegions as mi, refuseMalformedOrphans as ml, revertedNestedRowIds as mn, isSignalKey as mo, recordedSgRuleId as mr, isUnexposedRecordedIdentity as ms, completeTableContributorInsightsBaseline as mt, CrossPrefixReadError as mu, isSecretBearingReferenceString as n, yellow as na, isPlainReferenceTo as nc, AssetModeResolver as nd, redactedDeleteAddressSkip as ni, malformedDriftResourcePropertiesWarning as nl, licensedNameHolder as nn, warnUnsettledMember as no, referencedLogicalIds as nr, explicitRoleArnOrThrow as ns, takeTagWrite as nt, providerReplacementReason as nu, inRunStackKey as o, noEchoParameterNamesOf as oa, isStatefulRecreateTargetSync as oc, isCrossRegionRedirect as od, nameGenerationCarriedFrom as oi, refuseMalformedResourcePropertiesForDrift as ol, NESTED_PENDING_PARENT_REASON as on, CC_BROKEN_REASON as oo, recordedRuleIdOf as or, AWS_CREDENTIAL_ENV_KEYS as os, readTtlSpec as ot, TemplateParser as ou, slashedSsmNameHealPendingNote as p, orphanRecordsPrintingBag as pa, APPSYNC_APIKEY_ARN_RESOURCE_PATH as pc, getCdkdAssetBucketName as pd, getCurrentProducerRegions as pi, malformedOrphansWarning as pl, revertNestedChildFromJournal as pn, evaluateSignals as po, cfnIngressPortValue as pr, regionLessSecretName as ps, CONTRIBUTOR_INSIGHTS_KEY as pt, rebuildClientForBucketRegion as pu, streamPolicyMatchesDeclared as q, SNS_DEFAULT_POLICY_ID as qa, refuseMalformedResourceAttributesForOrphan as qc, snapshotSegmentSurvivors as qi, unwrittenCreateOnlyReplacement as ql, changedReferencePath as qn, poisonRenderedSpellingsCollidingIn as qo, recordUnderIdIsNotOwn as qr, namesRecreatedParent as qs, refactorMarkerRefusalMessage as qt, redirectFileAsset as qu, keptWholeReasonText as r, noEchoAttributeNamesOf as ra, shownType as rc, ensureAssetStorage as rd, segmentCleanupOptions as ri, malformedResourcePropertiesWarning as rl, formatResourceLine as rn, verbatimEchoDriftKeys as ro, siblingOwnedRevertDesired as rr, isIamRoleArn as rs, isTtlAlreadyDisabled as rt, normalizeRecordName as ru, checkNestedSsmNames as s, withAttemptedItemsMasked as sa, renderStatefulReason as sc, getBootstrapMarkerKey as sd, nameGenerationHighWaterOf as si, refuseMalformedResourcePropertiesForExport as sl, displacedOpClause as sn, ProviderRegistry as so, sgRuleOwnershipIdentity as sr, applyCallerIdentityCredentials as ss, sendTtlWaitingOutRateLimit as st, S3StateBackend as su, DeployEngine as t, red as ta, findReplacedReadersOfRecreateTargets as tc, warnWholeAssemblyAsSource as td, redactedDeleteAddressFields as ti, unreadableResourceEntries as tl, readsOnlyNoEchoParameters as tn, settleDeclaredMember as to, proposeRenames as tr, assertSendableRoleArn as ts, tagsMatchDeclared as tt, providerReplacementOldDeleted as tu, healSlashedSsmParameterNames as u, journaledOrphanPrintingBag as ua, isWarmThroughputDecrease as uc, validateAssetBucketName as ud, retiredNameGenerationsAfter as ui, UNREADABLE_ORPHANS_CONTAINER_ROW as ul, getNestedRevertRun as un, wouldReturnToSdkProvider as uo, siblingRecordedSgRuleIds as ur, classifyRecordedSecretRegion as us, vectorIndexesForCreate as ut, readOnlyStateVersionOf as uu, conditionInputsFrom as v, stackSecretNamesMasker as va, withSecretPhysicalIdsMaskedInState as vc, nullPrototypeRecord as vd, resourcesNamingDeclaredParameter as vi, malformedExportSourceWarning as vl, withNestedStackContext as vn, responsePresignClient as vo, replayRollback as vr, s3BucketRegionalDomainName as vs, planIndexContributorInsightsOps as vt, isAccessDenied$1 as vu, pendingMovesRefusalMessage as w, ccRoutedFinalSnapshotError as wa, movedMaskedProperties as wc, namesTheSameDirectory as wd, secretSafeKeyDisplay as wi, refuseMalformedOutputsForDestroy as wl, loadJournaledOrphans as wn, NO_LOCAL_CUSTOM_RESOURCES_FLAG as wo, recordAfterRollbackUpdate as wr, cfnRefValueFromPhysicalId as ws, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as wt, stringifyValue as wu, childTemplateLoader as x, extractDeploymentEventError as xa, tryGetTopLevelWriteOnlyProperties as xc, assemblyPathEscape as xd, exportAliasCollisionScrubWarning as xi, malformedOutputsWarning as xl, dropFailedHint as xn, isCustomResourceType as xo, earlyDeleteWhen as xr, isUnboundTemplateParameter as xs, reverseMapTableContributorInsights as xt, withStackInstanceIdWithheld as xu, parentSuppliedValues as y, stateSecretNameNeedles as ya, getSettledWriteOnlyPropertyPaths as yc, ownValue as yd, WITHHELD_NAME_DISPLAY as yi, malformedLocalOutputsWarning as yl, deleteJournaledOrphans as yn, TemplateNoEchoReresolver as yo, DELETED_RESOURCE_REMEDY as yr, s3BucketWebsiteUrl as ys, readContributorInsightsSpec as yt, isNotImplemented as yu, declaredStreamPolicyMember as z, destroyStackRecordsView as za, repairMalformedOrphanRecordsForReadOnly as zc, isSupersededResourceRecord as zi, STATE_RESOURCES_MALFORMED as zl, findDestructiveChanges as zn, deleteSkipReason as zo, acquireIdempotencyToken as zr, withoutVersionAttestation as zs, S3_AUTO_DELETE_OBJECTS_TAG as zt, buildAssetRedirectMap as zu };
56035
- //# sourceMappingURL=deploy-engine-BrbeNr1n.js.map
56601
+ export { gsiUnsendableChangeRefusal as $, stateSecretNameNeedles as $a, tryGetTopLevelWriteOnlyProperties as $c, assemblyPathEscape as $d, WITHHELD_NAME_DISPLAY as $i, malformedOutputsWarning as $l, journaledOrphanLines as $n, TemplateNoEchoReresolver as $o, PLANNED_EARLY_DELETE_CONSEQUENCE as $r, s3BucketWebsiteUrl as $s, stripIndexContributorInsights as $t, withStackInstanceIdWithheld as $u, recordedProtectionEvidence as A, findNestedStackTypeChanges as Aa, markNewValueKnownAfterDeploy as Ac, parseAssetManifestBody as Ad, attemptUsesCompletedCreate as Ai, refuseMalformedResourceEntriesForImportSave as Al, macWriteOnlyKeys as An, efsPolicyMatchesDeclared as Ao, propertiesChangedReason as Ar, resolveDynamicReferences as As, recordTagWrite as At, hasNoCloudControlHandlers as Au, declaredStreamTagsMember as B, noEchoParameterNamesOf as Ba, isStatefulRecreateTargetSync as Bc, parseBootstrapMarker as Bd, nameGenerationCarriedFrom as Bi, refuseMalformedResourcePropertiesForOrphan as Bl, getNestedRevertRun as Bn, CC_BROKEN_REASON as Bo, siblingRecordedSgRuleIds as Br, AWS_CREDENTIAL_ENV_KEYS as Bs, readbackVectorIndexes as Bt, splitImportedOps as Bu, slashedSsmNameHealPendingNote as C, supersededHolderOf as Ca, isNamelessDynamicReferenceError as Cc, loadPublishableAssetManifest as Cd, isReplacementOrphan as Ci, malformedResourceEntriesWarning as Cl, refactorMarkerRefusalMessage as Cn, withStackRecords as Co, changedReferencePath as Cr, markWaitAbandoned as Cs, sseSpecificationToSend as Ct, findHandledUnwrittenCreateOnly as Cu, findServiceTokenRefusals as D, snapshotSegmentSurvivors as Da, namesRecreatedParent as Dc, AssetManifestLoader as Dd, replacementNeverSwapped as Di, refuseMalformedResourceEntriesForDeploy as Dl, deleteSignalReceiver as Dn, SNS_DEFAULT_POLICY_ID as Do, looselyEqual as Dr, poisonRenderedSpellingsCollidingIn as Ds, clearTagWrites as Dt, withoutSdkUnwiredProperties as Du, deferredServiceTokenWarning as E, replacedDeleteFailureVerdict as Ea, withSharedDrainBudget as Ec, rewriteTemplateAssetReferences as Ed, recordUnderIdIsNotOwn as Ei, refuseMalformedResourceEntries as El, updateRefactorMarker as En, OWN_WRITE_REREAD_DELAYS_MS as Eo, isPairableType as Er, isAlwaysLiveAttribute as Es, TAGS_BASELINE_REREAD_DELAYS_MS as Et, withoutAcceptedSdkUnwiredProperties as Eu, readProtection as F, red as Fa, findReplacedReadersOfRecreateTargets as Fc, ensureAssetStorage as Fd, redactedDeleteAddressSkip as Fi, malformedResourcePropertiesWarning as Fl, resolvePendingCloudControlRequests as Fn, settleDeclaredMember as Fo, undeclaredGrantSiblingMembers as Fr, assertSendableRoleArn as Fs, isTtlRateLimited as Ft, normalizeRecordName as Fu, streamDeclaresTags as G, maskEventTextWithBoundBags as Ga, APPSYNC_APIKEY_ARN_RESOURCE_PATH as Gc, getCdkdAssetBucketName as Gd, retiredNameGenerationsLeaving as Gi, malformedOrphansWarning as Gl, withNestedRevertRun as Gn, WaitConditionSignalStore as Go, sgCidrKey as Gr, classifyReplaySecretRegion as Gs, completeTableContributorInsightsBaseline as Gt, rebuildClientForBucketRegion as Gu, readStreamPolicy as H, createReadOnlyAttributeHealerFactory as Ha, isWarmThroughputDecrease as Hc, validateAssetBucketName as Hd, nameScopeOf as Hi, UNREADABLE_ORPHANS_CONTAINER_ROW as Hl, recordDisplacedSkips as Hn, ccBrokenReason as Ho, SG_RULE_ID_PATTERN as Hr, callerEnvCredentials as Hs, vectorIndexesSettled as Ht, readOnlyStateVersionOf as Hu, DynamoDBGlobalTableProvider as I, yellow as Ia, isPlainReferenceTo as Ic, buildDenyExternalAccessPolicy as Id, segmentCleanupOptions as Ii, refuseMalformedResourceProperties as Il, NESTED_PENDING_PARENT_REASON as In, warnUnsettledMember as Io, recordedRuleIdOf as Ir, explicitRoleArnOrThrow as Is, planTimeToLive as It, planSubscriptionAttributes as Iu, streamTagsMatchDeclared as J, secretNamePrintingBag as Ja, secretPhysicalIdSegment as Jc, hasOwnKey as Jd, inheritProducerRegions as Ji, repairMalformedOrphansForReadOnly as Jl, withNestedStackContext as Jn, isSignalKey as Jo, canonicalizeIpv4Cidr as Jr, isUnexposedRecordedIdentity as Js, planContributorInsightsOp as Jt, applyCrossPrefixScan as Ju, streamMemberRefusals as K, namingSecretsWithRecordedNoEcho as Ka, displayPhysicalId as Kc, getCdkdContainerRepoName as Kd, withNameGenerationReached as Ki, refuseMalformedOrphans as Kl, collectNestedChildUnaddressed as Kn, classifyHandleUrl as Ko, sgProtocolKey as Kr, producerRegionsFromState as Ks, contributorInsightsRefusals as Kt, CrossPrefixReadError as Ku, STREAM_POLICY_KEY as L, noEchoAttributeNamesOf as La, shownType as Lc, assertAssetBucketRegion as Ld, removeProtectionTypeList as Li, refuseMalformedResourcePropertiesForDestroy as Ll, displacedOpClause as Ln, verbatimEchoDriftKeys as Lo, sgRuleOwnershipIdentity as Lr, isIamRoleArn as Ls, readTtlSpec as Lt, wireAttributeValue as Lu, PROTECTION_PROPERTY_BY_TYPE as M, cyan as Ma, siblingsOf as Mc, warnAbsoluteAssetPath as Md, REDACTED_DELETE_ADDRESS_SKIP_REASON as Mi, repairMalformedResourceEntriesForReadOnly as Ml, licensedNameHolder as Mn, memberReadFailure as Mo, referencedLogicalIds as Mr, refuseUnreadableCdkCrossAccountRefs as Ms, tagsMatchDeclared as Mt, dropSupersededProviderReplacements as Mu, isProtectionValueActive as N, gray as Na, LEGACY_HANDLE_ID_PREFIX as Nc, warnWholeAssemblyAsSource as Nd, isRedactedRecordedValue as Ni, unreadableResourceEntries as Nl, formatResourceLine as Nn, policyDocumentMatchesDeclared as No, siblingOwnedRevertDesired as Nr, applyRoleArnIfSet as Ns, takeTagWrite as Nt, providerReplacementOldDeleted as Nu, serviceTokenBlockingReason as O, resolveReplacementOldType as Oa, INTRINSIC_KEYS as Oc, getDockerImageBySourceHash as Od, IMPLICIT_DELETE_DEPENDENCIES as Oi, refuseMalformedResourceEntriesForDestroy as Ol, isReceiver as On, declaredMemberDocument as Oo, mappingPairs as Or, stackIdTailOf as Os, declaredTagsReadback as Ot, withoutUnwrittenSdkUnwiredProperties as Ou, perType as P, green as Pa, isLegacyHandleId as Pc, AssetModeResolver as Pd, redactedDeleteAddressFields as Pi, malformedDriftResourcePropertiesWarning as Pl, pendingRequestCount as Pn, reReadUntilSettled as Po, stripSiblingOwnedParentMembers as Pr, assertFlagRoleArn as Ps, isTtlAlreadyDisabled as Pt, providerReplacementReason as Pu, desiredIndexEntriesByName as Q, stackSecretNamesMasker as Qa, getTopLevelKeysHoldingUnreadableCreateOnly as Qc, absoluteAssemblyPathEscape as Qd, resourcesNamingDeclaredParameter as Qi, malformedOutputsRefusalMessage as Ql, isHandledOrphan as Qn, responsePresignClient as Qo, DELETED_RESOURCE_REMEDY as Qr, s3BucketRegionalDomainName as Qs, reverseMapTableContributorInsights as Qt, stackInstanceIdOf as Qu, STREAM_TAGS_KEY as R, noEchoComparisonForTemplate as Ra, MULTI_REGION_RECREATE_BLOCKED_TYPES as Rc, isCrossRegionRedirect as Rd, removeProtectionTypes as Ri, refuseMalformedResourcePropertiesForDrift as Rl, displacedPhysicalIdShown as Rn, attemptedPolicyDocument as Ro, sgSiblingDecidedById as Rr, parseIamRoleArn as Rs, sendTtlWaitingOutRateLimit as Rt, TemplateParser as Ru, slashedSsmNameHealNote as S, supersededHeldByOtherTypeWarning as Sa, carriesFetchableDynamicReference as Sc, isDefaultBootstrapRepoName as Sd, isJournaledOrphan as Si, malformedLocalResourcesWarning as Sl, refactorMarkerMovesOf as Sn, verifiedIdentityCache as So, changedReferenceInDiff as Sr, isWaitAbandonedError as Ss, sseSpecificationRefusal as St, findActionableSdkUnwired as Su, inRunStackKey as T, withoutSuperseded as Ta, keepsSecretReferenceToken as Tc, redirectFileAsset as Td, recheckFailedPlan as Ti, refuseMalformedResourceAttributesForOrphan as Tl, sameMove as Tn, LAMBDA_PERMISSION_STATEMENT_KEYS as To, differingRemedy as Tr, isSelectOutOfBounds as Ts, tableNameReleaseWait as Tt, unwrittenCreateOnlyReplacement as Tu, reverseMapStreamPolicy as U, completedReplayEntries as Ua, toCfnInteger as Uc, validateContainerRepoName as Ud, retiredAfterRollback as Ui, hasReadableOrphans as Ul, revertNestedChildFromJournal as Un, isCustomResource as Uo, cfnIngressPortValue as Ur, envCredentialsAreAssumedRole as Us, vectorIndexesShapeDetail as Ut, hasReasonlessBaselineRefusal as Uu, planStreamMemberOps as V, withAttemptedItemsMasked as Va, renderStatefulReason as Vc, readBootstrapMarkerBody as Vd, nameGenerationHighWaterOf as Vi, repairMalformedResourcePropertiesForReadOnly as Vl, nestedChildStackName as Vn, ProviderRegistry as Vo, withoutSiblingOwnedSgRules as Vr, applyCallerIdentityCredentials as Vs, vectorIndexesForCreate as Vt, isKnownTokenFreeState as Vu, streamDeclaresPolicy as W, journaledOrphanPrintingBag as Wa, toFiniteNumber as Wc, BOOTSTRAP_MARKER_PREFIX as Wd, retiredNameGenerationsAfter as Wi, malformedOrphansRefusalMessage as Wl, revertedNestedRowIds as Wn, wouldReturnToSdkProvider as Wo, recordedSgRuleId as Wr, classifyRecordedSecretRegion as Ws, CONTRIBUTOR_INSIGHTS_KEY as Wt, hasUnverifiableParameterRefusal as Wu, declaresIndexList as X, secretNamedAttributeNamesOf as Xa, withSecretPhysicalIdsMaskedInState as Xc, nullPrototypeRecord as Xd, namesAnyDeclaredParameter as Xi, malformedExportSourceWarning as Xl, dropFailedCommands as Xn, applyCustomResourceResponseExpiration as Xo, replayFailedOperations as Xr, s3BucketDomainName as Xs, readContributorInsightsSpec as Xt, isAccessDenied$1 as Xu, canonicalizeStaleIndexDescription as Y, secretNamePrintingBags as Ya, secretSegmentsOfState as Yc, hasPlainPrototype as Yd, computeParameterTaint as Yi, malformedExportNamesWarning as Yl, deleteJournaledOrphans as Yn, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as Yo, canonicalizeIpProtocolValue as Yr, s3BucketArn as Ys, planIndexContributorInsightsOps as Yt, crossPrefixDeniedWarning as Yu, deletionProtectionRefusal as Z, secretNamedRecordNeedles as Za, getSettledWriteOnlyPropertyPaths as Zc, ownValue as Zd, reachableDivergentParameters as Zi, malformedLocalOutputsWarning as Zl, dropFailedHint as Zn, customResourceResponseExpirationWarning as Zo, replayRollback as Zr, s3BucketDualStackDomainName as Zs, reverseMapIndexContributorInsights as Zt, isNotImplemented as Zu, pendingMovesOutOf as _, deleteSupersededEntry as _a, referenceProvenanceOf as _c, buildAssetRedirectMap as _d, withCreateTokenLedger as _i, repairMalformedOrphanRecordsForReadOnly as _l, isTruthyCfnBoolean as _n, withoutSiblingOwned as _o, findRefactorHints as _r, deleteIndeterminateGuards as _s, isTableName as _t, STATE_RESOURCES_MALFORMED as _u, checkNestedSsmNames as a, carriedExportAliasExposure as aa, isStalePlaceholderArnAttribute as ac, isAbsoluteAssetPath as ad, clearBucketRegionCache as af, withUnprovenUnsettled as ai, passedParameterClassesOf as al, resolveDynamoDbDeleteBudgetClock as an, ccRoutedInstanceTakesNoSnapshot as ao, DeploymentEventsReader as ar, customResourceStackName as as, declaresWarmThroughput as at, refuseDivergentRecordRegionForDestroy as au, healSlashedSsmParameterNames as b, supersededAfterRollback as ba, getAccountInfo as bc, flattenAssetPlaceholders as bd, seedsDeleteFirstGuard as bi, isReadableResourceEntry as bl, readRefactorMarker as bn, getStackRecords as bo, rollbackOrphanIds as br, withIndeterminateGuard as bs, pointInTimeRecoveryRefusal as bt, hasReadableOutputs as bu, crossStackOutputProvenanceSource as c, isWholeDynamicReferenceValue as ca, lacksRecordedTableArn as cc, templateIdentity as cd, equalModuloMask as ci, deployRefusesOrphanRowsReason as cl, INDEX_SETTLE_POLL_INTERVAL_MS as cn, refusesFinalSnapshot as co, NOECHO_MAC_KEY_ALIAS as cr, localCustomResourceCommand as cs, readbackWarmThroughput as ct, malformedStateRefusalMessage as cu, conditionFingerprint as d, collectPublishedOutputNames as da, promoteInPlaceAttributeDependents as dc, ssmResolvedValueType as dd, updatePartialReason as di, malformedOrphanRecordsWarning as dl, maskedLogger as dn, buildFinalSnapshotIdentifier as do, noEchoMacParametersOf as dr, withCustomResourceStack as ds, warmThroughputAlreadyMatches as dt, refuseMalformedResourcesForExport as du, displayTextOrWithheld as ea, coerceParameterTypedValue as ec, isSecretValuedAttribute as ed, describeFileReadFailure as ef, earlyDeleteWhen as ei, inputFingerprinter as el, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as en, storedSecretNameNeedles as eo, loadJournaledOrphans as er, readsNoEchoDeleteValues as es, localSecondaryIndexesKey as et, refuseMalformedNestedChildOutputs as eu, conditionInputsFrom as f, isExportAliasCollision as fa, keepHeldTokenProvenance as fc, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as fd, findUpdatePolicyReplacementRefusals as fi, malformedOrphanRowsKeptWarning as fl, relayedIndexBusyDelete as fn, collectGroupsAddedBySiblings as fo, noEchoMacVerdict as fr, waitForLambdaFunctionActive as fs, KINESIS_DESTINATION_SETTLE_POLL_MS as ft, refuseMalformedState as fu, hasPendingMovesOut as g, maskingRetryLogger as ga, recordedReferenceRegions as gc, synthesizedStacks as gd, reserveStackCreateToken as gi, refuseMalformedOrphansForOrphan as gl, hasCdkAutoDeleteTag as gn, withoutSiblingAttachedArns as go, formatDestructiveChange as gr, UNSPECIFIED_SKIP_REASON as gs, isPlainCapacityBlock as gt, withheldAccountClause as gu, childTemplateLoader as h, DEFAULT_RESOURCE_WARN_AFTER_MS as ha, recordedProvenanceOf as hc, rememberSynthesizedStacks as hd, ledgerForStack as hi, refuseMalformedOrphanRecordsForDestroy as hl, S3_AUTO_DELETE_OBJECTS_TAG as hn, isStoredExpression as ho, findDestructiveChanges as hr, RollbackInlinePolicyWriters as hs, hasUsableDeclaredCapacity as ht, accountArgs as hu, mergeNoChangeOutputs as i, secretSafeKeyDisplay as ia, cfnRefValueFromPhysicalId as ic, findNestedTemplateTreeDefect as id, resolveAssemblyPath as if, settleUnsettledPrevious as ii, maskedInputProof as il, deleteBudgetKey as in, ccRoutedFinalSnapshotError as io, planOrphanAdoption as ir, NO_LOCAL_CUSTOM_RESOURCES_FLAG as is, coerceWarmThroughput as it, STATE_REGION_DIVERGED as iu, recordedProtectionNote as j, bold as ja, replacementSidesForLog as jc, resolveFileAssetSourcePath as jd, readsRegeneratingSecret as ji, refuseMalformedResourceEntriesForOrphan as jl, readsOnlyNoEchoParameters as jn, lambdaPermissionMatchesDeclared as jo, proposeRenames as jr, producerLookupOver as js, settleWrittenTags as jt, PROPERTY_COVERAGE_BY_TYPE as ju, diffSecurity as k, withPreviousPolicies as ka, containsIntrinsic as kc, isCfnTemplateAssetPath as kd, computeImplicitDeleteEdges as ki, refuseMalformedResourceEntriesForImport as kl, removeSignalReceiverNamed as kn, declaredPolicyDocument as ko, parseMappingFile as kr, isSettledInstanceState as ks, isDynamoDBTableArnIn as kt, NO_CC_HANDLERS_REASON as ku, inheritedProvenanceForChildDiff as l, noEchoParameterValueSeed as la, parseWebACLArn as lc, SSM_PARAMETER_VALUE_PREFIX as ld, undeclaredEmptyObservedKeys as li, isReadableOrphanRecord as ll, TABLE_INDEX_NOUN as ln, unsupportedFinalSnapshotError as lo, createNoEchoValueMacs as lr, localCustomResourceRuntimeActive as ls, sentWarmThroughputMembers as lt, refuseMalformedResourcesForDeploy as lu, readRecordedConditionVerdicts as m, DEFAULT_RESOURCE_TIMEOUT_MS as ma, recordedOutputReferenceRegions as mc, decodeListingKey as md, earliestDefined as mi, refuseMalformedOrphanRecords as ml, ECR_AUTO_DELETE_IMAGES_TAG as mn, collectPrincipalsAttachingPolicy as mo, constructPathOf as mr, waitForGoneAfterDelete as ms, deleteTableRetryDelays as mt, JSON_LISTING_HOLE_VALUE as mu, isSecretBearingReferenceString as n, secretBearing as na, parameterTypeMayLoseSecretIdentity as nc, stringifyValue as nd, namesTheSameDirectory as nf, buildReadCurrentStateContext as ni, movedMaskedProperties as nl, beginDeleteWait as nn, ATOMIC_FINAL_SNAPSHOT_TYPES as no, makeForeignHolderScan as nr, getCurrentResourceSecrets as ns, reverseMapSecondaryIndex as nt, refuseMalformedOutputsForDestroy as nu, nestedSsmNameDeferredNote as o, exportNameNoEchoParameters as oa, refStateLookupFromResource as oc, listNestedTemplateRows as od, resolveBucketRegion as of, calculateResourceDrift as oi, declaresNoEcho as ol, resolveDynamoDbDeleteBudgetMs as on, effectiveDeletionPolicy as oo, DeploymentEventsStore as or, customResourcesFailedWithoutApp as os, desiredBagIsInformative as ot, malformedRenderedContainersWarning as ou, parentSuppliedValues as p, bindingSkippedOutputs as pa, outputReferenceProvenanceOf as pc, purgeNoncurrentKeyVersions as pd, replacementCreateRoutesToCloudControl as pi, previewableOrphanRecords as pl, waitForIndexesSettled as pn, collectManagedPolicyArnsAttachedBySiblings as po, noEchoValueMacsOf as pr, CloudControlProvider as ps, KINESIS_DISABLE_PENDING_STATUSES as pt, repairMalformedResourcesForReadOnly as pu, streamPolicyMatchesDeclared as q, orphanRecordsPrintingBag as qa, maskedSecretSegment as qc, defineOwnKey as qd, getCurrentProducerRegions as qi, refuseMalformedOrphansForDestroy as ql, getCurrentNestedStackContext as qn, evaluateSignals as qo, canonicalizeIpv6Cidr as qr, regionLessSecretName as qs, indexDeclaresContributorInsights as qt, CrossPrefixScanCache as qu, keptWholeReasonText as r, secretBearingStateKeyWarning as ra, AWS_NO_VALUE as rc, missingStateBucketRemedy as rd, renderAssemblyPathEscape as rf, recordAfterRollbackUpdate as ri, parameterInputsFor as rl, compensateRemovedDeletionProtection as rn, PRE_DELETE_SNAPSHOT_TYPES as ro, makeSiblingClaimReader as rr, withPrintingSecrets as rs, sameJsonValue as rt, repairMalformedOutputsForReadOnly as ru, nestedSsmNameRowNote as s, exportNameSecretExposure as sa, lacksRecordedRefArn as sc, renderNestedTemplateTreeDefect as sd, equalModuloMarkedMask as si, maskedPropertyFingerprint as sl, DELETE_INDEX_WAIT_PROCEED_NOTE as sn, isFinalSnapshotError as so, crossStackReadsForPartialSave as sr, customResourcesRunWithoutApp as ss, isRefusedWarmThroughput as st, malformedResourcesWarning as su, DeployEngine as t, exportAliasCollisionScrubWarning as ta, isUnboundTemplateParameter as tc, isSensitiveAttributeName as td, displayAssemblyPath as tf, earlyDeletedOld as ti, maskedPropertyFingerprintsOf as tl, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as tn, extractDeploymentEventError as to, sameJournaledOrphans as tr, isCustomResourceType$1 as ts, projectIndexesOnto as tt, refuseMalformedOutputs as tu, makeCanonicalizePropertiesFn as u, collectDeclaredOutputNames as ua, extractGetAttRefs as uc, isListParameterType as ud, updatePartialMessage as ui, malformedOrphanRecordsRefusalMessage as ul, deleteTableWithIndexBusyRetry as un, createPreDeleteFinalSnapshot as uo, noEchoMacBinding as ur, setLocalCustomResourceRuntimeEnabled as us, trimUnsentWarmMembers as ut, refuseMalformedResourcesForDestroy as uu, pendingMovesRefusalMessage as v, holdsSupersededResources as va, referenceTokensIn as vc, createAssetRedirectResolver as vd, acquireIdempotencyToken as vi, unpreviewableOrphanRecords as vl, keptForRetainedRecord as vn, awaitInFlightSibling as vo, hintSidesOf as vr, deleteLeftInPlace as vs, mapSSESpecification as vt, UNREADABLE_RESOURCES_MAP_ROW as vu, scanActiveConsumers as w, supersededResourcesOf as wa, carriesDynamicReference as wc, redirectDockerAsset as wd, planFailedOps as wi, malformedScrubResourceEntriesRefusalMessage as wl, refuseRefactorMarker as wn, KMS_DEFAULT_KEY_POLICY_ID as wo, changedReferenceReason as wr, IntrinsicFunctionResolver as ws, tableDeleteGoneWait as wt, findSdkUnwiredProperties as wu, slashedSsmNameHealAdoptedNote as x, supersededDependentsFirst as xa, isImpossibleEmptyStoredAttribute as xc, isDefaultBootstrapBucketName as xd, demoteSupersededOrphans as xi, malformedLocalResourceEntriesWarning as xl, readRefactorMarkerOnce as xn, revertStackRecordsView as xo, withMovedTo as xr, getReadOnlyPropertyPaths as xs, readCapacityNumber as xt, hasReadableResources as xu, refusePendingMovesOut as y, isSupersededResourceRecord as ya, withoutVersionAttestation as yc, createLazyAssetModeContext as yd, planRollback as yi, unreadableOrphanRecords as yl, recordRetainedForReadoption as yn, destroyStackRecordsView as yo, movedToHint as yr, deleteSkipReason as ys, maskLeafValue as yt, displayLogicalId as yu, declaredStreamPolicyMember as z, noEchoExactEchoLeavesOf as za, isStatefulRecreateTargetForReplace as zc, getBootstrapMarkerKey as zd, orphanNeedsIdentity as zi, refuseMalformedResourcePropertiesForExport as zl, dropSettledNestedJournals as zn, policyContentKey as zo, siblingOwnedSgRuleIdentities as zr, sendableAssumeRoleCommand as zs, planVectorIndexUpdates as zt, S3StateBackend as zu };
56602
+ //# sourceMappingURL=deploy-engine-Dtsub41u.js.map