@cdkd/cli 0.358.3 → 0.358.5

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 (54) hide show
  1. package/dist/{ambient-client-defaults-BN4tRwp9.js → ambient-client-defaults-sV7_Dag9.js} +3 -3
  2. package/dist/{ambient-client-defaults-BN4tRwp9.js.map → ambient-client-defaults-sV7_Dag9.js.map} +1 -1
  3. package/dist/{asg-provider-DHkF4o0Q.js → asg-provider-C8Z9gQh6.js} +6 -6
  4. package/dist/{asg-provider-DHkF4o0Q.js.map → asg-provider-C8Z9gQh6.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-KEMII41H.js → custom-resource-runtime-CFKtxcut.js} +6 -6
  7. package/dist/{custom-resource-runtime-KEMII41H.js.map → custom-resource-runtime-CFKtxcut.js.map} +1 -1
  8. package/dist/{db-associated-roles-0r3NPm7U.js → db-associated-roles-CAqrOMb6.js} +2 -2
  9. package/dist/{db-associated-roles-0r3NPm7U.js.map → db-associated-roles-CAqrOMb6.js.map} +1 -1
  10. package/dist/{delete-started-xsYgmgVh.js → delete-started-nZR1YxYW.js} +4 -4
  11. package/dist/{delete-started-xsYgmgVh.js.map → delete-started-nZR1YxYW.js.map} +1 -1
  12. package/dist/{deploy-engine-2R2hbP5Y.js → deploy-engine-DD0u1ctj.js} +1302 -285
  13. package/dist/deploy-engine-DD0u1ctj.js.map +1 -0
  14. package/dist/{diff-calculator-CIuzHmBn.js → diff-calculator-D6-l89Im.js} +12 -12
  15. package/dist/{diff-calculator-CIuzHmBn.js.map → diff-calculator-D6-l89Im.js.map} +1 -1
  16. package/dist/{ec2-termination-protection-DIdBlUyw.js → ec2-termination-protection-CrZB0URU.js} +6 -6
  17. package/dist/{ec2-termination-protection-DIdBlUyw.js.map → ec2-termination-protection-CrZB0URU.js.map} +1 -1
  18. package/dist/{ecr-uri-DD3r4tU6.js → ecr-uri-97_fu_HH.js} +2 -2
  19. package/dist/{ecr-uri-DD3r4tU6.js.map → ecr-uri-97_fu_HH.js.map} +1 -1
  20. package/dist/{expected-bucket-owner-Cm4q0WEG.js → expected-bucket-owner-DztbSJ4h.js} +2 -2
  21. package/dist/{expected-bucket-owner-Cm4q0WEG.js.map → expected-bucket-owner-DztbSJ4h.js.map} +1 -1
  22. package/dist/{iam-role-provider-DiB7B6vR.js → iam-role-provider-CMtP4Ptf.js} +8 -8
  23. package/dist/{iam-role-provider-DiB7B6vR.js.map → iam-role-provider-CMtP4Ptf.js.map} +1 -1
  24. package/dist/{image-plan-VU9zHTjW.js → image-plan-B9r5-bNi.js} +8 -8
  25. package/dist/{image-plan-VU9zHTjW.js.map → image-plan-B9r5-bNi.js.map} +1 -1
  26. package/dist/index.d.ts +16 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/{logger-C4kIC51Z.js → logger-D2Z2OHGQ.js} +2 -2
  30. package/dist/{logger-C4kIC51Z.js.map → logger-D2Z2OHGQ.js.map} +1 -1
  31. package/dist/{neptune-provider-CVtiI39K.js → neptune-provider-CXTIUxND.js} +7 -7
  32. package/dist/{neptune-provider-CVtiI39K.js.map → neptune-provider-CXTIUxND.js.map} +1 -1
  33. package/dist/{program-BOR4WbUs.js → program-fQBUrH4s.js} +416 -50
  34. package/dist/program-fQBUrH4s.js.map +1 -0
  35. package/dist/{provider-classes-CwFJ4uJU.js → provider-classes-ZbdmR8mu.js} +1588 -1332
  36. package/dist/provider-classes-ZbdmR8mu.js.map +1 -0
  37. package/dist/{rds-provider-CYCp7gwi.js → rds-provider-DH7JWWZE.js} +10 -10
  38. package/dist/{rds-provider-CYCp7gwi.js.map → rds-provider-DH7JWWZE.js.map} +1 -1
  39. package/dist/{read-replica-DBLr287T.js → read-replica-DPeTyeJe.js} +3 -3
  40. package/dist/{read-replica-DBLr287T.js.map → read-replica-DPeTyeJe.js.map} +1 -1
  41. package/dist/{replacement-rules-DLJ-yZz-.js → replacement-rules-CRiQUpPY.js} +3 -3
  42. package/dist/{replacement-rules-DLJ-yZz-.js.map → replacement-rules-CRiQUpPY.js.map} +1 -1
  43. package/dist/{resource-deadline-j2gItrpv.js → resource-deadline-8W0fpf3B.js} +8 -5
  44. package/dist/{resource-deadline-j2gItrpv.js.map → resource-deadline-8W0fpf3B.js.map} +1 -1
  45. package/dist/{restore-source-guard-BZ5CE9r9.js → restore-source-guard-BFsarBUR.js} +4 -4
  46. package/dist/{restore-source-guard-BZ5CE9r9.js.map → restore-source-guard-BFsarBUR.js.map} +1 -1
  47. package/dist/{run-cli-CWVdMkku.js → run-cli-APX25Mdo.js} +2 -2
  48. package/dist/{run-cli-CWVdMkku.js.map → run-cli-APX25Mdo.js.map} +1 -1
  49. package/dist/{version-D4vZ_aE6.js → version-DiLAo6CH.js} +2 -2
  50. package/dist/{version-D4vZ_aE6.js.map → version-DiLAo6CH.js.map} +1 -1
  51. package/package.json +1 -1
  52. package/dist/deploy-engine-2R2hbP5Y.js.map +0 -1
  53. package/dist/program-BOR4WbUs.js.map +0 -1
  54. package/dist/provider-classes-CwFJ4uJU.js.map +0 -1
@@ -1,19 +1,19 @@
1
- import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, 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, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, 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, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-D4vZ_aE6.js";
2
- import { $ as renderStacksNoLongerSelected, $t as deployOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as STATE_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllStateKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as listAllLockKeys, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as parseStateKey, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as contextOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as LOCK_FILE_SUFFIX, St as realAwsException, T as DockerRunnerError, Tn as describeStateKey, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as commonOptions, _ as probeHostGatewaySupport, _n as parseDuration, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noLocalCustomResourcesOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as cliArgParser, bt as prepareLocalLoopbackForwarder, cn as regionOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stateOptions, dt as activateLocalAwsAndRoleArn, en as destroyOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as useCdkBootstrapAssetsOption, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as allowUnsupportedTypesOption, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as parseAssumeRoleToken, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as noCfnFallbackOption, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as skipFinalSnapshotOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as normalizeStartApiAssumeRole, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as exclusivelyOption, nt as stackMatchesPattern, o as resolveLambdaTarget, on as parseContextOptions, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as effectiveAssumeRoleArn, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as guardStackRegionOptions, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseStackRegion, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as diffUpdatePolicyOptions, tt as selectTargetStack, u as assetPathDirs, un as stackOptions, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as resourceTimeoutOptions, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_KEY_MAX_CODE_POINTS, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as parsePositiveIntegerOption, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as validateResourceTimeouts, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-VU9zHTjW.js";
3
- import { C as readRecordedPrincipals, Dt as isInterruptedWaitError, Et as interruptWatchListenerCount, Ft as resourceTypeShown, G as remedyLogicalId, J as assertRegionMatch, L as VALUE_NOT_SHOWN, Nt as logicalIdShown, Tt as endCommandInterruptScope, Y as isMarkedNotGone, _ as IAM_PRINCIPAL_NAME, an as forceQuitRecoveryClause, bt as isAwsCliLiteral, cn as formatLockOwner, dn as CUSTOM_RESOURCE_RESPONSE_PREFIX, fn as DEFAULT_STATE_PREFIX, gn as injectiveKey, hn as withPasteableAwsProfile, i as withResourceDeadline, in as buildLockContentionMessage, mn as setPasteableAwsProfile, nn as UNREPRODUCIBLE_LOCK_CLAUSE, on as formatLockExpiry, pn as setPasteableAwsCaBundle, pt as runDeleteAttempt, q as RESOURCE_NOT_FOUND, rn as buildForceUnlockCommand, sn as formatLockOperation, v as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, vn as producerCoordinateKey, wt as beginCommandInterruptScope, yn as producerRecordKey } from "./resource-deadline-j2gItrpv.js";
1
+ import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, 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, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, 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, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-DiLAo6CH.js";
2
+ import { $ as renderStacksNoLongerSelected, $t as deployOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as STATE_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllStateKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as listAllLockKeys, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as parseStateKey, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as contextOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as LOCK_FILE_SUFFIX, St as realAwsException, T as DockerRunnerError, Tn as describeStateKey, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as commonOptions, _ as probeHostGatewaySupport, _n as parseDuration, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noLocalCustomResourcesOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as cliArgParser, bt as prepareLocalLoopbackForwarder, cn as regionOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stateOptions, dt as activateLocalAwsAndRoleArn, en as destroyOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as useCdkBootstrapAssetsOption, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as allowUnsupportedTypesOption, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as parseAssumeRoleToken, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as noCfnFallbackOption, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as skipFinalSnapshotOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as normalizeStartApiAssumeRole, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as exclusivelyOption, nt as stackMatchesPattern, o as resolveLambdaTarget, on as parseContextOptions, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as effectiveAssumeRoleArn, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as guardStackRegionOptions, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseStackRegion, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as diffUpdatePolicyOptions, tt as selectTargetStack, u as assetPathDirs, un as stackOptions, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as resourceTimeoutOptions, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_KEY_MAX_CODE_POINTS, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as parsePositiveIntegerOption, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as validateResourceTimeouts, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-B9r5-bNi.js";
3
+ import { C as readRecordedPrincipals, Dt as interruptWatchListenerCount, Et as endCommandInterruptScope, G as remedyLogicalId, It as resourceTypeShown, J as RESOURCE_NOT_FOUND, L as VALUE_NOT_SHOWN, Ot as isInterruptedWaitError, Pt as logicalIdShown, Tt as beginCommandInterruptScope, X as isMarkedNotGone, Y as assertRegionMatch, _ as IAM_PRINCIPAL_NAME, _n as injectiveKey, an as buildLockContentionMessage, bn as producerRecordKey, cn as formatLockOperation, fn as CUSTOM_RESOURCE_RESPONSE_PREFIX, gn as withPasteableAwsProfile, hn as setPasteableAwsProfile, i as withResourceDeadline, in as buildForceUnlockCommand, ln as formatLockOwner, mn as setPasteableAwsCaBundle, mt as runDeleteAttempt, on as forceQuitRecoveryClause, pn as DEFAULT_STATE_PREFIX, q as DriftReadRefusedError, rn as UNREPRODUCIBLE_LOCK_CLAUSE, sn as formatLockExpiry, v as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, xt as isAwsCliLiteral, yn as producerCoordinateKey } from "./resource-deadline-8W0fpf3B.js";
4
4
  import { a as runWithStackAwsClients, i as resetAwsClients, l as s3ClientDefaults, o as setAwsClients, s as resolveS3ClientDefaults, t as AwsClients, u as setS3ClientDefaultsDebugLog } from "./aws-clients-DOkPjjAW.js";
5
- import { $ as withStackScope, B as generateResourceName, E as coerceCfnBoolean, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-C4kIC51Z.js";
6
- import { A as stripControlChars, B as retryClassificationText, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, ct as SynthesisError, et as CdkdError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, n as ambientCredentialConfig, o as formatError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, rt as LocalInvokeBuildError$1, s as handleError, st as StateError, t as ambientClientDefaults, tt as DeployCancelledError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isTransientServerError } from "./ambient-client-defaults-BN4tRwp9.js";
5
+ import { $ as withStackScope, B as generateResourceName, E as coerceCfnBoolean, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-D2Z2OHGQ.js";
6
+ import { A as stripControlChars, B as retryClassificationText, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, ct as SynthesisError, et as CdkdError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, n as ambientCredentialConfig, o as formatError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, rt as LocalInvokeBuildError$1, s as handleError, st as StateError, t as ambientClientDefaults, tt as DeployCancelledError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isTransientServerError } from "./ambient-client-defaults-sV7_Dag9.js";
7
7
  import { a as getAssumedRoleCredentials, c as setAssumedRoleCredentials, h as formatAuthority, l as setAwsEndpointOverrideSource, m as runInStackAwsScope, n as awsClientDefaults, r as awsEndpointOverrideActive, s as runWithRealAws } from "./aws-client-defaults-DAebi99J.js";
8
- import { $ as legacyPlanAssetCount, A as getLegacyStateBucketName, B as resolveUseCdkBootstrapAssets, C as getDockerCmd, D as Synthesizer, E as abortInFlightMultipartUploads, F as resolveSkipPrefix, G as MIGRATE_TMP_PREFIX, H as warnDeprecatedNoPrefixCliFlag, I as resolveStateBucketWithDefault, J as refuseFailedLookups, K as findLargeInlineResources, L as resolveStateBucketWithDefaultAndSource, M as resolveApp, N as resolveAutoAssetStorage, O as synthesisStatusMessage, P as resolveCaptureObservedState, Q as createLegacyAssetParameterBinder, R as resolveStateBucketWithSource, S as formatDockerLoginError, T as runDockerStreaming, U as CFN_TEMPLATE_BODY_LIMIT, V as stateBucketExistenceConfirmed, W as CFN_TEMPLATE_URL_LIMIT, X as StageLoadError, Y as AssemblyReader, Z as bindLegacyStackAssetParameters, _ as finchSecretArgvRefusal, a as isLockInfoExpired, b as isDockerClientEnvKey, c as buildDockerImage, d as describeDockerExecFailure, et as predictedAutoCreatedAssetMode, f as describeDockerFailure, g as dockerSpawnEnvWithSensitive, h as redactDockerArgvValues, i as LockManager, it as setChildProcessAwsEnv, j as loadCdkJson, k as getDefaultStateBucketName, l as resolveDockerContextDirectory, m as redactedDockerCause, nt as CdkToolkitBucketMissingError, o as AssetPublisher, p as redactedCause, q as uploadCfnTemplate, r as DagBuilder, rt as processStackMessages, s as WorkGraph, t as DiffCalculator, tt as prepareLegacyStackAssets, v as partitionSensitiveEnv, w as runDockerForeground, x as isMalformedEnvKey, y as warnFinchArgvExposure, z as resolveUpdatePolicy } from "./diff-calculator-CIuzHmBn.js";
9
- import { $a as IntrinsicFunctionResolver, $i as secretNamedRecordNeedles, $n as canonicalizeIpProtocolValue, $o as isImpossibleEmptyStoredAttribute, $r as namesAnyDeclaredParameter, $s as refuseMalformedResourceEntriesForDeploy, $t as displacedPhysicalIdShown, A as recordedProtectionEvidence, Aa as isCustomResourceType$1, Ac as STATE_REGION_DIVERGED, Ai as supersededHolderOf, An as findDestructiveChanges, Ar as computeImplicitDeleteEdges, As as maskedInputProof, Ba as withCustomResourceStack, Bc as JSON_LISTING_HOLE_VALUE, Bi as noEchoComparisonForTemplate, Bn as differingRemedy, Bo as lacksRecordedRefArn, Br as segmentCleanupOptions, Bs as refuseMalformedOrphanRecords, Bt as sameMove, C as pendingMovesOutOf, Ca as wouldReturnToSdkProvider, Cc as malformedLocalOutputsWarning, Ci as withStackRecords, Cn as NOECHO_MAC_KEY_ALIAS, Co as envCredentialsAreAssumedRole, Cr as isJournaledOrphan, Cs as getSettledWriteOnlyPropertyPaths, Cu as renderAssemblyPathEscape, D as findServiceTokenRefusals, Dc as refuseMalformedOutputs, Di as isSupersededResourceRecord, Dl as renderNestedTemplateTreeDefect, Dn as noEchoMacVerdict, Do as regionLessSecretName, Dr as recordUnderIdIsNotOwn, Ds as maskedPropertyFingerprintsOf, E as deferredServiceTokenWarning, Ea as customResourceResponseExpirationWarning, Ei as holdsSupersededResources, El as listNestedTemplateRows, En as noEchoMacParametersOf, Eo as producerRegionsFromState, Er as recheckFailedPlan, Eu as resolveBucketRegion, F as readProtection, Fa as customResourcesFailedWithoutApp, Fc as refuseMalformedResourcesForDeploy, Fi as gray, Fn as rollbackOrphanIds, Fo as parameterTypeMayLoseSecretIdentity, Fr as findNestedStackTypeChanges, Fs as isReadableOrphanRecord, Ft as readRefactorMarker, Ga as UNSPECIFIED_SKIP_REASON, Gc as displayLogicalId, Gi as completedReplayEntries, Gn as propertiesChangedReason, Go as keepHeldTokenProvenance, Gr as nameScopeOf, Gs as unreadableOrphanRecords, H as readStreamPolicy, Ha as CloudControlProvider, Hc as withheldAccountClause, Hi as noEchoParameterNamesOf, Hn as looselyEqual, Hr as orphanNeedsIdentity, Hs as refuseMalformedOrphansForOrphan, Ht as macWriteOnlyKeys, Ia as customResourcesRunWithoutApp, Ic as refuseMalformedResourcesForDestroy, Ii as green, In as withMovedTo, Io as AWS_NO_VALUE, Is as malformedOrphanRecordsRefusalMessage, It as readRefactorMarkerOnce, Ja as deleteSkipReason, Jc as findActionableSdkUnwired, Ji as namingSecretsWithRecordedNoEcho, Jl as getDockerImageBySourceHash, Jr as retiredNameGenerationsLeaving, Js as malformedLocalResourcesWarning, Ka as deleteIndeterminateGuards, Kc as hasReadableOutputs, Ki as journaledOrphanPrintingBag, Kl as rewriteTemplateAssetReferences, Kn as proposeRenames, Kr as retiredAfterRollback, Ks as isReadableResourceEntry, La as localCustomResourceCommand, Lc as refuseMalformedResourcesForExport, Li as red, Ll as buildAssetRedirectMap, Ln as changedReferenceInDiff, Lo as cfnRefValueFromPhysicalId, Ls as malformedOrphanRecordsWarning, Lt as refactorMarkerMovesOf, M as PROTECTION_PROPERTY_BY_TYPE, Ma as withPrintingSecrets, Mc as malformedRenderedContainersWarning, Mi as withoutSuperseded, Ml as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Mn as findRefactorHints, Mr as readsRegeneratingSecret, Ms as declaresNoEcho, N as isProtectionValueActive, Na as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Nc as malformedResourcesWarning, Ni as bold, Nn as hintSidesOf, No as coerceParameterTypedValue, Nr as resolveReplacementOldType, Ns as maskedPropertyFingerprint, Nt as keptForRetainedRecord, O as serviceTokenBlockingReason, Oa as TemplateNoEchoReresolver, Oc as refuseMalformedOutputsForDestroy, Oi as supersededAfterRollback, Ol as templateIdentity, On as noEchoValueMacsOf, Or as replacementNeverSwapped, P as perType, Pc as malformedStateRefusalMessage, Pi as cyan, Pl as decodeListingKey, Pn as movedToHint, Po as isUnboundTemplateParameter, Pr as withPreviousPolicies, Ps as deployRefusesOrphanRowsReason, Pt as recordRetainedForReadoption, Qo as getAccountInfo, Qr as computeParameterTaint, Qs as refuseMalformedResourceEntries, Qt as displacedOpClause, Rc as refuseMalformedState, Ri as yellow, Rl as createAssetRedirectResolver, Rn as changedReferencePath, Ro as isStalePlaceholderArnAttribute, Rs as malformedOrphanRowsKeptWarning, Rt as refactorMarkerRefusalMessage, S as hasPendingMovesOut, Sa as isCustomResource, Sc as malformedExportSourceWarning, Sn as crossStackReadsForPartialSave, So as callerEnvCredentials, Sr as demoteSupersededOrphans, T as refusePendingMovesOut, Ta as applyCustomResourceResponseExpiration, Tc as malformedOutputsWarning, Ti as deleteSupersededEntry, Tl as isAbsoluteAssetPath, Tn as noEchoMacBinding, To as classifyReplaySecretRegion, Tr as planFailedOps, Ts as tryGetTopLevelWriteOnlyProperties, Uc as STATE_RESOURCES_MALFORMED, Ui as withAttemptedItemsMasked, Ul as loadPublishableAssetManifest, Un as mappingPairs, Ur as nameGenerationCarriedFrom, Us as repairMalformedOrphanRecordsForReadOnly, Ut as readsOnlyNoEchoParameters, Vc as accountArgs, Vi as noEchoExactEchoLeavesOf, Vn as isPairableType, Vo as lacksRecordedTableArn, Vr as removeProtectionTypeList, Vs as refuseMalformedOrphanRecordsForDestroy, Vt as updateRefactorMarker, Wa as RollbackInlinePolicyWriters, Wc as UNREADABLE_RESOURCES_MAP_ROW, Wi as createReadOnlyAttributeHealerFactory, Wn as parseMappingFile, Wr as nameGenerationHighWaterOf, Ws as unpreviewableOrphanRecords, Wt as formatResourceLine, Xa as getReadOnlyPropertyPaths, Xi as secretNamePrintingBag, Xs as malformedScrubResourceEntriesRefusalMessage, Xt as resolvePendingCloudControlRequests, Yc as findHandledUnwrittenCreateOnly, Yi as orphanRecordsPrintingBag, Yn as stripSiblingOwnedSgRules, Yo as recordedReferenceRegions, Yr as withNameGenerationReached, Ys as malformedResourceEntriesWarning, Yt as pendingRequestCount, Za as isWaitAbandonedError, Zc as unwrittenCreateOnlyReplacement, Zi as secretNamePrintingBags, Zr as inheritProducerRegions, Zs as refuseMalformedResourceAttributesForOrphan, Zt as NESTED_PENDING_PARENT_REASON, _ as conditionFingerprint, _c as malformedOrphansWarning, _i as DEFAULT_RESOURCE_TIMEOUT_MS, _l as isNotImplemented, _n as makeForeignHolderScan, _o as isIamRoleArn, _s as renderStatefulReason, _u as ownValue, a as scanActiveConsumers, aa as ccRoutedFinalSnapshotError, ac as unreadableResourceEntries, ai as secretBearing, al as S3StateBackend, an as revertedNestedRowIds, ar as settleUnsettledPrevious, au as getBootstrapMarkerKey, b as readRecordedConditionVerdicts, ba as ProviderRegistry, bc as repairMalformedOrphansForReadOnly, bl as isSecretValuedAttribute, bn as DeploymentEventsReader, bo as AWS_CREDENTIAL_ENV_KEYS, br as planRollback, bu as describeFileReadFailure, c as nestedSsmNameDeferredNote, ca as isFinalSnapshotError, ci as carriedExportAliasExposure, cl as readOnlyStateVersionOf, cn as getCurrentNestedStackContext, co as secretSegmentsOfState, cr as equalModuloMarkedMask, cu as validateAssetBucketName, d as slashedSsmNameHealAdoptedNote, da as createPreDeleteFinalSnapshot, dc as refuseMalformedResourcePropertiesForExport, di as isWholeDynamicReferenceValue, dl as rebuildClientForBucketRegion, dn as dropFailedCommands, do as producerLookupOver, dr as updatePartialMessage, ds as findReplacedReadersOfRecreateTargets, ea as stateSecretNameNeedles, ec as refuseMalformedResourceEntriesForDestroy, ei as reachableDivergentParameters, en as dropSettledNestedJournals, eo as isSelectOutOfBounds, er as replayFailedOperations, es as carriesFetchableDynamicReference, eu as AssetModeResolver, f as slashedSsmNameHealNote, fa as buildFinalSnapshotIdentifier, fc as refuseMalformedResourcePropertiesForOrphan, fi as noEchoParameterValueSeed, fl as CrossPrefixReadError, fn as dropFailedHint, fo as refuseUnreadableCdkCrossAccountRefs, fr as updatePartialReason, g as makeCanonicalizePropertiesFn, ga as stripSiblingOwnedMembers, gc as malformedOrphansRefusalMessage, gi as bindingSkippedOutputs, gl as isAccessDenied, gn as sameJournaledOrphans, go as explicitRoleArnOrThrow, gr as ledgerForStack, gs as isStatefulRecreateTargetSync, gu as nullPrototypeRecord, h as inheritedProvenanceForChildDiff, hc as hasReadableOrphans, hi as isExportAliasCollision, hl as crossPrefixDeniedWarning, hn as loadJournaledOrphans, ho as assertSendableRoleArn, hs as isStatefulRecreateTargetForReplace, hu as hasPlainPrototype, i as mergeNoChangeOutputs, ia as PRE_DELETE_SNAPSHOT_TYPES, ic as repairMalformedResourceEntriesForReadOnly, ii as exportAliasCollisionScrubWarning, il as TemplateParser, ir as recordAfterRollbackUpdate, is as withSharedDrainBudget, iu as isCrossRegionRedirect, j as recordedProtectionNote, jc as refuseDivergentRecordRegionForDestroy, ji as supersededResourcesOf, jl as ssmResolvedValueType, jn as formatDestructiveChange, jr as attemptUsesCompletedCreate, k as diffSecurity, ka as readsNoEchoDeleteValues, kc as repairMalformedOutputsForReadOnly, ki as supersededHeldByOtherTypeWarning, kn as constructPathOf$1, kr as IMPLICIT_DELETE_DEPENDENCIES, ks as parameterInputsFor, l as nestedSsmNameRowNote, la as refusesFinalSnapshot, lc as refuseMalformedResourcePropertiesForDestroy, li as exportNameNoEchoParameters, ll as hasReasonlessBaselineRefusal, ln as withNestedStackContext, lo as withSecretPhysicalIdsMaskedInState, lr as equalModuloMask, lu as validateContainerRepoName, m as crossStackOutputProvenanceSource, mc as UNREADABLE_ORPHANS_CONTAINER_ROW, mi as collectPublishedOutputNames, ml as applyCrossPrefixScan, mn as journaledOrphanLines, mo as assertFlagRoleArn, mr as replacementCreateRoutesToCloudControl, ms as MULTI_REGION_RECREATE_BLOCKED_TYPES, mu as hasOwnKey, n as isSecretBearingReferenceString, na as extractDeploymentEventError, nc as refuseMalformedResourceEntriesForImportSave, ni as WITHHELD_NAME_DISPLAY, nl as hasNoCloudControlHandlers, nn as nestedChildStackName$1, no as poisonRenderedSpellingsCollidingIn, nr as DELETED_RESOURCE_REMEDY, ns as carriesDynamicReference, nu as buildDenyExternalAccessPolicy, o as inRunStackKey, oa as ccRoutedInstanceTakesNoSnapshot, oc as malformedDriftResourcePropertiesWarning, oi as secretBearingStateKeyWarning, ol as splitImportedOps, on as withNestedRevertRun, or as withUnprovenUnsettled, os as INTRINSIC_KEYS, ou as parseBootstrapMarker, p as slashedSsmNameHealPendingNote, pc as repairMalformedResourcePropertiesForReadOnly, pi as collectDeclaredOutputNames, pl as CrossPrefixScanCache, pn as isHandledOrphan, po as applyRoleArnIfSet, pr as findUpdatePolicyReplacementRefusals, ps as shownType, pu as defineOwnKey, q as streamPolicyMatchesDeclared, qa as deleteLeftInPlace, qc as hasReadableResources, qi as maskEventTextWithBoundBags, ql as AssetManifestLoader, qn as referencedLogicalIds, qo as recordedOutputReferenceRegions, qr as retiredNameGenerationsAfter, qs as malformedLocalResourceEntriesWarning, r as keptWholeReasonText, ra as ATOMIC_FINAL_SNAPSHOT_TYPES, rc as refuseMalformedResourceEntriesForOrphan, ri as displayTextOrWithheld, rl as PROPERTY_COVERAGE_BY_TYPE, rn as recordDisplacedSkips, ro as stackIdTailOf, rr as buildReadCurrentStateContext, rs as keepsSecretReferenceToken, ru as assertAssetBucketRegion, s as checkNestedSsmNames, sa as effectiveDeletionPolicy, sc as malformedResourcePropertiesWarning, si as secretSafeKeyDisplay, sn as collectNestedChildUnaddressed, so as secretPhysicalIdSegment, sr as calculateResourceDrift, su as readBootstrapMarkerBody, t as DeployEngine, ta as storedSecretNameNeedles, tc as refuseMalformedResourceEntriesForImport, ti as resourcesNamingDeclaredParameter, tl as NO_CC_HANDLERS_REASON, to as isAlwaysLiveAttribute, tr as replayRollback, ts as isNamelessDynamicReferenceError, tu as ensureAssetStorage, u as healSlashedSsmParameterNames, ua as unsupportedFinalSnapshotError, uc as refuseMalformedResourcePropertiesForDrift, ui as exportNameSecretExposure, ul as hasUnverifiableParameterRefusal, un as deleteJournaledOrphans, uo as resolveDynamicReferences, ur as undeclaredEmptyObservedKeys, uu as BOOTSTRAP_MARKER_PREFIX, v as conditionInputsFrom, vc as refuseMalformedOrphans, vi as DEFAULT_RESOURCE_WARN_AFTER_MS, vl as stackInstanceIdOf, vn as makeSiblingClaimReader, vo as parseIamRoleArn, vr as withCreateTokenLedger, w as pendingMovesRefusalMessage, wa as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, wc as malformedOutputsRefusalMessage, wl as findNestedTemplateTreeDefect, wn as createNoEchoValueMacs, wo as classifyRecordedSecretRegion, wr as isReplacementOrphan, ws as getTopLevelKeysHoldingUnreadableCreateOnly, wu as resolveAssemblyPath, x as childTemplateLoader, xa as ccBrokenReason, xc as malformedExportNamesWarning, xi as destroyStackRecordsView, xl as isSensitiveAttributeName, xn as DeploymentEventsStore, xo as applyCallerIdentityCredentials, xr as seedsDeleteFirstGuard, xu as displayAssemblyPath, y as parentSuppliedValues, ya as CC_BROKEN_REASON, yc as refuseMalformedOrphansForDestroy, yi as maskingRetryLogger, yl as withStackInstanceIdWithheld, yn as planOrphanAdoption, yo as sendableAssumeRoleCommand, za as setLocalCustomResourceRuntimeEnabled, zc as repairMalformedResourcesForReadOnly, zi as noEchoAttributeNamesOf, zl as createLazyAssetModeContext, zn as changedReferenceReason, zo as refStateLookupFromResource, zs as previewableOrphanRecords, zt as refuseRefactorMarker } from "./deploy-engine-2R2hbP5Y.js";
8
+ import { $ as legacyPlanAssetCount, A as getLegacyStateBucketName, B as resolveUseCdkBootstrapAssets, C as getDockerCmd, D as Synthesizer, E as abortInFlightMultipartUploads, F as resolveSkipPrefix, G as MIGRATE_TMP_PREFIX, H as warnDeprecatedNoPrefixCliFlag, I as resolveStateBucketWithDefault, J as refuseFailedLookups, K as findLargeInlineResources, L as resolveStateBucketWithDefaultAndSource, M as resolveApp, N as resolveAutoAssetStorage, O as synthesisStatusMessage, P as resolveCaptureObservedState, Q as createLegacyAssetParameterBinder, R as resolveStateBucketWithSource, S as formatDockerLoginError, T as runDockerStreaming, U as CFN_TEMPLATE_BODY_LIMIT, V as stateBucketExistenceConfirmed, W as CFN_TEMPLATE_URL_LIMIT, X as StageLoadError, Y as AssemblyReader, Z as bindLegacyStackAssetParameters, _ as finchSecretArgvRefusal, a as isLockInfoExpired, b as isDockerClientEnvKey, c as buildDockerImage, d as describeDockerExecFailure, et as predictedAutoCreatedAssetMode, f as describeDockerFailure, g as dockerSpawnEnvWithSensitive, h as redactDockerArgvValues, i as LockManager, it as setChildProcessAwsEnv, j as loadCdkJson, k as getDefaultStateBucketName, l as resolveDockerContextDirectory, m as redactedDockerCause, nt as CdkToolkitBucketMissingError, o as AssetPublisher, p as redactedCause, q as uploadCfnTemplate, r as DagBuilder, rt as processStackMessages, s as WorkGraph, t as DiffCalculator, tt as prepareLegacyStackAssets, v as partitionSensitiveEnv, w as runDockerForeground, x as isMalformedEnvKey, y as warnFinchArgvExposure, z as resolveUpdatePolicy } from "./diff-calculator-D6-l89Im.js";
9
+ import { $a as getReadOnlyPropertyPaths, $i as secretNamePrintingBag, $r as reachableDivergentParameters, $s as malformedScrubResourceEntriesRefusalMessage, $t as displacedPhysicalIdShown, A as recordedProtectionEvidence, Ac as refuseMalformedOutputs, Ai as isSupersededResourceRecord, Al as renderNestedTemplateTreeDefect, An as findDestructiveChanges, Ao as regionLessSecretName, Ar as replacementNeverSwapped, As as maskedPropertyFingerprintsOf, Ba as localCustomResourceCommand, Bc as refuseMalformedResourcesForExport, Bi as red, Bl as buildAssetRedirectMap, Bn as differingRemedy, Bo as cfnRefValueFromPhysicalId, Br as removeProtectionTypeList, Bs as malformedOrphanRecordsWarning, Bt as sameMove, C as pendingMovesOutOf, Ca as ProviderRegistry, Cc as repairMalformedOrphansForReadOnly, Cl as isSecretValuedAttribute, Cn as NOECHO_MAC_KEY_ALIAS, Co as AWS_CREDENTIAL_ENV_KEYS, Cr as seedsDeleteFirstGuard, Cu as describeFileReadFailure, D as findServiceTokenRefusals, Da as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, Dc as malformedOutputsRefusalMessage, Di as findNestedStackTypeChanges, Dl as findNestedTemplateTreeDefect, Dn as noEchoMacVerdict, Do as classifyRecordedSecretRegion, Dr as planFailedOps, Ds as getTopLevelKeysHoldingUnreadableCreateOnly, Du as resolveAssemblyPath, E as deferredServiceTokenWarning, Ea as wouldReturnToSdkProvider, Ec as malformedLocalOutputsWarning, Ei as withPreviousPolicies, En as noEchoMacParametersOf, Eo as envCredentialsAreAssumedRole, Er as isReplacementOrphan, Es as getSettledWriteOnlyPropertyPaths, Eu as renderAssemblyPathEscape, F as readProtection, Fa as withPrintingSecrets, Fc as malformedRenderedContainersWarning, Fi as withoutSuperseded, Fl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Fn as rollbackOrphanIds, Fs as declaresNoEcho, Ft as readRefactorMarker, Ga as CloudControlProvider, Gc as withheldAccountClause, Gi as noEchoParameterNamesOf, Gn as propertiesChangedReason, Gr as retiredAfterRollback, Gs as refuseMalformedOrphansForOrphan, H as readStreamPolicy, Ha as setLocalCustomResourceRuntimeEnabled, Hc as repairMalformedResourcesForReadOnly, Hi as noEchoAttributeNamesOf, Hl as createLazyAssetModeContext, Hn as looselyEqual, Ho as refStateLookupFromResource, Hr as nameGenerationCarriedFrom, Hs as previewableOrphanRecords, Ht as macWriteOnlyKeys, Ia as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Ic as malformedResourcesWarning, Ii as bold, In as withMovedTo, Io as coerceParameterTypedValue, Is as maskedPropertyFingerprint, It as readRefactorMarkerOnce, Ja as UNSPECIFIED_SKIP_REASON, Jc as displayLogicalId, Ji as completedReplayEntries, Jn as siblingOwnedRevertDesired, Jo as keepHeldTokenProvenance, Jr as withNameGenerationReached, Js as unreadableOrphanRecords, Kc as STATE_RESOURCES_MALFORMED, Ki as withAttemptedItemsMasked, Kl as loadPublishableAssetManifest, Kn as proposeRenames, Kr as retiredNameGenerationsAfter, Ks as repairMalformedOrphanRecordsForReadOnly, Lc as malformedStateRefusalMessage, Li as cyan, Ll as decodeListingKey, Ln as changedReferenceInDiff, Lo as isUnboundTemplateParameter, Ls as deployRefusesOrphanRowsReason, Lt as refactorMarkerMovesOf, M as PROTECTION_PROPERTY_BY_TYPE, Ma as readsNoEchoDeleteValues, Mc as repairMalformedOutputsForReadOnly, Mi as supersededHeldByOtherTypeWarning, Mn as findRefactorHints, Mr as computeImplicitDeleteEdges, Ms as parameterInputsFor, N as isProtectionValueActive, Na as isCustomResourceType$1, Nc as STATE_REGION_DIVERGED, Ni as supersededHolderOf, Nn as hintSidesOf, Nr as attemptUsesCompletedCreate, Ns as maskedInputProof, Nt as keptForRetainedRecord, O as serviceTokenBlockingReason, Oa as applyCustomResourceResponseExpiration, Oc as malformedOutputsWarning, Oi as deleteSupersededEntry, Ol as isAbsoluteAssetPath, On as noEchoValueMacsOf, Oo as classifyReplaySecretRegion, Or as recheckFailedPlan, Os as tryGetTopLevelWriteOnlyProperties, P as perType, Pc as refuseDivergentRecordRegionForDestroy, Pi as supersededResourcesOf, Pl as ssmResolvedValueType, Pn as movedToHint, Pr as readsRegeneratingSecret, Pt as recordRetainedForReadoption, Qc as findHandledUnwrittenCreateOnly, Qi as orphanRecordsPrintingBag, Qo as recordedReferenceRegions, Qr as namesAnyDeclaredParameter, Qs as malformedResourceEntriesWarning, Qt as displacedOpClause, Ra as customResourcesFailedWithoutApp, Rc as refuseMalformedResourcesForDeploy, Ri as gray, Rn as changedReferencePath, Ro as parameterTypeMayLoseSecretIdentity, Rs as isReadableOrphanRecord, Rt as refactorMarkerRefusalMessage, S as hasPendingMovesOut, Sa as CC_BROKEN_REASON, Sc as refuseMalformedOrphansForDestroy, Si as withStackRecords, Sl as withStackInstanceIdWithheld, Sn as crossStackReadsForPartialSave, So as sendableAssumeRoleCommand, Sr as planRollback, T as refusePendingMovesOut, Ta as isCustomResource, Tc as malformedExportSourceWarning, Ti as resolveReplacementOldType, Tn as noEchoMacBinding, To as callerEnvCredentials, Tr as isJournaledOrphan, Ua as withCustomResourceStack, Uc as JSON_LISTING_HOLE_VALUE, Ui as noEchoComparisonForTemplate, Un as mappingPairs, Uo as lacksRecordedRefArn, Ur as nameGenerationHighWaterOf, Us as refuseMalformedOrphanRecords, Ut as readsOnlyNoEchoParameters, Vc as refuseMalformedState, Vi as yellow, Vl as createAssetRedirectResolver, Vn as isPairableType, Vo as isStalePlaceholderArnAttribute, Vr as orphanNeedsIdentity, Vs as malformedOrphanRowsKeptWarning, Vt as updateRefactorMarker, Wc as accountArgs, Wi as noEchoExactEchoLeavesOf, Wn as parseMappingFile, Wo as lacksRecordedTableArn, Wr as nameScopeOf, Ws as refuseMalformedOrphanRecordsForDestroy, Wt as formatResourceLine, Xa as deleteLeftInPlace, Xc as hasReadableResources, Xi as maskEventTextWithBoundBags, Xl as AssetManifestLoader, Xo as recordedOutputReferenceRegions, Xr as inheritProducerRegions, Xs as malformedLocalResourceEntriesWarning, Xt as resolvePendingCloudControlRequests, Ya as deleteIndeterminateGuards, Yc as hasReadableOutputs, Yi as journaledOrphanPrintingBag, Yl as rewriteTemplateAssetReferences, Yn as stripSiblingOwnedParentMembers, Ys as isReadableResourceEntry, Yt as pendingRequestCount, Za as deleteSkipReason, Zc as findActionableSdkUnwired, Zi as namingSecretsWithRecordedNoEcho, Zl as getDockerImageBySourceHash, Zr as computeParameterTaint, Zs as malformedLocalResourcesWarning, Zt as NESTED_PENDING_PARENT_REASON, _ as conditionFingerprint, _c as UNREADABLE_ORPHANS_CONTAINER_ROW, _i as DEFAULT_RESOURCE_WARN_AFTER_MS, _l as applyCrossPrefixScan, _n as makeForeignHolderScan, _o as assertFlagRoleArn, _s as MULTI_REGION_RECREATE_BLOCKED_TYPES, _u as hasOwnKey, a as scanActiveConsumers, aa as extractDeploymentEventError, ac as refuseMalformedResourceEntriesForImportSave, ai as secretBearingStateKeyWarning, al as hasNoCloudControlHandlers, an as revertedNestedRowIds, ao as poisonRenderedSpellingsCollidingIn, ar as recordAfterRollbackUpdate, as as carriesDynamicReference, au as buildDenyExternalAccessPolicy, b as readRecordedConditionVerdicts, bc as malformedOrphansWarning, bi as destroyStackRecordsView, bl as isNotImplemented, bn as DeploymentEventsReader, bo as isIamRoleArn, br as withCreateTokenLedger, bs as renderStatefulReason, bu as ownValue, c as nestedSsmNameDeferredNote, ca as ccRoutedFinalSnapshotError, cc as unreadableResourceEntries, ci as exportNameNoEchoParameters, cl as S3StateBackend, cn as getCurrentNestedStackContext, cr as calculateResourceDrift, cu as getBootstrapMarkerKey, d as slashedSsmNameHealAdoptedNote, da as isFinalSnapshotError, di as noEchoParameterValueSeed, dl as readOnlyStateVersionOf, dn as dropFailedCommands, do as secretSegmentsOfState, dr as undeclaredEmptyObservedKeys, du as validateAssetBucketName, ea as secretNamePrintingBags, ec as refuseMalformedResourceAttributesForOrphan, ei as resourcesNamingDeclaredParameter, el as unwrittenCreateOnlyReplacement, en as dropSettledNestedJournals, eo as isWaitAbandonedError, er as canonicalizeIpProtocolValue, f as slashedSsmNameHealNote, fa as refusesFinalSnapshot, fc as refuseMalformedResourcePropertiesForDestroy, fi as collectDeclaredOutputNames, fl as hasReasonlessBaselineRefusal, fn as dropFailedHint, fo as withSecretPhysicalIdsMaskedInState, fr as verbatimEchoDriftKeys, fu as validateContainerRepoName, g as makeCanonicalizePropertiesFn, gc as repairMalformedResourcePropertiesForReadOnly, gi as DEFAULT_RESOURCE_TIMEOUT_MS, gl as CrossPrefixScanCache, gn as sameJournaledOrphans, go as applyRoleArnIfSet, gr as replacementCreateRoutesToCloudControl, gs as shownType, gu as defineOwnKey, h as inheritedProvenanceForChildDiff, ha as buildFinalSnapshotIdentifier, hc as refuseMalformedResourcePropertiesForOrphan, hi as bindingSkippedOutputs, hl as CrossPrefixReadError, hn as loadJournaledOrphans, ho as refuseUnreadableCdkCrossAccountRefs, hr as findUpdatePolicyReplacementRefusals, i as mergeNoChangeOutputs, ia as storedSecretNameNeedles, ic as refuseMalformedResourceEntriesForImport, ii as secretBearing, il as NO_CC_HANDLERS_REASON, io as isAlwaysLiveAttribute, ir as buildReadCurrentStateContext, is as isNamelessDynamicReferenceError, iu as ensureAssetStorage, j as recordedProtectionNote, ja as TemplateNoEchoReresolver, jc as refuseMalformedOutputsForDestroy, ji as supersededAfterRollback, jl as templateIdentity, jn as formatDestructiveChange, jr as IMPLICIT_DELETE_DEPENDENCIES, k as diffSecurity, ka as customResourceResponseExpirationWarning, ki as holdsSupersededResources, kl as listNestedTemplateRows, kn as constructPathOf$1, ko as producerRegionsFromState, kr as recordUnderIdIsNotOwn, ku as resolveBucketRegion, l as nestedSsmNameRowNote, la as ccRoutedInstanceTakesNoSnapshot, lc as malformedDriftResourcePropertiesWarning, li as exportNameSecretExposure, ll as splitImportedOps, ln as withNestedStackContext, lr as equalModuloMarkedMask, ls as INTRINSIC_KEYS, lu as parseBootstrapMarker, m as crossStackOutputProvenanceSource, ma as createPreDeleteFinalSnapshot, mc as refuseMalformedResourcePropertiesForExport, mi as isExportAliasCollision, ml as rebuildClientForBucketRegion, mn as journaledOrphanLines, mo as producerLookupOver, mr as updatePartialReason, ms as findReplacedReadersOfRecreateTargets, n as isSecretBearingReferenceString, na as secretNamedRecordNeedles, nc as refuseMalformedResourceEntriesForDeploy, ni as displayTextOrWithheld, nn as nestedChildStackName$1, no as IntrinsicFunctionResolver, nr as replayRollback, ns as isImpossibleEmptyStoredAttribute, o as inRunStackKey, oa as ATOMIC_FINAL_SNAPSHOT_TYPES, oc as refuseMalformedResourceEntriesForOrphan, oi as secretSafeKeyDisplay, ol as PROPERTY_COVERAGE_BY_TYPE, on as withNestedRevertRun, oo as stackIdTailOf, or as settleUnsettledPrevious, os as keepsSecretReferenceToken, ou as assertAssetBucketRegion, p as slashedSsmNameHealPendingNote, pa as unsupportedFinalSnapshotError, pc as refuseMalformedResourcePropertiesForDrift, pi as collectPublishedOutputNames, pl as hasUnverifiableParameterRefusal, pn as isHandledOrphan, po as resolveDynamicReferences, pr as updatePartialMessage, pu as BOOTSTRAP_MARKER_PREFIX, q as streamPolicyMatchesDeclared, qa as RollbackInlinePolicyWriters, qc as UNREADABLE_RESOURCES_MAP_ROW, qi as createReadOnlyAttributeHealerFactory, qn as referencedLogicalIds, qr as retiredNameGenerationsLeaving, qs as unpreviewableOrphanRecords, r as keptWholeReasonText, ra as stateSecretNameNeedles, rc as refuseMalformedResourceEntriesForDestroy, ri as exportAliasCollisionScrubWarning, rn as recordDisplacedSkips, ro as isSelectOutOfBounds, rr as DELETED_RESOURCE_REMEDY, rs as carriesFetchableDynamicReference, ru as AssetModeResolver, s as checkNestedSsmNames, sa as PRE_DELETE_SNAPSHOT_TYPES, sc as repairMalformedResourceEntriesForReadOnly, si as carriedExportAliasExposure, sl as TemplateParser, sn as collectNestedChildUnaddressed, sr as withUnprovenUnsettled, ss as withSharedDrainBudget, su as isCrossRegionRedirect, t as DeployEngine, tc as refuseMalformedResourceEntries, ti as WITHHELD_NAME_DISPLAY, tr as replayFailedOperations, ts as getAccountInfo, u as healSlashedSsmParameterNames, ua as effectiveDeletionPolicy, uc as malformedResourcePropertiesWarning, ui as isWholeDynamicReferenceValue, un as deleteJournaledOrphans, uo as secretPhysicalIdSegment, ur as equalModuloMask, uu as readBootstrapMarkerBody, v as conditionInputsFrom, vc as hasReadableOrphans, vi as maskingRetryLogger, vl as crossPrefixDeniedWarning, vn as makeSiblingClaimReader, vo as assertSendableRoleArn, vr as ledgerForStack, vs as isStatefulRecreateTargetForReplace, vu as hasPlainPrototype, w as pendingMovesRefusalMessage, wa as ccBrokenReason, wc as malformedExportNamesWarning, wi as snapshotSegmentSurvivors, wl as isSensitiveAttributeName, wn as createNoEchoValueMacs, wo as applyCallerIdentityCredentials, wr as demoteSupersededOrphans, wu as displayAssemblyPath, x as childTemplateLoader, xc as refuseMalformedOrphans, xl as stackInstanceIdOf, xn as DeploymentEventsStore, xo as parseIamRoleArn, y as parentSuppliedValues, yc as malformedOrphansRefusalMessage, yl as isAccessDenied, yn as planOrphanAdoption, yo as explicitRoleArnOrThrow, ys as isStatefulRecreateTargetSync, yu as nullPrototypeRecord, za as customResourcesRunWithoutApp, zc as refuseMalformedResourcesForDestroy, zi as green, zn as changedReferenceReason, zo as AWS_NO_VALUE, zr as segmentCleanupOptions, zs as malformedOrphanRecordsRefusalMessage, zt as refuseRefactorMarker } from "./deploy-engine-DD0u1ctj.js";
10
10
  import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
11
- import { A as withRetry, C as templateResourceTypes, G as describeJsonParseFailure, H as renderPhaseTimings, R as PhaseClock, S as prefetchCreateOnlyPropertyPaths, T as describeTypeWithThrottleRetry, U as timePhase, Y as utf8ByteLength, b as getCreateOnlyPropertyPaths, c as setResolvedResourceTimeouts, q as parseFailureDebugDetail } from "./ec2-termination-protection-DIdBlUyw.js";
12
- import { t as expectedOwnerParam } from "./expected-bucket-owner-Cm4q0WEG.js";
13
- import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-xsYgmgVh.js";
14
- import { An as recordNoEchoAttributeValues, Bt as identityKeyFor, D as recordedNoEchoValuesOf, Fn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Ft as keepTemplateLiteralLeaves, Ln as isSingleDynamicReferenceToken, Lt as spelledKeysOf, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, On as recordMaskOnlyValue, Ot as scrubResourceRecord, Pt as isUncertifiedBaselineMaskPosition, Rt as pathCrossesDottedKey, T as readsNoEchoSource, Tn as provenPublicValue, W as redactForState, Yt as inheritNestedStackParameterAssociations, _t as maskSecretsInText, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, ct as recordLogOnlyParameterValue, dt as shareLogOnlyValues, et as carryLogOnlyValues, f as isMarkedCoordinate, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gt as maskSecretsInError, h as maskWholeValue, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, jn as recordNoEchoParameterFreshValue, k as valueAtCoordinate, kn as recordMaskOnlyValuesIn, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, sn as physicalNameCopiesOf, st as printingCorpusOf, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, y as noEchoLeavesOf } from "./replacement-rules-DLJ-yZz-.js";
15
- import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-BZ5CE9r9.js";
16
- import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-DD3r4tU6.js";
11
+ import { A as withRetry, C as templateResourceTypes, G as describeJsonParseFailure, H as renderPhaseTimings, R as PhaseClock, S as prefetchCreateOnlyPropertyPaths, T as describeTypeWithThrottleRetry, U as timePhase, Y as utf8ByteLength, b as getCreateOnlyPropertyPaths, c as setResolvedResourceTimeouts, q as parseFailureDebugDetail } from "./ec2-termination-protection-CrZB0URU.js";
12
+ import { t as expectedOwnerParam } from "./expected-bucket-owner-DztbSJ4h.js";
13
+ import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-nZR1YxYW.js";
14
+ import { An as recordNoEchoAttributeValues, Bt as identityKeyFor, D as recordedNoEchoValuesOf, Fn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Ft as keepTemplateLiteralLeaves, Ln as isSingleDynamicReferenceToken, Lt as spelledKeysOf, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, On as recordMaskOnlyValue, Ot as scrubResourceRecord, Pt as isUncertifiedBaselineMaskPosition, Rt as pathCrossesDottedKey, T as readsNoEchoSource, Tn as provenPublicValue, W as redactForState, Yt as inheritNestedStackParameterAssociations, _t as maskSecretsInText, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, ct as recordLogOnlyParameterValue, dt as shareLogOnlyValues, et as carryLogOnlyValues, f as isMarkedCoordinate, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gt as maskSecretsInError, h as maskWholeValue, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, jn as recordNoEchoParameterFreshValue, k as valueAtCoordinate, kn as recordMaskOnlyValuesIn, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, sn as physicalNameCopiesOf, st as printingCorpusOf, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, y as noEchoLeavesOf } from "./replacement-rules-CRiQUpPY.js";
15
+ import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-BFsarBUR.js";
16
+ import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-97_fu_HH.js";
17
17
  import { t as cdkdCacheHome } from "./cache-home-BVYKj3de.js";
18
18
  import { randomBytes, randomUUID } from "node:crypto";
19
19
  import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
@@ -604,7 +604,7 @@ async function configureStateBucket(args) {
604
604
  }
605
605
 
606
606
  // src/cli/commands/bootstrap-noecho-mac-key.ts
607
- function errorName(error) {
607
+ function errorName$1(error) {
608
608
  const raw = error?.name;
609
609
  return typeof raw === "string" && /^[A-Za-z][A-Za-z0-9]{0,63}$/.test(raw) ? raw : "Error";
610
610
  }
@@ -656,7 +656,7 @@ async function ensureNoEchoMacKey(args) {
656
656
  return "skipped";
657
657
  }
658
658
  const failed = (step, error) => {
659
- warn(`Could not set up the NoEcho value MAC key ${NOECHO_MAC_KEY_ALIAS} in ${region} (${errorName(error)} from ${step}). Deploys keep working: a write-only property a NoEcho parameter feeds is re-sent on every deploy. Re-run ${proseQuoted(cdkdRemedy("cdkd bootstrap"))} with kms:CreateKey, kms:PutKeyPolicy, kms:CreateAlias and kms:DescribeKey to create it.`);
659
+ warn(`Could not set up the NoEcho value MAC key ${NOECHO_MAC_KEY_ALIAS} in ${region} (${errorName$1(error)} from ${step}). Deploys keep working: a write-only property a NoEcho parameter feeds is re-sent on every deploy. Re-run ${proseQuoted(cdkdRemedy("cdkd bootstrap"))} with kms:CreateKey, kms:PutKeyPolicy, kms:CreateAlias and kms:DescribeKey to create it.`);
660
660
  return "failed";
661
661
  };
662
662
  try {
@@ -668,7 +668,7 @@ async function ensureNoEchoMacKey(args) {
668
668
  warn(`${NOECHO_MAC_KEY_ALIAS} in ${region} does not name an enabled HMAC_256 key (${meta?.KeySpec ?? "unknown spec"}, ${meta?.KeyState ?? "unknown state"}), so deploys make no NoEcho value MACs. Point the alias at an enabled HMAC_256 key, or delete it and re-run ${proseQuoted(cdkdRemedy("cdkd bootstrap"))}.`);
669
669
  return "failed";
670
670
  } catch (error) {
671
- if (errorName(error) !== "NotFoundException") return failed("kms:DescribeKey", error);
671
+ if (errorName$1(error) !== "NotFoundException") return failed("kms:DescribeKey", error);
672
672
  }
673
673
  let keyId;
674
674
  try {
@@ -692,11 +692,11 @@ async function ensureNoEchoMacKey(args) {
692
692
  TargetKeyId: keyId
693
693
  }));
694
694
  } catch (error) {
695
- const name = errorName(error);
695
+ const name = errorName$1(error);
696
696
  await kms.send(new ScheduleKeyDeletionCommand({
697
697
  KeyId: keyId,
698
698
  PendingWindowInDays: 7
699
- })).catch((retireError) => warn(`Could not schedule the deletion of the unused KMS key ${keyId} in ${region} (${errorName(retireError)}); schedule it by hand: aws kms schedule-key-deletion --key-id ${keyId} --pending-window-in-days 7 --region ${region}`));
699
+ })).catch((retireError) => warn(`Could not schedule the deletion of the unused KMS key ${keyId} in ${region} (${errorName$1(retireError)}); schedule it by hand: aws kms schedule-key-deletion --key-id ${keyId} --pending-window-in-days 7 --region ${region}`));
700
700
  if (name !== "AlreadyExistsException") return failed("kms:CreateAlias", error);
701
701
  try {
702
702
  const won = (await kms.send(new DescribeKeyCommand({ KeyId: NOECHO_MAC_KEY_ALIAS }))).KeyMetadata;
@@ -1541,7 +1541,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
1541
1541
  // src/provisioning/register-providers.ts
1542
1542
  let providerClasses;
1543
1543
  function loadProviderClasses() {
1544
- providerClasses ??= import("./provider-classes-CwFJ4uJU.js");
1544
+ providerClasses ??= import("./provider-classes-ZbdmR8mu.js");
1545
1545
  return providerClasses;
1546
1546
  }
1547
1547
  function registerAllProviders(registry, classes) {
@@ -10210,6 +10210,292 @@ function canonicalizeIpProtocols(baseline, aws, resourceType) {
10210
10210
  };
10211
10211
  }
10212
10212
 
10213
+ // src/provisioning/policy-document-content.ts
10214
+ const MASK = "***";
10215
+ const PERMANENT_CDKD_CODES = /* @__PURE__ */ new Set(["ROLLBACK_SECRET_TOKEN_SCAN_MISMATCH"]);
10216
+ const MARKED_PERMANENT_CODE_PREFIXES = ["INTRINSIC_RESOLUTION_REFUSAL", "ROLLBACK_SECRET_REGION_AMBIGUOUS"];
10217
+ const NOT_FOUND_ERROR_NAMES = /* @__PURE__ */ new Set([
10218
+ "ResourceNotFoundException",
10219
+ "ParameterNotFound",
10220
+ "ParameterVersionNotFound"
10221
+ ]);
10222
+ function holdsUnresolvedValue(document) {
10223
+ let root = document;
10224
+ if (typeof document === "string") try {
10225
+ root = JSON.parse(document);
10226
+ } catch {
10227
+ root = document;
10228
+ }
10229
+ const walk = (v) => {
10230
+ if (typeof v === "string") return v === MASK || v.includes("{{resolve:");
10231
+ if (Array.isArray(v)) return v.some(walk);
10232
+ if (v !== null && typeof v === "object") return Object.values(v).some(walk);
10233
+ return false;
10234
+ };
10235
+ return walk(root);
10236
+ }
10237
+ function isPermanentResolutionError(error) {
10238
+ let current = error;
10239
+ for (let depth = 0; depth < 5 && current != null; depth++) {
10240
+ const e = current;
10241
+ if (typeof e.name === "string" && NOT_FOUND_ERROR_NAMES.has(e.name)) return true;
10242
+ if (typeof e.code === "string") {
10243
+ if (PERMANENT_CDKD_CODES.has(e.code)) return true;
10244
+ const code = e.code;
10245
+ if (MARKED_PERMANENT_CODE_PREFIXES.some((p) => code.startsWith(p)) && isMarkedNonRetryable(current)) return true;
10246
+ }
10247
+ if (typeof e.message === "string" && e.message.startsWith("Dynamic reference: ")) return true;
10248
+ current = e.cause;
10249
+ }
10250
+ return false;
10251
+ }
10252
+ function errorName(error) {
10253
+ const name = error?.name;
10254
+ return typeof name === "string" && /^[\w.-]{1,128}$/.test(name) ? name : "error";
10255
+ }
10256
+ async function attemptedPolicyDocument(recorded, resolve) {
10257
+ let document = recorded;
10258
+ if (resolve) try {
10259
+ document = await resolve();
10260
+ } catch (error) {
10261
+ return isPermanentResolutionError(error) ? {
10262
+ kind: "unusable",
10263
+ why: "a secret it references does not exist or cannot be used"
10264
+ } : {
10265
+ kind: "retry",
10266
+ errorName: errorName(error)
10267
+ };
10268
+ }
10269
+ if (!(typeof document === "string" && document.length > 0 || document !== null && typeof document === "object")) return {
10270
+ kind: "unusable",
10271
+ why: "no policy document it attempted is recorded"
10272
+ };
10273
+ if (holdsUnresolvedValue(document)) return {
10274
+ kind: "unusable",
10275
+ why: "its policy document still holds a secret reference or masked value"
10276
+ };
10277
+ return {
10278
+ kind: "document",
10279
+ document
10280
+ };
10281
+ }
10282
+ const ACCOUNT_ID = /^\d{12}$/;
10283
+ const ACCOUNT_ROOT_ARN = /^arn:[a-z-]+:iam::(\d{12}):root$/;
10284
+ const LIST_KEYS = [
10285
+ "Action",
10286
+ "NotAction",
10287
+ "Resource",
10288
+ "NotResource"
10289
+ ];
10290
+ const PRINCIPAL_KEYS = ["Principal", "NotPrincipal"];
10291
+ function unwrapSingle(value) {
10292
+ return Array.isArray(value) && value.length === 1 ? value[0] : value;
10293
+ }
10294
+ function accountKey(value) {
10295
+ if (typeof value !== "string") return value;
10296
+ if (ACCOUNT_ID.test(value)) return `account:${value}`;
10297
+ const m = ACCOUNT_ROOT_ARN.exec(value);
10298
+ return m ? `account:${m[1]}` : value;
10299
+ }
10300
+ const ANYONE = "anyone:*";
10301
+ function normalizePrincipal(principal) {
10302
+ if (principal === "*") return ANYONE;
10303
+ if (principal === null || typeof principal !== "object" || Array.isArray(principal)) return principal;
10304
+ const keys = Object.keys(principal);
10305
+ if (keys.length === 1 && keys[0] === "AWS" && unwrapSingle(principal["AWS"]) === "*") return ANYONE;
10306
+ const out = {};
10307
+ for (const [key, raw] of Object.entries(principal)) out[key] = unwrapSingle(key === "AWS" ? Array.isArray(raw) ? raw.map(accountKey) : accountKey(raw) : raw);
10308
+ return out;
10309
+ }
10310
+ function normalizeStatement(statement) {
10311
+ if (statement === null || typeof statement !== "object" || Array.isArray(statement)) return statement;
10312
+ const out = { ...statement };
10313
+ for (const key of LIST_KEYS) if (Object.prototype.hasOwnProperty.call(out, key)) out[key] = unwrapSingle(out[key]);
10314
+ for (const key of PRINCIPAL_KEYS) if (Object.prototype.hasOwnProperty.call(out, key)) out[key] = normalizePrincipal(out[key]);
10315
+ return out;
10316
+ }
10317
+ function canonicalJson(value) {
10318
+ const sortKeys = (v) => {
10319
+ if (Array.isArray(v)) return v.map(sortKeys);
10320
+ if (v !== null && typeof v === "object") {
10321
+ const out = Object.create(null);
10322
+ for (const key of Object.keys(v).sort()) out[key] = sortKeys(v[key]);
10323
+ return out;
10324
+ }
10325
+ return v;
10326
+ };
10327
+ return JSON.stringify(sortKeys(value));
10328
+ }
10329
+ function policyContentKey(document) {
10330
+ let value = document;
10331
+ if (typeof document === "string") try {
10332
+ value = JSON.parse(document);
10333
+ } catch {
10334
+ return `raw:${document}`;
10335
+ }
10336
+ if (value !== null && typeof value === "object" && !Array.isArray(value)) {
10337
+ const doc = { ...value };
10338
+ if (Object.prototype.hasOwnProperty.call(doc, "Statement")) doc["Statement"] = (Array.isArray(doc["Statement"]) ? doc["Statement"] : [doc["Statement"]]).map(normalizeStatement);
10339
+ value = doc;
10340
+ }
10341
+ return canonicalJson(value);
10342
+ }
10343
+
10344
+ // src/provisioning/settle-after-own-write.ts
10345
+ const OWN_WRITE_REREAD_DELAYS_MS = [
10346
+ 500,
10347
+ 1e3,
10348
+ 2e3
10349
+ ];
10350
+ async function reReadUntilSettled(read, settled, delaysMs) {
10351
+ let answer = await read();
10352
+ for (const delayMs of delaysMs) {
10353
+ if (settled(answer)) return {
10354
+ answer,
10355
+ settled: true
10356
+ };
10357
+ await new Promise((resolve) => setTimeout(resolve, delayMs));
10358
+ answer = await read();
10359
+ }
10360
+ return {
10361
+ answer,
10362
+ settled: settled(answer)
10363
+ };
10364
+ }
10365
+ function memberReadFailure(err) {
10366
+ return isThrottlingError(err) || isTransientServerError(err) || isAmbiguousOutcomeError(err) ? "failed" : "refused";
10367
+ }
10368
+ async function settleDeclaredMember(first, read, matches, declared, delaysMs, unsettled) {
10369
+ const settled = (answer) => typeof answer === "object" && matches(answer.value);
10370
+ if (first === "refused" || settled(first)) return first;
10371
+ let newest = first;
10372
+ for (const delayMs of delaysMs) {
10373
+ await new Promise((resolve) => setTimeout(resolve, delayMs));
10374
+ let answer;
10375
+ try {
10376
+ answer = await read();
10377
+ } catch (err) {
10378
+ answer = memberReadFailure(err);
10379
+ }
10380
+ if (answer === "refused") break;
10381
+ if (answer !== "failed") newest = answer;
10382
+ if (settled(newest)) return newest;
10383
+ }
10384
+ unsettled();
10385
+ return newest === "absent" ? { value: declared } : newest;
10386
+ }
10387
+ function warnUnsettledMember(logger, logicalId, resourceType, memberKey) {
10388
+ logger.warn(safeMsg`${resourceType} ${logicalId}: the read right after the write never showed the declared ${memberKey}, so its drift baseline may not match the live resource; run ${proseQuoted(cdkdRemedy("cdkd state refresh-observed"))} on the stack to re-capture it`);
10389
+ }
10390
+ function declaredMemberDocument(value) {
10391
+ if (typeof value === "string") {
10392
+ if (value === "") return void 0;
10393
+ try {
10394
+ return JSON.parse(value);
10395
+ } catch {
10396
+ return value;
10397
+ }
10398
+ }
10399
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
10400
+ }
10401
+ const KMS_DEFAULT_KEY_POLICY_ID = "key-default-1";
10402
+ const EFS_FILE_SYSTEM_ARN = /^arn:[a-z-]+:elasticfilesystem:[a-z0-9-]+:\d{12}:file-system\/fs-[0-9a-f]+$/;
10403
+ function efsPolicyMatchesDeclared(answer, declared, fileSystemId) {
10404
+ return policyDocumentMatchesDeclared(withoutAddedResource(answer, declared, fileSystemId), declared);
10405
+ }
10406
+ function withoutAddedResource(answer, declared, fileSystemId) {
10407
+ const parse = (doc) => {
10408
+ if (typeof doc !== "string") return doc;
10409
+ try {
10410
+ return JSON.parse(doc);
10411
+ } catch {
10412
+ return doc;
10413
+ }
10414
+ };
10415
+ const read = parse(answer);
10416
+ const want = parse(declared);
10417
+ const statements = (doc) => {
10418
+ if (typeof doc !== "object" || doc === null || Array.isArray(doc)) return void 0;
10419
+ const s = doc["Statement"];
10420
+ return s === void 0 ? void 0 : Array.isArray(s) ? s : [s];
10421
+ };
10422
+ const readStatements = statements(read);
10423
+ const wantStatements = statements(want);
10424
+ if (readStatements === void 0 || wantStatements === void 0) return answer;
10425
+ return {
10426
+ ...read,
10427
+ Statement: readStatements.map((entry, index) => {
10428
+ const wanted = wantStatements[index];
10429
+ if (typeof entry !== "object" || entry === null || typeof wanted !== "object" || wanted === null || Object.prototype.hasOwnProperty.call(wanted, "Resource")) return entry;
10430
+ const resource = entry["Resource"];
10431
+ if (typeof resource !== "string" || !EFS_FILE_SYSTEM_ARN.test(resource) || fileSystemId !== void 0 && !resource.endsWith(`:file-system/${fileSystemId}`)) return entry;
10432
+ const { Resource: _added, ...rest } = entry;
10433
+ return rest;
10434
+ })
10435
+ };
10436
+ }
10437
+ function declaredPolicyDocument(properties) {
10438
+ if (typeof properties !== "object" || properties === null || Array.isArray(properties)) return;
10439
+ const doc = properties["PolicyDocument"];
10440
+ if (typeof doc === "string") return doc === "" ? void 0 : doc;
10441
+ return typeof doc === "object" && doc !== null && !Array.isArray(doc) ? doc : void 0;
10442
+ }
10443
+ function policyDocumentMatchesDeclared(answer, declared) {
10444
+ return answer !== void 0 && policyContentKey(foldConditionValues(answer)) === policyContentKey(foldConditionValues(declared));
10445
+ }
10446
+ function foldConditionValues(document) {
10447
+ let doc = document;
10448
+ if (typeof doc === "string") try {
10449
+ doc = JSON.parse(doc);
10450
+ } catch {
10451
+ return document;
10452
+ }
10453
+ if (typeof doc !== "object" || doc === null || Array.isArray(doc)) return doc;
10454
+ const statement = doc["Statement"];
10455
+ if (statement === void 0) return doc;
10456
+ const statements = Array.isArray(statement) ? statement : [statement];
10457
+ return {
10458
+ ...doc,
10459
+ Statement: statements.map((entry) => {
10460
+ if (typeof entry !== "object" || entry === null || Array.isArray(entry)) return entry;
10461
+ const condition = entry["Condition"];
10462
+ if (typeof condition !== "object" || condition === null || Array.isArray(condition)) return entry;
10463
+ const folded = {};
10464
+ for (const [operator, block] of Object.entries(condition)) {
10465
+ if (typeof block !== "object" || block === null || Array.isArray(block)) {
10466
+ folded[operator] = block;
10467
+ continue;
10468
+ }
10469
+ const values = {};
10470
+ for (const [key, value] of Object.entries(block)) values[key] = Array.isArray(value) && value.length === 1 ? value[0] : value;
10471
+ folded[operator] = values;
10472
+ }
10473
+ return {
10474
+ ...entry,
10475
+ Condition: folded
10476
+ };
10477
+ })
10478
+ };
10479
+ }
10480
+ const SNS_DEFAULT_POLICY_ID = "__default_policy_ID";
10481
+ const LAMBDA_PERMISSION_STATEMENT_KEYS = [
10482
+ "Action",
10483
+ "Principal",
10484
+ "SourceArn",
10485
+ "SourceAccount",
10486
+ "PrincipalOrgID",
10487
+ "InvokedViaFunctionUrl"
10488
+ ];
10489
+ function lambdaPermissionMatchesDeclared(read, declared) {
10490
+ return LAMBDA_PERMISSION_STATEMENT_KEYS.every((key) => {
10491
+ if (key === "InvokedViaFunctionUrl") return read[key] === true === (coerceCfnBoolean(declared[key]) === true);
10492
+ const want = declared[key];
10493
+ const got = read[key];
10494
+ if (want === void 0 || want === null || want === "") return got === void 0;
10495
+ return key === "Principal" ? accountKey(got) === accountKey(want) : got === want;
10496
+ });
10497
+ }
10498
+
10213
10499
  // src/cli/commands/drift/baseline-keys.ts
10214
10500
  const UNDECLARED_UNCOMPARED_KEYS = {
10215
10501
  "AWS::S3::Bucket": ["NotificationConfiguration"],
@@ -10234,12 +10520,70 @@ function preFixBaselineUncomparedDriftKeys(resourceType, observed, properties, a
10234
10520
  if (observed === void 0) return [];
10235
10521
  if (typeof properties !== "object" || properties === null || Array.isArray(properties)) return [];
10236
10522
  if (resourceType === "AWS::DynamoDB::Table") return staleTablePolicyBaseline(observed, properties, aws) ? ["ResourcePolicy"] : [];
10523
+ if (resourceType === "AWS::SQS::QueuePolicy" || resourceType === "AWS::SNS::TopicPolicy") {
10524
+ const declared = declaredPolicyDocument(properties);
10525
+ return declared !== void 0 && policyDocumentMatchesDeclared(aws["PolicyDocument"], declared) && !policyDocumentMatchesDeclared(observed["PolicyDocument"], declared) ? ["PolicyDocument"] : [];
10526
+ }
10527
+ if (resourceType === "AWS::Lambda::Permission") {
10528
+ const declared = properties;
10529
+ return lambdaPermissionMatchesDeclared(aws, declared) && !lambdaPermissionMatchesDeclared(observed, declared) ? [...LAMBDA_PERMISSION_STATEMENT_KEYS] : [];
10530
+ }
10531
+ const member = OWN_WRITE_MEMBERS.get(resourceType);
10532
+ if (member !== void 0) return member.liveIsDeclared(properties, aws) ? [member.key] : [];
10237
10533
  if (resourceType !== "AWS::Lambda::EventSourceMapping") return [];
10238
10534
  const declared = hasOwnKey(properties, "Enabled") ? coerceCfnBoolean(properties["Enabled"]) : void 0;
10239
10535
  const recorded = hasOwnKey(observed, "Enabled") ? coerceCfnBoolean(observed["Enabled"]) : void 0;
10240
10536
  const live = hasOwnKey(aws, "Enabled") ? aws["Enabled"] : void 0;
10241
10537
  return recorded === false && declared !== false && live === true ? ["Enabled"] : [];
10242
10538
  }
10539
+ const OWN_WRITE_MEMBERS = new Map(Object.entries({
10540
+ "AWS::KMS::Key": {
10541
+ key: "KeyPolicy",
10542
+ liveIsDeclared: (properties, aws) => {
10543
+ const declared = declaredMemberDocument(properties["KeyPolicy"]);
10544
+ return declared !== void 0 && policyDocumentMatchesDeclared(aws["KeyPolicy"], declared);
10545
+ }
10546
+ },
10547
+ "AWS::Logs::DeliveryDestination": {
10548
+ key: "DeliveryDestinationPolicy",
10549
+ liveIsDeclared: (properties, aws) => {
10550
+ const inner = (block) => {
10551
+ const document = typeof block === "object" && block !== null && !Array.isArray(block) ? block["DeliveryDestinationPolicy"] : void 0;
10552
+ return typeof document === "object" && document !== null && !Array.isArray(document) ? document : void 0;
10553
+ };
10554
+ const declared = inner(properties["DeliveryDestinationPolicy"]);
10555
+ if (declared === void 0) return properties["DeliveryDestinationPolicy"] === void 0 && aws["DeliveryDestinationPolicy"] === void 0;
10556
+ return policyDocumentMatchesDeclared(inner(aws["DeliveryDestinationPolicy"]), declared);
10557
+ }
10558
+ },
10559
+ "AWS::Logs::LogGroup": {
10560
+ key: "DataProtectionPolicy",
10561
+ liveIsDeclared: (properties, aws) => {
10562
+ const declared = declaredMemberDocument(properties["DataProtectionPolicy"]);
10563
+ if (declared === void 0) return (properties["DataProtectionPolicy"] === void 0 || properties["DataProtectionPolicy"] === "") && aws["DataProtectionPolicy"] === "";
10564
+ return policyDocumentMatchesDeclared(aws["DataProtectionPolicy"], declared);
10565
+ }
10566
+ },
10567
+ "AWS::ApiGateway::RestApi": {
10568
+ key: "Policy",
10569
+ liveIsDeclared: (properties, aws) => {
10570
+ const declared = declaredMemberDocument(properties["Policy"]);
10571
+ return declared !== void 0 && policyDocumentMatchesDeclared(aws["Policy"], declared);
10572
+ }
10573
+ },
10574
+ "AWS::EFS::FileSystem": {
10575
+ key: "FileSystemPolicy",
10576
+ liveIsDeclared: (properties, aws) => {
10577
+ const declared = declaredMemberDocument(properties["FileSystemPolicy"]);
10578
+ if (declared === void 0) return properties["FileSystemPolicy"] === void 0 && aws["FileSystemPolicy"] === void 0;
10579
+ return efsPolicyMatchesDeclared(aws["FileSystemPolicy"], declared);
10580
+ }
10581
+ },
10582
+ "AWS::CodeBuild::Project": {
10583
+ key: "Visibility",
10584
+ liveIsDeclared: (properties, aws) => typeof properties["Visibility"] === "string" && properties["Visibility"] !== "" && aws["Visibility"] === properties["Visibility"]
10585
+ }
10586
+ }));
10243
10587
  function staleTablePolicyBaseline(observed, properties, aws) {
10244
10588
  const recorded = readStreamPolicy(observed);
10245
10589
  const declared = readStreamPolicy(properties);
@@ -10671,7 +11015,7 @@ function printRevertPlan(reports, out, recovery, writeOnlyResend) {
10671
11015
  }
10672
11016
  }
10673
11017
  if (stateResource && stateResource.observedProperties === void 0) {
10674
- const unbaselined = findRevertUnbaselinedAwsKeys(o.changes, stateResource.properties ?? {}, o.awsProperties);
11018
+ const unbaselined = findRevertUnbaselinedAwsKeys(o.changes, stateResource.properties ?? {}, o.awsProperties, verbatimEchoDriftKeys(o.resourceType));
10675
11019
  if (o.secretsIncomplete && unbaselined.length > 0) out.write(` ! ${unbaselined.length} AWS-authored value(s) will be left untouched, but cdkd could not resolve this resource's dynamic reference(s), so their paths are withheld — they come from the live readback and cannot be checked for secrets without them.\n`);
10676
11020
  else if (unbaselined.length > 0) {
10677
11021
  const word = unbaselined.length === 1 ? "value" : "values";
@@ -11084,7 +11428,7 @@ function findRevertPreservedTagKeys(drifts, desiredProperties, awsProperties) {
11084
11428
  }
11085
11429
  return [...preserved].sort();
11086
11430
  }
11087
- function findRevertUnbaselinedAwsKeys(drifts, desiredProperties, awsProperties) {
11431
+ function findRevertUnbaselinedAwsKeys(drifts, desiredProperties, awsProperties, verbatimKeys = []) {
11088
11432
  const missing = /* @__PURE__ */ new Set();
11089
11433
  const driftedTopLevelKeys = /* @__PURE__ */ new Set();
11090
11434
  for (const d of drifts) {
@@ -11093,6 +11437,7 @@ function findRevertUnbaselinedAwsKeys(drifts, desiredProperties, awsProperties)
11093
11437
  }
11094
11438
  for (const key of driftedTopLevelKeys) {
11095
11439
  if (!hasOwnKey(desiredProperties, key)) continue;
11440
+ if (verbatimKeys.includes(key)) continue;
11096
11441
  collectMissingPaths(ownValue(awsProperties, key), desiredProperties[key], key, missing, isTagListKey(key) ? isServiceManagedTagKey : void 0);
11097
11442
  }
11098
11443
  return [...missing].sort();
@@ -11207,6 +11552,7 @@ function collectUnresolvedIntrinsicObjectPaths(bag, topLevelKeys) {
11207
11552
  function buildRevertNewProperties(drifts, desiredProperties, awsProperties, options = {}) {
11208
11553
  const preserveUntemplated = options.preserveUntemplated === true;
11209
11554
  const absentMeansDefault = options.absentMeansDefault ?? [];
11555
+ const verbatimKeys = options.verbatimKeys ?? [];
11210
11556
  const result = { ...awsProperties };
11211
11557
  for (const d of drifts) {
11212
11558
  const topLevelKey = d.path.split(".", 1)[0];
@@ -11214,7 +11560,7 @@ function buildRevertNewProperties(drifts, desiredProperties, awsProperties, opti
11214
11560
  if (hasOwnKey(desiredProperties, topLevelKey)) {
11215
11561
  const desiredValue = desiredProperties[topLevelKey];
11216
11562
  const awsValue = ownValue(awsProperties, topLevelKey);
11217
- if (preserveUntemplated) defineOwnKey(result, topLevelKey, mergeUntemplatedValue(awsValue, desiredValue));
11563
+ if (preserveUntemplated && !verbatimKeys.includes(topLevelKey)) defineOwnKey(result, topLevelKey, mergeUntemplatedValue(awsValue, desiredValue));
11218
11564
  else {
11219
11565
  const baselineIsTagList = isCfnTagList(desiredValue) || Array.isArray(desiredValue) && desiredValue.length === 0;
11220
11566
  defineOwnKey(result, topLevelKey, isTagListKey(topLevelKey) && baselineIsTagList && isCfnTagList(awsValue) ? mergeTagListForRevert(desiredValue, awsValue) : desiredValue);
@@ -11328,8 +11674,7 @@ async function compareDriftReadback(args) {
11328
11674
  const observedIgnorePaths = useObserved ? undeclaredEmptyObservedKeys(resource.observedProperties, resource.properties ?? {}) : [];
11329
11675
  const normalized = await canonicalizePrincipalUniqueIds(comparisonBaseline, aws, resolvePrincipalUniqueId);
11330
11676
  const protocolNormalized = canonicalizeIpProtocols(normalized.baseline, normalized.aws, resource.resourceType);
11331
- const memberStripped = stripSiblingOwnedMembers(resource.resourceType, resource.physicalId, protocolNormalized.baseline, protocolNormalized.aws, resource.properties, readContext);
11332
- const siblingStripped = stripSiblingOwnedSgRules(resource.resourceType, resource.physicalId, memberStripped.baseline, memberStripped.aws, resource.properties, readContext);
11677
+ const siblingStripped = stripSiblingOwnedParentMembers(resource.resourceType, resource.physicalId, protocolNormalized.baseline, protocolNormalized.aws, resource.properties, readContext);
11333
11678
  const canonicalized = provider.canonicalizeDriftProperties ? {
11334
11679
  baseline: provider.canonicalizeDriftProperties(resource.resourceType, siblingStripped.baseline),
11335
11680
  aws: provider.canonicalizeDriftProperties(resource.resourceType, siblingStripped.aws)
@@ -11353,7 +11698,8 @@ async function compareDriftReadback(args) {
11353
11698
  const changes = calculateResourceDrift(comparedBaseline, paired.aws, {
11354
11699
  ignorePaths: extraIgnorePaths.length ? [...ignorePaths, ...extraIgnorePaths] : ignorePaths,
11355
11700
  unionWalkObjects: useObserved,
11356
- unorderedPaths
11701
+ unorderedPaths,
11702
+ unionWalkPaths: verbatimEchoDriftKeys(resource.resourceType)
11357
11703
  });
11358
11704
  const noEchoPartitioned = partitionNoEchoParameterChanges(changes, resource, baseline);
11359
11705
  const partitioned = partitionUncertifiedBaselineChanges(noEchoPartitioned.kept, resource.properties ?? {}, baseline);
@@ -11632,7 +11978,8 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
11632
11978
  notComparedCause: "readFailed"
11633
11979
  });
11634
11980
  let breakerTripped = false;
11635
- if (!readReturned) {
11981
+ if (err instanceof DriftReadRefusedError) noteReadReturned();
11982
+ else if (!readReturned) {
11636
11983
  consecutiveReadFailures[readPath]++;
11637
11984
  if (consecutiveReadFailures[readPath] === 5) {
11638
11985
  trippedReadPaths.add(readPath);
@@ -11812,7 +12159,7 @@ function carriesIntrinsicObject(value) {
11812
12159
 
11813
12160
  // src/cli/commands/drift/revert-apply.ts
11814
12161
  async function applyRevertUpdate(args) {
11815
- const { logger, tally, report, narrowedByLogicalId, reRecordedByLogicalId, settledByRevert, outcome, stateResource, provider, secrets, revertBaseline, newProperties } = args;
12162
+ const { logger, tally, report, narrowedByLogicalId, settledByRevert, outcome, stateResource, provider, secrets, revertBaseline, newProperties } = args;
11816
12163
  try {
11817
12164
  const revertPrevious = await settleUnsettledPrevious({
11818
12165
  provider,
@@ -11835,6 +12182,13 @@ async function applyRevertUpdate(args) {
11835
12182
  recordedCreateOnlyDrops: stateResource.acceptedCreateOnlyDrops,
11836
12183
  removedProperties: /* @__PURE__ */ new Set()
11837
12184
  }), outcome.logicalId, { logger: maskingRetryLogger(logger, secrets) });
12185
+ const replacedBy = revertReplacementOf(stateResource.physicalId, updateResult);
12186
+ if (replacedBy !== void 0) {
12187
+ tally.totalFailed++;
12188
+ logger.error(safeMsg` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): the provider REPLACED the resource or changed its identity instead of reverting it in place (${maskSecretsInText(replacedBy, secrets)}). A drift revert must never replace a resource — this is a cdkd bug, please report it. State records the identity the provider returned for a replacement, so it is not orphaned; check its consumers.`);
12189
+ recordReturnedIdentity(args, updateResult, "replaced");
12190
+ return;
12191
+ }
11838
12192
  tally.totalSucceeded++;
11839
12193
  const unsettledNames = unsettledPropertiesOf(stateResource);
11840
12194
  if (unsettledNames.size > 0) {
@@ -11865,24 +12219,7 @@ async function applyRevertUpdate(args) {
11865
12219
  } catch (captureErr) {
11866
12220
  logger.warn(` ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): reverted, but the provider's reported effective properties could not be read — ${maskSecretsInText(describeAwsFailure(captureErr).detail, secrets)}`);
11867
12221
  }
11868
- try {
11869
- if (updateResult !== void 0) {
11870
- const noEchoDeclared = recordNoEchoAttributeValues(updateResult, secrets, newProperties);
11871
- const next = recordAfterRollbackUpdate(stateResource, updateResult);
11872
- const keptAttributes = next.attributes === void 0 ? void 0 : keepRecordedAttributesOverMask(redactForState(next.attributes, {
11873
- provenance: "value-scan",
11874
- secrets
11875
- }), next.attributes, stateResource.attributes, noEchoDeclared);
11876
- const declaredNames = noEchoAttributeNamesOf(stateResource) ?? [];
11877
- const attributes = keptAttributes === void 0 || declaredNames.length === 0 ? keptAttributes : Object.fromEntries(Object.entries(keptAttributes).map(([name, value]) => [name, declaredNames.includes(name) ? maskWholeValue(value) : value]));
11878
- if (next.physicalId !== stateResource.physicalId || !sameRecordedJson(attributes, stateResource.attributes)) reRecordedByLogicalId.set(outcome.logicalId, {
11879
- physicalId: next.physicalId,
11880
- attributes
11881
- });
11882
- }
11883
- } catch (recordErr) {
11884
- logger.warn(safeMsg` ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): reverted, but the attributes the provider returned could not be recorded — ${maskSecretsInText(describeAwsFailure(recordErr).detail, secrets)}`);
11885
- }
12222
+ recordReturnedIdentity(args, updateResult, "reverted");
11886
12223
  } catch (err) {
11887
12224
  if (err instanceof ResourceUpdateNotSupportedError) {
11888
12225
  tally.totalUnsupported++;
@@ -11894,6 +12231,32 @@ async function applyRevertUpdate(args) {
11894
12231
  logger.error(` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): AWS update failed — ${msg}`);
11895
12232
  }
11896
12233
  }
12234
+ function revertReplacementOf(recordedPhysicalId, updateResult) {
12235
+ if (updateResult === void 0) return void 0;
12236
+ if (typeof updateResult.physicalId === "string" && updateResult.physicalId !== "" && updateResult.physicalId !== recordedPhysicalId) return `physical id ${recordedPhysicalId} became ${updateResult.physicalId}`;
12237
+ return updateResult.wasReplaced === true ? `reported a replacement under the same physical id ${recordedPhysicalId}` : void 0;
12238
+ }
12239
+ function recordReturnedIdentity(args, updateResult, verdict) {
12240
+ const { logger, report, reRecordedByLogicalId, outcome, stateResource, secrets, newProperties } = args;
12241
+ try {
12242
+ if (updateResult !== void 0) {
12243
+ const noEchoDeclared = recordNoEchoAttributeValues(updateResult, secrets, newProperties);
12244
+ const next = recordAfterRollbackUpdate(stateResource, updateResult);
12245
+ const keptAttributes = next.attributes === void 0 ? void 0 : keepRecordedAttributesOverMask(redactForState(next.attributes, {
12246
+ provenance: "value-scan",
12247
+ secrets
12248
+ }), next.attributes, stateResource.attributes, noEchoDeclared);
12249
+ const declaredNames = noEchoAttributeNamesOf(stateResource) ?? [];
12250
+ const attributes = keptAttributes === void 0 || declaredNames.length === 0 ? keptAttributes : Object.fromEntries(Object.entries(keptAttributes).map(([name, value]) => [name, declaredNames.includes(name) ? maskWholeValue(value) : value]));
12251
+ if (next.physicalId !== stateResource.physicalId || !sameRecordedJson(attributes, stateResource.attributes)) reRecordedByLogicalId.set(outcome.logicalId, {
12252
+ physicalId: next.physicalId,
12253
+ attributes
12254
+ });
12255
+ }
12256
+ } catch (recordErr) {
12257
+ logger.warn(safeMsg` ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): ${verdict}, but the attributes the provider returned could not be recorded — ${maskSecretsInText(describeAwsFailure(recordErr).detail, secrets)}`);
12258
+ }
12259
+ }
11897
12260
 
11898
12261
  // src/cli/commands/drift/revert-outcome.ts
11899
12262
  async function revertDriftedOutcome(args) {
@@ -11962,11 +12325,13 @@ async function revertDriftedOutcome(args) {
11962
12325
  let newProperties;
11963
12326
  try {
11964
12327
  const siblingContext = buildReadCurrentStateContext(report.state, outcome.logicalId);
11965
- desiredProperties = stripSiblingOwnedMembers(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext).baseline;
11966
- desiredProperties = stripSiblingOwnedSgRules(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext).baseline;
12328
+ desiredProperties = siblingOwnedRevertDesired(outcome.resourceType, stateResource.physicalId, desiredProperties, outcome.awsProperties, stateResource.properties, siblingContext);
11967
12329
  if (provider.canonicalizeDriftPair) desiredProperties = (await provider.canonicalizeDriftPair(outcome.resourceType, desiredProperties, outcome.awsProperties, stateResource.properties ?? {})).baseline;
11968
12330
  desiredProperties = stripDerivedEchoMembers(outcome.resourceType, desiredProperties);
11969
- const overlaid = buildRevertNewProperties(outcome.changes, desiredProperties, outcome.awsProperties, stateResource.observedProperties === void 0 ? { preserveUntemplated: true } : { absentMeansDefault: driftAbsentMeansDefaultKeys(provider, outcome.resourceType, stateResource.properties) });
12331
+ const overlaid = buildRevertNewProperties(outcome.changes, desiredProperties, outcome.awsProperties, stateResource.observedProperties === void 0 ? {
12332
+ preserveUntemplated: true,
12333
+ verbatimKeys: verbatimEchoDriftKeys(outcome.resourceType)
12334
+ } : { absentMeansDefault: driftAbsentMeansDefaultKeys(provider, outcome.resourceType, stateResource.properties) });
11970
12335
  const certifiedOverlay = overlayLiveAtUncertifiedPaths(overlaid, [...outcome.uncertifiedPaths, ...outcome.noEchoParameterPaths ?? []], outcome.awsProperties, desiredProperties, secrets, new Set(outcome.changes.map((change) => change.path.split(".", 1)[0] ?? "")), spelledKeysOf(stateResource.properties ?? {}));
11971
12336
  const tokenPreserved = unresolvedTokens.size > 0 ? preserveLiveValuesAtUnresolvedTokens(certifiedOverlay, outcome.awsProperties, unresolvedTokens, secrets) : certifiedOverlay;
11972
12337
  const maskPreserved = preserveLiveValuesAtMaskedLeaves(tokenPreserved, outcome.awsProperties, secrets, certifiedOverlay, spelledKeysOf(stateResource.properties ?? {}));
@@ -21639,6 +22004,7 @@ async function runRollbackReplay(ctx) {
21639
22004
  const failedOrphanIds = [];
21640
22005
  const inlinePolicyWriters = new RollbackInlinePolicyWriters();
21641
22006
  const failedOpsPrinting = journaledOrphanPrintingBag(journal.segments.flatMap((s) => s.failedOperations ?? []), stateResources);
22007
+ await snapshotSegmentSurvivors(ctx, journal.segments);
21642
22008
  try {
21643
22009
  while (journal.segments.length > 0) {
21644
22010
  if (interrupted) break;
@@ -34721,5 +35087,5 @@ function collectVerbFlags(program) {
34721
35087
  return map;
34722
35088
  }
34723
35089
 
34724
- export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
34725
- //# sourceMappingURL=program-BOR4WbUs.js.map
35090
+ export { warnUnsettledMember as _, resolveSecretDerivedPrincipals as a, buildProgram, SNS_DEFAULT_POLICY_ID as c, efsPolicyMatchesDeclared as d, lambdaPermissionMatchesDeclared as f, settleDeclaredMember as g, reReadUntilSettled as h, isResolvableSecretPrincipalList as i, declaredMemberDocument as l, policyDocumentMatchesDeclared as m, runDestroyForStack as n, KMS_DEFAULT_KEY_POLICY_ID as o, memberReadFailure as p, holdsUnprovenSecretPrincipalToken as r, OWN_WRITE_REREAD_DELAYS_MS as s, canonicalizeIpv4Cidr as t, declaredPolicyDocument as u, attemptedPolicyDocument as v, policyContentKey as y };
35091
+ //# sourceMappingURL=program-fQBUrH4s.js.map