@cdkd/cli 0.373.4 → 0.373.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 (70) hide show
  1. package/dist/{ambient-client-defaults-DtG0A5aG.js → ambient-client-defaults-D2ziUucm.js} +3 -3
  2. package/dist/{ambient-client-defaults-DtG0A5aG.js.map → ambient-client-defaults-D2ziUucm.js.map} +1 -1
  3. package/dist/{asg-provider-BmCui3zx.js → asg-provider-DXerSmY8.js} +8 -8
  4. package/dist/{asg-provider-BmCui3zx.js.map → asg-provider-DXerSmY8.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-pm6t9jBv.js → custom-resource-runtime-Z0UesGu4.js} +6 -6
  7. package/dist/{custom-resource-runtime-pm6t9jBv.js.map → custom-resource-runtime-Z0UesGu4.js.map} +1 -1
  8. package/dist/{db-associated-roles-C607MnbC.js → db-associated-roles-BVE6a5hy.js} +2 -2
  9. package/dist/{db-associated-roles-C607MnbC.js.map → db-associated-roles-BVE6a5hy.js.map} +1 -1
  10. package/dist/{delete-started-C_hilY_A.js → delete-started-C-Fplb9I.js} +4 -4
  11. package/dist/{delete-started-C_hilY_A.js.map → delete-started-C-Fplb9I.js.map} +1 -1
  12. package/dist/{deploy-engine-BEzzfllj.js → deploy-engine-7gPM_z0r.js} +158 -64
  13. package/dist/deploy-engine-7gPM_z0r.js.map +1 -0
  14. package/dist/{ec2-termination-protection-BeYoGs66.js → ec2-termination-protection-C3bNJVAK.js} +3 -3
  15. package/dist/{ec2-termination-protection-BeYoGs66.js.map → ec2-termination-protection-C3bNJVAK.js.map} +1 -1
  16. package/dist/{ecr-uri-DcNB-WSe.js → ecr-uri-Dy7a2hEI.js} +2 -2
  17. package/dist/{ecr-uri-DcNB-WSe.js.map → ecr-uri-Dy7a2hEI.js.map} +1 -1
  18. package/dist/{emr-cluster-provider-TaiGpHEX.js → emr-cluster-provider-DpzQ2tXe.js} +80 -16
  19. package/dist/emr-cluster-provider-DpzQ2tXe.js.map +1 -0
  20. package/dist/{expected-bucket-owner-DASdeJRs.js → expected-bucket-owner-NU2Veqhr.js} +2 -2
  21. package/dist/{expected-bucket-owner-DASdeJRs.js.map → expected-bucket-owner-NU2Veqhr.js.map} +1 -1
  22. package/dist/{iam-role-provider-ob3lrDNI.js → iam-role-provider-BK7LqipH.js} +12 -12
  23. package/dist/{iam-role-provider-ob3lrDNI.js.map → iam-role-provider-BK7LqipH.js.map} +1 -1
  24. package/dist/{identity-read-denied-CGR1hIyA.js → identity-read-denied-BnZ-p9kt.js} +4 -4
  25. package/dist/{identity-read-denied-CGR1hIyA.js.map → identity-read-denied-BnZ-p9kt.js.map} +1 -1
  26. package/dist/{image-plan-BWFMyIRS.js → image-plan-7isjcxk3.js} +10 -10
  27. package/dist/{image-plan-BWFMyIRS.js.map → image-plan-7isjcxk3.js.map} +1 -1
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +5 -5
  30. package/dist/{logger-8a4raAC-.js → logger-CC9C99az.js} +2 -2
  31. package/dist/{logger-8a4raAC-.js.map → logger-CC9C99az.js.map} +1 -1
  32. package/dist/{neptune-provider-C8fiHA_U.js → neptune-provider-CjjpqzLj.js} +9 -9
  33. package/dist/{neptune-provider-C8fiHA_U.js.map → neptune-provider-CjjpqzLj.js.map} +1 -1
  34. package/dist/{program-BCit4cJS.js → program-Ce2id6tt.js} +549 -119
  35. package/dist/program-Ce2id6tt.js.map +1 -0
  36. package/dist/{provider-classes-BydpQUFi.js → provider-classes-BesMsi8i.js} +617 -127
  37. package/dist/provider-classes-BesMsi8i.js.map +1 -0
  38. package/dist/{rds-provider-Dv0lcb0m.js → rds-provider-j7YCssyt.js} +13 -13
  39. package/dist/{rds-provider-Dv0lcb0m.js.map → rds-provider-j7YCssyt.js.map} +1 -1
  40. package/dist/{read-replica-BQ87f_Oe.js → read-replica-B3tUZd7q.js} +3 -3
  41. package/dist/{read-replica-BQ87f_Oe.js.map → read-replica-B3tUZd7q.js.map} +1 -1
  42. package/dist/{redacted-delete-address-BrPnoyD9.js → redacted-delete-address-DAZayV8w.js} +4 -4
  43. package/dist/{redacted-delete-address-BrPnoyD9.js.map → redacted-delete-address-DAZayV8w.js.map} +1 -1
  44. package/dist/{replacement-rules-HtPsWZIV.js → replacement-rules-bf4K_Yka.js} +144 -53
  45. package/dist/replacement-rules-bf4K_Yka.js.map +1 -0
  46. package/dist/{created-resource-sink-DVzNDZ-N.js → resource-deadline-D6p4x_pl.js} +108 -5
  47. package/dist/resource-deadline-D6p4x_pl.js.map +1 -0
  48. package/dist/{restore-source-guard-BIaZBr57.js → restore-source-guard-DRxM4nEI.js} +4 -4
  49. package/dist/{restore-source-guard-BIaZBr57.js.map → restore-source-guard-DRxM4nEI.js.map} +1 -1
  50. package/dist/{run-cli-OPPhPXxz.js → run-cli-B1pXbQh9.js} +2 -2
  51. package/dist/{run-cli-OPPhPXxz.js.map → run-cli-B1pXbQh9.js.map} +1 -1
  52. package/dist/{secret-reference-immutable-OIvSuvpM.js → secret-reference-immutable-CGZO-iyw.js} +6 -6
  53. package/dist/{secret-reference-immutable-OIvSuvpM.js.map → secret-reference-immutable-CGZO-iyw.js.map} +1 -1
  54. package/dist/{settle-own-write-members-fY5JNYhA.js → settle-own-write-members-WuNz0klP.js} +10 -10
  55. package/dist/{settle-own-write-members-fY5JNYhA.js.map → settle-own-write-members-WuNz0klP.js.map} +1 -1
  56. package/dist/{tag-list-CmpwQ18R.js → tag-list-DiQb3Tm9.js} +4 -4
  57. package/dist/{tag-list-CmpwQ18R.js.map → tag-list-DiQb3Tm9.js.map} +1 -1
  58. package/dist/update-removal-CBAhk3SI.js +82 -0
  59. package/dist/update-removal-CBAhk3SI.js.map +1 -0
  60. package/dist/{version-DwQIlsjN.js → version-CdLI5JxZ.js} +2 -2
  61. package/dist/{version-DwQIlsjN.js.map → version-CdLI5JxZ.js.map} +1 -1
  62. package/package.json +1 -1
  63. package/dist/created-resource-sink-DVzNDZ-N.js.map +0 -1
  64. package/dist/deploy-engine-BEzzfllj.js.map +0 -1
  65. package/dist/emr-cluster-provider-TaiGpHEX.js.map +0 -1
  66. package/dist/program-BCit4cJS.js.map +0 -1
  67. package/dist/provider-classes-BydpQUFi.js.map +0 -1
  68. package/dist/replacement-rules-HtPsWZIV.js.map +0 -1
  69. package/dist/resource-deadline-nSheE7zd.js +0 -186
  70. package/dist/resource-deadline-nSheE7zd.js.map +0 -1
@@ -1,23 +1,22 @@
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-DwQIlsjN.js";
2
- import { $ as renderStacksNoLongerSelected, $t as contextOptions, A as followContainerLogs, An as parseStateKey, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as parsePositiveIntegerOption, Ct as resolveContainerRegion, Dn as describeStateKey, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as STATE_KEY_MAX_CODE_POINTS, 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 listAllLockKeys, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as commonOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as cliArgParser, St as realAwsException, T as DockerRunnerError, Tn as STATE_FILE_SUFFIX, 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 collectRepeated, _ as probeHostGatewaySupport, _n as allowUnsupportedTypesOption, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noCfnFallbackOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as resourceTimeoutOptions, bt as prepareLocalLoopbackForwarder, cn as parseStackRegion, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stackOptions, dt as activateLocalAwsAndRoleArn, en as deployOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as stateOptions, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as parseAssumeRoleToken, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as normalizeStartApiAssumeRole, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as guardStackRegionOptions, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kn as listAllStateKeys, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as regionOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as effectiveAssumeRoleArn, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as diffUpdatePolicyOptions, nt as stackMatchesPattern, o as resolveLambdaTarget, on as noLocalCustomResourcesOption, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as useCdkBootstrapAssetsOption, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as exclusivelyOption, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseContextOptions, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as destroyOptions, tt as selectTargetStack, u as assetPathDirs, un as skipFinalSnapshotOption, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as diffReplaceResourceOption, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as LOCK_FILE_SUFFIX, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as validateResourceTimeouts, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as parseDuration, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-BWFMyIRS.js";
3
- import { At as resourceTypeShown, Bi as CUSTOM_RESOURCE_RESPONSE_PREFIX, Bn as logOnlyValueCount, C as VALUE_NOT_SHOWN, Ci as recordProvenPublicExpression, Ei as WHOLE_DYNAMIC_REFERENCE_PATTERN, Fi as formatLockExpiry, Gi as withPasteableAwsProfile, Gn as recordLogOnlyValue, Hi as WAIT_CONDITION_SIGNAL_PREFIX, Hn as printingCorpusOf, Hr as keepTemplateLiteralLeaves, Ii as formatLockOperation, In as createUnionSecretMasker, It as maskDeep, Ji as producerCoordinateKey, Jn as createSecretMasker, Jr as DYNAMIC_REFERENCE_TOKEN_SCAN, Ki as injectiveKey, Kn as shareLogOnlyValues, Kr as recordPhysicalNameCopy, Li as formatLockOwner, Lr as recordNestedStackParameterExpressions, M as remedyLogicalId, Mi as buildForceUnlockCommand, Ni as buildLockContentionMessage, Ot as logicalIdShown, P as isMarkedNotGone, Pi as forceQuitRecoveryClause, Pn as carryLogOnlyValues, Q as runDeleteAttempt, Qn as maskSecretsInText, Rn as hasMaskableValues, Si as recordNoEchoParameterFreshValue, St as isInterruptedWaitError, Tr as inheritNestedStackParameterAssociations, Ui as setPasteableAwsCaBundle, Un as recordLogOnlyParameterValue, Vi as DEFAULT_STATE_PREFIX, Wi as setPasteableAwsProfile, Wr as physicalNameCopiesOf, Xr as dynamicReferenceTokens, Yi as producerRecordKey, Yn as errorCauseChain, Yr as dynamicReferenceSpans, Zn as maskSecretsInError, Zt as countDynamicReferenceOpenings, an as mentionsMask, at as isAwsCliLiteral, b as assertRegionMatch, bi as recordMaskOnlyValuesIn, bn as resolvedPlaintextOf, bt as endCommandInterruptScope, cn as recordedSecrecyOf, ct as renderDisableCommand, en as holdsMaskLeaf, gi as provenPublicValue, gr as pathCrossesDottedKey, gt as readRecordedPrincipals, hr as spelledKeysOf, ii as carriesSecretMask, in as mentionsDynamicReferenceTo, ji as UNREPRODUCIBLE_LOCK_CLAUSE, ki as isSingleDynamicReferenceToken, lr as scrubResourceRecord, lt as IAM_PRINCIPAL_NAME, mr as isUncertifiedBaselineMaskPosition, qn as unionOfSecretBags, ri as splitGetAttStringForm, rn as mentionsDynamicReference, sn as opensDynamicReferenceTo, tn as isMaskLeaf, un as valueMentionsDynamicReference, ur as withPhysicalNameCopies, ut as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, v as DriftReadRefusedError, vr as identityKeyFor, wi as wholeStringLeavesOf, wn as redactForState, xi as recordNoEchoAttributeValues, xt as interruptWatchListenerCount, y as RESOURCE_NOT_FOUND, yi as recordMaskOnlyValue, yt as beginCommandInterruptScope, zn as literalSplitDelimitersOf } from "./created-resource-sink-DVzNDZ-N.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-CdLI5JxZ.js";
2
+ import { $ as renderStacksNoLongerSelected, $t as contextOptions, A as followContainerLogs, An as parseStateKey, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as parsePositiveIntegerOption, Ct as resolveContainerRegion, Dn as describeStateKey, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as STATE_KEY_MAX_CODE_POINTS, 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 listAllLockKeys, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as commonOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as cliArgParser, St as realAwsException, T as DockerRunnerError, Tn as STATE_FILE_SUFFIX, 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 collectRepeated, _ as probeHostGatewaySupport, _n as allowUnsupportedTypesOption, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noCfnFallbackOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as resourceTimeoutOptions, bt as prepareLocalLoopbackForwarder, cn as parseStackRegion, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stackOptions, dt as activateLocalAwsAndRoleArn, en as deployOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as stateOptions, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as parseAssumeRoleToken, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as normalizeStartApiAssumeRole, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as guardStackRegionOptions, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kn as listAllStateKeys, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as regionOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as effectiveAssumeRoleArn, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as diffUpdatePolicyOptions, nt as stackMatchesPattern, o as resolveLambdaTarget, on as noLocalCustomResourcesOption, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as useCdkBootstrapAssetsOption, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as exclusivelyOption, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseContextOptions, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as destroyOptions, tt as selectTargetStack, u as assetPathDirs, un as skipFinalSnapshotOption, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as diffReplaceResourceOption, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as LOCK_FILE_SUFFIX, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as validateResourceTimeouts, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as parseDuration, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-7isjcxk3.js";
3
+ import { $i as producerCoordinateKey, $n as createSecretMasker, $r as DYNAMIC_REFERENCE_TOKEN_SCAN, Ar as inheritNestedStackParameterAssociations, Bi as formatLockExpiry, C as DriftReadRefusedError, Cr as identityKeyFor, Di as recordNoEchoParameterFreshValue, Dt as isInterruptedWaitError, Ei as recordNoEchoAttributeValues, Et as interruptWatchListenerCount, Ft as resourceTypeShown, Gi as CUSTOM_RESOURCE_RESPONSE_PREFIX, Gn as logOnlyValueCount, Hi as formatLockOwner, Hr as recordNestedStackParameterExpressions, Ii as UNREPRODUCIBLE_LOCK_CLAUSE, Ji as setPasteableAwsCaBundle, Jn as recordLogOnlyParameterValue, Ki as DEFAULT_STATE_PREFIX, L as remedyLogicalId, Li as buildForceUnlockCommand, Ni as isPlainObject$1, Nt as logicalIdShown, O as VALUE_NOT_SHOWN, Oi as recordProvenPublicExpression, Pi as isSingleDynamicReferenceToken, Qn as unionOfSecretBags, Ri as buildLockContentionMessage, T as assertRegionMatch, Ti as recordMaskOnlyValuesIn, Tn as resolvedPlaintextOf, Tt as endCommandInterruptScope, Un as hasMaskableValues, Vi as formatLockOperation, Vn as createUnionSecretMasker, Vt as maskDeep, Wn as literalSplitDelimitersOf, Xi as withPasteableAwsProfile, Xn as recordLogOnlyValue, Yi as setPasteableAwsProfile, Yr as physicalNameCopiesOf, Zi as injectiveKey, Zn as shareLogOnlyValues, Zr as recordPhysicalNameCopy, a as withResourceDeadline, an as holdsMaskLeaf, br as spelledKeysOf, ci as splitGetAttStringForm, cn as mentionsDynamicReference, ea as producerRecordKey, ei as dynamicReferenceSpans, er as errorCauseChain, fn as opensDynamicReferenceTo, hn as valueMentionsDynamicReference, hr as withPhysicalNameCopies, ht as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, ji as WHOLE_DYNAMIC_REFERENCE_PATTERN, ki as wholeStringLeavesOf, kn as redactForState, li as carriesSecretMask, ln as mentionsDynamicReferenceTo, mr as scrubResourceRecord, mt as IAM_PRINCIPAL_NAME, nn as countDynamicReferenceOpenings, nr as maskSecretsInError, on as isMaskLeaf, pn as recordedSecrecyOf, pt as renderDisableCommand, qi as WAIT_CONDITION_SIGNAL_PREFIX, qn as printingCorpusOf, qr as keepTemplateLiteralLeaves, rr as maskSecretsInText, rt as runDeleteAttempt, ti as dynamicReferenceTokens, un as mentionsMask, ut as isAwsCliLiteral, w as RESOURCE_NOT_FOUND, wi as recordMaskOnlyValue, wt as beginCommandInterruptScope, xi as provenPublicValue, xr as pathCrossesDottedKey, xt as readRecordedPrincipals, yr as isUncertifiedBaselineMaskPosition, z as isMarkedNotGone, zi as forceQuitRecoveryClause, zn as carryLogOnlyValues } from "./resource-deadline-D6p4x_pl.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, A as configStringRefusal, B as generateResourceName, E as coerceCfnBoolean, F as requireConfigString, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, f as isAwsAuthoredFailure, 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-8a4raAC-.js";
6
- import { $ as AccountIdUnavailableError, A as stripControlChars, B as isTransientServerError, F as isAmbiguousOutcomeError, G as markNonRetryable, H as THROTTLING_ERROR_NAMES, J as CrossAccountSecretRefusalError, U as isMarkedNonRetryable, V as retryClassificationText, W as isThrottlingError, X as IntrinsicResolutionRefusalError, Y as DynamicReferenceRegionAmbiguousError, Z as MalformedProducerRecordRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, ct as StateError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, it as LocalInvokeBuildError$1, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, lt as SynthesisError, n as ambientCredentialConfig, nt as DeployCancelledError, o as formatError, ot as ProvisioningError, r as clientDefaultsFor, s as handleError, st as ResourceTimeoutError, t as ambientClientDefaults, tt as CdkdError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isRetryableTransientError } from "./ambient-client-defaults-DtG0A5aG.js";
5
+ import { $ as withStackScope, A as configStringRefusal, B as generateResourceName, E as coerceCfnBoolean, F as requireConfigString, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, f as isAwsAuthoredFailure, 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-CC9C99az.js";
6
+ import { $ as AccountIdUnavailableError, A as stripControlChars, B as isTransientServerError, F as isAmbiguousOutcomeError, G as markNonRetryable, H as THROTTLING_ERROR_NAMES, J as CrossAccountSecretRefusalError, U as isMarkedNonRetryable, V as retryClassificationText, W as isThrottlingError, X as IntrinsicResolutionRefusalError, Y as DynamicReferenceRegionAmbiguousError, Z as MalformedProducerRecordRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, ct as StateError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, it as LocalInvokeBuildError$1, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, lt as SynthesisError, n as ambientCredentialConfig, nt as DeployCancelledError, o as formatError, ot as ProvisioningError, r as clientDefaultsFor, s as handleError, st as ResourceTimeoutError, t as ambientClientDefaults, tt as CdkdError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isRetryableTransientError } from "./ambient-client-defaults-D2ziUucm.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 createLegacyAssetParameterBinder, A as runDockerForeground, B as resolveCaptureObservedState, C as finchSecretArgvRefusal, D as isMalformedEnvKey, E as isDockerClientEnvKey, F as getDefaultStateBucketName, G as resolveUpdatePolicy, H as resolveStateBucketWithDefault, I as getLegacyStateBucketName, J as warnDeprecatedNoPrefixCliFlag, K as resolveUseCdkBootstrapAssets, L as loadCdkJson, M as abortInFlightMultipartUploads, N as Synthesizer, O as formatDockerLoginError, P as synthesisStatusMessage, Q as bindLegacyStackAssetParameters, R as resolveApp, S as dockerSpawnEnvWithSensitive, T as warnFinchArgvExposure, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as resolveStateBucketWithSource, X as AssemblyReader, Y as refuseFailedLookups, Z as StageLoadError, _ as describeDockerExecFailure, at as setChildProcessAwsEnv, b as redactedDockerCause, d as isLockInfoExpired, et as legacyPlanAssetCount, f as AssetPublisher, h as resolveDockerContextDirectory, i as mergeDeclaredEntries, it as processStackMessages, j as runDockerStreaming, k as getDockerCmd, l as DagBuilder, m as buildDockerImage, n as declaredStringList, nt as prepareLegacyStackAssets, p as WorkGraph, q as stateBucketExistenceConfirmed, r as inlinePoliciesAreDeclared, rt as CdkToolkitBucketMissingError, s as stringListIsDeclared, t as declaredInlinePolicies, tt as predictedAutoCreatedAssetMode, u as LockManager, v as describeDockerFailure, w as partitionSensitiveEnv, x as redactDockerArgvValues, y as redactedCause, z as resolveAutoAssetStorage } from "./settle-own-write-members-fY5JNYhA.js";
9
- import { $a as maskEventTextWithBoundBags, $c as yellow, $d as createLazyAssetModeContext, $l as repairMalformedOrphanRecordsForReadOnly, $n as NESTED_PENDING_PARENT_REASON, $o as WaitConditionSignalStore, $r as recordedRuleIdOf, $s as classifyReplaySecretRegion, $u as UNREADABLE_RESOURCES_MAP_ROW, A as renderUnreplacedTarget, Aa as supersededResourcesOf, Ac as recordedValuesOf, Ad as isSecretValuedAttribute, Af as nullPrototypeRecord, Ai as demoteSupersededOrphans, An as refactorMarkerMovesOf, Ar as movedToHint, As as DiffCalculator, Au as malformedExportNamesWarning, B as readProtection, Ba as sgCidrKey, Bc as parseCfnTemplateWithFormat, Bf as resolveBucketRegion, Bi as attemptUsesCompletedCreate, Bl as maskedInputProof, Bn as settleStackTagChildRuns, Bo as memberReadFailure, Br as parseMappingFile, Bs as refuseUnreadableCdkCrossAccountRefs, Bu as refuseDivergentRecordRegionForDestroy, C as healSlashedSsmParameterNames, Ca as deleteSupersededEntry, Cc as maskPassedSecretChanges, Cd as CrossPrefixScanCache, Cf as validateContainerRepoName, Cl as isStatefulRecreateTargetSync, Cr as constructPathOf$1, Cs as deleteIndeterminateGuards, Cu as UNREADABLE_ORPHANS_CONTAINER_ROW, D as scanActiveConsumers, Da as supersededDependentsFirst, Dc as mixedSecretTagKeys, Dd as isNotImplemented, Df as defineOwnKey, Dn as recordRetainedForReadoption, Do as destroyStackRecordsView, Dr as orphanedLogicalIds, Ds as getReadOnlyPropertyPaths, Du as refuseMalformedOrphans, E as slashedSsmNameHealPendingNote, Ea as supersededAfterRollback, Ec as mixedSecretRowKeys, Ed as isAccessDenied, Ei as withCreateTokenLedger, En as keptForRetainedRecord, Er as formatDestructiveChange, Eu as malformedOrphansWarning, F as recordedProtectionEvidence, Fa as withPreviousPolicies, Fc as prepareCloudFormationStackRetirement, Fd as isAbsoluteAssetPath, Ff as displayAssemblyPath, Fi as recordUnderIdIsNotOwn, Fl as getTopLevelKeysHoldingUnreadableCreateOnly, Fn as deleteSignalReceiver, Fr as changedReferenceReason, Fs as stackIdTailOf, Ga as noEchoAttributeNamesOf, Gc as promptYesNo, Gd as uploadCfnTemplate, Gi as orphanNeedsIdentity, Gl as isReadableOrphanRecord, Gn as readsOnlyNoEchoParameters, Go as verbatimEchoDriftKeys, Gr as createNoEchoValueMacs, Gs as isIamRoleArn, Gu as refuseMalformedResourcesForDestroy, Hc as SUPERSEDED_COPY_HINT, Hd as CFN_TEMPLATE_BODY_LIMIT, Hi as segmentCleanupOptions, Hl as declaresNoEcho, Hn as childStackTags, Ho as reReadUntilSettled, Hr as proposeRenames, Hs as assertFlagRoleArn, Hu as malformedResourcesWarning, I as recordedProtectionNote, Ia as findNestedStackTypeChanges, Ic as findReplacedCfnResources, Id as listNestedTemplateRows, Ii as replacementNeverSwapped, Il as tryGetTopLevelWriteOnlyProperties, In as isReceiver, Io as declaredMemberDocument, Ir as differingRemedy, Iu as refuseMalformedOutputs, Ja as withAttemptedItemsMasked, Jc as bold, Jd as decodeListingKey, Ji as nameScopeOf, Jl as malformedOrphanRowsKeptWarning, Jn as startForceQuitFlushes, Jo as CC_BROKEN_REASON, Jr as noEchoMacVerdict, Js as AWS_CREDENTIAL_ENV_KEYS, Ju as repairMalformedResourcesForReadOnly, Ka as noEchoComparisonForTemplate, Kc as serializePrompt, Kd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Ki as nameGenerationCarriedFrom, Kl as malformedOrphanRecordsRefusalMessage, Kr as noEchoMacBinding, Ks as parseIamRoleArn, Ku as refuseMalformedResourcesForExport, L as PROTECTION_PROPERTY_BY_TYPE, Lc as getCloudFormationResourceTree, Ld as renderNestedTemplateTreeDefect, Lf as renderAssemblyPathEscape, Li as IMPLICIT_DELETE_DEPENDENCIES, Ll as publicReferencesOf, Ln as removeSignalReceiverNamed, Lo as declaredPolicyDocument, Lr as isPairableType, Lt as tagsMatchDeclared, Lu as refuseMalformedOutputsForDestroy, M as findServiceTokenRefusals, Mc as taintedNamesOf, Mi as isReplacementOrphan, Ml as secretSegmentsOfState, Mn as refuseRefactorMarker, Mr as withMovedTo, Ms as isSelectOutOfBounds, Mu as malformedLocalOutputsWarning, N as serviceTokenBlockingReason, Na as snapshotSegmentSurvivors, Nc as templateMixesDynamicReference, Ni as planFailedOps, Nl as withSecretPhysicalIdsMaskedInState, Nn as sameMove, No as LAMBDA_PERMISSION_STATEMENT_KEYS, Nr as changedReferenceInDiff, Ns as isAlwaysLiveAttribute, Nt as declaredTagsReadback, Nu as malformedOutputsRefusalMessage, O as planReplaceResourceTargets, Oa as supersededHeldByOtherTypeWarning, Oc as mixesDynamicReference, Od as stackInstanceIdOf, Of as hasOwnKey, Oi as planRollback, On as readRefactorMarker, Or as findRefactorHints, Os as isWaitAbandonedError, Ou as refuseMalformedOrphansForDestroy, P as diffSecurity, Pa as resolveReplacementOldType, Pc as deleteRetiredCloudFormationStack, Pd as findNestedTemplateTreeDefect, Pf as describeFileReadFailure, Pi as recheckFailedPlan, Pl as getSettledWriteOnlyPropertyPaths, Pn as updateRefactorMarker, Pr as changedReferencePath, Ps as poisonRenderedSpellingsCollidingIn, Pu as malformedOutputsWarning, Q as streamPolicyMatchesDeclared, Qa as journaledOrphanPrintingBag, Qc as red, Qd as createAssetRedirectResolver, Qi as withNameGenerationReached, Ql as refuseMalformedOrphansForOrphan, Qn as planOrphanAdoption, Qo as wouldReturnToSdkProvider, Qr as undeclaredGrantSiblingMembers, Qs as classifyRecordedSecretRegion, Qu as STATE_RESOURCES_MALFORMED, R as isProtectionValueActive, Ra as cfnIngressPortValue, Rc as tryGetCloudFormationResourceMap, Rd as templateIdentity, Rf as resolveAssemblyPath, Ri as computeImplicitDeleteEdges, Rl as maskedPropertyFingerprintsOf, Rn as childTemplateLoader, Ro as efsPolicyMatchesDeclared, Rr as looselyEqual, Rs as resolveDynamicReferences, Ru as repairMalformedOutputsForReadOnly, S as warnLegacySpelling, Sa as maskingRetryLogger, Sc as crossStackTaintSeeds, Sd as CrossPrefixReadError, Sf as validateAssetBucketName, Si as replacementCreateRoutesToCloudControl, Sl as isStatefulRecreateTargetForReplace, Sr as crossStackReadsForPartialSave, Ss as UNSPECIFIED_SKIP_REASON, Su as repairMalformedResourcePropertiesForReadOnly, T as slashedSsmNameHealNote, Ta as isSupersededResourceRecord, Tc as maskPassedSecretReasons, Td as crossPrefixDeniedWarning, Tn as NestedCleanupQueue, Tr as formatChangeCounts, Ts as deleteSkipReason, Tu as malformedOrphansRefusalMessage, Ua as canonicalizeIpv4Cidr, Uc as cfnFailureText, Ud as CFN_TEMPLATE_URL_LIMIT, Ui as removeProtectionTypeList, Ul as maskedPropertyFingerprint, Un as literalRowTags, Ur as referencedLogicalIds, Us as assertSendableRoleArn, Uu as malformedStateRefusalMessage, Va as sgProtocolKey, Vc as stringifyCfnTemplate, Vd as ssmResolvedValueType, Vi as readsRegeneratingSecret, Vo as policyDocumentMatchesDeclared, Vr as propertiesChangedReason, Vs as applyRoleArnIfSet, Vu as malformedRenderedContainersWarning, Wa as canonicalizeIpProtocolValue, Wc as confirmOrRefuse, Wd as findLargeInlineResources, Wi as removeProtectionTypes, Wl as deployRefusesOrphanRowsReason, Wn as macWriteOnlyKeys, Wr as NOECHO_MAC_KEY_ALIAS, Ws as explicitRoleArnOrThrow, Wu as refuseMalformedResourcesForDeploy, Xa as createReadOnlyAttributeHealerFactory, Xc as gray, Xi as retiredNameGenerationsAfter, Xl as refuseMalformedOrphanRecords, Xn as resolvePendingCloudControlRequests, Xo as ccBrokenReason, Xr as siblingOwnedRevertDesired, Xs as callerEnvCredentials, Xu as accountArgs, Ya as noEchoExactEchoLeavesOf, Yc as cyan, Yi as retiredAfterRollback, Yl as previewableOrphanRecords, Yn as pendingRequestCount, Yo as ProviderRegistry, Yr as noEchoValueMacsOf, Ys as applyCallerIdentityCredentials, Yu as JSON_LISTING_HOLE_VALUE, Za as completedReplayEntries, Zc as green, Zd as buildAssetRedirectMap, Zi as retiredNameGenerationsLeaving, Zl as refuseMalformedOrphanRecordsForDestroy, Zn as makeSiblingClaimReader, Zo as isCustomResource, Zr as stripSiblingOwnedParentMembers, Zs as envCredentialsAreAssumedRole, Zu as withheldAccountClause, _ as readRecordedConditionVerdicts, _a as collectPublishedOutputNames, _c as lacksRecordedRefArn, _d as splitImportedOps, _f as assertAssetBucketRegion, _i as equalModuloMask, _o as unsupportedFinalSnapshotError, _r as loadJournaledOrphans, _s as withCustomResourceStack, _u as malformedResourcePropertiesWarning, a as mergeNoChangeOutputs, aa as WITHHELD_NAME_DISPLAY, ai as replayFailedOperations, al as recordedReferenceRegions, ao as secretNamedRecordNeedles, ar as recordDisplacedSkips, as as customResourceResponseExpirationWarning, au as malformedResourceEntriesWarning, b as pendingMovesRefusalMessage, ba as DEFAULT_RESOURCE_TIMEOUT_MS, bc as SECURITY_TABLE_WITHHELD, bd as hasUnverifiableParameterRefusal, bf as parseBootstrapMarker, bi as updatePartialReason, bl as shownType, br as DeploymentEventsReader, bu as refuseMalformedResourcePropertiesForExport, c as nestedSsmNameRowNote, ca as secretBearing, cd as NO_CC_HANDLERS_REASON, cf as getDockerImageBySourceHash, ci as PLANNED_EARLY_DELETE_CONSEQUENCE, cl as isImpossibleEmptyStoredAttribute, co as storedSecretNameNeedles, cr as withNestedRevertRun, cs as readsNoEchoDeleteValues, cu as refuseMalformedResourceEntries, d as makeCanonicalizePropertiesFn, da as carriedExportAliasExposure, dc as isUnboundTemplateParameter, dd as providerReplacementOldDeleted, di as buildReadCurrentStateContext, dl as carriesDynamicReference, do as PRE_DELETE_SNAPSHOT_TYPES, dr as withNestedStackContext, du as refuseMalformedResourceEntriesForImport, ea as inheritProducerRegions, ec as producerRegionsFromState, ed as displayLogicalId, ei as sgRuleOwnershipIdentity, eo as namingSecretsWithRecordedNoEcho, er as displacedOpClause, es as classifyHandleUrl, eu as unpreviewableOrphanRecords, f as readDbInstanceAvailabilityZone, fa as exportNameNoEchoParameters, fc as parameterTypeMayLoseSecretIdentity, fi as recordAfterRollbackUpdate, fl as keepsSecretReferenceToken, fo as ccRoutedFinalSnapshotError, fr as deleteJournaledOrphans, fs as customResourcesFailedWithoutApp, fu as refuseMalformedResourceEntriesForImportSave, g as parentSuppliedValues, ga as collectDeclaredOutputNames, gc as refStateLookupFromResource, gd as S3StateBackend, gf as buildDenyExternalAccessPolicy, gi as equalModuloMarkedMask, go as refusesFinalSnapshot, gr as journaledOrphanLines, gs as setLocalCustomResourceRuntimeEnabled, gu as malformedDriftResourcePropertiesWarning, h as conditionInputsFrom, ha as noEchoParameterValueSeed, hc as isStalePlaceholderArnAttribute, hd as TemplateParser, hf as ensureAssetStorage, hi as calculateResourceDrift, hl as LEGACY_HANDLE_HEAL_REASON, ho as isFinalSnapshotError, hr as isHandledOrphan, hu as unreadableResourceEntries, i as keptWholeReasonText, ia as resourcesNamingDeclaredParameter, id as findHandledUnwrittenCreateOnly, il as recordedOutputReferenceRegions, ir as nestedChildStackName$1, is as applyCustomResourceResponseExpiration, iu as malformedLocalResourcesWarning, j as deferredServiceTokenWarning, ja as withoutSuperseded, jc as securityDiffWithPassedSecretWithheld, jd as isSensitiveAttributeName, jf as ownValue, ji as isJournaledOrphan, jl as secretPhysicalIdSegment, jn as refactorMarkerRefusalMessage, jo as withStackRecords, jr as rollbackOrphanIds, js as IntrinsicFunctionResolver, ju as malformedExportSourceWarning, k as refuseStatefulReplaceResourceTargets, ka as supersededHolderOf, kc as readsTainted, kd as withStackInstanceIdWithheld, kf as hasPlainPrototype, ki as seedsDeleteFirstGuard, kl as displayPhysicalId, kn as readRefactorMarkerOnce, ko as revertStackRecordsView, kr as hintSidesOf, ku as repairMalformedOrphansForReadOnly, l as crossStackOutputProvenanceSource, la as secretBearingStateKeyWarning, ld as hasNoCloudControlHandlers, li as earlyDeleteWhen, ll as carriesFetchableDynamicReference, lo as extractDeploymentEventError, lr as collectNestedChildUnaddressed, ls as isCustomResourceType$1, lu as refuseMalformedResourceEntriesForDeploy, m as conditionFingerprint, ma as isWholeDynamicReferenceValue, mc as cfnRefValueFromPhysicalId, mf as AssetModeResolver, mi as withUnprovenUnsettled, ml as INTRINSIC_KEYS, mo as effectiveDeletionPolicy, mr as dropFailedHint, ms as localCustomResourceCommand, mu as repairMalformedResourceEntriesForReadOnly, n as applyStackTagsToTemplate, na as namesAnyDeclaredParameter, nc as withoutLapsedStaleShapeStamp, nd as hasReadableResources, nl as keepHeldTokenProvenance, no as secretNamePrintingBag, nr as dropSettledNestedJournals, ns as isSignalKey, nu as isReadableResourceEntry, o as checkNestedSsmNames, oa as displayTextOrWithheld, od as unwrittenCreateOnlyReplacement, of as rewriteTemplateAssetReferences, oi as replayRollback, ol as withoutVersionAttestation, oo as stackSecretNamesMasker, ou as malformedScrubResourceEntriesRefusalMessage, p as healZonelessDbInstanceRecords, pa as exportNameSecretExposure, pc as AWS_NO_VALUE, pi as settleUnsettledPrevious, pl as withSharedDrainBudget, po as ccRoutedInstanceTakesNoSnapshot, pr as dropFailedCommands, ps as customResourcesRunWithoutApp, pu as refuseMalformedResourceEntriesForOrphan, q as readStreamPolicy, qa as noEchoParameterNamesOf, qc as NESTED_STACK_RESOURCE_TYPE$1, qi as nameGenerationHighWaterOf, ql as malformedOrphanRecordsWarning, qn as formatResourceLine, qr as noEchoMacParametersOf, qs as sendableAssumeRoleCommand, qu as refuseMalformedState, r as isSecretBearingReferenceString, ra as reachableDivergentParameters, rc as isUnexposedRecordedIdentity, rd as findActionableSdkUnwired, rf as loadPublishableAssetManifest, ri as siblingRecordedSgRuleIds, ro as secretNamePrintingBags, rs as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, ru as malformedLocalResourceEntriesWarning, s as nestedSsmNameDeferredNote, sa as exportAliasCollisionScrubWarning, sf as AssetManifestLoader, si as DELETED_RESOURCE_REMEDY, sl as getAccountInfo, so as stateSecretNameNeedles, sr as revertedNestedRowIds, ss as TemplateNoEchoReresolver, su as refuseMalformedResourceAttributesForOrphan, t as DeployEngine, ta as computeParameterTaint, tc as regionLessSecretName, td as hasReadableOutputs, ti as sgSiblingDecidedById, tl as withPrintingSecrets, to as orphanRecordsPrintingBag, tr as displacedPhysicalIdShown, tu as unreadableOrphanRecords, u as inheritedProvenanceForChildDiff, ua as secretSafeKeyDisplay, uc as coerceParameterTypedValue, ud as PROPERTY_COVERAGE_BY_TYPE, ui as earlyDeletedOld, ul as isNamelessDynamicReferenceError, uo as ATOMIC_FINAL_SNAPSHOT_TYPES, ur as getCurrentNestedStackContext, us as NO_LOCAL_CUSTOM_RESOURCES_FLAG, uu as refuseMalformedResourceEntriesForDestroy, v as hasPendingMovesOut, va as isExportAliasCollision, vc as lacksRecordedTableArn, vd as readOnlyStateVersionOf, vf as isCrossRegionRedirect, vi as undeclaredEmptyObservedKeys, vl as findReplacedReadersOfRecreateTargets, vo as createPreDeleteFinalSnapshot, vr as sameJournaledOrphans, vu as refuseMalformedResourcePropertiesForDestroy, w as slashedSsmNameHealAdoptedNote, wa as holdsSupersededResources, wc as maskPassedSecretOutputs, wd as applyCrossPrefixScan, wf as BOOTSTRAP_MARKER_PREFIX, wi as ledgerForStack, wl as renderStatefulReason, wr as findDestructiveChanges, ws as deleteLeftInPlace, wu as hasReadableOrphans, x as refusePendingMovesOut, xa as DEFAULT_RESOURCE_WARN_AFTER_MS, xc as calculatorMaskingPassedSecretLines, xd as rebuildClientForBucketRegion, xf as readBootstrapMarkerBody, xi as findUpdatePolicyReplacementRefusals, xl as MULTI_REGION_RECREATE_BLOCKED_TYPES, xr as DeploymentEventsStore, xs as RollbackInlinePolicyWriters, xu as refuseMalformedResourcePropertiesForOrphan, y as pendingMovesOutOf, ya as bindingSkippedOutputs, yd as hasReasonlessBaselineRefusal, yf as getBootstrapMarkerKey, yi as updatePartialMessage, yl as refuseStatefulReplacedReaders, yo as buildFinalSnapshotIdentifier, yr as makeForeignHolderScan, ys as CloudControlProvider, yu as refuseMalformedResourcePropertiesForDrift, z as perType, za as recordedSgRuleId, zc as parseCfnTemplate, zi as typesDeletedBefore, zl as parameterInputsFor, zn as inRunStackKey, zo as lambdaPermissionMatchesDeclared, zr as mappingPairs, zs as producerLookupOver, zu as STATE_REGION_DIVERGED } from "./deploy-engine-BEzzfllj.js";
8
+ import { $ as createLegacyAssetParameterBinder, A as runDockerForeground, B as resolveCaptureObservedState, C as finchSecretArgvRefusal, D as isMalformedEnvKey, E as isDockerClientEnvKey, F as getDefaultStateBucketName, G as resolveUpdatePolicy, H as resolveStateBucketWithDefault, I as getLegacyStateBucketName, J as warnDeprecatedNoPrefixCliFlag, K as resolveUseCdkBootstrapAssets, L as loadCdkJson, M as abortInFlightMultipartUploads, N as Synthesizer, O as formatDockerLoginError, P as synthesisStatusMessage, Q as bindLegacyStackAssetParameters, R as resolveApp, S as dockerSpawnEnvWithSensitive, T as warnFinchArgvExposure, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as resolveStateBucketWithSource, X as AssemblyReader, Y as refuseFailedLookups, Z as StageLoadError, _ as describeDockerExecFailure, at as setChildProcessAwsEnv, b as redactedDockerCause, d as isLockInfoExpired, et as legacyPlanAssetCount, f as AssetPublisher, h as resolveDockerContextDirectory, i as mergeDeclaredEntries, it as processStackMessages, j as runDockerStreaming, k as getDockerCmd, l as DagBuilder, m as buildDockerImage, n as declaredStringList, nt as prepareLegacyStackAssets, p as WorkGraph, q as stateBucketExistenceConfirmed, r as inlinePoliciesAreDeclared, rt as CdkToolkitBucketMissingError, s as stringListIsDeclared, t as declaredInlinePolicies, tt as predictedAutoCreatedAssetMode, u as LockManager, v as describeDockerFailure, w as partitionSensitiveEnv, x as redactDockerArgvValues, y as redactedCause, z as resolveAutoAssetStorage } from "./settle-own-write-members-WuNz0klP.js";
9
+ import { $a as maskEventTextWithBoundBags, $c as yellow, $d as createLazyAssetModeContext, $l as repairMalformedOrphanRecordsForReadOnly, $n as NESTED_PENDING_PARENT_REASON, $o as WaitConditionSignalStore, $r as recordedRuleIdOf, $s as classifyReplaySecretRegion, $u as UNREADABLE_RESOURCES_MAP_ROW, A as renderUnreplacedTarget, Aa as supersededResourcesOf, Ac as recordedValuesOf, Ad as isSecretValuedAttribute, Af as nullPrototypeRecord, Ai as demoteSupersededOrphans, An as refactorMarkerMovesOf, Ar as movedToHint, As as DiffCalculator, Au as malformedExportNamesWarning, B as readProtection, Ba as sgCidrKey, Bc as parseCfnTemplateWithFormat, Bf as resolveBucketRegion, Bi as attemptUsesCompletedCreate, Bl as maskedInputProof, Bn as settleStackTagChildRuns, Bo as memberReadFailure, Br as parseMappingFile, Bs as refuseUnreadableCdkCrossAccountRefs, Bu as refuseDivergentRecordRegionForDestroy, C as healSlashedSsmParameterNames, Ca as deleteSupersededEntry, Cc as maskPassedSecretChanges, Cd as CrossPrefixScanCache, Cf as validateContainerRepoName, Cl as isStatefulRecreateTargetSync, Cr as constructPathOf$1, Cs as deleteIndeterminateGuards, Cu as UNREADABLE_ORPHANS_CONTAINER_ROW, D as scanActiveConsumers, Da as supersededDependentsFirst, Dc as mixedSecretTagKeys, Dd as isNotImplemented, Df as defineOwnKey, Dn as recordRetainedForReadoption, Do as destroyStackRecordsView, Dr as orphanedLogicalIds, Ds as getReadOnlyPropertyPaths, Du as refuseMalformedOrphans, E as slashedSsmNameHealPendingNote, Ea as supersededAfterRollback, Ec as mixedSecretRowKeys, Ed as isAccessDenied, Ei as withCreateTokenLedger, En as keptForRetainedRecord, Er as formatDestructiveChange, Eu as malformedOrphansWarning, F as recordedProtectionEvidence, Fa as withPreviousPolicies, Fc as prepareCloudFormationStackRetirement, Fd as isAbsoluteAssetPath, Ff as displayAssemblyPath, Fi as recordUnderIdIsNotOwn, Fl as getTopLevelKeysHoldingUnreadableCreateOnly, Fn as deleteSignalReceiver, Fr as changedReferenceReason, Fs as stackIdTailOf, Ga as noEchoAttributeNamesOf, Gc as promptYesNo, Gd as uploadCfnTemplate, Gi as orphanNeedsIdentity, Gl as isReadableOrphanRecord, Gn as readsOnlyNoEchoParameters, Go as verbatimEchoDriftKeys, Gr as createNoEchoValueMacs, Gs as isIamRoleArn, Gu as refuseMalformedResourcesForDestroy, Hc as SUPERSEDED_COPY_HINT, Hd as CFN_TEMPLATE_BODY_LIMIT, Hi as segmentCleanupOptions, Hl as declaresNoEcho, Hn as childStackTags, Ho as reReadUntilSettled, Hr as proposeRenames, Hs as assertFlagRoleArn, Hu as malformedResourcesWarning, I as recordedProtectionNote, Ia as findNestedStackTypeChanges, Ic as findReplacedCfnResources, Id as listNestedTemplateRows, Ii as replacementNeverSwapped, Il as tryGetTopLevelWriteOnlyProperties, In as isReceiver, Io as declaredMemberDocument, Ir as differingRemedy, Iu as refuseMalformedOutputs, Ja as withAttemptedItemsMasked, Jc as bold, Jd as decodeListingKey, Ji as nameScopeOf, Jl as malformedOrphanRowsKeptWarning, Jn as startForceQuitFlushes, Jo as CC_BROKEN_REASON, Jr as noEchoMacVerdict, Js as AWS_CREDENTIAL_ENV_KEYS, Ju as repairMalformedResourcesForReadOnly, Ka as noEchoComparisonForTemplate, Kc as serializePrompt, Kd as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Ki as nameGenerationCarriedFrom, Kl as malformedOrphanRecordsRefusalMessage, Kr as noEchoMacBinding, Ks as parseIamRoleArn, Ku as refuseMalformedResourcesForExport, L as PROTECTION_PROPERTY_BY_TYPE, Lc as getCloudFormationResourceTree, Ld as renderNestedTemplateTreeDefect, Lf as renderAssemblyPathEscape, Li as IMPLICIT_DELETE_DEPENDENCIES, Ll as publicReferencesOf, Ln as removeSignalReceiverNamed, Lo as declaredPolicyDocument, Lr as isPairableType, Lt as tagsMatchDeclared, Lu as refuseMalformedOutputsForDestroy, M as findServiceTokenRefusals, Mc as taintedNamesOf, Mi as isReplacementOrphan, Ml as secretSegmentsOfState, Mn as refuseRefactorMarker, Mr as withMovedTo, Ms as isSelectOutOfBounds, Mu as malformedLocalOutputsWarning, N as serviceTokenBlockingReason, Na as snapshotSegmentSurvivors, Nc as templateMixesDynamicReference, Ni as planFailedOps, Nl as withSecretPhysicalIdsMaskedInState, Nn as sameMove, No as LAMBDA_PERMISSION_STATEMENT_KEYS, Nr as changedReferenceInDiff, Ns as isAlwaysLiveAttribute, Nt as declaredTagsReadback, Nu as malformedOutputsRefusalMessage, O as planReplaceResourceTargets, Oa as supersededHeldByOtherTypeWarning, Oc as mixesDynamicReference, Od as stackInstanceIdOf, Of as hasOwnKey, Oi as planRollback, On as readRefactorMarker, Or as findRefactorHints, Os as isWaitAbandonedError, Ou as refuseMalformedOrphansForDestroy, P as diffSecurity, Pa as resolveReplacementOldType, Pc as deleteRetiredCloudFormationStack, Pd as findNestedTemplateTreeDefect, Pf as describeFileReadFailure, Pi as recheckFailedPlan, Pl as getSettledWriteOnlyPropertyPaths, Pn as updateRefactorMarker, Pr as changedReferencePath, Ps as poisonRenderedSpellingsCollidingIn, Pu as malformedOutputsWarning, Q as streamPolicyMatchesDeclared, Qa as journaledOrphanPrintingBag, Qc as red, Qd as createAssetRedirectResolver, Qi as withNameGenerationReached, Ql as refuseMalformedOrphansForOrphan, Qn as planOrphanAdoption, Qo as wouldReturnToSdkProvider, Qr as undeclaredGrantSiblingMembers, Qs as classifyRecordedSecretRegion, Qu as STATE_RESOURCES_MALFORMED, R as isProtectionValueActive, Ra as cfnIngressPortValue, Rc as tryGetCloudFormationResourceMap, Rd as templateIdentity, Rf as resolveAssemblyPath, Ri as computeImplicitDeleteEdges, Rl as maskedPropertyFingerprintsOf, Rn as childTemplateLoader, Ro as efsPolicyMatchesDeclared, Rr as looselyEqual, Rs as resolveDynamicReferences, Ru as repairMalformedOutputsForReadOnly, S as warnLegacySpelling, Sa as maskingRetryLogger, Sc as crossStackTaintSeeds, Sd as CrossPrefixReadError, Sf as validateAssetBucketName, Si as replacementCreateRoutesToCloudControl, Sl as isStatefulRecreateTargetForReplace, Sr as crossStackReadsForPartialSave, Ss as UNSPECIFIED_SKIP_REASON, Su as repairMalformedResourcePropertiesForReadOnly, T as slashedSsmNameHealNote, Ta as isSupersededResourceRecord, Tc as maskPassedSecretReasons, Td as crossPrefixDeniedWarning, Tn as NestedCleanupQueue, Tr as formatChangeCounts, Ts as deleteSkipReason, Tu as malformedOrphansRefusalMessage, Ua as canonicalizeIpv4Cidr, Uc as cfnFailureText, Ud as CFN_TEMPLATE_URL_LIMIT, Ui as removeProtectionTypeList, Ul as maskedPropertyFingerprint, Un as literalRowTags, Ur as referencedLogicalIds, Us as assertSendableRoleArn, Uu as malformedStateRefusalMessage, Va as sgProtocolKey, Vc as stringifyCfnTemplate, Vd as ssmResolvedValueType, Vi as readsRegeneratingSecret, Vo as policyDocumentMatchesDeclared, Vr as propertiesChangedReason, Vs as applyRoleArnIfSet, Vu as malformedRenderedContainersWarning, Wa as canonicalizeIpProtocolValue, Wc as confirmOrRefuse, Wd as findLargeInlineResources, Wi as removeProtectionTypes, Wl as deployRefusesOrphanRowsReason, Wn as macWriteOnlyKeys, Wr as NOECHO_MAC_KEY_ALIAS, Ws as explicitRoleArnOrThrow, Wu as refuseMalformedResourcesForDeploy, Xa as createReadOnlyAttributeHealerFactory, Xc as gray, Xi as retiredNameGenerationsAfter, Xl as refuseMalformedOrphanRecords, Xn as resolvePendingCloudControlRequests, Xo as ccBrokenReason, Xr as siblingOwnedRevertDesired, Xs as callerEnvCredentials, Xu as accountArgs, Ya as noEchoExactEchoLeavesOf, Yc as cyan, Yi as retiredAfterRollback, Yl as previewableOrphanRecords, Yn as pendingRequestCount, Yo as ProviderRegistry, Yr as noEchoValueMacsOf, Ys as applyCallerIdentityCredentials, Yu as JSON_LISTING_HOLE_VALUE, Za as completedReplayEntries, Zc as green, Zd as buildAssetRedirectMap, Zi as retiredNameGenerationsLeaving, Zl as refuseMalformedOrphanRecordsForDestroy, Zn as makeSiblingClaimReader, Zo as isCustomResource, Zr as stripSiblingOwnedParentMembers, Zs as envCredentialsAreAssumedRole, Zu as withheldAccountClause, _ as readRecordedConditionVerdicts, _a as collectPublishedOutputNames, _c as lacksRecordedRefArn, _d as splitImportedOps, _f as assertAssetBucketRegion, _i as equalModuloMask, _o as unsupportedFinalSnapshotError, _r as loadJournaledOrphans, _s as withCustomResourceStack, _u as malformedResourcePropertiesWarning, a as mergeNoChangeOutputs, aa as WITHHELD_NAME_DISPLAY, ai as replayFailedOperations, al as recordedReferenceRegions, ao as secretNamedRecordNeedles, ar as recordDisplacedSkips, as as customResourceResponseExpirationWarning, au as malformedResourceEntriesWarning, b as pendingMovesRefusalMessage, ba as DEFAULT_RESOURCE_TIMEOUT_MS, bc as SECURITY_TABLE_WITHHELD, bd as hasUnverifiableParameterRefusal, bf as parseBootstrapMarker, bi as updatePartialReason, bl as shownType, br as DeploymentEventsReader, bu as refuseMalformedResourcePropertiesForExport, c as nestedSsmNameRowNote, ca as secretBearing, cd as NO_CC_HANDLERS_REASON, cf as getDockerImageBySourceHash, ci as PLANNED_EARLY_DELETE_CONSEQUENCE, cl as isImpossibleEmptyStoredAttribute, co as storedSecretNameNeedles, cr as withNestedRevertRun, cs as readsNoEchoDeleteValues, cu as refuseMalformedResourceEntries, d as makeCanonicalizePropertiesFn, da as carriedExportAliasExposure, dc as isUnboundTemplateParameter, dd as providerReplacementOldDeleted, di as buildReadCurrentStateContext, dl as carriesDynamicReference, do as PRE_DELETE_SNAPSHOT_TYPES, dr as withNestedStackContext, du as refuseMalformedResourceEntriesForImport, ea as inheritProducerRegions, ec as producerRegionsFromState, ed as displayLogicalId, ei as sgRuleOwnershipIdentity, eo as namingSecretsWithRecordedNoEcho, er as displacedOpClause, es as classifyHandleUrl, eu as unpreviewableOrphanRecords, f as readDbInstanceAvailabilityZone, fa as exportNameNoEchoParameters, fc as parameterTypeMayLoseSecretIdentity, fi as recordAfterRollbackUpdate, fl as keepsSecretReferenceToken, fo as ccRoutedFinalSnapshotError, fr as deleteJournaledOrphans, fs as customResourcesFailedWithoutApp, fu as refuseMalformedResourceEntriesForImportSave, g as parentSuppliedValues, ga as collectDeclaredOutputNames, gc as refStateLookupFromResource, gd as S3StateBackend, gf as buildDenyExternalAccessPolicy, gi as equalModuloMarkedMask, go as refusesFinalSnapshot, gr as journaledOrphanLines, gs as setLocalCustomResourceRuntimeEnabled, gu as malformedDriftResourcePropertiesWarning, h as conditionInputsFrom, ha as noEchoParameterValueSeed, hc as isStalePlaceholderArnAttribute, hd as TemplateParser, hf as ensureAssetStorage, hi as calculateResourceDrift, hl as LEGACY_HANDLE_HEAL_REASON, ho as isFinalSnapshotError, hr as isHandledOrphan, hu as unreadableResourceEntries, i as keptWholeReasonText, ia as resourcesNamingDeclaredParameter, id as findHandledUnwrittenCreateOnly, il as recordedOutputReferenceRegions, ir as nestedChildStackName$1, is as applyCustomResourceResponseExpiration, iu as malformedLocalResourcesWarning, j as deferredServiceTokenWarning, ja as withoutSuperseded, jc as securityDiffWithPassedSecretWithheld, jd as isSensitiveAttributeName, jf as ownValue, ji as isJournaledOrphan, jl as secretPhysicalIdSegment, jn as refactorMarkerRefusalMessage, jo as withStackRecords, jr as rollbackOrphanIds, js as IntrinsicFunctionResolver, ju as malformedExportSourceWarning, k as refuseStatefulReplaceResourceTargets, ka as supersededHolderOf, kc as readsTainted, kd as withStackInstanceIdWithheld, kf as hasPlainPrototype, ki as seedsDeleteFirstGuard, kl as displayPhysicalId, kn as readRefactorMarkerOnce, ko as revertStackRecordsView, kr as hintSidesOf, ku as repairMalformedOrphansForReadOnly, l as crossStackOutputProvenanceSource, la as secretBearingStateKeyWarning, ld as hasNoCloudControlHandlers, li as earlyDeleteWhen, ll as carriesFetchableDynamicReference, lo as extractDeploymentEventError, lr as collectNestedChildUnaddressed, ls as isCustomResourceType$1, lu as refuseMalformedResourceEntriesForDeploy, m as conditionFingerprint, ma as isWholeDynamicReferenceValue, mc as cfnRefValueFromPhysicalId, mf as AssetModeResolver, mi as withUnprovenUnsettled, ml as INTRINSIC_KEYS, mo as effectiveDeletionPolicy, mr as dropFailedHint, ms as localCustomResourceCommand, mu as repairMalformedResourceEntriesForReadOnly, n as applyStackTagsToTemplate, na as namesAnyDeclaredParameter, nc as withoutLapsedStaleShapeStamp, nd as hasReadableResources, nl as keepHeldTokenProvenance, no as secretNamePrintingBag, nr as dropSettledNestedJournals, ns as isSignalKey, nu as isReadableResourceEntry, o as checkNestedSsmNames, oa as displayTextOrWithheld, od as unwrittenCreateOnlyReplacement, of as rewriteTemplateAssetReferences, oi as replayRollback, ol as withoutVersionAttestation, oo as stackSecretNamesMasker, ou as malformedScrubResourceEntriesRefusalMessage, p as healZonelessDbInstanceRecords, pa as exportNameSecretExposure, pc as AWS_NO_VALUE, pi as settleUnsettledPrevious, pl as withSharedDrainBudget, po as ccRoutedInstanceTakesNoSnapshot, pr as dropFailedCommands, ps as customResourcesRunWithoutApp, pu as refuseMalformedResourceEntriesForOrphan, q as readStreamPolicy, qa as noEchoParameterNamesOf, qc as NESTED_STACK_RESOURCE_TYPE$1, qi as nameGenerationHighWaterOf, ql as malformedOrphanRecordsWarning, qn as formatResourceLine, qr as noEchoMacParametersOf, qs as sendableAssumeRoleCommand, qu as refuseMalformedState, r as isSecretBearingReferenceString, ra as reachableDivergentParameters, rc as isUnexposedRecordedIdentity, rd as findActionableSdkUnwired, rf as loadPublishableAssetManifest, ri as siblingRecordedSgRuleIds, ro as secretNamePrintingBags, rs as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, ru as malformedLocalResourceEntriesWarning, s as nestedSsmNameDeferredNote, sa as exportAliasCollisionScrubWarning, sf as AssetManifestLoader, si as DELETED_RESOURCE_REMEDY, sl as getAccountInfo, so as stateSecretNameNeedles, sr as revertedNestedRowIds, ss as TemplateNoEchoReresolver, su as refuseMalformedResourceAttributesForOrphan, t as DeployEngine, ta as computeParameterTaint, tc as regionLessSecretName, td as hasReadableOutputs, ti as sgSiblingDecidedById, tl as withPrintingSecrets, to as orphanRecordsPrintingBag, tr as displacedPhysicalIdShown, tu as unreadableOrphanRecords, u as inheritedProvenanceForChildDiff, ua as secretSafeKeyDisplay, uc as coerceParameterTypedValue, ud as PROPERTY_COVERAGE_BY_TYPE, ui as earlyDeletedOld, ul as isNamelessDynamicReferenceError, uo as ATOMIC_FINAL_SNAPSHOT_TYPES, ur as getCurrentNestedStackContext, us as NO_LOCAL_CUSTOM_RESOURCES_FLAG, uu as refuseMalformedResourceEntriesForDestroy, v as hasPendingMovesOut, va as isExportAliasCollision, vc as lacksRecordedTableArn, vd as readOnlyStateVersionOf, vf as isCrossRegionRedirect, vi as undeclaredEmptyObservedKeys, vl as findReplacedReadersOfRecreateTargets, vo as createPreDeleteFinalSnapshot, vr as sameJournaledOrphans, vu as refuseMalformedResourcePropertiesForDestroy, w as slashedSsmNameHealAdoptedNote, wa as holdsSupersededResources, wc as maskPassedSecretOutputs, wd as applyCrossPrefixScan, wf as BOOTSTRAP_MARKER_PREFIX, wi as ledgerForStack, wl as renderStatefulReason, wr as findDestructiveChanges, ws as deleteLeftInPlace, wu as hasReadableOrphans, x as refusePendingMovesOut, xa as DEFAULT_RESOURCE_WARN_AFTER_MS, xc as calculatorMaskingPassedSecretLines, xd as rebuildClientForBucketRegion, xf as readBootstrapMarkerBody, xi as findUpdatePolicyReplacementRefusals, xl as MULTI_REGION_RECREATE_BLOCKED_TYPES, xr as DeploymentEventsStore, xs as RollbackInlinePolicyWriters, xu as refuseMalformedResourcePropertiesForOrphan, y as pendingMovesOutOf, ya as bindingSkippedOutputs, yd as hasReasonlessBaselineRefusal, yf as getBootstrapMarkerKey, yi as updatePartialMessage, yl as refuseStatefulReplacedReaders, yo as buildFinalSnapshotIdentifier, yr as makeForeignHolderScan, ys as CloudControlProvider, yu as refuseMalformedResourcePropertiesForDrift, z as perType, za as recordedSgRuleId, zc as parseCfnTemplate, zi as typesDeletedBefore, zl as parameterInputsFor, zn as inRunStackKey, zo as lambdaPermissionMatchesDeclared, zr as mappingPairs, zs as producerLookupOver, zu as STATE_REGION_DIVERGED } from "./deploy-engine-7gPM_z0r.js";
10
10
  import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
11
- import { D as describeJsonParseFailure, T as timePhase, a as getCreateOnlyPropertyPaths, b as PhaseClock, c as templateResourceTypes, f as describeTypeWithThrottleRetry, j as utf8ByteLength, k as parseFailureDebugDetail, s as prefetchCreateOnlyPropertyPaths, v as withRetry, w as renderPhaseTimings } from "./secret-reference-immutable-OIvSuvpM.js";
12
- import { l as setResolvedResourceTimeouts } from "./ec2-termination-protection-BeYoGs66.js";
13
- import { t as expectedOwnerParam } from "./expected-bucket-owner-DASdeJRs.js";
14
- 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-C_hilY_A.js";
15
- import { A as maskWholeValue, B as readsNoEchoSource, E as isMarkedCoordinate, F as noEchoOutputsComparison, H as recordedNoEchoValuesOf, K as liveMatchesUnresolvedTokenFrame, N as noEchoCoordinatesOf, O as maskAtCoordinates, P as noEchoLeavesOf, S as withOffTemplateEchoesMasked, W as valueAtCoordinate, _ as storedRecordFinisher, b as maskOffTemplateEchoes, j as maskedLeafCoordinatesOf, k as maskReadbackAtCoordinates, w as canonicalCoordinates, x as observedMaskedLeavesOf } from "./replacement-rules-HtPsWZIV.js";
16
- import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-BIaZBr57.js";
17
- import { u as differingIdentityWarning } from "./identity-read-denied-CGR1hIyA.js";
18
- import { n as isRedactedRecordedValue } from "./redacted-delete-address-BrPnoyD9.js";
19
- import { a as withResourceDeadline } from "./resource-deadline-nSheE7zd.js";
20
- import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-DcNB-WSe.js";
11
+ import { D as describeJsonParseFailure, T as timePhase, a as getCreateOnlyPropertyPaths, b as PhaseClock, c as templateResourceTypes, f as describeTypeWithThrottleRetry, j as utf8ByteLength, k as parseFailureDebugDetail, s as prefetchCreateOnlyPropertyPaths, v as withRetry, w as renderPhaseTimings } from "./secret-reference-immutable-CGZO-iyw.js";
12
+ import { l as setResolvedResourceTimeouts } from "./ec2-termination-protection-C3bNJVAK.js";
13
+ import { t as expectedOwnerParam } from "./expected-bucket-owner-NU2Veqhr.js";
14
+ 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-C-Fplb9I.js";
15
+ import { C as observedMaskedLeavesOf, D as canonicalCoordinates, E as noEchoOutputsComparison, H as readsNoEchoSource, I as noEchoCoordinatesOf, J as liveMatchesUnresolvedTokenFrame, K as valueAtCoordinate, L as noEchoLeavesOf, M as maskReadbackAtCoordinates, N as maskWholeValue, P as maskedLeafCoordinatesOf, S as maskOffTemplateEchoes, W as recordedNoEchoValuesOf, _ as storedNoEchoInputsKnown, j as maskAtCoordinates, k as isMarkedCoordinate, v as storedRecordFinisher, w as withOffTemplateEchoesMasked } from "./replacement-rules-bf4K_Yka.js";
16
+ import { m as SURVIVOR_IDENTITY_ATTRIBUTES, u as differingIdentityWarning } from "./identity-read-denied-BnZ-p9kt.js";
17
+ import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-DRxM4nEI.js";
18
+ import { n as isRedactedRecordedValue } from "./redacted-delete-address-DAZayV8w.js";
19
+ import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-Dy7a2hEI.js";
21
20
  import { t as cdkdCacheHome } from "./cache-home-BVYKj3de.js";
22
21
  import { randomBytes, randomUUID } from "node:crypto";
23
22
  import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
@@ -1561,7 +1560,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
1561
1560
  // src/provisioning/register-providers.ts
1562
1561
  let providerClasses;
1563
1562
  function loadProviderClasses() {
1564
- providerClasses ??= import("./provider-classes-BydpQUFi.js");
1563
+ providerClasses ??= import("./provider-classes-BesMsi8i.js");
1565
1564
  return providerClasses;
1566
1565
  }
1567
1566
  function registerAllProviders(registry, classes) {
@@ -7292,7 +7291,7 @@ async function repairExportIndexForStack(store, stackName, producerRegion, outpu
7292
7291
  }
7293
7292
 
7294
7293
  // src/cli/commands/scrub/command-report.ts
7295
- async function reportScrubOutcome({ options, logger, stateBackend, totalStacksScrubbed, rewrittenStacks, totalParentAttributesUnmatched, totalStacksWithUnscrubbableKeys, totalStacksWithUnverifiableReads, totalStacksWithUnverifiableLeaves, totalStacksWithUnrepairedReadNames, totalOutputKeysDropped, totalStacksWithReadOutputKeys, droppedReadersUnverifiedStacks, malformedRecords, malformedOutputRecords, malformedOrphanRecords, damagedProducerStacks, failures, exportIndexStores, examinedIndexNames, totalIndexEntriesConverged, historyPurgedStacks, totalIndexEntriesAbsent, totalIndexEntriesAbsentWithSecret, indexUnwritten, indexUnreadable, indexRegionsWritten, work }) {
7294
+ async function reportScrubOutcome({ options, logger, stateBackend, totalStacksScrubbed, rewrittenStacks, totalParentAttributesUnmatched, totalStacksWithUnscrubbableKeys, totalStacksWithUnverifiableReads, totalStacksWithUnverifiableLeaves, totalStacksWithUnrepairedReadNames, totalStacksWithUnverifiableNoEchoRecords = 0, totalOutputKeysDropped, totalStacksWithReadOutputKeys, droppedReadersUnverifiedStacks, malformedRecords, malformedOutputRecords, malformedOrphanRecords, damagedProducerStacks, failures, exportIndexStores, examinedIndexNames, totalIndexEntriesConverged, historyPurgedStacks, totalIndexEntriesAbsent, totalIndexEntriesAbsentWithSecret, indexUnwritten, indexUnreadable, indexRegionsWritten, work }) {
7296
7295
  let totalIndexEntriesUnexamined = 0;
7297
7296
  for (const indexRegion of indexRegionsWritten) await stateBackend.purgeNoncurrentVersions([scrubbedExportIndexKey(stateBackend, indexRegion)], { objectDescription: SCRUBBED_EXPORT_INDEX_OBJECT_DESCRIPTION });
7298
7297
  const historyNote = () => {
@@ -7320,7 +7319,8 @@ async function reportScrubOutcome({ options, logger, stateBackend, totalStacksSc
7320
7319
  totalIndexEntriesUnexamined += unexamined.length;
7321
7320
  logger.info(`Exports index (${displayIdent(indexRegion)}): ${unexamined.length} entr${unexamined.length === 1 ? "y is" : "ies are"} published by a producer this run did not scrub, so nothing here read ${unexamined.length === 1 ? "its" : "their"} value. Coverage composes across the apps sharing this bucket and region — run each app's own cdkd scrub to reach its entries.`);
7322
7321
  }
7323
- if (totalStacksScrubbed === 0 && totalStacksWithUnscrubbableKeys === 0 && totalStacksWithUnverifiableReads === 0 && totalStacksWithUnverifiableLeaves === 0 && totalStacksWithUnrepairedReadNames === 0 && totalStacksWithReadOutputKeys === 0 && totalIndexEntriesAbsentWithSecret === 0 && droppedReadersUnverifiedStacks.length === 0 && totalParentAttributesUnmatched === 0 && totalIndexEntriesConverged === 0 && indexUnwritten.length === 0 && indexUnreadable.length === 0 && malformedRecords.length === 0 && malformedOutputRecords.length === 0 && malformedOrphanRecords.length === 0) {
7322
+ const failingFindingsAbsent = totalStacksScrubbed === 0 && totalStacksWithUnscrubbableKeys === 0 && totalStacksWithUnverifiableReads === 0 && totalStacksWithUnverifiableLeaves === 0 && totalStacksWithUnrepairedReadNames === 0 && totalStacksWithUnverifiableNoEchoRecords === 0 && totalStacksWithReadOutputKeys === 0 && totalIndexEntriesAbsentWithSecret === 0 && droppedReadersUnverifiedStacks.length === 0 && totalParentAttributesUnmatched === 0 && totalIndexEntriesConverged === 0 && indexUnwritten.length === 0 && indexUnreadable.length === 0 && malformedRecords.length === 0 && malformedOutputRecords.length === 0 && malformedOrphanRecords.length === 0;
7323
+ if (failingFindingsAbsent) {
7324
7324
  if (failures.length === 0) {
7325
7325
  logger.info(safeMsg`\nNo plaintext secrets found in any target stack state${SCRUB_CLEAN_SCOPE_NOTE}. Nothing to scrub.${historyNote()}`);
7326
7326
  return;
@@ -7334,6 +7334,7 @@ async function reportScrubOutcome({ options, logger, stateBackend, totalStacksSc
7334
7334
  const unverifiableNote = totalStacksWithUnverifiableReads > 0 ? ` ${totalStacksWithUnverifiableReads} stack(s) carry a cross-stack read that could NOT be verified, so their imported values were not checked — see the warnings above for which read, why, and what to do about it.` : "";
7335
7335
  const outputKeyNote = (totalOutputKeysDropped > 0 ? ` ${totalOutputKeysDropped} output key(s) the template no longer declares ${options.dryRun ? "would be" : "were"} dropped: their values could not be identified, and they are not necessarily secrets (see the lines above).` : "") + (totalStacksWithReadOutputKeys > 0 ? ` ${totalStacksWithReadOutputKeys} stack(s) keep an undeclared output key another stack still reads, or one that may be a live export alias — its value can still be printed by cdkd diff; see the warnings above.` : "");
7336
7336
  const readNameNote = totalStacksWithUnrepairedReadNames > 0 ? ` ${totalStacksWithUnrepairedReadNames} stack(s) hold a cross-stack read name in plaintext that scrub could NOT repair, most likely a secret's value from before a rotation — see the warnings above.` : "";
7337
+ const storedNoEchoNote = totalStacksWithUnverifiableNoEchoRecords > 0 ? ` ${totalStacksWithUnverifiableNoEchoRecords} stack(s) hold an orphan or superseded record whose NoEcho positions scrub could NOT verify — see the warnings above.` : "";
7337
7338
  const parentAttributeNote = totalParentAttributesUnmatched > 0 ? ` ${totalParentAttributesUnmatched} nested-stack output attribute(s) in a parent record hold a plaintext scrub could NOT match to its child's output — see the warnings above.` : "";
7338
7339
  const indexNote = (() => {
7339
7340
  const parts = [];
@@ -7344,24 +7345,24 @@ async function reportScrubOutcome({ options, logger, stateBackend, totalStacksSc
7344
7345
  return parts.join("");
7345
7346
  })();
7346
7347
  if (options.dryRun) {
7347
- if (totalStacksScrubbed > 0) logger.info(`\nPlan: ${totalStacksScrubbed} stack(s) hold plaintext secrets and would be scrubbed (--dry-run, no state written).${keyNote}${unverifiableNote}${readNameNote}${outputKeyNote}${parentAttributeNote}${leafNote}${indexNote}${failureNote} ROTATE any exposed secret in Secrets Manager.`);
7348
- else logger.info(`\nPlan: no state record can be rewritten.${keyNote}${unverifiableNote}${readNameNote}${outputKeyNote}${parentAttributeNote}${leafNote}${indexNote}${failureNote} ROTATE any exposed secret.`);
7348
+ if (totalStacksScrubbed > 0) logger.info(`\nPlan: ${totalStacksScrubbed} stack(s) hold plaintext secrets and would be scrubbed (--dry-run, no state written).${keyNote}${unverifiableNote}${readNameNote}${storedNoEchoNote}${outputKeyNote}${parentAttributeNote}${leafNote}${indexNote}${failureNote} ROTATE any exposed secret in Secrets Manager.`);
7349
+ else logger.info(`\nPlan: no state record can be rewritten.${keyNote}${unverifiableNote}${readNameNote}${storedNoEchoNote}${outputKeyNote}${parentAttributeNote}${leafNote}${indexNote}${failureNote} ROTATE any exposed secret.`);
7349
7350
  if (failures.length > 0) throw scrubStacksFailedError(failures);
7350
7351
  if (indexUnwritten.length > 0 || indexUnreadable.length > 0) throw exportIndexIncompleteError(indexUnwritten, indexUnreadable, true);
7351
7352
  if (malformedRecords.length > 0 || malformedOutputRecords.length > 0 || malformedOrphanRecords.length > 0) throw malformedRecordsAuditedError(malformedRecords, malformedOutputRecords, malformedOrphanRecords);
7352
7353
  if (damagedProducerStacks.length > 0) throw damagedProducerRecordsError(damagedProducerStacks);
7353
7354
  if (droppedReadersUnverifiedStacks.length > 0) throw droppedOutputReadersUnverifiedError(droppedReadersUnverifiedStacks);
7354
- if (options.fail) throw new ScrubNeededError();
7355
+ if (options.fail && !failingFindingsAbsent) throw new ScrubNeededError();
7355
7356
  return;
7356
7357
  }
7357
- if (totalStacksScrubbed > 0) logger.info(`\nDone: scrubbed ${totalStacksScrubbed} stack(s). The rewritten state.json no longer holds the plaintext, and on a VERSIONED state bucket its earlier versions were purged, unless a warning above says otherwise. A value that was ever persisted must still be treated as compromised — ROTATE it in Secrets Manager (scrub matches the current value, so scrub BEFORE rotating); rotation is what makes any copy cdkd cannot reach harmless.${historyNote()}${keyNote}${unverifiableNote}${readNameNote}${outputKeyNote}${parentAttributeNote}${leafNote}${indexNote}${failureNote}`);
7358
- else logger.info(`\nNo state record was rewritten.${historyNote()}${keyNote}${unverifiableNote}${readNameNote}${outputKeyNote}${parentAttributeNote}${leafNote}${indexNote}${failureNote} ROTATE any exposed secret.`);
7358
+ if (totalStacksScrubbed > 0) logger.info(`\nDone: scrubbed ${totalStacksScrubbed} stack(s). The rewritten state.json no longer holds the plaintext, and on a VERSIONED state bucket its earlier versions were purged, unless a warning above says otherwise. A value that was ever persisted must still be treated as compromised — ROTATE it in Secrets Manager (scrub matches the current value, so scrub BEFORE rotating); rotation is what makes any copy cdkd cannot reach harmless.${historyNote()}${keyNote}${unverifiableNote}${readNameNote}${storedNoEchoNote}${outputKeyNote}${parentAttributeNote}${leafNote}${indexNote}${failureNote}`);
7359
+ else logger.info(`\nNo state record was rewritten.${historyNote()}${keyNote}${unverifiableNote}${readNameNote}${storedNoEchoNote}${outputKeyNote}${parentAttributeNote}${leafNote}${indexNote}${failureNote} ROTATE any exposed secret.`);
7359
7360
  if (failures.length > 0) throw scrubStacksFailedError(failures);
7360
7361
  if (indexUnwritten.length > 0 || indexUnreadable.length > 0) throw exportIndexIncompleteError(indexUnwritten, indexUnreadable, false);
7361
7362
  if (malformedRecords.length > 0 || malformedOutputRecords.length > 0 || malformedOrphanRecords.length > 0) throw malformedRecordsAuditedError(malformedRecords, malformedOutputRecords, malformedOrphanRecords);
7362
7363
  if (damagedProducerStacks.length > 0) throw damagedProducerRecordsError(damagedProducerStacks);
7363
7364
  if (droppedReadersUnverifiedStacks.length > 0) throw droppedOutputReadersUnverifiedError(droppedReadersUnverifiedStacks);
7364
- if (options.fail && (totalStacksWithUnscrubbableKeys > 0 || totalStacksWithUnverifiableReads > 0 || totalStacksWithUnrepairedReadNames > 0 || totalStacksWithReadOutputKeys > 0 || totalIndexEntriesAbsentWithSecret > 0 || totalParentAttributesUnmatched > 0 || totalStacksWithUnverifiableLeaves > 0)) throw new ScrubNeededError();
7365
+ if (options.fail && (totalStacksWithUnscrubbableKeys > 0 || totalStacksWithUnverifiableReads > 0 || totalStacksWithUnrepairedReadNames > 0 || totalStacksWithReadOutputKeys > 0 || totalIndexEntriesAbsentWithSecret > 0 || totalParentAttributesUnmatched > 0 || totalStacksWithUnverifiableLeaves > 0 || totalStacksWithUnverifiableNoEchoRecords > 0)) throw new ScrubNeededError();
7365
7366
  }
7366
7367
 
7367
7368
  // src/cli/commands/scrub/outputs.ts
@@ -8201,7 +8202,7 @@ function positionTwinReferences(stored, positioned, template, secrets, resolved)
8201
8202
  });
8202
8203
  return changed ? out : p;
8203
8204
  }
8204
- if (!isPlainRecord$4(t) || !isPlainRecord$4(s) || !isPlainRecord$4(p)) return p;
8205
+ if (!isPlainRecord$5(t) || !isPlainRecord$5(s) || !isPlainRecord$5(p)) return p;
8205
8206
  let out;
8206
8207
  for (const key of Object.keys(t)) {
8207
8208
  if (!Object.hasOwn(s, key) || !Object.hasOwn(p, key)) continue;
@@ -8218,9 +8219,9 @@ function positionTwinReferences(stored, positioned, template, secrets, resolved)
8218
8219
  function corroborates(s, t, r, plaintexts) {
8219
8220
  if (typeof t === "string") return typeof s === "string" && (dynamicReferenceSpans(t).length > 0 || s === t);
8220
8221
  if (Array.isArray(t)) return Array.isArray(s) && s.length === t.length && t.every((item, i) => corroborates(s[i], item, elementOf(r, t, i), plaintexts));
8221
- if (isPlainRecord$4(t)) {
8222
+ if (isPlainRecord$5(t)) {
8222
8223
  if (isIntrinsicNode(t) && certainResolution(r, plaintexts) && sameValue(s, r)) return true;
8223
- if (!isPlainRecord$4(s)) return false;
8224
+ if (!isPlainRecord$5(s)) return false;
8224
8225
  const keys = Object.keys(t);
8225
8226
  return keys.length === Object.keys(s).length && keys.every((key) => Object.hasOwn(s, key) && corroborates(s[key], t[key], memberOf(r, t, key), plaintexts));
8226
8227
  }
@@ -8233,7 +8234,7 @@ function elementOf(r, t, i) {
8233
8234
  return Array.isArray(r) && r.length === t.length ? r[i] : void 0;
8234
8235
  }
8235
8236
  function memberOf(r, t, key) {
8236
- if (isIntrinsicNode(t) || !isPlainRecord$4(r) || !Object.hasOwn(r, key)) return void 0;
8237
+ if (isIntrinsicNode(t) || !isPlainRecord$5(r) || !Object.hasOwn(r, key)) return void 0;
8237
8238
  return r[key];
8238
8239
  }
8239
8240
  function certainResolution(r, plaintexts) {
@@ -8250,13 +8251,13 @@ function jsonLeaves(value, into) {
8250
8251
  if (value === null || typeof value === "boolean") return true;
8251
8252
  if (typeof value === "number") return Number.isFinite(value);
8252
8253
  if (Array.isArray(value)) return value.every((item) => jsonLeaves(item, into));
8253
- if (isPlainRecord$4(value)) return Object.keys(value).every((key) => jsonLeaves(value[key], into));
8254
+ if (isPlainRecord$5(value)) return Object.keys(value).every((key) => jsonLeaves(value[key], into));
8254
8255
  return false;
8255
8256
  }
8256
8257
  function sameValue(a, b) {
8257
8258
  if (Array.isArray(b)) return Array.isArray(a) && a.length === b.length && b.every((item, i) => sameValue(a[i], item));
8258
- if (isPlainRecord$4(b)) {
8259
- if (!isPlainRecord$4(a)) return false;
8259
+ if (isPlainRecord$5(b)) {
8260
+ if (!isPlainRecord$5(a)) return false;
8260
8261
  const keys = Object.keys(b);
8261
8262
  return keys.length === Object.keys(a).length && keys.every((key) => Object.hasOwn(a, key) && sameValue(a[key], b[key]));
8262
8263
  }
@@ -8283,7 +8284,7 @@ function copyOwnKeys(bag) {
8283
8284
  for (const key of Object.keys(bag)) defineOwnKey(copy, key, bag[key]);
8284
8285
  return copy;
8285
8286
  }
8286
- function isPlainRecord$4(value) {
8287
+ function isPlainRecord$5(value) {
8287
8288
  if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
8288
8289
  const proto = Object.getPrototypeOf(value);
8289
8290
  return proto === Object.prototype || proto === null;
@@ -8682,8 +8683,95 @@ function repairCrossStackReadNames({ state, outputSecrets, perResourceSecrets, o
8682
8683
  };
8683
8684
  }
8684
8685
 
8686
+ // src/cli/commands/scrub/noecho-output-exact.ts
8687
+ const MAX_HOLES = 4;
8688
+ const MAX_STORED_LENGTH = 4096;
8689
+ function segmentsOf$1(value, sources, pseudo) {
8690
+ if (!isPlainObject$1(value) || Object.keys(value).length !== 1) return void 0;
8691
+ const hole = (node) => {
8692
+ if (!readsNoEchoSource(node, sources) && isPlainObject$1(node) && Object.keys(node).length === 1 && typeof node["Ref"] === "string" && pseudo.has(node["Ref"])) return { literal: pseudo.get(node["Ref"]) };
8693
+ return { hole: "secret" };
8694
+ };
8695
+ if (Object.hasOwn(value, "Fn::Join")) {
8696
+ const args = value["Fn::Join"];
8697
+ if (!Array.isArray(args) || typeof args[0] !== "string" || !Array.isArray(args[1])) return;
8698
+ const segments = [];
8699
+ args[1].forEach((part, i) => {
8700
+ if (i > 0 && args[0] !== "") segments.push({ literal: args[0] });
8701
+ segments.push(typeof part === "string" ? { literal: part } : hole(part));
8702
+ });
8703
+ return segments;
8704
+ }
8705
+ if (Object.hasOwn(value, "Fn::Sub")) {
8706
+ const args = value["Fn::Sub"];
8707
+ const text = Array.isArray(args) ? args[0] : args;
8708
+ const variables = Array.isArray(args) && isPlainObject$1(args[1]) ? args[1] : {};
8709
+ if (typeof text !== "string") return void 0;
8710
+ const segments = [];
8711
+ let last = 0;
8712
+ for (const match of text.matchAll(/\$\{([^}]*)\}/g)) {
8713
+ segments.push({ literal: text.slice(last, match.index) });
8714
+ const name = match[1] ?? "";
8715
+ if (name.startsWith("!")) segments.push({ literal: `\${${name.slice(1)}}` });
8716
+ else if (Object.hasOwn(variables, name)) segments.push(hole(variables[name]));
8717
+ else if (name.includes(".")) {
8718
+ const dot = name.indexOf(".");
8719
+ segments.push(hole({ "Fn::GetAtt": [name.slice(0, dot), name.slice(dot + 1)] }));
8720
+ } else segments.push(hole({ Ref: name }));
8721
+ last = match.index + match[0].length;
8722
+ }
8723
+ segments.push({ literal: text.slice(last) });
8724
+ return segments;
8725
+ }
8726
+ }
8727
+ function matchesLiterals(stored, segments) {
8728
+ const parts = [];
8729
+ for (const segment of segments) {
8730
+ const last = parts.length - 1;
8731
+ if ("literal" in segment) {
8732
+ if (last >= 0 && parts[last] !== void 0) parts[last] += segment.literal;
8733
+ else parts.push(segment.literal);
8734
+ } else if (last < 0 || parts[last] !== void 0) parts.push(void 0);
8735
+ }
8736
+ let start = 0;
8737
+ let end = stored.length;
8738
+ let first = 0;
8739
+ let lastIndex = parts.length - 1;
8740
+ const head = parts[0];
8741
+ if (head !== void 0) {
8742
+ if (!stored.startsWith(head)) return false;
8743
+ start = head.length;
8744
+ first = 1;
8745
+ }
8746
+ const tail = parts[lastIndex];
8747
+ if (tail !== void 0 && lastIndex >= first) {
8748
+ if (end - start < tail.length || !stored.endsWith(tail)) return false;
8749
+ end -= tail.length;
8750
+ lastIndex -= 1;
8751
+ }
8752
+ for (let i = first; i <= lastIndex; i++) {
8753
+ const literal = parts[i];
8754
+ if (literal === void 0) continue;
8755
+ const at = stored.indexOf(literal, start);
8756
+ if (at < 0 || at + literal.length > end) return false;
8757
+ start = at + literal.length;
8758
+ }
8759
+ return true;
8760
+ }
8761
+ function exactNoEchoOutputMask(stored, templateValue, sources, pseudo) {
8762
+ const whole = maskWholeValue(stored);
8763
+ if (typeof stored !== "string" || stored.length > MAX_STORED_LENGTH) return whole;
8764
+ const segments = segmentsOf$1(templateValue, sources, pseudo)?.filter((segment) => !("literal" in segment) || segment.literal !== "");
8765
+ if (segments === void 0) return whole;
8766
+ const holes = segments.filter((segment) => "hole" in segment);
8767
+ if (holes.length === 0 || holes.length > MAX_HOLES) return whole;
8768
+ for (let i = 1; i < segments.length; i++) if ("hole" in segments[i] && "hole" in segments[i - 1]) return whole;
8769
+ if (!matchesLiterals(stored, segments)) return whole;
8770
+ return segments.map((segment) => "literal" in segment ? segment.literal : "***").join("");
8771
+ }
8772
+
8685
8773
  // src/cli/commands/scrub/noecho.ts
8686
- function planScrubNoEcho(state, template, templateProps, conditions, passedParameters = [], conditionalParameters = []) {
8774
+ function planScrubNoEcho(state, template, templateProps, conditions, passedParameters = [], conditionalParameters = [], pseudo = /* @__PURE__ */ new Map()) {
8687
8775
  const byLogicalId = /* @__PURE__ */ new Map();
8688
8776
  const parameters = /* @__PURE__ */ new Set([...noEchoParameterNamesOf(template), ...passedParameters]);
8689
8777
  const resources = state.resources ?? {};
@@ -8708,7 +8796,7 @@ function planScrubNoEcho(state, template, templateProps, conditions, passedParam
8708
8796
  let grew = false;
8709
8797
  for (const [logicalId, record] of eligible) {
8710
8798
  const own = noEchoLeavesOf(record);
8711
- const leaves = canonicalCoordinates(own ?? noEchoCoordinatesOf(templateProps.get(logicalId), record.properties, from));
8799
+ const leaves = canonicalCoordinates((own !== void 0 && own.length > 0 ? own : void 0) ?? noEchoCoordinatesOf(templateProps.get(logicalId), record.properties, from, void 0, { maskedAt: record.properties }));
8712
8800
  leavesOf.set(logicalId, leaves);
8713
8801
  for (const [name, attribute] of Object.entries(record.attributes ?? {})) {
8714
8802
  if (attribute === record.physicalId || persisted(attribute)) continue;
@@ -8763,7 +8851,10 @@ function planScrubNoEcho(state, template, templateProps, conditions, passedParam
8763
8851
  if (!Object.hasOwn(stored, key)) continue;
8764
8852
  const value = stored[key];
8765
8853
  if (value === void 0 || value === null || persisted(value)) continue;
8766
- if (!readsNoEchoSource(output?.Value, outputSources)) continue;
8854
+ const outputValue = output?.Value;
8855
+ if (!readsNoEchoSource(outputValue, outputSources)) continue;
8856
+ const exact = exactNoEchoOutputMask(value, outputValue, outputSources, pseudo);
8857
+ if (JSON.stringify(exact) === JSON.stringify(value)) continue;
8767
8858
  outputKeys.push(key);
8768
8859
  }
8769
8860
  if (outputKeys.length > 0) changesAny = true;
@@ -8785,15 +8876,30 @@ function scrubMigrationNeedles(plan, publicTokens) {
8785
8876
  for (const { value, needle } of plan.stored) if (needle) recordNoEchoParameterFreshValue(value, needles, publicTokens);
8786
8877
  return needles.size > 0 ? needles : void 0;
8787
8878
  }
8788
- function maskScrubNoEchoOutputs(outputs, keys, declared, aliasOf) {
8879
+ function maskScrubNoEchoOutputs(outputs, keys, declared, aliasOf, exact) {
8789
8880
  if (outputs === void 0 || keys.length === 0) return outputs;
8790
8881
  const ownAliases = new Set(keys.flatMap((key) => aliasOf.has(key) ? [aliasOf.get(key)] : []));
8791
8882
  const otherAliases = new Set([...aliasOf].filter(([key]) => !keys.includes(key)).map(([, alias]) => alias));
8792
- const spelled = new Set(keys.filter((key) => Object.hasOwn(outputs, key)).map((key) => JSON.stringify(outputs[key])));
8883
+ const formOfKey = /* @__PURE__ */ new Map();
8884
+ const formOfSpelling = /* @__PURE__ */ new Map();
8885
+ for (const key of keys) {
8886
+ if (!Object.hasOwn(outputs, key)) continue;
8887
+ const templateValue = (exact?.templateOutputs[key])?.Value;
8888
+ const form = exact === void 0 ? maskWholeValue(outputs[key]) : exactNoEchoOutputMask(outputs[key], templateValue, exact.sources, exact.pseudo);
8889
+ formOfKey.set(key, form);
8890
+ const spelling = JSON.stringify(outputs[key]);
8891
+ const seen = formOfSpelling.get(spelling);
8892
+ formOfSpelling.set(spelling, formOfSpelling.has(spelling) && JSON.stringify(seen) !== JSON.stringify(form) ? maskWholeValue(outputs[key]) : form);
8893
+ }
8793
8894
  const masked = nullPrototypeRecord();
8794
8895
  for (const [key, value] of Object.entries(outputs)) {
8795
- const byValue = !declared.has(key) && !otherAliases.has(key) && spelled.has(JSON.stringify(value));
8796
- masked[key] = keys.includes(key) || ownAliases.has(key) || byValue ? maskWholeValue(value) : value;
8896
+ const spelling = JSON.stringify(value);
8897
+ const byValue = !declared.has(key) && !otherAliases.has(key) && formOfSpelling.has(spelling);
8898
+ if (formOfKey.has(key)) masked[key] = formOfKey.get(key);
8899
+ else if (keys.includes(key)) masked[key] = maskWholeValue(value);
8900
+ else if (ownAliases.has(key)) masked[key] = maskWholeValue(value);
8901
+ else if (byValue) masked[key] = formOfSpelling.get(spelling);
8902
+ else masked[key] = value;
8797
8903
  }
8798
8904
  return masked;
8799
8905
  }
@@ -8865,6 +8971,246 @@ function copiesOfParentRow(bag) {
8865
8971
  return copies === void 0 || copies.size === 0 ? {} : { inheritedPhysicalNameCopies: copies };
8866
8972
  }
8867
8973
 
8974
+ // src/cli/commands/scrub/noecho-stored.ts
8975
+ function storedNoEchoRows(orphans, supersededResources) {
8976
+ const rows = [];
8977
+ const readable = (record) => record !== null && typeof record === "object" && typeof record.resourceType === "string";
8978
+ for (const [index, row] of (Array.isArray(orphans) ? orphans : []).entries()) if (readable(row?.state) && typeof row.logicalId === "string") rows.push({
8979
+ key: String(index),
8980
+ kind: "orphan record",
8981
+ logicalId: row.logicalId,
8982
+ state: row.state
8983
+ });
8984
+ const superseded = Array.isArray(supersededResources) ? supersededResources : [];
8985
+ for (const [index, row] of superseded.entries()) if (isSupersededResourceRecord(row) && readable(row.state)) rows.push({
8986
+ key: `superseded:${index}`,
8987
+ kind: "superseded record",
8988
+ logicalId: row.logicalId,
8989
+ state: row.state
8990
+ });
8991
+ return rows;
8992
+ }
8993
+ const persisted = (value) => holdsMaskLeaf(value) || typeof value === "string" && isSingleDynamicReferenceToken(value);
8994
+ function holdsUnmaskedLeaf(value) {
8995
+ if (Array.isArray(value)) return value.some(holdsUnmaskedLeaf);
8996
+ if (value !== null && typeof value === "object") return Object.values(value).some(holdsUnmaskedLeaf);
8997
+ return typeof value === "string" && value !== "" && !persisted(value);
8998
+ }
8999
+ function planScrubStoredNoEcho(state, rows, template, sources, needleSources) {
9000
+ const byKey = /* @__PURE__ */ new Map();
9001
+ const unverifiable = [];
9002
+ let changesAny = false;
9003
+ if (rows.length === 0) return {
9004
+ byKey,
9005
+ changesAny,
9006
+ unverifiable
9007
+ };
9008
+ const resources = state.resources ?? {};
9009
+ const templateResources = template.Resources ?? {};
9010
+ const recordsHoldEvidence = [...Object.values(resources), ...rows.map((row) => row.state)].some((record) => (noEchoLeavesOf(record ?? {})?.length ?? 0) > 0 || (noEchoAttributeNamesOf(record)?.length ?? 0) > 0);
9011
+ const stackHoldsEvidence = sources.parameters.size > 0 || recordsHoldEvidence;
9012
+ for (const row of rows) {
9013
+ const record = row.state;
9014
+ const own = noEchoLeavesOf(record);
9015
+ const definition = Object.hasOwn(templateResources, row.logicalId) ? templateResources[row.logicalId] : void 0;
9016
+ const live = Object.hasOwn(resources, row.logicalId) ? resources[row.logicalId] : void 0;
9017
+ const liveLeaves = live?.resourceType === record.resourceType ? noEchoLeavesOf(live) : void 0;
9018
+ let leaves;
9019
+ let needleAt;
9020
+ if (own !== void 0 && own.length > 0) leaves = canonicalCoordinates(own);
9021
+ else if (definition?.Type === record.resourceType) {
9022
+ leaves = canonicalCoordinates(noEchoCoordinatesOf(definition.Properties, record.properties, sources, void 0, { maskedAt: record.properties }));
9023
+ const needles = needleCoordinatesOf(definition.Properties, record.properties, needleSources);
9024
+ needleAt = (coordinate) => needles.has(JSON.stringify(coordinate));
9025
+ } else if (liveLeaves !== void 0 && liveLeaves.length > 0) leaves = canonicalCoordinates(liveLeaves);
9026
+ else if (own !== void 0) leaves = [];
9027
+ if (leaves === void 0) {
9028
+ if (stackHoldsEvidence && holdsUnmaskedLeaf(record.properties)) unverifiable.push({
9029
+ key: row.key,
9030
+ kind: row.kind,
9031
+ logicalId: row.logicalId,
9032
+ resourceType: record.resourceType
9033
+ });
9034
+ continue;
9035
+ }
9036
+ const names = new Set(noEchoAttributeNamesOf(record) ?? []);
9037
+ for (const [name, attribute] of Object.entries(record.attributes ?? {})) {
9038
+ if (attribute === record.physicalId || persisted(attribute)) continue;
9039
+ if (leaves.some((coordinate) => coordinate[0] === name && JSON.stringify(valueAtCoordinate(record.properties, coordinate)) === JSON.stringify(attribute))) names.add(name);
9040
+ }
9041
+ const attributeNames = [...names].sort();
9042
+ if (leaves.length === 0 && attributeNames.length === 0) continue;
9043
+ const stored = [];
9044
+ for (const coordinate of leaves) {
9045
+ const value = valueAtCoordinate(record.properties, coordinate);
9046
+ if (value === void 0 || value === null || persisted(value)) continue;
9047
+ stored.push({
9048
+ coordinate,
9049
+ value,
9050
+ needle: needleAt === void 0 || needleAt(coordinate)
9051
+ });
9052
+ }
9053
+ byKey.set(row.key, {
9054
+ leaves,
9055
+ stored,
9056
+ attributeNames
9057
+ });
9058
+ const unmaskedAttribute = attributeNames.some((name) => Object.hasOwn(record.attributes ?? {}, name) && !persisted(record.attributes[name]));
9059
+ if (stored.length > 0 || unmaskedAttribute || leaves.length > 0 && JSON.stringify(record.noEchoLeaves) !== JSON.stringify(leaves)) changesAny = true;
9060
+ }
9061
+ return {
9062
+ byKey,
9063
+ changesAny,
9064
+ unverifiable
9065
+ };
9066
+ }
9067
+ const MAX_NEEDLE_CONDITIONS = 6;
9068
+ function needleCoordinatesOf(properties, stored, sources) {
9069
+ const names = /* @__PURE__ */ new Set();
9070
+ const collapsed = collapseNoValueBranches(properties, names);
9071
+ const keysUnder = (template, conditions) => new Set(canonicalCoordinates(noEchoCoordinatesOf(template, stored, conditions === void 0 ? sources : {
9072
+ ...sources,
9073
+ conditions
9074
+ }, void 0, { maskedAt: stored })).map((coordinate) => JSON.stringify(coordinate)));
9075
+ if (names.size > MAX_NEEDLE_CONDITIONS) return keysUnder(withoutFnIf(collapsed));
9076
+ const list = [...names];
9077
+ let needles;
9078
+ for (let verdicts = 0; verdicts < 2 ** list.length; verdicts++) {
9079
+ const keys = keysUnder(collapsed, Object.fromEntries(list.map((name, i) => [name, (verdicts & 1 << i) !== 0])));
9080
+ needles = needles === void 0 ? keys : new Set([...needles].filter((key) => keys.has(key)));
9081
+ }
9082
+ return needles;
9083
+ }
9084
+ function collapseNoValueBranches(node, names, asValue = true) {
9085
+ if (Array.isArray(node)) return node.map((item) => collapseNoValueBranches(item, names, false));
9086
+ if (node === null || typeof node !== "object") return node;
9087
+ const record = node;
9088
+ const branches = record["Fn::If"];
9089
+ if (Object.keys(record).length === 1 && Array.isArray(branches)) {
9090
+ const [condition, whenTrue, whenFalse] = branches;
9091
+ if (typeof condition !== "string" || branches.length !== 3) return null;
9092
+ const noValue = (branch) => branch !== null && typeof branch === "object" && branch["Ref"] === "AWS::NoValue";
9093
+ if (asValue && noValue(whenFalse)) return collapseNoValueBranches(whenTrue, names);
9094
+ if (asValue && noValue(whenTrue)) return collapseNoValueBranches(whenFalse, names);
9095
+ names.add(condition);
9096
+ return { "Fn::If": [
9097
+ condition,
9098
+ collapseNoValueBranches(whenTrue, names, asValue),
9099
+ collapseNoValueBranches(whenFalse, names, asValue)
9100
+ ] };
9101
+ }
9102
+ const out = nullPrototypeRecord();
9103
+ for (const [key, inner] of Object.entries(record)) out[key] = collapseNoValueBranches(inner, names);
9104
+ return out;
9105
+ }
9106
+ function unverifiableNoEchoRecordWarning(shownStack, record) {
9107
+ return safeMsg`The ${record.kind} ${record.logicalId} (${record.resourceType}) in ${shownStack} names no NoEcho positions, and today's template no longer declares its logical id as that type: if a cdkd older than state schema v11 wrote it, a NoEcho value may sit in its properties in plaintext, and scrub cannot tell which leaf, so this stack is not reported clean and --fail exits non-zero. ${UNPOSITIONED_REMEDY}`;
9108
+ }
9109
+ const UNPOSITIONED_REMEDY = "Re-run scrub with --mask-unpositioned to mask every string value in that record (its properties, observed properties and attributes) and record those positions as NoEcho, which clears this finding. The cost: those values are lost from state, so a later adoption of the record compares and re-sends without them, and a delete that reads its address or payload from the record's properties (a custom resource, a Route 53 record set, a Lambda permission, and others) is skipped, keeping the record while the resource stays in AWS.";
9110
+ function unpositionedMaskPlanNote(shownStack, record, counts) {
9111
+ return safeMsg`--mask-unpositioned would mask, in the ${record.kind} ${record.logicalId} (${record.resourceType}) in ${shownStack}, ${String(counts.properties)} string value(s) in properties, ${String(counts.observed)} in the readback (observed properties) and ${String(counts.attributes)} in attributes (--dry-run, nothing written).`;
9112
+ }
9113
+ function unpositionedMaskDoneNote(shownStack, record, counts) {
9114
+ return safeMsg`--mask-unpositioned: masked, in the ${record.kind} ${record.logicalId} (${record.resourceType}) in ${shownStack}, ${String(counts.properties)} string value(s) in properties, ${String(counts.observed)} in the readback (observed properties) and ${String(counts.attributes)} in attributes, and recorded those positions as NoEcho.`;
9115
+ }
9116
+ function scrubStoredRecord(state, needles, plan, publicTokens, finish) {
9117
+ const migrationNeedles = scrubMigrationNeedles(plan, publicTokens);
9118
+ const walk = (bag, from) => scrubResourceRecord(from, bag, void 0, "state-cross-generation", {
9119
+ properties: "unproven",
9120
+ observed: "unproven"
9121
+ });
9122
+ let next = needles.size === 0 ? state : walk(needles, state);
9123
+ if (migrationNeedles !== void 0) next = walk(migrationNeedles, next);
9124
+ if (plan === void 0) return finish(needles.size > 0 ? keepHeldTokenProvenance(next) : next, needles);
9125
+ const finished = finish(plan.leaves.length > 0 ? {
9126
+ ...next,
9127
+ noEchoLeaves: plan.leaves.map((coordinate) => [...coordinate])
9128
+ } : next, new Map([...needles, ...migrationNeedles ?? []]));
9129
+ const attributeNames = [.../* @__PURE__ */ new Set([...plan.attributeNames, ...noEchoAttributeNamesOf(finished) ?? []])].sort();
9130
+ return keepHeldTokenProvenance(applyScrubNoEcho(finished, state, {
9131
+ ...plan,
9132
+ attributeNames
9133
+ }));
9134
+ }
9135
+
9136
+ // src/cli/commands/scrub/unpositioned.ts
9137
+ function isUnpositionedStringLeaf(value) {
9138
+ return typeof value === "string" && value !== "" && !holdsMaskLeaf(value) && !isSingleDynamicReferenceToken(value);
9139
+ }
9140
+ function maskStringLeaves(value, at, out, values) {
9141
+ if (isUnpositionedStringLeaf(value)) {
9142
+ out.push([...at]);
9143
+ values?.push(value);
9144
+ return "***";
9145
+ }
9146
+ if (Array.isArray(value)) return value.map((item, index) => maskStringLeaves(item, [...at, index], out, values));
9147
+ if (value !== null && typeof value === "object") {
9148
+ const next = {};
9149
+ for (const [key, item] of Object.entries(value)) next[key] = maskStringLeaves(item, [...at, key], out, values);
9150
+ return next;
9151
+ }
9152
+ return value;
9153
+ }
9154
+ function maskUnpositionedRecord(record) {
9155
+ const propertyLeaves = [];
9156
+ const observedLeaves = [];
9157
+ const attributeLeaves = [];
9158
+ const readback = record.observedProperties;
9159
+ const next = {
9160
+ ...record,
9161
+ ...readback !== void 0 && { observedProperties: maskStringLeaves(readback, [], observedLeaves) }
9162
+ };
9163
+ const maskedValues = [];
9164
+ if (record.properties !== void 0) next.properties = maskStringLeaves(record.properties, [], propertyLeaves, maskedValues);
9165
+ if (record.attributes !== void 0) {
9166
+ const identity = SURVIVOR_IDENTITY_ATTRIBUTES[record.resourceType];
9167
+ const kept = identity !== void 0 && Object.hasOwn(record.attributes, identity) ? record.attributes[identity] : void 0;
9168
+ next.attributes = maskStringLeaves(record.attributes, [], attributeLeaves);
9169
+ if (identity !== void 0 && kept !== void 0 && next.attributes !== void 0) {
9170
+ next.attributes[identity] = kept;
9171
+ for (let i = attributeLeaves.length - 1; i >= 0; i--) if (attributeLeaves[i][0] === identity) attributeLeaves.splice(i, 1);
9172
+ }
9173
+ }
9174
+ next.noEchoLeaves = canonicalCoordinates(propertyLeaves).map((coordinate) => [...coordinate]);
9175
+ const marked = new Set(next.noEchoLeaves.map((coordinate) => JSON.stringify(coordinate)));
9176
+ const observedOnly = [...observedMaskedLeavesOf(record) ?? [], ...observedLeaves.filter((coordinate) => !marked.has(JSON.stringify(coordinate)))];
9177
+ if (observedOnly.length > 0) next.observedMaskedLeaves = canonicalCoordinates(observedOnly).map((coordinate) => [...coordinate]);
9178
+ const names = new Set(noEchoAttributeNamesOf(record) ?? []);
9179
+ for (const coordinate of attributeLeaves) if (coordinate.length === 1 && typeof coordinate[0] === "string") names.add(coordinate[0]);
9180
+ if (names.size > 0) next.noEchoAttributeNames = [...names].sort();
9181
+ return {
9182
+ record: withAttemptedItemsMasked(next, maskedValues),
9183
+ counts: {
9184
+ properties: propertyLeaves.length,
9185
+ observed: observedLeaves.length,
9186
+ attributes: attributeLeaves.length
9187
+ }
9188
+ };
9189
+ }
9190
+ function planUnpositionedMasks(rows, unverifiable, opts, logger, shownStack) {
9191
+ const masked = /* @__PURE__ */ new Set();
9192
+ if (opts.maskUnpositioned !== true) {
9193
+ for (const record of unverifiable) logger.warn(unverifiableNoEchoRecordWarning(shownStack, record));
9194
+ return {
9195
+ masked,
9196
+ unverifiable: unverifiable.length
9197
+ };
9198
+ }
9199
+ const byKey = new Map(rows.map((row) => [row.key, row]));
9200
+ for (const record of unverifiable) {
9201
+ const row = byKey.get(record.key);
9202
+ if (row === void 0) continue;
9203
+ const plan = maskUnpositionedRecord(row.state);
9204
+ masked.add(record.key);
9205
+ if (opts.dryRun) logger.info(unpositionedMaskPlanNote(shownStack, record, plan.counts));
9206
+ else logger.info(unpositionedMaskDoneNote(shownStack, record, plan.counts));
9207
+ }
9208
+ return {
9209
+ masked,
9210
+ unverifiable: opts.dryRun ? unverifiable.length : unverifiable.length - masked.size
9211
+ };
9212
+ }
9213
+
8868
9214
  // src/cli/commands/scrub/stack-rewrite.ts
8869
9215
  async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger, shownStack, nestedInput, perResourceSecrets, outputSecrets, orphanSecrets, prePassFindings, unverifiableLeaves, emitAbandonedScanNotes, purgeExaminedHistory, loaded, state, malformedResources, malformedResourceRows, malformedOutputs, malformedOrphans, malformedOrphanRows, perResourceTemplateProps, perResourceResolvedProps, outputsTemplateSource, conditions, templateResources, accountedOutputKeys, collisions, outputsSourceUntrusted, everyExportAliasReproduced, declaredAliasOf, nestedRowParameters }) {
8870
9216
  for (const [name, exportName] of collisions) logger.warn(exportAliasCollisionScrubWarning(name, exportName, outputSecrets));
@@ -8875,7 +9221,11 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
8875
9221
  secretBearingKeys.push(key);
8876
9222
  logger.warn(secretBearingStateKeyWarning(stack.stackName, display));
8877
9223
  }
8878
- const noEchoPlans = planScrubNoEcho(state, stack.template, perResourceTemplateProps, conditions, nestedInput?.noEchoParameters ?? [], nestedInput?.noEchoConditionalParameters ?? []);
9224
+ const pseudoValues = /* @__PURE__ */ new Map([["AWS::Region", region], ["AWS::StackName", stack.stackName]]);
9225
+ const noEchoPlans = planScrubNoEcho(state, stack.template, perResourceTemplateProps, conditions, nestedInput?.noEchoParameters ?? [], nestedInput?.noEchoConditionalParameters ?? [], pseudoValues);
9226
+ const storedRows = storedNoEchoRows(state.orphans, state.supersededResources);
9227
+ const storedNoEcho = planScrubStoredNoEcho(state, storedRows, stack.template, noEchoPlans.sources, noEchoPlans.needleSources);
9228
+ const unpositioned = planUnpositionedMasks(storedRows, storedNoEcho.unverifiable, opts, logger, shownStack);
8879
9229
  const nestedChildren = [];
8880
9230
  const nestedRowIds = /* @__PURE__ */ new Set();
8881
9231
  for (const [logicalId, resource] of Object.entries(templateResources)) if (resource?.Type === "AWS::CloudFormation::Stack") nestedRowIds.add(logicalId);
@@ -8952,9 +9302,26 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
8952
9302
  })) !== JSON.stringify(value);
8953
9303
  };
8954
9304
  const noEchoPublicTokens = /* @__PURE__ */ new Set([region, stack.stackName]);
8955
- const finishStored = storedRecordFinisher(stack.template, noEchoPublicTokens);
9305
+ const finishStored = storedRecordFinisher(stack.template, noEchoPublicTokens, stack.stackName);
9306
+ const storedInput = (logicalId, state) => ({
9307
+ logicalId,
9308
+ state,
9309
+ resolved: perResourceResolvedProps.get(logicalId),
9310
+ templateProps: perResourceTemplateProps.get(logicalId)
9311
+ });
9312
+ const finishRepairsAny = () => [
9313
+ ...Object.entries(state.resources ?? {}).map(([logicalId, record]) => ({
9314
+ logicalId,
9315
+ state: record
9316
+ })),
9317
+ ...state.orphans ?? [],
9318
+ ...Array.isArray(state.supersededResources) ? state.supersededResources.filter(isSupersededResourceRecord) : []
9319
+ ].some((row) => {
9320
+ const stored = storedInput(row.logicalId, row.state);
9321
+ return storedNoEchoInputsKnown(row.state, stored) && finishStored(row.state, void 0, stored) !== row.state;
9322
+ });
8956
9323
  const totalSecrets = outputSecrets.size + [...perResourceSecrets.values()].reduce((n, m) => n + m.size, 0) + [...orphanSecrets.values()].reduce((n, m) => n + m.size, 0);
8957
- if (totalSecrets === 0 && !noEchoPlans.changesAny) {
9324
+ if (totalSecrets === 0 && !noEchoPlans.changesAny && !storedNoEcho.changesAny && unpositioned.masked.size === 0 && !finishRepairsAny()) {
8958
9325
  emitAbandonedScanNotes();
8959
9326
  return {
8960
9327
  ...await purgeExaminedHistory(loaded.migrationPending),
@@ -8965,6 +9332,7 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
8965
9332
  unverifiableProducerRecords: prePassFindings.damagedProducerRecords.length,
8966
9333
  unverifiableLeaves,
8967
9334
  unrepairedReadNames: 0,
9335
+ ...unpositioned.unverifiable > 0 && { unverifiableNoEchoRecords: unpositioned.unverifiable },
8968
9336
  ...malformedResources ? { malformedResources } : {},
8969
9337
  ...malformedResourceRows ? { malformedResourceRows } : {},
8970
9338
  ...malformedOutputs ? { malformedOutputs } : {},
@@ -9007,47 +9375,26 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
9007
9375
  properties: "unproven",
9008
9376
  observed: "unproven"
9009
9377
  });
9010
- const rewritten = finishStored(keepHeldTokenProvenance(applyScrubNoEcho(migrated, record, plan)), new Map([...ownSecrets, ...migrationNeedles ?? []]), {
9011
- logicalId,
9012
- state: record
9013
- });
9378
+ const rewritten = finishStored(keepHeldTokenProvenance(applyScrubNoEcho(migrated, record, plan)), new Map([...ownSecrets, ...migrationNeedles ?? []]), storedInput(logicalId, record));
9014
9379
  const written = JSON.stringify(rewritten) === JSON.stringify(record) ? rewritten : withoutLapsedStaleShapeStamp(rewritten);
9015
9380
  if (JSON.stringify(written) !== JSON.stringify(record)) recordsChanged++;
9016
9381
  newResources[logicalId] = written;
9017
9382
  }
9018
- const newOrphans = (state.orphans ?? []).map((record, orphanIndex) => {
9019
- const own = orphanSecrets.get(String(orphanIndex));
9383
+ const rewriteStoredRecord = (key, row) => {
9020
9384
  const needles = new Map(allRecordedSecrets(outputSecrets, perResourceSecrets, orphanSecrets));
9021
- for (const [plaintext, expression] of own ?? []) needles.set(plaintext, expression);
9022
- if (needles.size === 0) return record;
9023
- const scrubbed = finishStored(keepHeldTokenProvenance(scrubResourceRecord(record.state, needles, void 0, "state-cross-generation", {
9024
- properties: "unproven",
9025
- observed: "unproven"
9026
- })), needles, record);
9027
- if (JSON.stringify(scrubbed) === JSON.stringify(record.state)) return record;
9385
+ for (const [plaintext, expression] of orphanSecrets.get(key) ?? []) needles.set(plaintext, expression);
9386
+ const stored = storedInput(row.logicalId, row.state);
9387
+ const finished = scrubStoredRecord(row.state, needles, storedNoEcho.byKey.get(key), noEchoPublicTokens, (record, bag) => finishStored(record, bag, stored));
9388
+ const scrubbed = unpositioned.masked.has(key) ? maskUnpositionedRecord(finished).record : finished;
9389
+ if (JSON.stringify(scrubbed) === JSON.stringify(row.state)) return row;
9028
9390
  recordsChanged++;
9029
9391
  return {
9030
- ...record,
9392
+ ...row,
9031
9393
  state: withoutLapsedStaleShapeStamp(scrubbed)
9032
9394
  };
9033
- });
9034
- const newSuperseded = Array.isArray(state.supersededResources) ? state.supersededResources.map((entry, supersededIndex) => {
9035
- if (!isSupersededResourceRecord(entry)) return entry;
9036
- const own = orphanSecrets.get(`superseded:${supersededIndex}`);
9037
- const needles = new Map(allRecordedSecrets(outputSecrets, perResourceSecrets, orphanSecrets));
9038
- for (const [plaintext, expression] of own ?? []) needles.set(plaintext, expression);
9039
- if (needles.size === 0) return entry;
9040
- const scrubbed = finishStored(keepHeldTokenProvenance(scrubResourceRecord(entry.state, needles, void 0, "state-cross-generation", {
9041
- properties: "unproven",
9042
- observed: "unproven"
9043
- })), needles, entry);
9044
- if (JSON.stringify(scrubbed) === JSON.stringify(entry.state)) return entry;
9045
- recordsChanged++;
9046
- return {
9047
- ...entry,
9048
- state: withoutLapsedStaleShapeStamp(scrubbed)
9049
- };
9050
- }) : void 0;
9395
+ };
9396
+ const newOrphans = (state.orphans ?? []).map((record, orphanIndex) => rewriteStoredRecord(String(orphanIndex), record));
9397
+ const newSuperseded = Array.isArray(state.supersededResources) ? state.supersededResources.map((entry, supersededIndex) => isSupersededResourceRecord(entry) ? rewriteStoredRecord(`superseded:${supersededIndex}`, entry) : entry) : void 0;
9051
9398
  const { newImports, newOutputReads, unrepairedReadNames, changed } = repairCrossStackReadNames({
9052
9399
  state,
9053
9400
  outputSecrets,
@@ -9068,7 +9415,11 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
9068
9415
  generation: "unproven"
9069
9416
  }) : state.outputs;
9070
9417
  const redactedOutputs = redactUnaccountedOutputs(positionedOutputs, state.outputs, accountedOutputKeys, allRecordedSecrets(outputSecrets, perResourceSecrets, orphanSecrets));
9071
- const noEchoMaskedOutputs = maskScrubNoEchoOutputs(redactedOutputs, noEchoPlans.outputKeys, new Set(Object.keys(stack.template.Outputs ?? {})), declaredAliasOf);
9418
+ const noEchoMaskedOutputs = maskScrubNoEchoOutputs(redactedOutputs, noEchoPlans.outputKeys, new Set(Object.keys(stack.template.Outputs ?? {})), declaredAliasOf, {
9419
+ templateOutputs: stack.template.Outputs ?? {},
9420
+ sources: noEchoPlans.sources,
9421
+ pseudo: pseudoValues
9422
+ });
9072
9423
  emitAbandonedScanNotes();
9073
9424
  let newOutputs = noEchoMaskedOutputs;
9074
9425
  let newExportNames = state.exportNames;
@@ -9166,6 +9517,7 @@ async function scrubStackRewritePass({ stack, region, stateBackend, opts, logger
9166
9517
  unverifiableProducerRecords: prePassFindings.damagedProducerRecords.length,
9167
9518
  unverifiableLeaves,
9168
9519
  unrepairedReadNames: unrepairedReadNames.length,
9520
+ ...unpositioned.unverifiable > 0 && { unverifiableNoEchoRecords: unpositioned.unverifiable },
9169
9521
  ...malformedResources ? { malformedResources } : {},
9170
9522
  ...malformedOutputs ? { malformedOutputs } : {},
9171
9523
  ...malformedOrphans ? { malformedOrphans } : {},
@@ -9449,6 +9801,7 @@ async function runScrubTargets({ options, logger, effectiveRegion, region, state
9449
9801
  let totalStacksWithUnverifiableReads = 0;
9450
9802
  let totalStacksWithUnverifiableLeaves = 0;
9451
9803
  let totalStacksWithUnrepairedReadNames = 0;
9804
+ let totalStacksWithUnverifiableNoEchoRecords = 0;
9452
9805
  let totalOutputKeysDropped = 0;
9453
9806
  let totalStacksWithReadOutputKeys = 0;
9454
9807
  const droppedReadersUnverifiedStacks = [];
@@ -9516,6 +9869,7 @@ async function runScrubTargets({ options, logger, effectiveRegion, region, state
9516
9869
  scrubbed = await scrubStack(stack, stackRegion, stateBackend, lockManager, {
9517
9870
  dryRun: options.dryRun ?? false,
9518
9871
  purgeHistory: options.purgeHistory ?? false,
9872
+ maskUnpositioned: options.maskUnpositioned ?? false,
9519
9873
  roleArn: options.roleArn,
9520
9874
  logger,
9521
9875
  appStacks: allStacks,
@@ -9619,7 +9973,7 @@ async function runScrubTargets({ options, logger, effectiveRegion, region, state
9619
9973
  if (!rewrittenStacks.has(recordKey)) totalStacksScrubbed++;
9620
9974
  rewrittenStacks.add(recordKey);
9621
9975
  logger.info(`${options.dryRun ? "Would scrub" : "Scrubbed"} ${scrubbed.recordsChanged} resource record(s) in ${shownStack}`);
9622
- } else if (scrubbed.secretBearingKeys === 0 && scrubbed.unverifiableReads === 0 && scrubbed.unverifiableLeaves === 0 && scrubbed.unrepairedReadNames === 0 && (scrubbed.keptReadOutputKeys ?? 0) === 0 && (scrubbed.keptAliasOutputKeys ?? 0) === 0 && !scrubbed.droppedOutputReadersUnverified && indexAbsentWithSecret === 0 && indexConverged === 0) logger.info(scrubbed.nestedChildren.some((child) => Boolean(child.input)) ? `No plaintext secrets found in ${shownStack}'s own records${SCRUB_CLEAN_SCOPE_NOTE}; its nested-stack output attributes are checked after each nested stack` : `No plaintext secrets found in ${shownStack}${SCRUB_CLEAN_SCOPE_NOTE}`);
9976
+ } else if (scrubbed.secretBearingKeys === 0 && scrubbed.unverifiableReads === 0 && scrubbed.unverifiableLeaves === 0 && scrubbed.unrepairedReadNames === 0 && (scrubbed.unverifiableNoEchoRecords ?? 0) === 0 && (scrubbed.keptReadOutputKeys ?? 0) === 0 && (scrubbed.keptAliasOutputKeys ?? 0) === 0 && !scrubbed.droppedOutputReadersUnverified && indexAbsentWithSecret === 0 && indexConverged === 0) logger.info(scrubbed.nestedChildren.some((child) => Boolean(child.input)) ? `No plaintext secrets found in ${shownStack}'s own records${SCRUB_CLEAN_SCOPE_NOTE}; its nested-stack output attributes are checked after each nested stack` : `No plaintext secrets found in ${shownStack}${SCRUB_CLEAN_SCOPE_NOTE}`);
9623
9977
  if (scrubbed.malformedResources || scrubbed.malformedResourceRows) malformedRecords.push(stackName);
9624
9978
  if (scrubbed.malformedOutputs) malformedOutputRecords.push(stackName);
9625
9979
  if (scrubbed.malformedOrphans || scrubbed.malformedOrphanRows) malformedOrphanRecords.push(stackName);
@@ -9636,6 +9990,10 @@ async function runScrubTargets({ options, logger, effectiveRegion, region, state
9636
9990
  totalStacksWithUnrepairedReadNames++;
9637
9991
  logger.warn(safeMsg`${scrubbed.unrepairedReadNames} cross-stack read name(s) in ${shownStack} hold a ` + "plaintext scrub could NOT repair (see the warnings above) — so this stack is not reported clean.");
9638
9992
  }
9993
+ if ((scrubbed.unverifiableNoEchoRecords ?? 0) > 0) {
9994
+ totalStacksWithUnverifiableNoEchoRecords++;
9995
+ logger.warn(safeMsg`${scrubbed.unverifiableNoEchoRecords} orphan or superseded record(s) in ${shownStack} ` + "name no NoEcho positions scrub can verify (see the warnings above) — so this stack is not reported clean.");
9996
+ }
9639
9997
  totalOutputKeysDropped += scrubbed.droppedOutputKeys ?? 0;
9640
9998
  if ((scrubbed.keptReadOutputKeys ?? 0) > 0 || (scrubbed.keptAliasOutputKeys ?? 0) > 0) totalStacksWithReadOutputKeys++;
9641
9999
  if (scrubbed.droppedOutputReadersUnverified) droppedReadersUnverifiedStacks.push(stackName);
@@ -9655,6 +10013,7 @@ async function runScrubTargets({ options, logger, effectiveRegion, region, state
9655
10013
  totalStacksWithUnverifiableReads,
9656
10014
  totalStacksWithUnverifiableLeaves,
9657
10015
  totalStacksWithUnrepairedReadNames,
10016
+ totalStacksWithUnverifiableNoEchoRecords,
9658
10017
  totalOutputKeysDropped,
9659
10018
  totalStacksWithReadOutputKeys,
9660
10019
  droppedReadersUnverifiedStacks,
@@ -9770,7 +10129,7 @@ async function scrubCommand(stacks, options) {
9770
10129
 
9771
10130
  // src/cli/commands/scrub.ts
9772
10131
  function createScrubCommand() {
9773
- const cmd = new Command("scrub").description("Rewrite persisted state so resolved secret dynamic references are stored as their {{resolve:...}} expression, not the plaintext value (no deploy).").argument("[stacks...]", "Stack name(s) to scrub (physical name or display path); the nested stacks under each are scrubbed too").option("--all", "Scrub every stack in the synthesized app", false).option("--dry-run", "Report what would be scrubbed without writing state").addOption(new Option("--purge-history", "Also purge the earlier S3 versions of every examined stack's state.json, not only the ones scrub rewrites (drops their state-recovery history; a record scrub refuses is never purged)").conflicts("dryRun")).option("--fail", "With --dry-run, exit non-zero if a value the template names through a {{resolve:...}} reference is found in plaintext (CI gate). Also exits non-zero on a real run when a leak was found that scrub cannot rewrite.");
10132
+ const cmd = new Command("scrub").description("Rewrite persisted state so resolved secret dynamic references are stored as their {{resolve:...}} expression, not the plaintext value (no deploy).").argument("[stacks...]", "Stack name(s) to scrub (physical name or display path); the nested stacks under each are scrubbed too").option("--all", "Scrub every stack in the synthesized app", false).option("--dry-run", "Report what would be scrubbed without writing state").addOption(new Option("--purge-history", "Also purge the earlier S3 versions of every examined stack's state.json, not only the ones scrub rewrites (drops their state-recovery history; a record scrub refuses is never purged)").conflicts("dryRun")).option("--mask-unpositioned", "Mask every string value of an orphan or superseded record whose NoEcho positions scrub cannot tell (its logical id left the template, no noEchoLeaves recorded) and record those positions as NoEcho; those values are lost from state, so a later adoption of the record compares without them").option("--fail", "With --dry-run, exit non-zero if a value the template names through a {{resolve:...}} reference is found in plaintext (CI gate). Also exits non-zero on a real run when a leak was found that scrub cannot rewrite.");
9774
10133
  [
9775
10134
  ...commonOptions,
9776
10135
  ...appOptions,
@@ -9993,7 +10352,7 @@ const UNCOMPARED_REASONS = {
9993
10352
  },
9994
10353
  noEchoParameter: {
9995
10354
  kind: "unknown",
9996
- phrase: "only PARTIALLY compared: their state holds a NoEcho parameter value only as the redaction mask, which no re-run can clear"
10355
+ phrase: "only PARTIALLY compared: their state holds a NoEcho parameter value, or a custom resource's NoEcho attribute value, only as the redaction mask, which no re-run can clear"
9997
10356
  },
9998
10357
  maskedEcho: {
9999
10358
  kind: "unknown",
@@ -10894,6 +11253,45 @@ function readHadAgreeingCopies(read) {
10894
11253
  return readsWithAgreeingCopies.has(read);
10895
11254
  }
10896
11255
 
11256
+ // src/cli/commands/drift/transitional-read-heals.ts
11257
+ const isBag = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
11258
+ const scalarText = (value) => typeof value === "string" || typeof value === "number" || typeof value === "boolean" ? String(value) : void 0;
11259
+ function instanceMonitoringIsDeclared(properties, aws) {
11260
+ const declared = coerceCfnBoolean(properties["Monitoring"]);
11261
+ return declared !== void 0 && aws["Monitoring"] === declared;
11262
+ }
11263
+ function instanceProfileIsDeclared(properties, aws) {
11264
+ const declared = properties["IamInstanceProfile"];
11265
+ const live = aws["IamInstanceProfile"];
11266
+ if (typeof declared !== "string" || declared === "" || typeof live !== "string") return false;
11267
+ if (live === declared) return true;
11268
+ return live.startsWith("arn:") && live.includes(":instance-profile/") && live.slice(live.lastIndexOf("/") + 1) === declared;
11269
+ }
11270
+ function instanceMetadataOptionsIsDeclared(properties, aws, observed) {
11271
+ const declared = properties["MetadataOptions"];
11272
+ const live = aws["MetadataOptions"];
11273
+ const recorded = observed["MetadataOptions"];
11274
+ if (!isBag(declared) || !isBag(live) || !isBag(recorded)) return false;
11275
+ const declaredKeys = Object.keys(declared);
11276
+ if (declaredKeys.length === 0) return false;
11277
+ for (const key of declaredKeys) {
11278
+ const want = scalarText(declared[key]);
11279
+ if (want === void 0 || scalarText(live[key]) !== want) return false;
11280
+ }
11281
+ for (const key of /* @__PURE__ */ new Set([...Object.keys(live), ...Object.keys(recorded)])) {
11282
+ if (declaredKeys.includes(key)) continue;
11283
+ if (scalarText(live[key]) !== scalarText(recorded[key])) return false;
11284
+ }
11285
+ return true;
11286
+ }
11287
+ function efsBackupPolicyIsDeclared(properties, aws) {
11288
+ const declared = properties["BackupPolicy"];
11289
+ const live = aws["BackupPolicy"];
11290
+ if (!isBag(declared) || !isBag(live)) return false;
11291
+ const status = declared["Status"];
11292
+ return typeof status === "string" && status !== "" && live["Status"] === status;
11293
+ }
11294
+
10897
11295
  // src/cli/commands/drift/baseline-keys.ts
10898
11296
  const UNDECLARED_UNCOMPARED_KEYS = {
10899
11297
  "AWS::S3::Bucket": ["NotificationConfiguration"],
@@ -10932,7 +11330,7 @@ function preFixBaselineKeys(resourceType, observed, properties, aws) {
10932
11330
  if (typeof properties !== "object" || properties === null || Array.isArray(properties)) return [];
10933
11331
  if (resourceType === "AWS::DynamoDB::Table") {
10934
11332
  const bag = properties;
10935
- return [...staleTablePolicyBaseline(observed, bag, aws) ? ["ResourcePolicy"] : [], ...tagsHeal.liveIsDeclared(bag, aws) ? [tagsHeal.key] : []];
11333
+ return [...staleTablePolicyBaseline(observed, bag, aws) ? ["ResourcePolicy"] : [], ...tagsHeal.liveIsDeclared(bag, aws, observed) ? [tagsHeal.key] : []];
10936
11334
  }
10937
11335
  if (resourceType === "AWS::SQS::QueuePolicy" || resourceType === "AWS::SNS::TopicPolicy") {
10938
11336
  const declared = declaredPolicyDocument(properties);
@@ -10943,7 +11341,7 @@ function preFixBaselineKeys(resourceType, observed, properties, aws) {
10943
11341
  return lambdaPermissionMatchesDeclared(aws, declared) && !lambdaPermissionMatchesDeclared(observed, declared) ? [...LAMBDA_PERMISSION_STATEMENT_KEYS] : [];
10944
11342
  }
10945
11343
  const members = OWN_WRITE_MEMBERS.get(resourceType);
10946
- if (members !== void 0) return members.filter((member) => member.liveIsDeclared(properties, aws)).map((member) => member.key);
11344
+ if (members !== void 0) return members.filter((member) => member.liveIsDeclared(properties, aws, observed)).map((member) => member.key);
10947
11345
  if (resourceType !== "AWS::Lambda::EventSourceMapping") return [];
10948
11346
  const declared = hasOwnKey(properties, "Enabled") ? coerceCfnBoolean(properties["Enabled"]) : void 0;
10949
11347
  const recorded = hasOwnKey(observed, "Enabled") ? coerceCfnBoolean(observed["Enabled"]) : void 0;
@@ -11016,7 +11414,24 @@ const OWN_WRITE_MEMBERS = new Map(Object.entries({
11016
11414
  if (declared === void 0) return properties["FileSystemPolicy"] === void 0 && aws["FileSystemPolicy"] === void 0;
11017
11415
  return efsPolicyMatchesDeclared(aws["FileSystemPolicy"], declared);
11018
11416
  }
11417
+ }, {
11418
+ key: "BackupPolicy",
11419
+ liveIsDeclared: efsBackupPolicyIsDeclared
11019
11420
  }],
11421
+ "AWS::EC2::Instance": [
11422
+ {
11423
+ key: "Monitoring",
11424
+ liveIsDeclared: instanceMonitoringIsDeclared
11425
+ },
11426
+ {
11427
+ key: "IamInstanceProfile",
11428
+ liveIsDeclared: instanceProfileIsDeclared
11429
+ },
11430
+ {
11431
+ key: "MetadataOptions",
11432
+ liveIsDeclared: instanceMetadataOptionsIsDeclared
11433
+ }
11434
+ ],
11020
11435
  "AWS::S3::Bucket": [{
11021
11436
  key: "LifecycleConfiguration",
11022
11437
  liveIsDeclared: (properties, aws) => {
@@ -11055,7 +11470,7 @@ const OWN_WRITE_MEMBERS = new Map(Object.entries({
11055
11470
  "AWS::IAM::Policy": [
11056
11471
  {
11057
11472
  key: "PolicyDocument",
11058
- liveIsDeclared: (properties, aws) => readHadAgreeingCopies(aws) && documentHeal("PolicyDocument").liveIsDeclared(properties, aws)
11473
+ liveIsDeclared: (properties, aws, observed) => readHadAgreeingCopies(aws) && documentHeal("PolicyDocument").liveIsDeclared(properties, aws, observed)
11059
11474
  },
11060
11475
  {
11061
11476
  key: "PolicyName",
@@ -11563,7 +11978,7 @@ function notComparedReason(cause, record) {
11563
11978
  unreadableRecord: "its state record is not readable as a resource — not an object, carrying no resource type, or holding a 'properties' map that is not an object — so there was nothing to compare (repair or re-import the record)",
11564
11979
  unreadableMap: "the record's whole 'resources' map is not a JSON object, so no resource in it could be read or compared (repair or re-import the record)",
11565
11980
  baselineRefused: "a `cdkd import` run refused to capture its observed baseline, so the only baseline available is the recorded properties that refusal already found untrustworthy" + (refusedRemedy === void 0 ? " (deploy a change to this resource to restore one)" : `. ${refusedRemedy}`),
11566
- noEchoParameter: `its state holds a NoEcho parameter's value only as the redaction mask${noEchoPathsClause(record)}, so that value was not compared — every other property was (permanent by design; a deploy compares it with AWS)`,
11981
+ noEchoParameter: `its state holds the value of a NoEcho parameter, or of a custom resource's attribute declared NoEcho, only as the redaction mask${noEchoPathsClause(record)}, so that value was not compared — every other property was (permanent by design)`,
11567
11982
  maskedEcho: `AWS echoes a secret into a property the template does not set${maskedEchoPathsClause(record)}, which its state holds only as the redaction mask, so that value was not compared — every other property was (permanent by design)`,
11568
11983
  uncertifiedBaseline: "its recorded baseline holds the redaction mask at a position cdkd could not pair with the secret reference there, so that position was not compared — every other property was (deploy a change to this resource to re-capture the baseline)"
11569
11984
  }[cause];
@@ -11667,12 +12082,12 @@ const UNDECLARED_GRANT_KEYS = {
11667
12082
  };
11668
12083
  const BOUNDARY_KEY = "PermissionsBoundary";
11669
12084
  const NONE = [];
11670
- function isPlainRecord$3(value) {
12085
+ function isPlainRecord$4(value) {
11671
12086
  return typeof value === "object" && value !== null && !Array.isArray(value);
11672
12087
  }
11673
12088
  function undeclaredGrantDriftKeys(resourceType, properties) {
11674
12089
  if (!hasOwnKey(UNDECLARED_GRANT_KEYS, resourceType)) return NONE;
11675
- if (!isPlainRecord$3(properties)) return NONE;
12090
+ if (!isPlainRecord$4(properties)) return NONE;
11676
12091
  return UNDECLARED_GRANT_KEYS[resourceType].filter((key) => !hasOwnKey(properties, key));
11677
12092
  }
11678
12093
  function isUndeclaredGrantScalarKey(key) {
@@ -11680,7 +12095,7 @@ function isUndeclaredGrantScalarKey(key) {
11680
12095
  }
11681
12096
  function grantMemberIdentity(key, member) {
11682
12097
  if (key === "Policies") {
11683
- const name = isPlainRecord$3(member) ? member["PolicyName"] : void 0;
12098
+ const name = isPlainRecord$4(member) ? member["PolicyName"] : void 0;
11684
12099
  return typeof name === "string" ? name : void 0;
11685
12100
  }
11686
12101
  if (typeof member !== "string") return void 0;
@@ -11752,7 +12167,7 @@ function removedGrantMembers(key, awsValue, stateValue) {
11752
12167
  for (const m of awsValue) {
11753
12168
  const id = grantMemberIdentity(key, m);
11754
12169
  if (id !== void 0 && kept.has(id)) continue;
11755
- const name = key === "Policies" && isPlainRecord$3(m) ? m["PolicyName"] : void 0;
12170
+ const name = key === "Policies" && isPlainRecord$4(m) ? m["PolicyName"] : void 0;
11756
12171
  out.push({
11757
12172
  key,
11758
12173
  member: typeof name === "string" ? name : m
@@ -12420,9 +12835,9 @@ function corroboratedLeafCount(send, live, wildcardLeaf = isMaskLeaf) {
12420
12835
  }
12421
12836
  return total;
12422
12837
  }
12423
- if (isPlainRecord$2(send)) {
12838
+ if (isPlainRecord$3(send)) {
12424
12839
  if (!hasPlainPrototype(send)) return void 0;
12425
- if (!isPlainRecord$2(live) || !hasPlainPrototype(live)) return void 0;
12840
+ if (!isPlainRecord$3(live) || !hasPlainPrototype(live)) return void 0;
12426
12841
  const keys = Object.keys(send);
12427
12842
  if (keys.length !== Object.keys(live).length) return void 0;
12428
12843
  let total = 0;
@@ -12542,8 +12957,8 @@ function preserveLiveValuesAtMaskedLeaves(send, awsProperties, secrets, corrobor
12542
12957
  if (holdsMaskLeaf(value)) unpreservablePaths.push(path);
12543
12958
  return value;
12544
12959
  }
12545
- const liveObject = isPlainRecord$2(live) ? live : void 0;
12546
- const corrObject = isPlainRecord$2(corr) ? corr : void 0;
12960
+ const liveObject = isPlainRecord$3(live) ? live : void 0;
12961
+ const corrObject = isPlainRecord$3(corr) ? corr : void 0;
12547
12962
  const out = Object.create(null);
12548
12963
  for (const [k, v] of Object.entries(value)) out[k] = walk(v, corrObject === void 0 ? void 0 : ownValue(corrObject, k), liveObject === void 0 ? void 0 : ownValue(liveObject, k), path === "" ? k : `${path}.${k}`);
12549
12964
  return out;
@@ -12566,7 +12981,7 @@ function isTagListKey(key) {
12566
12981
  return key === "Tags" || key.endsWith("Tags");
12567
12982
  }
12568
12983
  function isCfnTagList(value) {
12569
- return Array.isArray(value) && value.length > 0 && value.every((t) => isPlainRecord$2(t) && typeof t.Key === "string");
12984
+ return Array.isArray(value) && value.length > 0 && value.every((t) => isPlainRecord$3(t) && typeof t.Key === "string");
12570
12985
  }
12571
12986
  function tagKeys(tags) {
12572
12987
  return tags.map((t) => t["Key"]);
@@ -12633,8 +13048,8 @@ function collectMissingPaths(awsValue, desiredValue, path, out, isPreservedKey)
12633
13048
  }
12634
13049
  return;
12635
13050
  }
12636
- if (!isPlainRecord$2(awsValue)) return;
12637
- if (!isPlainRecord$2(desiredValue)) {
13051
+ if (!isPlainRecord$3(awsValue)) return;
13052
+ if (!isPlainRecord$3(desiredValue)) {
12638
13053
  if (desiredValue === void 0) out.add(path);
12639
13054
  return;
12640
13055
  }
@@ -12650,7 +13065,7 @@ function collectMissingPaths(awsValue, desiredValue, path, out, isPreservedKey)
12650
13065
  function isKeyedList(value) {
12651
13066
  return Array.isArray(value) && value.length > 0 && value.every((e) => typeof e === "object" && e !== null && typeof e.Key === "string");
12652
13067
  }
12653
- function isPlainRecord$2(value) {
13068
+ function isPlainRecord$3(value) {
12654
13069
  return typeof value === "object" && value !== null && !Array.isArray(value);
12655
13070
  }
12656
13071
  function mergeUntemplatedValue(awsValue, desiredValue) {
@@ -12672,7 +13087,7 @@ function mergeUntemplatedValue(awsValue, desiredValue) {
12672
13087
  }
12673
13088
  return merged;
12674
13089
  }
12675
- if (!isPlainRecord$2(awsValue) || !isPlainRecord$2(desiredValue)) return desiredValue;
13090
+ if (!isPlainRecord$3(awsValue) || !isPlainRecord$3(desiredValue)) return desiredValue;
12676
13091
  if (!hasPlainPrototype(awsValue) || !hasPlainPrototype(desiredValue)) return desiredValue;
12677
13092
  const merged = Object.create(null);
12678
13093
  for (const [key, value] of Object.entries(awsValue)) merged[key] = hasOwnKey(desiredValue, key) ? mergeUntemplatedValue(value, desiredValue[key]) : value;
@@ -12692,7 +13107,7 @@ function preserveLiveValuesAtUnresolvedTokens(send, awsProperties, unresolvedTok
12692
13107
  }
12693
13108
  if (value !== null && typeof value === "object") {
12694
13109
  if (!hasPlainPrototype(value)) return value;
12695
- const liveObject = isPlainRecord$2(live) ? live : void 0;
13110
+ const liveObject = isPlainRecord$3(live) ? live : void 0;
12696
13111
  const out = Object.create(null);
12697
13112
  for (const [k, v] of Object.entries(value)) out[k] = walk(v, liveObject === void 0 ? void 0 : ownValue(liveObject, k));
12698
13113
  return out;
@@ -12746,7 +13161,7 @@ function buildRevertNewProperties(drifts, desiredProperties, awsProperties, opti
12746
13161
  return result;
12747
13162
  }
12748
13163
  function driftAbsentMeansDefaultKeys(provider, resourceType, properties) {
12749
- if (provider.getDriftAbsentMeansDefaultKeys === void 0 || !isPlainRecord$2(properties)) return [];
13164
+ if (provider.getDriftAbsentMeansDefaultKeys === void 0 || !isPlainRecord$3(properties)) return [];
12750
13165
  const keys = provider.getDriftAbsentMeansDefaultKeys(resourceType, properties);
12751
13166
  const dotted = keys.filter((key) => key.includes("."));
12752
13167
  if (dotted.length === 0) return keys;
@@ -13292,7 +13707,7 @@ async function writeAheadRevertAttestations(report, logicalIds, stateBackend) {
13292
13707
 
13293
13708
  // src/cli/commands/drift/revert-write-only.ts
13294
13709
  function revertWriteOnlyResendNames(resourceType, properties, writeOnlyNames) {
13295
- if (!writeOnlyNames || writeOnlyNames.size === 0 || !isPlainRecord$2(properties)) return [];
13710
+ if (!writeOnlyNames || writeOnlyNames.size === 0 || !isPlainRecord$3(properties)) return [];
13296
13711
  const unreadableCreateOnly = getTopLevelKeysHoldingUnreadableCreateOnly(resourceType, properties);
13297
13712
  const names = [];
13298
13713
  for (const name of writeOnlyNames) {
@@ -13307,7 +13722,7 @@ function revertWriteOnlyResendNames(resourceType, properties, writeOnlyNames) {
13307
13722
  function withDeclaredWriteOnlyValues(send, resolvedProperties, names, paths) {
13308
13723
  const skipped = [];
13309
13724
  const wholesale = [];
13310
- if (names.length === 0 || !isPlainRecord$2(resolvedProperties)) return {
13725
+ if (names.length === 0 || !isPlainRecord$3(resolvedProperties)) return {
13311
13726
  properties: send,
13312
13727
  skipped,
13313
13728
  wholesale
@@ -13380,11 +13795,11 @@ function graftAt(send, declared, path, writeOnly) {
13380
13795
  ok
13381
13796
  };
13382
13797
  }
13383
- if (!isPlainRecord$2(declared) || !hasOwnKey(declared, segment)) return {
13798
+ if (!isPlainRecord$3(declared) || !hasOwnKey(declared, segment)) return {
13384
13799
  value: send,
13385
13800
  ok: true
13386
13801
  };
13387
- if (!isPlainRecord$2(send)) return {
13802
+ if (!isPlainRecord$3(send)) return {
13388
13803
  value: send,
13389
13804
  ok: false
13390
13805
  };
@@ -13415,7 +13830,7 @@ function withoutPaths(value, paths) {
13415
13830
  const inner = paths.filter((p) => p[0] === "*").map((p) => p.slice(1));
13416
13831
  return value.map((item) => withoutPaths(item, inner));
13417
13832
  }
13418
- if (!isPlainRecord$2(value)) return value;
13833
+ if (!isPlainRecord$3(value)) return value;
13419
13834
  const out = {};
13420
13835
  for (const [key, child] of Object.entries(value)) {
13421
13836
  const inner = paths.filter((p) => p[0] === key).map((p) => p.slice(1));
@@ -13425,8 +13840,8 @@ function withoutPaths(value, paths) {
13425
13840
  return out;
13426
13841
  }
13427
13842
  function covers(template, actual) {
13428
- if (isPlainRecord$2(template)) {
13429
- if (!isPlainRecord$2(actual)) return false;
13843
+ if (isPlainRecord$3(template)) {
13844
+ if (!isPlainRecord$3(actual)) return false;
13430
13845
  return Object.entries(template).every(([key, child]) => hasOwnKey(actual, key) && covers(child, actual[key]));
13431
13846
  }
13432
13847
  if (Array.isArray(template)) return Array.isArray(actual) && template.length === actual.length && template.every((child, index) => covers(child, actual[index]));
@@ -13559,7 +13974,7 @@ const INGRESS_IDENTITY_KEYS$1 = [
13559
13974
  "SourcePrefixListId"
13560
13975
  ];
13561
13976
  function comparableIngressIdentity(group, rule) {
13562
- if (!isPlainRecord$1(rule) || typeof group !== "string" || group === "" || isRedactedRecordedValue(group) || !INGRESS_IDENTITY_KEYS$1.every((key) => !isRedactedRecordedValue(rule[key])) || !Number.isFinite(cfnIngressPortValue(rule["FromPort"])) || !Number.isFinite(cfnIngressPortValue(rule["ToPort"]))) return;
13977
+ if (!isPlainRecord$2(rule) || typeof group !== "string" || group === "" || isRedactedRecordedValue(group) || !INGRESS_IDENTITY_KEYS$1.every((key) => !isRedactedRecordedValue(rule[key])) || !Number.isFinite(cfnIngressPortValue(rule["FromPort"])) || !Number.isFinite(cfnIngressPortValue(rule["ToPort"]))) return;
13563
13978
  return ingressRuleIdentity(group, rule);
13564
13979
  }
13565
13980
  function survivingRecordOfRuleId(records, selfLogicalId, ruleId) {
@@ -13576,7 +13991,7 @@ function stackIngressRuleHolder(records, selfLogicalId, groupId, rule, idCheck)
13576
13991
  if (lid === selfLogicalId) continue;
13577
13992
  const props = record.properties;
13578
13993
  if (record.resourceType === "AWS::EC2::SecurityGroupIngress") {
13579
- if (!isPlainRecord$1(props) || comparableIngressIdentity(props["GroupId"], props) !== wanted) continue;
13994
+ if (!isPlainRecord$2(props) || comparableIngressIdentity(props["GroupId"], props) !== wanted) continue;
13580
13995
  const ruleId = recordedSgRuleId(record.attributes);
13581
13996
  if (ruleId !== void 0 && idCheck !== void 0) {
13582
13997
  if ("live" in idCheck && ruleId !== idCheck.live) continue;
@@ -13585,13 +14000,13 @@ function stackIngressRuleHolder(records, selfLogicalId, groupId, rule, idCheck)
13585
14000
  return lid;
13586
14001
  }
13587
14002
  if (record.resourceType === "AWS::EC2::SecurityGroup" && record.physicalId === groupId) {
13588
- const inline = isPlainRecord$1(props) ? props["SecurityGroupIngress"] : void 0;
14003
+ const inline = isPlainRecord$2(props) ? props["SecurityGroupIngress"] : void 0;
13589
14004
  if (Array.isArray(inline) && inline.some((entry) => comparableIngressIdentity(groupId, entry) === wanted)) return lid;
13590
14005
  }
13591
14006
  }
13592
14007
  }
13593
14008
  function tagListsMatch(live, declared) {
13594
- const pairs = (list) => list.every((entry) => isPlainRecord$1(entry) && typeof entry["Key"] === "string") ? list.map((entry) => {
14009
+ const pairs = (list) => list.every((entry) => isPlainRecord$2(entry) && typeof entry["Key"] === "string") ? list.map((entry) => {
13595
14010
  const tag = entry;
13596
14011
  return JSON.stringify([tag["Key"], tag["Value"] ?? ""]);
13597
14012
  }).sort() : void 0;
@@ -13599,7 +14014,7 @@ function tagListsMatch(live, declared) {
13599
14014
  const b = pairs(declared);
13600
14015
  return a !== void 0 && b !== void 0 && JSON.stringify(a) === JSON.stringify(b);
13601
14016
  }
13602
- function isPlainRecord$1(value) {
14017
+ function isPlainRecord$2(value) {
13603
14018
  return typeof value === "object" && value !== null && !Array.isArray(value);
13604
14019
  }
13605
14020
  function descriptionKey(value) {
@@ -13713,7 +14128,7 @@ function isDefaultEgressRule(rule) {
13713
14128
  }
13714
14129
 
13715
14130
  // src/provisioning/providers/ec2/sg-rule-by-id.ts
13716
- function isPlainRecord(value) {
14131
+ function isPlainRecord$1(value) {
13717
14132
  return typeof value === "object" && value !== null && !Array.isArray(value);
13718
14133
  }
13719
14134
  const LIST_KEY = {
@@ -13755,7 +14170,7 @@ async function siblingIdOwnedSgRules(provider, groupId, properties, context) {
13755
14170
  const byId = /* @__PURE__ */ new Map();
13756
14171
  for (const [lid, sibling] of records) {
13757
14172
  const props = sibling.properties;
13758
- if (!isPlainRecord(props) || props["GroupId"] !== groupId) continue;
14173
+ if (!isPlainRecord$1(props) || props["GroupId"] !== groupId) continue;
13759
14174
  if (!sgSiblingDecidedById(lid, sibling, records, properties)) continue;
13760
14175
  const id = recordedRuleIdOf(sibling);
13761
14176
  if (id !== void 0) byId.set(id, lid);
@@ -19749,7 +20164,7 @@ async function buildImportPlan(state, template, cfnClient, parentStackName, opti
19749
20164
  });
19750
20165
  continue;
19751
20166
  }
19752
- const noEchoLeaves = noEchoLeavesOf(stateEntry);
20167
+ const noEchoLeaves = withoutEmbeddedAttributeLeaves(noEchoLeavesOf(stateEntry), stateEntry, raw, template, state);
19753
20168
  const masksOnlyAtNoEchoLeaves = noEchoLeaves !== void 0 && noEchoLeaves.length > 0 && holdsMaskLeaf(stateEntry.properties) && !holdsMaskLeaf(withoutCoordinates(stateEntry.properties, noEchoLeaves));
19754
20169
  if (masksOnlyAtNoEchoLeaves && IMPORT_UNSUPPORTED_RECREATABLE_TYPES.has(resourceType) && noEchoLeaves.some((coordinate) => typeof coordinate[0] === "string" && NOECHO_PRE_DELETE_KEYS.has(coordinate[0]))) {
19755
20170
  blocked.push({
@@ -20000,6 +20415,23 @@ function replaceAtCoordinate(node, coordinate, replacement) {
20000
20415
  }
20001
20416
  return node;
20002
20417
  }
20418
+ function withoutEmbeddedAttributeLeaves(leaves, record, raw, template, state) {
20419
+ if (leaves === void 0 || leaves.length === 0) return leaves;
20420
+ const properties = raw !== null && typeof raw === "object" ? raw["Properties"] : void 0;
20421
+ if (properties === null || typeof properties !== "object") return leaves;
20422
+ const embedded = noEchoCoordinatesOf(properties, record.properties, {
20423
+ parameters: noEchoParameterNamesOf(isPlainRecord(template["Parameters"]) ? { Parameters: template["Parameters"] } : void 0),
20424
+ attributeIsNoEcho: (id, attribute) => Object.hasOwn(state.resources, id) && noEchoAttributeNamesOf(state.resources[id])?.includes(attribute) === true
20425
+ }, void 0, {
20426
+ maskedAt: record.properties,
20427
+ only: true
20428
+ }).map((coordinate) => JSON.stringify(coordinate));
20429
+ if (embedded.length === 0) return leaves;
20430
+ return leaves.filter((coordinate) => !embedded.includes(JSON.stringify(coordinate)));
20431
+ }
20432
+ function isPlainRecord(value) {
20433
+ return value !== null && typeof value === "object" && !Array.isArray(value);
20434
+ }
20003
20435
 
20004
20436
  // src/cli/commands/export/ssm-parameter-preflight.ts
20005
20437
  const CDK_BOOTSTRAP_VERSION_PATH = /^\/cdk-bootstrap\/([A-Za-z0-9_-]+)\/version$/;
@@ -27637,10 +28069,8 @@ function positionImportedNoEcho(stackState, inputs, template, conditions, refusa
27637
28069
  for (const [id, leaves] of leavesOf) {
27638
28070
  if (!Object.hasOwn(resources, id)) continue;
27639
28071
  const resource = resources[id];
27640
- if (leaves.length > 0) {
27641
- resource.properties = maskAtCoordinates(resource.properties, leaves);
27642
- resource.noEchoLeaves = leaves.map((coordinate) => [...coordinate]);
27643
- }
28072
+ if (leaves.length > 0) resource.properties = maskAtCoordinates(resource.properties, leaves);
28073
+ resource.noEchoLeaves = leaves.map((coordinate) => [...coordinate]);
27644
28074
  const echoed = [...declared.get(id) ?? []].filter((name) => resource.attributes !== void 0 && Object.hasOwn(resource.attributes, name));
27645
28075
  if (echoed.length > 0 && resource.attributes !== void 0) {
27646
28076
  const attributes = { ...resource.attributes };
@@ -37871,4 +38301,4 @@ function collectVerbFlags(program) {
37871
38301
  }
37872
38302
 
37873
38303
  export { effectiveInventoryItem as $, withRecordedCidrSpelling as A, LIFECYCLE_DEFAULT_STATUS as B, securityGroupReadbackDelays as C, stackIngressRuleHolder as D, singleSecurityGroupRuleId as E, clearLifecycleWritesOf as F, canonicalizeItemList as G, LIFECYCLE_RULE_PATH as H, lifecycleSettleTarget as I, lifecycleUsesFilterForm as J, effectiveLifecycleConfiguration as K, recordLifecycleWrite as L, sgRemovalRuleKey as M, sgRuleListMember as N, survivingRecordOfRuleId as O, LIFECYCLE_BASELINE_REREAD_DELAYS_MS as P, effectiveIntelligentTieringItem as Q, settleLifecycleRead as R, reconcileSgRules as S, sgRuleKey as T, LIFECYCLE_TAG_FILTERS_PATH as U, LIFECYCLE_FILTER_PATH as V, canonicalizeBlock as W, EVENTBRIDGE_CONFIG_PATH as X, parseCfnTimestamp as Y, effectiveAnalyticsItem as Z, ingressRuleIdentity as _, refuseRevertRevokingSiblingRules as a, declaresBucketObjectLock as at, isResendableSocketFailure as b, buildProgram, siblingIdOwnedSgRules as c, isPlainObject as ct, authorizeDefinitelyNotApplied as d, shownLifecycleRuleId as dt, effectiveNotificationConfiguration as et, canonicalizeSgInlineRuleProtocols as f, flattenIpPermissions as g, descriptionKey as h, resolveSecretDerivedPrincipals as i, configItemId as it, markCopiesAgreed as j, tagListsMatch as k, SG_READBACK_RETRY_DELAY_MS as l, manualBucketDeletionClause as lt, comparableIngressIdentity as m, holdsUnprovenSecretPrincipalToken as n, caughtErrorName as nt, sgRuleDiffKey as o, declaresNestedObjectLock as ot, canonicalizeSgRuleProtocol as p, lifecycleRuleScope as q, isResolvableSecretPrincipalList as r, coerceCfnNumber as rt, readSgIngressById as s, describeValue as st, runDestroyForStack as t, eventBridgeEnabledOf as tt, SG_RULE_PAGE_SIZE$1 as u, mergeLegacySingular as ut, isConnectTimeout as v, securityGroupRuleMatchesCfnIngress as w, narrowIngressIpProtocol as x, isDefaultEgressRule as y, takeLifecycleWrite as z };
37874
- //# sourceMappingURL=program-BCit4cJS.js.map
38304
+ //# sourceMappingURL=program-Ce2id6tt.js.map