@cdkd/cli 0.360.1 → 0.362.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/{ambient-client-defaults-7ZUTgwyy.js → ambient-client-defaults-lvt_quOX.js} +4 -3
  2. package/dist/ambient-client-defaults-lvt_quOX.js.map +1 -0
  3. package/dist/{asg-provider-Bw8ajB1r.js → asg-provider-fEPlW1VD.js} +26 -8
  4. package/dist/asg-provider-fEPlW1VD.js.map +1 -0
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-CAP2Al4I.js → custom-resource-runtime-DWIcvRGQ.js} +6 -6
  7. package/dist/{custom-resource-runtime-CAP2Al4I.js.map → custom-resource-runtime-DWIcvRGQ.js.map} +1 -1
  8. package/dist/{db-associated-roles-DSeRoEq5.js → db-associated-roles-bxCMZbZE.js} +2 -2
  9. package/dist/{db-associated-roles-DSeRoEq5.js.map → db-associated-roles-bxCMZbZE.js.map} +1 -1
  10. package/dist/{delete-started-DHIp8imD.js → delete-started-CdhzmNUy.js} +212 -6
  11. package/dist/delete-started-CdhzmNUy.js.map +1 -0
  12. package/dist/{deploy-engine-Bo8PtTbG.js → deploy-engine-XCVGar9z.js} +836 -188
  13. package/dist/deploy-engine-XCVGar9z.js.map +1 -0
  14. package/dist/{ec2-termination-protection-CRkl8_Wy.js → ec2-termination-protection-CprPM9CV.js} +6 -6
  15. package/dist/{ec2-termination-protection-CRkl8_Wy.js.map → ec2-termination-protection-CprPM9CV.js.map} +1 -1
  16. package/dist/{ecr-uri-DaIBuz4E.js → ecr-uri-Bco-bZxQ.js} +2 -2
  17. package/dist/{ecr-uri-DaIBuz4E.js.map → ecr-uri-Bco-bZxQ.js.map} +1 -1
  18. package/dist/{expected-bucket-owner-BjRKj3hF.js → expected-bucket-owner-DNrpjI15.js} +2 -2
  19. package/dist/{expected-bucket-owner-BjRKj3hF.js.map → expected-bucket-owner-DNrpjI15.js.map} +1 -1
  20. package/dist/{iam-role-provider-CcK9C-mY.js → iam-role-provider-n08e_UqG.js} +9 -9
  21. package/dist/{iam-role-provider-CcK9C-mY.js.map → iam-role-provider-n08e_UqG.js.map} +1 -1
  22. package/dist/{image-plan-CwiLyeAj.js → image-plan-PkDml11o.js} +8 -8
  23. package/dist/{image-plan-CwiLyeAj.js.map → image-plan-PkDml11o.js.map} +1 -1
  24. package/dist/index.d.ts +7 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +5 -5
  27. package/dist/{logger-CjGMINd9.js → logger-CS467GaW.js} +2 -2
  28. package/dist/{logger-CjGMINd9.js.map → logger-CS467GaW.js.map} +1 -1
  29. package/dist/{neptune-provider-D-jHbjCG.js → neptune-provider-B6VK2Cbj.js} +7 -7
  30. package/dist/{neptune-provider-D-jHbjCG.js.map → neptune-provider-B6VK2Cbj.js.map} +1 -1
  31. package/dist/{program-BHLjuXmA.js → program-BgTzsbxH.js} +55 -22
  32. package/dist/program-BgTzsbxH.js.map +1 -0
  33. package/dist/{provider-classes-D5IgG-fE.js → provider-classes-BPg5qXSB.js} +493 -71
  34. package/dist/provider-classes-BPg5qXSB.js.map +1 -0
  35. package/dist/{rds-provider-BSDygv5j.js → rds-provider-6MbfXMoG.js} +98 -14
  36. package/dist/rds-provider-6MbfXMoG.js.map +1 -0
  37. package/dist/{read-replica-a4eZWjUH.js → read-replica-Zx5KMOal.js} +3 -3
  38. package/dist/{read-replica-a4eZWjUH.js.map → read-replica-Zx5KMOal.js.map} +1 -1
  39. package/dist/{replacement-rules-JS1D0m-r.js → replacement-rules-D_XjAts6.js} +3 -3
  40. package/dist/{replacement-rules-JS1D0m-r.js.map → replacement-rules-D_XjAts6.js.map} +1 -1
  41. package/dist/{resource-deadline-DtW_JiNE.js → resource-deadline-o6RvWixc.js} +21 -21
  42. package/dist/{resource-deadline-DtW_JiNE.js.map → resource-deadline-o6RvWixc.js.map} +1 -1
  43. package/dist/{restore-source-guard-BPEKIvrh.js → restore-source-guard-ORkhNnNg.js} +4 -4
  44. package/dist/{restore-source-guard-BPEKIvrh.js.map → restore-source-guard-ORkhNnNg.js.map} +1 -1
  45. package/dist/{run-cli-F87YOoqR.js → run-cli-Dp5c7Am8.js} +2 -2
  46. package/dist/{run-cli-F87YOoqR.js.map → run-cli-Dp5c7Am8.js.map} +1 -1
  47. package/dist/{settle-own-write-members-DmDIpP0O.js → settle-own-write-members-SaiOYQGZ.js} +12 -12
  48. package/dist/{settle-own-write-members-DmDIpP0O.js.map → settle-own-write-members-SaiOYQGZ.js.map} +1 -1
  49. package/dist/{version-MMfHOVaa.js → version-DFX4Mg8N.js} +2 -2
  50. package/dist/{version-MMfHOVaa.js.map → version-DFX4Mg8N.js.map} +1 -1
  51. package/package.json +1 -1
  52. package/dist/ambient-client-defaults-7ZUTgwyy.js.map +0 -1
  53. package/dist/asg-provider-Bw8ajB1r.js.map +0 -1
  54. package/dist/delete-started-DHIp8imD.js.map +0 -1
  55. package/dist/deploy-engine-Bo8PtTbG.js.map +0 -1
  56. package/dist/program-BHLjuXmA.js.map +0 -1
  57. package/dist/provider-classes-D5IgG-fE.js.map +0 -1
  58. package/dist/rds-provider-BSDygv5j.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-MMfHOVaa.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-CjGMINd9.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-7ZUTgwyy.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-DFX4Mg8N.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-CS467GaW.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-lvt_quOX.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, 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-CRkl8_Wy.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, 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-CprPM9CV.js";
7
7
  import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
8
- import { $t as markAuxiliaryFailure, At as canonicalizeRoute53QueryName, B as assertRegionMatch, Bt as createMaskedRetryLogger, D as withoutServerErrorRetries, F as refusalTypeShown, Gt as RETRY_AUXILIARY_OWNER, H as markNotGone, Ht as maskDeep, It as resourceTypeShown, Jt as createdBeforeFailure, K as observeThenDisableProtection, L as resolveExplicitPhysicalId, Lt as segmentAfterAnchor, M as isQuotableImportValue, Mt as compositeIdSeparatorRefusal, N as normalizeAwsTagsToCfn, P as quotedRemedyLogicalId, Pt as logicalIdShown, Qt as isAuxiliaryMarkOf, Rt as stateOrphanRecordRemedy, U as compensateProtectionFlip, Ut as maskerOrIdentity, V as isMarkedNotGone, Vt as isSecretDerivedValue, W as deleteWithProtectionCompensation, Wt as withDerivedNameMasks, Yt as createdResourceIdentityBeforeFailure, Zt as isAuxiliaryFailure, _n as withPasteableAwsProfile, at as runDeleteAttempt, bt as startInterruptWatch, ct as monotonicNowMs, d as CreatedResourceSink, dn as sanitizeRecoveryValue, en as markCreatedBeforeFailure, f as clearCreatedReport, fn as CUSTOM_RESOURCE_RESPONSE_PREFIX, g as retractCreatedResource, i as withResourceDeadline, it as protectionFlipKey, kt as withUnchangedSecretPrincipalLists, lt as DELETION_PROTECTION_DOC_POINTER, m as reportCreatedResource, mn as WAIT_CONDITION_SIGNAL_PREFIX, mt as protectedReplacementAdvice, n as enclosingDeadlineRemainingMs, nt as ProtectionFlipRegistry, o as prepareRemovalForUpdate, ot as ElapsedBudget, p as collectCreatedResources, pn as DEFAULT_STATE_PREFIX, pt as pasteableAwsCommand, r as whileEnclosingDeadlinesPaused, rt as isTerminalDeleteFailure, s as removalWarning, st as ElapsedBudgetRegistry, t as enclosingDeadlineExpired, u as withoutInjectedRemovals, un as recoveryCommandFlags, vn as injectiveKey, wt as holdsSecretDerivedEntry, xn as producerRecordKey, yt as isInterruptedWaitError, z as RESOURCE_NOT_FOUND, zt as createMaskedLogSinks } from "./resource-deadline-DtW_JiNE.js";
9
- import { t as expectedOwnerParam } from "./expected-bucket-owner-BjRKj3hF.js";
10
- import { Ct as isReadableBag, Dt as skippedOutputsCarriedFrom, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, gt as slowCcOperationTimeoutMs, ht as dbInstanceAttributes, i as dbClusterAttributes, n as isRefusedByName, r as markDeleteStarted, t as isDeleteStarted, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-DHIp8imD.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-JS1D0m-r.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-BPEKIvrh.js";
8
+ import { $t as markAuxiliaryFailure, A as assertRegionMatch, At as canonicalizeRoute53QueryName, B as resolveExplicitPhysicalId, Bt as createMaskedRetryLogger, D as withoutServerErrorRetries, F as isQuotableImportValue, Gt as RETRY_AUXILIARY_OWNER, H as markNotGone, Ht as maskDeep, I as normalizeAwsTagsToCfn, It as resourceTypeShown, Jt as createdBeforeFailure, K as observeThenDisableProtection, L as quotedRemedyLogicalId, Lt as segmentAfterAnchor, Mt as compositeIdSeparatorRefusal, Pt as logicalIdShown, Qt as isAuxiliaryMarkOf, R as refusalTypeShown, Rt as stateOrphanRecordRemedy, U as compensateProtectionFlip, Ut as maskerOrIdentity, V as isMarkedNotGone, Vt as isSecretDerivedValue, W as deleteWithProtectionCompensation, Wt as withDerivedNameMasks, Yt as createdResourceIdentityBeforeFailure, Zt as isAuxiliaryFailure, _n as withPasteableAwsProfile, at as runDeleteAttempt, bt as startInterruptWatch, ct as monotonicNowMs, d as CreatedResourceSink, dn as sanitizeRecoveryValue, en as markCreatedBeforeFailure, f as clearCreatedReport, fn as CUSTOM_RESOURCE_RESPONSE_PREFIX, g as retractCreatedResource, i as withResourceDeadline, it as protectionFlipKey, k as RESOURCE_NOT_FOUND, kt as withUnchangedSecretPrincipalLists, lt as DELETION_PROTECTION_DOC_POINTER, m as reportCreatedResource, mn as WAIT_CONDITION_SIGNAL_PREFIX, mt as protectedReplacementAdvice, n as enclosingDeadlineRemainingMs, nt as ProtectionFlipRegistry, o as prepareRemovalForUpdate, ot as ElapsedBudget, p as collectCreatedResources, pn as DEFAULT_STATE_PREFIX, pt as pasteableAwsCommand, r as whileEnclosingDeadlinesPaused, rt as isTerminalDeleteFailure, s as removalWarning, st as ElapsedBudgetRegistry, t as enclosingDeadlineExpired, u as withoutInjectedRemovals, un as recoveryCommandFlags, vn as injectiveKey, xn as producerRecordKey, yt as isInterruptedWaitError, zt as createMaskedLogSinks } from "./resource-deadline-o6RvWixc.js";
9
+ import { t as expectedOwnerParam } from "./expected-bucket-owner-DNrpjI15.js";
10
+ import { Ct as assertRecordedIdentity, Dt as slowCcOperationTimeoutMs, Et as recordedIdentityId, Ft as replaceDeadIdentity, Gt as orphansCarriedFrom, Ht as importableOutputs, Jt as stackInstanceIdCarriedFrom, Kt as shouldRetainResource, Lt as acceptedCreateOnlyDropsOf, Mt as isUsableIdentityValue, Nt as keepRecordedIdentity, Ot as SURVIVOR_IDENTITY_ATTRIBUTES, Pt as newCopyDeleteAttributes, Rt as describeRegionValueKind, Tt as identityWarner, Ut as isReadableBag, Vt as importableOutputKeys, Wt as orphansAfterRollback, gt as deniedIdentityReadRefusal, ht as dbInstanceAttributes, i as dbClusterAttributes, jt as isRecordedIdentityAttribute, kt as attributesAfterUpdate, n as isRefusedByName, qt as skippedOutputsCarriedFrom, r as markDeleteStarted, t as isDeleteStarted, vt as isAccessDeniedError, wt as differingIdentityWarning, yt as lookupEachName, zt as exportNamesCarriedFrom } from "./delete-started-CdhzmNUy.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-D_XjAts6.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-ORkhNnNg.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";
@@ -19,7 +19,7 @@ import { GetFunctionCommand, GetFunctionConfigurationCommand, GetFunctionUrlConf
19
19
  import { AssumeRoleCommand, GetCallerIdentityCommand, STSClient } from "@aws-sdk/client-sts";
20
20
  import { CreateSnapshotCommand, DeleteVolumeCommand, DescribeAvailabilityZonesCommand, DescribeInstancesCommand, DescribeLaunchTemplatesCommand, DescribeNatGatewaysCommand, DescribeNetworkAclsCommand, DescribeSecurityGroupsCommand, DescribeSnapshotsCommand, DescribeSubnetsCommand, DescribeVolumesCommand, DescribeVpcsCommand, GetIpamPoolAllocationsCommand } from "@aws-sdk/client-ec2";
21
21
  import { CreateTableCommand, DeleteResourcePolicyCommand, DeleteTableCommand, DescribeContinuousBackupsCommand, DescribeContributorInsightsCommand, DescribeKinesisStreamingDestinationCommand, DescribeTableCommand, DescribeTimeToLiveCommand, DisableKinesisStreamingDestinationCommand, DynamoDBClient, EnableKinesisStreamingDestinationCommand, GetResourcePolicyCommand, ListTagsOfResourceCommand, PolicyNotFoundException, PutResourcePolicyCommand, ResourceNotFoundException as ResourceNotFoundException$1, TagResourceCommand as TagResourceCommand$2, UntagResourceCommand as UntagResourceCommand$2, UpdateContinuousBackupsCommand, UpdateContributorInsightsCommand, UpdateKinesisStreamingDestinationCommand, UpdateTableCommand, UpdateTimeToLiveCommand } from "@aws-sdk/client-dynamodb";
22
- import { CloudFormationClient, DescribeStacksCommand, ListExportsCommand } from "@aws-sdk/client-cloudformation";
22
+ import { CancelUpdateStackCommand, CloudFormationClient, ContinueUpdateRollbackCommand, CreateStackCommand, DeleteStackCommand, DescribeStackEventsCommand, DescribeStackResourceCommand, DescribeStacksCommand, GetTemplateCommand, ListExportsCommand, UpdateStackCommand } from "@aws-sdk/client-cloudformation";
23
23
  import { GetRestApiCommand } from "@aws-sdk/client-api-gateway";
24
24
  import { DescribeApiDestinationCommand, DescribeConnectionCommand } from "@aws-sdk/client-eventbridge";
25
25
  import { GetSecretValueCommand } from "@aws-sdk/client-secrets-manager";
@@ -82,7 +82,7 @@ async function resolveBucketRegion(bucketName, opts = {}) {
82
82
  });
83
83
  }
84
84
  try {
85
- const { expectedOwnerParam } = await import("./expected-bucket-owner-BjRKj3hF.js").then((n) => n.n);
85
+ const { expectedOwnerParam } = await import("./expected-bucket-owner-DNrpjI15.js").then((n) => n.n);
86
86
  return (await client.send(new GetBucketLocationCommand({
87
87
  Bucket: bucketName,
88
88
  ...await expectedOwnerParam(client)
@@ -11433,7 +11433,7 @@ function mayBeStoredIn(childType, parentType) {
11433
11433
  const entry = CHILD_STORED_IN_PARENT[childType];
11434
11434
  return entry.properties.some((property) => typesFor(entry, property).includes(parentType));
11435
11435
  }
11436
- let parser;
11436
+ let parser$1;
11437
11437
  function childLostWithRecreatedParent(input) {
11438
11438
  if (input.recreatedUnderSameId.size === 0) return void 0;
11439
11439
  if (!Object.hasOwn(CHILD_STORED_IN_PARENT, input.resourceType)) return void 0;
@@ -11442,8 +11442,8 @@ function childLostWithRecreatedParent(input) {
11442
11442
  for (const property of entry.properties) {
11443
11443
  if (!Object.hasOwn(properties, property)) continue;
11444
11444
  const value = input.conditions === void 0 ? properties[property] : takenFnIfArms(properties[property], input.conditions);
11445
- parser ??= new TemplateParser();
11446
- for (const referencedId of parser.extractReferences(value)) {
11445
+ parser$1 ??= new TemplateParser();
11446
+ for (const referencedId of parser$1.extractReferences(value)) {
11447
11447
  if (!input.recreatedUnderSameId.has(referencedId)) continue;
11448
11448
  const parentType = input.recordedTypeOf(referencedId);
11449
11449
  if (parentType !== void 0 && typesFor(entry, property).includes(parentType)) return {
@@ -11586,8 +11586,8 @@ function withRecreatedAttachmentsDropped(input) {
11586
11586
  for (const property of entry.properties) {
11587
11587
  if (!Object.hasOwn(properties, property)) continue;
11588
11588
  const value = input.conditions === void 0 ? properties[property] : takenFnIfArms(properties[property], input.conditions);
11589
- parser ??= new TemplateParser();
11590
- const recreated = [...parser.extractReferences(value)].filter((id) => input.recreatedUnderSameId.has(id)).map((id) => ({
11589
+ parser$1 ??= new TemplateParser();
11590
+ const recreated = [...parser$1.extractReferences(value)].filter((id) => input.recreatedUnderSameId.has(id)).map((id) => ({
11591
11591
  id,
11592
11592
  record: input.recordOf(id)
11593
11593
  })).filter((p) => p.record !== void 0 && typesFor(entry, property).includes(p.record.resourceType));
@@ -13127,61 +13127,6 @@ const SHAPE_MISMATCHED_GETATT_ATTRIBUTES = {
13127
13127
  "AWS::MediaLive::Input": ["Destinations", "Sources"]
13128
13128
  };
13129
13129
 
13130
- // src/deployment/recorded-identity-attributes.ts
13131
- const SURVIVOR_IDENTITY_ATTRIBUTES = {
13132
- "AWS::IAM::Role": "RoleId",
13133
- "AWS::IAM::ManagedPolicy": "PolicyId",
13134
- "AWS::DynamoDB::Table": "TableId",
13135
- "AWS::RDS::DBInstance": "DbiResourceId",
13136
- "AWS::RDS::DBCluster": "DBClusterResourceId",
13137
- "AWS::IAM::User": "UserId",
13138
- "AWS::IAM::Group": "GroupId",
13139
- "AWS::IAM::InstanceProfile": "InstanceProfileId"
13140
- };
13141
- function isRecordedIdentityAttribute(resourceType, key) {
13142
- return Object.hasOwn(SURVIVOR_IDENTITY_ATTRIBUTES, resourceType) && SURVIVOR_IDENTITY_ATTRIBUTES[resourceType] === key;
13143
- }
13144
- function keepRecordedIdentity(resourceType, previous, next, onDiffering) {
13145
- if (!Object.hasOwn(SURVIVOR_IDENTITY_ATTRIBUTES, resourceType)) return next;
13146
- const key = SURVIVOR_IDENTITY_ATTRIBUTES[resourceType];
13147
- const held = previous !== void 0 && Object.hasOwn(previous, key) ? previous[key] : void 0;
13148
- const recorded = isUsableIdentityValue(held) ? held : void 0;
13149
- if (recorded === void 0 || next[key] === recorded) return next;
13150
- if (Object.hasOwn(next, key) && next[key] !== void 0) onDiffering?.(key);
13151
- return {
13152
- ...next,
13153
- [key]: recorded
13154
- };
13155
- }
13156
- function attributesAfterUpdate(resourceType, previous, result, onDiffering) {
13157
- if (result.wasReplaced) return result.attributes;
13158
- const next = result.attributes ?? previous;
13159
- return next === void 0 ? void 0 : keepRecordedIdentity(resourceType, previous, next, onDiffering);
13160
- }
13161
- function withoutDeadIdentity(resourceType, attributes) {
13162
- if (attributes === void 0 || !Object.hasOwn(SURVIVOR_IDENTITY_ATTRIBUTES, resourceType)) return attributes;
13163
- const key = SURVIVOR_IDENTITY_ATTRIBUTES[resourceType];
13164
- if (!Object.hasOwn(attributes, key)) return attributes;
13165
- const { [key]: _dead, ...rest } = attributes;
13166
- return rest;
13167
- }
13168
- function newCopyDeleteAttributes(resourceType, current, oldDeletedBeforeCreate, previous) {
13169
- if (oldDeletedBeforeCreate !== true || !Object.hasOwn(SURVIVOR_IDENTITY_ATTRIBUTES, resourceType)) return current;
13170
- const key = SURVIVOR_IDENTITY_ATTRIBUTES[resourceType];
13171
- return current?.[key] !== void 0 && current[key] === previous?.[key] ? withoutDeadIdentity(resourceType, current) : current;
13172
- }
13173
- function isUsableIdentityValue(value) {
13174
- return typeof value === "string" && value !== "" && !value.includes("***") && !holdsSecretDerivedEntry(value);
13175
- }
13176
- function replaceDeadIdentity(resourceType, attributes, previous, madeIdentity) {
13177
- const dropped = newCopyDeleteAttributes(resourceType, attributes, true, previous);
13178
- if (dropped === attributes || madeIdentity === void 0 || madeIdentity === "") return dropped;
13179
- return {
13180
- ...dropped,
13181
- [SURVIVOR_IDENTITY_ATTRIBUTES[resourceType]]: madeIdentity
13182
- };
13183
- }
13184
-
13185
13130
  // src/deployment/unexposed-identity-attribute.ts
13186
13131
  function isUnexposedRecordedIdentity(resourceType, attributeName) {
13187
13132
  if (!isRecordedIdentityAttribute(resourceType, attributeName)) return false;
@@ -16136,6 +16081,8 @@ async function resolvePseudoParameter(resolver, name, context) {
16136
16081
  case "AWS::Partition": return derivePartitionAndUrlSuffix(effectiveAccountInfoRegion(resolver.resolverRegion)).partition;
16137
16082
  case "AWS::StackName": return context?.stackName ?? "UnknownStack";
16138
16083
  case "AWS::StackId": {
16084
+ const override = context?.stackIdOverride?.();
16085
+ if (override !== void 0) return override;
16139
16086
  const info = await getAccountInfo(resolver.resolverRegion);
16140
16087
  let tail;
16141
16088
  try {
@@ -19932,62 +19879,6 @@ function ccProtectionSite(resourceType, physicalId, entry, region) {
19932
19879
  };
19933
19880
  }
19934
19881
 
19935
- // src/provisioning/recorded-identity.ts
19936
- function recordedIdentityId(resourceType, context) {
19937
- if (!Object.hasOwn(SURVIVOR_IDENTITY_ATTRIBUTES, resourceType)) return void 0;
19938
- const key = SURVIVOR_IDENTITY_ATTRIBUTES[resourceType];
19939
- const value = context?.recordedAttributes?.[key];
19940
- return isUsableIdentityValue(value) ? {
19941
- key,
19942
- value
19943
- } : void 0;
19944
- }
19945
- var RecordedIdentityError = class extends ProvisioningError {
19946
- constructor(message, resourceType, logicalId, physicalId, cause) {
19947
- super(message, resourceType, logicalId, physicalId, cause);
19948
- Object.setPrototypeOf(this, new.target.prototype);
19949
- this.name = "RecordedIdentityError";
19950
- }
19951
- };
19952
- var RecordedIdentityMismatchError = class RecordedIdentityMismatchError extends RecordedIdentityError {
19953
- attribute;
19954
- constructor(params) {
19955
- const { label, resourceType, logicalId, physicalId, attribute, context } = params;
19956
- super(`Cannot delete ${label} ${logicalId}: the ${label} holding the name cdkd recorded is not the one cdkd created (its ${attribute} differs from the recorded one), so cdkd sent no delete and kept the record. Leave that ${label} alone; if the one cdkd created is gone, drop the record with ${stateOrphanRecordRemedy(context, logicalId)}.`, resourceType, logicalId, physicalId);
19957
- Object.setPrototypeOf(this, RecordedIdentityMismatchError.prototype);
19958
- this.attribute = attribute;
19959
- this.name = "RecordedIdentityMismatchError";
19960
- markNonRetryable(this);
19961
- }
19962
- };
19963
- const RECORDED_IDENTITY_REREAD_DELAY_MS = 5e3;
19964
- async function assertRecordedIdentity(params) {
19965
- const recorded = recordedIdentityId(params.resourceType, params.context);
19966
- if (recorded === void 0) return;
19967
- const { label, resourceType, logicalId, physicalId, context } = params;
19968
- let liveId = params.liveId;
19969
- if (typeof liveId === "string" && liveId !== "" && liveId !== recorded.value) {
19970
- await new Promise((resolve) => setTimeout(resolve, RECORDED_IDENTITY_REREAD_DELAY_MS));
19971
- liveId = await params.reread();
19972
- }
19973
- if (typeof liveId !== "string" || liveId === "") throw markNotGone(new RecordedIdentityError(`Cannot delete ${label} ${logicalId}: AWS answered without its ${recorded.key}, so cdkd cannot confirm it is the one cdkd created; nothing was sent and the record is kept. Re-run the operation.`, resourceType, logicalId, physicalId));
19974
- if (liveId === recorded.value) return;
19975
- throw new RecordedIdentityMismatchError({
19976
- label,
19977
- resourceType,
19978
- logicalId,
19979
- physicalId,
19980
- attribute: recorded.key,
19981
- context
19982
- });
19983
- }
19984
- function differingIdentityWarning(logicalId, resourceType, attribute) {
19985
- return safeMsg`${logicalId} (${resourceType}): the update answered with another ${attribute} than the recorded one, so it may have reached another resource under the same name; cdkd keeps the recorded ${attribute}. Check the resource before deleting anything by hand.`;
19986
- }
19987
- function identityWarner(logger, mask, op) {
19988
- return (attribute) => logger.warn(mask(differingIdentityWarning(op.logicalId, op.resourceType, attribute)));
19989
- }
19990
-
19991
19882
  // src/provisioning/cloud-control/delete-guards.ts
19992
19883
  const CC_DELETE_IDENTITY_CHECKED_TYPES = /* @__PURE__ */ new Set(["AWS::S3::Bucket"]);
19993
19884
  function requiresCcDeleteIdentityCheck(resourceType) {
@@ -20007,7 +19898,10 @@ const CC_MODEL_OMITS_IDENTITY = /* @__PURE__ */ new Set([
20007
19898
  "AWS::DynamoDB::Table",
20008
19899
  "AWS::IAM::User",
20009
19900
  "AWS::IAM::Group",
20010
- "AWS::IAM::InstanceProfile"
19901
+ "AWS::IAM::InstanceProfile",
19902
+ "AWS::Logs::LogGroup",
19903
+ "AWS::StepFunctions::StateMachine",
19904
+ "AWS::ECR::Repository"
20011
19905
  ]);
20012
19906
  const CC_DELETE_RECORDED_IDENTITY_ATTRIBUTES = new Map(Object.entries(SURVIVOR_IDENTITY_ATTRIBUTES).filter(([resourceType]) => !CC_MODEL_OMITS_IDENTITY.has(resourceType)));
20013
19907
  function recordedCcDeleteIdentity(resourceType, context) {
@@ -20068,6 +19962,15 @@ async function assertRecordedIdentityBeforeCcDelete(logicalId, resourceType, phy
20068
19962
  }))).ResourceDescription?.Properties;
20069
19963
  } catch (error) {
20070
19964
  if (error?.name === "ResourceNotFoundException") return ABSENT;
19965
+ const denied = deniedIdentityReadRefusal(error, {
19966
+ label: resourceType,
19967
+ permission: `cloudformation:GetResource (with the ${resourceType} read handler's permissions)`,
19968
+ resourceType,
19969
+ logicalId,
19970
+ physicalId,
19971
+ context
19972
+ });
19973
+ if (denied !== void 0) throw denied;
20071
19974
  try {
20072
19975
  this.handleError(error, "READ", resourceType, logicalId, physicalId);
20073
19976
  } catch (wrapped) {
@@ -20349,7 +20252,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
20349
20252
  const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
20350
20253
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
20351
20254
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
20352
- const { ASGProvider } = await import("./asg-provider-Bw8ajB1r.js");
20255
+ const { ASGProvider } = await import("./asg-provider-fEPlW1VD.js");
20353
20256
  const delegateRegion = ambientRegion();
20354
20257
  let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
20355
20258
  if (asgProvider === void 0) {
@@ -20504,7 +20407,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
20504
20407
  const family = SDK_DELETE_FAMILIES.get(resourceType);
20505
20408
  const cached = this.sdkDeleteDelegates.get(family);
20506
20409
  if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
20507
- const provider = family === "rds" ? new (await (import("./rds-provider-BSDygv5j.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-D-jHbjCG.js"))).NeptuneProvider({ region: ccRegion });
20410
+ const provider = family === "rds" ? new (await (import("./rds-provider-6MbfXMoG.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-B6VK2Cbj.js"))).NeptuneProvider({ region: ccRegion });
20508
20411
  this.sdkDeleteDelegates.set(family, {
20509
20412
  region: ccRegion,
20510
20413
  provider
@@ -23080,7 +22983,7 @@ async function publishToSns(topicArn, request) {
23080
22983
  }
23081
22984
  async function invokeLambda(serviceToken, request) {
23082
22985
  if (localCustomResourceRuntimeActive()) {
23083
- const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-CAP2Al4I.js");
22986
+ const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-DWIcvRGQ.js");
23084
22987
  const local = await invokeCustomResourceFunctionLocally({
23085
22988
  lambda: this.lambdaClient,
23086
22989
  s3: this.s3Client
@@ -27653,7 +27556,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
27653
27556
  if (resourceType !== "AWS::RDS::DBInstance") return false;
27654
27557
  if (region === void 0 || region === "") return false;
27655
27558
  const mask = input.mask ?? ((text) => text);
27656
- const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-a4eZWjUH.js").then((n) => n.l);
27559
+ const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-Zx5KMOal.js").then((n) => n.l);
27657
27560
  let reason;
27658
27561
  try {
27659
27562
  const live = await describeDBInstanceInRegion(physicalId, region);
@@ -32746,7 +32649,7 @@ function sortRollbackCreates(createOps, stateResources, logger) {
32746
32649
 
32747
32650
  // src/provisioning/providers/idempotency-token.ts
32748
32651
  const PROCESS_NONCE = randomUUID();
32749
- const inFlight$1 = /* @__PURE__ */ new Map();
32652
+ const inFlight = /* @__PURE__ */ new Map();
32750
32653
  const generations = /* @__PURE__ */ new Map();
32751
32654
  const MAX_TRACKED_GENERATIONS = 1e5;
32752
32655
  const tokenKey = (scope, logicalId, maxLength, charset) => injectiveKey(scope, ambientRegion() ?? "", getCurrentStackName() ?? "", logicalId, maxLength, charset);
@@ -32757,14 +32660,14 @@ const derive = (key, generation, maxLength, charset) => {
32757
32660
  function acquireIdempotencyToken(options) {
32758
32661
  const { scope, logicalId, maxLength = 64, charset = "default" } = options;
32759
32662
  const key = tokenKey(scope, logicalId, maxLength, charset);
32760
- const existing = inFlight$1.get(key);
32663
+ const existing = inFlight.get(key);
32761
32664
  const value = existing ?? derive(key, generations.get(key) ?? 0, maxLength, charset);
32762
- if (existing === void 0) inFlight$1.set(key, value);
32665
+ if (existing === void 0) inFlight.set(key, value);
32763
32666
  return {
32764
32667
  value,
32765
32668
  release: () => {
32766
- if (!inFlight$1.has(key)) return;
32767
- inFlight$1.delete(key);
32669
+ if (!inFlight.has(key)) return;
32670
+ inFlight.delete(key);
32768
32671
  const generation = (generations.get(key) ?? 0) + 1;
32769
32672
  if (!generations.has(key) && generations.size >= MAX_TRACKED_GENERATIONS) {
32770
32673
  const oldest = generations.keys().next();
@@ -33319,8 +33222,8 @@ function stringLeaves(value) {
33319
33222
  if (isObject$2(value)) return Object.values(value).flatMap(stringLeaves);
33320
33223
  return [];
33321
33224
  }
33322
- function warnUnhonoredCreationPolicy(logger, logicalId, resource) {
33323
- if (resource?.CreationPolicy === void 0) return;
33225
+ function warnUnhonoredCreationPolicy(logger, logicalId, resource, waited = false) {
33226
+ if (resource?.CreationPolicy === void 0 || waited) return;
33324
33227
  logger.warn(safeMsg`${logicalId}: CreationPolicy is not honored; cdkd does not wait for cfn-signal success signals.`);
33325
33228
  }
33326
33229
  function updatePolicyReplacementRefusal(logicalId, resource, desired, triggerPaths, stackHasInstanceId) {
@@ -34454,6 +34357,16 @@ async function replayRevert(s) {
34454
34357
  });
34455
34358
  }
34456
34359
 
34360
+ // src/deployment/rollback-executor/early-deleted-old.ts
34361
+ function earlyDeletedOld(op, oldType, unconfirmedFoundGone = false) {
34362
+ if (isInlinePolicyType(oldType)) return void 0;
34363
+ if (op.oldResourceMaySurvive !== void 0) return op.oldResourceMaySurvive === "unconfirmed" && unconfirmedFoundGone ? "during-deploy" : void 0;
34364
+ return op.oldDeletedBeforeCreate === true ? "before-create" : "during-deploy";
34365
+ }
34366
+ function earlyDeleteWhen(kind) {
34367
+ return kind === "before-create" ? "deleted the old resource before creating its replacement" : "deleted the old resource before the deploy succeeded";
34368
+ }
34369
+
34457
34370
  // src/deployment/rollback-executor/replay-reverse-replacement/failures.ts
34458
34371
  function embeddedFailureText(error, logDetail) {
34459
34372
  const failure = describeAwsFailure(error);
@@ -34620,9 +34533,10 @@ async function finishReverseReplacement(s, r, createResult, deletedNewFirst) {
34620
34533
  newProperties: current.properties,
34621
34534
  physicalId: current.physicalId
34622
34535
  }) && !deletedNewFirst && createResult.physicalId === current.physicalId;
34536
+ const keepLiveRecord = adoptedLiveNewResource && oldType === op.resourceType && !isCustomResource(oldType);
34623
34537
  if (adoptedLiveNewResource) {
34624
34538
  const liveShown = refusalPhysicalId(mask(current.physicalId));
34625
- logger.warn(` ⚠ ${shownLogicalId(op.logicalId)} (${refusalResourceType(op.resourceType)}): the re-create returned the LIVE new resource (${liveShown}) instead of re-creating the old one — its Create API is name-idempotent and the new resource still holds the same user-supplied name. Skipping the delete-new step (it would delete that very resource). The old resource's ORIGINAL properties may NOT have been re-applied; state now records the pre-replacement properties, so inspect the drift and ` + safeMsg`run ${proseQuoted(cdkdRemedy("cdkd deploy"))} to reconcile, or rename the resource to make the replacement ` + `reversible.${describedPhysicalIdPointer(liveShown)}\nInspect it with: ${pasteableCommand("cdkd drift", [{
34539
+ logger.warn(` ⚠ ${shownLogicalId(op.logicalId)} (${refusalResourceType(op.resourceType)}): the re-create returned the LIVE new resource (${liveShown}) instead of re-creating the old one — its Create API is name-idempotent and the new resource still holds the same user-supplied name. Skipping the delete-new step (it would delete that very resource). ` + (keepLiveRecord ? "The old resource's ORIGINAL properties were NOT re-applied; state keeps the live resource's record, with the failed deploy's properties, so " + safeMsg`${proseQuoted(cdkdRemedy("cdkd deploy"))} re-applies the template's, or rename the resource to make the replacement ` + `reversible.` : "The old resource's ORIGINAL properties may NOT have been re-applied; state now records the pre-replacement properties, so inspect the drift and " + safeMsg`run ${proseQuoted(cdkdRemedy("cdkd deploy"))} to reconcile, or rename the resource to make the replacement ` + `reversible.`) + `${describedPhysicalIdPointer(liveShown)}\nInspect it with: ${pasteableCommand("cdkd drift", [{
34626
34540
  value: stackName,
34627
34541
  hole: "stack"
34628
34542
  }, {
@@ -34633,9 +34547,20 @@ async function finishReverseReplacement(s, r, createResult, deletedNewFirst) {
34633
34547
  result.warnings++;
34634
34548
  }
34635
34549
  const { observedProperties: _staleObserved, noEchoValueMacs: _staleMacs, ...prevRecord } = prev;
34550
+ if (keepLiveRecord) {
34551
+ const { deletionPolicy: _failedDeletionPolicy, updateReplacePolicy: _failedUpdateReplacePolicy, dependencies: _failedDependencies, metadata: _failedMetadata, constructPath: _failedConstructPath, ...live } = current;
34552
+ stateResources[op.logicalId] = {
34553
+ ...live,
34554
+ ...prev.deletionPolicy !== void 0 && { deletionPolicy: prev.deletionPolicy },
34555
+ ...prev.updateReplacePolicy !== void 0 && { updateReplacePolicy: prev.updateReplacePolicy },
34556
+ ...prev.dependencies !== void 0 && { dependencies: prev.dependencies },
34557
+ ...prev.metadata !== void 0 && { metadata: prev.metadata },
34558
+ ...prev.constructPath !== void 0 && { constructPath: prev.constructPath }
34559
+ };
34560
+ }
34636
34561
  recordNoEchoAttributeValues(createResult, secrets, resolvedPrevProps);
34637
34562
  const restoredProperties = recordedPropertiesAfterReplayCreate(prevRecord, createResult);
34638
- stateResources[op.logicalId] = redactRollbackRecord({
34563
+ if (!keepLiveRecord) stateResources[op.logicalId] = redactRollbackRecord({
34639
34564
  ...withNameGenerationReached(prevRecord, op.logicalId, op.nameGeneration),
34640
34565
  physicalId: createResult.physicalId,
34641
34566
  attributes: createResult.attributes ?? {},
@@ -34701,7 +34626,7 @@ async function finishReverseReplacement(s, r, createResult, deletedNewFirst) {
34701
34626
  reason: mask(survivorReason),
34702
34627
  ...survivorProvisionedBy && { provisionedBy: survivorProvisionedBy }
34703
34628
  },
34704
- ...adoptedLiveNewResource && { reason: mask(`The re-create returned the live new resource instead of re-creating the old one (its Create API is name-idempotent), so the replacement was NOT fully reversed: the old resource's original properties may not have been re-applied. Inspect it with ${proseQuoted(cdkdRemedy("cdkd drift"), "`")} and run ${proseQuoted(cdkdRemedy("cdkd deploy"), "`")} to reconcile.`) }
34629
+ ...adoptedLiveNewResource && { reason: mask("The re-create returned the live new resource instead of re-creating the old one (its Create API is name-idempotent), so the replacement was NOT fully reversed: " + (keepLiveRecord ? `the old resource's original properties were not re-applied. State keeps the live resource's record, so ${proseQuoted(cdkdRemedy("cdkd deploy"), "`")} re-applies the template's.` : `the old resource's original properties may not have been re-applied. Inspect it with ${proseQuoted(cdkdRemedy("cdkd drift"), "`")} and run ${proseQuoted(cdkdRemedy("cdkd deploy"), "`")} to reconcile.`)) }
34705
34630
  });
34706
34631
  return survivorReason === void 0;
34707
34632
  };
@@ -34788,6 +34713,7 @@ async function replayReverseReplacement(s) {
34788
34713
  refuseUndecidableSameIdReversal(s);
34789
34714
  refuseSameIdParentReversal(s);
34790
34715
  }
34716
+ let unconfirmedFoundGone = false;
34791
34717
  if (op.oldResourceMaySurvive !== void 0) {
34792
34718
  let survivor = await probeReplacedSurvivor(s, oldType);
34793
34719
  if (isForeignSurvivor(survivor)) throw foreignSurvivorRefusal(s, oldType, survivor);
@@ -34820,6 +34746,7 @@ async function replayReverseReplacement(s) {
34820
34746
  return;
34821
34747
  }
34822
34748
  if (survivor !== "gone") throw survivorUnprovenRefusal(s, oldType, survivor);
34749
+ unconfirmedFoundGone = op.oldResourceMaySurvive === "unconfirmed";
34823
34750
  logger.info(safeMsg` Rollback: the old resource of ${safe(op.logicalId)} (${mask(String(prev.physicalId))}) is gone — re-creating it`);
34824
34751
  }
34825
34752
  const typeChanged = oldType !== op.resourceType;
@@ -34851,6 +34778,10 @@ async function replayReverseReplacement(s) {
34851
34778
  const reverseDeleteFirst = op.oldDeletedBeforeCreate === true && !rollbackRetainsNewResource(current) && deleteFirstBlocked === void 0;
34852
34779
  logger.info(` Rollback: Reversing replacement of ${safe(op.logicalId)} (${typeChanged ? `${safe(op.resourceType)} -> ${safe(oldType)}` : safe(op.resourceType)}) — ` + (reverseDeleteFirst ? `deleting the new resource and re-creating the old one` : `re-creating the old resource and deleting the new one`));
34853
34780
  if (STATEFUL_TYPES.has(oldType)) logger.warn(` ⚠ ${safe(op.logicalId)} (${safe(oldType)}) is a stateful type — the old physical resource's data was destroyed by the replacement and is NOT recovered by this rollback; the re-created resource starts empty.`);
34781
+ else {
34782
+ const early = earlyDeletedOld(op, oldType, unconfirmedFoundGone);
34783
+ if (early !== void 0) logger.warn(mask(` ⚠ ${safe(op.logicalId)} (${safe(oldType)}): the deploy ${earlyDeleteWhen(early)}, so this rollback re-creates it from its recorded properties — anything AWS held for it that the template does not declare (such as queued messages, or subscriptions made outside the stack) does not come back.`));
34784
+ }
34854
34785
  const { provider: createProvider, provisionedBy: createProvisionedBy } = ctx.providerRegistry.getProviderFor({
34855
34786
  resourceType: oldType,
34856
34787
  provisionedBy: prev.provisionedBy
@@ -37225,6 +37156,7 @@ function buildResolverContext(deps, base, stackName) {
37225
37156
  stateBackend: deps.stateBackend,
37226
37157
  stackName,
37227
37158
  stackIdTail: () => deps.runStackIdTail()?.(),
37159
+ stackIdOverride: () => deps.signalReceiverStackId(),
37228
37160
  ...deps.exportIndexStore && { exportIndex: deps.exportIndexStore },
37229
37161
  recordedImports: deps.recordedImports(),
37230
37162
  recordedOutputReads: deps.recordedOutputReads(),
@@ -40382,43 +40314,6 @@ async function orphanUntakenResumes(deps, stackName, finalResources) {
40382
40314
  }
40383
40315
  }
40384
40316
 
40385
- // src/provisioning/name-lookup.ts
40386
- const inFlight = /* @__PURE__ */ new Map();
40387
- const waiting = /* @__PURE__ */ new Map();
40388
- async function withApiLimit(api, max, fn) {
40389
- if ((inFlight.get(api) ?? 0) >= max) await new Promise((resolve) => {
40390
- const queue = waiting.get(api) ?? [];
40391
- queue.push(resolve);
40392
- waiting.set(api, queue);
40393
- });
40394
- else inFlight.set(api, (inFlight.get(api) ?? 0) + 1);
40395
- try {
40396
- return await fn();
40397
- } finally {
40398
- const next = waiting.get(api)?.shift();
40399
- if (next) next();
40400
- else inFlight.set(api, (inFlight.get(api) ?? 1) - 1);
40401
- }
40402
- }
40403
- function chunks(items, size) {
40404
- const out = [];
40405
- for (let i = 0; i < items.length; i += size) out.push(items.slice(i, i + size));
40406
- return out;
40407
- }
40408
- async function lookupEachName(names, api, concurrency, lookupOne) {
40409
- const found = /* @__PURE__ */ new Map();
40410
- await Promise.all(names.map((name) => withApiLimit(api, concurrency, async () => {
40411
- const holder = await lookupOne(name);
40412
- if (holder !== void 0) found.set(name, holder);
40413
- })));
40414
- return found;
40415
- }
40416
- function isAccessDeniedError(error) {
40417
- const name = error?.name;
40418
- const status = error?.$metadata?.httpStatusCode;
40419
- return name === "AccessDenied" || name === "AccessDeniedException" || name === "AuthorizationError" || name === "UnauthorizedOperation" || status === 403;
40420
- }
40421
-
40422
40317
  // src/deployment/generated-name-guard/types.ts
40423
40318
  const DEFAULT_TIMING = {
40424
40319
  now: () => Date.now(),
@@ -41676,7 +41571,8 @@ function resolverContextDeps() {
41676
41571
  recordedImports: () => this.recordedImports,
41677
41572
  recordedOutputReads: () => this.recordedOutputReads,
41678
41573
  runProducerRegionEvidence: () => this.runProducerRegionEvidence,
41679
- runStackIdTail: () => this.runStackIdTail
41574
+ runStackIdTail: () => this.runStackIdTail,
41575
+ signalReceiverStackId: () => this.signalReceiverStackId
41680
41576
  };
41681
41577
  }
41682
41578
  function deleteDeps() {
@@ -41720,6 +41616,745 @@ function rollbackDeps() {
41720
41616
  };
41721
41617
  }
41722
41618
 
41619
+ // src/deployment/deploy-engine/signal-receiver/bootstrap-calls.ts
41620
+ function bootstrapCallsByResource(resources) {
41621
+ const out = /* @__PURE__ */ new Map();
41622
+ for (const script of userDataScriptsOf(resources)) for (const command of commandsOf(script)) {
41623
+ const call = parseBootstrapCall(command);
41624
+ if (call === void 0) continue;
41625
+ const entry = out.get(call.resource) ?? {
41626
+ signedSignal: false,
41627
+ signedInit: false,
41628
+ unsigned: false
41629
+ };
41630
+ if (!call.signed) entry.unsigned = true;
41631
+ else if (call.kind === "signal") entry.signedSignal = true;
41632
+ else entry.signedInit = true;
41633
+ out.set(call.resource, entry);
41634
+ }
41635
+ return out;
41636
+ }
41637
+ const TOKEN_PLACEHOLDER = "__CDKD_TOKEN__";
41638
+ const CREDENTIAL_FLAGS = /* @__PURE__ */ new Set([
41639
+ "--role",
41640
+ "--access-key",
41641
+ "--credential-file",
41642
+ "-f"
41643
+ ]);
41644
+ function userDataScriptsOf(resources) {
41645
+ const out = [];
41646
+ const walk = (value, depth) => {
41647
+ if (depth > 12 || value === null || typeof value !== "object") return;
41648
+ if (Array.isArray(value)) {
41649
+ for (const v of value) walk(v, depth + 1);
41650
+ return;
41651
+ }
41652
+ for (const [key, inner] of Object.entries(value)) if (key === "UserData") out.push(renderScript(inner, true));
41653
+ else walk(inner, depth + 1);
41654
+ };
41655
+ for (const resource of Object.values(resources)) if (resource !== null && typeof resource === "object") walk(resource.Properties, 0);
41656
+ return out;
41657
+ }
41658
+ function renderScript(value, topLevel = false) {
41659
+ if (typeof value === "string") {
41660
+ if (topLevel && /^[A-Za-z0-9+/=\s]+$/.test(value) && value.length >= 8) {
41661
+ const decoded = Buffer.from(value, "base64").toString("utf8");
41662
+ if (/^[\x09\x0a\x0d\x20-\x7e]*$/.test(decoded)) return decoded;
41663
+ }
41664
+ return value;
41665
+ }
41666
+ if (typeof value === "number" || typeof value === "boolean") return String(value);
41667
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return TOKEN_PLACEHOLDER;
41668
+ const entries = Object.entries(value);
41669
+ if (entries.length !== 1) return TOKEN_PLACEHOLDER;
41670
+ const [fn, arg] = entries[0];
41671
+ if (fn === "Fn::Base64") return renderScript(arg);
41672
+ if (fn === "Fn::Join" && Array.isArray(arg) && typeof arg[0] === "string" && Array.isArray(arg[1])) return arg[1].map((part) => renderScript(part)).join(arg[0]);
41673
+ if (fn === "Fn::Sub") {
41674
+ const body = typeof arg === "string" ? arg : Array.isArray(arg) ? arg[0] : void 0;
41675
+ if (typeof body === "string") return body.replace(/\$\{[^!][^}]*\}/g, TOKEN_PLACEHOLDER);
41676
+ }
41677
+ return TOKEN_PLACEHOLDER;
41678
+ }
41679
+ function commandsOf(script) {
41680
+ return script.replace(/\\\r?\n/g, " ").split(/\r?\n|;|&&|\|\||\|/).map((c) => c.trim()).filter((c) => c.length > 0);
41681
+ }
41682
+ function parseBootstrapCall(command) {
41683
+ const tokens = command.split(/\s+/).map((t) => t.replace(/^[\[("',]+|[\]),"']+$/g, "")).filter((t) => t.length > 0);
41684
+ const at = tokens.findIndex((t) => /(?:^|[/\\])cfn-(?:init|signal)(?:\.exe)?$/i.test(t));
41685
+ if (at !== -1) {
41686
+ const kind = /init(?:\.exe)?$/i.test(tokens[at]) ? "init" : "signal";
41687
+ const args = tokens.slice(at + 1);
41688
+ const resource = flagValue(args, ["--resource", "-r"]);
41689
+ if (resource === void 0) return void 0;
41690
+ return {
41691
+ kind,
41692
+ resource,
41693
+ signed: args.some((t) => CREDENTIAL_FLAGS.has(t.split("=")[0]))
41694
+ };
41695
+ }
41696
+ const aws = tokens.findIndex((t, i) => /(?:^|[/\\])aws(?:\.exe)?$/i.test(t) && tokens[i + 1] === "cloudformation" && tokens[i + 2] === "signal-resource");
41697
+ if (aws !== -1) {
41698
+ const resource = flagValue(tokens.slice(aws + 3), ["--logical-resource-id"]);
41699
+ return resource === void 0 ? void 0 : {
41700
+ kind: "signal",
41701
+ resource,
41702
+ signed: true
41703
+ };
41704
+ }
41705
+ }
41706
+ function flagValue(args, names) {
41707
+ for (let i = 0; i < args.length; i++) {
41708
+ const [flag, inline] = args[i].split("=", 2);
41709
+ if (!names.includes(flag)) continue;
41710
+ const value = inline ?? args[i + 1];
41711
+ return value === void 0 || value.includes(TOKEN_PLACEHOLDER) ? void 0 : value;
41712
+ }
41713
+ }
41714
+
41715
+ // src/deployment/deploy-engine/signal-receiver.ts
41716
+ const RECEIVER_TAG_KEY = "cdkd:signal-receiver";
41717
+ const RECEIVER_DESCRIPTION = "cdkd signal receiver: answers cfn-signal / cfn-init for the cdkd stack of the same name (do not edit)";
41718
+ const ANCHOR_ID = "CdkdSignalReceiverAnchor";
41719
+ const MAX_SIGNAL_TIMEOUT_MS = 432e5;
41720
+ const DEFAULT_SIGNAL_TIMEOUT_MS = 3e5;
41721
+ const POLL_INTERVAL_MS = 5e3;
41722
+ const MAX_TEMPLATE_BODY_BYTES = 51200;
41723
+ const SETTLE_WAIT_MS = 6e5;
41724
+ function isoDurationMs(value) {
41725
+ if (typeof value !== "string") return void 0;
41726
+ const match = /^PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?$/.exec(value.trim());
41727
+ if (match === null || (match[1] ?? match[2] ?? match[3]) === void 0) return void 0;
41728
+ return (Number(match[1] ?? 0) * 3600 + Number(match[2] ?? 0) * 60 + Number(match[3] ?? 0)) * 1e3;
41729
+ }
41730
+ function signalCandidateOf(resource) {
41731
+ if (resource === null || typeof resource !== "object") return void 0;
41732
+ const r = resource;
41733
+ const policy = r.CreationPolicy !== null && typeof r.CreationPolicy === "object" ? r.CreationPolicy["ResourceSignal"] : void 0;
41734
+ const hasInitMetadata = r.Metadata !== null && typeof r.Metadata === "object" && Object.hasOwn(r.Metadata, "AWS::CloudFormation::Init");
41735
+ const hasPolicy = policy !== void 0 && policy !== null && typeof policy === "object";
41736
+ const rollingPauseMs = rollingSignalPauseMs(resource);
41737
+ const rolling = rollingPauseMs !== void 0 && { rollingPauseMs };
41738
+ if (!hasPolicy && !hasInitMetadata && !rolling) return void 0;
41739
+ if (!hasPolicy) return {
41740
+ count: 0,
41741
+ timeoutMs: 0,
41742
+ hasInitMetadata,
41743
+ ...rolling
41744
+ };
41745
+ const p = policy;
41746
+ const rawCount = p["Count"];
41747
+ return {
41748
+ count: rawCount === void 0 ? 1 : typeof rawCount === "number" && Number.isInteger(rawCount) && rawCount > 0 ? rawCount : typeof rawCount === "string" && /^\d+$/.test(rawCount.trim()) && Number(rawCount) > 0 ? Number(rawCount.trim()) : 1,
41749
+ timeoutMs: Math.min(isoDurationMs(p["Timeout"]) ?? DEFAULT_SIGNAL_TIMEOUT_MS, MAX_SIGNAL_TIMEOUT_MS),
41750
+ hasInitMetadata,
41751
+ ...rolling
41752
+ };
41753
+ }
41754
+ function rollingSignalPauseMs(resource) {
41755
+ const policy = resource.UpdatePolicy;
41756
+ if (policy === null || typeof policy !== "object") return void 0;
41757
+ const replacing = policy["AutoScalingReplacingUpdate"];
41758
+ const willReplace = replacing !== null && typeof replacing === "object" ? replacing["WillReplace"] : void 0;
41759
+ if (willReplace === true || willReplace === "true") return void 0;
41760
+ const rolling = policy["AutoScalingRollingUpdate"];
41761
+ if (rolling === null || typeof rolling !== "object") return void 0;
41762
+ const wait = rolling["WaitOnResourceSignals"];
41763
+ if (wait !== true && wait !== "true") return void 0;
41764
+ const pause = isoDurationMs(rolling["PauseTime"]);
41765
+ return Math.min(pause ?? DEFAULT_SIGNAL_TIMEOUT_MS, MAX_SIGNAL_TIMEOUT_MS);
41766
+ }
41767
+ function signalPlanOf(template) {
41768
+ const candidates = /* @__PURE__ */ new Map();
41769
+ const unsigned = [];
41770
+ const resources = template.Resources ?? {};
41771
+ const calls = bootstrapCallsByResource(resources);
41772
+ for (const [id, resource] of Object.entries(resources)) {
41773
+ const candidate = signalCandidateOf(resource);
41774
+ if (candidate === void 0) continue;
41775
+ const call = calls.get(id);
41776
+ if (call?.unsigned === true) {
41777
+ unsigned.push(id);
41778
+ continue;
41779
+ }
41780
+ if (candidate.count > 0 || candidate.rollingPauseMs !== void 0 ? call?.signedSignal === true : call?.signedInit === true) candidates.set(id, candidate);
41781
+ }
41782
+ return {
41783
+ candidates,
41784
+ unsigned
41785
+ };
41786
+ }
41787
+ function canReceiveFor(stackName) {
41788
+ return /^[A-Za-z][A-Za-z0-9-]{0,127}$/.test(stackName);
41789
+ }
41790
+ function isReceiver(stack) {
41791
+ return stack.Tags?.some((t) => t.Key === "cdkd:signal-receiver" && t.Value === "true") === true && stack.Description === "cdkd signal receiver: answers cfn-signal / cfn-init for the cdkd stack of the same name (do not edit)";
41792
+ }
41793
+ function receiverTemplateBody(resources) {
41794
+ return JSON.stringify({
41795
+ Description: RECEIVER_DESCRIPTION,
41796
+ Resources: resources
41797
+ });
41798
+ }
41799
+ function waiterResource(count, metadata) {
41800
+ return {
41801
+ Type: "AWS::CloudFormation::WaitCondition",
41802
+ CreationPolicy: { ResourceSignal: {
41803
+ Count: Math.max(count, 1),
41804
+ Timeout: "PT12H"
41805
+ } },
41806
+ ...metadata !== void 0 && { Metadata: metadata }
41807
+ };
41808
+ }
41809
+ function holderResource(metadata) {
41810
+ return {
41811
+ Type: "AWS::CloudFormation::WaitConditionHandle",
41812
+ ...metadata !== void 0 && { Metadata: metadata }
41813
+ };
41814
+ }
41815
+ const anchorResource = () => ({ Type: "AWS::CloudFormation::WaitConditionHandle" });
41816
+ function notFound(error) {
41817
+ return /does not exist/i.test(error instanceof Error ? error.message : "");
41818
+ }
41819
+ function noUpdates(error) {
41820
+ return /No updates are to be performed/i.test(error instanceof Error ? error.message : "");
41821
+ }
41822
+ const SETTLED = /(_COMPLETE|_FAILED)$/;
41823
+ var SignalReceiver = class {
41824
+ stackId;
41825
+ armed = /* @__PURE__ */ new Set();
41826
+ prior;
41827
+ metadataById = /* @__PURE__ */ new Map();
41828
+ rollingChain = Promise.resolve();
41829
+ armedCounts = /* @__PURE__ */ new Map();
41830
+ finished = /* @__PURE__ */ new Set();
41831
+ armedIds = [];
41832
+ armedUpdate = false;
41833
+ sleep;
41834
+ now;
41835
+ stackName;
41836
+ candidates;
41837
+ client;
41838
+ logger;
41839
+ constructor(stackName, candidates, client, logger, clock = {}) {
41840
+ this.stackName = stackName;
41841
+ this.candidates = candidates;
41842
+ this.client = client;
41843
+ this.logger = logger;
41844
+ this.sleep = clock.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
41845
+ this.now = clock.now ?? Date.now;
41846
+ }
41847
+ get receiverStackId() {
41848
+ return this.stackId;
41849
+ }
41850
+ candidate(logicalId) {
41851
+ return this.candidates.get(logicalId);
41852
+ }
41853
+ isArmed(logicalId) {
41854
+ return this.armed.has(logicalId);
41855
+ }
41856
+ armRolling(logicalId, count) {
41857
+ const run = async () => {
41858
+ if (this.stackId === void 0 || count <= 0) return false;
41859
+ try {
41860
+ const client = this.client();
41861
+ let status = (await this.describe(client, this.stackId))?.StackStatus;
41862
+ if (status?.endsWith("_IN_PROGRESS") === true && this.armedIds.every((id) => this.finished.has(id))) status = await this.awaitSettled(client);
41863
+ if (status === void 0 || status.endsWith("_IN_PROGRESS")) {
41864
+ this.logger.warn(safeMsg`${logicalId}: the CloudFormation signal receiver is busy with another wait of this deploy (${status ?? "gone"}), so this rolling update waits for no signal`);
41865
+ return false;
41866
+ }
41867
+ const current = await this.currentResources(client);
41868
+ this.prior ??= current;
41869
+ const metadata = current[logicalId]?.["Metadata"] ?? this.metadataById.get(logicalId);
41870
+ if (current[logicalId] !== void 0) {
41871
+ const without = { ...current };
41872
+ delete without[logicalId];
41873
+ await this.update(client, {
41874
+ [ANCHOR_ID]: anchorResource(),
41875
+ ...without
41876
+ });
41877
+ if (await this.awaitSettled(client) !== "UPDATE_COMPLETE") throw new Error("the receiver did not finish removing the earlier waiter");
41878
+ }
41879
+ await this.update(client, {
41880
+ [ANCHOR_ID]: anchorResource(),
41881
+ ...current,
41882
+ [logicalId]: waiterResource(count, metadata)
41883
+ });
41884
+ if (metadata !== void 0) this.metadataById.set(logicalId, metadata);
41885
+ await this.awaitWaiting(client, /* @__PURE__ */ new Set([logicalId]));
41886
+ this.armed.add(logicalId);
41887
+ this.armedIds.push(logicalId);
41888
+ this.armedCounts.set(logicalId, count);
41889
+ this.armedUpdate = true;
41890
+ this.logger.info(safeMsg`Signal receiver ${this.stackName}: the rolling update of ${logicalId} waits for ${count} signal(s)`);
41891
+ return true;
41892
+ } catch (error) {
41893
+ this.fallbackWarn(error);
41894
+ return false;
41895
+ }
41896
+ };
41897
+ const next = this.rollingChain.then(run, run);
41898
+ this.rollingChain = next;
41899
+ return next;
41900
+ }
41901
+ async failureOf(logicalId, since) {
41902
+ if (!this.armed.has(logicalId) || this.stackId === void 0) return void 0;
41903
+ const client = this.client();
41904
+ let status;
41905
+ try {
41906
+ status = (await client.send(new DescribeStackResourceCommand({
41907
+ StackName: this.stackId,
41908
+ LogicalResourceId: logicalId
41909
+ }))).StackResourceDetail?.ResourceStatus;
41910
+ } catch (error) {
41911
+ if (!notFound(error)) return void 0;
41912
+ status = "GONE";
41913
+ }
41914
+ if (status !== "CREATE_FAILED" && status !== "GONE" && status?.startsWith("DELETE") !== true) return;
41915
+ const reason = await this.failureReasonOf(client, logicalId, since) ?? `its signal wait ended (${status})`;
41916
+ await this.restoreAfterFailure(logicalId);
41917
+ return reason;
41918
+ }
41919
+ async restoreAfterFailure(logicalId) {
41920
+ if (this.stackId === void 0) return;
41921
+ try {
41922
+ const client = this.client();
41923
+ if ((await this.describe(client, this.stackId))?.StackStatus === "UPDATE_IN_PROGRESS") await client.send(new CancelUpdateStackCommand({ StackName: this.stackId }));
41924
+ await this.restoreServed(client);
41925
+ } catch (error) {
41926
+ this.logger.warn(safeMsg`${logicalId}: could not restore its cfn-init metadata in the CloudFormation signal receiver (${describeAwsFailure(error).summary}); instances launched before the next deploy may not find it`);
41927
+ }
41928
+ }
41929
+ disarm(logicalId) {
41930
+ this.armed.delete(logicalId);
41931
+ }
41932
+ async ensure(recordedStackId) {
41933
+ try {
41934
+ const client = this.client();
41935
+ let stack = recordedStackId !== void 0 ? await this.describe(client, recordedStackId) : void 0;
41936
+ if (stack !== void 0 && !isReceiver(stack)) stack = void 0;
41937
+ if (stack === void 0) {
41938
+ const byName = await this.describe(client, this.stackName);
41939
+ if (byName !== void 0 && !isReceiver(byName)) {
41940
+ this.logger.warn(safeMsg`A CloudFormation stack named ${this.stackName} exists and is not cdkd's signal receiver, so it is left alone; resources declaring a CreationPolicy or cfn-init metadata are created without waiting for signals.`);
41941
+ return;
41942
+ }
41943
+ stack = byName;
41944
+ }
41945
+ if (stack === void 0) {
41946
+ const out = await client.send(new CreateStackCommand({
41947
+ StackName: this.stackName,
41948
+ TemplateBody: receiverTemplateBody({ [ANCHOR_ID]: anchorResource() }),
41949
+ Tags: [{
41950
+ Key: RECEIVER_TAG_KEY,
41951
+ Value: "true"
41952
+ }]
41953
+ }));
41954
+ this.stackId = out.StackId;
41955
+ this.logger.info(safeMsg`Created the CloudFormation signal receiver stack ${this.stackName} (tag cdkd:signal-receiver=true): this stack declares CreationPolicy signals or cfn-init metadata, which only a CloudFormation stack can answer. It holds no resources of yours, AWS::StackId resolves to it, and cdkd destroy deletes it.`);
41956
+ } else this.stackId = stack.StackId;
41957
+ if (this.stackId === void 0) return void 0;
41958
+ await this.recover(client, stack?.StackStatus);
41959
+ if (await this.awaitSettled(client) === void 0) throw new Error("the receiver stack did not settle in a usable state");
41960
+ return this.stackId;
41961
+ } catch (error) {
41962
+ this.fallbackWarn(error);
41963
+ this.stackId = void 0;
41964
+ return;
41965
+ }
41966
+ }
41967
+ async arm(armIds, resolveMetadata, counts = /* @__PURE__ */ new Map()) {
41968
+ if (this.stackId === void 0) return /* @__PURE__ */ new Set();
41969
+ try {
41970
+ const client = this.client();
41971
+ const current = await this.currentResources(client);
41972
+ this.prior ??= current;
41973
+ const desired = { [ANCHOR_ID]: anchorResource() };
41974
+ const toArm = /* @__PURE__ */ new Set();
41975
+ for (const [id, candidate] of this.candidates) {
41976
+ let metadata;
41977
+ try {
41978
+ metadata = candidate.hasInitMetadata ? await resolveMetadata(id) : void 0;
41979
+ } catch {
41980
+ this.logger.warn(safeMsg`${id}: its Metadata cannot be sent to the CloudFormation signal receiver (it reads a NoEcho value or a resource not created yet), so cfn-init and cfn-signal for it are not served this deploy`);
41981
+ if (current[id] !== void 0) desired[id] = current[id];
41982
+ continue;
41983
+ }
41984
+ if (metadata !== void 0) this.metadataById.set(id, metadata);
41985
+ const count = counts.get(id) ?? candidate.count;
41986
+ if (armIds.has(id) && count > 0) {
41987
+ desired[id] = waiterResource(count, metadata);
41988
+ toArm.add(id);
41989
+ } else if (candidate.hasInitMetadata) {
41990
+ const existing = current[id];
41991
+ desired[id] = existing !== void 0 && existing["Type"] === "AWS::CloudFormation::WaitCondition" ? {
41992
+ ...existing,
41993
+ ...metadata !== void 0 && { Metadata: metadata }
41994
+ } : holderResource(metadata);
41995
+ }
41996
+ }
41997
+ const rearm = [...toArm].filter((id) => current[id] !== void 0);
41998
+ if (rearm.length > 0) {
41999
+ const without = Object.fromEntries(Object.entries(desired).filter(([id]) => !rearm.includes(id)));
42000
+ await this.update(client, without);
42001
+ if (await this.awaitSettled(client) !== "UPDATE_COMPLETE") throw new Error("the receiver did not finish removing its earlier waiters");
42002
+ }
42003
+ if (await this.update(client, desired)) this.armedUpdate = toArm.size > 0;
42004
+ if (toArm.size > 0) await this.awaitWaiting(client, toArm);
42005
+ this.armed = toArm;
42006
+ this.armedIds = [...toArm];
42007
+ this.armedCounts = new Map([...counts].filter(([id]) => toArm.has(id)));
42008
+ if (toArm.size > 0) this.logger.info(safeMsg`Signal receiver ${this.stackName}: waiting for CreationPolicy signals from ${[...toArm].join(", ")}`);
42009
+ return toArm;
42010
+ } catch (error) {
42011
+ this.fallbackWarn(error);
42012
+ this.armed = /* @__PURE__ */ new Set();
42013
+ return /* @__PURE__ */ new Set();
42014
+ }
42015
+ }
42016
+ async awaitSignals(logicalId, startedAt, stop, deadlineOverride) {
42017
+ const candidate = this.candidates.get(logicalId);
42018
+ if (!this.armed.has(logicalId) || candidate === void 0 || this.stackId === void 0) return;
42019
+ const client = this.client();
42020
+ const deadline = deadlineOverride ?? startedAt + candidate.timeoutMs;
42021
+ const count = this.armedCounts.get(logicalId) ?? candidate.count;
42022
+ const timeoutMs = deadlineOverride !== void 0 ? deadline - this.now() : deadline - startedAt;
42023
+ this.logger.info(safeMsg`${logicalId}: waiting for ${count} CreationPolicy signal(s) (timeout ${Math.round(timeoutMs / 1e3)}s)`);
42024
+ for (;;) {
42025
+ if (stop()) throw new Error(safeMsg`${logicalId}: the CreationPolicy signal wait stopped with the deploy`);
42026
+ let status;
42027
+ let reason;
42028
+ try {
42029
+ const out = await client.send(new DescribeStackResourceCommand({
42030
+ StackName: this.stackId,
42031
+ LogicalResourceId: logicalId
42032
+ }));
42033
+ status = out.StackResourceDetail?.ResourceStatus;
42034
+ reason = out.StackResourceDetail?.ResourceStatusReason;
42035
+ } catch (error) {
42036
+ if (!notFound(error)) throw error;
42037
+ status = "GONE";
42038
+ }
42039
+ if (status === "CREATE_COMPLETE") {
42040
+ this.finished.add(logicalId);
42041
+ this.logger.info(safeMsg`${logicalId}: received its CreationPolicy signal(s)`);
42042
+ return;
42043
+ }
42044
+ if (status === "CREATE_FAILED" || status === "GONE" || status?.startsWith("DELETE") === true) {
42045
+ reason ??= await this.failureReasonOf(client, logicalId, startedAt);
42046
+ throw new Error(reason !== void 0 && /FAILURE signal/i.test(reason) ? safeMsg`${logicalId} received a FAILURE signal (CreationPolicy): ${reason}` : safeMsg`${logicalId} did not receive its CreationPolicy signal(s): its wait in the signal receiver ended (${reason ?? status ?? "unknown"})`);
42047
+ }
42048
+ if (this.now() >= deadline) throw new Error(safeMsg`${logicalId} did not receive ${count} CreationPolicy signal(s) within ${Math.round(timeoutMs / 1e3)}s`);
42049
+ await this.sleep(Math.min(POLL_INTERVAL_MS, Math.max(deadline - this.now(), 0)));
42050
+ }
42051
+ }
42052
+ async settle() {
42053
+ if (!this.armedUpdate || this.stackId === void 0) return;
42054
+ if (this.armedIds.every((id) => this.finished.has(id))) return;
42055
+ try {
42056
+ const client = this.client();
42057
+ if ((await this.describe(client, this.stackId))?.StackStatus === "UPDATE_IN_PROGRESS") {
42058
+ await client.send(new CancelUpdateStackCommand({ StackName: this.stackId }));
42059
+ this.logger.debug(safeMsg`Cancelled the signal receiver's unfinished update`);
42060
+ }
42061
+ await this.restoreServed(client);
42062
+ } catch (error) {
42063
+ this.logger.debug(safeMsg`Could not settle the signal receiver: ${describeAwsFailure(error).summary}`);
42064
+ }
42065
+ }
42066
+ async restoreServed(client) {
42067
+ if (await this.awaitSettled(client) === void 0) return;
42068
+ const current = await this.currentResources(client);
42069
+ const missing = [.../* @__PURE__ */ new Set([...Object.keys(this.prior ?? {}), ...this.metadataById.keys()])].filter((id) => current[id] === void 0);
42070
+ if (missing.length === 0) return;
42071
+ const restored = {
42072
+ [ANCHOR_ID]: anchorResource(),
42073
+ ...current
42074
+ };
42075
+ for (const id of missing) restored[id] = holderResource(this.prior?.[id]?.["Metadata"] ?? this.metadataById.get(id));
42076
+ await this.update(client, restored);
42077
+ await this.awaitSettled(client);
42078
+ }
42079
+ async recover(client, status) {
42080
+ if (status === "UPDATE_IN_PROGRESS") {
42081
+ this.logger.info(safeMsg`Cancelling the signal receiver update a previous deploy left waiting`);
42082
+ await client.send(new CancelUpdateStackCommand({ StackName: this.stackId }));
42083
+ } else if (status === "UPDATE_ROLLBACK_FAILED") await client.send(new ContinueUpdateRollbackCommand({ StackName: this.stackId }));
42084
+ else if (status === "ROLLBACK_COMPLETE" || status === "CREATE_FAILED") {
42085
+ await client.send(new DeleteStackCommand({ StackName: this.stackId }));
42086
+ const deadline = this.now() + SETTLE_WAIT_MS;
42087
+ while (await this.describe(client, this.stackId) !== void 0) {
42088
+ if (this.now() >= deadline) throw new Error("the failed receiver stack was not deleted");
42089
+ await this.sleep(POLL_INTERVAL_MS);
42090
+ }
42091
+ const out = await client.send(new CreateStackCommand({
42092
+ StackName: this.stackName,
42093
+ TemplateBody: receiverTemplateBody({ [ANCHOR_ID]: anchorResource() }),
42094
+ Tags: [{
42095
+ Key: RECEIVER_TAG_KEY,
42096
+ Value: "true"
42097
+ }]
42098
+ }));
42099
+ this.stackId = out.StackId;
42100
+ }
42101
+ }
42102
+ fallbackWarn(error) {
42103
+ const failure = describeAwsFailure(error);
42104
+ this.logger.warn(safeMsg`The CloudFormation signal receiver ${this.stackName} is unavailable (${failure.summary}); resources declaring a CreationPolicy or cfn-init metadata are created without waiting for signals.`);
42105
+ this.logger.debug(safeMsg`Signal receiver failure detail: ${failure.detail}`);
42106
+ }
42107
+ async describe(client, name) {
42108
+ try {
42109
+ const stack = (await client.send(new DescribeStacksCommand({ StackName: name }))).Stacks?.[0];
42110
+ if (stack === void 0 || stack.StackStatus === "DELETE_COMPLETE") return void 0;
42111
+ return stack;
42112
+ } catch (error) {
42113
+ if (notFound(error)) return void 0;
42114
+ throw error;
42115
+ }
42116
+ }
42117
+ async awaitSettled(client) {
42118
+ const deadline = this.now() + SETTLE_WAIT_MS;
42119
+ while (this.now() < deadline) {
42120
+ const status = (await this.describe(client, this.stackId))?.StackStatus;
42121
+ if (status === void 0) return void 0;
42122
+ if (SETTLED.test(status) && !status.endsWith("ROLLBACK_FAILED")) {
42123
+ if (status === "CREATE_FAILED" || status === "ROLLBACK_COMPLETE") return void 0;
42124
+ return status;
42125
+ }
42126
+ if (status.endsWith("ROLLBACK_FAILED")) return void 0;
42127
+ await this.sleep(POLL_INTERVAL_MS);
42128
+ }
42129
+ }
42130
+ async currentResources(client) {
42131
+ const body = (await client.send(new GetTemplateCommand({ StackName: this.stackId }))).TemplateBody;
42132
+ if (typeof body !== "string") return {};
42133
+ const resources = { ...JSON.parse(body).Resources ?? {} };
42134
+ delete resources[ANCHOR_ID];
42135
+ return resources;
42136
+ }
42137
+ async update(client, resources) {
42138
+ const body = receiverTemplateBody(resources);
42139
+ if (body.length > MAX_TEMPLATE_BODY_BYTES) throw new Error(`the receiver template (${body.length} bytes of cfn-init metadata) exceeds the ${MAX_TEMPLATE_BODY_BYTES}-byte inline TemplateBody limit`);
42140
+ try {
42141
+ await client.send(new UpdateStackCommand({
42142
+ StackName: this.stackId,
42143
+ TemplateBody: body,
42144
+ Tags: [{
42145
+ Key: RECEIVER_TAG_KEY,
42146
+ Value: "true"
42147
+ }]
42148
+ }));
42149
+ return true;
42150
+ } catch (error) {
42151
+ if (noUpdates(error)) return false;
42152
+ throw error;
42153
+ }
42154
+ }
42155
+ async failureReasonOf(client, logicalId, since) {
42156
+ try {
42157
+ return (await client.send(new DescribeStackEventsCommand({ StackName: this.stackId }))).StackEvents?.find((e) => e.LogicalResourceId === logicalId && e.ResourceStatus === "CREATE_FAILED" && (e.Timestamp?.getTime() ?? 0) >= since)?.ResourceStatusReason;
42158
+ } catch {
42159
+ return;
42160
+ }
42161
+ }
42162
+ async awaitWaiting(client, ids) {
42163
+ const deadline = this.now() + SETTLE_WAIT_MS;
42164
+ const pending = new Set(ids);
42165
+ while (pending.size > 0) {
42166
+ for (const id of [...pending]) try {
42167
+ if ((await client.send(new DescribeStackResourceCommand({
42168
+ StackName: this.stackId,
42169
+ LogicalResourceId: id
42170
+ }))).StackResourceDetail?.ResourceStatus !== void 0) pending.delete(id);
42171
+ } catch (error) {
42172
+ if (!notFound(error)) throw error;
42173
+ }
42174
+ if (pending.size === 0) return;
42175
+ if (this.now() >= deadline) throw new Error("the receiver waiters did not appear");
42176
+ await this.sleep(POLL_INTERVAL_MS / 2);
42177
+ }
42178
+ }
42179
+ };
42180
+ async function deleteSignalReceiver(client, stackId, logger) {
42181
+ try {
42182
+ const stack = (await client.send(new DescribeStacksCommand({ StackName: stackId }))).Stacks?.[0];
42183
+ if (stack === void 0 || stack.StackStatus === "DELETE_COMPLETE") return;
42184
+ if (!isReceiver(stack)) return;
42185
+ if (stack.StackStatus === "UPDATE_IN_PROGRESS") {
42186
+ await client.send(new CancelUpdateStackCommand({ StackName: stackId }));
42187
+ const deadline = Date.now() + SETTLE_WAIT_MS;
42188
+ for (;;) {
42189
+ const status = (await client.send(new DescribeStacksCommand({ StackName: stackId }))).Stacks?.[0]?.StackStatus;
42190
+ if (status === void 0 || !status.endsWith("_IN_PROGRESS") || Date.now() >= deadline) break;
42191
+ await new Promise((r) => setTimeout(r, POLL_INTERVAL_MS));
42192
+ }
42193
+ }
42194
+ await client.send(new DeleteStackCommand({ StackName: stackId }));
42195
+ logger.info(safeMsg`Deleting the CloudFormation signal receiver stack ${stack.StackName ?? stackId}`);
42196
+ } catch (error) {
42197
+ if (notFound(error)) return;
42198
+ logger.warn(safeMsg`Could not delete the CloudFormation signal receiver stack (${describeAwsFailure(error).summary}); delete it with: aws cloudformation delete-stack --stack-name '${stackId}'`);
42199
+ }
42200
+ }
42201
+ async function removeSignalReceiverNamed(client, stackName, logger, clock = {}) {
42202
+ const sleep = clock.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
42203
+ const now = clock.now ?? Date.now;
42204
+ const stack = (await client.send(new DescribeStacksCommand({ StackName: stackName })).catch((error) => {
42205
+ if (notFound(error)) return void 0;
42206
+ throw error;
42207
+ }))?.Stacks?.[0];
42208
+ if (stack?.StackId === void 0 || stack.StackStatus === "DELETE_COMPLETE" || !isReceiver(stack)) return;
42209
+ const stackId = stack.StackId;
42210
+ logger.info(safeMsg`Deleting the CloudFormation signal receiver stack ${stackName} so the export can take its name`);
42211
+ await client.send(new DeleteStackCommand({ StackName: stackId }));
42212
+ const deadline = now() + SETTLE_WAIT_MS;
42213
+ for (;;) {
42214
+ const status = await client.send(new DescribeStacksCommand({ StackName: stackId })).then((r) => r.Stacks?.[0]?.StackStatus).catch((error) => {
42215
+ if (notFound(error)) return "DELETE_COMPLETE";
42216
+ throw error;
42217
+ });
42218
+ if (status === void 0 || status === "DELETE_COMPLETE") return;
42219
+ if (status === "DELETE_FAILED" || now() >= deadline) throw new Error(safeMsg`The CloudFormation signal receiver stack ${stackName} could not be deleted (${status}); delete it, then re-run the export`);
42220
+ await sleep(POLL_INTERVAL_MS);
42221
+ }
42222
+ }
42223
+
42224
+ // src/deployment/deploy-engine/signal-receiver-run.ts
42225
+ let parser;
42226
+ const templateParser = () => parser ??= new TemplateParser();
42227
+ async function ensureSignalReceiver(engine, stackName, template, currentState) {
42228
+ const recorded = currentState.signalReceiverStackId;
42229
+ engine.signalReceiverStackId = recorded;
42230
+ const { candidates } = signalPlanOf(template);
42231
+ if (candidates.size === 0 || engine.options.dryRun || !canReceiveFor(stackName)) return false;
42232
+ const receiver = new SignalReceiver(stackName, candidates, () => getAwsClients().cloudFormation, engine.logger);
42233
+ const stackId = await receiver.ensure(recorded);
42234
+ if (stackId === void 0) return false;
42235
+ engine.signalReceiver = receiver;
42236
+ engine.signalReceiverStackId = stackId;
42237
+ if (stackId === recorded) return false;
42238
+ currentState.signalReceiverStackId = stackId;
42239
+ return true;
42240
+ }
42241
+ async function armSignalReceiver(engine, stackName, template, changes, stateResources, parameterValues, conditions) {
42242
+ const receiver = engine.signalReceiver;
42243
+ if (receiver === void 0) return;
42244
+ const armIds = /* @__PURE__ */ new Set();
42245
+ let touchesCandidate = false;
42246
+ for (const change of changes.values()) {
42247
+ if (change.changeType !== "NO_CHANGE" && receiver.candidate(change.logicalId) !== void 0) touchesCandidate = true;
42248
+ if ((change.changeType === "CREATE" || change.changeType === "UPDATE" && change.propertyChanges?.some((pc) => pc.requiresReplacement) === true) && (receiver.candidate(change.logicalId)?.count ?? 0) > 0) armIds.add(change.logicalId);
42249
+ }
42250
+ if (!touchesCandidate) return;
42251
+ await receiver.arm(armIds, (id) => resolveTemplateMetadata(engine, id, stateResources, stackName, template, parameterValues, conditions));
42252
+ }
42253
+ async function awaitCreationSignals(engine, logicalId, startedAt, created) {
42254
+ const receiver = engine.signalReceiver;
42255
+ if (receiver === void 0 || !receiver.isArmed(logicalId)) return;
42256
+ if (!created) {
42257
+ receiver.disarm(logicalId);
42258
+ return;
42259
+ }
42260
+ try {
42261
+ await receiver.awaitSignals(logicalId, startedAt, () => engine.interrupted);
42262
+ } catch (error) {
42263
+ engine.interrupted = true;
42264
+ engine.interruptCause ??= "sibling-failure";
42265
+ throw error;
42266
+ }
42267
+ }
42268
+ function warnUnwaitedCreationPolicy(engine, logicalId, template) {
42269
+ const resource = template?.Resources?.[logicalId];
42270
+ if (resource?.CreationPolicy === void 0 || engine.signalReceiver?.isArmed(logicalId) === true) return;
42271
+ if (template !== void 0 && signalPlanOf(template).unsigned.includes(logicalId)) {
42272
+ engine.logger.warn(safeMsg`${logicalId}: CreationPolicy is not honored; its user data calls cfn-init / cfn-signal without credentials, which CloudFormation answers only for its own stacks' instances. Pass --role (CDK: initOptions.includeRole: true) and cdkd waits for the signals.`);
42273
+ return;
42274
+ }
42275
+ warnUnhonoredCreationPolicy(engine.logger, logicalId, resource);
42276
+ }
42277
+ async function resolveTemplateMetadata(engine, logicalId, stateResources, stackName, template, parameterValues, conditions) {
42278
+ const metadata = template.Resources?.[logicalId]?.Metadata;
42279
+ if (metadata === void 0) return void 0;
42280
+ const noEchoParameters = noEchoParameterNamesOf(template);
42281
+ const noEchoAttributes = engine.noEchoRun.noEchoAttributeResources;
42282
+ for (const ref of templateParser().extractReferences(metadata)) if (noEchoParameters.has(ref) || noEchoAttributes.has(ref)) throw new Error(`${logicalId}'s Metadata reads a NoEcho value`);
42283
+ for (const [ref, attribute] of getAttReadsOf(metadata)) {
42284
+ const type = template.Resources?.[ref]?.Type;
42285
+ if (isSensitiveAttributeName(attribute) || isSecretValuedAttribute(type, attribute) || type !== void 0 && isCustomResourceType(type)) throw new Error(`${logicalId}'s Metadata reads a credential-bearing attribute`);
42286
+ }
42287
+ const context = buildResolverContext(engine.resolverContextDeps(), {
42288
+ template,
42289
+ resources: stateResources,
42290
+ ...parameterValues && { parameters: parameterValues },
42291
+ ...conditions && { conditions }
42292
+ }, stackName);
42293
+ return engine.resolver.resolve(metadata, {
42294
+ ...context,
42295
+ skipDynamicReferences: true
42296
+ });
42297
+ }
42298
+ async function settledAfter(engine, run) {
42299
+ try {
42300
+ return await run();
42301
+ } finally {
42302
+ await engine.signalReceiver?.settle();
42303
+ }
42304
+ }
42305
+ function refuseUnservedSignalWait(engine, logicalId, change, template) {
42306
+ if (change.changeType !== "CREATE" && change.changeType !== "UPDATE") return;
42307
+ const resource = template?.Resources?.[logicalId];
42308
+ if (resource?.Type !== "AWS::CloudFormation::WaitCondition") return;
42309
+ const handle = resource.Properties?.["Handle"];
42310
+ if (handle !== void 0 && handle !== null) return;
42311
+ if (engine.signalReceiver?.isArmed(logicalId) === true) return;
42312
+ if (change.changeType === "UPDATE" && change.propertyChanges?.some((pc) => pc.requiresReplacement) !== true) return;
42313
+ throw markNonRetryable(new ProvisioningError(`WaitCondition ${logicalId} has no Handle, and no CloudFormation signal receiver waits on it this deploy (a nested stack, or a receiver that could not be used), so its CreationPolicy signals cannot be received.`, "AWS::CloudFormation::WaitCondition", logicalId));
42314
+ }
42315
+ function getAttReadsOf(value) {
42316
+ const out = [];
42317
+ const walk = (v) => {
42318
+ if (Array.isArray(v)) {
42319
+ v.forEach(walk);
42320
+ return;
42321
+ }
42322
+ if (v === null || typeof v !== "object") return;
42323
+ for (const [key, inner] of Object.entries(v)) {
42324
+ if (key === "Fn::GetAtt") {
42325
+ const parts = typeof inner === "string" ? [inner.slice(0, inner.indexOf(".")), inner.slice(inner.indexOf(".") + 1)] : Array.isArray(inner) ? inner : [];
42326
+ if (typeof parts[0] === "string" && typeof parts[1] === "string") out.push([parts[0], parts[1]]);
42327
+ } else if (key === "Fn::Sub") {
42328
+ const text = typeof inner === "string" ? inner : Array.isArray(inner) ? inner[0] : void 0;
42329
+ if (typeof text === "string") for (const m of text.matchAll(/\$\{([^!}.][^}.]*)\.([^}]+)\}/g)) out.push([m[1], m[2]]);
42330
+ }
42331
+ walk(inner);
42332
+ }
42333
+ };
42334
+ walk(value);
42335
+ return out;
42336
+ }
42337
+ function rollingSignalsFor(engine, logicalId) {
42338
+ const receiver = engine.signalReceiver;
42339
+ if (receiver?.candidate(logicalId)?.rollingPauseMs === void 0) return {};
42340
+ let since = Date.now();
42341
+ return { rollingSignals: {
42342
+ arm: async (count) => {
42343
+ since = Date.now();
42344
+ return receiver.armRolling(logicalId, count);
42345
+ },
42346
+ failure: () => receiver.failureOf(logicalId, since),
42347
+ awaitAll: async (withinMs) => {
42348
+ try {
42349
+ await receiver.awaitSignals(logicalId, since, () => engine.interrupted, Date.now() + withinMs);
42350
+ } catch (error) {
42351
+ await receiver.restoreAfterFailure(logicalId);
42352
+ throw error;
42353
+ }
42354
+ }
42355
+ } };
42356
+ }
42357
+
41723
42358
  // src/state/refactor-marker.ts
41724
42359
  function refactorMarkerMovesOf(body) {
41725
42360
  const raw = body?.moves;
@@ -51086,7 +51721,8 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
51086
51721
  ...unsettledMarkSinks(engine, logicalId, resolvedProps, currentResource),
51087
51722
  ...unsettled.size > 0 && { unsettledProperties: unsettled },
51088
51723
  ...unsettledItems.size > 0 && { unsettledItems },
51089
- ...updatePolicy
51724
+ ...updatePolicy,
51725
+ ...rollingSignalsFor(engine, logicalId)
51090
51726
  })), logicalId, void 0, void 0, updateProvider);
51091
51727
  if (result.sentNothing === true) engine.replacementRun.updatesThatSentNothing.add(logicalId);
51092
51728
  engine.unsettledMarks.delete(logicalId);
@@ -51124,7 +51760,7 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
51124
51760
  logicalId,
51125
51761
  generation: fallbackGeneration
51126
51762
  }, replaceFallback));
51127
- warnUnhonoredCreationPolicy(engine.logger, logicalId, template?.Resources?.[logicalId]);
51763
+ warnUnwaitedCreationPolicy(engine, logicalId, template);
51128
51764
  engine.unsettledMarks.delete(logicalId);
51129
51765
  engine.unsettledItemMarks.delete(logicalId);
51130
51766
  result = fallbackOutcome.result;
@@ -51425,7 +52061,7 @@ async function finishUpdate(engine, input) {
51425
52061
  logicalId,
51426
52062
  generation: nextGeneration
51427
52063
  }, replace));
51428
- warnUnhonoredCreationPolicy(engine.logger, logicalId, template?.Resources?.[logicalId]);
52064
+ warnUnwaitedCreationPolicy(engine, logicalId, template);
51429
52065
  return markRestored(replaced);
51430
52066
  }
51431
52067
  const serviceTokenRefusal = serviceTokenUpdateRefusal({
@@ -51988,7 +52624,7 @@ async function provisionResourceBody(engine, logicalId, change, stateResources,
51988
52624
  return withStackRecords(engine.stackRecordsView, () => {
51989
52625
  switch (change.changeType) {
51990
52626
  case "CREATE": return withPriorAttempts(priorAttempts, () => provisionCreate(engine, logicalId, change, stateResources, stackName, template, parameterValues, conditions, counts, progress)).then((outcome) => {
51991
- warnUnhonoredCreationPolicy(engine.logger, logicalId, template?.Resources?.[logicalId]);
52627
+ warnUnwaitedCreationPolicy(engine, logicalId, template);
51992
52628
  return outcome;
51993
52629
  });
51994
52630
  case "UPDATE": return withPriorAttempts(priorAttempts, () => provisionUpdate(engine, logicalId, change, stateResources, stackName, template, parameterValues, conditions, counts, progress));
@@ -52138,8 +52774,11 @@ async function provisionCreateUpdateNode(run, createUpdateExecutor, enqueueLostC
52138
52774
  });
52139
52775
  let succeeded = false;
52140
52776
  const createdSink = new CreatedResourceSink(logicalId, change.resourceType);
52777
+ const signalWaitStart = Date.now();
52778
+ const physicalIdBefore = newResources[logicalId]?.physicalId;
52141
52779
  try {
52142
52780
  try {
52781
+ refuseUnservedSignalWait(engine, logicalId, change, template);
52143
52782
  await timePhase(phaseScope, `resource ${change.changeType.toLowerCase()}`, () => collectCreatedResources(createdSink, () => provisionResource(engine, logicalId, change, newResources, stackName, template, parameterValues, conditions, actualCounts, progress)), `${logicalId} ${change.resourceType}`);
52144
52783
  settledUpdates.add(logicalId);
52145
52784
  succeeded = true;
@@ -52239,6 +52878,8 @@ async function provisionCreateUpdateNode(run, createUpdateExecutor, enqueueLostC
52239
52878
  });
52240
52879
  saveStateAfterResource(logicalId);
52241
52880
  if (engine.replacementRun.recreatedUnderSameId.has(logicalId)) enqueueLostChildren(createUpdateExecutor);
52881
+ const created = change.changeType === "CREATE" || newResources[logicalId]?.physicalId !== physicalIdBefore;
52882
+ await awaitCreationSignals(engine, logicalId, signalWaitStart, created);
52242
52883
  }
52243
52884
  function journaledUpdatePolicyField(changeType, updatePolicyOption, template, logicalId, resolved) {
52244
52885
  if (changeType !== "UPDATE") return {};
@@ -54140,6 +54781,7 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
54140
54781
  const firstDeployIdentityRead = idArrivesLater && engine.stateBackend.peekStackInstanceSibling ? engine.options.dryRun ? Promise.resolve(null) : engine.stateBackend.peekStackInstanceSibling(stackName, engine.stackRegion) : void 0;
54141
54782
  firstDeployIdentityRead?.catch(() => void 0);
54142
54783
  let firstDeployIdentity;
54784
+ engine.signalReceiverStackId = currentState.signalReceiverStackId;
54143
54785
  engine.runStackIdTail = () => stackIdTailOf(currentState.stackInstanceId === void 0 && firstDeployIdentity !== void 0 ? {
54144
54786
  stackInstanceId: firstDeployIdentity.stackInstanceId,
54145
54787
  ...firstDeployIdentity.stackIdFromInstance && { stackIdFromInstance: true }
@@ -54229,6 +54871,7 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
54229
54871
  for (const row of nestedCheck?.forcedRows ?? []) engine.logger.info(nestedSsmNameRowNote(row));
54230
54872
  for (const row of nestedCheck?.deferredRows ?? []) engine.logger.info(nestedSsmNameDeferredNote(row));
54231
54873
  const marksNestedCheck = nestedCheck?.complete === true && !Object.values(orphanPlan.adopted).some((r) => r.resourceType === "AWS::CloudFormation::Stack");
54874
+ const signalReceiverChanged = await ensureSignalReceiver(engine, stackName, effectiveTemplate, currentState);
54232
54875
  const { diffResolverContext, maskedInputs, changes } = await calculateDeployDiff(engine, {
54233
54876
  stackName,
54234
54877
  currentState,
@@ -54300,7 +54943,7 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
54300
54943
  migrationPending,
54301
54944
  maskedFingerprintsBackfilled,
54302
54945
  orphansChanged,
54303
- terminationProtectionChanged,
54946
+ terminationProtectionChanged: terminationProtectionChanged || signalReceiverChanged,
54304
54947
  ssmNamesHealed: ssmNameHeals.length > 0,
54305
54948
  nestedSsmNamesMarked: marksNestedCheck,
54306
54949
  resolveStackInstanceId,
@@ -54346,8 +54989,9 @@ async function doDeployWithPrefetch(engine, stackName, template, createOnlyPrefe
54346
54989
  current: 0,
54347
54990
  total: createChanges.length + updateChanges.length + deleteChanges.length
54348
54991
  };
54992
+ await armSignalReceiver(engine, stackName, effectiveTemplate, changes, currentState.resources, parameterValues, conditions);
54349
54993
  clock.lap("first-deploy instance id, name guard");
54350
- const { state: newState, actualCounts, completedOperations } = await withProducerRegions(() => producerRegionEvidence(engine.rollbackDeps(), currentState), () => withStackScope(nameScope(), () => executeDeployment(engine, effectiveTemplate, currentState, changes, dag, executionLevels, stackName, outputsDigestSource, parameterValues, conditions, currentEtag, progress, migrationPending)));
54994
+ 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))));
54351
54995
  clock.lap("resource DAG");
54352
54996
  try {
54353
54997
  engine.stateBackend.warmConnections(stackName, engine.stackRegion, TAIL_WARM_CONNECTIONS);
@@ -54432,6 +55076,8 @@ function deploy(stackName, template) {
54432
55076
  this.unsettledItemMarks = /* @__PURE__ */ new Map();
54433
55077
  this.resumedCreates = /* @__PURE__ */ new Map();
54434
55078
  this.generatedNameGuard = void 0;
55079
+ this.signalReceiver = void 0;
55080
+ this.signalReceiverStackId = void 0;
54435
55081
  this.liveTaskLabels = /* @__PURE__ */ new Map();
54436
55082
  this.outputsRun = new OutputsRunState();
54437
55083
  this.provenanceBaseline = void 0;
@@ -54511,6 +55157,8 @@ var DeployEngine = class {
54511
55157
  inFlightBodies = /* @__PURE__ */ new Map();
54512
55158
  resumedCreates = /* @__PURE__ */ new Map();
54513
55159
  generatedNameGuard;
55160
+ signalReceiver;
55161
+ signalReceiverStackId;
54514
55162
  liveTaskLabels = /* @__PURE__ */ new Map();
54515
55163
  provenanceBaseline = void 0;
54516
55164
  provenanceCapture;
@@ -54649,5 +55297,5 @@ var DeployEngine = class {
54649
55297
  }
54650
55298
  };
54651
55299
 
54652
- export { recordTagWrite as $, CC_BROKEN_REASON as $a, refuseMalformedResourceProperties as $c, gray as $i, readOnlyStateVersionOf as $l, parseMappingFile as $n, producerLookupOver as $o, redactedDeleteAddressSkip as $r, siblingsOf as $s, formatResourceLine as $t, validateAssetBucketName as $u, recordedProtectionEvidence as A, buildFinalSnapshotIdentifier as Aa, previewableOrphanRecords as Ac, bindingSkippedOutputs as Ai, repairMalformedResourcesForReadOnly as Al, DeploymentEventsStore as An, differingIdentityWarning as Ao, findUpdatePolicyReplacementRefusals as Ar, lacksRecordedTableArn as As, DELETE_INDEX_WAIT_PROCEED_NOTE as At, createLazyAssetModeContext as Au, declaredStreamTagsMember as B, SNS_DEFAULT_POLICY_ID as Ba, malformedResourceEntriesWarning as Bc, isSupersededResourceRecord as Bi, findHandledUnwrittenCreateOnly as Bl, formatDestructiveChange as Bn, IntrinsicFunctionResolver as Bo, isJournaledOrphan as Br, referenceTokensIn as Bs, isTruthyCfnBoolean as Bt, isCfnTemplateAssetPath as Bu, pendingMovesOutOf as C, ccRoutedFinalSnapshotError as Ca, declaresNoEcho as Cc, exportNameNoEchoParameters as Ci, malformedRenderedContainersWarning as Cl, journaledOrphanLines as Cn, withCustomResourceStack as Co, withUnprovenUnsettled as Cr, isUnboundTemplateParameter as Cs, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as Ct, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Cu, findServiceTokenRefusals as D, refusesFinalSnapshot as Da, malformedOrphanRecordsRefusalMessage as Dc, collectDeclaredOutputNames as Di, refuseMalformedResourcesForDestroy as Dl, makeSiblingClaimReader as Dn, RecordedIdentityError as Do, undeclaredEmptyObservedKeys as Dr, isStalePlaceholderArnAttribute as Ds, deleteBudgetKey as Dt, synthesizedStacks as Du, deferredServiceTokenWarning as E, isFinalSnapshotError as Ea, isReadableOrphanRecord as Ec, noEchoParameterValueSeed as Ei, refuseMalformedResourcesForDeploy as El, makeForeignHolderScan as En, waitForGoneAfterDelete as Eo, equalModuloMask as Er, cfnRefValueFromPhysicalId as Es, compensateRemovedDeletionProtection as Et, rememberSynthesizedStacks as Eu, readProtection as F, withoutSiblingAttachedArns as Fa, unpreviewableOrphanRecords as Fc, destroyStackRecordsView as Fi, UNREADABLE_RESOURCES_MAP_ROW as Fl, noEchoMacParametersOf as Fn, deleteSkipReason as Fo, withCreateTokenLedger as Fr, outputReferenceProvenanceOf as Fs, relayedIndexBusyDelete as Ft, redirectDockerAsset as Fu, streamDeclaresTags as G, memberReadFailure as Ga, refuseMalformedResourceEntriesForDestroy as Gc, withoutSuperseded as Gi, withoutUnwrittenSdkUnwiredProperties as Gl, withMovedTo as Gn, isSettledInstanceState as Go, replacementNeverSwapped as Gr, carriesDynamicReference as Gs, refactorMarkerMovesOf as Gt, AssetModeResolver as Gu, readStreamPolicy as H, declaredPolicyDocument as Ha, refuseMalformedResourceAttributesForOrphan as Hc, supersededHeldByOtherTypeWarning as Hi, unwrittenCreateOnlyReplacement as Hl, hintSidesOf as Hn, isAlwaysLiveAttribute as Ho, planFailedOps as Hr, isImpossibleEmptyStoredAttribute as Hs, recordRetainedForReadoption as Ht, resolveFileAssetSourcePath as Hu, DynamoDBGlobalTableProvider as I, withoutSiblingOwned as Ia, unreadableOrphanRecords as Ic, getStackRecords as Ii, displayLogicalId as Il, noEchoMacVerdict as In, withIndeterminateGuard as Io, acquireIdempotencyToken as Ir, recordedOutputReferenceRegions as Is, waitForIndexesSettled as It, redirectFileAsset as Iu, streamTagsMatchDeclared as J, settleDeclaredMember as Ja, refuseMalformedResourceEntriesForOrphan as Jc, resolveReplacementOldType as Ji, PROPERTY_COVERAGE_BY_TYPE as Jl, changedReferenceReason as Jn, maskedSecretSegment as Jo, attemptUsesCompletedCreate as Jr, namesRecreatedParent as Js, sameMove as Jt, assertAssetBucketRegion as Ju, streamMemberRefusals as K, policyDocumentMatchesDeclared as Ka, refuseMalformedResourceEntriesForImport as Kc, replacedDeleteFailureVerdict as Ki, NO_CC_HANDLERS_REASON as Kl, changedReferenceInDiff as Kn, APPSYNC_APIKEY_ARN_RESOURCE_PATH as Ko, IMPLICIT_DELETE_DEPENDENCIES as Kr, keepsSecretReferenceToken as Ks, refactorMarkerRefusalMessage as Kt, ensureAssetStorage as Ku, STREAM_POLICY_KEY as L, KMS_DEFAULT_KEY_POLICY_ID as La, isReadableResourceEntry as Lc, withStackRecords as Li, hasReadableOutputs as Ll, noEchoValueMacsOf as Ln, getReadOnlyPropertyPaths as Lo, planRollback as Lr, recordedProvenanceOf as Ls, ECR_AUTO_DELETE_IMAGES_TAG as Lt, rewriteTemplateAssetReferences as Lu, PROTECTION_PROPERTY_BY_TYPE as M, collectManagedPolicyArnsAttachedBySiblings as Ma, refuseMalformedOrphanRecordsForDestroy as Mc, DEFAULT_RESOURCE_WARN_AFTER_MS as Mi, accountArgs as Ml, NOECHO_MAC_KEY_ALIAS as Mn, UNSPECIFIED_SKIP_REASON as Mo, earliestDefined as Mr, extractGetAttRefs as Ms, TABLE_INDEX_NOUN as Mt, isDefaultBootstrapBucketName as Mu, isProtectionValueActive as N, collectPrincipalsAttachingPolicy as Na, refuseMalformedOrphansForOrphan as Nc, maskingRetryLogger as Ni, withheldAccountClause as Nl, createNoEchoValueMacs as Nn, deleteIndeterminateGuards as No, ledgerForStack as Nr, promoteInPlaceAttributeDependents as Ns, deleteTableWithIndexBusyRetry as Nt, isDefaultBootstrapRepoName as Nu, serviceTokenBlockingReason as O, unsupportedFinalSnapshotError as Oa, malformedOrphanRecordsWarning as Oc, collectPublishedOutputNames as Oi, refuseMalformedResourcesForExport as Ol, planOrphanAdoption as On, RecordedIdentityMismatchError as Oo, updatePartialMessage as Or, refStateLookupFromResource as Os, resolveDynamoDbDeleteBudgetClock as Ot, buildAssetRedirectMap as Ou, perType as P, isStoredExpression as Pa, repairMalformedOrphanRecordsForReadOnly as Pc, awaitInFlightSibling as Pi, STATE_RESOURCES_MALFORMED as Pl, noEchoMacBinding as Pn, deleteLeftInPlace as Po, reserveStackCreateToken as Pr, keepHeldTokenProvenance as Ps, maskedLogger as Pt, loadPublishableAssetManifest as Pu, isDynamoDBTableArnIn as Q, policyContentKey as Qa, malformedResourcePropertiesWarning as Qc, cyan as Qi, isKnownTokenFreeState as Ql, mappingPairs as Qn, resolveDynamicReferences as Qo, redactedDeleteAddressFields as Qr, replacementSidesForLog as Qs, licensedNameHolder as Qt, readBootstrapMarkerBody as Qu, STREAM_TAGS_KEY as R, LAMBDA_PERMISSION_STATEMENT_KEYS as Ra, malformedLocalResourceEntriesWarning as Rc, deleteSupersededEntry as Ri, hasReadableResources as Rl, constructPathOf as Rn, isWaitAbandonedError as Ro, seedsDeleteFirstGuard as Rr, recordedReferenceRegions as Rs, S3_AUTO_DELETE_OBJECTS_TAG as Rt, AssetManifestLoader as Ru, hasPendingMovesOut as S, PRE_DELETE_SNAPSHOT_TYPES as Sa, passedParameterClassesOf as Sc, carriedExportAliasExposure as Si, refuseDivergentRecordRegionForDestroy as Sl, isHandledOrphan as Sn, setLocalCustomResourceRuntimeEnabled as So, settleUnsettledPrevious as Sr, coerceParameterTypedValue as Ss, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as St, ssmResolvedValueType as Su, refusePendingMovesOut as T, effectiveDeletionPolicy as Ta, deployRefusesOrphanRowsReason as Tc, isWholeDynamicReferenceValue as Ti, malformedStateRefusalMessage as Tl, sameJournaledOrphans as Tn, CloudControlProvider as To, equalModuloMarkedMask as Tr, AWS_NO_VALUE as Ts, beginDeleteWait as Tt, decodeListingKey as Tu, reverseMapStreamPolicy as U, efsPolicyMatchesDeclared as Ua, refuseMalformedResourceEntries as Uc, supersededHolderOf as Ui, withoutAcceptedSdkUnwiredProperties as Ul, movedToHint as Un, poisonRenderedSpellingsCollidingIn as Uo, recheckFailedPlan as Ur, carriesFetchableDynamicReference as Us, readRefactorMarker as Ut, warnAbsoluteAssetPath as Uu, planStreamMemberOps as V, declaredMemberDocument as Va, malformedScrubResourceEntriesRefusalMessage as Vc, supersededAfterRollback as Vi, findSdkUnwiredProperties as Vl, findRefactorHints as Vn, isSelectOutOfBounds as Vo, isReplacementOrphan as Vr, getAccountInfo as Vs, keptForRetainedRecord as Vt, parseAssetManifestBody as Vu, streamDeclaresPolicy as W, lambdaPermissionMatchesDeclared as Wa, refuseMalformedResourceEntriesForDeploy as Wc, supersededResourcesOf as Wi, withoutSdkUnwiredProperties as Wl, rollbackOrphanIds as Wn, stackIdTailOf as Wo, recordUnderIdIsNotOwn as Wr, isNamelessDynamicReferenceError as Ws, readRefactorMarkerOnce as Wt, warnWholeAssemblyAsSource as Wu, clearTagWrites as X, verbatimEchoDriftKeys as Xa, unreadableResourceEntries as Xc, findNestedStackTypeChanges as Xi, S3StateBackend as Xl, isPairableType as Xn, secretSegmentsOfState as Xo, REDACTED_DELETE_ADDRESS_SKIP_REASON as Xr, containsIntrinsic as Xs, macWriteOnlyKeys as Xt, getBootstrapMarkerKey as Xu, TAGS_BASELINE_REREAD_DELAYS_MS as Y, warnUnsettledMember as Ya, repairMalformedResourceEntriesForReadOnly as Yc, withPreviousPolicies as Yi, TemplateParser as Yl, differingRemedy as Yn, secretPhysicalIdSegment as Yo, readsRegeneratingSecret as Yr, INTRINSIC_KEYS as Ys, updateRefactorMarker as Yt, isCrossRegionRedirect as Yu, declaredTagsReadback as Z, attemptedPolicyDocument as Za, malformedDriftResourcePropertiesWarning as Zc, bold as Zi, splitImportedOps as Zl, looselyEqual as Zn, withSecretPhysicalIdsMaskedInState as Zo, isRedactedRecordedValue as Zr, markNewValueKnownAfterDeploy as Zs, readsOnlyNoEchoParameters as Zt, parseBootstrapMarker as Zu, conditionFingerprint as _, secretNamedRecordNeedles as _a, inputFingerprinter as _c, resolveBucketRegion as _d, displayTextOrWithheld as _i, refuseMalformedNestedChildOutputs as _l, getCurrentNestedStackContext as _n, customResourceStackName as _o, replayFailedOperations as _r, s3BucketArn as _s, planIndexContributorInsightsOps as _t, listNestedTemplateRows as _u, scanActiveConsumers as a, noEchoExactEchoLeavesOf as aa, MULTI_REGION_RECREATE_BLOCKED_TYPES as ac, hasOwnKey as ad, nameScopeOf as ai, UNREADABLE_ORPHANS_CONTAINER_ROW as al, resolvePendingCloudControlRequests as an, classifyHandleUrl as ao, undeclaredGrantSiblingMembers as ar, isIamRoleArn as as, planTimeToLive as at, applyCrossPrefixScan as au, readRecordedConditionVerdicts as b, extractDeploymentEventError as ba, parameterInputsFor as bc, secretBearingStateKeyWarning as bi, repairMalformedOutputsForReadOnly as bl, dropFailedCommands as bn, localCustomResourceCommand as bo, buildReadCurrentStateContext as br, s3BucketRegionalDomainName as bs, reverseMapTableContributorInsights as bt, SSM_PARAMETER_VALUE_PREFIX as bu, nestedSsmNameDeferredNote as c, createReadOnlyAttributeHealerFactory as ca, renderStatefulReason as cc, ownValue as cd, retiredNameGenerationsLeaving as ci, malformedOrphansWarning as cl, displacedPhysicalIdShown as cn, applyCustomResourceResponseExpiration as co, sgSiblingDecidedById as cr, AWS_CREDENTIAL_ENV_KEYS as cs, planVectorIndexUpdates as ct, isNotImplemented as cu, slashedSsmNameHealAdoptedNote as d, maskEventTextWithBoundBags as da, isWarmThroughputDecrease as dc, describeFileReadFailure as dd, inheritProducerRegions as di, repairMalformedOrphansForReadOnly as dl, nestedChildStackName as dn, TemplateNoEchoReresolver as do, withoutSiblingOwnedSgRules as dr, envCredentialsAreAssumedRole as ds, vectorIndexesSettled as dt, isSecretValuedAttribute as du, green as ea, LEGACY_HANDLE_ID_PREFIX as ec, validateContainerRepoName as ed, segmentCleanupOptions as ei, refuseMalformedResourcePropertiesForDestroy as el, chunks as en, ProviderRegistry as eo, propertiesChangedReason as er, refuseUnreadableCdkCrossAccountRefs as es, settleWrittenTags as et, hasReasonlessBaselineRefusal as eu, slashedSsmNameHealNote as f, namingSecretsWithRecordedNoEcho as fa, toCfnInteger as fc, displayAssemblyPath as fd, computeParameterTaint as fi, malformedExportNamesWarning as fl, recordDisplacedSkips as fn, readsNoEchoDeleteValues as fo, SG_RULE_ID_PATTERN as fr, classifyRecordedSecretRegion as fs, vectorIndexesShapeDetail as ft, isSensitiveAttributeName as fu, makeCanonicalizePropertiesFn as g, secretNamedAttributeNamesOf as ga, tryGetTopLevelWriteOnlyProperties as gc, clearBucketRegionCache as gd, WITHHELD_NAME_DISPLAY as gi, malformedOutputsWarning as gl, collectNestedChildUnaddressed as gn, NO_LOCAL_CUSTOM_RESOURCES_FLAG as go, canonicalizeIpProtocolValue as gr, isUnexposedRecordedIdentity as gs, planContributorInsightsOp as gt, isAbsoluteAssetPath as gu, inheritedProvenanceForChildDiff as h, secretNamePrintingBags as ha, getTopLevelKeysHoldingUnreadableCreateOnly as hc, resolveAssemblyPath as hd, resourcesNamingDeclaredParameter as hi, malformedOutputsRefusalMessage as hl, withNestedRevertRun as hn, withPrintingSecrets as ho, sgProtocolKey as hr, regionLessSecretName as hs, indexDeclaresContributorInsights as ht, findNestedTemplateTreeDefect as hu, mergeNoChangeOutputs as i, noEchoComparisonForTemplate as ia, shownType as ic, defineOwnKey as id, nameGenerationHighWaterOf as ii, repairMalformedResourcePropertiesForReadOnly as il, pendingRequestCount as in, WaitConditionSignalStore as io, stripSiblingOwnedParentMembers as ir, explicitRoleArnOrThrow as is, isTtlRateLimited as it, CrossPrefixScanCache as iu, recordedProtectionNote as j, collectGroupsAddedBySiblings as ja, refuseMalformedOrphanRecords as jc, DEFAULT_RESOURCE_TIMEOUT_MS as ji, JSON_LISTING_HOLE_VALUE as jl, crossStackReadsForPartialSave as jn, RollbackInlinePolicyWriters as jo, replacementCreateRoutesToCloudControl as jr, parseWebACLArn as js, INDEX_SETTLE_POLL_INTERVAL_MS as jt, flattenAssetPlaceholders as ju, diffSecurity as k, createPreDeleteFinalSnapshot as ka, malformedOrphanRowsKeptWarning as kc, isExportAliasCollision as ki, refuseMalformedState as kl, DeploymentEventsReader as kn, assertRecordedIdentity as ko, updatePartialReason as kr, lacksRecordedRefArn as ks, resolveDynamoDbDeleteBudgetMs as kt, createAssetRedirectResolver as ku, nestedSsmNameRowNote as l, completedReplayEntries as la, WARM_THROUGHPUT_MEMBERS as lc, absoluteAssemblyPathEscape as ld, withNameGenerationReached as li, refuseMalformedOrphans as ll, dropSettledNestedJournals as ln, customResourceResponseExpirationWarning as lo, siblingOwnedSgRuleIdentities as lr, applyCallerIdentityCredentials as ls, readbackVectorIndexes as lt, stackInstanceIdOf as lu, crossStackOutputProvenanceSource as m, secretNamePrintingBag as ma, getSettledWriteOnlyPropertyPaths as mc, renderAssemblyPathEscape as md, reachableDivergentParameters as mi, malformedLocalOutputsWarning as ml, revertedNestedRowIds as mn, getCurrentResourceSecrets as mo, recordedSgRuleId as mr, producerRegionsFromState as ms, contributorInsightsRefusals as mt, missingStateBucketRemedy as mu, isSecretBearingReferenceString as n, yellow as na, findReplacedReadersOfRecreateTargets as nc, getCdkdAssetBucketName as nd, orphanNeedsIdentity as ni, refuseMalformedResourcePropertiesForExport as nl, lookupEachName as nn, isCustomResource as no, referencedLogicalIds as nr, assertFlagRoleArn as ns, takeTagWrite as nt, rebuildClientForBucketRegion as nu, inRunStackKey as o, noEchoParameterNamesOf as oa, isStatefulRecreateTargetForReplace as oc, hasPlainPrototype as od, retiredAfterRollback as oi, hasReadableOrphans as ol, NESTED_PENDING_PARENT_REASON as on, evaluateSignals as oo, recordedRuleIdOf as or, parseIamRoleArn as os, readTtlSpec as ot, crossPrefixDeniedWarning as ou, slashedSsmNameHealPendingNote as p, orphanRecordsPrintingBag as pa, toFiniteNumber as pc, namesTheSameDirectory as pd, namesAnyDeclaredParameter as pi, malformedExportSourceWarning as pl, revertNestedChildFromJournal as pn, isCustomResourceType as po, cfnIngressPortValue as pr, classifyReplaySecretRegion as ps, CONTRIBUTOR_INSIGHTS_KEY as pt, stringifyValue as pu, streamPolicyMatchesDeclared as q, reReadUntilSettled as qa, refuseMalformedResourceEntriesForImportSave as qc, snapshotSegmentSurvivors as qi, hasNoCloudControlHandlers as ql, changedReferencePath as qn, displayPhysicalId as qo, computeImplicitDeleteEdges as qr, withSharedDrainBudget as qs, refuseRefactorMarker as qt, buildDenyExternalAccessPolicy as qu, keptWholeReasonText as r, noEchoAttributeNamesOf as ra, isPlainReferenceTo as rc, getCdkdContainerRepoName as rd, nameGenerationCarriedFrom as ri, refuseMalformedResourcePropertiesForOrphan as rl, withApiLimit as rn, wouldReturnToSdkProvider as ro, siblingOwnedRevertDesired as rr, assertSendableRoleArn as rs, isTtlAlreadyDisabled as rt, CrossPrefixReadError as ru, checkNestedSsmNames as s, withAttemptedItemsMasked as sa, isStatefulRecreateTargetSync as sc, nullPrototypeRecord as sd, retiredNameGenerationsAfter as si, malformedOrphansRefusalMessage as sl, displacedOpClause as sn, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as so, sgRuleOwnershipIdentity as sr, sendableAssumeRoleCommand as ss, sendTtlWaitingOutRateLimit as st, isAccessDenied$1 as su, DeployEngine as t, red as ta, isLegacyHandleId as tc, BOOTSTRAP_MARKER_PREFIX as td, removeProtectionTypeList as ti, refuseMalformedResourcePropertiesForDrift as tl, isAccessDeniedError as tn, ccBrokenReason as to, proposeRenames as tr, applyRoleArnIfSet as ts, tagsMatchDeclared as tt, hasUnverifiableParameterRefusal as tu, healSlashedSsmParameterNames as u, journaledOrphanPrintingBag as ua, coerceWarmThroughput as uc, assemblyPathEscape as ud, getCurrentProducerRegions as ui, refuseMalformedOrphansForDestroy as ul, getNestedRevertRun as un, responsePresignClient as uo, siblingRecordedSgRuleIds as ur, callerEnvCredentials as us, vectorIndexesForCreate as ut, withStackInstanceIdWithheld as uu, conditionInputsFrom as v, stateSecretNameNeedles as va, maskedPropertyFingerprintsOf as vc, exportAliasCollisionScrubWarning as vi, refuseMalformedOutputs as vl, withNestedStackContext as vn, customResourcesFailedWithoutApp as vo, replayRollback as vr, s3BucketDomainName as vs, readContributorInsightsSpec as vt, renderNestedTemplateTreeDefect as vu, pendingMovesRefusalMessage as w, ccRoutedInstanceTakesNoSnapshot as wa, maskedPropertyFingerprint as wc, exportNameSecretExposure as wi, malformedResourcesWarning as wl, loadJournaledOrphans as wn, waitForLambdaFunctionActive as wo, calculateResourceDrift as wr, parameterTypeMayLoseSecretIdentity as ws, DYNAMODB_DELETE_POLL_COST_MS as wt, purgeNoncurrentKeyVersions as wu, childTemplateLoader as x, ATOMIC_FINAL_SNAPSHOT_TYPES as xa, maskedInputProof as xc, secretSafeKeyDisplay as xi, STATE_REGION_DIVERGED as xl, dropFailedHint as xn, localCustomResourceRuntimeActive as xo, recordAfterRollbackUpdate as xr, s3BucketWebsiteUrl as xs, stripIndexContributorInsights as xt, isListParameterType as xu, parentSuppliedValues as y, storedSecretNameNeedles as ya, movedMaskedProperties as yc, secretBearing as yi, refuseMalformedOutputsForDestroy as yl, deleteJournaledOrphans as yn, customResourcesRunWithoutApp as yo, DELETED_RESOURCE_REMEDY as yr, s3BucketDualStackDomainName as ys, reverseMapIndexContributorInsights as yt, templateIdentity as yu, declaredStreamPolicyMember as z, OWN_WRITE_REREAD_DELAYS_MS as za, malformedLocalResourcesWarning as zc, holdsSupersededResources as zi, findActionableSdkUnwired as zl, findDestructiveChanges as zn, markWaitAbandoned as zo, demoteSupersededOrphans as zr, referenceProvenanceOf as zs, hasCdkAutoDeleteTag as zt, getDockerImageBySourceHash as zu };
54653
- //# sourceMappingURL=deploy-engine-Bo8PtTbG.js.map
55300
+ export { recordTagWrite as $, policyContentKey as $a, refuseMalformedResourcePropertiesForExport as $c, cyan as $i, rebuildClientForBucketRegion as $l, propertiesChangedReason as $n, assertFlagRoleArn as $o, redactedDeleteAddressFields as $r, findReplacedReadersOfRecreateTargets as $s, macWriteOnlyKeys as $t, getCdkdAssetBucketName as $u, recordedProtectionEvidence as A, createPreDeleteFinalSnapshot as Aa, refuseMalformedOrphansForOrphan as Ac, isExportAliasCollision as Ai, withheldAccountClause as Al, crossStackReadsForPartialSave as An, deleteIndeterminateGuards as Ao, updatePartialReason as Ar, promoteInPlaceAttributeDependents as As, DELETE_INDEX_WAIT_PROCEED_NOTE as At, isDefaultBootstrapRepoName as Au, declaredStreamTagsMember as B, OWN_WRITE_REREAD_DELAYS_MS as Ba, refuseMalformedResourceEntries as Bc, holdsSupersededResources as Bi, withoutAcceptedSdkUnwiredProperties as Bl, findRefactorHints as Bn, poisonRenderedSpellingsCollidingIn as Bo, demoteSupersededOrphans as Br, carriesFetchableDynamicReference as Bs, isTruthyCfnBoolean as Bt, warnAbsoluteAssetPath as Bu, pendingMovesOutOf as C, PRE_DELETE_SNAPSHOT_TYPES as Ca, isReadableOrphanRecord as Cc, carriedExportAliasExposure as Ci, refuseMalformedResourcesForDeploy as Cl, loadJournaledOrphans as Cn, setLocalCustomResourceRuntimeEnabled as Co, settleUnsettledPrevious as Cr, cfnRefValueFromPhysicalId as Cs, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as Ct, rememberSynthesizedStacks as Cu, findServiceTokenRefusals as D, isFinalSnapshotError as Da, previewableOrphanRecords as Dc, noEchoParameterValueSeed as Di, repairMalformedResourcesForReadOnly as Dl, planOrphanAdoption as Dn, waitForGoneAfterDelete as Do, equalModuloMask as Dr, lacksRecordedTableArn as Ds, deleteBudgetKey as Dt, createLazyAssetModeContext as Du, deferredServiceTokenWarning as E, effectiveDeletionPolicy as Ea, malformedOrphanRowsKeptWarning as Ec, isWholeDynamicReferenceValue as Ei, refuseMalformedState as El, makeSiblingClaimReader as En, CloudControlProvider as Eo, equalModuloMarkedMask as Er, lacksRecordedRefArn as Es, compensateRemovedDeletionProtection as Et, createAssetRedirectResolver as Eu, readProtection as F, isStoredExpression as Fa, malformedLocalResourceEntriesWarning as Fc, awaitInFlightSibling as Fi, hasReadableResources as Fl, noEchoMacVerdict as Fn, isWaitAbandonedError as Fo, reserveStackCreateToken as Fr, recordedReferenceRegions as Fs, relayedIndexBusyDelete as Ft, AssetManifestLoader as Fu, streamDeclaresTags as G, lambdaPermissionMatchesDeclared as Ga, refuseMalformedResourceEntriesForOrphan as Gc, supersededResourcesOf as Gi, PROPERTY_COVERAGE_BY_TYPE as Gl, changedReferenceInDiff as Gn, maskedSecretSegment as Go, recordUnderIdIsNotOwn as Gr, namesRecreatedParent as Gs, refactorMarkerMovesOf as Gt, assertAssetBucketRegion as Gu, readStreamPolicy as H, declaredMemberDocument as Ha, refuseMalformedResourceEntriesForDestroy as Hc, supersededAfterRollback as Hi, withoutUnwrittenSdkUnwiredProperties as Hl, movedToHint as Hn, isSettledInstanceState as Ho, isReplacementOrphan as Hr, carriesDynamicReference as Hs, recordRetainedForReadoption as Ht, AssetModeResolver as Hu, DynamoDBGlobalTableProvider as I, withoutSiblingAttachedArns as Ia, malformedLocalResourcesWarning as Ic, destroyStackRecordsView as Ii, findActionableSdkUnwired as Il, noEchoValueMacsOf as In, markWaitAbandoned as Io, withCreateTokenLedger as Ir, referenceProvenanceOf as Is, waitForIndexesSettled as It, getDockerImageBySourceHash as Iu, streamTagsMatchDeclared as J, reReadUntilSettled as Ja, malformedDriftResourcePropertiesWarning as Jc, snapshotSegmentSurvivors as Ji, splitImportedOps as Jl, differingRemedy as Jn, withSecretPhysicalIdsMaskedInState as Jo, computeImplicitDeleteEdges as Jr, markNewValueKnownAfterDeploy as Js, sameMove as Jt, parseBootstrapMarker as Ju, streamMemberRefusals as K, memberReadFailure as Ka, repairMalformedResourceEntriesForReadOnly as Kc, withoutSuperseded as Ki, TemplateParser as Kl, changedReferencePath as Kn, secretPhysicalIdSegment as Ko, replacementNeverSwapped as Kr, INTRINSIC_KEYS as Ks, refactorMarkerRefusalMessage as Kt, isCrossRegionRedirect as Ku, STREAM_POLICY_KEY as L, withoutSiblingOwned as La, malformedResourceEntriesWarning as Lc, getStackRecords as Li, findHandledUnwrittenCreateOnly as Ll, constructPathOf as Ln, IntrinsicFunctionResolver as Lo, acquireIdempotencyToken as Lr, referenceTokensIn as Ls, ECR_AUTO_DELETE_IMAGES_TAG as Lt, isCfnTemplateAssetPath as Lu, PROTECTION_PROPERTY_BY_TYPE as M, collectGroupsAddedBySiblings as Ma, unpreviewableOrphanRecords as Mc, DEFAULT_RESOURCE_TIMEOUT_MS as Mi, UNREADABLE_RESOURCES_MAP_ROW as Ml, createNoEchoValueMacs as Mn, deleteSkipReason as Mo, replacementCreateRoutesToCloudControl as Mr, outputReferenceProvenanceOf as Ms, TABLE_INDEX_NOUN as Mt, redirectDockerAsset as Mu, isProtectionValueActive as N, collectManagedPolicyArnsAttachedBySiblings as Na, unreadableOrphanRecords as Nc, DEFAULT_RESOURCE_WARN_AFTER_MS as Ni, displayLogicalId as Nl, noEchoMacBinding as Nn, withIndeterminateGuard as No, earliestDefined as Nr, recordedOutputReferenceRegions as Ns, deleteTableWithIndexBusyRetry as Nt, redirectFileAsset as Nu, serviceTokenBlockingReason as O, refusesFinalSnapshot as Oa, refuseMalformedOrphanRecords as Oc, collectDeclaredOutputNames as Oi, JSON_LISTING_HOLE_VALUE as Ol, DeploymentEventsReader as On, RollbackInlinePolicyWriters as Oo, undeclaredEmptyObservedKeys as Or, parseWebACLArn as Os, resolveDynamoDbDeleteBudgetClock as Ot, flattenAssetPlaceholders as Ou, perType as P, collectPrincipalsAttachingPolicy as Pa, isReadableResourceEntry as Pc, maskingRetryLogger as Pi, hasReadableOutputs as Pl, noEchoMacParametersOf as Pn, getReadOnlyPropertyPaths as Po, ledgerForStack as Pr, recordedProvenanceOf as Ps, maskedLogger as Pt, rewriteTemplateAssetReferences as Pu, isDynamoDBTableArnIn as Q, attemptedPolicyDocument as Qa, refuseMalformedResourcePropertiesForDrift as Qc, bold as Qi, hasUnverifiableParameterRefusal as Ql, parseMappingFile as Qn, applyRoleArnIfSet as Qo, isRedactedRecordedValue as Qr, isLegacyHandleId as Qs, removeSignalReceiverNamed as Qt, BOOTSTRAP_MARKER_PREFIX as Qu, STREAM_TAGS_KEY as R, KMS_DEFAULT_KEY_POLICY_ID as Ra, malformedScrubResourceEntriesRefusalMessage as Rc, withStackRecords as Ri, findSdkUnwiredProperties as Rl, findDestructiveChanges as Rn, isSelectOutOfBounds as Ro, planRollback as Rr, getAccountInfo as Rs, S3_AUTO_DELETE_OBJECTS_TAG as Rt, parseAssetManifestBody as Ru, hasPendingMovesOut as S, ATOMIC_FINAL_SNAPSHOT_TYPES as Sa, deployRefusesOrphanRowsReason as Sc, secretSafeKeyDisplay as Si, malformedStateRefusalMessage as Sl, journaledOrphanLines as Sn, localCustomResourceRuntimeActive as So, recordAfterRollbackUpdate as Sr, AWS_NO_VALUE as Ss, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as St, decodeListingKey as Su, refusePendingMovesOut as T, ccRoutedInstanceTakesNoSnapshot as Ta, malformedOrphanRecordsWarning as Tc, exportNameSecretExposure as Ti, refuseMalformedResourcesForExport as Tl, makeForeignHolderScan as Tn, waitForLambdaFunctionActive as To, calculateResourceDrift as Tr, refStateLookupFromResource as Ts, beginDeleteWait as Tt, buildAssetRedirectMap as Tu, reverseMapStreamPolicy as U, declaredPolicyDocument as Ua, refuseMalformedResourceEntriesForImport as Uc, supersededHeldByOtherTypeWarning as Ui, NO_CC_HANDLERS_REASON as Ul, rollbackOrphanIds as Un, APPSYNC_APIKEY_ARN_RESOURCE_PATH as Uo, planFailedOps as Ur, keepsSecretReferenceToken as Us, readRefactorMarker as Ut, ensureAssetStorage as Uu, planStreamMemberOps as V, SNS_DEFAULT_POLICY_ID as Va, refuseMalformedResourceEntriesForDeploy as Vc, isSupersededResourceRecord as Vi, withoutSdkUnwiredProperties as Vl, hintSidesOf as Vn, stackIdTailOf as Vo, isJournaledOrphan as Vr, isNamelessDynamicReferenceError as Vs, keptForRetainedRecord as Vt, warnWholeAssemblyAsSource as Vu, streamDeclaresPolicy as W, efsPolicyMatchesDeclared as Wa, refuseMalformedResourceEntriesForImportSave as Wc, supersededHolderOf as Wi, hasNoCloudControlHandlers as Wl, withMovedTo as Wn, displayPhysicalId as Wo, recheckFailedPlan as Wr, withSharedDrainBudget as Ws, readRefactorMarkerOnce as Wt, buildDenyExternalAccessPolicy as Wu, clearTagWrites as X, warnUnsettledMember as Xa, refuseMalformedResourceProperties as Xc, withPreviousPolicies as Xi, readOnlyStateVersionOf as Xl, looselyEqual as Xn, producerLookupOver as Xo, readsRegeneratingSecret as Xr, siblingsOf as Xs, deleteSignalReceiver as Xt, validateAssetBucketName as Xu, TAGS_BASELINE_REREAD_DELAYS_MS as Y, settleDeclaredMember as Ya, malformedResourcePropertiesWarning as Yc, resolveReplacementOldType as Yi, isKnownTokenFreeState as Yl, isPairableType as Yn, resolveDynamicReferences as Yo, attemptUsesCompletedCreate as Yr, replacementSidesForLog as Ys, updateRefactorMarker as Yt, readBootstrapMarkerBody as Yu, declaredTagsReadback as Z, verbatimEchoDriftKeys as Za, refuseMalformedResourcePropertiesForDestroy as Zc, findNestedStackTypeChanges as Zi, hasReasonlessBaselineRefusal as Zl, mappingPairs as Zn, refuseUnreadableCdkCrossAccountRefs as Zo, REDACTED_DELETE_ADDRESS_SKIP_REASON as Zr, LEGACY_HANDLE_ID_PREFIX as Zs, isReceiver as Zt, validateContainerRepoName as Zu, conditionFingerprint as _, secretNamedAttributeNamesOf as _a, parameterInputsFor as _c, WITHHELD_NAME_DISPLAY as _i, repairMalformedOutputsForReadOnly as _l, withNestedStackContext as _n, NO_LOCAL_CUSTOM_RESOURCES_FLAG as _o, replayRollback as _r, s3BucketRegionalDomainName as _s, planIndexContributorInsightsOps as _t, SSM_PARAMETER_VALUE_PREFIX as _u, scanActiveConsumers as a, noEchoComparisonForTemplate as aa, renderStatefulReason as ac, ownValue as ad, nameGenerationHighWaterOf as ai, malformedOrphansWarning as al, NESTED_PENDING_PARENT_REASON as an, WaitConditionSignalStore as ao, recordedRuleIdOf as ar, AWS_CREDENTIAL_ENV_KEYS as as, planTimeToLive as at, isNotImplemented as au, readRecordedConditionVerdicts as b, storedSecretNameNeedles as ba, declaresNoEcho as bc, secretBearing as bi, malformedRenderedContainersWarning as bl, dropFailedHint as bn, customResourcesRunWithoutApp as bo, earlyDeletedOld as br, isUnboundTemplateParameter as bs, reverseMapTableContributorInsights as bt, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as bu, nestedSsmNameDeferredNote as c, withAttemptedItemsMasked as ca, isWarmThroughputDecrease as cc, describeFileReadFailure as cd, retiredNameGenerationsAfter as ci, repairMalformedOrphansForReadOnly as cl, dropSettledNestedJournals as cn, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as co, siblingOwnedSgRuleIdentities as cr, envCredentialsAreAssumedRole as cs, planVectorIndexUpdates as ct, isSecretValuedAttribute as cu, slashedSsmNameHealAdoptedNote as d, journaledOrphanPrintingBag as da, getSettledWriteOnlyPropertyPaths as dc, renderAssemblyPathEscape as dd, getCurrentProducerRegions as di, malformedLocalOutputsWarning as dl, recordDisplacedSkips as dn, responsePresignClient as do, SG_RULE_ID_PATTERN as dr, producerRegionsFromState as ds, vectorIndexesSettled as dt, missingStateBucketRemedy as du, gray as ea, isPlainReferenceTo as ec, getCdkdContainerRepoName as ed, redactedDeleteAddressSkip as ei, refuseMalformedResourcePropertiesForOrphan as el, readsOnlyNoEchoParameters as en, CC_BROKEN_REASON as eo, proposeRenames as er, assertSendableRoleArn as es, settleWrittenTags as et, CrossPrefixReadError as eu, slashedSsmNameHealNote as f, maskEventTextWithBoundBags as fa, getTopLevelKeysHoldingUnreadableCreateOnly as fc, resolveAssemblyPath as fd, inheritProducerRegions as fi, malformedOutputsRefusalMessage as fl, revertNestedChildFromJournal as fn, TemplateNoEchoReresolver as fo, cfnIngressPortValue as fr, regionLessSecretName as fs, vectorIndexesShapeDetail as ft, findNestedTemplateTreeDefect as fu, makeCanonicalizePropertiesFn as g, secretNamePrintingBags as ga, movedMaskedProperties as gc, resourcesNamingDeclaredParameter as gi, refuseMalformedOutputsForDestroy as gl, getCurrentNestedStackContext as gn, withPrintingSecrets as go, replayFailedOperations as gr, s3BucketDualStackDomainName as gs, planContributorInsightsOp as gt, templateIdentity as gu, inheritedProvenanceForChildDiff as h, secretNamePrintingBag as ha, maskedPropertyFingerprintsOf as hc, reachableDivergentParameters as hi, refuseMalformedOutputs as hl, collectNestedChildUnaddressed as hn, getCurrentResourceSecrets as ho, canonicalizeIpProtocolValue as hr, s3BucketDomainName as hs, indexDeclaresContributorInsights as ht, renderNestedTemplateTreeDefect as hu, mergeNoChangeOutputs as i, noEchoAttributeNamesOf as ia, isStatefulRecreateTargetSync as ic, nullPrototypeRecord as id, nameGenerationCarriedFrom as ii, malformedOrphansRefusalMessage as il, resolvePendingCloudControlRequests as in, wouldReturnToSdkProvider as io, undeclaredGrantSiblingMembers as ir, sendableAssumeRoleCommand as is, isTtlRateLimited as it, isAccessDenied$1 as iu, recordedProtectionNote as j, buildFinalSnapshotIdentifier as ja, repairMalformedOrphanRecordsForReadOnly as jc, bindingSkippedOutputs as ji, STATE_RESOURCES_MALFORMED as jl, NOECHO_MAC_KEY_ALIAS as jn, deleteLeftInPlace as jo, findUpdatePolicyReplacementRefusals as jr, keepHeldTokenProvenance as js, INDEX_SETTLE_POLL_INTERVAL_MS as jt, loadPublishableAssetManifest as ju, diffSecurity as k, unsupportedFinalSnapshotError as ka, refuseMalformedOrphanRecordsForDestroy as kc, collectPublishedOutputNames as ki, accountArgs as kl, DeploymentEventsStore as kn, UNSPECIFIED_SKIP_REASON as ko, updatePartialMessage as kr, extractGetAttRefs as ks, resolveDynamoDbDeleteBudgetMs as kt, isDefaultBootstrapBucketName as ku, nestedSsmNameRowNote as l, createReadOnlyAttributeHealerFactory as la, toCfnInteger as lc, displayAssemblyPath as ld, retiredNameGenerationsLeaving as li, malformedExportNamesWarning as ll, getNestedRevertRun as ln, applyCustomResourceResponseExpiration as lo, siblingRecordedSgRuleIds as lr, classifyRecordedSecretRegion as ls, readbackVectorIndexes as lt, isSensitiveAttributeName as lu, crossStackOutputProvenanceSource as m, orphanRecordsPrintingBag as ma, inputFingerprinter as mc, resolveBucketRegion as md, namesAnyDeclaredParameter as mi, refuseMalformedNestedChildOutputs as ml, withNestedRevertRun as mn, isCustomResourceType as mo, sgProtocolKey as mr, s3BucketArn as ms, contributorInsightsRefusals as mt, listNestedTemplateRows as mu, isSecretBearingReferenceString as n, red as na, MULTI_REGION_RECREATE_BLOCKED_TYPES as nc, hasOwnKey as nd, removeProtectionTypeList as ni, UNREADABLE_ORPHANS_CONTAINER_ROW as nl, formatResourceLine as nn, ccBrokenReason as no, siblingOwnedRevertDesired as nr, isIamRoleArn as ns, takeTagWrite as nt, applyCrossPrefixScan as nu, inRunStackKey as o, noEchoExactEchoLeavesOf as oa, WARM_THROUGHPUT_MEMBERS as oc, absoluteAssemblyPathEscape as od, nameScopeOf as oi, refuseMalformedOrphans as ol, displacedOpClause as on, classifyHandleUrl as oo, sgRuleOwnershipIdentity as or, applyCallerIdentityCredentials as os, readTtlSpec as ot, stackInstanceIdOf as ou, slashedSsmNameHealPendingNote as p, namingSecretsWithRecordedNoEcho as pa, tryGetTopLevelWriteOnlyProperties as pc, clearBucketRegionCache as pd, computeParameterTaint as pi, malformedOutputsWarning as pl, revertedNestedRowIds as pn, readsNoEchoDeleteValues as po, recordedSgRuleId as pr, isUnexposedRecordedIdentity as ps, CONTRIBUTOR_INSIGHTS_KEY as pt, isAbsoluteAssetPath as pu, streamPolicyMatchesDeclared as q, policyDocumentMatchesDeclared as qa, unreadableResourceEntries as qc, replacedDeleteFailureVerdict as qi, S3StateBackend as ql, changedReferenceReason as qn, secretSegmentsOfState as qo, IMPLICIT_DELETE_DEPENDENCIES as qr, containsIntrinsic as qs, refuseRefactorMarker as qt, getBootstrapMarkerKey as qu, keptWholeReasonText as r, yellow as ra, isStatefulRecreateTargetForReplace as rc, hasPlainPrototype as rd, orphanNeedsIdentity as ri, hasReadableOrphans as rl, pendingRequestCount as rn, isCustomResource as ro, stripSiblingOwnedParentMembers as rr, parseIamRoleArn as rs, isTtlAlreadyDisabled as rt, crossPrefixDeniedWarning as ru, checkNestedSsmNames as s, noEchoParameterNamesOf as sa, coerceWarmThroughput as sc, assemblyPathEscape as sd, retiredAfterRollback as si, refuseMalformedOrphansForDestroy as sl, displacedPhysicalIdShown as sn, evaluateSignals as so, sgSiblingDecidedById as sr, callerEnvCredentials as ss, sendTtlWaitingOutRateLimit as st, withStackInstanceIdWithheld as su, DeployEngine as t, green as ta, shownType as tc, defineOwnKey as td, segmentCleanupOptions as ti, repairMalformedResourcePropertiesForReadOnly as tl, licensedNameHolder as tn, ProviderRegistry as to, referencedLogicalIds as tr, explicitRoleArnOrThrow as ts, tagsMatchDeclared as tt, CrossPrefixScanCache as tu, healSlashedSsmParameterNames as u, completedReplayEntries as ua, toFiniteNumber as uc, namesTheSameDirectory as ud, withNameGenerationReached as ui, malformedExportSourceWarning as ul, nestedChildStackName as un, customResourceResponseExpirationWarning as uo, withoutSiblingOwnedSgRules as ur, classifyReplaySecretRegion as us, vectorIndexesForCreate as ut, stringifyValue as uu, conditionInputsFrom as v, secretNamedRecordNeedles as va, maskedInputProof as vc, displayTextOrWithheld as vi, STATE_REGION_DIVERGED as vl, deleteJournaledOrphans as vn, customResourceStackName as vo, DELETED_RESOURCE_REMEDY as vr, s3BucketWebsiteUrl as vs, readContributorInsightsSpec as vt, isListParameterType as vu, pendingMovesRefusalMessage as w, ccRoutedFinalSnapshotError as wa, malformedOrphanRecordsRefusalMessage as wc, exportNameNoEchoParameters as wi, refuseMalformedResourcesForDestroy as wl, sameJournaledOrphans as wn, withCustomResourceStack as wo, withUnprovenUnsettled as wr, isStalePlaceholderArnAttribute as ws, DYNAMODB_DELETE_POLL_COST_MS as wt, synthesizedStacks as wu, childTemplateLoader as x, extractDeploymentEventError as xa, maskedPropertyFingerprint as xc, secretBearingStateKeyWarning as xi, malformedResourcesWarning as xl, isHandledOrphan as xn, localCustomResourceCommand as xo, buildReadCurrentStateContext as xr, parameterTypeMayLoseSecretIdentity as xs, stripIndexContributorInsights as xt, purgeNoncurrentKeyVersions as xu, parentSuppliedValues as y, stateSecretNameNeedles as ya, passedParameterClassesOf as yc, exportAliasCollisionScrubWarning as yi, refuseDivergentRecordRegionForDestroy as yl, dropFailedCommands as yn, customResourcesFailedWithoutApp as yo, earlyDeleteWhen as yr, coerceParameterTypedValue as ys, reverseMapIndexContributorInsights as yt, ssmResolvedValueType as yu, declaredStreamPolicyMember as z, LAMBDA_PERMISSION_STATEMENT_KEYS as za, refuseMalformedResourceAttributesForOrphan as zc, deleteSupersededEntry as zi, unwrittenCreateOnlyReplacement as zl, formatDestructiveChange as zn, isAlwaysLiveAttribute as zo, seedsDeleteFirstGuard as zr, isImpossibleEmptyStoredAttribute as zs, hasCdkAutoDeleteTag as zt, resolveFileAssetSourcePath as zu };
55301
+ //# sourceMappingURL=deploy-engine-XCVGar9z.js.map