@cdkd/cli 0.353.3 → 0.355.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-C5srQQ9o.js → ambient-client-defaults-BJiN5aTn.js} +3 -3
  2. package/dist/{ambient-client-defaults-C5srQQ9o.js.map → ambient-client-defaults-BJiN5aTn.js.map} +1 -1
  3. package/dist/{asg-provider-tB1k8Uwh.js → asg-provider-CGorVUPJ.js} +427 -13
  4. package/dist/asg-provider-CGorVUPJ.js.map +1 -0
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-D4u5m0jm.js → custom-resource-runtime-BdDMjfLC.js} +6 -6
  7. package/dist/{custom-resource-runtime-D4u5m0jm.js.map → custom-resource-runtime-BdDMjfLC.js.map} +1 -1
  8. package/dist/{db-associated-roles-BnaNi5RN.js → db-associated-roles-BqVpMI0m.js} +2 -2
  9. package/dist/{db-associated-roles-BnaNi5RN.js.map → db-associated-roles-BqVpMI0m.js.map} +1 -1
  10. package/dist/{delete-started-C2CSl-I6.js → delete-started-C19J5kNj.js} +4 -4
  11. package/dist/{delete-started-C2CSl-I6.js.map → delete-started-C19J5kNj.js.map} +1 -1
  12. package/dist/{deploy-engine-BVpckkRS.js → deploy-engine-BOKcCf9R.js} +999 -209
  13. package/dist/deploy-engine-BOKcCf9R.js.map +1 -0
  14. package/dist/{diff-calculator-BCU775Mq.js → diff-calculator-STmKp2mr.js} +137 -19
  15. package/dist/diff-calculator-STmKp2mr.js.map +1 -0
  16. package/dist/{update-policy-CwlmV_Gu.js → ec2-termination-protection-CcXbTL4N.js} +157 -15
  17. package/dist/ec2-termination-protection-CcXbTL4N.js.map +1 -0
  18. package/dist/{ecr-uri-XUGi32Yg.js → ecr-uri-DkYBMkSf.js} +2 -2
  19. package/dist/{ecr-uri-XUGi32Yg.js.map → ecr-uri-DkYBMkSf.js.map} +1 -1
  20. package/dist/{expected-bucket-owner-C4dNW0qP.js → expected-bucket-owner-iWIC_uzK.js} +2 -2
  21. package/dist/{expected-bucket-owner-C4dNW0qP.js.map → expected-bucket-owner-iWIC_uzK.js.map} +1 -1
  22. package/dist/{iam-role-provider-DJEUwSEl.js → iam-role-provider-DvIPwNAz.js} +8 -8
  23. package/dist/{iam-role-provider-DJEUwSEl.js.map → iam-role-provider-DvIPwNAz.js.map} +1 -1
  24. package/dist/{image-plan-DzYuesLu.js → image-plan-B_MsB6uj.js} +15 -18
  25. package/dist/image-plan-B_MsB6uj.js.map +1 -0
  26. package/dist/index.d.ts +28 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/{logger-DPzmJjGz.js → logger-CRTakAJI.js} +2 -2
  30. package/dist/{logger-DPzmJjGz.js.map → logger-CRTakAJI.js.map} +1 -1
  31. package/dist/{neptune-provider-BOGkXyqL.js → neptune-provider-7DAE0TN7.js} +7 -7
  32. package/dist/{neptune-provider-BOGkXyqL.js.map → neptune-provider-7DAE0TN7.js.map} +1 -1
  33. package/dist/{program-BiexuIhK.js → program-CWUDb373.js} +307 -84
  34. package/dist/program-CWUDb373.js.map +1 -0
  35. package/dist/{provider-classes-DQeVpjrY.js → provider-classes-C8Pm3Ay1.js} +393 -125
  36. package/dist/provider-classes-C8Pm3Ay1.js.map +1 -0
  37. package/dist/{rds-provider-DAsMfyF7.js → rds-provider-CGsB4Wp0.js} +10 -10
  38. package/dist/{rds-provider-DAsMfyF7.js.map → rds-provider-CGsB4Wp0.js.map} +1 -1
  39. package/dist/{read-replica-CsjvBe-D.js → read-replica-DsWNg8kx.js} +3 -3
  40. package/dist/{read-replica-CsjvBe-D.js.map → read-replica-DsWNg8kx.js.map} +1 -1
  41. package/dist/{replacement-rules-p8Qw0DJO.js → replacement-rules-QZUAl8ah.js} +4 -3
  42. package/dist/{replacement-rules-p8Qw0DJO.js.map → replacement-rules-QZUAl8ah.js.map} +1 -1
  43. package/dist/{resource-deadline-CM7iQyoh.js → resource-deadline-CXP2TUVz.js} +4 -4
  44. package/dist/{resource-deadline-CM7iQyoh.js.map → resource-deadline-CXP2TUVz.js.map} +1 -1
  45. package/dist/{restore-source-guard-DISHGYsK.js → restore-source-guard-BRT1OlJ2.js} +4 -4
  46. package/dist/{restore-source-guard-DISHGYsK.js.map → restore-source-guard-BRT1OlJ2.js.map} +1 -1
  47. package/dist/{run-cli-BVB8mILG.js → run-cli-9IvHor5O.js} +2 -2
  48. package/dist/{run-cli-BVB8mILG.js.map → run-cli-9IvHor5O.js.map} +1 -1
  49. package/dist/{version-Be5vs808.js → version-DyK3ezVd.js} +2 -2
  50. package/dist/{version-Be5vs808.js.map → version-DyK3ezVd.js.map} +1 -1
  51. package/package.json +3 -2
  52. package/dist/asg-provider-tB1k8Uwh.js.map +0 -1
  53. package/dist/deploy-engine-BVpckkRS.js.map +0 -1
  54. package/dist/diff-calculator-BCU775Mq.js.map +0 -1
  55. package/dist/image-plan-DzYuesLu.js.map +0 -1
  56. package/dist/program-BiexuIhK.js.map +0 -1
  57. package/dist/provider-classes-DQeVpjrY.js.map +0 -1
  58. package/dist/update-policy-CwlmV_Gu.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-Be5vs808.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-DPzmJjGz.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-C5srQQ9o.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-DyK3ezVd.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-CRTakAJI.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-BJiN5aTn.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-CwlmV_Gu.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-CcXbTL4N.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-CM7iQyoh.js";
9
- import { t as expectedOwnerParam } from "./expected-bucket-owner-C4dNW0qP.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-C2CSl-I6.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-p8Qw0DJO.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-DISHGYsK.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-CXP2TUVz.js";
9
+ import { t as expectedOwnerParam } from "./expected-bucket-owner-iWIC_uzK.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-C19J5kNj.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-QZUAl8ah.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-BRT1OlJ2.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-C4dNW0qP.js").then((n) => n.n);
85
+ const { expectedOwnerParam } = await import("./expected-bucket-owner-iWIC_uzK.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-tB1k8Uwh.js");
19646
+ const { ASGProvider } = await import("./asg-provider-CGorVUPJ.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-DAsMfyF7.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-BOGkXyqL.js"))).NeptuneProvider({ region: ccRegion });
19800
+ const provider = family === "rds" ? new (await (import("./rds-provider-CGsB4Wp0.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-7DAE0TN7.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-D4u5m0jm.js");
22441
+ const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-BdDMjfLC.js");
22011
22442
  const local = await invokeCustomResourceFunctionLocally({
22012
22443
  lambda: this.lambdaClient,
22013
22444
  s3: this.s3Client
@@ -24188,7 +24619,7 @@ const PROPERTY_SHAPES = /* @__PURE__ */ new Map([
24188
24619
  ["AWS::EC2::VPC", "{\"CidrBlockAssociations\":\"array\",\"Ipv6CidrBlocks\":\"array\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"VpcEncryptionControl\":\"object\",\"VpcEncryptionControl.ResourceExclusions\":\"object\",\"VpcEncryptionControl.ResourceExclusions.EgressOnlyInternetGateway\":\"object\",\"VpcEncryptionControl.ResourceExclusions.ElasticFileSystem\":\"object\",\"VpcEncryptionControl.ResourceExclusions.InternetGateway\":\"object\",\"VpcEncryptionControl.ResourceExclusions.Lambda\":\"object\",\"VpcEncryptionControl.ResourceExclusions.NatGateway\":\"object\",\"VpcEncryptionControl.ResourceExclusions.VirtualPrivateGateway\":\"object\",\"VpcEncryptionControl.ResourceExclusions.VpcLattice\":\"object\",\"VpcEncryptionControl.ResourceExclusions.VpcPeering\":\"object\"}"],
24189
24620
  ["AWS::ECR::Repository", "{\"EncryptionConfiguration\":\"object\",\"ImageScanningConfiguration\":\"object\",\"ImageTagMutabilityExclusionFilters\":\"array\",\"ImageTagMutabilityExclusionFilters[]\":\"object\",\"LifecyclePolicy\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\"}"],
24190
24621
  ["AWS::ECS::Cluster", "{\"CapacityProviders\":\"array\",\"ClusterSettings\":\"array\",\"ClusterSettings[]\":\"object\",\"Configuration\":\"object\",\"Configuration.ExecuteCommandConfiguration\":\"object\",\"Configuration.ExecuteCommandConfiguration.LogConfiguration\":\"object\",\"Configuration.ManagedStorageConfiguration\":\"object\",\"DefaultCapacityProviderStrategy\":\"array\",\"DefaultCapacityProviderStrategy[]\":\"object\",\"ServiceConnectDefaults\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\"}"],
24191
- ["AWS::ECS::Service", "{\"CapacityProviderStrategy\":\"array\",\"CapacityProviderStrategy[]\":\"object\",\"DeploymentConfiguration\":\"object\",\"DeploymentConfiguration.Alarms\":\"object\",\"DeploymentConfiguration.Alarms.AlarmNames\":\"array\",\"DeploymentConfiguration.CanaryConfiguration\":\"object\",\"DeploymentConfiguration.DeploymentCircuitBreaker\":\"object\",\"DeploymentConfiguration.DeploymentCircuitBreaker.ThresholdConfiguration\":\"object\",\"DeploymentConfiguration.EarlySuccessCriteria\":\"object\",\"DeploymentConfiguration.LifecycleHooks\":\"array\",\"DeploymentConfiguration.LifecycleHooks[]\":\"object\",\"DeploymentConfiguration.LifecycleHooks[].LifecycleStages\":\"array\",\"DeploymentConfiguration.LifecycleHooks[].TimeoutConfiguration\":\"object\",\"DeploymentConfiguration.LinearConfiguration\":\"object\",\"DeploymentController\":\"object\",\"ForceNewDeployment\":\"object\",\"GatewayConnectors\":\"array\",\"GatewayConnectors[]\":\"object\",\"GatewayConnectors[].Filters\":\"object\",\"GatewayConnectors[].Filters.AccessTypes\":\"array\",\"GatewayConnectors[].HealthCheck\":\"object\",\"GatewayConnectors[].HealthCheck.Matcher\":\"object\",\"LoadBalancers\":\"array\",\"LoadBalancers[]\":\"object\",\"LoadBalancers[].AdvancedConfiguration\":\"object\",\"Monitoring\":\"object\",\"Monitoring.MetricConfigurations\":\"array\",\"Monitoring.MetricConfigurations[]\":\"object\",\"Monitoring.MetricConfigurations[].MetricNames\":\"array\",\"NetworkConfiguration\":\"object\",\"NetworkConfiguration.AwsvpcConfiguration\":\"object\",\"NetworkConfiguration.AwsvpcConfiguration.SecurityGroups\":\"array\",\"NetworkConfiguration.AwsvpcConfiguration.Subnets\":\"array\",\"PlacementConstraints\":\"array\",\"PlacementConstraints[]\":\"object\",\"PlacementStrategies\":\"array\",\"PlacementStrategies[]\":\"object\",\"ServiceConnectConfiguration\":\"object\",\"ServiceConnectConfiguration.AccessLogConfiguration\":\"object\",\"ServiceConnectConfiguration.ContainerConfigurations\":\"array\",\"ServiceConnectConfiguration.ContainerConfigurations[]\":\"object\",\"ServiceConnectConfiguration.LogConfiguration\":\"object\",\"ServiceConnectConfiguration.LogConfiguration.Options\":\"object\",\"ServiceConnectConfiguration.LogConfiguration.SecretOptions\":\"array\",\"ServiceConnectConfiguration.LogConfiguration.SecretOptions[]\":\"object\",\"ServiceConnectConfiguration.Services\":\"array\",\"ServiceConnectConfiguration.Services[]\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases\":\"array\",\"ServiceConnectConfiguration.Services[].ClientAliases[]\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases[].TestTrafficRules\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases[].TestTrafficRules.Header\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases[].TestTrafficRules.Header.Value\":\"object\",\"ServiceConnectConfiguration.Services[].Timeout\":\"object\",\"ServiceConnectConfiguration.Services[].Tls\":\"object\",\"ServiceConnectConfiguration.Services[].Tls.IssuerCertificateAuthority\":\"object\",\"ServiceRegistries\":\"array\",\"ServiceRegistries[]\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"VolumeConfigurations\":\"array\",\"VolumeConfigurations[]\":\"object\",\"VolumeConfigurations[].ManagedEBSVolume\":\"object\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications\":\"array\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications[]\":\"object\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications[].Tags\":\"array\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications[].Tags[]\":\"object\",\"VpcLatticeConfigurations\":\"array\",\"VpcLatticeConfigurations[]\":\"object\",\"VpcLatticeConfigurations[].AdvancedConfiguration\":\"object\"}"],
24622
+ ["AWS::ECS::Service", "{\"CapacityProviderStrategy\":\"array\",\"CapacityProviderStrategy[]\":\"object\",\"DeploymentConfiguration\":\"object\",\"DeploymentConfiguration.Alarms\":\"object\",\"DeploymentConfiguration.Alarms.AlarmNames\":\"array\",\"DeploymentConfiguration.CanaryConfiguration\":\"object\",\"DeploymentConfiguration.DeploymentCircuitBreaker\":\"object\",\"DeploymentConfiguration.DeploymentCircuitBreaker.ThresholdConfiguration\":\"object\",\"DeploymentConfiguration.EarlySuccessCriteria\":\"object\",\"DeploymentConfiguration.LifecycleHooks\":\"array\",\"DeploymentConfiguration.LifecycleHooks[]\":\"object\",\"DeploymentConfiguration.LifecycleHooks[].LifecycleStages\":\"array\",\"DeploymentConfiguration.LifecycleHooks[].TimeoutConfiguration\":\"object\",\"DeploymentConfiguration.LinearConfiguration\":\"object\",\"DeploymentController\":\"object\",\"ForceNewDeployment\":\"object\",\"GatewayConnectors\":\"array\",\"GatewayConnectors[]\":\"object\",\"GatewayConnectors[].DeregistrationDelay\":\"object\",\"GatewayConnectors[].Filters\":\"object\",\"GatewayConnectors[].Filters.AccessTypes\":\"array\",\"GatewayConnectors[].HealthCheck\":\"object\",\"GatewayConnectors[].HealthCheck.Matcher\":\"object\",\"LoadBalancers\":\"array\",\"LoadBalancers[]\":\"object\",\"LoadBalancers[].AdvancedConfiguration\":\"object\",\"Monitoring\":\"object\",\"Monitoring.MetricConfigurations\":\"array\",\"Monitoring.MetricConfigurations[]\":\"object\",\"Monitoring.MetricConfigurations[].MetricNames\":\"array\",\"NetworkConfiguration\":\"object\",\"NetworkConfiguration.AwsvpcConfiguration\":\"object\",\"NetworkConfiguration.AwsvpcConfiguration.SecurityGroups\":\"array\",\"NetworkConfiguration.AwsvpcConfiguration.Subnets\":\"array\",\"PlacementConstraints\":\"array\",\"PlacementConstraints[]\":\"object\",\"PlacementStrategies\":\"array\",\"PlacementStrategies[]\":\"object\",\"ServiceConnectConfiguration\":\"object\",\"ServiceConnectConfiguration.AccessLogConfiguration\":\"object\",\"ServiceConnectConfiguration.ContainerConfigurations\":\"array\",\"ServiceConnectConfiguration.ContainerConfigurations[]\":\"object\",\"ServiceConnectConfiguration.LogConfiguration\":\"object\",\"ServiceConnectConfiguration.LogConfiguration.Options\":\"object\",\"ServiceConnectConfiguration.LogConfiguration.SecretOptions\":\"array\",\"ServiceConnectConfiguration.LogConfiguration.SecretOptions[]\":\"object\",\"ServiceConnectConfiguration.Services\":\"array\",\"ServiceConnectConfiguration.Services[]\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases\":\"array\",\"ServiceConnectConfiguration.Services[].ClientAliases[]\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases[].TestTrafficRules\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases[].TestTrafficRules.Header\":\"object\",\"ServiceConnectConfiguration.Services[].ClientAliases[].TestTrafficRules.Header.Value\":\"object\",\"ServiceConnectConfiguration.Services[].Timeout\":\"object\",\"ServiceConnectConfiguration.Services[].Tls\":\"object\",\"ServiceConnectConfiguration.Services[].Tls.IssuerCertificateAuthority\":\"object\",\"ServiceRegistries\":\"array\",\"ServiceRegistries[]\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"VolumeConfigurations\":\"array\",\"VolumeConfigurations[]\":\"object\",\"VolumeConfigurations[].ManagedEBSVolume\":\"object\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications\":\"array\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications[]\":\"object\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications[].Tags\":\"array\",\"VolumeConfigurations[].ManagedEBSVolume.TagSpecifications[].Tags[]\":\"object\",\"VpcLatticeConfigurations\":\"array\",\"VpcLatticeConfigurations[]\":\"object\",\"VpcLatticeConfigurations[].AdvancedConfiguration\":\"object\"}"],
24192
24623
  ["AWS::ECS::TaskDefinition", "{\"ContainerDefinitions\":\"array\",\"ContainerDefinitions[]\":\"object\",\"ContainerDefinitions[].Command\":\"array\",\"ContainerDefinitions[].CredentialSpecs\":\"array\",\"ContainerDefinitions[].DependsOn\":\"array\",\"ContainerDefinitions[].DependsOn[]\":\"object\",\"ContainerDefinitions[].DnsSearchDomains\":\"array\",\"ContainerDefinitions[].DnsServers\":\"array\",\"ContainerDefinitions[].DockerLabels\":\"object\",\"ContainerDefinitions[].DockerSecurityOptions\":\"array\",\"ContainerDefinitions[].EntryPoint\":\"array\",\"ContainerDefinitions[].Environment\":\"array\",\"ContainerDefinitions[].EnvironmentFiles\":\"array\",\"ContainerDefinitions[].EnvironmentFiles[]\":\"object\",\"ContainerDefinitions[].Environment[]\":\"object\",\"ContainerDefinitions[].ExtraHosts\":\"array\",\"ContainerDefinitions[].ExtraHosts[]\":\"object\",\"ContainerDefinitions[].FirelensConfiguration\":\"object\",\"ContainerDefinitions[].FirelensConfiguration.Options\":\"object\",\"ContainerDefinitions[].HealthCheck\":\"object\",\"ContainerDefinitions[].HealthCheck.Command\":\"array\",\"ContainerDefinitions[].Links\":\"array\",\"ContainerDefinitions[].LinuxParameters\":\"object\",\"ContainerDefinitions[].LinuxParameters.Capabilities\":\"object\",\"ContainerDefinitions[].LinuxParameters.Capabilities.Add\":\"array\",\"ContainerDefinitions[].LinuxParameters.Capabilities.Drop\":\"array\",\"ContainerDefinitions[].LinuxParameters.Devices\":\"array\",\"ContainerDefinitions[].LinuxParameters.Devices[]\":\"object\",\"ContainerDefinitions[].LinuxParameters.Devices[].Permissions\":\"array\",\"ContainerDefinitions[].LinuxParameters.Tmpfs\":\"array\",\"ContainerDefinitions[].LinuxParameters.Tmpfs[]\":\"object\",\"ContainerDefinitions[].LinuxParameters.Tmpfs[].MountOptions\":\"array\",\"ContainerDefinitions[].LogConfiguration\":\"object\",\"ContainerDefinitions[].LogConfiguration.Options\":\"object\",\"ContainerDefinitions[].LogConfiguration.SecretOptions\":\"array\",\"ContainerDefinitions[].LogConfiguration.SecretOptions[]\":\"object\",\"ContainerDefinitions[].MountPoints\":\"array\",\"ContainerDefinitions[].MountPoints[]\":\"object\",\"ContainerDefinitions[].PortMappings\":\"array\",\"ContainerDefinitions[].PortMappings[]\":\"object\",\"ContainerDefinitions[].RepositoryCredentials\":\"object\",\"ContainerDefinitions[].ResourceRequirements\":\"array\",\"ContainerDefinitions[].ResourceRequirements[]\":\"object\",\"ContainerDefinitions[].ResourceRequirements[].SharingStrategy\":\"object\",\"ContainerDefinitions[].ResourceRequirements[].SharingStrategy.NvidiaMps\":\"object\",\"ContainerDefinitions[].RestartPolicy\":\"object\",\"ContainerDefinitions[].RestartPolicy.IgnoredExitCodes\":\"array\",\"ContainerDefinitions[].Secrets\":\"array\",\"ContainerDefinitions[].Secrets[]\":\"object\",\"ContainerDefinitions[].SystemControls\":\"array\",\"ContainerDefinitions[].SystemControls[]\":\"object\",\"ContainerDefinitions[].Ulimits\":\"array\",\"ContainerDefinitions[].Ulimits[]\":\"object\",\"ContainerDefinitions[].VolumesFrom\":\"array\",\"ContainerDefinitions[].VolumesFrom[]\":\"object\",\"EphemeralStorage\":\"object\",\"InferenceAccelerators\":\"array\",\"InferenceAccelerators[]\":\"object\",\"PlacementConstraints\":\"array\",\"PlacementConstraints[]\":\"object\",\"ProxyConfiguration\":\"object\",\"ProxyConfiguration.ProxyConfigurationProperties\":\"array\",\"ProxyConfiguration.ProxyConfigurationProperties[]\":\"object\",\"RequiresCompatibilities\":\"array\",\"RuntimePlatform\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"TrustedExecutionConfiguration\":\"object\",\"Volumes\":\"array\",\"Volumes[]\":\"object\",\"Volumes[].DockerVolumeConfiguration\":\"object\",\"Volumes[].DockerVolumeConfiguration.DriverOpts\":\"object\",\"Volumes[].DockerVolumeConfiguration.Labels\":\"object\",\"Volumes[].EFSVolumeConfiguration\":\"object\",\"Volumes[].EFSVolumeConfiguration.AuthorizationConfig\":\"object\",\"Volumes[].FSxWindowsFileServerVolumeConfiguration\":\"object\",\"Volumes[].FSxWindowsFileServerVolumeConfiguration.AuthorizationConfig\":\"object\",\"Volumes[].Host\":\"object\",\"Volumes[].S3FilesVolumeConfiguration\":\"object\"}"],
24193
24624
  ["AWS::EFS::AccessPoint", "{\"AccessPointTags\":\"array\",\"AccessPointTags[]\":\"object\",\"PosixUser\":\"object\",\"PosixUser.SecondaryGids\":\"array\",\"RootDirectory\":\"object\",\"RootDirectory.CreationInfo\":\"object\"}"],
24194
24625
  ["AWS::EFS::FileSystem", "{\"BackupPolicy\":\"object\",\"FileSystemPolicy\":\"object\",\"FileSystemProtection\":\"object\",\"FileSystemTags\":\"array\",\"FileSystemTags[]\":\"object\",\"LifecyclePolicies\":\"array\",\"LifecyclePolicies[]\":\"object\",\"ReplicationConfiguration\":\"object\",\"ReplicationConfiguration.Destinations\":\"array\",\"ReplicationConfiguration.Destinations[]\":\"object\"}"],
@@ -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,241 @@ 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"
25378
+ }],
25379
+ ["AWS::CloudFront::Distribution", {
25380
+ mode: "sdk-coverage",
25381
+ physicalIdForm: "both layers store the bare distribution Id: Cloud Control's Identifier is the Id (measured us-east-1, 2026-11-18; the schema primaryIdentifier) and the CloudFront Distribution provider records the CreateDistribution Id",
25382
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25383
+ integFixture: "cc-to-sdk-reroute-cloudfront-distribution"
25384
+ }],
25385
+ ["AWS::RDS::DBProxy", {
25386
+ mode: "sdk-coverage",
25387
+ physicalIdForm: "both layers store the proxy name: Cloud Control's Identifier is the DBProxyName (measured us-east-1, 2026-11-18; the schema primaryIdentifier) and the RDS DBProxy provider records the CreateDBProxy DBProxyName",
25388
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25389
+ integFixture: "cc-to-sdk-reroute-common-types-11"
25390
+ }],
25391
+ ["AWS::RDS::DBProxyEndpoint", {
25392
+ mode: "sdk-coverage",
25393
+ physicalIdForm: "both layers store the endpoint name: Cloud Control's Identifier is the DBProxyEndpointName (measured us-east-1, 2026-11-18; the schema primaryIdentifier) and the RDS DBProxyEndpoint provider records the CreateDBProxyEndpoint DBProxyEndpointName",
25394
+ issue: "https://github.com/go-to-k/cdkd/issues/6490",
25395
+ integFixture: "cc-to-sdk-reroute-common-types-11"
24708
25396
  }]
24709
25397
  ]);
24710
25398
 
24711
25399
  // src/provisioning/provider-registry.ts
24712
- function sdkAddressedPhysicalId(resourceType, physicalId, logicalId) {
25400
+ async function sdkAddressedPhysicalId(record, logicalId, region) {
25401
+ const { resourceType, physicalId } = record;
24713
25402
  const entry = STICKY_CC_MIGRATION_EXEMPT.get(resourceType);
24714
25403
  const normalize = entry?.normalizeCcPhysicalId;
24715
25404
  if (normalize === void 0) return physicalId;
25405
+ const reads = entry?.normalizerReadsAccountId === true;
25406
+ const ctx = {
25407
+ properties: record.properties ?? {},
25408
+ region,
25409
+ accountId: reads ? ACCOUNT_PLACEHOLDER : "",
25410
+ partition: derivePartitionAndUrlSuffix(region).partition
25411
+ };
25412
+ const normalized = normalizeOrRefuse(entry, normalize, physicalId, ctx, logicalId, resourceType);
25413
+ if (!reads) return normalized;
25414
+ const { accountId } = await getAccountInfo(region);
25415
+ return normalizeOrRefuse(entry, normalize, physicalId, {
25416
+ ...ctx,
25417
+ accountId
25418
+ }, logicalId, resourceType);
25419
+ }
25420
+ const ACCOUNT_PLACEHOLDER = "000000000000";
25421
+ function normalizeOrRefuse(entry, normalize, physicalId, ctx, logicalId, resourceType) {
24716
25422
  try {
24717
- return normalize(physicalId);
25423
+ return normalize(physicalId, ctx);
24718
25424
  } catch (error) {
24719
25425
  const reason = describeAwsFailure(error).detail;
24720
- const remedy = entry?.mode === "sdk-coverage" ? ` Pass --pin-cc-api ${logicalId} to keep it on Cloud Control.` : "";
25426
+ const remedy = entry.mode === "sdk-coverage" ? ` Pass --pin-cc-api ${logicalId} to keep it on Cloud Control.` : "";
24721
25427
  throw new Error(`${logicalId} (${resourceType}) cannot move from Cloud Control to its SDK provider: ${reason}.${remedy}`);
24722
25428
  }
24723
25429
  }
25430
+ async function sdkAddressedRecord(record, logicalId, region) {
25431
+ const physicalId = await sdkAddressedPhysicalId(record, logicalId, region);
25432
+ const attribute = STICKY_CC_MIGRATION_EXEMPT.get(record.resourceType)?.ccIdentityAttribute;
25433
+ if (attribute === void 0) return {
25434
+ ...record,
25435
+ physicalId
25436
+ };
25437
+ return {
25438
+ ...record,
25439
+ physicalId,
25440
+ attributes: {
25441
+ ...record.attributes,
25442
+ [attribute]: record.physicalId
25443
+ }
25444
+ };
25445
+ }
25446
+ function assertSdkReadMatchesCcId(record, logicalId, attributes) {
25447
+ const attribute = STICKY_CC_MIGRATION_EXEMPT.get(record.resourceType)?.ccIdentityAttribute;
25448
+ if (attribute === void 0 || attributes[attribute] === record.physicalId) return;
25449
+ 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.`);
25450
+ }
24724
25451
  const CC_BROKEN_REASON = "Cloud Control's handler cannot manage this type correctly";
24725
25452
  function ccBrokenReason(resourceType) {
24726
25453
  return STICKY_CC_MIGRATION_EXEMPT.get(resourceType)?.mode === "cc-broken" ? CC_BROKEN_REASON : void 0;
@@ -25677,7 +26404,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
25677
26404
  if (resourceType !== "AWS::RDS::DBInstance") return false;
25678
26405
  if (region === void 0 || region === "") return false;
25679
26406
  const mask = input.mask ?? ((text) => text);
25680
- const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-CsjvBe-D.js").then((n) => n.l);
26407
+ const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-DsWNg8kx.js").then((n) => n.l);
25681
26408
  let reason;
25682
26409
  try {
25683
26410
  const live = await describeDBInstanceInRegion(physicalId, region);
@@ -26460,7 +27187,8 @@ async function readRecordAttributes(input) {
26460
27187
  const { provider, logicalId, resource, stackName, region } = input;
26461
27188
  if (!provider.import) return { kind: "not-attempted" };
26462
27189
  if (!hasAddressablePhysicalId(resource)) return { kind: "not-attempted" };
26463
- const physicalId = resource.provisionedBy === "cc-api" && !(provider instanceof CloudControlProvider) ? sdkAddressedPhysicalId(resource.resourceType, resource.physicalId, logicalId) : resource.physicalId;
27190
+ const flipped = resource.provisionedBy === "cc-api" && !(provider instanceof CloudControlProvider);
27191
+ const physicalId = flipped ? await sdkAddressedPhysicalId(resource, logicalId, region) : resource.physicalId;
26464
27192
  const found = await provider.import({
26465
27193
  logicalId,
26466
27194
  resourceType: resource.resourceType,
@@ -26471,6 +27199,7 @@ async function readRecordAttributes(input) {
26471
27199
  });
26472
27200
  if (found === null) return { kind: "not-found" };
26473
27201
  if (found.physicalId !== physicalId) throw new Error(`the provider answered for a different resource (${found.physicalId}) than the one asked about (${physicalId})`);
27202
+ if (flipped) assertSdkReadMatchesCcId(resource, logicalId, found.attributes ?? {});
26474
27203
  const reported = Object.entries(normalizeHealedAttributes(found.attributes));
26475
27204
  const attributes = Object.fromEntries(reported.filter(([, value]) => !carriesSecretMask(value)));
26476
27205
  const withheldKeys = reported.filter(([, value]) => carriesSecretMask(value)).map(([key]) => key);
@@ -30930,6 +31659,148 @@ async function replayDelete(s) {
30930
31659
  });
30931
31660
  }
30932
31661
 
31662
+ // src/deployment/deploy-engine/update-policy.ts
31663
+ const HONORED_UPDATE_POLICIES = {
31664
+ "AWS::AutoScaling::AutoScalingGroup": [
31665
+ {
31666
+ key: "AutoScalingScheduledAction",
31667
+ route: "sdk",
31668
+ asksForIt: (policy) => ignoresUnmodifiedGroupSize(policy)
31669
+ },
31670
+ {
31671
+ key: "AutoScalingReplacingUpdate",
31672
+ route: "any",
31673
+ asksForIt: (policy, changed) => willReplaceGroup(policy) && REPLACEMENT_TRIGGER_PROPERTIES.some((k) => changed.has(k))
31674
+ },
31675
+ {
31676
+ key: "AutoScalingRollingUpdate",
31677
+ route: "sdk",
31678
+ asksForIt: (policy, changed) => rollingUpdatePolicy(policy) !== void 0 && REPLACEMENT_TRIGGER_PROPERTIES.some((k) => changed.has(k))
31679
+ },
31680
+ {
31681
+ key: "AutoScalingInstanceRefresh",
31682
+ route: "sdk",
31683
+ asksForIt: (policy, changed) => isObject$2(policy["AutoScalingInstanceRefresh"]) && !willReplaceGroup(policy) && INSTANCE_REFRESH_TRIGGER_PROPERTIES.some((k) => changed.has(k))
31684
+ }
31685
+ ],
31686
+ "AWS::Lambda::Alias": [{
31687
+ key: "CodeDeployLambdaAliasUpdate",
31688
+ route: "any",
31689
+ asksForIt: (policy, changed) => isObject$2(policy["CodeDeployLambdaAliasUpdate"]) && changed.has("FunctionVersion")
31690
+ }]
31691
+ };
31692
+ async function resolveAliasUpdatePolicy(updatePolicyOption, logicalId, resourceType, resource, versionChanges, resolve, secretGuard) {
31693
+ if (updatePolicyOption !== true || resourceType !== "AWS::Lambda::Alias") return void 0;
31694
+ if (!versionChanges) return void 0;
31695
+ const updatePolicy = resource?.UpdatePolicy;
31696
+ if (!isObject$2(updatePolicy)) return void 0;
31697
+ const aliasPolicy = updatePolicy["CodeDeployLambdaAliasUpdate"];
31698
+ if (!isObject$2(aliasPolicy)) return void 0;
31699
+ 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")));
31700
+ if (JSON.stringify(aliasPolicy).includes("{{resolve:")) throw refusal();
31701
+ const isSecretBearing = secretGuard();
31702
+ const resolved = await resolve(aliasPolicy);
31703
+ if (isSecretBearing(resolved)) throw refusal();
31704
+ return {
31705
+ ...updatePolicy,
31706
+ CodeDeployLambdaAliasUpdate: resolved
31707
+ };
31708
+ }
31709
+ function isObject$2(value) {
31710
+ return typeof value === "object" && value !== null && !Array.isArray(value);
31711
+ }
31712
+ function askedKeys(resourceType, updatePolicy, changed, route) {
31713
+ return (HONORED_UPDATE_POLICIES[resourceType] ?? []).filter((entry) => (route === "sdk" || entry.route === "any") && entry.asksForIt(updatePolicy, changed)).map((entry) => entry.key);
31714
+ }
31715
+ function updatePolicyContext(updatePolicyOption, logger, logicalId, resourceType, resource, provisionedBy, changed, resolved) {
31716
+ const updatePolicy = resolved ?? resource?.UpdatePolicy;
31717
+ if (typeof updatePolicy !== "object" || updatePolicy === null) return {};
31718
+ if (updatePolicyOption === false) return {};
31719
+ if (updatePolicyOption === true) {
31720
+ if (provisionedBy !== "sdk") {
31721
+ const unapplied = askedKeys(resourceType, updatePolicy, changed, "sdk").filter((key) => !askedKeys(resourceType, updatePolicy, changed, "cc-api").includes(key));
31722
+ if (unapplied.length > 0) logger.warn(safeMsg`${logicalId}: UpdatePolicy ${unapplied.join(", ")} is not applied by cdkd on the Cloud Control route this update takes.`);
31723
+ }
31724
+ return { updatePolicy };
31725
+ }
31726
+ const keys = askedKeys(resourceType, updatePolicy, changed, provisionedBy);
31727
+ if (keys.length > 0) logger.info(safeMsg`${logicalId}: UpdatePolicy ${keys.join(", ")} is skipped by default; pass --update-policy to honor it.`);
31728
+ return {};
31729
+ }
31730
+ function aliasPolicySecretGuard(secrets) {
31731
+ const pairs = secrets.size;
31732
+ const logOnly = logOnlyValueCount(secrets);
31733
+ return (resolved) => {
31734
+ if (secrets.size !== pairs || logOnlyValueCount(secrets) !== logOnly) return true;
31735
+ const corpus = printingCorpusOf(secrets);
31736
+ if (stringLeaves(resolved).some((leaf) => corpus.has(leaf))) return true;
31737
+ const text = JSON.stringify(resolved) ?? "";
31738
+ return createSecretMasker(secrets)(text) !== text;
31739
+ };
31740
+ }
31741
+ function stringLeaves(value) {
31742
+ if (typeof value === "string") return [value];
31743
+ if (Array.isArray(value)) return value.flatMap(stringLeaves);
31744
+ if (isObject$2(value)) return Object.values(value).flatMap(stringLeaves);
31745
+ return [];
31746
+ }
31747
+ function warnUnhonoredCreationPolicy(logger, logicalId, resource) {
31748
+ if (resource?.CreationPolicy === void 0) return;
31749
+ logger.warn(safeMsg`${logicalId}: CreationPolicy is not honored; cdkd does not wait for cfn-signal success signals.`);
31750
+ }
31751
+ function updatePolicyReplacementRefusal(logicalId, resource, desired, triggerPaths, stackHasInstanceId) {
31752
+ const updatePolicy = resource?.UpdatePolicy;
31753
+ const changed = [...new Set(triggerPaths.map((path) => path.split(/[.[]/)[0] ?? path))];
31754
+ const head = safeMsg`${logicalId}: UpdatePolicy AutoScalingReplacingUpdate (WillReplace: true) replaces the group because ${changed.join(", ")} changed, but `;
31755
+ 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.";
31756
+ const name = desired["AutoScalingGroupName"];
31757
+ 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.";
31758
+ 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.";
31759
+ }
31760
+ function journaledUpdatePolicy(updatePolicyOption, resource, resolved) {
31761
+ const updatePolicy = resolved ?? resource?.UpdatePolicy;
31762
+ return updatePolicyOption === true && isObject$2(updatePolicy) ? updatePolicy : void 0;
31763
+ }
31764
+ function revertUpdatePolicy(journaled) {
31765
+ if (!isObject$2(journaled)) return void 0;
31766
+ const { AutoScalingScheduledAction: _ignoredOnRollback, ...rest } = journaled;
31767
+ return Object.keys(rest).length > 0 ? rest : void 0;
31768
+ }
31769
+ function revertUpdatePolicyContext(journaled) {
31770
+ const updatePolicy = revertUpdatePolicy(journaled);
31771
+ return updatePolicy !== void 0 ? { updatePolicy } : {};
31772
+ }
31773
+ function findUpdatePolicyReplacementRefusals(changes, template, stackHasInstanceId, createRoutesToCloudControl) {
31774
+ const refusals = [];
31775
+ for (const [logicalId, change] of changes) {
31776
+ if (change.changeType !== "UPDATE") continue;
31777
+ const replacing = (change.propertyChanges ?? []).filter((pc) => pc.requiresReplacement);
31778
+ if (replacing.length === 0 || !replacing.every((pc) => pc.updatePolicyReplacement === true)) continue;
31779
+ if (replacing.every((pc) => pc.inPlacePropagated === true || pc.replacementPropagated === true)) continue;
31780
+ if (createRoutesToCloudControl?.(logicalId, change) === true) {
31781
+ refusals.push(cloudControlReplacementRefusal(logicalId));
31782
+ continue;
31783
+ }
31784
+ const { AutoScalingGroupName: name, ...rest } = change.desiredProperties ?? {};
31785
+ const refusal = updatePolicyReplacementRefusal(logicalId, template?.Resources?.[logicalId], typeof name === "string" ? {
31786
+ ...rest,
31787
+ AutoScalingGroupName: name
31788
+ } : rest, replacing.map((pc) => pc.path), stackHasInstanceId);
31789
+ if (refusal !== void 0) refusals.push(refusal);
31790
+ }
31791
+ return refusals;
31792
+ }
31793
+ function cloudControlReplacementRefusal(logicalId) {
31794
+ 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.";
31795
+ }
31796
+ function replacementCreateRoutesToCloudControl(getProviderFor, change, recordProperties) {
31797
+ return getProviderFor({
31798
+ resourceType: change.resourceType,
31799
+ properties: change.desiredProperties ?? {},
31800
+ previousProperties: recordProperties
31801
+ }).provisionedBy !== "sdk";
31802
+ }
31803
+
30933
31804
  // src/deployment/update-outcome.ts
30934
31805
  function updatePartialReason(result) {
30935
31806
  if (!result || result.outcome !== "partial") return void 0;
@@ -31873,12 +32744,14 @@ async function replayRevert(s) {
31873
32744
  maskSecrets: createSecretMasker(secrets),
31874
32745
  expectedRegion: ctx.region,
31875
32746
  replayingState: true,
32747
+ restoredObservedProperties: previousState.observedProperties,
31876
32748
  recordedAttributes: current.attributes,
31877
32749
  recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
31878
32750
  ...revertClaimed && { inlinePolicyClaimed: revertClaimed },
31879
32751
  ...unsettledContextOf(current, previousState),
31880
32752
  typedPayloadLeaves: previousState.typedPayloadLeaves,
31881
- previousTypedPayloadLeaves: current.typedPayloadLeaves
32753
+ previousTypedPayloadLeaves: current.typedPayloadLeaves,
32754
+ ...revertUpdatePolicyContext(op.updatePolicy)
31882
32755
  }
31883
32756
  ], op.logicalId, logger, isInterrupted, secrets, mask));
31884
32757
  if (revertResult) recordNoEchoAttributeValues(revertResult, secrets, desiredProps);
@@ -32953,7 +33826,9 @@ async function replayFailedOperationsUnbound(failedOps, stateResources, stackNam
32953
33826
  recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
32954
33827
  ...revertFailedClaimed && { inlinePolicyClaimed: revertFailedClaimed },
32955
33828
  ...revertUnsettled,
32956
- typedPayloadLeaves: prev.typedPayloadLeaves
33829
+ typedPayloadLeaves: prev.typedPayloadLeaves,
33830
+ restoredObservedProperties: prev.observedProperties,
33831
+ ...revertUpdatePolicyContext(op.updatePolicy)
32957
33832
  }
32958
33833
  ], op.logicalId, logger, options.isInterrupted, secrets, mask));
32959
33834
  if (revertFailedResult) recordNoEchoAttributeValues(revertFailedResult, secrets, desiredProps);
@@ -34140,6 +35015,7 @@ function destructiveImpactOf(change, record) {
34140
35015
  case "DELETE": return shouldRetainResource(record?.deletionPolicy) ? "WILL_ORPHAN" : "WILL_DESTROY";
34141
35016
  case "UPDATE": {
34142
35017
  if (record !== void 0 && record.resourceType !== change.resourceType) return "WILL_REPLACE";
35018
+ if (change.providerReplacement !== void 0) return "WILL_REPLACE";
34143
35019
  let mayReplace = false;
34144
35020
  for (const pc of change.propertyChanges ?? []) {
34145
35021
  if (!pc.requiresReplacement) continue;
@@ -37554,89 +38430,6 @@ function formatResourceLine(op, logicalId, resourceType, verbOverride) {
37554
38430
  }
37555
38431
  }
37556
38432
 
37557
- // src/deployment/prior-attempt-scope.ts
37558
- const priorAttemptStore = new AsyncLocalStorage();
37559
- function withPriorAttempts(lookup, fn) {
37560
- return priorAttemptStore.run(lookup, fn);
37561
- }
37562
- function priorAttemptLookup(logicalId, attempts, provenOrphanIds) {
37563
- let landed = false;
37564
- return {
37565
- logicalId,
37566
- attempts,
37567
- ...provenOrphanIds !== void 0 && { provenOrphanIds },
37568
- notePossiblyLanded: () => {
37569
- landed = true;
37570
- },
37571
- possiblyLanded: () => landed
37572
- };
37573
- }
37574
- function getPriorAttempts(logicalId) {
37575
- const bound = priorAttemptStore.getStore();
37576
- return bound?.logicalId === logicalId ? bound : void 0;
37577
- }
37578
- function priorAttemptsInJournal(journal, logicalId, resourceType) {
37579
- const bags = [];
37580
- for (const op of unsupersededFailedOps(journal, logicalId, resourceType)) {
37581
- if (op.changeType === "DELETE" || !isBag(op.attemptedProperties)) continue;
37582
- if (op.changeType === "UPDATE" && op.replacementOrphaned !== void 0) continue;
37583
- if (recordedAsNewResource(op)) continue;
37584
- bags.push(op.attemptedProperties);
37585
- }
37586
- return bags;
37587
- }
37588
- function provenOrphanIdsInJournal(journal, logicalId, resourceType) {
37589
- const ids = [];
37590
- for (const op of unsupersededFailedOps(journal, logicalId, resourceType)) {
37591
- if (op.changeType !== "CREATE" || op.physicalIdRecoveredFromError !== true) continue;
37592
- if (typeof op.physicalId === "string" && op.physicalId !== "") ids.push(op.physicalId);
37593
- }
37594
- return ids;
37595
- }
37596
- function unsupersededFailedOps(journal, logicalId, resourceType) {
37597
- let ops = [];
37598
- for (const segment of journal?.segments ?? []) {
37599
- if (segment.operations.some((op) => op.logicalId === logicalId)) ops = [];
37600
- for (const op of segment.failedOperations ?? []) if (op.logicalId === logicalId && op.resourceType === resourceType) ops.push(op);
37601
- if (segment.supersededLogicalIds?.includes(logicalId)) ops = [];
37602
- }
37603
- return ops;
37604
- }
37605
- function recordedAsNewResource(op) {
37606
- if (typeof op.physicalId !== "string" || op.physicalId === "") return false;
37607
- if (op.physicalIdRecoveredFromError === true) return false;
37608
- if (op.changeType === "CREATE") return true;
37609
- const previous = op.previousState?.physicalId;
37610
- return typeof previous === "string" && previous !== op.physicalId;
37611
- }
37612
- function isBag(value) {
37613
- return typeof value === "object" && value !== null && !Array.isArray(value);
37614
- }
37615
- const REFUSED_BEFORE_APPLYING = Symbol.for("cdkd.refusedBeforeApplying");
37616
- const MAX_CAUSE_DEPTH = 10;
37617
- function markRefusedBeforeApplying(error) {
37618
- if (!Object.isExtensible(error)) return error;
37619
- Object.defineProperty(error, REFUSED_BEFORE_APPLYING, {
37620
- value: true,
37621
- enumerable: false,
37622
- configurable: true,
37623
- writable: false
37624
- });
37625
- return error;
37626
- }
37627
- function isRefusedBeforeApplying(error, logicalId) {
37628
- let current = error;
37629
- for (let depth = 0; depth < MAX_CAUSE_DEPTH && current != null; depth++) {
37630
- if (typeof current === "object" || typeof current === "function") {
37631
- const linkId = current.logicalId;
37632
- if (typeof linkId === "string" && linkId !== logicalId) return false;
37633
- if (current[REFUSED_BEFORE_APPLYING] === true) return true;
37634
- }
37635
- current = current.cause;
37636
- }
37637
- return false;
37638
- }
37639
-
37640
38433
  // src/deployment/deploy-engine/update/noecho-macs.ts
37641
38434
  function covers(coordinate, key, leafPath) {
37642
38435
  if (coordinate[0] !== key) return false;
@@ -46375,6 +47168,8 @@ async function resolveUpdateInputs(engine, logicalId, change, stateResources, st
46375
47168
  if (noEchoOverrides !== void 0) context.noEchoAttributeOverrides = noEchoOverrides;
46376
47169
  printNestedStackReadsOnly(context, resourceType, secretNameBagFor(engine.secretsRun, logicalId));
46377
47170
  const resolvedProps = await engine.resolver.resolve(desiredProps, context);
47171
+ 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));
47172
+ if (aliasUpdatePolicy !== void 0) engine.resolvedUpdatePolicies.set(logicalId, aliasUpdatePolicy);
46378
47173
  noteSecretNamedRecord(engine.secretsRun, logicalId, {
46379
47174
  resourceType,
46380
47175
  physicalId: stateResources[logicalId]?.physicalId,
@@ -46775,8 +47570,9 @@ async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSam
46775
47570
  }
46776
47571
 
46777
47572
  // src/deployment/deploy-engine/update-replace/create-first.ts
46778
- async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, typedPayloadLeaves, lostWithParent, nameChange }) {
47573
+ async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, typedPayloadLeaves, lostWithParent, nameChange, awaitInService }) {
46779
47574
  let createResult;
47575
+ if (awaitInService === true && replaceDecision.provisionedBy !== "sdk") throw markRefusedBeforeApplying(markNonRetryable(new CdkdError(cloudControlReplacementRefusal(logicalId), "UPDATE_POLICY_REPLACEMENT_REFUSED")));
46780
47576
  engine.logger.info(safeMsg` Creating new ${logicalId}...`);
46781
47577
  let deletedOldFirst = lostWithParent !== void 0;
46782
47578
  if (lostWithParent !== void 0) {
@@ -46793,7 +47589,8 @@ async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResour
46793
47589
  keepsName: lostWithParent !== void 0
46794
47590
  }, () => engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => replaceProvider.create(logicalId, resourceType, replaceProps, {
46795
47591
  maskSecrets: createSecretMasker(updateSecrets),
46796
- ...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
47592
+ ...typedPayloadLeaves !== void 0 && { typedPayloadLeaves },
47593
+ ...awaitInService === true && { awaitInService: true }
46797
47594
  })), logicalId, void 0, void 0, replaceProvider, lostWithParent !== void 0));
46798
47595
  } catch (createError) {
46799
47596
  const createFailure = describeAwsFailure(createError);
@@ -46870,7 +47667,7 @@ async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResour
46870
47667
  }
46871
47668
 
46872
47669
  // src/deployment/deploy-engine/update-replace.ts
46873
- 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 }) {
47670
+ 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 }) {
46874
47671
  const noEchoDeleteValues = await noEchoDeleteValuesFromResolved({
46875
47672
  record: currentResource,
46876
47673
  templateResource: template?.Resources?.[logicalId],
@@ -46896,6 +47693,7 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
46896
47693
  let replacementReason;
46897
47694
  if (recreateViaCcApi) replacementReason = "--recreate-via-cc-api flag (mid-life SDK→CC migration)";
46898
47695
  else if (recreateViaSdkProvider) replacementReason = "--recreate-via-sdk-provider flag (mid-life CC→SDK migration)";
47696
+ else if (policyReplacement === true) replacementReason = "UpdatePolicy AutoScalingReplacingUpdate (WillReplace: true)";
46899
47697
  else replacementReason = `immutable properties changed: ${change.propertyChanges?.filter((pc) => pc.requiresReplacement).map((pc) => pc.path).join(", ")}`;
46900
47698
  engine.logger.info(safeMsg`Replacing ${logicalId} (${typeChanged ? `${oldResourceType} -> ${resourceType}` : resourceType}) - ${replacementReason}`);
46901
47699
  const recreateDirectionHint = recreateViaCcApi ? "cc-api" : recreateViaSdkProvider ? "sdk" : void 0;
@@ -47003,7 +47801,8 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
47003
47801
  updateSecrets,
47004
47802
  lostWithParent,
47005
47803
  typedPayloadLeaves,
47006
- nameChange
47804
+ nameChange,
47805
+ awaitInService: policyReplacement === true
47007
47806
  });
47008
47807
  registerNoEchoAttributes(engine.secretsRun, engine.maskingDeps(), logicalId, createResult, updateSecrets, resolvedProps);
47009
47808
  if (equalIdIsSameResource && createResult.physicalId === currentResource.physicalId) engine.replacementRun.recreatedUnderSameId.add(logicalId);
@@ -47083,31 +47882,6 @@ function unsettledMarkSinks(engine, logicalId, resolvedProps, currentResource) {
47083
47882
  };
47084
47883
  }
47085
47884
 
47086
- // src/deployment/deploy-engine/update-policy.ts
47087
- const HONORED_UPDATE_POLICIES = { "AWS::AutoScaling::AutoScalingGroup": [{
47088
- key: "AutoScalingScheduledAction",
47089
- asksForIt: ignoresUnmodifiedGroupSize
47090
- }] };
47091
- function honoredKeysPresent(resourceType, updatePolicy) {
47092
- return (HONORED_UPDATE_POLICIES[resourceType] ?? []).filter((entry) => entry.asksForIt(updatePolicy)).map((entry) => entry.key);
47093
- }
47094
- function updatePolicyContext(updatePolicyOption, logger, logicalId, resourceType, resource, provisionedBy) {
47095
- const updatePolicy = resource?.UpdatePolicy;
47096
- if (typeof updatePolicy !== "object" || updatePolicy === null) return {};
47097
- if (updatePolicyOption === false) return {};
47098
- const keys = honoredKeysPresent(resourceType, updatePolicy);
47099
- if (updatePolicyOption === true) {
47100
- 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.`);
47101
- return { updatePolicy };
47102
- }
47103
- if (provisionedBy === "sdk" && keys.length > 0) logger.info(safeMsg`${logicalId}: UpdatePolicy ${keys.join(", ")} is skipped by default; pass --update-policy to honor it.`);
47104
- return {};
47105
- }
47106
- function warnUnhonoredCreationPolicy(logger, logicalId, resource) {
47107
- if (resource?.CreationPolicy === void 0) return;
47108
- logger.warn(safeMsg`${logicalId}: CreationPolicy is not honored; cdkd does not wait for cfn-signal success signals.`);
47109
- }
47110
-
47111
47885
  // src/deployment/deploy-engine/replacement/cleanup-old-id.ts
47112
47886
  async function deleteOldIdAfterDeploy(run, deps, input) {
47113
47887
  const { logicalId, oldResource } = input;
@@ -47363,10 +48137,7 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
47363
48137
  previousProperties: recordedResource.properties,
47364
48138
  ...isPinnedToCcApi(engine.options, stackName, logicalId) && { forceCcApi: true }
47365
48139
  });
47366
- const currentResource = updateDecision.sdkMigration === true ? {
47367
- ...recordedResource,
47368
- physicalId: sdkAddressedPhysicalId(resourceType, recordedResource.physicalId, logicalId)
47369
- } : recordedResource;
48140
+ const currentResource = updateDecision.sdkMigration === true ? await sdkAddressedRecord(recordedResource, logicalId, engine.stackRegion) : recordedResource;
47370
48141
  if (updateDecision.sdkMigration === true) {
47371
48142
  const exemptMode = STICKY_CC_MIGRATION_EXEMPT.get(resourceType)?.mode;
47372
48143
  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";
@@ -47437,7 +48208,7 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
47437
48208
  let replacedAtGeneration;
47438
48209
  const inlinePolicyClaimed = engine.inlinePolicyClaimedFor(resourceType, logicalId, stateResources);
47439
48210
  const typedPayloadLeaves = customResourcePayloadLeaves(resourceType, template?.Resources?.[logicalId]?.Properties, resolvedProps, template, conditions, stateResources);
47440
- const updatePolicy = updatePolicyContext(engine.options.updatePolicy, engine.logger, logicalId, resourceType, template?.Resources?.[logicalId], updateDecision.provisionedBy);
48211
+ const updatePolicy = updatePolicyContext(engine.options.updatePolicy, engine.logger, logicalId, resourceType, template?.Resources?.[logicalId], updateDecision.provisionedBy, changedProperties, engine.resolvedUpdatePolicies.get(logicalId));
47441
48212
  try {
47442
48213
  result = await engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => updateProvider.update(logicalId, currentResource.physicalId, resourceType, removal.properties, previousSettled, {
47443
48214
  maskSecrets: createSecretMasker(updateSecrets),
@@ -47731,7 +48502,7 @@ function deferredServiceTokenWarning(row) {
47731
48502
 
47732
48503
  // src/deployment/deploy-engine/update/finish.ts
47733
48504
  async function finishUpdate(engine, input) {
47734
- 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;
48505
+ 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;
47735
48506
  const liveLabel = engine.liveTaskLabels.get(logicalId);
47736
48507
  if (needsReplacement && liveLabel !== void 0 && !liveLabel.replacing) {
47737
48508
  const label = `Replacing ${logicalId} (${resourceType})${peekRoutingForLabel(engine.providerRegistry, engine.options, change, currentResource, stackName, logicalId, true, recreateDirectionFor(engine.options, stackName, logicalId)) === "cc-api" ? " [CC API]" : ""}`;
@@ -47787,7 +48558,8 @@ async function finishUpdate(engine, input) {
47787
48558
  updateReplacePolicy,
47788
48559
  updateSecrets,
47789
48560
  lostWithParent,
47790
- nameGenerationFields
48561
+ nameGenerationFields,
48562
+ policyReplacement: policyReplacement === true
47791
48563
  });
47792
48564
  const replaced = await (nextGeneration === void 0 ? replace() : withNameGeneration({
47793
48565
  logicalId,
@@ -48122,9 +48894,15 @@ async function provisionUpdate(engine, logicalId, change, stateResources, stackN
48122
48894
  const recreateViaCcApi = recreateTargets?.viaCcApi.has(logicalId) ?? false;
48123
48895
  const recreateViaSdkProvider = recreateTargets?.viaSdkProvider.has(logicalId) ?? false;
48124
48896
  const recreateFlagged = recreateViaCcApi || recreateViaSdkProvider;
48897
+ const replacementChanges = (change.propertyChanges ?? []).filter((pc) => pc.requiresReplacement);
48898
+ const policyReplacement = !typeChanged && !recreateFlagged && lostWithParent === void 0 && replacementChanges.length > 0 && replacementChanges.every((pc) => pc.updatePolicyReplacement === true);
48899
+ if (policyReplacement) {
48900
+ const refusal = updatePolicyReplacementRefusal(logicalId, template?.Resources?.[logicalId], resolvedProps, replacementChanges.map((pc) => pc.path), getCurrentStackInstanceId() !== void 0);
48901
+ if (refusal !== void 0) throw markRefusedBeforeApplying(markNonRetryable(new CdkdError(refusal, "UPDATE_POLICY_REPLACEMENT_REFUSED")));
48902
+ }
48125
48903
  const needsReplacement = propertyDrivenReplacement || recreateFlagged || lostWithParent !== void 0;
48126
48904
  if (propertyDrivenReplacement && !typeChanged && !recreateFlagged && lostWithParent === void 0 && engine.options.replace !== true && currentResource.provisionedBy !== "cc-api") {
48127
- const unwritten = unwrittenCreateOnlyReplacement(resourceType, currentProps, desiredForSkipCheck, allowedForRecord, createOnlyEvidence, (change.propertyChanges ?? []).filter((pc) => pc.requiresReplacement).map((pc) => pc.path));
48905
+ const unwritten = unwrittenCreateOnlyReplacement(resourceType, currentProps, desiredForSkipCheck, allowedForRecord, createOnlyEvidence, (change.propertyChanges ?? []).filter((pc) => pc.requiresReplacement && pc.updatePolicyReplacement !== true).map((pc) => pc.path));
48128
48906
  if (unwritten.length > 0) throw markRefusedBeforeApplying(markNonRetryable(new CdkdError(unwrittenCreateOnlyRefusal({
48129
48907
  logicalId,
48130
48908
  resourceType,
@@ -48169,7 +48947,8 @@ async function provisionUpdate(engine, logicalId, change, stateResources, stackN
48169
48947
  recreateViaCcApi,
48170
48948
  recreateViaSdkProvider,
48171
48949
  recreateFlagged,
48172
- needsReplacement
48950
+ needsReplacement,
48951
+ policyReplacement
48173
48952
  });
48174
48953
  }
48175
48954
 
@@ -48549,7 +49328,8 @@ async function provisionCreateUpdateNode(run, createUpdateExecutor, enqueueLostC
48549
49328
  ...attemptedGeneration !== void 0 && { nameGeneration: attemptedGeneration },
48550
49329
  ...change.changeType === "CREATE" && getCurrentStackInstanceId() !== void 0 && { nameGeneration: currentNameGeneration(logicalId) ?? 0 },
48551
49330
  ...orphanedBy !== void 0 && { replacementOrphaned: engine.replacementRun.oldDeletedBeforeCreate.has(logicalId) ? "delete-first" : "create-first" },
48552
- ...!refused && { attemptedProperties: engine.attemptedResolvedProps.get(logicalId) }
49331
+ ...!refused && { attemptedProperties: engine.attemptedResolvedProps.get(logicalId) },
49332
+ ...journaledUpdatePolicyField(change.changeType, engine.options.updatePolicy, template, logicalId, engine.resolvedUpdatePolicies.get(logicalId))
48553
49333
  };
48554
49334
  failedOperations.push(failedOp);
48555
49335
  const heldNow = newResources[logicalId];
@@ -48584,12 +49364,18 @@ async function provisionCreateUpdateNode(run, createUpdateExecutor, enqueueLostC
48584
49364
  ...change.changeType === "UPDATE" && engine.replacementRun.replacedOldMaySurvive.has(logicalId) && { oldResourceMaySurvive: engine.replacementRun.replacedOldMaySurvive.get(logicalId) },
48585
49365
  ...change.changeType === "UPDATE" && engine.replacementRun.updateWasReplaced.has(logicalId) && { wasReplaced: engine.replacementRun.updateWasReplaced.get(logicalId) },
48586
49366
  ...change.changeType === "UPDATE" && engine.replacementRun.oldIdLeftForCleanup.has(logicalId) && { oldPhysicalIdLeftForCleanup: true },
49367
+ ...journaledUpdatePolicyField(change.changeType, engine.options.updatePolicy, template, logicalId, engine.resolvedUpdatePolicies.get(logicalId)),
48587
49368
  ...change.changeType === "UPDATE" && previousState !== void 0 && { previousResourceType: previousState.resourceType },
48588
49369
  ...change.changeType === "UPDATE" && engine.replacementRun.attemptedNameGeneration.has(logicalId) && newResources[logicalId]?.nameGeneration !== void 0 && { nameGeneration: newResources[logicalId].nameGeneration }
48589
49370
  });
48590
49371
  saveStateAfterResource(logicalId);
48591
49372
  if (engine.replacementRun.recreatedUnderSameId.has(logicalId)) enqueueLostChildren(createUpdateExecutor);
48592
49373
  }
49374
+ function journaledUpdatePolicyField(changeType, updatePolicyOption, template, logicalId, resolved) {
49375
+ if (changeType !== "UPDATE") return {};
49376
+ const updatePolicy = journaledUpdatePolicy(updatePolicyOption, template?.Resources?.[logicalId], resolved);
49377
+ return updatePolicy !== void 0 ? { updatePolicy } : {};
49378
+ }
48593
49379
 
48594
49380
  // src/deployment/deploy-engine/execute/failed-deploy-records.ts
48595
49381
  async function settleFailedDeployRecords(run) {
@@ -49681,7 +50467,7 @@ async function calculateDeployDiff(engine, { stackName, currentState, effectiveT
49681
50467
  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), {
49682
50468
  ...engine.options.inheritedReferenceProvenance && { inherited: engine.options.inheritedReferenceProvenance },
49683
50469
  crossStackOutputs: crossStackOutputProvenanceSource(crossStackReads, engine.recordedImports, engine.stateBackend)
49684
- }, forcedNestedChildRuns)
50470
+ }, forcedNestedChildRuns, engine.options.updatePolicy === true)
49685
50471
  };
49686
50472
  }
49687
50473
 
@@ -50015,6 +50801,8 @@ async function refuseUnsafePlan(engine, { stackName, ssmNameHeals = [], currentS
50015
50801
  stateResources: currentState.resources
50016
50802
  });
50017
50803
  if (nestedStackTypeChanges.length > 0) throw markNonRetryable(new CdkdError(renderNestedStackTypeChangeRefusal(nestedStackTypeChanges, stackName), "TYPE_CHANGE_NESTED_STACK"));
50804
+ const policyReplacementRefusals = findUpdatePolicyReplacementRefusals(changes, effectiveTemplate, currentState.stackInstanceId !== void 0, (logicalId, change) => replacementCreateRoutesToCloudControl((input) => engine.providerRegistry.getProviderFor(input), change, currentState.resources[logicalId]?.properties));
50805
+ if (policyReplacementRefusals.length > 0) throw markNonRetryable(new CdkdError(policyReplacementRefusals.join("\n"), "UPDATE_POLICY_REPLACEMENT_REFUSED"));
50018
50806
  await refuseInUseExportChanges(engine, {
50019
50807
  stackName,
50020
50808
  ssmNameHeals,
@@ -50770,6 +51558,7 @@ function deploy(stackName, template) {
50770
51558
  this.noEchoRun = new NoEchoRunState();
50771
51559
  this.replacementRun = new ReplacementRunState();
50772
51560
  this.attemptedResolvedProps = /* @__PURE__ */ new Map();
51561
+ this.resolvedUpdatePolicies = /* @__PURE__ */ new Map();
50773
51562
  this.unsettledMarks = /* @__PURE__ */ new Map();
50774
51563
  this.unsettledItemMarks = /* @__PURE__ */ new Map();
50775
51564
  this.resumedCreates = /* @__PURE__ */ new Map();
@@ -50847,6 +51636,7 @@ var DeployEngine = class {
50847
51636
  replacementRun = new ReplacementRunState();
50848
51637
  outputsRun = new OutputsRunState();
50849
51638
  attemptedResolvedProps = /* @__PURE__ */ new Map();
51639
+ resolvedUpdatePolicies = /* @__PURE__ */ new Map();
50850
51640
  unsettledMarks = /* @__PURE__ */ new Map();
50851
51641
  unsettledItemMarks = /* @__PURE__ */ new Map();
50852
51642
  inFlightBodies = /* @__PURE__ */ new Map();
@@ -50990,5 +51780,5 @@ var DeployEngine = class {
50990
51780
  }
50991
51781
  };
50992
51782
 
50993
- 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 };
50994
- //# sourceMappingURL=deploy-engine-BVpckkRS.js.map
51783
+ 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 };
51784
+ //# sourceMappingURL=deploy-engine-BOKcCf9R.js.map