@cdkd/cli 0.353.2 → 0.354.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-BoDpDYst.js → ambient-client-defaults-BDRSTcYT.js} +3 -3
  2. package/dist/{ambient-client-defaults-BoDpDYst.js.map → ambient-client-defaults-BDRSTcYT.js.map} +1 -1
  3. package/dist/{asg-provider-DkGLJwox.js → asg-provider-DhlT9esh.js} +427 -13
  4. package/dist/asg-provider-DhlT9esh.js.map +1 -0
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-Igdxgp4i.js → custom-resource-runtime-Awo4Qqci.js} +6 -6
  7. package/dist/{custom-resource-runtime-Igdxgp4i.js.map → custom-resource-runtime-Awo4Qqci.js.map} +1 -1
  8. package/dist/{db-associated-roles-bBNObiI3.js → db-associated-roles-vY4j5XbM.js} +2 -2
  9. package/dist/{db-associated-roles-bBNObiI3.js.map → db-associated-roles-vY4j5XbM.js.map} +1 -1
  10. package/dist/{delete-started-CPDnxn60.js → delete-started-Dzdlx4Og.js} +4 -4
  11. package/dist/{delete-started-CPDnxn60.js.map → delete-started-Dzdlx4Og.js.map} +1 -1
  12. package/dist/{deploy-engine-BQVJRB0k.js → deploy-engine-Th5M81Fb.js} +1008 -228
  13. package/dist/deploy-engine-Th5M81Fb.js.map +1 -0
  14. package/dist/{diff-calculator-Bc8nPqHj.js → diff-calculator-BHt-qLqK.js} +41 -17
  15. package/dist/diff-calculator-BHt-qLqK.js.map +1 -0
  16. package/dist/{update-policy-Bv1x6AOi.js → ec2-termination-protection-BhT7P1Qr.js} +157 -15
  17. package/dist/ec2-termination-protection-BhT7P1Qr.js.map +1 -0
  18. package/dist/{ecr-uri-C5N2MXQn.js → ecr-uri-B-QP8AHe.js} +2 -2
  19. package/dist/{ecr-uri-C5N2MXQn.js.map → ecr-uri-B-QP8AHe.js.map} +1 -1
  20. package/dist/{expected-bucket-owner-CmQxQ5sA.js → expected-bucket-owner-TY_MPzst.js} +2 -2
  21. package/dist/{expected-bucket-owner-CmQxQ5sA.js.map → expected-bucket-owner-TY_MPzst.js.map} +1 -1
  22. package/dist/{iam-role-provider-BWgMdmM2.js → iam-role-provider-KBcDwrRv.js} +8 -8
  23. package/dist/{iam-role-provider-BWgMdmM2.js.map → iam-role-provider-KBcDwrRv.js.map} +1 -1
  24. package/dist/{image-plan-BhSVrp0f.js → image-plan-BEsB3Dmo.js} +15 -18
  25. package/dist/image-plan-BEsB3Dmo.js.map +1 -0
  26. package/dist/index.d.ts +26 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/{logger-BYujCFZu.js → logger-B2SyJOAf.js} +2 -2
  30. package/dist/{logger-BYujCFZu.js.map → logger-B2SyJOAf.js.map} +1 -1
  31. package/dist/{neptune-provider-Cw6VRzy-.js → neptune-provider-BR3kEieW.js} +7 -7
  32. package/dist/{neptune-provider-Cw6VRzy-.js.map → neptune-provider-BR3kEieW.js.map} +1 -1
  33. package/dist/{program-DGykViOh.js → program-QwXOnrpm.js} +306 -85
  34. package/dist/program-QwXOnrpm.js.map +1 -0
  35. package/dist/{provider-classes-HgTwI8Ez.js → provider-classes-DMsbNzf6.js} +250 -66
  36. package/dist/provider-classes-DMsbNzf6.js.map +1 -0
  37. package/dist/{rds-provider-DwoeM58V.js → rds-provider-D1eagWNh.js} +10 -10
  38. package/dist/{rds-provider-DwoeM58V.js.map → rds-provider-D1eagWNh.js.map} +1 -1
  39. package/dist/{read-replica-YGp4k5-z.js → read-replica-BJFu-OeG.js} +3 -3
  40. package/dist/{read-replica-YGp4k5-z.js.map → read-replica-BJFu-OeG.js.map} +1 -1
  41. package/dist/{replacement-rules-fUZRFjHJ.js → replacement-rules-DhOfKveI.js} +3 -3
  42. package/dist/{replacement-rules-fUZRFjHJ.js.map → replacement-rules-DhOfKveI.js.map} +1 -1
  43. package/dist/{resource-deadline-BzTkGME1.js → resource-deadline-D_epAMej.js} +4 -4
  44. package/dist/{resource-deadline-BzTkGME1.js.map → resource-deadline-D_epAMej.js.map} +1 -1
  45. package/dist/{restore-source-guard-DRx3lyhr.js → restore-source-guard-B_-RdrjK.js} +4 -4
  46. package/dist/{restore-source-guard-DRx3lyhr.js.map → restore-source-guard-B_-RdrjK.js.map} +1 -1
  47. package/dist/{run-cli-BktZxh99.js → run-cli-ozO7hy96.js} +2 -2
  48. package/dist/{run-cli-BktZxh99.js.map → run-cli-ozO7hy96.js.map} +1 -1
  49. package/dist/{version-qyD3mVkG.js → version-snoNU0xA.js} +2 -2
  50. package/dist/{version-qyD3mVkG.js.map → version-snoNU0xA.js.map} +1 -1
  51. package/package.json +2 -1
  52. package/dist/asg-provider-DkGLJwox.js.map +0 -1
  53. package/dist/deploy-engine-BQVJRB0k.js.map +0 -1
  54. package/dist/diff-calculator-Bc8nPqHj.js.map +0 -1
  55. package/dist/image-plan-BhSVrp0f.js.map +0 -1
  56. package/dist/program-DGykViOh.js.map +0 -1
  57. package/dist/provider-classes-HgTwI8Ez.js.map +0 -1
  58. package/dist/update-policy-Bv1x6AOi.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-qyD3mVkG.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-BYujCFZu.js";
3
- import { A as stripControlChars, C as isNameCooldownError, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, K as wrapMaskedAwsError, L as isIamPropagationError, O as relayedNameCollision, P as isAmbiguousCcHandlerErrorCode, Q as AccountIdUnavailableError, S as isNameCollisionErrorFrom, T as isReplayedNameCollisionFrom, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as SelectOutOfBoundsRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, b as isUpdateUnsupportedError, et as CdkdError, i as credentialFingerprint, k as escapeRegExp$1, m as ExportInUseError, n as ambientCredentialConfig, nt as DeploymentNotApprovedError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, st as StateError, t as ambientClientDefaults, w as isRecreateRetryableError, z as isTransientServerError } from "./ambient-client-defaults-BoDpDYst.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-snoNU0xA.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-B2SyJOAf.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-BDRSTcYT.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 timePhaseSync, C as CREATE_ONLY_PATHS_SNAPSHOT, D as recordPhase, E as phaseTimingsEnabled, F as utf8ByteLength, M as jsonParseFailureStandIn, N as parseFailureDebugDetail, P as parseJsonNamingNoBody, S as withRetry, T as phaseScopeForStack, _ as describeTypeWithThrottleRetry, a as observeThenDisableInstanceApiTermination, b as reportAwsEmulatorRegistryMiss, f as getCreateOnlyPropertyPaths, g as parseCreateOnlyPropertyPointers, h as templateResourceTypes, i as isTerminationProtectionPropagationError, j as describeJsonParseFailure, k as timePhase, l as unchangedBehindSecretReference, m as prefetchCreateOnlyPropertyPaths, o as reDisableInstanceApiTermination, p as isIntrinsicShaped, r as ec2InstanceProtectionSite, s as reEnableInstanceApiTermination, t as ignoresUnmodifiedGroupSize, u as cachedCreateOnlyPropertyPaths, v as hasNoRegistrySchema, w as PhaseClock, x as IAM_PROPAGATION_MAX_DELAY_MS, y as isAwsEmulatorRegistryMiss } from "./update-policy-Bv1x6AOi.js";
6
+ import { A as withRetry, B as phaseTimingsEnabled, C as templateResourceTypes, D as isAwsEmulatorRegistryMiss, E as hasNoRegistrySchema, F as ignoresUnmodifiedGroupSize, G as describeJsonParseFailure, I as rollingUpdatePolicy, J as parseJsonNamingNoBody, K as jsonParseFailureStandIn, L as willReplaceGroup, M as INSTANCE_REFRESH_TRIGGER_PROPERTIES, N as REPLACEMENT_TRIGGER_PROPERTIES, O as reportAwsEmulatorRegistryMiss, R as PhaseClock, S as prefetchCreateOnlyPropertyPaths, T as describeTypeWithThrottleRetry, U as timePhase, V as recordPhase, W as timePhaseSync, Y as utf8ByteLength, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, b as getCreateOnlyPropertyPaths, d as markRefusedBeforeApplying, f as priorAttemptLookup, h as withPriorAttempts, i as observeThenDisableInstanceApiTermination, j as CREATE_ONLY_PATHS_SNAPSHOT, k as IAM_PROPAGATION_MAX_DELAY_MS, m as provenOrphanIdsInJournal, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as priorAttemptsInJournal, q as parseFailureDebugDetail, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs, u as isRefusedBeforeApplying, v as cachedCreateOnlyPropertyPaths, w as parseCreateOnlyPropertyPointers, x as isIntrinsicShaped, z as phaseScopeForStack } from "./ec2-termination-protection-BhT7P1Qr.js";
7
7
  import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
8
- import { $t as markCreatedBeforeFailure, Bt as isSecretDerivedValue, Dt as isInterruptedWaitError, Ft as resourceTypeShown, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, Jt as createdResourceIdentityBeforeFailure, K as resolveExplicitPhysicalId, Lt as stateOrphanRecordRemedy, Nt as logicalIdShown, Ot as startInterruptWatch, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, Rt as createMaskedLogSinks, St as protectedReplacementAdvice, T as withUnchangedSecretPrincipalLists, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, Wt as RETRY_AUXILIARY_OWNER, X as markNotGone, Xt as isAuxiliaryFailure, Y as isMarkedNotGone, Z as compensateProtectionFlip, Zt as isAuxiliaryMarkOf, _t as DELETION_PROTECTION_DOC_POINTER, d as CreatedResourceSink, dn as CUSTOM_RESOURCE_RESPONSE_PREFIX, dt as isTerminalDeleteFailure, et as observeThenDisableProtection, f as clearCreatedReport, fn as DEFAULT_STATE_PREFIX, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, gt as monotonicNowMs, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, i as withResourceDeadline, jt as compositeIdSeparatorRefusal, kt as canonicalizeRoute53QueryName, ln as recoveryCommandFlags, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, o as prepareRemovalForUpdate, p as collectCreatedResources, pt as runDeleteAttempt, q as RESOURCE_NOT_FOUND, qt as createdBeforeFailure, r as whileEnclosingDeadlinesPaused, s as removalWarning, t as enclosingDeadlineExpired, u as withoutInjectedRemovals, un as sanitizeRecoveryValue, ut as ProtectionFlipRegistry, xt as pasteableAwsCommand, yn as producerRecordKey, zt as createMaskedRetryLogger } from "./resource-deadline-BzTkGME1.js";
9
- import { t as expectedOwnerParam } from "./expected-bucket-owner-CmQxQ5sA.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-CPDnxn60.js";
11
- import { $t as recordInheritedParameterValue, A as witnessNormalize, An as recordNoEchoAttributeValues, At as withoutPhysicalNameCopies, B as redactionClaimOf, Cn as noEchoParameterPlaintextsOf, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dn as recordFreshNoEchoValuesIn, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, En as recordDerivedMaskOnlyValue, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, G as foldRecording, Gt as recordTakenIfBranch, H as mixedLiteralAnswered, Ht as splitOutsideDynamicReferences, I as markSameGenerationBag, In as isDynamicReferenceString, It as secretRerenderPairs, J as hasPassProvenance, Jt as templateRereadsAccountId, K as openRecordingScope, Kt as inheritedPseudoValue, L as mergeResolvedPairs, Ln as isSingleDynamicReferenceToken, M as carryRedactionMarks, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as withoutNoEchoParameterEntries, Q as recordReferenceResolution, Qt as recordInheritedParameterRead, R as recordIntrinsicLeafResolution, Rn as maskMatchSpans, S as noEchoParametersReadBy, Sn as markNoEchoParameterClass, St as replaceWholeLeaves, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as standsForInheritedSecret, V as resolvedPlaintextOf, Vt as rereadParameterExpression, W as redactForState, Wt as recordDroppedArrayElements, X as passReadVersionsFor, Xt as inheritedParameterExpression, Y as passProvenanceFor, Yt as inheritNestedStackParameterAssociations, Z as recordReferenceProvenanceEntry, Zt as inheritedRenderedToken, _ as noEchoComparison, _n as freshNoEchoValuesOf, _t as maskSecretsInText, an as recordRecoverableMaskedOutput, at as literalSplitDelimitersOf, bn as isScopedSecretVerdict, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, ct as recordLogOnlyParameterValue, d as canonicalJson$5, dn as crossStackSourceKey, dt as shareLogOnlyValues, en as redactInheritedParameterValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordCrossStackExpression, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as contradictProvenPublicExpression, gt as maskSecretsInError, h as maskWholeValue, hn as carryFreshNoEchoMark, ht as maskRecordedSecretsInText, in as freshNoEchoLeafPositions, it as hasMaskableValues, jn as recordNoEchoParameterFreshValue, jt as spanNamesResolvableService, k as valueAtCoordinate, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nn as carriesFreshNoEchoValue, nt as createUnionSecretMasker, on as recoverMaskedOutput, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, q as recordSecretResolution, qt as recordInheritedPseudoParameters, rn as embedsFreshNoEchoValue, rt as hasLogOnlyValues, sn as physicalNameCopiesOf, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as withdrawRenderedParameterSpelling, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isMaskOnlyPlaintext, vt as differingStringLeaves, w as readbackPathFor, wn as pinScopedSecretVerdict, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as isSecretExpressionByVerdictOrSpelling, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isNoEchoParameterPlaintext, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as arrayPairsWhateverDrops } from "./replacement-rules-fUZRFjHJ.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-DRx3lyhr.js";
8
+ import { $t as markCreatedBeforeFailure, Bt as isSecretDerivedValue, Dt as isInterruptedWaitError, Ft as resourceTypeShown, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, Jt as createdResourceIdentityBeforeFailure, K as resolveExplicitPhysicalId, Lt as stateOrphanRecordRemedy, Nt as logicalIdShown, Ot as startInterruptWatch, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, Rt as createMaskedLogSinks, St as protectedReplacementAdvice, T as withUnchangedSecretPrincipalLists, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, Wt as RETRY_AUXILIARY_OWNER, X as markNotGone, Xt as isAuxiliaryFailure, Y as isMarkedNotGone, Z as compensateProtectionFlip, Zt as isAuxiliaryMarkOf, _t as DELETION_PROTECTION_DOC_POINTER, d as CreatedResourceSink, dn as CUSTOM_RESOURCE_RESPONSE_PREFIX, dt as isTerminalDeleteFailure, et as observeThenDisableProtection, f as clearCreatedReport, fn as DEFAULT_STATE_PREFIX, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, gt as monotonicNowMs, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, i as withResourceDeadline, jt as compositeIdSeparatorRefusal, kt as canonicalizeRoute53QueryName, ln as recoveryCommandFlags, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, o as prepareRemovalForUpdate, p as collectCreatedResources, pt as runDeleteAttempt, q as RESOURCE_NOT_FOUND, qt as createdBeforeFailure, r as whileEnclosingDeadlinesPaused, s as removalWarning, t as enclosingDeadlineExpired, u as withoutInjectedRemovals, un as sanitizeRecoveryValue, ut as ProtectionFlipRegistry, xt as pasteableAwsCommand, yn as producerRecordKey, zt as createMaskedRetryLogger } from "./resource-deadline-D_epAMej.js";
9
+ import { t as expectedOwnerParam } from "./expected-bucket-owner-TY_MPzst.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-Dzdlx4Og.js";
11
+ import { $t as recordInheritedParameterValue, A as witnessNormalize, An as recordNoEchoAttributeValues, At as withoutPhysicalNameCopies, B as redactionClaimOf, Cn as noEchoParameterPlaintextsOf, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dn as recordFreshNoEchoValuesIn, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, En as recordDerivedMaskOnlyValue, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, G as foldRecording, Gt as recordTakenIfBranch, H as mixedLiteralAnswered, Ht as splitOutsideDynamicReferences, I as markSameGenerationBag, In as isDynamicReferenceString, It as secretRerenderPairs, J as hasPassProvenance, Jt as templateRereadsAccountId, K as openRecordingScope, Kt as inheritedPseudoValue, L as mergeResolvedPairs, Ln as isSingleDynamicReferenceToken, M as carryRedactionMarks, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as withoutNoEchoParameterEntries, Q as recordReferenceResolution, Qt as recordInheritedParameterRead, R as recordIntrinsicLeafResolution, Rn as maskMatchSpans, S as noEchoParametersReadBy, Sn as markNoEchoParameterClass, St as replaceWholeLeaves, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as standsForInheritedSecret, V as resolvedPlaintextOf, Vt as rereadParameterExpression, W as redactForState, Wt as recordDroppedArrayElements, X as passReadVersionsFor, Xt as inheritedParameterExpression, Y as passProvenanceFor, Yt as inheritNestedStackParameterAssociations, Z as recordReferenceProvenanceEntry, Zt as inheritedRenderedToken, _ as noEchoComparison, _n as freshNoEchoValuesOf, _t as maskSecretsInText, an as recordRecoverableMaskedOutput, at as literalSplitDelimitersOf, bn as isScopedSecretVerdict, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, ct as recordLogOnlyParameterValue, d as canonicalJson$5, dn as crossStackSourceKey, dt as shareLogOnlyValues, en as redactInheritedParameterValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordCrossStackExpression, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as contradictProvenPublicExpression, gt as maskSecretsInError, h as maskWholeValue, hn as carryFreshNoEchoMark, ht as maskRecordedSecretsInText, in as freshNoEchoLeafPositions, it as hasMaskableValues, jn as recordNoEchoParameterFreshValue, jt as spanNamesResolvableService, k as valueAtCoordinate, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nn as carriesFreshNoEchoValue, nt as createUnionSecretMasker, on as recoverMaskedOutput, 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-DhOfKveI.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-B_-RdrjK.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";
@@ -82,7 +82,7 @@ async function resolveBucketRegion(bucketName, opts = {}) {
82
82
  });
83
83
  }
84
84
  try {
85
- const { expectedOwnerParam } = await import("./expected-bucket-owner-CmQxQ5sA.js").then((n) => n.n);
85
+ const { expectedOwnerParam } = await import("./expected-bucket-owner-TY_MPzst.js").then((n) => n.n);
86
86
  return (await client.send(new GetBucketLocationCommand({
87
87
  Bucket: bucketName,
88
88
  ...await expectedOwnerParam(client)
@@ -9780,6 +9780,7 @@ function backfillMaskedPropertyFingerprints(resources, template, noEchoParameter
9780
9780
  const writeOnlyPropertiesCache = /* @__PURE__ */ new Map();
9781
9781
  const settledWriteOnlyProperties = /* @__PURE__ */ new Map();
9782
9782
  const settledUnreadableCreateOnlyPaths = /* @__PURE__ */ new Map();
9783
+ const settledWriteOnlyPaths = /* @__PURE__ */ new Map();
9783
9784
  function getTopLevelWriteOnlyProperties(resourceType) {
9784
9785
  if (hasNoRegistrySchema(resourceType)) return Promise.resolve(/* @__PURE__ */ new Set());
9785
9786
  const cached = writeOnlyPropertiesCache.get(resourceType);
@@ -9833,6 +9834,7 @@ async function fetchTopLevelWriteOnlyProperties(resourceType) {
9833
9834
  for (const createOnly of parseCreateOnlyPropertyPointers(parsed.createOnlyProperties)) if (paths.some((writeOnly) => pathCovers(writeOnly, createOnly) || pathCovers(createOnly, writeOnly))) unreadableCreateOnlyPaths.push(createOnly);
9834
9835
  }
9835
9836
  settledUnreadableCreateOnlyPaths.set(resourceType, unreadableCreateOnlyPaths);
9837
+ settledWriteOnlyPaths.set(resourceType, paths);
9836
9838
  logger.debug(`Resolved ${result.size} top-level write-only properties for ${resourceType}` + (result.size > 0 ? `: ${[...result].join(", ")}` : ""));
9837
9839
  return result;
9838
9840
  }
@@ -9841,6 +9843,9 @@ function getTopLevelKeysHoldingUnreadableCreateOnly(resourceType, properties) {
9841
9843
  for (const path of settledUnreadableCreateOnlyPaths.get(resourceType) ?? []) if (holdsValueAt(properties, path)) result.add(path[0]);
9842
9844
  return result;
9843
9845
  }
9846
+ function getSettledWriteOnlyPropertyPaths(resourceType) {
9847
+ return settledWriteOnlyPaths.get(resourceType) ?? [];
9848
+ }
9844
9849
  function holdsValueAt(node, path) {
9845
9850
  if (path.length === 0) return node !== void 0 && node !== null;
9846
9851
  const [segment, ...rest] = path;
@@ -17656,6 +17661,13 @@ async function getTopLevelDeployAttributeNames(resourceType) {
17656
17661
  }
17657
17662
  function getTopLevelReadOnlyProperties(resourceType) {
17658
17663
  if (hasNoRegistrySchema(resourceType)) return Promise.resolve(void 0);
17664
+ return readOnlySchemaPaths(resourceType).then((schema) => schema?.topLevel);
17665
+ }
17666
+ function getReadOnlyPropertyPaths(resourceType) {
17667
+ if (hasNoRegistrySchema(resourceType)) return Promise.resolve(void 0);
17668
+ return readOnlySchemaPaths(resourceType).then((schema) => schema?.paths);
17669
+ }
17670
+ function readOnlySchemaPaths(resourceType) {
17659
17671
  const cached = readOnlyPropertiesCache.get(resourceType);
17660
17672
  if (cached) return cached;
17661
17673
  const entry = fetchTopLevelReadOnlyProperties(resourceType).catch((error) => {
@@ -17671,16 +17683,24 @@ async function fetchTopLevelReadOnlyProperties(resourceType) {
17671
17683
  const logger = getLogger().child("ReadOnlyProperties");
17672
17684
  const response = await describeTypeWithThrottleRetry(resourceType);
17673
17685
  const result = /* @__PURE__ */ new Set();
17686
+ const paths = [];
17674
17687
  if (response.Schema) {
17675
17688
  const readOnly = JSON.parse(response.Schema).readOnlyProperties;
17676
17689
  if (Array.isArray(readOnly)) for (const path of readOnly) {
17677
17690
  if (typeof path !== "string") continue;
17678
17691
  const match = /^\/properties\/([^/]+)/.exec(path);
17679
- if (match?.[1]) result.add(unescapeJsonPointerSegment(match[1]));
17692
+ if (match?.[1]) {
17693
+ result.add(unescapeJsonPointerSegment(match[1]));
17694
+ const segments = path.slice(12).split("/").map(unescapeJsonPointerSegment);
17695
+ if (segments.every((segment) => segment !== "" && segment !== "*" && !segment.includes(".") && !segment.endsWith("[]"))) paths.push(segments.join("."));
17696
+ }
17680
17697
  }
17681
17698
  }
17682
17699
  logger.debug(`Resolved ${result.size} top-level read-only properties for ${displaySafe(resourceType, { asciiOnly: true })}` + (result.size > 0 ? `: ${[...result].join(", ")}` : ""));
17683
- return result;
17700
+ return {
17701
+ topLevel: result,
17702
+ paths
17703
+ };
17684
17704
  }
17685
17705
  function unescapeJsonPointerSegment(segment) {
17686
17706
  return segment.replace(/~1/g, "/").replace(/~0/g, "~");
@@ -18012,6 +18032,461 @@ function withCarriedCreateOnlyMembers(patch, gaps, liveModel) {
18012
18032
  });
18013
18033
  }
18014
18034
 
18035
+ // src/provisioning/cloud-control/caller-identity.ts
18036
+ const CALLER_PRINCIPAL_MASK = "<caller-principal>";
18037
+ const ACCOUNT_ID_MASK = "<account-id>";
18038
+ const NAME = String.raw`[\w+=,.@-]*[\w+=@-]`;
18039
+ const PARTITION = String.raw`aws[a-z-]*`;
18040
+ const STS_SESSION_PRINCIPAL = new RegExp(String.raw`\barn:${PARTITION}:sts::\d{12}:(?:assumed-role/${NAME}/${NAME}|federated-user/${NAME})`, "g");
18041
+ const IAM_PRINCIPAL = String.raw`arn:${PARTITION}:iam::\d{12}:(?:(?:user|role)/(?:[!-.0-~]+/)*${NAME}|root)`;
18042
+ const IAM_DENIED_AFTER_USER = new RegExp(String.raw`(\bUser:\s*)${IAM_PRINCIPAL}`, "g");
18043
+ const IAM_DENIED_AFTER_LEAD_IN = new RegExp(String.raw`(\b(?:Not authorized|Access denied|AccessDenied):\s*)${IAM_PRINCIPAL}`, "gi");
18044
+ const IAM_DENIED_BEFORE_VERB = new RegExp(String.raw`\b${IAM_PRINCIPAL}(?=\s+is not authorized)`, "g");
18045
+ const PRINCIPAL_UNIQUE_ID = new RegExp(String.raw`\b(?:AROA|AIDA|ASIA|AKIA)[A-Z0-9]{16,17}\b(?::${NAME})?`, "g");
18046
+ const ACCOUNT_IN_ARN = new RegExp(String.raw`(\barn:${PARTITION}:[^:\s]*:[^:\s]*:)\d{12}(?=:)`, "g");
18047
+ const ACCOUNT_AFTER_WORD = /((?:\b(?:account(?:[ _-]?(?:id|number))?s?|principal(?:[ _-]?id)?|owner(?:[ _-]?id)?)\b|"AWS")[\s:='"#([]*)\d{12}(?![0-9A-Za-z])/gi;
18048
+ const ACCOUNT_LIST_NEXT = new RegExp(String.raw`(${ACCOUNT_ID_MASK}['"]\s*,\s*['"])\d{12}(?![0-9A-Za-z])`, "g");
18049
+ const ACCOUNT_IN_NAME = /(?<![0-9A-Za-z])(?<![0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-)(?:(?<=[A-Za-z][-_]|\/)\d{12}(?![0-9A-Za-z])|\d{12}(?=[-_.:][A-Za-z]|\/))/g;
18050
+ function maskCallerIdentity(text) {
18051
+ let masked = text.replace(STS_SESSION_PRINCIPAL, CALLER_PRINCIPAL_MASK).replace(IAM_DENIED_AFTER_USER, `$1${CALLER_PRINCIPAL_MASK}`).replace(IAM_DENIED_AFTER_LEAD_IN, `$1${CALLER_PRINCIPAL_MASK}`).replace(IAM_DENIED_BEFORE_VERB, CALLER_PRINCIPAL_MASK).replace(PRINCIPAL_UNIQUE_ID, CALLER_PRINCIPAL_MASK).replace(ACCOUNT_IN_ARN, `$1${ACCOUNT_ID_MASK}`).replace(ACCOUNT_AFTER_WORD, `$1${ACCOUNT_ID_MASK}`).replace(ACCOUNT_IN_NAME, ACCOUNT_ID_MASK);
18052
+ let previous;
18053
+ do {
18054
+ previous = masked;
18055
+ masked = masked.replace(ACCOUNT_LIST_NEXT, `$1${ACCOUNT_ID_MASK}`);
18056
+ } while (masked !== previous);
18057
+ return masked;
18058
+ }
18059
+ function handlerAuthFailureHint(statusMessage) {
18060
+ const match = /\(Service:\s*([A-Za-z0-9._-]+)[,;]\s*Status Code:\s*403[,;)]/i.exec(statusMessage);
18061
+ if (!match) return "";
18062
+ const service = match[1] ?? "";
18063
+ if (/cloudcontrol/i.test(service)) return "";
18064
+ return ` [hint: this 403 was returned by ${service} to the AWS-managed resource handler running the operation, not to cdkd directly — these credentials already passed Cloud Control's own auth to start it. If the equivalent ${service} API call succeeds with the same credentials, the resource handler itself is failing (an upstream AWS issue worth retrying later), not your local credential setup.]`;
18065
+ }
18066
+ const MAX_LOGGED_MODEL_KEYS = 12;
18067
+ function describeJsonKeys(document) {
18068
+ const keys = [];
18069
+ const seen = /* @__PURE__ */ new Set();
18070
+ const pattern = /"([^"\\]{1,64})"\s*:/g;
18071
+ let match;
18072
+ while ((match = pattern.exec(document)) !== null) {
18073
+ const key = match[1];
18074
+ if (seen.has(key)) continue;
18075
+ seen.add(key);
18076
+ keys.push(key);
18077
+ if (keys.length >= 12) break;
18078
+ }
18079
+ if (keys.length === 0) return "no readable key names";
18080
+ const suffix = pattern.lastIndex < document.length && keys.length >= 12 ? ", ..." : "";
18081
+ return `keys: ${keys.join(", ")}${suffix}`;
18082
+ }
18083
+
18084
+ // src/provisioning/cloud-control/codedeploy-alias-update.ts
18085
+ const CODEDEPLOY_ALIAS_POLICY_KEY = "CodeDeployLambdaAliasUpdate";
18086
+ const SHIFT_OVERHEAD_RESERVE_MS = 3e5;
18087
+ const CODEDEPLOY_POLL_MS = 15e3;
18088
+ const ACTIVE_DEPLOYMENT_STATUSES = [
18089
+ "Created",
18090
+ "Queued",
18091
+ "InProgress",
18092
+ "Baking",
18093
+ "Ready"
18094
+ ];
18095
+ function clockOf(host) {
18096
+ return () => host.now?.() ?? Date.now();
18097
+ }
18098
+ function isObject$3(value) {
18099
+ return typeof value === "object" && value !== null && !Array.isArray(value);
18100
+ }
18101
+ function nonEmptyString$1(value) {
18102
+ return typeof value === "string" && value.length > 0 ? value : void 0;
18103
+ }
18104
+ function readAliasDeploymentPolicy(updatePolicy) {
18105
+ const policy = updatePolicy?.[CODEDEPLOY_ALIAS_POLICY_KEY];
18106
+ if (policy === void 0) return void 0;
18107
+ if (!isObject$3(policy)) return { unusable: "it is not an object" };
18108
+ const applicationName = nonEmptyString$1(policy["ApplicationName"]);
18109
+ const deploymentGroupName = nonEmptyString$1(policy["DeploymentGroupName"]);
18110
+ if (applicationName === void 0 || deploymentGroupName === void 0) return { unusable: "its ApplicationName and DeploymentGroupName must both be names" };
18111
+ const hooks = {};
18112
+ for (const key of ["BeforeAllowTrafficHook", "AfterAllowTrafficHook"]) {
18113
+ const value = policy[key];
18114
+ if (value === void 0 || value === null) continue;
18115
+ const name = nonEmptyString$1(value);
18116
+ if (name === void 0) return { unusable: `its ${key} must be a function name` };
18117
+ hooks[key] = name;
18118
+ }
18119
+ return {
18120
+ applicationName,
18121
+ deploymentGroupName,
18122
+ ...hooks["BeforeAllowTrafficHook"] !== void 0 && { beforeAllowTrafficHook: hooks["BeforeAllowTrafficHook"] },
18123
+ ...hooks["AfterAllowTrafficHook"] !== void 0 && { afterAllowTrafficHook: hooks["AfterAllowTrafficHook"] }
18124
+ };
18125
+ }
18126
+ function versionText(value) {
18127
+ const text = typeof value === "number" ? String(value) : value;
18128
+ return typeof text === "string" && /^[1-9][0-9]*$/.test(text) ? text : void 0;
18129
+ }
18130
+ function functionNameOf(physicalId, functionName) {
18131
+ const fromArn = (arn) => {
18132
+ const parts = arn.split(":");
18133
+ return parts.length >= 7 && parts[0] === "arn" && parts[5] === "function" ? nonEmptyString$1(parts[6]) : void 0;
18134
+ };
18135
+ const fromId = fromArn(physicalId);
18136
+ if (fromId !== void 0) return fromId;
18137
+ const declared = nonEmptyString$1(functionName);
18138
+ if (declared === void 0) return void 0;
18139
+ if (declared.startsWith("arn:")) return fromArn(declared);
18140
+ const parts = declared.split(":");
18141
+ return parts[1] === "function" ? nonEmptyString$1(parts[2]) : nonEmptyString$1(parts[0]);
18142
+ }
18143
+ function aliasAppSpec(resourceName, functionName, aliasName, currentVersion, targetVersion, policy) {
18144
+ const hooks = [];
18145
+ if (policy.beforeAllowTrafficHook !== void 0) hooks.push({ BeforeAllowTraffic: policy.beforeAllowTrafficHook });
18146
+ if (policy.afterAllowTrafficHook !== void 0) hooks.push({ AfterAllowTraffic: policy.afterAllowTrafficHook });
18147
+ return `{"version":0.0,${JSON.stringify({
18148
+ Resources: [{ [resourceName]: {
18149
+ Type: "AWS::Lambda::Function",
18150
+ Properties: {
18151
+ Name: functionName,
18152
+ Alias: aliasName,
18153
+ CurrentVersion: currentVersion,
18154
+ TargetVersion: targetVersion
18155
+ }
18156
+ } }],
18157
+ ...hooks.length > 0 && { Hooks: hooks }
18158
+ }).slice(1)}`;
18159
+ }
18160
+ function deploymentWaitCapMs(resourceType, elapsedMs = 0) {
18161
+ const { timeoutMs, marginMs } = deploymentTimeouts(resourceType);
18162
+ return Math.max(0, timeoutMs - marginMs - Math.max(0, elapsedMs));
18163
+ }
18164
+ function settleWaitCapMs(resourceType, elapsedMs = 0) {
18165
+ const { marginMs } = deploymentTimeouts(resourceType);
18166
+ return Math.max(deploymentWaitCapMs(resourceType, elapsedMs), marginMs - 3e4, 0);
18167
+ }
18168
+ function deploymentTimeouts(resourceType) {
18169
+ const timeoutMs = resolvedResourceTimeoutMs(resourceType) ?? 18e5;
18170
+ return {
18171
+ timeoutMs,
18172
+ marginMs: Math.min(12e4, Math.floor(timeoutMs / 10))
18173
+ };
18174
+ }
18175
+ async function shiftAliasThroughCodeDeploy(host, input, again) {
18176
+ const stoppedOwn = again !== void 0;
18177
+ const { logicalId, physicalId, resourceType, properties, previousProperties, context, mask } = input;
18178
+ if (resourceType !== "AWS::Lambda::Alias") return "none";
18179
+ const read = readAliasDeploymentPolicy(context?.updatePolicy);
18180
+ if (read === void 0) return "none";
18181
+ const desiredVersion = properties["FunctionVersion"];
18182
+ if (String(desiredVersion) === String(previousProperties["FunctionVersion"])) return "none";
18183
+ const replaying = context?.replayingState === true;
18184
+ const fail = (text, cause) => markNonRetryable(new ProvisioningError(mask(`Failed to update Lambda alias ${logicalId}: ${text}`), resourceType, logicalId, physicalId, cause instanceof Error ? cause : void 0));
18185
+ const earlierDeployment = host.startedAliasDeployments.has(physicalId);
18186
+ const refuse = (text, cause) => earlierDeployment ? fail(text, cause) : markRefusedBeforeApplying(fail(text, cause));
18187
+ const unusable = (text) => {
18188
+ if (!replaying) throw refuse(`UpdatePolicy ${CODEDEPLOY_ALIAS_POLICY_KEY} cannot be applied: ${text}. Fix the template, or deploy without --update-policy to switch the alias directly.`);
18189
+ host.logger.warn(mask(`${logicalId}: UpdatePolicy ${CODEDEPLOY_ALIAS_POLICY_KEY} cannot be applied on the rollback (${text}); the alias is switched directly.`));
18190
+ return "none";
18191
+ };
18192
+ if ("unusable" in read) return unusable(read.unusable);
18193
+ const policy = read;
18194
+ const targetVersion = versionText(desiredVersion);
18195
+ if (targetVersion === void 0) return unusable("the new FunctionVersion is not a published version number");
18196
+ const aliasName = nonEmptyString$1(properties["Name"]);
18197
+ const functionName = functionNameOf(physicalId, properties["FunctionName"]);
18198
+ if (aliasName === void 0 || functionName === void 0) return unusable("the alias Name or FunctionName could not be read");
18199
+ const now = clockOf(host);
18200
+ const startedAt = again?.startedAt ?? now();
18201
+ const clients = await host.codeDeployAliasClients();
18202
+ try {
18203
+ let liveError;
18204
+ const live = await liveAliasState(clients, functionName, aliasName, (error) => {
18205
+ liveError = error;
18206
+ host.logger.debug(mask(`GetAlias for ${logicalId} failed: ${maskCallerIdentity(describeAwsFailure(error).detail)}`));
18207
+ });
18208
+ if (live === void 0 && liveError instanceof Error && isRetryableTransientError(liveError, liveError.message)) throw markRedactedCause(new ProvisioningError(mask(`Failed to update Lambda alias ${logicalId}: lambda:GetAlias failed transiently.`), resourceType, logicalId, physicalId, liveError));
18209
+ const active = await activeDeployments(clients, policy, mask, host, logicalId);
18210
+ if (active === UNREADABLE) throw refuse(`cdkd could not list the running deployments of deployment group ${policy.deploymentGroupName}, so it cannot tell whether one is running. Grant codedeploy:ListDeployments, then ${replaying ? "run the rollback again" : "deploy again"}.`);
18211
+ if (active.length > 0) {
18212
+ const ours = host.startedAliasDeployments.get(physicalId);
18213
+ if (stoppedOwn || !replaying || ours === void 0 || !active.includes(ours)) throw refuse(`deployment ${active.join(", ")} is already running on deployment group ${policy.deploymentGroupName}, and CodeDeploy runs one at a time. Wait for it to finish or stop it, then ${replaying ? "run the rollback again" : "deploy again"}.`);
18214
+ host.logger.info(mask(`${logicalId}: stopping CodeDeploy deployment ${ours}, still running from the failed deploy, before reverting the alias.`));
18215
+ await stopDeployment(clients, ours, host, logicalId, mask);
18216
+ await settleGroup(clients, policy, host, logicalId, mask, settleWaitCapMs(resourceType, now() - startedAt));
18217
+ return await shiftAliasThroughCodeDeploy(host, input, { startedAt });
18218
+ }
18219
+ if (live === void 0 || live.version === void 0) return unusable("the alias's current version could not be read (lambda:GetAlias), so the deployment's CurrentVersion is unknown");
18220
+ let weighted = live.weighted;
18221
+ if (weighted && replaying && properties["RoutingConfig"] == null) {
18222
+ await clearRoutingConfig(clients, functionName, aliasName, fail);
18223
+ host.logger.info(mask(`${logicalId}: cleared the traffic split a stopped deployment left on the alias.`));
18224
+ weighted = false;
18225
+ }
18226
+ const currentVersion = live.version;
18227
+ if (currentVersion === targetVersion) {
18228
+ host.logger.debug(mask(`${logicalId}: the alias already serves version ${targetVersion}; no deployment`));
18229
+ if (weighted && properties["RoutingConfig"] == null) host.logger.warn(mask(`${logicalId}: the alias serves version ${targetVersion} but still splits traffic to other versions (RoutingConfig) with no CodeDeploy deployment running; cdkd leaves the split as it is.`));
18230
+ return "shifted";
18231
+ }
18232
+ const totalMs = await trafficShiftMs(clients, policy, host, logicalId, mask);
18233
+ const capAtStart = deploymentWaitCapMs(resourceType, now() - startedAt);
18234
+ if (totalMs !== void 0 && totalMs + 3e5 >= capAtStart) {
18235
+ const minutes = Math.ceil((totalMs + SHIFT_OVERHEAD_RESERVE_MS) / 6e4) + 5;
18236
+ const tooLong = `the deployment group's configuration shifts traffic over ${formatDuration(totalMs)}, which with ${formatDuration(SHIFT_OVERHEAD_RESERVE_MS)} for the deployment's start-up and hooks does not fit the ${formatDuration(capAtStart)} the resource timeout leaves for it`;
18237
+ if (!replaying) throw refuse(`UpdatePolicy ${CODEDEPLOY_ALIAS_POLICY_KEY}: ${tooLong}. Raise the timeout with --resource-timeout ${resourceType}=${minutes}m, or deploy without --update-policy to switch the alias directly.`);
18238
+ host.logger.warn(mask(`${logicalId}: on the rollback, ${tooLong}; the alias is switched directly, without the gradual shift and with its hooks skipped.`));
18239
+ return "none";
18240
+ }
18241
+ const content = aliasAppSpec(logicalId, functionName, aliasName, currentVersion, targetVersion, policy);
18242
+ let deploymentId;
18243
+ try {
18244
+ deploymentId = await createDeployment(clients, host, policy, content);
18245
+ } catch (error) {
18246
+ throw refuse(`CodeDeploy did not start the deployment on deployment group ${policy.deploymentGroupName}: ${maskCallerIdentity(describeAwsFailure(error).detail)}`, error);
18247
+ }
18248
+ host.startedAliasDeployments.set(physicalId, deploymentId);
18249
+ host.logger.info(mask(`${logicalId}: UpdatePolicy ${CODEDEPLOY_ALIAS_POLICY_KEY}: CodeDeploy deployment ${deploymentId} started (version ${currentVersion} -> ${targetVersion}, deployment group ${policy.deploymentGroupName}).`));
18250
+ const capMs = deploymentWaitCapMs(resourceType, now() - startedAt);
18251
+ const ended = await waitForDeployment(clients, host, deploymentId, capMs, logicalId, mask, policy);
18252
+ if (ended.status === "Succeeded") {
18253
+ host.logger.info(mask(`${logicalId}: CodeDeploy deployment ${deploymentId} succeeded.`));
18254
+ return "shifted";
18255
+ }
18256
+ if (ended.status === "timeout") {
18257
+ const stopped = await stopDeployment(clients, deploymentId, host, logicalId, mask);
18258
+ if (stopped) await settleGroup(clients, policy, host, logicalId, mask, settleWaitCapMs(resourceType, now() - startedAt));
18259
+ throw fail(`CodeDeploy deployment ${deploymentId} did not finish within ${formatDuration(capMs)} and ${stopped ? "was stopped" : "could not be confirmed stopped (check aws deploy get-deployment)"}. Raise the limit with --resource-timeout ${resourceType}=<duration>.`);
18260
+ }
18261
+ await settleGroup(clients, policy, host, logicalId, mask, settleWaitCapMs(resourceType, now() - startedAt));
18262
+ const after = await liveAliasState(clients, functionName, aliasName);
18263
+ throw fail(`CodeDeploy deployment ${deploymentId} ended ${ended.status}${ended.reason !== void 0 ? `: ${maskCallerIdentity(ended.reason)}` : ""}. ` + (after === void 0 ? "cdkd could not read the alias afterwards." : `The alias serves version ${after.version ?? "unknown"}${after.weighted ? ", with traffic still split across versions" : ""}.`));
18264
+ } finally {
18265
+ clients.destroy();
18266
+ }
18267
+ }
18268
+ const UNREADABLE = Symbol("unreadable");
18269
+ async function trafficShiftMs(clients, policy, host, logicalId, mask) {
18270
+ try {
18271
+ const configName = nonEmptyString$1((await clients.codeDeploy.send(new clients.commands.GetDeploymentGroup({
18272
+ applicationName: policy.applicationName,
18273
+ deploymentGroupName: policy.deploymentGroupName
18274
+ }))).deploymentGroupInfo?.deploymentConfigName);
18275
+ if (configName === void 0) return void 0;
18276
+ return trafficRoutingMs((await clients.codeDeploy.send(new clients.commands.GetDeploymentConfig({ deploymentConfigName: configName }))).deploymentConfigInfo?.trafficRoutingConfig);
18277
+ } catch (error) {
18278
+ host.logger.warn(mask(`${logicalId}: cdkd could not read deployment group ${policy.deploymentGroupName}'s configuration, so it does not check the deployment fits the resource timeout: ${maskCallerIdentity(describeAwsFailure(error).detail)}`));
18279
+ return;
18280
+ }
18281
+ }
18282
+ function trafficRoutingMs(config) {
18283
+ if (!isObject$3(config)) return void 0;
18284
+ const positive = (value) => typeof value === "number" && Number.isFinite(value) && value > 0 ? value : void 0;
18285
+ if (config["type"] === "AllAtOnce") return 0;
18286
+ if (config["type"] === "TimeBasedCanary") {
18287
+ const canary = config["timeBasedCanary"];
18288
+ const interval = positive(canary?.["canaryInterval"]);
18289
+ return interval === void 0 ? void 0 : interval * 6e4;
18290
+ }
18291
+ if (config["type"] === "TimeBasedLinear") {
18292
+ const linear = config["timeBasedLinear"];
18293
+ const interval = positive(linear?.["linearInterval"]);
18294
+ const percentage = positive(linear?.["linearPercentage"]);
18295
+ if (interval === void 0 || percentage === void 0) return void 0;
18296
+ return (Math.ceil(100 / percentage) - 1) * interval * 6e4;
18297
+ }
18298
+ }
18299
+ async function clearRoutingConfig(clients, functionName, aliasName, fail) {
18300
+ try {
18301
+ await clients.lambda.send(new clients.commands.UpdateAlias({
18302
+ FunctionName: functionName,
18303
+ Name: aliasName,
18304
+ RoutingConfig: { AdditionalVersionWeights: {} }
18305
+ }));
18306
+ } catch (error) {
18307
+ throw fail(`the alias still splits traffic from a stopped CodeDeploy deployment, and clearing it failed: ${maskCallerIdentity(describeAwsFailure(error).detail)}`, error);
18308
+ }
18309
+ }
18310
+ async function activeDeployments(clients, policy, mask, host, logicalId) {
18311
+ try {
18312
+ const ids = [];
18313
+ let nextToken;
18314
+ for (let page = 0; page < 20; page++) {
18315
+ const response = await clients.codeDeploy.send(new clients.commands.ListDeployments({
18316
+ applicationName: policy.applicationName,
18317
+ deploymentGroupName: policy.deploymentGroupName,
18318
+ includeOnlyStatuses: ACTIVE_DEPLOYMENT_STATUSES,
18319
+ ...nextToken !== void 0 && { nextToken }
18320
+ }));
18321
+ if (Array.isArray(response.deployments)) ids.push(...response.deployments.filter((id) => typeof id === "string"));
18322
+ nextToken = nonEmptyString$1(response.nextToken);
18323
+ if (nextToken === void 0) return ids;
18324
+ }
18325
+ return UNREADABLE;
18326
+ } catch (error) {
18327
+ host.logger.debug(mask(`ListDeployments for ${logicalId} failed: ${maskCallerIdentity(describeAwsFailure(error).detail)}`));
18328
+ return UNREADABLE;
18329
+ }
18330
+ }
18331
+ const CREATE_ATTEMPTS = 3;
18332
+ async function createDeployment(clients, host, policy, content) {
18333
+ const sha256 = createHash("sha256").update(content).digest("hex");
18334
+ for (let attempt = 1;; attempt++) try {
18335
+ const id = nonEmptyString$1((await clients.codeDeploy.send(new clients.commands.CreateDeployment({
18336
+ applicationName: policy.applicationName,
18337
+ deploymentGroupName: policy.deploymentGroupName,
18338
+ revision: {
18339
+ revisionType: "AppSpecContent",
18340
+ appSpecContent: {
18341
+ content,
18342
+ sha256
18343
+ }
18344
+ }
18345
+ }))).deploymentId);
18346
+ if (id === void 0) throw new Error("CreateDeployment returned no deploymentId");
18347
+ return id;
18348
+ } catch (error) {
18349
+ if (!(error instanceof Error && isRetryableTransientError(error, error.message)) || attempt >= CREATE_ATTEMPTS) throw error;
18350
+ await host.sleep(2e3 * attempt);
18351
+ }
18352
+ }
18353
+ async function readDeployment(clients, deploymentId) {
18354
+ try {
18355
+ const info = (await clients.codeDeploy.send(new clients.commands.GetDeployment({ deploymentId }))).deploymentInfo;
18356
+ return {
18357
+ status: typeof info?.status === "string" ? info.status : void 0,
18358
+ reason: nonEmptyString$1(info?.errorInformation?.message)
18359
+ };
18360
+ } catch {
18361
+ return;
18362
+ }
18363
+ }
18364
+ async function waitForDeployment(clients, host, deploymentId, capMs, logicalId, mask, policy) {
18365
+ const now = clockOf(host);
18366
+ const deadline = now() + capMs;
18367
+ const watch = startInterruptWatch(`The CodeDeploy deployment of Lambda alias ${logicalId}`);
18368
+ try {
18369
+ do {
18370
+ for (let slept = 0; slept < 15e3 && (slept === 0 || now() < deadline); slept += 1e3) {
18371
+ if (watch.isInterrupted()) {
18372
+ await stopOnInterrupt(clients, deploymentId, host, logicalId, mask, policy);
18373
+ throw watch.onInterrupted();
18374
+ }
18375
+ await host.sleep(1e3);
18376
+ }
18377
+ if (watch.isInterrupted()) {
18378
+ await stopOnInterrupt(clients, deploymentId, host, logicalId, mask, policy);
18379
+ throw watch.onInterrupted();
18380
+ }
18381
+ const read = await readDeployment(clients, deploymentId);
18382
+ if (read === void 0) {
18383
+ host.logger.debug(mask(`GetDeployment ${deploymentId} for ${logicalId} failed`));
18384
+ continue;
18385
+ }
18386
+ if (read.status === "Succeeded" || read.status === "Failed" || read.status === "Stopped") return {
18387
+ status: read.status,
18388
+ reason: read.reason
18389
+ };
18390
+ } while (now() < deadline);
18391
+ } finally {
18392
+ watch.dispose();
18393
+ }
18394
+ return { status: "timeout" };
18395
+ }
18396
+ const INTERRUPT_SETTLE_MS = 6e4;
18397
+ async function stopOnInterrupt(clients, deploymentId, host, logicalId, mask, policy) {
18398
+ if (await stopDeployment(clients, deploymentId, host, logicalId, mask)) {
18399
+ host.logger.info(mask(`${logicalId}: stopped CodeDeploy deployment ${deploymentId}; waiting up to ${INTERRUPT_SETTLE_MS / 1e3} seconds for its rollback.`));
18400
+ await settleGroup(clients, policy, host, logicalId, mask, INTERRUPT_SETTLE_MS, false);
18401
+ }
18402
+ }
18403
+ async function stopDeployment(clients, deploymentId, host, logicalId, mask) {
18404
+ try {
18405
+ await clients.codeDeploy.send(new clients.commands.StopDeployment({
18406
+ deploymentId,
18407
+ autoRollbackEnabled: true
18408
+ }));
18409
+ return true;
18410
+ } catch (error) {
18411
+ if (error?.name === "DeploymentAlreadyCompletedException") return true;
18412
+ host.logger.warn(mask(`${logicalId}: StopDeployment ${deploymentId} failed: ${maskCallerIdentity(describeAwsFailure(error).detail)}`));
18413
+ return false;
18414
+ }
18415
+ }
18416
+ async function settleGroup(clients, policy, host, logicalId, mask, capMs, honorInterrupt = true) {
18417
+ const now = clockOf(host);
18418
+ const deadline = now() + capMs;
18419
+ const watch = startInterruptWatch(`The CodeDeploy rollback wait of Lambda alias ${logicalId}`);
18420
+ try {
18421
+ for (;;) {
18422
+ if (honorInterrupt && watch.isInterrupted()) throw watch.onInterrupted();
18423
+ const active = await activeDeployments(clients, policy, mask, host, logicalId);
18424
+ if (active !== UNREADABLE && active.length === 0) return;
18425
+ if (now() + 15e3 > deadline) break;
18426
+ await host.sleep(CODEDEPLOY_POLL_MS);
18427
+ }
18428
+ } finally {
18429
+ watch.dispose();
18430
+ }
18431
+ host.logger.warn(mask(`${logicalId}: deployment group ${policy.deploymentGroupName} still runs a deployment; continuing without waiting for it.`));
18432
+ }
18433
+ async function liveAliasState(clients, functionName, aliasName, onError) {
18434
+ try {
18435
+ const alias = await clients.lambda.send(new clients.commands.GetAlias({
18436
+ FunctionName: functionName,
18437
+ Name: aliasName
18438
+ }));
18439
+ const weights = alias.RoutingConfig?.AdditionalVersionWeights;
18440
+ return {
18441
+ version: versionText(alias.FunctionVersion),
18442
+ weighted: isObject$3(weights) && Object.keys(weights).length > 0
18443
+ };
18444
+ } catch (error) {
18445
+ onError?.(error);
18446
+ return;
18447
+ }
18448
+ }
18449
+ function formatDuration(ms) {
18450
+ return ms >= 12e4 ? `${Math.round(ms / 6e4)} minutes` : `${Math.round(ms / 1e3)} seconds`;
18451
+ }
18452
+ async function buildCodeDeployAliasClients(regionOf) {
18453
+ let region;
18454
+ try {
18455
+ region = canonicalizeRegion((await regionOf())?.trim());
18456
+ } catch {
18457
+ region = void 0;
18458
+ }
18459
+ if (region === void 0 || region === "") throw markRefusedBeforeApplying(markNonRetryable(/* @__PURE__ */ new Error("cdkd could not resolve the Cloud Control client's region, so it cannot address the CodeDeploy deployment. Re-run with --region set to the stack's region.")));
18460
+ const { CodeDeployClient, CreateDeploymentCommand, GetDeploymentCommand, GetDeploymentConfigCommand, GetDeploymentGroupCommand, ListDeploymentsCommand, StopDeploymentCommand } = await import("@aws-sdk/client-codedeploy");
18461
+ const { LambdaClient, GetAliasCommand, UpdateAliasCommand } = await import("@aws-sdk/client-lambda");
18462
+ const codeDeploy = new CodeDeployClient({
18463
+ ...ambientClientDefaults(),
18464
+ region
18465
+ });
18466
+ const lambda = new LambdaClient({
18467
+ ...ambientClientDefaults(),
18468
+ region
18469
+ });
18470
+ return {
18471
+ codeDeploy,
18472
+ lambda,
18473
+ commands: {
18474
+ GetAlias: GetAliasCommand,
18475
+ UpdateAlias: UpdateAliasCommand,
18476
+ GetDeploymentGroup: GetDeploymentGroupCommand,
18477
+ GetDeploymentConfig: GetDeploymentConfigCommand,
18478
+ ListDeployments: ListDeploymentsCommand,
18479
+ CreateDeployment: CreateDeploymentCommand,
18480
+ GetDeployment: GetDeploymentCommand,
18481
+ StopDeployment: StopDeploymentCommand
18482
+ },
18483
+ destroy() {
18484
+ codeDeploy.destroy();
18485
+ lambda.destroy();
18486
+ }
18487
+ };
18488
+ }
18489
+
18015
18490
  // src/provisioning/cloud-control/update.ts
18016
18491
  async function update$2(logicalId, physicalId, resourceType, properties, previousProperties, context) {
18017
18492
  const mask = maskerOrIdentity(context?.maskSecrets);
@@ -18038,13 +18513,24 @@ async function updateInIdLogScope(logicalId, physicalId, resourceType, propertie
18038
18513
  maskSecrets: context?.maskSecrets
18039
18514
  })) cleanPreviousProperties[key] = desired;
18040
18515
  }
18516
+ const shifted = await shiftAliasThroughCodeDeploy(this, {
18517
+ logicalId,
18518
+ physicalId,
18519
+ resourceType,
18520
+ properties: cleanProperties,
18521
+ previousProperties: cleanPreviousProperties,
18522
+ context,
18523
+ mask: maskerOrIdentity(context?.maskSecrets)
18524
+ }) === "shifted";
18525
+ if (shifted) cleanPreviousProperties["FunctionVersion"] = cleanProperties["FunctionVersion"];
18526
+ const sentNothing = shifted ? {} : { sentNothing: true };
18041
18527
  let patch = this.patchGenerator.generatePatch(cleanPreviousProperties, cleanProperties);
18042
18528
  if (patch.length === 0) {
18043
18529
  this.logger.debug(`No property changes detected for ${logicalId}, skipping update`);
18044
18530
  return {
18045
18531
  physicalId,
18046
18532
  wasReplaced: false,
18047
- sentNothing: true
18533
+ ...sentNothing
18048
18534
  };
18049
18535
  }
18050
18536
  const attributeNamesLookup = getTopLevelDeployAttributeNames(resourceType);
@@ -18062,7 +18548,7 @@ async function updateInIdLogScope(logicalId, physicalId, resourceType, propertie
18062
18548
  return {
18063
18549
  physicalId,
18064
18550
  wasReplaced: false,
18065
- sentNothing: true
18551
+ ...sentNothing
18066
18552
  };
18067
18553
  }
18068
18554
  }
@@ -18955,16 +19441,6 @@ function isCcConflict(error) {
18955
19441
  return typeof error === "object" && error !== null && error.name === "ResourceConflictException";
18956
19442
  }
18957
19443
 
18958
- // src/provisioning/resource-timeout-registry.ts
18959
- let resolved;
18960
- function setResolvedResourceTimeouts(opt) {
18961
- resolved = opt;
18962
- }
18963
- function resolvedResourceTimeoutMs(resourceType) {
18964
- if (!resolved) return void 0;
18965
- return resolved.perTypeMs?.[resourceType] ?? resolved.globalMs;
18966
- }
18967
-
18968
19444
  // src/provisioning/delete-gone-wait.ts
18969
19445
  async function waitForGoneAfterDelete(opts) {
18970
19446
  const sleep = opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
@@ -19167,7 +19643,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
19167
19643
  const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
19168
19644
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
19169
19645
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
19170
- const { ASGProvider } = await import("./asg-provider-DkGLJwox.js");
19646
+ const { ASGProvider } = await import("./asg-provider-DhlT9esh.js");
19171
19647
  const delegateRegion = ambientRegion();
19172
19648
  let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
19173
19649
  if (asgProvider === void 0) {
@@ -19321,7 +19797,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
19321
19797
  const family = SDK_DELETE_FAMILIES.get(resourceType);
19322
19798
  const cached = this.sdkDeleteDelegates.get(family);
19323
19799
  if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
19324
- const provider = family === "rds" ? new (await (import("./rds-provider-DwoeM58V.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-Cw6VRzy-.js"))).NeptuneProvider({ region: ccRegion });
19800
+ const provider = family === "rds" ? new (await (import("./rds-provider-D1eagWNh.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-BR3kEieW.js"))).NeptuneProvider({ region: ccRegion });
19325
19801
  this.sdkDeleteDelegates.set(family, {
19326
19802
  region: ccRegion,
19327
19803
  provider
@@ -19499,55 +19975,6 @@ async function getResourceState(resourceType, physicalId) {
19499
19975
  }
19500
19976
  }
19501
19977
 
19502
- // src/provisioning/cloud-control/caller-identity.ts
19503
- const CALLER_PRINCIPAL_MASK = "<caller-principal>";
19504
- const ACCOUNT_ID_MASK = "<account-id>";
19505
- const NAME = String.raw`[\w+=,.@-]*[\w+=@-]`;
19506
- const PARTITION = String.raw`aws[a-z-]*`;
19507
- const STS_SESSION_PRINCIPAL = new RegExp(String.raw`\barn:${PARTITION}:sts::\d{12}:(?:assumed-role/${NAME}/${NAME}|federated-user/${NAME})`, "g");
19508
- const IAM_PRINCIPAL = String.raw`arn:${PARTITION}:iam::\d{12}:(?:(?:user|role)/(?:[!-.0-~]+/)*${NAME}|root)`;
19509
- const IAM_DENIED_AFTER_USER = new RegExp(String.raw`(\bUser:\s*)${IAM_PRINCIPAL}`, "g");
19510
- const IAM_DENIED_AFTER_LEAD_IN = new RegExp(String.raw`(\b(?:Not authorized|Access denied|AccessDenied):\s*)${IAM_PRINCIPAL}`, "gi");
19511
- const IAM_DENIED_BEFORE_VERB = new RegExp(String.raw`\b${IAM_PRINCIPAL}(?=\s+is not authorized)`, "g");
19512
- const PRINCIPAL_UNIQUE_ID = new RegExp(String.raw`\b(?:AROA|AIDA|ASIA|AKIA)[A-Z0-9]{16,17}\b(?::${NAME})?`, "g");
19513
- const ACCOUNT_IN_ARN = new RegExp(String.raw`(\barn:${PARTITION}:[^:\s]*:[^:\s]*:)\d{12}(?=:)`, "g");
19514
- const ACCOUNT_AFTER_WORD = /((?:\b(?:account(?:[ _-]?(?:id|number))?s?|principal(?:[ _-]?id)?|owner(?:[ _-]?id)?)\b|"AWS")[\s:='"#([]*)\d{12}(?![0-9A-Za-z])/gi;
19515
- const ACCOUNT_LIST_NEXT = new RegExp(String.raw`(${ACCOUNT_ID_MASK}['"]\s*,\s*['"])\d{12}(?![0-9A-Za-z])`, "g");
19516
- const ACCOUNT_IN_NAME = /(?<![0-9A-Za-z])(?<![0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-)(?:(?<=[A-Za-z][-_]|\/)\d{12}(?![0-9A-Za-z])|\d{12}(?=[-_.:][A-Za-z]|\/))/g;
19517
- function maskCallerIdentity(text) {
19518
- let masked = text.replace(STS_SESSION_PRINCIPAL, CALLER_PRINCIPAL_MASK).replace(IAM_DENIED_AFTER_USER, `$1${CALLER_PRINCIPAL_MASK}`).replace(IAM_DENIED_AFTER_LEAD_IN, `$1${CALLER_PRINCIPAL_MASK}`).replace(IAM_DENIED_BEFORE_VERB, CALLER_PRINCIPAL_MASK).replace(PRINCIPAL_UNIQUE_ID, CALLER_PRINCIPAL_MASK).replace(ACCOUNT_IN_ARN, `$1${ACCOUNT_ID_MASK}`).replace(ACCOUNT_AFTER_WORD, `$1${ACCOUNT_ID_MASK}`).replace(ACCOUNT_IN_NAME, ACCOUNT_ID_MASK);
19519
- let previous;
19520
- do {
19521
- previous = masked;
19522
- masked = masked.replace(ACCOUNT_LIST_NEXT, `$1${ACCOUNT_ID_MASK}`);
19523
- } while (masked !== previous);
19524
- return masked;
19525
- }
19526
- function handlerAuthFailureHint(statusMessage) {
19527
- const match = /\(Service:\s*([A-Za-z0-9._-]+)[,;]\s*Status Code:\s*403[,;)]/i.exec(statusMessage);
19528
- if (!match) return "";
19529
- const service = match[1] ?? "";
19530
- if (/cloudcontrol/i.test(service)) return "";
19531
- return ` [hint: this 403 was returned by ${service} to the AWS-managed resource handler running the operation, not to cdkd directly — these credentials already passed Cloud Control's own auth to start it. If the equivalent ${service} API call succeeds with the same credentials, the resource handler itself is failing (an upstream AWS issue worth retrying later), not your local credential setup.]`;
19532
- }
19533
- const MAX_LOGGED_MODEL_KEYS = 12;
19534
- function describeJsonKeys(document) {
19535
- const keys = [];
19536
- const seen = /* @__PURE__ */ new Set();
19537
- const pattern = /"([^"\\]{1,64})"\s*:/g;
19538
- let match;
19539
- while ((match = pattern.exec(document)) !== null) {
19540
- const key = match[1];
19541
- if (seen.has(key)) continue;
19542
- seen.add(key);
19543
- keys.push(key);
19544
- if (keys.length >= 12) break;
19545
- }
19546
- if (keys.length === 0) return "no readable key names";
19547
- const suffix = pattern.lastIndex < document.length && keys.length >= 12 ? ", ..." : "";
19548
- return `keys: ${keys.join(", ")}${suffix}`;
19549
- }
19550
-
19551
19978
  // src/provisioning/cloud-control/wait.ts
19552
19979
  async function waitForOperation(requestToken, logicalId, operation, resourceType, transientGraceMs = this.POLL_TRANSIENT_GRACE_MS) {
19553
19980
  const startTime = Date.now();
@@ -20251,6 +20678,10 @@ var CloudControlProvider = class {
20251
20678
  patchGenerator = new JsonPatchGenerator();
20252
20679
  warnedUnresolvableSchemaTypes = /* @__PURE__ */ new Set();
20253
20680
  protectionFlips = new ProtectionFlipRegistry();
20681
+ startedAliasDeployments = /* @__PURE__ */ new Map();
20682
+ codeDeployAliasClients() {
20683
+ return buildCodeDeployAliasClients(() => this.cloudControlClient.config.region());
20684
+ }
20254
20685
  MAX_WAIT_TIME_MS = 9e5;
20255
20686
  INITIAL_POLL_INTERVAL_MS = 1e3;
20256
20687
  MAX_POLL_INTERVAL_MS = 1e4;
@@ -22007,7 +22438,7 @@ async function publishToSns(topicArn, request) {
22007
22438
  }
22008
22439
  async function invokeLambda(serviceToken, request) {
22009
22440
  if (localCustomResourceRuntimeActive()) {
22010
- const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-Igdxgp4i.js");
22441
+ const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-Awo4Qqci.js");
22011
22442
  const local = await invokeCustomResourceFunctionLocally({
22012
22443
  lambda: this.lambdaClient,
22013
22444
  s3: this.s3Client
@@ -24492,6 +24923,83 @@ function ecsServiceSdkPhysicalId(ccPhysicalId) {
24492
24923
  if (second !== void 0 && first !== clusterName) throw new Error("its recorded physical id names one cluster in the service ARN and another after the `|`");
24493
24924
  return serviceArn;
24494
24925
  }
24926
+ const REST_API_ID = "[a-z0-9]{10}";
24927
+ const APIGW_AUTHORIZER_CC_ID = new RegExp(`^${REST_API_ID}\\|([a-z0-9]+)$`);
24928
+ function apiGatewayAuthorizerSdkPhysicalId(ccPhysicalId) {
24929
+ const match = APIGW_AUTHORIZER_CC_ID.exec(ccPhysicalId);
24930
+ if (match === null) throw new Error("its recorded physical id is not the `<restApiId>|<authorizerId>` form Cloud Control records for AWS::ApiGateway::Authorizer");
24931
+ return match[1];
24932
+ }
24933
+ const APIGW_STAGE_CC_ID = new RegExp(`^${REST_API_ID}\\|([A-Za-z0-9_-]+)$`);
24934
+ function apiGatewayStageSdkPhysicalId(ccPhysicalId) {
24935
+ const match = APIGW_STAGE_CC_ID.exec(ccPhysicalId);
24936
+ if (match === null) throw new Error("its recorded physical id is not the `<restApiId>|<stageName>` form Cloud Control records for AWS::ApiGateway::Stage");
24937
+ return match[1];
24938
+ }
24939
+ const V2_API_ID = "[a-z0-9]{10}";
24940
+ const V2_API_CHILD_CC_ID = new RegExp(`^${V2_API_ID}\\|([a-z0-9]+)$`);
24941
+ function v2ApiChildSdkPhysicalId(ccPhysicalId, form, type) {
24942
+ const match = V2_API_CHILD_CC_ID.exec(ccPhysicalId);
24943
+ if (match === null) throw new Error(`its recorded physical id is not the \`${form}\` form Cloud Control records for ${type}`);
24944
+ return match[1];
24945
+ }
24946
+ function apiGatewayV2IntegrationSdkPhysicalId(ccPhysicalId) {
24947
+ return v2ApiChildSdkPhysicalId(ccPhysicalId, "<apiId>|<integrationId>", "AWS::ApiGatewayV2::Integration");
24948
+ }
24949
+ function apiGatewayV2RouteSdkPhysicalId(ccPhysicalId) {
24950
+ return v2ApiChildSdkPhysicalId(ccPhysicalId, "<apiId>|<routeId>", "AWS::ApiGatewayV2::Route");
24951
+ }
24952
+ const V2_AUTHORIZER_CC_ID = new RegExp(`^([a-z0-9]+)\\|${V2_API_ID}$`);
24953
+ function apiGatewayV2AuthorizerSdkPhysicalId(ccPhysicalId) {
24954
+ const match = V2_AUTHORIZER_CC_ID.exec(ccPhysicalId);
24955
+ if (match === null) throw new Error("its recorded physical id is not the `<authorizerId>|<apiId>` form Cloud Control records for AWS::ApiGatewayV2::Authorizer");
24956
+ return match[1];
24957
+ }
24958
+ const V2_STAGE_CC_ID = new RegExp(`^${V2_API_ID}\\|(\\$default|[A-Za-z0-9_-]+)$`);
24959
+ function apiGatewayV2StageSdkPhysicalId(ccPhysicalId) {
24960
+ const match = V2_STAGE_CC_ID.exec(ccPhysicalId);
24961
+ if (match === null) throw new Error("its recorded physical id is not the `<apiId>|<stageName>` form Cloud Control records for AWS::ApiGatewayV2::Stage");
24962
+ return match[1];
24963
+ }
24964
+ const APPSYNC_GRAPHQL_API_CC_ID = /^arn:aws(?:-[a-z]+)*:appsync:[a-z0-9-]+:\d{12}:apis\/([a-z0-9]{26})$/;
24965
+ function appSyncGraphQLApiSdkPhysicalId(ccPhysicalId) {
24966
+ const match = APPSYNC_GRAPHQL_API_CC_ID.exec(ccPhysicalId);
24967
+ if (match === null) throw new Error("its recorded physical id is not the GraphQL API ARN Cloud Control records for AWS::AppSync::GraphQLApi");
24968
+ return match[1];
24969
+ }
24970
+ const S3VECTORS_BUCKET_CC_ID = /^arn:aws(?:-[a-z]+)*:s3vectors:[a-z0-9-]+:\d{12}:bucket\/([a-z0-9][a-z0-9.-]{1,61}[a-z0-9])$/;
24971
+ function s3VectorsVectorBucketSdkPhysicalId(ccPhysicalId) {
24972
+ const match = S3VECTORS_BUCKET_CC_ID.exec(ccPhysicalId);
24973
+ if (match === null) throw new Error("its recorded physical id is not the vector bucket ARN Cloud Control records for AWS::S3Vectors::VectorBucket");
24974
+ return match[1];
24975
+ }
24976
+ function arnScope(ctx, type) {
24977
+ if (!/^aws(?:-[a-z]+)*$/.test(ctx.partition)) throw new Error(`the partition it would build the ${type} ARN in is not an AWS partition`);
24978
+ if (!/^\d{12}$/.test(ctx.accountId)) throw new Error(`the account it would build the ${type} ARN in is not a 12-digit account id`);
24979
+ if (!/^[a-z0-9-]+$/.test(ctx.region)) throw new Error(`the region it would build the ${type} ARN in is not a region name`);
24980
+ return ctx;
24981
+ }
24982
+ const LOWERCASE_UUID = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
24983
+ const WAFV2_WEB_ACL_CC_ID = new RegExp(`^([\\w-]{1,128})\\|(${LOWERCASE_UUID})\\|(REGIONAL|CLOUDFRONT)$`);
24984
+ function wafv2WebAclSdkPhysicalId(ccPhysicalId, ctx) {
24985
+ const match = WAFV2_WEB_ACL_CC_ID.exec(ccPhysicalId);
24986
+ if (match === null) throw new Error("its recorded physical id is not the `<Name>|<Id>|<Scope>` form Cloud Control records for AWS::WAFv2::WebACL");
24987
+ const [, name, id, scope] = match;
24988
+ if (ctx.properties["Scope"] !== scope) throw new Error("the scope in its recorded physical id is not the Scope its recorded properties declare");
24989
+ const declaredName = ctx.properties["Name"];
24990
+ if (declaredName !== void 0 && declaredName !== name) throw new Error("the name in its recorded physical id is not the Name its recorded properties declare");
24991
+ const { partition, region, accountId } = arnScope(ctx, "AWS::WAFv2::WebACL");
24992
+ if (scope === "CLOUDFRONT" && region !== "us-east-1") throw new Error(`it is a CLOUDFRONT web ACL recorded in ${region}, while AWS serves that scope only from us-east-1`);
24993
+ return `arn:${partition}:wafv2:${region}:${accountId}:${scope === "CLOUDFRONT" ? "global" : "regional"}/webacl/${name}/${id}`;
24994
+ }
24995
+ const CODECOMMIT_REPOSITORY_CC_ID = new RegExp(`^${LOWERCASE_UUID}$`);
24996
+ const CODECOMMIT_REPOSITORY_NAME = /^[\w.-]{1,100}$/;
24997
+ function codeCommitRepositorySdkPhysicalId(ccPhysicalId, ctx) {
24998
+ if (!CODECOMMIT_REPOSITORY_CC_ID.test(ccPhysicalId)) throw new Error("its recorded physical id is not the RepositoryId Cloud Control records for AWS::CodeCommit::Repository");
24999
+ const name = ctx.properties["RepositoryName"];
25000
+ if (typeof name !== "string" || !CODECOMMIT_REPOSITORY_NAME.test(name)) throw new Error("its recorded properties hold no plain RepositoryName to address it by");
25001
+ return name;
25002
+ }
24495
25003
 
24496
25004
  // src/provisioning/provider-registry/sticky-exempt.ts
24497
25005
  const STICKY_CC_MIGRATION_EXEMPT = /* @__PURE__ */ new Map([
@@ -24705,22 +25213,223 @@ const STICKY_CC_MIGRATION_EXEMPT = /* @__PURE__ */ new Map([
24705
25213
  physicalIdForm: "both layers store the `alias/...` name: the schema primaryIdentifier is AliasName and the KMS alias provider records the name it created the alias under",
24706
25214
  issue: "https://github.com/go-to-k/cdkd/issues/6454",
24707
25215
  integFixture: "cc-to-sdk-reroute-common-types-2"
25216
+ }],
25217
+ ["AWS::CloudFront::CloudFrontOriginAccessIdentity", {
25218
+ mode: "sdk-coverage",
25219
+ physicalIdForm: "both layers store the bare `E...` identity id: the schema primaryIdentifier is Id and CloudFrontOAIProvider.create records the CreateCloudFrontOriginAccessIdentity Id",
25220
+ issue: "https://github.com/go-to-k/cdkd/issues/6454",
25221
+ integFixture: "cc-to-sdk-reroute-common-types-3"
25222
+ }],
25223
+ ["AWS::ServiceDiscovery::HttpNamespace", {
25224
+ mode: "sdk-coverage",
25225
+ physicalIdForm: "both layers store the bare `ns-...` namespace id: the schema primaryIdentifier is Id and the Service Discovery provider records the Id of the namespace it created",
25226
+ issue: "https://github.com/go-to-k/cdkd/issues/6454",
25227
+ integFixture: "cc-to-sdk-reroute-common-types-3"
25228
+ }],
25229
+ ["AWS::Glue::Database", {
25230
+ mode: "sdk-coverage",
25231
+ physicalIdForm: "both layers store the bare database name: the schema primaryIdentifier is DatabaseName and the Glue provider records DatabaseInput.Name, else DatabaseName",
25232
+ issue: "https://github.com/go-to-k/cdkd/issues/6454",
25233
+ integFixture: "cc-to-sdk-reroute-common-types-3"
25234
+ }],
25235
+ ["AWS::Glue::Job", {
25236
+ mode: "sdk-coverage",
25237
+ physicalIdForm: "both layers store the bare job name: the schema primaryIdentifier is Name and GlueJobProvider.create records the CreateJob Name",
25238
+ issue: "https://github.com/go-to-k/cdkd/issues/6454",
25239
+ integFixture: "cc-to-sdk-reroute-common-types-3"
25240
+ }],
25241
+ ["AWS::ECR::Repository", {
25242
+ mode: "sdk-coverage",
25243
+ physicalIdForm: "both layers store the bare repository name: the schema primaryIdentifier is RepositoryName and ECRProvider.create records the CreateRepository repositoryName",
25244
+ issue: "https://github.com/go-to-k/cdkd/issues/6454",
25245
+ integFixture: "cc-to-sdk-reroute-common-types-3"
25246
+ }],
25247
+ ["AWS::Events::EventBus", {
25248
+ mode: "sdk-coverage",
25249
+ physicalIdForm: "both layers store the bare bus name, not the ARN: the schema primaryIdentifier is Name and EventBridgeBusProvider.create records the bus name",
25250
+ issue: "https://github.com/go-to-k/cdkd/issues/6454",
25251
+ integFixture: "cc-to-sdk-reroute-common-types-4"
25252
+ }],
25253
+ ["AWS::ServiceDiscovery::PrivateDnsNamespace", {
25254
+ mode: "sdk-coverage",
25255
+ physicalIdForm: "both layers store the bare `ns-...` namespace id: the schema primaryIdentifier is Id and the Service Discovery provider records the Id of the namespace it created",
25256
+ issue: "https://github.com/go-to-k/cdkd/issues/6454",
25257
+ integFixture: "cc-to-sdk-reroute-common-types-4"
25258
+ }],
25259
+ ["AWS::Glue::Workflow", {
25260
+ mode: "sdk-coverage",
25261
+ physicalIdForm: "both layers store the bare workflow name: the schema primaryIdentifier is Name and the Glue provider records the CreateWorkflow Name",
25262
+ issue: "https://github.com/go-to-k/cdkd/issues/6454",
25263
+ integFixture: "cc-to-sdk-reroute-common-types-4"
25264
+ }],
25265
+ ["AWS::Glue::Crawler", {
25266
+ mode: "sdk-coverage",
25267
+ physicalIdForm: "both layers store the bare crawler name: the schema primaryIdentifier is Name and GlueCrawlerProvider.create records the crawler name",
25268
+ issue: "https://github.com/go-to-k/cdkd/issues/6454",
25269
+ integFixture: "cc-to-sdk-reroute-common-types-4"
25270
+ }],
25271
+ ["AWS::ElasticLoadBalancingV2::LoadBalancer", {
25272
+ mode: "sdk-coverage",
25273
+ physicalIdForm: "both layers store the load balancer ARN: the schema primaryIdentifier is LoadBalancerArn and the ELBv2 provider records the CreateLoadBalancer LoadBalancerArn",
25274
+ issue: "https://github.com/go-to-k/cdkd/issues/6454",
25275
+ integFixture: "cc-to-sdk-reroute-common-types-4"
25276
+ }],
25277
+ ["AWS::ServiceDiscovery::Service", {
25278
+ mode: "sdk-coverage",
25279
+ physicalIdForm: "both layers store the bare `srv-...` service id: the schema primaryIdentifier is Id and the Service Discovery provider records the CreateService Id",
25280
+ issue: "https://github.com/go-to-k/cdkd/issues/6454",
25281
+ integFixture: "cc-to-sdk-reroute-common-types-5"
25282
+ }],
25283
+ ["AWS::S3Tables::TableBucket", {
25284
+ mode: "sdk-coverage",
25285
+ physicalIdForm: "both layers store the table bucket ARN: the schema primaryIdentifier is TableBucketARN and the S3 Tables provider records the CreateTableBucket arn",
25286
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25287
+ integFixture: "cc-to-sdk-reroute-common-types-6"
25288
+ }],
25289
+ ["AWS::BedrockAgentCore::Runtime", {
25290
+ mode: "sdk-coverage",
25291
+ physicalIdForm: "both layers store the bare agentRuntimeId, not the ARN: the schema primaryIdentifier is AgentRuntimeId and the AgentCore Runtime provider records the CreateAgentRuntime agentRuntimeId",
25292
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25293
+ integFixture: "cc-to-sdk-reroute-common-types-6"
25294
+ }],
25295
+ ["AWS::BedrockAgentCore::Evaluator", {
25296
+ mode: "sdk-coverage",
25297
+ physicalIdForm: "both layers store the evaluator ARN, not the bare id: the schema primaryIdentifier is EvaluatorArn and the AgentCore Evaluator provider records the CreateEvaluator evaluatorArn",
25298
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25299
+ integFixture: "cc-to-sdk-reroute-common-types-6"
25300
+ }],
25301
+ ["AWS::ApiGateway::Authorizer", {
25302
+ mode: "sdk-coverage",
25303
+ physicalIdForm: "Cloud Control stores `<restApiId>|<authorizerId>` (measured us-east-1, 2026-11-17; the live schema primaryIdentifier is RestApiId + AuthorizerId) while the API Gateway provider records the bare CreateAuthorizer id and reads RestApiId from the properties; normalizeCcPhysicalId keeps the authorizer id, which the fixture observed equal to the live authorizer",
25304
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25305
+ integFixture: "cc-to-sdk-reroute-common-types-7",
25306
+ normalizeCcPhysicalId: apiGatewayAuthorizerSdkPhysicalId
25307
+ }],
25308
+ ["AWS::ApiGateway::Stage", {
25309
+ mode: "sdk-coverage",
25310
+ physicalIdForm: "Cloud Control stores `<restApiId>|<stageName>` (the schema primaryIdentifier is RestApiId + StageName; measured us-east-1, 2026-11-17) while the API Gateway provider records the bare stage name and reads RestApiId from the properties; normalizeCcPhysicalId keeps the stage name, which the fixture observed equal to the live stage",
25311
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25312
+ integFixture: "cc-to-sdk-reroute-common-types-7",
25313
+ normalizeCcPhysicalId: apiGatewayStageSdkPhysicalId
25314
+ }],
25315
+ ["AWS::ApiGateway::Method", {
25316
+ mode: "sdk-coverage",
25317
+ physicalIdForm: "both layers store `<restApiId>|<resourceId>|<httpMethod>`: the Cloud Control Identifier takes that order (measured us-east-1, 2026-11-17; the committed schema fixture lists HttpMethod first) and the API Gateway provider packs the same three segments on PutMethod",
25318
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25319
+ integFixture: "cc-to-sdk-reroute-common-types-7"
25320
+ }],
25321
+ ["AWS::ApiGatewayV2::Stage", {
25322
+ mode: "sdk-coverage",
25323
+ physicalIdForm: "Cloud Control stores `<apiId>|<stageName>` (measured us-east-1, 2026-11-17, for a named stage and `$default`) while the API Gateway v2 provider records the bare stage name and reads ApiId from the properties; normalizeCcPhysicalId keeps the stage name, which the fixture observed equal to the live stage",
25324
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25325
+ integFixture: "cc-to-sdk-reroute-common-types-8",
25326
+ normalizeCcPhysicalId: apiGatewayV2StageSdkPhysicalId
25327
+ }],
25328
+ ["AWS::ApiGatewayV2::Integration", {
25329
+ mode: "sdk-coverage",
25330
+ physicalIdForm: "Cloud Control stores `<apiId>|<integrationId>` (measured us-east-1, 2026-11-17) while the API Gateway v2 provider records the bare CreateIntegration id and reads ApiId from the properties; normalizeCcPhysicalId keeps the integration id, which the fixture observed equal to the live integration",
25331
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25332
+ integFixture: "cc-to-sdk-reroute-common-types-8",
25333
+ normalizeCcPhysicalId: apiGatewayV2IntegrationSdkPhysicalId
25334
+ }],
25335
+ ["AWS::ApiGatewayV2::Route", {
25336
+ mode: "sdk-coverage",
25337
+ physicalIdForm: "Cloud Control stores `<apiId>|<routeId>` (measured us-east-1, 2026-11-17) while the API Gateway v2 provider records the bare CreateRoute id and reads ApiId from the properties; normalizeCcPhysicalId keeps the route id, which the fixture observed equal to the live route",
25338
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25339
+ integFixture: "cc-to-sdk-reroute-common-types-8",
25340
+ normalizeCcPhysicalId: apiGatewayV2RouteSdkPhysicalId
25341
+ }],
25342
+ ["AWS::ApiGatewayV2::Authorizer", {
25343
+ mode: "sdk-coverage",
25344
+ physicalIdForm: "Cloud Control stores `<authorizerId>|<apiId>` (measured us-east-1, 2026-11-17; the live schema primaryIdentifier is AuthorizerId + ApiId, the reverse of the committed schema fixture) while the API Gateway v2 provider records the bare CreateAuthorizer id and reads ApiId from the properties; normalizeCcPhysicalId keeps the authorizer id, which the fixture observed equal to the live authorizer",
25345
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25346
+ integFixture: "cc-to-sdk-reroute-common-types-8",
25347
+ normalizeCcPhysicalId: apiGatewayV2AuthorizerSdkPhysicalId
25348
+ }],
25349
+ ["AWS::AppSync::GraphQLApi", {
25350
+ mode: "sdk-coverage",
25351
+ physicalIdForm: "Cloud Control stores the API ARN `arn:<partition>:appsync:<region>:<account>:apis/<apiId>` (schema primaryIdentifier Arn; measured us-east-1, 2026-11-17) while the AppSync provider records the bare CreateGraphqlApi apiId; normalizeCcPhysicalId keeps the apiId, which the fixture observed equal to the live API",
25352
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25353
+ integFixture: "cc-to-sdk-reroute-common-types-8",
25354
+ normalizeCcPhysicalId: appSyncGraphQLApiSdkPhysicalId
25355
+ }],
25356
+ ["AWS::S3Vectors::VectorBucket", {
25357
+ mode: "sdk-coverage",
25358
+ physicalIdForm: "Cloud Control stores the bucket ARN `arn:<partition>:s3vectors:<region>:<account>:bucket/<name>` (schema primaryIdentifier VectorBucketArn; measured us-east-1, 2026-11-17) while the S3 Vectors provider records the bare bucket name; normalizeCcPhysicalId keeps the name, which the fixture observed equal to the live bucket",
25359
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25360
+ integFixture: "cc-to-sdk-reroute-common-types-8",
25361
+ normalizeCcPhysicalId: s3VectorsVectorBucketSdkPhysicalId
25362
+ }],
25363
+ ["AWS::WAFv2::WebACL", {
25364
+ mode: "sdk-coverage",
25365
+ physicalIdForm: "Cloud Control stores `<Name>|<Id>|<Scope>` (schema primaryIdentifier Name + Id + Scope, in that order; measured us-east-1, 2026-11-17, for REGIONAL and CLOUDFRONT) while the WAFv2 provider records the web ACL ARN; normalizeCcPhysicalId builds `arn:<partition>:wafv2:<region>:<account>:<regional|global>/webacl/<Name>/<Id>`, which the fixture observed equal to the live ARN",
25366
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25367
+ integFixture: "cc-to-sdk-reroute-common-types-10",
25368
+ normalizeCcPhysicalId: wafv2WebAclSdkPhysicalId,
25369
+ normalizerReadsAccountId: true
25370
+ }],
25371
+ ["AWS::CodeCommit::Repository", {
25372
+ mode: "sdk-coverage",
25373
+ physicalIdForm: "Cloud Control stores the RepositoryId UUID (schema primaryIdentifier RepositoryId; measured us-east-1, 2026-11-17) while the CodeCommit provider records the repository name; normalizeCcPhysicalId takes the RepositoryName the record holds, which the fixture observed naming the repository of that id",
25374
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25375
+ integFixture: "cc-to-sdk-reroute-common-types-10",
25376
+ normalizeCcPhysicalId: codeCommitRepositorySdkPhysicalId,
25377
+ ccIdentityAttribute: "RepositoryId"
24708
25378
  }]
24709
25379
  ]);
24710
25380
 
24711
25381
  // src/provisioning/provider-registry.ts
24712
- function sdkAddressedPhysicalId(resourceType, physicalId, logicalId) {
25382
+ async function sdkAddressedPhysicalId(record, logicalId, region) {
25383
+ const { resourceType, physicalId } = record;
24713
25384
  const entry = STICKY_CC_MIGRATION_EXEMPT.get(resourceType);
24714
25385
  const normalize = entry?.normalizeCcPhysicalId;
24715
25386
  if (normalize === void 0) return physicalId;
25387
+ const reads = entry?.normalizerReadsAccountId === true;
25388
+ const ctx = {
25389
+ properties: record.properties ?? {},
25390
+ region,
25391
+ accountId: reads ? ACCOUNT_PLACEHOLDER : "",
25392
+ partition: derivePartitionAndUrlSuffix(region).partition
25393
+ };
25394
+ const normalized = normalizeOrRefuse(entry, normalize, physicalId, ctx, logicalId, resourceType);
25395
+ if (!reads) return normalized;
25396
+ const { accountId } = await getAccountInfo(region);
25397
+ return normalizeOrRefuse(entry, normalize, physicalId, {
25398
+ ...ctx,
25399
+ accountId
25400
+ }, logicalId, resourceType);
25401
+ }
25402
+ const ACCOUNT_PLACEHOLDER = "000000000000";
25403
+ function normalizeOrRefuse(entry, normalize, physicalId, ctx, logicalId, resourceType) {
24716
25404
  try {
24717
- return normalize(physicalId);
25405
+ return normalize(physicalId, ctx);
24718
25406
  } catch (error) {
24719
25407
  const reason = describeAwsFailure(error).detail;
24720
- const remedy = entry?.mode === "sdk-coverage" ? ` Pass --pin-cc-api ${logicalId} to keep it on Cloud Control.` : "";
25408
+ const remedy = entry.mode === "sdk-coverage" ? ` Pass --pin-cc-api ${logicalId} to keep it on Cloud Control.` : "";
24721
25409
  throw new Error(`${logicalId} (${resourceType}) cannot move from Cloud Control to its SDK provider: ${reason}.${remedy}`);
24722
25410
  }
24723
25411
  }
25412
+ async function sdkAddressedRecord(record, logicalId, region) {
25413
+ const physicalId = await sdkAddressedPhysicalId(record, logicalId, region);
25414
+ const attribute = STICKY_CC_MIGRATION_EXEMPT.get(record.resourceType)?.ccIdentityAttribute;
25415
+ if (attribute === void 0) return {
25416
+ ...record,
25417
+ physicalId
25418
+ };
25419
+ return {
25420
+ ...record,
25421
+ physicalId,
25422
+ attributes: {
25423
+ ...record.attributes,
25424
+ [attribute]: record.physicalId
25425
+ }
25426
+ };
25427
+ }
25428
+ function assertSdkReadMatchesCcId(record, logicalId, attributes) {
25429
+ const attribute = STICKY_CC_MIGRATION_EXEMPT.get(record.resourceType)?.ccIdentityAttribute;
25430
+ if (attribute === void 0 || attributes[attribute] === record.physicalId) return;
25431
+ throw new Error(`${logicalId} (${record.resourceType}) cannot move from Cloud Control to its SDK provider: the resource its recorded properties name does not carry the ${attribute} Cloud Control recorded. Pass --pin-cc-api ${logicalId} to keep it on Cloud Control.`);
25432
+ }
24724
25433
  const CC_BROKEN_REASON = "Cloud Control's handler cannot manage this type correctly";
24725
25434
  function ccBrokenReason(resourceType) {
24726
25435
  return STICKY_CC_MIGRATION_EXEMPT.get(resourceType)?.mode === "cc-broken" ? CC_BROKEN_REASON : void 0;
@@ -25338,11 +26047,16 @@ function finalSnapshotFailure(message, error) {
25338
26047
  const thrown = new CdkdError(message, "FINAL_SNAPSHOT_FAILED", cause);
25339
26048
  return cause !== void 0 && describeAwsFailure(cause).redacted ? markRedactedCause(thrown) : thrown;
25340
26049
  }
26050
+ function startedAtOrAfter(started, bound) {
26051
+ if (bound === void 0) return true;
26052
+ return started !== void 0 && new Date(started).getTime() >= bound;
26053
+ }
25341
26054
  function finalSnapshotWaitStopped(snapshotId, logicalId, sourceId, noun) {
25342
- return new CdkdError(safeMsg`Stopped waiting for final snapshot ${snapshotId} of ${logicalId} (${sourceId}): ` + `the run was interrupted. The ${noun} was NOT deleted; the snapshot continues in AWS and the next attempt resumes it.`, "FINAL_SNAPSHOT_FAILED");
26055
+ return new CdkdError(safeMsg`Stopped waiting for final snapshot ${snapshotId} of ${logicalId} (${sourceId}): ` + `the run was interrupted. The ${noun} was NOT deleted; the snapshot continues in AWS and the next attempt resumes it while it is in progress.`, "FINAL_SNAPSHOT_FAILED");
25343
26056
  }
25344
26057
 
25345
26058
  // src/provisioning/final-snapshot/ebs.ts
26059
+ const ATTEMPT_START_SKEW_MARGIN_MS = 3e5;
25346
26060
  function isVolumeNotFound(error) {
25347
26061
  return (error instanceof Error ? error.name : "") === "InvalidVolume.NotFound" || errMsg(error).includes("InvalidVolume.NotFound");
25348
26062
  }
@@ -25351,16 +26065,24 @@ async function createEbsFinalSnapshot(client, volumeId, logicalId, logger, optio
25351
26065
  try {
25352
26066
  const existing = await client.send(new DescribeSnapshotsCommand({
25353
26067
  OwnerIds: ["self"],
25354
- Filters: [{
25355
- Name: `tag:${EBS_FINAL_SNAPSHOT_TAG_KEY}`,
25356
- Values: [volumeId]
25357
- }, {
25358
- Name: "status",
25359
- Values: ["pending", "completed"]
25360
- }]
26068
+ Filters: [
26069
+ {
26070
+ Name: `tag:${EBS_FINAL_SNAPSHOT_TAG_KEY}`,
26071
+ Values: [volumeId]
26072
+ },
26073
+ {
26074
+ Name: "volume-id",
26075
+ Values: [volumeId]
26076
+ },
26077
+ {
26078
+ Name: "status",
26079
+ Values: ["pending", "completed"]
26080
+ }
26081
+ ]
25361
26082
  }));
25362
26083
  const bound = options.reuseStartedAtOrAfter;
25363
- snapshotId = (bound === void 0 ? existing.Snapshots?.[0] : existing.Snapshots?.find((s) => s.StartTime !== void 0 && new Date(s.StartTime).getTime() >= bound))?.SnapshotId;
26084
+ const completedBound = bound ?? (options.attemptStartedAt ?? Date.now()) + 3e5;
26085
+ snapshotId = existing.Snapshots?.find((s) => startedAtOrAfter(s.StartTime, s.State === "pending" ? bound : completedBound))?.SnapshotId;
25364
26086
  if (snapshotId) logger.debug(`Reusing existing final snapshot ${snapshotId} for ${logicalId} (${volumeId}) from a previous destroy attempt`);
25365
26087
  } catch (probeError) {
25366
26088
  logger.debug(`Final-snapshot reuse probe failed for ${volumeId}: ${errMsg(probeError)}`);
@@ -25398,7 +26120,7 @@ async function createEbsFinalSnapshot(client, volumeId, logicalId, logger, optio
25398
26120
  if (((pollError instanceof Error ? pollError.name : "") === "InvalidSnapshot.NotFound" || errMsg(pollError).includes("InvalidSnapshot.NotFound")) && ++notFoundPolls <= 24) state = void 0;
25399
26121
  else {
25400
26122
  const head = `Failed while waiting for final snapshot ${snapshotId} of ${logicalId} (${volumeId})`;
25401
- throw finalSnapshotFailure(`${head}: ${failureSentence(logger, head, pollError)} The volume was NOT deleted; re-run the destroy (the snapshot is reused, not duplicated).`, pollError);
26123
+ throw finalSnapshotFailure(`${head}: ${failureSentence(logger, head, pollError)} The volume was NOT deleted; re-run the destroy (a snapshot still in progress is resumed, not duplicated).`, pollError);
25402
26124
  }
25403
26125
  }
25404
26126
  if (state === "completed") {
@@ -25406,7 +26128,7 @@ async function createEbsFinalSnapshot(client, volumeId, logicalId, logger, optio
25406
26128
  return snapshotId;
25407
26129
  }
25408
26130
  if (state === "error") throw new CdkdError(`Final snapshot ${snapshotId} for ${logicalId} (${volumeId}) entered 'error' state. The volume was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
25409
- if (Date.now() >= deadline) throw new CdkdError(`Timed out waiting for final snapshot ${snapshotId} of ${logicalId} (${volumeId}) to complete. The volume was NOT deleted; the snapshot continues in AWS — re-run the destroy once it completes (the existing snapshot is reused, not duplicated).`, "FINAL_SNAPSHOT_TIMEOUT");
26131
+ if (Date.now() >= deadline) throw new CdkdError(`Timed out waiting for final snapshot ${snapshotId} of ${logicalId} (${volumeId}) to complete. The volume was NOT deleted; the snapshot continues in AWS — re-run the destroy (a snapshot still in progress is resumed; once completed, the re-run takes a fresh one, which holds any writes since).`, "FINAL_SNAPSHOT_TIMEOUT");
25410
26132
  if (options.stop?.() === true) throw finalSnapshotWaitStopped(snapshotId, logicalId, volumeId, "volume");
25411
26133
  await finalSnapshotDelays.sleep(PRE_DELETE_SNAPSHOT_POLL_INTERVAL_MS);
25412
26134
  }
@@ -25435,7 +26157,7 @@ async function waitForNamedSnapshot(opts) {
25435
26157
  if (opts.isTransientNotFound(pollError) && ++notFoundPolls <= 24) status = void 0;
25436
26158
  else {
25437
26159
  const head = `Failed while waiting for final snapshot ${snapshotId} of ${logicalId} (${sourceId})`;
25438
- throw finalSnapshotFailure(`${head}: ${failureSentence(logger, head, pollError)} The ${noun} was NOT deleted; re-run the delete (the snapshot is reused, not duplicated).`, pollError);
26160
+ throw finalSnapshotFailure(`${head}: ${failureSentence(logger, head, pollError)} The ${noun} was NOT deleted; re-run the delete (a snapshot still in progress is resumed, not duplicated).`, pollError);
25439
26161
  }
25440
26162
  }
25441
26163
  if (status === opts.readyStatus) {
@@ -25443,7 +26165,7 @@ async function waitForNamedSnapshot(opts) {
25443
26165
  return snapshotId;
25444
26166
  }
25445
26167
  if (status !== void 0 && opts.failedStatuses.includes(status)) throw new CdkdError(`Final snapshot ${snapshotId} for ${logicalId} (${sourceId}) entered '${status}' state. The ${noun} was NOT deleted.`, "FINAL_SNAPSHOT_FAILED");
25446
- if (Date.now() >= deadline) throw new CdkdError(`Timed out waiting for final snapshot ${snapshotId} of ${logicalId} (${sourceId}) to become ready. The ${noun} was NOT deleted; the snapshot continues in AWS — re-run the delete once it is ready (the existing snapshot is reused, not duplicated).`, "FINAL_SNAPSHOT_TIMEOUT");
26168
+ if (Date.now() >= deadline) throw new CdkdError(`Timed out waiting for final snapshot ${snapshotId} of ${logicalId} (${sourceId}) to become ready. The ${noun} was NOT deleted; the snapshot continues in AWS — re-run the delete (a snapshot still in progress is resumed; once ready, the re-run takes a fresh one).`, "FINAL_SNAPSHOT_TIMEOUT");
25447
26169
  if (opts.stop?.() === true) throw finalSnapshotWaitStopped(snapshotId, logicalId, sourceId, noun);
25448
26170
  await finalSnapshotDelays.sleep(PRE_DELETE_SNAPSHOT_POLL_INTERVAL_MS);
25449
26171
  }
@@ -25451,10 +26173,6 @@ async function waitForNamedSnapshot(opts) {
25451
26173
  function errorNameOrMessageIncludes(error, token) {
25452
26174
  return (error instanceof Error ? error.name : "") === token || errMsg(error).includes(token);
25453
26175
  }
25454
- function startedAtOrAfter(started, bound) {
25455
- if (bound === void 0) return true;
25456
- return started !== void 0 && new Date(started).getTime() >= bound;
25457
- }
25458
26176
  const REUSE_PROBE_MAX_PAGES = 10;
25459
26177
  function generatedSnapshotNameMatcher(physicalId, resourceType) {
25460
26178
  const escaped = finalSnapshotNamePrefix(physicalId, resourceType).replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
@@ -25668,7 +26386,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
25668
26386
  if (resourceType !== "AWS::RDS::DBInstance") return false;
25669
26387
  if (region === void 0 || region === "") return false;
25670
26388
  const mask = input.mask ?? ((text) => text);
25671
- const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-YGp4k5-z.js").then((n) => n.l);
26389
+ const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-BJFu-OeG.js").then((n) => n.l);
25672
26390
  let reason;
25673
26391
  try {
25674
26392
  const live = await describeDBInstanceInRegion(physicalId, region);
@@ -25694,6 +26412,7 @@ function replacementDeleteContext(deps, updateReplacePolicy) {
25694
26412
  };
25695
26413
  }
25696
26414
  async function prepareFinalSnapshotForDelete(deps, logicalId, resourceType, currentResource, policy, mask) {
26415
+ const attemptStartedAt = Date.now();
25697
26416
  if (policy !== "Snapshot" || deps.options.skipFinalSnapshot === true) return void 0;
25698
26417
  if (ATOMIC_FINAL_SNAPSHOT_TYPES.has(resourceType) && currentResource.provisionedBy !== "cc-api") return buildFinalSnapshotIdentifier(currentResource.physicalId, resourceType);
25699
26418
  if (ATOMIC_FINAL_SNAPSHOT_TYPES.has(resourceType)) {
@@ -25708,7 +26427,7 @@ async function prepareFinalSnapshotForDelete(deps, logicalId, resourceType, curr
25708
26427
  throw ccRoutedFinalSnapshotError(logicalId, resourceType, "--skip-final-snapshot");
25709
26428
  }
25710
26429
  if (PRE_DELETE_SNAPSHOT_TYPES.has(resourceType)) {
25711
- await takePreDeleteSnapshot(deps, logicalId, resourceType, currentResource.physicalId, mask);
26430
+ await takePreDeleteSnapshot(deps, logicalId, resourceType, currentResource.physicalId, mask, { attemptStartedAt });
25712
26431
  return;
25713
26432
  }
25714
26433
  throw unsupportedFinalSnapshotError(logicalId, resourceType, "--skip-final-snapshot");
@@ -25726,7 +26445,7 @@ async function takePreDeleteSnapshot(deps, logicalId, resourceType, physicalId,
25726
26445
  debug: (message) => deps.logger.debug(mask(message))
25727
26446
  };
25728
26447
  const clients = deps.options.finalSnapshotClients ?? getAwsClients();
25729
- await (options === void 0 ? createPreDeleteFinalSnapshot(resourceType, physicalId, logicalId, clients, logger) : createPreDeleteFinalSnapshot(resourceType, physicalId, logicalId, clients, logger, options));
26448
+ await createPreDeleteFinalSnapshot(resourceType, physicalId, logicalId, clients, logger, options);
25730
26449
  }
25731
26450
 
25732
26451
  // src/deployment/deploy-engine/masking/remedy.ts
@@ -26149,6 +26868,7 @@ function isRestorableBag(bag) {
26149
26868
  return typeof bag === "object" && bag !== null && !Array.isArray(bag);
26150
26869
  }
26151
26870
  async function prepareCreateRollbackFinalSnapshot(op, provisionedBy, ctx, mask) {
26871
+ const attemptStartedAt = Date.now();
26152
26872
  const { logicalId, resourceType } = op;
26153
26873
  const physicalId = op.physicalId;
26154
26874
  switch (finalSnapshotMechanism(resourceType, provisionedBy)) {
@@ -26157,7 +26877,7 @@ async function prepareCreateRollbackFinalSnapshot(op, provisionedBy, ctx, mask)
26157
26877
  await createPreDeleteFinalSnapshot(resourceType, physicalId, logicalId, ctx.finalSnapshotClients ?? getAwsClients(), {
26158
26878
  info: (message) => ctx.logger.info(mask(message)),
26159
26879
  debug: (message) => ctx.logger.debug(mask(message))
26160
- });
26880
+ }, { attemptStartedAt });
26161
26881
  return;
26162
26882
  case "refuse-cc-routed":
26163
26883
  if (await ccRoutedInstanceTakesNoSnapshot({
@@ -26449,7 +27169,8 @@ async function readRecordAttributes(input) {
26449
27169
  const { provider, logicalId, resource, stackName, region } = input;
26450
27170
  if (!provider.import) return { kind: "not-attempted" };
26451
27171
  if (!hasAddressablePhysicalId(resource)) return { kind: "not-attempted" };
26452
- const physicalId = resource.provisionedBy === "cc-api" && !(provider instanceof CloudControlProvider) ? sdkAddressedPhysicalId(resource.resourceType, resource.physicalId, logicalId) : resource.physicalId;
27172
+ const flipped = resource.provisionedBy === "cc-api" && !(provider instanceof CloudControlProvider);
27173
+ const physicalId = flipped ? await sdkAddressedPhysicalId(resource, logicalId, region) : resource.physicalId;
26453
27174
  const found = await provider.import({
26454
27175
  logicalId,
26455
27176
  resourceType: resource.resourceType,
@@ -26460,6 +27181,7 @@ async function readRecordAttributes(input) {
26460
27181
  });
26461
27182
  if (found === null) return { kind: "not-found" };
26462
27183
  if (found.physicalId !== physicalId) throw new Error(`the provider answered for a different resource (${found.physicalId}) than the one asked about (${physicalId})`);
27184
+ if (flipped) assertSdkReadMatchesCcId(resource, logicalId, found.attributes ?? {});
26463
27185
  const reported = Object.entries(normalizeHealedAttributes(found.attributes));
26464
27186
  const attributes = Object.fromEntries(reported.filter(([, value]) => !carriesSecretMask(value)));
26465
27187
  const withheldKeys = reported.filter(([, value]) => carriesSecretMask(value)).map(([key]) => key);
@@ -30919,6 +31641,148 @@ async function replayDelete(s) {
30919
31641
  });
30920
31642
  }
30921
31643
 
31644
+ // src/deployment/deploy-engine/update-policy.ts
31645
+ const HONORED_UPDATE_POLICIES = {
31646
+ "AWS::AutoScaling::AutoScalingGroup": [
31647
+ {
31648
+ key: "AutoScalingScheduledAction",
31649
+ route: "sdk",
31650
+ asksForIt: (policy) => ignoresUnmodifiedGroupSize(policy)
31651
+ },
31652
+ {
31653
+ key: "AutoScalingReplacingUpdate",
31654
+ route: "any",
31655
+ asksForIt: (policy, changed) => willReplaceGroup(policy) && REPLACEMENT_TRIGGER_PROPERTIES.some((k) => changed.has(k))
31656
+ },
31657
+ {
31658
+ key: "AutoScalingRollingUpdate",
31659
+ route: "sdk",
31660
+ asksForIt: (policy, changed) => rollingUpdatePolicy(policy) !== void 0 && REPLACEMENT_TRIGGER_PROPERTIES.some((k) => changed.has(k))
31661
+ },
31662
+ {
31663
+ key: "AutoScalingInstanceRefresh",
31664
+ route: "sdk",
31665
+ asksForIt: (policy, changed) => isObject$2(policy["AutoScalingInstanceRefresh"]) && !willReplaceGroup(policy) && INSTANCE_REFRESH_TRIGGER_PROPERTIES.some((k) => changed.has(k))
31666
+ }
31667
+ ],
31668
+ "AWS::Lambda::Alias": [{
31669
+ key: "CodeDeployLambdaAliasUpdate",
31670
+ route: "any",
31671
+ asksForIt: (policy, changed) => isObject$2(policy["CodeDeployLambdaAliasUpdate"]) && changed.has("FunctionVersion")
31672
+ }]
31673
+ };
31674
+ async function resolveAliasUpdatePolicy(updatePolicyOption, logicalId, resourceType, resource, versionChanges, resolve, secretGuard) {
31675
+ if (updatePolicyOption !== true || resourceType !== "AWS::Lambda::Alias") return void 0;
31676
+ if (!versionChanges) return void 0;
31677
+ const updatePolicy = resource?.UpdatePolicy;
31678
+ if (!isObject$2(updatePolicy)) return void 0;
31679
+ const aliasPolicy = updatePolicy["CodeDeployLambdaAliasUpdate"];
31680
+ if (!isObject$2(aliasPolicy)) return void 0;
31681
+ const refusal = () => markRefusedBeforeApplying(markNonRetryable(new CdkdError(safeMsg`${logicalId}: UpdatePolicy CodeDeployLambdaAliasUpdate names a secret (a dynamic reference or a NoEcho value), which cdkd does not resolve there. Name the application, deployment group and hook functions directly or with Ref.`, "UPDATE_POLICY_SECRET_REFUSED")));
31682
+ if (JSON.stringify(aliasPolicy).includes("{{resolve:")) throw refusal();
31683
+ const isSecretBearing = secretGuard();
31684
+ const resolved = await resolve(aliasPolicy);
31685
+ if (isSecretBearing(resolved)) throw refusal();
31686
+ return {
31687
+ ...updatePolicy,
31688
+ CodeDeployLambdaAliasUpdate: resolved
31689
+ };
31690
+ }
31691
+ function isObject$2(value) {
31692
+ return typeof value === "object" && value !== null && !Array.isArray(value);
31693
+ }
31694
+ function askedKeys(resourceType, updatePolicy, changed, route) {
31695
+ return (HONORED_UPDATE_POLICIES[resourceType] ?? []).filter((entry) => (route === "sdk" || entry.route === "any") && entry.asksForIt(updatePolicy, changed)).map((entry) => entry.key);
31696
+ }
31697
+ function updatePolicyContext(updatePolicyOption, logger, logicalId, resourceType, resource, provisionedBy, changed, resolved) {
31698
+ const updatePolicy = resolved ?? resource?.UpdatePolicy;
31699
+ if (typeof updatePolicy !== "object" || updatePolicy === null) return {};
31700
+ if (updatePolicyOption === false) return {};
31701
+ if (updatePolicyOption === true) {
31702
+ if (provisionedBy !== "sdk") {
31703
+ const unapplied = askedKeys(resourceType, updatePolicy, changed, "sdk").filter((key) => !askedKeys(resourceType, updatePolicy, changed, "cc-api").includes(key));
31704
+ if (unapplied.length > 0) logger.warn(safeMsg`${logicalId}: UpdatePolicy ${unapplied.join(", ")} is not applied by cdkd on the Cloud Control route this update takes.`);
31705
+ }
31706
+ return { updatePolicy };
31707
+ }
31708
+ const keys = askedKeys(resourceType, updatePolicy, changed, provisionedBy);
31709
+ if (keys.length > 0) logger.info(safeMsg`${logicalId}: UpdatePolicy ${keys.join(", ")} is skipped by default; pass --update-policy to honor it.`);
31710
+ return {};
31711
+ }
31712
+ function aliasPolicySecretGuard(secrets) {
31713
+ const pairs = secrets.size;
31714
+ const logOnly = logOnlyValueCount(secrets);
31715
+ return (resolved) => {
31716
+ if (secrets.size !== pairs || logOnlyValueCount(secrets) !== logOnly) return true;
31717
+ const corpus = printingCorpusOf(secrets);
31718
+ if (stringLeaves(resolved).some((leaf) => corpus.has(leaf))) return true;
31719
+ const text = JSON.stringify(resolved) ?? "";
31720
+ return createSecretMasker(secrets)(text) !== text;
31721
+ };
31722
+ }
31723
+ function stringLeaves(value) {
31724
+ if (typeof value === "string") return [value];
31725
+ if (Array.isArray(value)) return value.flatMap(stringLeaves);
31726
+ if (isObject$2(value)) return Object.values(value).flatMap(stringLeaves);
31727
+ return [];
31728
+ }
31729
+ function warnUnhonoredCreationPolicy(logger, logicalId, resource) {
31730
+ if (resource?.CreationPolicy === void 0) return;
31731
+ logger.warn(safeMsg`${logicalId}: CreationPolicy is not honored; cdkd does not wait for cfn-signal success signals.`);
31732
+ }
31733
+ function updatePolicyReplacementRefusal(logicalId, resource, desired, triggerPaths, stackHasInstanceId) {
31734
+ const updatePolicy = resource?.UpdatePolicy;
31735
+ const changed = [...new Set(triggerPaths.map((path) => path.split(/[.[]/)[0] ?? path))];
31736
+ const head = safeMsg`${logicalId}: UpdatePolicy AutoScalingReplacingUpdate (WillReplace: true) replaces the group because ${changed.join(", ")} changed, but `;
31737
+ if (isObject$2(updatePolicy) && isObject$2(updatePolicy["AutoScalingInstanceRefresh"]) && isObject$2(updatePolicy["AutoScalingRollingUpdate"])) return head + "the template also declares both AutoScalingInstanceRefresh and AutoScalingRollingUpdate, which CloudFormation fails an update on. Keep one of the two.";
31738
+ const name = desired["AutoScalingGroupName"];
31739
+ if (name !== void 0 && name !== null && name !== "") return head + "the template names the group (AutoScalingGroupName), so the new group cannot be created beside the old one. CloudFormation refuses to replace a custom-named resource the same way. Remove AutoScalingGroupName, or deploy without --update-policy to update the group in place.";
31740
+ if (!stackHasInstanceId) return head + "this stack's state predates cdkd's replacement names, so the new group would be given the name the old group holds. Deploy without --update-policy to update the group in place.";
31741
+ }
31742
+ function journaledUpdatePolicy(updatePolicyOption, resource, resolved) {
31743
+ const updatePolicy = resolved ?? resource?.UpdatePolicy;
31744
+ return updatePolicyOption === true && isObject$2(updatePolicy) ? updatePolicy : void 0;
31745
+ }
31746
+ function revertUpdatePolicy(journaled) {
31747
+ if (!isObject$2(journaled)) return void 0;
31748
+ const { AutoScalingScheduledAction: _ignoredOnRollback, ...rest } = journaled;
31749
+ return Object.keys(rest).length > 0 ? rest : void 0;
31750
+ }
31751
+ function revertUpdatePolicyContext(journaled) {
31752
+ const updatePolicy = revertUpdatePolicy(journaled);
31753
+ return updatePolicy !== void 0 ? { updatePolicy } : {};
31754
+ }
31755
+ function findUpdatePolicyReplacementRefusals(changes, template, stackHasInstanceId, createRoutesToCloudControl) {
31756
+ const refusals = [];
31757
+ for (const [logicalId, change] of changes) {
31758
+ if (change.changeType !== "UPDATE") continue;
31759
+ const replacing = (change.propertyChanges ?? []).filter((pc) => pc.requiresReplacement);
31760
+ if (replacing.length === 0 || !replacing.every((pc) => pc.updatePolicyReplacement === true)) continue;
31761
+ if (replacing.every((pc) => pc.inPlacePropagated === true || pc.replacementPropagated === true)) continue;
31762
+ if (createRoutesToCloudControl?.(logicalId, change) === true) {
31763
+ refusals.push(cloudControlReplacementRefusal(logicalId));
31764
+ continue;
31765
+ }
31766
+ const { AutoScalingGroupName: name, ...rest } = change.desiredProperties ?? {};
31767
+ const refusal = updatePolicyReplacementRefusal(logicalId, template?.Resources?.[logicalId], typeof name === "string" ? {
31768
+ ...rest,
31769
+ AutoScalingGroupName: name
31770
+ } : rest, replacing.map((pc) => pc.path), stackHasInstanceId);
31771
+ if (refusal !== void 0) refusals.push(refusal);
31772
+ }
31773
+ return refusals;
31774
+ }
31775
+ function cloudControlReplacementRefusal(logicalId) {
31776
+ return safeMsg`${logicalId}: UpdatePolicy AutoScalingReplacingUpdate (WillReplace: true) replaces the group, but the new group would be created through Cloud Control, which cannot wait for its instances to be in service before the old group is deleted. ` + "Deploy without --update-policy to update the group in place.";
31777
+ }
31778
+ function replacementCreateRoutesToCloudControl(getProviderFor, change, recordProperties) {
31779
+ return getProviderFor({
31780
+ resourceType: change.resourceType,
31781
+ properties: change.desiredProperties ?? {},
31782
+ previousProperties: recordProperties
31783
+ }).provisionedBy !== "sdk";
31784
+ }
31785
+
30922
31786
  // src/deployment/update-outcome.ts
30923
31787
  function updatePartialReason(result) {
30924
31788
  if (!result || result.outcome !== "partial") return void 0;
@@ -31867,7 +32731,8 @@ async function replayRevert(s) {
31867
32731
  ...revertClaimed && { inlinePolicyClaimed: revertClaimed },
31868
32732
  ...unsettledContextOf(current, previousState),
31869
32733
  typedPayloadLeaves: previousState.typedPayloadLeaves,
31870
- previousTypedPayloadLeaves: current.typedPayloadLeaves
32734
+ previousTypedPayloadLeaves: current.typedPayloadLeaves,
32735
+ ...revertUpdatePolicyContext(op.updatePolicy)
31871
32736
  }
31872
32737
  ], op.logicalId, logger, isInterrupted, secrets, mask));
31873
32738
  if (revertResult) recordNoEchoAttributeValues(revertResult, secrets, desiredProps);
@@ -32942,7 +33807,8 @@ async function replayFailedOperationsUnbound(failedOps, stateResources, stackNam
32942
33807
  recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
32943
33808
  ...revertFailedClaimed && { inlinePolicyClaimed: revertFailedClaimed },
32944
33809
  ...revertUnsettled,
32945
- typedPayloadLeaves: prev.typedPayloadLeaves
33810
+ typedPayloadLeaves: prev.typedPayloadLeaves,
33811
+ ...revertUpdatePolicyContext(op.updatePolicy)
32946
33812
  }
32947
33813
  ], op.logicalId, logger, options.isInterrupted, secrets, mask));
32948
33814
  if (revertFailedResult) recordNoEchoAttributeValues(revertFailedResult, secrets, desiredProps);
@@ -37543,89 +38409,6 @@ function formatResourceLine(op, logicalId, resourceType, verbOverride) {
37543
38409
  }
37544
38410
  }
37545
38411
 
37546
- // src/deployment/prior-attempt-scope.ts
37547
- const priorAttemptStore = new AsyncLocalStorage();
37548
- function withPriorAttempts(lookup, fn) {
37549
- return priorAttemptStore.run(lookup, fn);
37550
- }
37551
- function priorAttemptLookup(logicalId, attempts, provenOrphanIds) {
37552
- let landed = false;
37553
- return {
37554
- logicalId,
37555
- attempts,
37556
- ...provenOrphanIds !== void 0 && { provenOrphanIds },
37557
- notePossiblyLanded: () => {
37558
- landed = true;
37559
- },
37560
- possiblyLanded: () => landed
37561
- };
37562
- }
37563
- function getPriorAttempts(logicalId) {
37564
- const bound = priorAttemptStore.getStore();
37565
- return bound?.logicalId === logicalId ? bound : void 0;
37566
- }
37567
- function priorAttemptsInJournal(journal, logicalId, resourceType) {
37568
- const bags = [];
37569
- for (const op of unsupersededFailedOps(journal, logicalId, resourceType)) {
37570
- if (op.changeType === "DELETE" || !isBag(op.attemptedProperties)) continue;
37571
- if (op.changeType === "UPDATE" && op.replacementOrphaned !== void 0) continue;
37572
- if (recordedAsNewResource(op)) continue;
37573
- bags.push(op.attemptedProperties);
37574
- }
37575
- return bags;
37576
- }
37577
- function provenOrphanIdsInJournal(journal, logicalId, resourceType) {
37578
- const ids = [];
37579
- for (const op of unsupersededFailedOps(journal, logicalId, resourceType)) {
37580
- if (op.changeType !== "CREATE" || op.physicalIdRecoveredFromError !== true) continue;
37581
- if (typeof op.physicalId === "string" && op.physicalId !== "") ids.push(op.physicalId);
37582
- }
37583
- return ids;
37584
- }
37585
- function unsupersededFailedOps(journal, logicalId, resourceType) {
37586
- let ops = [];
37587
- for (const segment of journal?.segments ?? []) {
37588
- if (segment.operations.some((op) => op.logicalId === logicalId)) ops = [];
37589
- for (const op of segment.failedOperations ?? []) if (op.logicalId === logicalId && op.resourceType === resourceType) ops.push(op);
37590
- if (segment.supersededLogicalIds?.includes(logicalId)) ops = [];
37591
- }
37592
- return ops;
37593
- }
37594
- function recordedAsNewResource(op) {
37595
- if (typeof op.physicalId !== "string" || op.physicalId === "") return false;
37596
- if (op.physicalIdRecoveredFromError === true) return false;
37597
- if (op.changeType === "CREATE") return true;
37598
- const previous = op.previousState?.physicalId;
37599
- return typeof previous === "string" && previous !== op.physicalId;
37600
- }
37601
- function isBag(value) {
37602
- return typeof value === "object" && value !== null && !Array.isArray(value);
37603
- }
37604
- const REFUSED_BEFORE_APPLYING = Symbol.for("cdkd.refusedBeforeApplying");
37605
- const MAX_CAUSE_DEPTH = 10;
37606
- function markRefusedBeforeApplying(error) {
37607
- if (!Object.isExtensible(error)) return error;
37608
- Object.defineProperty(error, REFUSED_BEFORE_APPLYING, {
37609
- value: true,
37610
- enumerable: false,
37611
- configurable: true,
37612
- writable: false
37613
- });
37614
- return error;
37615
- }
37616
- function isRefusedBeforeApplying(error, logicalId) {
37617
- let current = error;
37618
- for (let depth = 0; depth < MAX_CAUSE_DEPTH && current != null; depth++) {
37619
- if (typeof current === "object" || typeof current === "function") {
37620
- const linkId = current.logicalId;
37621
- if (typeof linkId === "string" && linkId !== logicalId) return false;
37622
- if (current[REFUSED_BEFORE_APPLYING] === true) return true;
37623
- }
37624
- current = current.cause;
37625
- }
37626
- return false;
37627
- }
37628
-
37629
38412
  // src/deployment/deploy-engine/update/noecho-macs.ts
37630
38413
  function covers(coordinate, key, leafPath) {
37631
38414
  if (coordinate[0] !== key) return false;
@@ -46364,6 +47147,8 @@ async function resolveUpdateInputs(engine, logicalId, change, stateResources, st
46364
47147
  if (noEchoOverrides !== void 0) context.noEchoAttributeOverrides = noEchoOverrides;
46365
47148
  printNestedStackReadsOnly(context, resourceType, secretNameBagFor(engine.secretsRun, logicalId));
46366
47149
  const resolvedProps = await engine.resolver.resolve(desiredProps, context);
47150
+ const aliasUpdatePolicy = await resolveAliasUpdatePolicy(engine.options.updatePolicy, logicalId, resourceType, template?.Resources?.[logicalId], String(resolvedProps["FunctionVersion"]) !== String(currentProps["FunctionVersion"]), (value) => engine.resolver.resolve(value, context), () => aliasPolicySecretGuard(updateSecrets));
47151
+ if (aliasUpdatePolicy !== void 0) engine.resolvedUpdatePolicies.set(logicalId, aliasUpdatePolicy);
46367
47152
  noteSecretNamedRecord(engine.secretsRun, logicalId, {
46368
47153
  resourceType,
46369
47154
  physicalId: stateResources[logicalId]?.physicalId,
@@ -46764,8 +47549,9 @@ async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSam
46764
47549
  }
46765
47550
 
46766
47551
  // src/deployment/deploy-engine/update-replace/create-first.ts
46767
- async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, typedPayloadLeaves, lostWithParent, nameChange }) {
47552
+ async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, typedPayloadLeaves, lostWithParent, nameChange, awaitInService }) {
46768
47553
  let createResult;
47554
+ if (awaitInService === true && replaceDecision.provisionedBy !== "sdk") throw markRefusedBeforeApplying(markNonRetryable(new CdkdError(cloudControlReplacementRefusal(logicalId), "UPDATE_POLICY_REPLACEMENT_REFUSED")));
46769
47555
  engine.logger.info(safeMsg` Creating new ${logicalId}...`);
46770
47556
  let deletedOldFirst = lostWithParent !== void 0;
46771
47557
  if (lostWithParent !== void 0) {
@@ -46782,7 +47568,8 @@ async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResour
46782
47568
  keepsName: lostWithParent !== void 0
46783
47569
  }, () => engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => replaceProvider.create(logicalId, resourceType, replaceProps, {
46784
47570
  maskSecrets: createSecretMasker(updateSecrets),
46785
- ...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
47571
+ ...typedPayloadLeaves !== void 0 && { typedPayloadLeaves },
47572
+ ...awaitInService === true && { awaitInService: true }
46786
47573
  })), logicalId, void 0, void 0, replaceProvider, lostWithParent !== void 0));
46787
47574
  } catch (createError) {
46788
47575
  const createFailure = describeAwsFailure(createError);
@@ -46859,7 +47646,7 @@ async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResour
46859
47646
  }
46860
47647
 
46861
47648
  // src/deployment/deploy-engine/update-replace.ts
46862
- async function updateByReplacement(engine, { change, counts, currentProps, currentResource, dependencies, logicalId, oldResourceType, progress, propertyDrivenReplacement, recreateFlagged, recreateViaCcApi, recreateViaSdkProvider, renderer, resolvedProps, resourceType, stackName, stateResources, template, typeChanged, updateReplacePolicy, updateSecrets, lostWithParent, nameGenerationFields }) {
47649
+ async function updateByReplacement(engine, { change, counts, currentProps, currentResource, dependencies, logicalId, oldResourceType, progress, propertyDrivenReplacement, recreateFlagged, recreateViaCcApi, recreateViaSdkProvider, renderer, resolvedProps, resourceType, stackName, stateResources, template, typeChanged, updateReplacePolicy, updateSecrets, lostWithParent, nameGenerationFields, policyReplacement }) {
46863
47650
  const noEchoDeleteValues = await noEchoDeleteValuesFromResolved({
46864
47651
  record: currentResource,
46865
47652
  templateResource: template?.Resources?.[logicalId],
@@ -46885,6 +47672,7 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
46885
47672
  let replacementReason;
46886
47673
  if (recreateViaCcApi) replacementReason = "--recreate-via-cc-api flag (mid-life SDK→CC migration)";
46887
47674
  else if (recreateViaSdkProvider) replacementReason = "--recreate-via-sdk-provider flag (mid-life CC→SDK migration)";
47675
+ else if (policyReplacement === true) replacementReason = "UpdatePolicy AutoScalingReplacingUpdate (WillReplace: true)";
46888
47676
  else replacementReason = `immutable properties changed: ${change.propertyChanges?.filter((pc) => pc.requiresReplacement).map((pc) => pc.path).join(", ")}`;
46889
47677
  engine.logger.info(safeMsg`Replacing ${logicalId} (${typeChanged ? `${oldResourceType} -> ${resourceType}` : resourceType}) - ${replacementReason}`);
46890
47678
  const recreateDirectionHint = recreateViaCcApi ? "cc-api" : recreateViaSdkProvider ? "sdk" : void 0;
@@ -46992,7 +47780,8 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
46992
47780
  updateSecrets,
46993
47781
  lostWithParent,
46994
47782
  typedPayloadLeaves,
46995
- nameChange
47783
+ nameChange,
47784
+ awaitInService: policyReplacement === true
46996
47785
  });
46997
47786
  registerNoEchoAttributes(engine.secretsRun, engine.maskingDeps(), logicalId, createResult, updateSecrets, resolvedProps);
46998
47787
  if (equalIdIsSameResource && createResult.physicalId === currentResource.physicalId) engine.replacementRun.recreatedUnderSameId.add(logicalId);
@@ -47072,31 +47861,6 @@ function unsettledMarkSinks(engine, logicalId, resolvedProps, currentResource) {
47072
47861
  };
47073
47862
  }
47074
47863
 
47075
- // src/deployment/deploy-engine/update-policy.ts
47076
- const HONORED_UPDATE_POLICIES = { "AWS::AutoScaling::AutoScalingGroup": [{
47077
- key: "AutoScalingScheduledAction",
47078
- asksForIt: ignoresUnmodifiedGroupSize
47079
- }] };
47080
- function honoredKeysPresent(resourceType, updatePolicy) {
47081
- return (HONORED_UPDATE_POLICIES[resourceType] ?? []).filter((entry) => entry.asksForIt(updatePolicy)).map((entry) => entry.key);
47082
- }
47083
- function updatePolicyContext(updatePolicyOption, logger, logicalId, resourceType, resource, provisionedBy) {
47084
- const updatePolicy = resource?.UpdatePolicy;
47085
- if (typeof updatePolicy !== "object" || updatePolicy === null) return {};
47086
- if (updatePolicyOption === false) return {};
47087
- const keys = honoredKeysPresent(resourceType, updatePolicy);
47088
- if (updatePolicyOption === true) {
47089
- if (provisionedBy !== "sdk" && keys.length > 0) logger.warn(safeMsg`${logicalId}: UpdatePolicy ${keys.join(", ")} is not applied by cdkd on the Cloud Control route this update takes.`);
47090
- return { updatePolicy };
47091
- }
47092
- if (provisionedBy === "sdk" && keys.length > 0) logger.info(safeMsg`${logicalId}: UpdatePolicy ${keys.join(", ")} is skipped by default; pass --update-policy to honor it.`);
47093
- return {};
47094
- }
47095
- function warnUnhonoredCreationPolicy(logger, logicalId, resource) {
47096
- if (resource?.CreationPolicy === void 0) return;
47097
- logger.warn(safeMsg`${logicalId}: CreationPolicy is not honored; cdkd does not wait for cfn-signal success signals.`);
47098
- }
47099
-
47100
47864
  // src/deployment/deploy-engine/replacement/cleanup-old-id.ts
47101
47865
  async function deleteOldIdAfterDeploy(run, deps, input) {
47102
47866
  const { logicalId, oldResource } = input;
@@ -47352,10 +48116,7 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
47352
48116
  previousProperties: recordedResource.properties,
47353
48117
  ...isPinnedToCcApi(engine.options, stackName, logicalId) && { forceCcApi: true }
47354
48118
  });
47355
- const currentResource = updateDecision.sdkMigration === true ? {
47356
- ...recordedResource,
47357
- physicalId: sdkAddressedPhysicalId(resourceType, recordedResource.physicalId, logicalId)
47358
- } : recordedResource;
48119
+ const currentResource = updateDecision.sdkMigration === true ? await sdkAddressedRecord(recordedResource, logicalId, engine.stackRegion) : recordedResource;
47359
48120
  if (updateDecision.sdkMigration === true) {
47360
48121
  const exemptMode = STICKY_CC_MIGRATION_EXEMPT.get(resourceType)?.mode;
47361
48122
  const preserved = currentResource.physicalId === recordedResource.physicalId ? "The physical id is preserved" : "The resource is kept in place, and its recorded physical id takes the SDK provider's form";
@@ -47426,7 +48187,7 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
47426
48187
  let replacedAtGeneration;
47427
48188
  const inlinePolicyClaimed = engine.inlinePolicyClaimedFor(resourceType, logicalId, stateResources);
47428
48189
  const typedPayloadLeaves = customResourcePayloadLeaves(resourceType, template?.Resources?.[logicalId]?.Properties, resolvedProps, template, conditions, stateResources);
47429
- const updatePolicy = updatePolicyContext(engine.options.updatePolicy, engine.logger, logicalId, resourceType, template?.Resources?.[logicalId], updateDecision.provisionedBy);
48190
+ const updatePolicy = updatePolicyContext(engine.options.updatePolicy, engine.logger, logicalId, resourceType, template?.Resources?.[logicalId], updateDecision.provisionedBy, changedProperties, engine.resolvedUpdatePolicies.get(logicalId));
47430
48191
  try {
47431
48192
  result = await engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => updateProvider.update(logicalId, currentResource.physicalId, resourceType, removal.properties, previousSettled, {
47432
48193
  maskSecrets: createSecretMasker(updateSecrets),
@@ -47720,7 +48481,7 @@ function deferredServiceTokenWarning(row) {
47720
48481
 
47721
48482
  // src/deployment/deploy-engine/update/finish.ts
47722
48483
  async function finishUpdate(engine, input) {
47723
- const { logicalId, change, stateResources, stackName, template, parameterValues, conditions, counts, progress, resourceType, renderer, currentResource, oldResourceType, typeChanged, currentProps, updateSecrets, resolvedProps, lostChild, lostWithParent, desiredForSkipCheckAsWritten, witness, currentPropsAsWritten, otherFreshAt, pendingParameterLeaves, unsettledNames, movedAsWritten, confirmedPaths, macChangedPaths, propertyDrivenReplacement, recreateViaCcApi, recreateViaSdkProvider, recreateFlagged, needsReplacement } = input;
48484
+ const { logicalId, change, stateResources, stackName, template, parameterValues, conditions, counts, progress, resourceType, renderer, currentResource, oldResourceType, typeChanged, currentProps, updateSecrets, resolvedProps, lostChild, lostWithParent, desiredForSkipCheckAsWritten, witness, currentPropsAsWritten, otherFreshAt, pendingParameterLeaves, unsettledNames, movedAsWritten, confirmedPaths, macChangedPaths, propertyDrivenReplacement, recreateViaCcApi, recreateViaSdkProvider, recreateFlagged, needsReplacement, policyReplacement } = input;
47724
48485
  const liveLabel = engine.liveTaskLabels.get(logicalId);
47725
48486
  if (needsReplacement && liveLabel !== void 0 && !liveLabel.replacing) {
47726
48487
  const label = `Replacing ${logicalId} (${resourceType})${peekRoutingForLabel(engine.providerRegistry, engine.options, change, currentResource, stackName, logicalId, true, recreateDirectionFor(engine.options, stackName, logicalId)) === "cc-api" ? " [CC API]" : ""}`;
@@ -47776,7 +48537,8 @@ async function finishUpdate(engine, input) {
47776
48537
  updateReplacePolicy,
47777
48538
  updateSecrets,
47778
48539
  lostWithParent,
47779
- nameGenerationFields
48540
+ nameGenerationFields,
48541
+ policyReplacement: policyReplacement === true
47780
48542
  });
47781
48543
  const replaced = await (nextGeneration === void 0 ? replace() : withNameGeneration({
47782
48544
  logicalId,
@@ -48111,9 +48873,15 @@ async function provisionUpdate(engine, logicalId, change, stateResources, stackN
48111
48873
  const recreateViaCcApi = recreateTargets?.viaCcApi.has(logicalId) ?? false;
48112
48874
  const recreateViaSdkProvider = recreateTargets?.viaSdkProvider.has(logicalId) ?? false;
48113
48875
  const recreateFlagged = recreateViaCcApi || recreateViaSdkProvider;
48876
+ const replacementChanges = (change.propertyChanges ?? []).filter((pc) => pc.requiresReplacement);
48877
+ const policyReplacement = !typeChanged && !recreateFlagged && lostWithParent === void 0 && replacementChanges.length > 0 && replacementChanges.every((pc) => pc.updatePolicyReplacement === true);
48878
+ if (policyReplacement) {
48879
+ const refusal = updatePolicyReplacementRefusal(logicalId, template?.Resources?.[logicalId], resolvedProps, replacementChanges.map((pc) => pc.path), getCurrentStackInstanceId() !== void 0);
48880
+ if (refusal !== void 0) throw markRefusedBeforeApplying(markNonRetryable(new CdkdError(refusal, "UPDATE_POLICY_REPLACEMENT_REFUSED")));
48881
+ }
48114
48882
  const needsReplacement = propertyDrivenReplacement || recreateFlagged || lostWithParent !== void 0;
48115
48883
  if (propertyDrivenReplacement && !typeChanged && !recreateFlagged && lostWithParent === void 0 && engine.options.replace !== true && currentResource.provisionedBy !== "cc-api") {
48116
- const unwritten = unwrittenCreateOnlyReplacement(resourceType, currentProps, desiredForSkipCheck, allowedForRecord, createOnlyEvidence, (change.propertyChanges ?? []).filter((pc) => pc.requiresReplacement).map((pc) => pc.path));
48884
+ const unwritten = unwrittenCreateOnlyReplacement(resourceType, currentProps, desiredForSkipCheck, allowedForRecord, createOnlyEvidence, (change.propertyChanges ?? []).filter((pc) => pc.requiresReplacement && pc.updatePolicyReplacement !== true).map((pc) => pc.path));
48117
48885
  if (unwritten.length > 0) throw markRefusedBeforeApplying(markNonRetryable(new CdkdError(unwrittenCreateOnlyRefusal({
48118
48886
  logicalId,
48119
48887
  resourceType,
@@ -48158,7 +48926,8 @@ async function provisionUpdate(engine, logicalId, change, stateResources, stackN
48158
48926
  recreateViaCcApi,
48159
48927
  recreateViaSdkProvider,
48160
48928
  recreateFlagged,
48161
- needsReplacement
48929
+ needsReplacement,
48930
+ policyReplacement
48162
48931
  });
48163
48932
  }
48164
48933
 
@@ -48538,7 +49307,8 @@ async function provisionCreateUpdateNode(run, createUpdateExecutor, enqueueLostC
48538
49307
  ...attemptedGeneration !== void 0 && { nameGeneration: attemptedGeneration },
48539
49308
  ...change.changeType === "CREATE" && getCurrentStackInstanceId() !== void 0 && { nameGeneration: currentNameGeneration(logicalId) ?? 0 },
48540
49309
  ...orphanedBy !== void 0 && { replacementOrphaned: engine.replacementRun.oldDeletedBeforeCreate.has(logicalId) ? "delete-first" : "create-first" },
48541
- ...!refused && { attemptedProperties: engine.attemptedResolvedProps.get(logicalId) }
49310
+ ...!refused && { attemptedProperties: engine.attemptedResolvedProps.get(logicalId) },
49311
+ ...journaledUpdatePolicyField(change.changeType, engine.options.updatePolicy, template, logicalId, engine.resolvedUpdatePolicies.get(logicalId))
48542
49312
  };
48543
49313
  failedOperations.push(failedOp);
48544
49314
  const heldNow = newResources[logicalId];
@@ -48573,12 +49343,18 @@ async function provisionCreateUpdateNode(run, createUpdateExecutor, enqueueLostC
48573
49343
  ...change.changeType === "UPDATE" && engine.replacementRun.replacedOldMaySurvive.has(logicalId) && { oldResourceMaySurvive: engine.replacementRun.replacedOldMaySurvive.get(logicalId) },
48574
49344
  ...change.changeType === "UPDATE" && engine.replacementRun.updateWasReplaced.has(logicalId) && { wasReplaced: engine.replacementRun.updateWasReplaced.get(logicalId) },
48575
49345
  ...change.changeType === "UPDATE" && engine.replacementRun.oldIdLeftForCleanup.has(logicalId) && { oldPhysicalIdLeftForCleanup: true },
49346
+ ...journaledUpdatePolicyField(change.changeType, engine.options.updatePolicy, template, logicalId, engine.resolvedUpdatePolicies.get(logicalId)),
48576
49347
  ...change.changeType === "UPDATE" && previousState !== void 0 && { previousResourceType: previousState.resourceType },
48577
49348
  ...change.changeType === "UPDATE" && engine.replacementRun.attemptedNameGeneration.has(logicalId) && newResources[logicalId]?.nameGeneration !== void 0 && { nameGeneration: newResources[logicalId].nameGeneration }
48578
49349
  });
48579
49350
  saveStateAfterResource(logicalId);
48580
49351
  if (engine.replacementRun.recreatedUnderSameId.has(logicalId)) enqueueLostChildren(createUpdateExecutor);
48581
49352
  }
49353
+ function journaledUpdatePolicyField(changeType, updatePolicyOption, template, logicalId, resolved) {
49354
+ if (changeType !== "UPDATE") return {};
49355
+ const updatePolicy = journaledUpdatePolicy(updatePolicyOption, template?.Resources?.[logicalId], resolved);
49356
+ return updatePolicy !== void 0 ? { updatePolicy } : {};
49357
+ }
48582
49358
 
48583
49359
  // src/deployment/deploy-engine/execute/failed-deploy-records.ts
48584
49360
  async function settleFailedDeployRecords(run) {
@@ -49670,7 +50446,7 @@ async function calculateDeployDiff(engine, { stackName, currentState, effectiveT
49670
50446
  changes: await engine.diffCalculator.calculateDiff(currentState, effectiveTemplate, diffResolveFn, makeCanonicalizePropertiesFn(engine.providerRegistry), engine.providerRegistry.getAllowedUnsupportedProperties?.(), freshNoEchoParametersWithDeclared(engine.noEchoRun.inheritedNoEchoParameters, effectiveTemplate), diffLogMasker(engine.secretsRun, engine.maskingDeps(), diffResolverContext.recordedSecretValues, effectiveTemplate, parameterValues, currentState.resources), recreateTargetIdsFor(engine.options.recreateTargets, stackName), maskedInputs, engine.options.refusalRecovery, noEchoDiffComparison(engine.noEchoRun, engine.noEchoDeps(), currentState.resources, effectiveTemplate, conditions, parameterValues, stackName), {
49671
50447
  ...engine.options.inheritedReferenceProvenance && { inherited: engine.options.inheritedReferenceProvenance },
49672
50448
  crossStackOutputs: crossStackOutputProvenanceSource(crossStackReads, engine.recordedImports, engine.stateBackend)
49673
- }, forcedNestedChildRuns)
50449
+ }, forcedNestedChildRuns, engine.options.updatePolicy === true)
49674
50450
  };
49675
50451
  }
49676
50452
 
@@ -50004,6 +50780,8 @@ async function refuseUnsafePlan(engine, { stackName, ssmNameHeals = [], currentS
50004
50780
  stateResources: currentState.resources
50005
50781
  });
50006
50782
  if (nestedStackTypeChanges.length > 0) throw markNonRetryable(new CdkdError(renderNestedStackTypeChangeRefusal(nestedStackTypeChanges, stackName), "TYPE_CHANGE_NESTED_STACK"));
50783
+ const policyReplacementRefusals = findUpdatePolicyReplacementRefusals(changes, effectiveTemplate, currentState.stackInstanceId !== void 0, (logicalId, change) => replacementCreateRoutesToCloudControl((input) => engine.providerRegistry.getProviderFor(input), change, currentState.resources[logicalId]?.properties));
50784
+ if (policyReplacementRefusals.length > 0) throw markNonRetryable(new CdkdError(policyReplacementRefusals.join("\n"), "UPDATE_POLICY_REPLACEMENT_REFUSED"));
50007
50785
  await refuseInUseExportChanges(engine, {
50008
50786
  stackName,
50009
50787
  ssmNameHeals,
@@ -50759,6 +51537,7 @@ function deploy(stackName, template) {
50759
51537
  this.noEchoRun = new NoEchoRunState();
50760
51538
  this.replacementRun = new ReplacementRunState();
50761
51539
  this.attemptedResolvedProps = /* @__PURE__ */ new Map();
51540
+ this.resolvedUpdatePolicies = /* @__PURE__ */ new Map();
50762
51541
  this.unsettledMarks = /* @__PURE__ */ new Map();
50763
51542
  this.unsettledItemMarks = /* @__PURE__ */ new Map();
50764
51543
  this.resumedCreates = /* @__PURE__ */ new Map();
@@ -50836,6 +51615,7 @@ var DeployEngine = class {
50836
51615
  replacementRun = new ReplacementRunState();
50837
51616
  outputsRun = new OutputsRunState();
50838
51617
  attemptedResolvedProps = /* @__PURE__ */ new Map();
51618
+ resolvedUpdatePolicies = /* @__PURE__ */ new Map();
50839
51619
  unsettledMarks = /* @__PURE__ */ new Map();
50840
51620
  unsettledItemMarks = /* @__PURE__ */ new Map();
50841
51621
  inFlightBodies = /* @__PURE__ */ new Map();
@@ -50979,5 +51759,5 @@ var DeployEngine = class {
50979
51759
  }
50980
51760
  };
50981
51761
 
50982
- export { planVectorIndexUpdates as $, stackIdTailOf as $a, S3StateBackend as $c, ATOMIC_FINAL_SNAPSHOT_TYPES as $i, getBootstrapMarkerKey as $l, sgProtocolKey as $n, keepsSecretReferenceToken as $o, displayTextOrWithheld as $r, unreadableResourceEntries as $s, displacedOpClause as $t, recordedProtectionEvidence as A, customResourceStackName as Aa, refuseMalformedResourcesForDestroy as Ac, cyan as Ai, synthesizedStacks as Al, constructPathOf as An, isUnboundTemplateParameter as Ao, withPreviousPolicies as Ar, malformedOrphanRecordsRefusalMessage as As, hasCdkAutoDeleteTag as At, declaredStreamTagsMember as B, resolvedResourceTimeoutMs as Ba, hasReadableOutputs as Bc, createReadOnlyAttributeHealerFactory as Bi, rewriteTemplateAssetReferences as Bl, changedReferenceReason as Bn, promoteInPlaceAttributeDependents as Bo, nameGenerationHighWaterOf as Br, isReadableResourceEntry as Bs, updateRefactorMarker as Bt, pendingMovesOutOf as C, responsePresignClient as Ca, repairMalformedOutputsForReadOnly as Cc, isSupersededResourceRecord as Ci, SSM_PARAMETER_VALUE_PREFIX as Cl, crossStackReadsForPartialSave as Cn, regionLessSecretName as Co, planFailedOps as Cr, parameterInputsFor as Cs, TABLE_INDEX_NOUN as Ct, findServiceTokenRefusals as D, getCurrentResourceSecrets as Da, malformedResourcesWarning as Dc, supersededResourcesOf as Di, purgeNoncurrentKeyVersions as Dl, noEchoMacParametersOf as Dn, s3BucketRegionalDomainName as Do, IMPLICIT_DELETE_DEPENDENCIES as Dr, maskedPropertyFingerprint as Ds, waitForIndexesSettled as Dt, deferredServiceTokenWarning as E, isCustomResourceType as Ea, malformedRenderedContainersWarning as Ec, supersededHolderOf as Ei, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as El, noEchoMacBinding as En, s3BucketDualStackDomainName as Eo, replacementNeverSwapped as Er, declaresNoEcho as Es, relayedIndexBusyDelete as Et, readProtection as F, setLocalCustomResourceRuntimeEnabled as Fa, accountArgs as Fc, noEchoAttributeNamesOf as Fi, isDefaultBootstrapBucketName as Fl, movedToHint as Fn, refStateLookupFromResource as Fo, redactedDeleteAddressSkip as Fr, refuseMalformedOrphanRecordsForDestroy as Fs, readRefactorMarkerOnce as Ft, streamMemberRefusals as G, deleteLeftInPlace as Ga, unwrittenCreateOnlyReplacement as Gc, orphanRecordsPrintingBag as Gi, resolveFileAssetSourcePath as Gl, parseMappingFile as Gn, recordedReferenceRegions as Go, withNameGenerationReached as Gr, refuseMalformedResourceAttributesForOrphan as Gs, formatResourceLine as Gt, reverseMapStreamPolicy as H, RollbackInlinePolicyWriters as Ha, findActionableSdkUnwired as Hc, journaledOrphanPrintingBag as Hi, getDockerImageBySourceHash as Hl, isPairableType as Hn, outputReferenceProvenanceOf as Ho, retiredAfterRollback as Hr, malformedLocalResourcesWarning as Hs, readsOnlyNoEchoParameters as Ht, DynamoDBGlobalTableProvider as I, withCustomResourceStack as Ia, withheldAccountClause as Ic, noEchoComparisonForTemplate as Ii, isDefaultBootstrapRepoName as Il, rollbackOrphanIds as In, lacksRecordedRefArn as Io, segmentCleanupOptions as Ir, refuseMalformedOrphansForOrphan as Is, refactorMarkerMovesOf as It, isTtlAlreadyDisabled as J, isWaitAbandonedError as Ja, withoutUnwrittenSdkUnwiredProperties as Jc, secretNamedAttributeNamesOf as Ji, AssetModeResolver as Jl, referencedLogicalIds as Jn, getAccountInfo as Jo, computeParameterTaint as Jr, refuseMalformedResourceEntriesForDestroy as Js, lookupEachName as Jt, streamPolicyMatchesDeclared as K, deleteSkipReason as Ka, withoutAcceptedSdkUnwiredProperties as Kc, secretNamePrintingBag as Ki, warnAbsoluteAssetPath as Kl, propertiesChangedReason as Kn, referenceProvenanceOf as Ko, getCurrentProducerRegions as Kr, refuseMalformedResourceEntries as Ks, chunks as Kt, STREAM_POLICY_KEY as L, waitForLambdaFunctionActive as La, STATE_RESOURCES_MALFORMED as Lc, noEchoExactEchoLeavesOf as Li, loadPublishableAssetManifest as Ll, withMovedTo as Ln, lacksRecordedTableArn as Lo, removeProtectionTypeList as Lr, repairMalformedOrphanRecordsForReadOnly as Ls, refactorMarkerRefusalMessage as Lt, PROTECTION_PROPERTY_BY_TYPE as M, customResourcesRunWithoutApp as Ma, refuseMalformedState as Mc, green as Mi, createAssetRedirectResolver as Ml, formatDestructiveChange as Mn, AWS_NO_VALUE as Mo, REDACTED_DELETE_ADDRESS_SKIP_REASON as Mr, malformedOrphanRowsKeptWarning as Ms, keptForRetainedRecord as Mt, isProtectionValueActive as N, localCustomResourceCommand as Na, repairMalformedResourcesForReadOnly as Nc, red as Ni, createLazyAssetModeContext as Nl, findRefactorHints as Nn, cfnRefValueFromPhysicalId as No, isRedactedRecordedValue as Nr, previewableOrphanRecords as Ns, recordRetainedForReadoption as Nt, serviceTokenBlockingReason as O, withPrintingSecrets as Oa, malformedStateRefusalMessage as Oc, withoutSuperseded as Oi, decodeListingKey as Ol, noEchoMacVerdict as On, s3BucketWebsiteUrl as Oo, computeImplicitDeleteEdges as Or, deployRefusesOrphanRowsReason as Os, ECR_AUTO_DELETE_IMAGES_TAG as Ot, perType as P, localCustomResourceRuntimeActive as Pa, JSON_LISTING_HOLE_VALUE as Pc, yellow as Pi, flattenAssetPlaceholders as Pl, hintSidesOf as Pn, isStalePlaceholderArnAttribute as Po, redactedDeleteAddressFields as Pr, refuseMalformedOrphanRecords as Ps, readRefactorMarker as Pt, sendTtlWaitingOutRateLimit as Q, poisonRenderedSpellingsCollidingIn as Qa, TemplateParser as Qc, extractDeploymentEventError as Qi, isCrossRegionRedirect as Ql, cfnIngressPortValue as Qn, carriesDynamicReference as Qo, WITHHELD_NAME_DISPLAY as Qr, repairMalformedResourceEntriesForReadOnly as Qs, NESTED_PENDING_PARENT_REASON as Qt, STREAM_TAGS_KEY as R, CloudControlProvider as Ra, UNREADABLE_RESOURCES_MAP_ROW as Rc, noEchoParameterNamesOf as Ri, redirectDockerAsset as Rl, changedReferenceInDiff as Rn, parseWebACLArn as Ro, orphanNeedsIdentity as Rr, unpreviewableOrphanRecords as Rs, refuseRefactorMarker as Rt, hasPendingMovesOut as S, customResourceResponseExpirationWarning as Sa, refuseMalformedOutputsForDestroy as Sc, holdsSupersededResources as Si, templateIdentity as Sl, DeploymentEventsStore as Sn, producerRegionsFromState as So, isReplacementOrphan as Sr, movedMaskedProperties as Ss, INDEX_SETTLE_POLL_INTERVAL_MS as St, refusePendingMovesOut as T, readsNoEchoDeleteValues as Ta, refuseDivergentRecordRegionForDestroy as Tc, supersededHeldByOtherTypeWarning as Ti, ssmResolvedValueType as Tl, createNoEchoValueMacs as Tn, s3BucketDomainName as To, recordUnderIdIsNotOwn as Tr, passedParameterClassesOf as Ts, maskedLogger as Tt, streamDeclaresPolicy as U, UNSPECIFIED_SKIP_REASON as Ua, findHandledUnwrittenCreateOnly as Uc, maskEventTextWithBoundBags as Ui, isCfnTemplateAssetPath as Ul, looselyEqual as Un, recordedOutputReferenceRegions as Uo, retiredNameGenerationsAfter as Ur, malformedResourceEntriesWarning as Us, getPriorAttempts as Ut, planStreamMemberOps as V, setResolvedResourceTimeouts as Va, hasReadableResources as Vc, completedReplayEntries as Vi, AssetManifestLoader as Vl, differingRemedy as Vn, keepHeldTokenProvenance as Vo, nameScopeOf as Vr, malformedLocalResourceEntriesWarning as Vs, macWriteOnlyKeys as Vt, streamDeclaresTags as W, deleteIndeterminateGuards as Wa, findSdkUnwiredProperties as Wc, namingSecretsWithRecordedNoEcho as Wi, parseAssetManifestBody as Wl, mappingPairs as Wn, recordedProvenanceOf as Wo, retiredNameGenerationsLeaving as Wr, malformedScrubResourceEntriesRefusalMessage as Ws, markRefusedBeforeApplying as Wt, planTimeToLive as X, isSelectOutOfBounds as Xa, hasNoCloudControlHandlers as Xc, stateSecretNameNeedles as Xi, buildDenyExternalAccessPolicy as Xl, stripSiblingOwnedSgRules as Xn, carriesFetchableDynamicReference as Xo, reachableDivergentParameters as Xr, refuseMalformedResourceEntriesForImportSave as Xs, pendingRequestCount as Xt, isTtlRateLimited as Y, IntrinsicFunctionResolver as Ya, NO_CC_HANDLERS_REASON as Yc, secretNamedRecordNeedles as Yi, ensureAssetStorage as Yl, siblingOwnedSgRuleIdentities as Yn, isImpossibleEmptyStoredAttribute as Yo, namesAnyDeclaredParameter as Yr, refuseMalformedResourceEntriesForImport as Ys, withApiLimit as Yt, readTtlSpec as Z, isAlwaysLiveAttribute as Za, PROPERTY_COVERAGE_BY_TYPE as Zc, storedSecretNameNeedles as Zi, assertAssetBucketRegion as Zl, withoutSiblingOwnedSgRules as Zn, isNamelessDynamicReferenceError as Zo, resourcesNamingDeclaredParameter as Zr, refuseMalformedResourceEntriesForOrphan as Zs, resolvePendingCloudControlRequests as Zt, conditionFingerprint as _, ccBrokenReason as _a, malformedLocalOutputsWarning as _c, destroyStackRecordsView as _i, missingStateBucketRemedy as _l, sameJournaledOrphans as _n, applyCallerIdentityCredentials as _o, acquireIdempotencyToken as _r, toCfnInteger as _s, compensateRemovedDeletionProtection as _t, renderAssemblyPathEscape as _u, scanActiveConsumers as a, refusesFinalSnapshot as aa, refuseMalformedResourcePropertiesForExport as ac, exportNameNoEchoParameters as ai, rebuildClientForBucketRegion as al, revertNestedChildFromJournal as an, withSecretPhysicalIdsMaskedInState as ao, settleUnsettledPrevious as ar, replacementSidesForLog as as, contributorInsightsRefusals as at, getCdkdAssetBucketName as au, readRecordedConditionVerdicts as b, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as ba, refuseMalformedNestedChildOutputs as bc, replacedDeleteFailureVerdict as bi, listNestedTemplateRows as bl, planOrphanAdoption as bn, classifyRecordedSecretRegion as bo, demoteSupersededOrphans as br, inputFingerprinter as bs, resolveDynamoDbDeleteBudgetMs as bt, resolveBucketRegion as bu, nestedSsmNameDeferredNote as c, buildFinalSnapshotIdentifier as ca, UNREADABLE_ORPHANS_CONTAINER_ROW as cc, noEchoParameterValueSeed as ci, applyCrossPrefixScan as cl, collectNestedChildUnaddressed as cn, refuseUnreadableCdkCrossAccountRefs as co, equalModuloMarkedMask as cr, isPlainReferenceTo as cs, planIndexContributorInsightsOps as ct, hasOwnKey as cu, slashedSsmNameHealAdoptedNote as d, collectPrincipalsAttachingPolicy as da, malformedOrphansWarning as dc, isExportAliasCollision as di, isNotImplemented as dl, deleteJournaledOrphans as dn, assertSendableRoleArn as do, updatePartialMessage as dr, isStatefulRecreateTargetForReplace as ds, reverseMapTableContributorInsights as dt, ownValue as du, PRE_DELETE_SNAPSHOT_TYPES as ea, malformedDriftResourcePropertiesWarning as ec, exportAliasCollisionScrubWarning as ei, splitImportedOps as el, displacedPhysicalIdShown as en, isSettledInstanceState as eo, canonicalizeIpProtocolValue as er, withSharedDrainBudget as es, readbackVectorIndexes as et, parseBootstrapMarker as eu, slashedSsmNameHealNote as f, stripSiblingOwnedMembers as fa, refuseMalformedOrphans as fc, bindingSkippedOutputs as fi, stackInstanceIdOf as fl, dropFailedCommands as fn, explicitRoleArnOrThrow as fo, updatePartialReason as fr, isStatefulRecreateTargetSync as fs, stripIndexContributorInsights as ft, absoluteAssemblyPathEscape as fu, makeCanonicalizePropertiesFn as g, ProviderRegistry as ga, malformedExportSourceWarning as gc, awaitInFlightSibling as gi, stringifyValue as gl, loadJournaledOrphans as gn, AWS_CREDENTIAL_ENV_KEYS as go, withCreateTokenLedger as gr, isWarmThroughputDecrease as gs, beginDeleteWait as gt, namesTheSameDirectory as gu, inheritedProvenanceForChildDiff as h, CC_BROKEN_REASON as ha, malformedExportNamesWarning as hc, maskingRetryLogger as hi, isSensitiveAttributeName as hl, journaledOrphanLines as hn, sendableAssumeRoleCommand as ho, reserveStackCreateToken as hr, coerceWarmThroughput as hs, DYNAMODB_DELETE_POLL_COST_MS as ht, displayAssemblyPath as hu, mergeNoChangeOutputs as i, isFinalSnapshotError as ia, refuseMalformedResourcePropertiesForDrift as ic, carriedExportAliasExposure as ii, hasUnverifiableParameterRefusal as il, recordDisplacedSkips as in, secretSegmentsOfState as io, recordAfterRollbackUpdate as ir, markNewValueKnownAfterDeploy as is, CONTRIBUTOR_INSIGHTS_KEY as it, BOOTSTRAP_MARKER_PREFIX as iu, recordedProtectionNote as j, customResourcesFailedWithoutApp as ja, refuseMalformedResourcesForExport as jc, gray as ji, buildAssetRedirectMap as jl, findDestructiveChanges as jn, parameterTypeMayLoseSecretIdentity as jo, findNestedStackTypeChanges as jr, malformedOrphanRecordsWarning as js, isTruthyCfnBoolean as jt, diffSecurity as k, NO_LOCAL_CUSTOM_RESOURCES_FLAG as ka, refuseMalformedResourcesForDeploy as kc, bold as ki, rememberSynthesizedStacks as kl, noEchoValueMacsOf as kn, coerceParameterTypedValue as ko, resolveReplacementOldType as kr, isReadableOrphanRecord as ks, S3_AUTO_DELETE_OBJECTS_TAG as kt, nestedSsmNameRowNote as l, collectGroupsAddedBySiblings as la, hasReadableOrphans as lc, collectDeclaredOutputNames as li, crossPrefixDeniedWarning as ll, getCurrentNestedStackContext as ln, applyRoleArnIfSet as lo, equalModuloMask as lr, shownType as ls, readContributorInsightsSpec as lt, hasPlainPrototype as lu, crossStackOutputProvenanceSource as m, withoutSiblingOwned as ma, repairMalformedOrphansForReadOnly as mc, DEFAULT_RESOURCE_WARN_AFTER_MS as mi, isSecretValuedAttribute as ml, isHandledOrphan as mn, parseIamRoleArn as mo, ledgerForStack as mr, WARM_THROUGHPUT_MEMBERS as ms, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as mt, describeFileReadFailure as mu, isSecretBearingReferenceString as n, ccRoutedInstanceTakesNoSnapshot as na, refuseMalformedResourceProperties as nc, secretBearingStateKeyWarning as ni, readOnlyStateVersionOf as nl, getNestedRevertRun as nn, maskedSecretSegment as no, replayRollback as nr, INTRINSIC_KEYS as ns, vectorIndexesSettled as nt, validateAssetBucketName as nu, inRunStackKey as o, unsupportedFinalSnapshotError as oa, refuseMalformedResourcePropertiesForOrphan as oc, exportNameSecretExposure as oi, CrossPrefixReadError as ol, revertedNestedRowIds as on, resolveDynamicReferences as oo, withUnprovenUnsettled as or, siblingsOf as os, indexDeclaresContributorInsights as ot, getCdkdContainerRepoName as ou, slashedSsmNameHealPendingNote as p, withoutSiblingAttachedArns as pa, refuseMalformedOrphansForDestroy as pc, DEFAULT_RESOURCE_TIMEOUT_MS as pi, withStackInstanceIdWithheld as pl, dropFailedHint as pn, isIamRoleArn as po, earliestDefined as pr, renderStatefulReason as ps, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as pt, assemblyPathEscape as pu, streamTagsMatchDeclared as q, withIndeterminateGuard as qa, withoutSdkUnwiredProperties as qc, secretNamePrintingBags as qi, warnWholeAssemblyAsSource as ql, proposeRenames as qn, referenceTokensIn as qo, inheritProducerRegions as qr, refuseMalformedResourceEntriesForDeploy as qs, isAccessDeniedError as qt, keptWholeReasonText as r, effectiveDeletionPolicy as ra, refuseMalformedResourcePropertiesForDestroy as rc, secretSafeKeyDisplay as ri, hasReasonlessBaselineRefusal as rl, nestedChildStackName as rn, secretPhysicalIdSegment as ro, DELETED_RESOURCE_REMEDY as rr, containsIntrinsic as rs, vectorIndexesShapeDetail as rt, validateContainerRepoName as ru, checkNestedSsmNames as s, createPreDeleteFinalSnapshot as sa, repairMalformedResourcePropertiesForReadOnly as sc, isWholeDynamicReferenceValue as si, CrossPrefixScanCache as sl, withNestedRevertRun as sn, producerLookupOver as so, calculateResourceDrift as sr, findReplacedReadersOfRecreateTargets as ss, planContributorInsightsOp as st, defineOwnKey as su, DeployEngine as t, ccRoutedFinalSnapshotError as ta, malformedResourcePropertiesWarning as tc, secretBearing as ti, isKnownTokenFreeState as tl, dropSettledNestedJournals as tn, APPSYNC_APIKEY_ARN_RESOURCE_PATH as to, replayFailedOperations as tr, namesRecreatedParent as ts, vectorIndexesForCreate as tt, readBootstrapMarkerBody as tu, healSlashedSsmParameterNames as u, collectManagedPolicyArnsAttachedBySiblings as ua, malformedOrphansRefusalMessage as uc, collectPublishedOutputNames as ui, isAccessDenied$1 as ul, withNestedStackContext as un, assertFlagRoleArn as uo, undeclaredEmptyObservedKeys as ur, MULTI_REGION_RECREATE_BLOCKED_TYPES as us, reverseMapIndexContributorInsights as ut, nullPrototypeRecord as uu, conditionInputsFrom as v, isCustomResource as va, malformedOutputsRefusalMessage as vc, getStackRecords as vi, findNestedTemplateTreeDefect as vl, makeForeignHolderScan as vn, callerEnvCredentials as vo, planRollback as vr, toFiniteNumber as vs, deleteBudgetKey as vt, resolveAssemblyPath as vu, pendingMovesRefusalMessage as w, TemplateNoEchoReresolver as wa, STATE_REGION_DIVERGED as wc, supersededAfterRollback as wi, isListParameterType as wl, NOECHO_MAC_KEY_ALIAS as wn, s3BucketArn as wo, recheckFailedPlan as wr, maskedInputProof as ws, deleteTableWithIndexBusyRetry as wt, childTemplateLoader as x, applyCustomResourceResponseExpiration as xa, refuseMalformedOutputs as xc, deleteSupersededEntry as xi, renderNestedTemplateTreeDefect as xl, DeploymentEventsReader as xn, classifyReplaySecretRegion as xo, isJournaledOrphan as xr, maskedPropertyFingerprintsOf as xs, DELETE_INDEX_WAIT_PROCEED_NOTE as xt, parentSuppliedValues as y, wouldReturnToSdkProvider as ya, malformedOutputsWarning as yc, withStackRecords as yi, isAbsoluteAssetPath as yl, makeSiblingClaimReader as yn, envCredentialsAreAssumedRole as yo, seedsDeleteFirstGuard as yr, tryGetTopLevelWriteOnlyProperties as ys, resolveDynamoDbDeleteBudgetClock as yt, clearBucketRegionCache as yu, declaredStreamPolicyMember as z, waitForGoneAfterDelete as za, displayLogicalId as zc, withAttemptedItemsMasked as zi, redirectFileAsset as zl, changedReferencePath as zn, extractGetAttRefs as zo, nameGenerationCarriedFrom as zr, unreadableOrphanRecords as zs, sameMove as zt };
50983
- //# sourceMappingURL=deploy-engine-BQVJRB0k.js.map
51762
+ export { planVectorIndexUpdates as $, isSettledInstanceState as $a, TemplateParser as $c, ATOMIC_FINAL_SNAPSHOT_TYPES as $i, isCrossRegionRedirect as $l, replayFailedOperations as $n, withSharedDrainBudget as $o, displayTextOrWithheld as $r, repairMalformedResourceEntriesForReadOnly as $s, dropSettledNestedJournals as $t, recordedProtectionEvidence as A, customResourceStackName as Aa, refuseMalformedResourcesForDeploy as Ac, cyan as Ai, rememberSynthesizedStacks as Al, formatDestructiveChange as An, parameterTypeMayLoseSecretIdentity as Ao, withPreviousPolicies as Ar, isReadableOrphanRecord as As, hasCdkAutoDeleteTag as At, declaredStreamTagsMember as B, RollbackInlinePolicyWriters as Ba, displayLogicalId as Bc, createReadOnlyAttributeHealerFactory as Bi, redirectFileAsset as Bl, isPairableType as Bn, keepHeldTokenProvenance as Bo, nameGenerationHighWaterOf as Br, unreadableOrphanRecords as Bs, updateRefactorMarker as Bt, pendingMovesOutOf as C, responsePresignClient as Ca, refuseMalformedOutputsForDestroy as Cc, isSupersededResourceRecord as Ci, templateIdentity as Cl, createNoEchoValueMacs as Cn, s3BucketArn as Co, planFailedOps as Cr, movedMaskedProperties as Cs, TABLE_INDEX_NOUN as Ct, findServiceTokenRefusals as D, getCurrentResourceSecrets as Da, malformedRenderedContainersWarning as Dc, supersededResourcesOf as Di, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Dl, noEchoValueMacsOf as Dn, s3BucketWebsiteUrl as Do, IMPLICIT_DELETE_DEPENDENCIES as Dr, declaresNoEcho as Ds, waitForIndexesSettled as Dt, deferredServiceTokenWarning as E, isCustomResourceType as Ea, refuseDivergentRecordRegionForDestroy as Ec, supersededHolderOf as Ei, ssmResolvedValueType as El, noEchoMacVerdict as En, s3BucketRegionalDomainName as Eo, replacementNeverSwapped as Er, passedParameterClassesOf as Es, relayedIndexBusyDelete as Et, readProtection as F, setLocalCustomResourceRuntimeEnabled as Fa, JSON_LISTING_HOLE_VALUE as Fc, noEchoAttributeNamesOf as Fi, flattenAssetPlaceholders as Fl, withMovedTo as Fn, lacksRecordedRefArn as Fo, redactedDeleteAddressSkip as Fr, refuseMalformedOrphanRecords as Fs, readRefactorMarkerOnce as Ft, streamMemberRefusals as G, withIndeterminateGuard as Ga, findSdkUnwiredProperties as Gc, orphanRecordsPrintingBag as Gi, parseAssetManifestBody as Gl, proposeRenames as Gn, referenceProvenanceOf as Go, withNameGenerationReached as Gr, malformedScrubResourceEntriesRefusalMessage as Gs, isAccessDeniedError as Gt, reverseMapStreamPolicy as H, deleteIndeterminateGuards as Ha, hasReadableResources as Hc, journaledOrphanPrintingBag as Hi, AssetManifestLoader as Hl, mappingPairs as Hn, recordedOutputReferenceRegions as Ho, retiredAfterRollback as Hr, malformedLocalResourceEntriesWarning as Hs, readsOnlyNoEchoParameters as Ht, DynamoDBGlobalTableProvider as I, withCustomResourceStack as Ia, accountArgs as Ic, noEchoComparisonForTemplate as Ii, isDefaultBootstrapBucketName as Il, changedReferenceInDiff as In, lacksRecordedTableArn as Io, segmentCleanupOptions as Ir, refuseMalformedOrphanRecordsForDestroy as Is, refactorMarkerMovesOf as It, isTtlAlreadyDisabled as J, IntrinsicFunctionResolver as Ja, withoutSdkUnwiredProperties as Jc, secretNamedAttributeNamesOf as Ji, warnWholeAssemblyAsSource as Jl, stripSiblingOwnedSgRules as Jn, isImpossibleEmptyStoredAttribute as Jo, computeParameterTaint as Jr, refuseMalformedResourceEntriesForDeploy as Js, pendingRequestCount as Jt, streamPolicyMatchesDeclared as K, getReadOnlyPropertyPaths as Ka, unwrittenCreateOnlyReplacement as Kc, secretNamePrintingBag as Ki, resolveFileAssetSourcePath as Kl, referencedLogicalIds as Kn, referenceTokensIn as Ko, getCurrentProducerRegions as Kr, refuseMalformedResourceAttributesForOrphan as Ks, lookupEachName as Kt, STREAM_POLICY_KEY as L, waitForLambdaFunctionActive as La, withheldAccountClause as Lc, noEchoExactEchoLeavesOf as Li, isDefaultBootstrapRepoName as Ll, changedReferencePath as Ln, parseWebACLArn as Lo, removeProtectionTypeList as Lr, refuseMalformedOrphansForOrphan as Ls, refactorMarkerRefusalMessage as Lt, PROTECTION_PROPERTY_BY_TYPE as M, customResourcesRunWithoutApp as Ma, refuseMalformedResourcesForExport as Mc, green as Mi, buildAssetRedirectMap as Ml, hintSidesOf as Mn, cfnRefValueFromPhysicalId as Mo, REDACTED_DELETE_ADDRESS_SKIP_REASON as Mr, malformedOrphanRecordsWarning as Ms, keptForRetainedRecord as Mt, isProtectionValueActive as N, localCustomResourceCommand as Na, refuseMalformedState as Nc, red as Ni, createAssetRedirectResolver as Nl, movedToHint as Nn, isStalePlaceholderArnAttribute as No, isRedactedRecordedValue as Nr, malformedOrphanRowsKeptWarning as Ns, recordRetainedForReadoption as Nt, serviceTokenBlockingReason as O, withPrintingSecrets as Oa, malformedResourcesWarning as Oc, withoutSuperseded as Oi, purgeNoncurrentKeyVersions as Ol, constructPathOf as On, coerceParameterTypedValue as Oo, computeImplicitDeleteEdges as Or, maskedPropertyFingerprint as Os, ECR_AUTO_DELETE_IMAGES_TAG as Ot, perType as P, localCustomResourceRuntimeActive as Pa, repairMalformedResourcesForReadOnly as Pc, yellow as Pi, createLazyAssetModeContext as Pl, rollbackOrphanIds as Pn, refStateLookupFromResource as Po, redactedDeleteAddressFields as Pr, previewableOrphanRecords as Ps, readRefactorMarker as Pt, sendTtlWaitingOutRateLimit as Q, stackIdTailOf as Qa, PROPERTY_COVERAGE_BY_TYPE as Qc, extractDeploymentEventError as Qi, assertAssetBucketRegion as Ql, canonicalizeIpProtocolValue as Qn, keepsSecretReferenceToken as Qo, WITHHELD_NAME_DISPLAY as Qr, refuseMalformedResourceEntriesForOrphan as Qs, displacedPhysicalIdShown as Qt, STREAM_TAGS_KEY as R, CloudControlProvider as Ra, STATE_RESOURCES_MALFORMED as Rc, noEchoParameterNamesOf as Ri, loadPublishableAssetManifest as Rl, changedReferenceReason as Rn, extractGetAttRefs as Ro, orphanNeedsIdentity as Rr, repairMalformedOrphanRecordsForReadOnly as Rs, refuseRefactorMarker as Rt, hasPendingMovesOut as S, customResourceResponseExpirationWarning as Sa, refuseMalformedOutputs as Sc, holdsSupersededResources as Si, renderNestedTemplateTreeDefect as Sl, NOECHO_MAC_KEY_ALIAS as Sn, regionLessSecretName as So, isReplacementOrphan as Sr, maskedPropertyFingerprintsOf as Ss, INDEX_SETTLE_POLL_INTERVAL_MS as St, refusePendingMovesOut as T, readsNoEchoDeleteValues as Ta, STATE_REGION_DIVERGED as Tc, supersededHeldByOtherTypeWarning as Ti, isListParameterType as Tl, noEchoMacParametersOf as Tn, s3BucketDualStackDomainName as To, recordUnderIdIsNotOwn as Tr, maskedInputProof as Ts, maskedLogger as Tt, streamDeclaresPolicy as U, deleteLeftInPlace as Ua, findActionableSdkUnwired as Uc, maskEventTextWithBoundBags as Ui, getDockerImageBySourceHash as Ul, parseMappingFile as Un, recordedProvenanceOf as Uo, retiredNameGenerationsAfter as Ur, malformedLocalResourcesWarning as Us, formatResourceLine as Ut, planStreamMemberOps as V, UNSPECIFIED_SKIP_REASON as Va, hasReadableOutputs as Vc, completedReplayEntries as Vi, rewriteTemplateAssetReferences as Vl, looselyEqual as Vn, outputReferenceProvenanceOf as Vo, nameScopeOf as Vr, isReadableResourceEntry as Vs, macWriteOnlyKeys as Vt, streamDeclaresTags as W, deleteSkipReason as Wa, findHandledUnwrittenCreateOnly as Wc, namingSecretsWithRecordedNoEcho as Wi, isCfnTemplateAssetPath as Wl, propertiesChangedReason as Wn, recordedReferenceRegions as Wo, retiredNameGenerationsLeaving as Wr, malformedResourceEntriesWarning as Ws, chunks as Wt, planTimeToLive as X, isAlwaysLiveAttribute as Xa, NO_CC_HANDLERS_REASON as Xc, stateSecretNameNeedles as Xi, ensureAssetStorage as Xl, cfnIngressPortValue as Xn, isNamelessDynamicReferenceError as Xo, reachableDivergentParameters as Xr, refuseMalformedResourceEntriesForImport as Xs, NESTED_PENDING_PARENT_REASON as Xt, isTtlRateLimited as Y, isSelectOutOfBounds as Ya, withoutUnwrittenSdkUnwiredProperties as Yc, secretNamedRecordNeedles as Yi, AssetModeResolver as Yl, withoutSiblingOwnedSgRules as Yn, carriesFetchableDynamicReference as Yo, namesAnyDeclaredParameter as Yr, refuseMalformedResourceEntriesForDestroy as Ys, resolvePendingCloudControlRequests as Yt, readTtlSpec as Z, poisonRenderedSpellingsCollidingIn as Za, hasNoCloudControlHandlers as Zc, storedSecretNameNeedles as Zi, buildDenyExternalAccessPolicy as Zl, sgProtocolKey as Zn, carriesDynamicReference as Zo, resourcesNamingDeclaredParameter as Zr, refuseMalformedResourceEntriesForImportSave as Zs, displacedOpClause as Zt, conditionFingerprint as _, ccBrokenReason as _a, malformedExportSourceWarning as _c, destroyStackRecordsView as _i, stringifyValue as _l, makeSiblingClaimReader as _n, callerEnvCredentials as _o, acquireIdempotencyToken as _r, toFiniteNumber as _s, compensateRemovedDeletionProtection as _t, namesTheSameDirectory as _u, scanActiveConsumers as a, refusesFinalSnapshot as aa, refuseMalformedResourcePropertiesForDrift as ac, exportNameNoEchoParameters as ai, hasUnverifiableParameterRefusal as al, withNestedRevertRun as an, resolveDynamicReferences as ao, calculateResourceDrift as ar, siblingsOf as as, contributorInsightsRefusals as at, BOOTSTRAP_MARKER_PREFIX as au, readRecordedConditionVerdicts as b, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as ba, malformedOutputsWarning as bc, replacedDeleteFailureVerdict as bi, isAbsoluteAssetPath as bl, DeploymentEventsStore as bn, classifyReplaySecretRegion as bo, demoteSupersededOrphans as br, tryGetTopLevelWriteOnlyProperties as bs, resolveDynamoDbDeleteBudgetMs as bt, clearBucketRegionCache as bu, nestedSsmNameDeferredNote as c, buildFinalSnapshotIdentifier as ca, repairMalformedResourcePropertiesForReadOnly as cc, noEchoParameterValueSeed as ci, CrossPrefixScanCache as cl, withNestedStackContext as cn, applyRoleArnIfSet as co, undeclaredEmptyObservedKeys as cr, shownType as cs, planIndexContributorInsightsOps as ct, defineOwnKey as cu, slashedSsmNameHealAdoptedNote as d, collectPrincipalsAttachingPolicy as da, malformedOrphansRefusalMessage as dc, isExportAliasCollision as di, isAccessDenied$1 as dl, dropFailedHint as dn, explicitRoleArnOrThrow as do, findUpdatePolicyReplacementRefusals as dr, isStatefulRecreateTargetSync as ds, reverseMapTableContributorInsights as dt, nullPrototypeRecord as du, PRE_DELETE_SNAPSHOT_TYPES as ea, unreadableResourceEntries as ec, exportAliasCollisionScrubWarning as ei, S3StateBackend as el, getNestedRevertRun as en, APPSYNC_APIKEY_ARN_RESOURCE_PATH as eo, replayRollback as er, namesRecreatedParent as es, readbackVectorIndexes as et, getBootstrapMarkerKey as eu, slashedSsmNameHealNote as f, stripSiblingOwnedMembers as fa, malformedOrphansWarning as fc, bindingSkippedOutputs as fi, isNotImplemented as fl, isHandledOrphan as fn, isIamRoleArn as fo, replacementCreateRoutesToCloudControl as fr, renderStatefulReason as fs, stripIndexContributorInsights as ft, ownValue as fu, makeCanonicalizePropertiesFn as g, ProviderRegistry as ga, malformedExportNamesWarning as gc, awaitInFlightSibling as gi, isSensitiveAttributeName as gl, makeForeignHolderScan as gn, applyCallerIdentityCredentials as go, withCreateTokenLedger as gr, toCfnInteger as gs, beginDeleteWait as gt, displayAssemblyPath as gu, inheritedProvenanceForChildDiff as h, CC_BROKEN_REASON as ha, repairMalformedOrphansForReadOnly as hc, maskingRetryLogger as hi, isSecretValuedAttribute as hl, sameJournaledOrphans as hn, AWS_CREDENTIAL_ENV_KEYS as ho, reserveStackCreateToken as hr, isWarmThroughputDecrease as hs, DYNAMODB_DELETE_POLL_COST_MS as ht, describeFileReadFailure as hu, mergeNoChangeOutputs as i, isFinalSnapshotError as ia, refuseMalformedResourcePropertiesForDestroy as ic, carriedExportAliasExposure as ii, hasReasonlessBaselineRefusal as il, revertedNestedRowIds as in, withSecretPhysicalIdsMaskedInState as io, withUnprovenUnsettled as ir, replacementSidesForLog as is, CONTRIBUTOR_INSIGHTS_KEY as it, validateContainerRepoName as iu, recordedProtectionNote as j, customResourcesFailedWithoutApp as ja, refuseMalformedResourcesForDestroy as jc, gray as ji, synthesizedStacks as jl, findRefactorHints as jn, AWS_NO_VALUE as jo, findNestedStackTypeChanges as jr, malformedOrphanRecordsRefusalMessage as js, isTruthyCfnBoolean as jt, diffSecurity as k, NO_LOCAL_CUSTOM_RESOURCES_FLAG as ka, malformedStateRefusalMessage as kc, bold as ki, decodeListingKey as kl, findDestructiveChanges as kn, isUnboundTemplateParameter as ko, resolveReplacementOldType as kr, deployRefusesOrphanRowsReason as ks, S3_AUTO_DELETE_OBJECTS_TAG as kt, nestedSsmNameRowNote as l, collectGroupsAddedBySiblings as la, UNREADABLE_ORPHANS_CONTAINER_ROW as lc, collectDeclaredOutputNames as li, applyCrossPrefixScan as ll, deleteJournaledOrphans as ln, assertFlagRoleArn as lo, updatePartialMessage as lr, MULTI_REGION_RECREATE_BLOCKED_TYPES as ls, readContributorInsightsSpec as lt, hasOwnKey as lu, crossStackOutputProvenanceSource as m, withoutSiblingOwned as ma, refuseMalformedOrphansForDestroy as mc, DEFAULT_RESOURCE_WARN_AFTER_MS as mi, withStackInstanceIdWithheld as ml, loadJournaledOrphans as mn, sendableAssumeRoleCommand as mo, ledgerForStack as mr, coerceWarmThroughput as ms, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as mt, assemblyPathEscape as mu, isSecretBearingReferenceString as n, ccRoutedInstanceTakesNoSnapshot as na, malformedResourcePropertiesWarning as nc, secretBearingStateKeyWarning as ni, isKnownTokenFreeState as nl, recordDisplacedSkips as nn, secretPhysicalIdSegment as no, recordAfterRollbackUpdate as nr, containsIntrinsic as ns, vectorIndexesSettled as nt, readBootstrapMarkerBody as nu, inRunStackKey as o, unsupportedFinalSnapshotError as oa, refuseMalformedResourcePropertiesForExport as oc, exportNameSecretExposure as oi, rebuildClientForBucketRegion as ol, collectNestedChildUnaddressed as on, producerLookupOver as oo, equalModuloMarkedMask as or, findReplacedReadersOfRecreateTargets as os, indexDeclaresContributorInsights as ot, getCdkdAssetBucketName as ou, slashedSsmNameHealPendingNote as p, withoutSiblingAttachedArns as pa, refuseMalformedOrphans as pc, DEFAULT_RESOURCE_TIMEOUT_MS as pi, stackInstanceIdOf as pl, journaledOrphanLines as pn, parseIamRoleArn as po, earliestDefined as pr, WARM_THROUGHPUT_MEMBERS as ps, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as pt, absoluteAssemblyPathEscape as pu, streamTagsMatchDeclared as q, isWaitAbandonedError as qa, withoutAcceptedSdkUnwiredProperties as qc, secretNamePrintingBags as qi, warnAbsoluteAssetPath as ql, siblingOwnedSgRuleIdentities as qn, getAccountInfo as qo, inheritProducerRegions as qr, refuseMalformedResourceEntries as qs, withApiLimit as qt, keptWholeReasonText as r, effectiveDeletionPolicy as ra, refuseMalformedResourceProperties as rc, secretSafeKeyDisplay as ri, readOnlyStateVersionOf as rl, revertNestedChildFromJournal as rn, secretSegmentsOfState as ro, settleUnsettledPrevious as rr, markNewValueKnownAfterDeploy as rs, vectorIndexesShapeDetail as rt, validateAssetBucketName as ru, checkNestedSsmNames as s, createPreDeleteFinalSnapshot as sa, refuseMalformedResourcePropertiesForOrphan as sc, isWholeDynamicReferenceValue as si, CrossPrefixReadError as sl, getCurrentNestedStackContext as sn, refuseUnreadableCdkCrossAccountRefs as so, equalModuloMask as sr, isPlainReferenceTo as ss, planContributorInsightsOp as st, getCdkdContainerRepoName as su, DeployEngine as t, ccRoutedFinalSnapshotError as ta, malformedDriftResourcePropertiesWarning as tc, secretBearing as ti, splitImportedOps as tl, nestedChildStackName as tn, maskedSecretSegment as to, DELETED_RESOURCE_REMEDY as tr, INTRINSIC_KEYS as ts, vectorIndexesForCreate as tt, parseBootstrapMarker as tu, healSlashedSsmParameterNames as u, collectManagedPolicyArnsAttachedBySiblings as ua, hasReadableOrphans as uc, collectPublishedOutputNames as ui, crossPrefixDeniedWarning as ul, dropFailedCommands as un, assertSendableRoleArn as uo, updatePartialReason as ur, isStatefulRecreateTargetForReplace as us, reverseMapIndexContributorInsights as ut, hasPlainPrototype as uu, conditionInputsFrom as v, isCustomResource as va, malformedLocalOutputsWarning as vc, getStackRecords as vi, missingStateBucketRemedy as vl, planOrphanAdoption as vn, envCredentialsAreAssumedRole as vo, planRollback as vr, getSettledWriteOnlyPropertyPaths as vs, deleteBudgetKey as vt, renderAssemblyPathEscape as vu, pendingMovesRefusalMessage as w, TemplateNoEchoReresolver as wa, repairMalformedOutputsForReadOnly as wc, supersededAfterRollback as wi, SSM_PARAMETER_VALUE_PREFIX as wl, noEchoMacBinding as wn, s3BucketDomainName as wo, recheckFailedPlan as wr, parameterInputsFor as ws, deleteTableWithIndexBusyRetry as wt, childTemplateLoader as x, applyCustomResourceResponseExpiration as xa, refuseMalformedNestedChildOutputs as xc, deleteSupersededEntry as xi, listNestedTemplateRows as xl, crossStackReadsForPartialSave as xn, producerRegionsFromState as xo, isJournaledOrphan as xr, inputFingerprinter as xs, DELETE_INDEX_WAIT_PROCEED_NOTE as xt, resolveBucketRegion as xu, parentSuppliedValues as y, wouldReturnToSdkProvider as ya, malformedOutputsRefusalMessage as yc, withStackRecords as yi, findNestedTemplateTreeDefect as yl, DeploymentEventsReader as yn, classifyRecordedSecretRegion as yo, seedsDeleteFirstGuard as yr, getTopLevelKeysHoldingUnreadableCreateOnly as ys, resolveDynamoDbDeleteBudgetClock as yt, resolveAssemblyPath as yu, declaredStreamPolicyMember as z, waitForGoneAfterDelete as za, UNREADABLE_RESOURCES_MAP_ROW as zc, withAttemptedItemsMasked as zi, redirectDockerAsset as zl, differingRemedy as zn, promoteInPlaceAttributeDependents as zo, nameGenerationCarriedFrom as zr, unpreviewableOrphanRecords as zs, sameMove as zt };
51763
+ //# sourceMappingURL=deploy-engine-Th5M81Fb.js.map