@cdkd/cli 0.352.5 → 0.352.7

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 (55) hide show
  1. package/dist/{ambient-client-defaults-COOu75wQ.js → ambient-client-defaults-Bkb7tmBu.js} +4 -3
  2. package/dist/ambient-client-defaults-Bkb7tmBu.js.map +1 -0
  3. package/dist/{asg-provider-BlvhI85g.js → asg-provider-Bh7ItmJQ.js} +6 -6
  4. package/dist/{asg-provider-BlvhI85g.js.map → asg-provider-Bh7ItmJQ.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-Cvr-QlNR.js → custom-resource-runtime-D2dldcXt.js} +6 -6
  7. package/dist/{custom-resource-runtime-Cvr-QlNR.js.map → custom-resource-runtime-D2dldcXt.js.map} +1 -1
  8. package/dist/{db-associated-roles-CObvQJMj.js → db-associated-roles-DGnaIk_A.js} +2 -2
  9. package/dist/{db-associated-roles-CObvQJMj.js.map → db-associated-roles-DGnaIk_A.js.map} +1 -1
  10. package/dist/{delete-started-BpZMtyEd.js → delete-started-CLEjcsQ3.js} +4 -4
  11. package/dist/{delete-started-BpZMtyEd.js.map → delete-started-CLEjcsQ3.js.map} +1 -1
  12. package/dist/{deploy-engine-C8rwXBlr.js → deploy-engine-DJeAtTj8.js} +117 -50
  13. package/dist/deploy-engine-DJeAtTj8.js.map +1 -0
  14. package/dist/{diff-calculator-DcVlH1Go.js → diff-calculator-r1e-2Y-A.js} +12 -12
  15. package/dist/{diff-calculator-DcVlH1Go.js.map → diff-calculator-r1e-2Y-A.js.map} +1 -1
  16. package/dist/{ec2-termination-protection-BKKt6PdW.js → ec2-termination-protection-BV8hz9MZ.js} +6 -6
  17. package/dist/{ec2-termination-protection-BKKt6PdW.js.map → ec2-termination-protection-BV8hz9MZ.js.map} +1 -1
  18. package/dist/{ecr-uri-CIXafW4r.js → ecr-uri-BlgB80sH.js} +2 -2
  19. package/dist/{ecr-uri-CIXafW4r.js.map → ecr-uri-BlgB80sH.js.map} +1 -1
  20. package/dist/{expected-bucket-owner-ByWXInN8.js → expected-bucket-owner-27PSPNSP.js} +2 -2
  21. package/dist/{expected-bucket-owner-ByWXInN8.js.map → expected-bucket-owner-27PSPNSP.js.map} +1 -1
  22. package/dist/{iam-role-provider-DxEugJPc.js → iam-role-provider-ChvLDUjX.js} +8 -8
  23. package/dist/{iam-role-provider-DxEugJPc.js.map → iam-role-provider-ChvLDUjX.js.map} +1 -1
  24. package/dist/{image-plan-BN0nYgoQ.js → image-plan-D14qiuGN.js} +8 -8
  25. package/dist/{image-plan-BN0nYgoQ.js.map → image-plan-D14qiuGN.js.map} +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/{logger-D8OJkAgE.js → logger-B9asIO9y.js} +2 -2
  30. package/dist/{logger-D8OJkAgE.js.map → logger-B9asIO9y.js.map} +1 -1
  31. package/dist/{neptune-provider-B4x2miBY.js → neptune-provider-iJTmDn5p.js} +7 -7
  32. package/dist/{neptune-provider-B4x2miBY.js.map → neptune-provider-iJTmDn5p.js.map} +1 -1
  33. package/dist/{program-C8K2yI5F.js → program-DNuXtBgT.js} +238 -23
  34. package/dist/program-DNuXtBgT.js.map +1 -0
  35. package/dist/{provider-classes-CTUyynuJ.js → provider-classes-CEDAur3Q.js} +190 -151
  36. package/dist/provider-classes-CEDAur3Q.js.map +1 -0
  37. package/dist/{rds-provider-WiRimLjl.js → rds-provider-C36LIby2.js} +10 -10
  38. package/dist/{rds-provider-WiRimLjl.js.map → rds-provider-C36LIby2.js.map} +1 -1
  39. package/dist/{read-replica-BE_IEKzf.js → read-replica-BQJilR8S.js} +3 -3
  40. package/dist/{read-replica-BE_IEKzf.js.map → read-replica-BQJilR8S.js.map} +1 -1
  41. package/dist/{replacement-rules-CF-_BKrA.js → replacement-rules-I3zjGJT3.js} +3 -3
  42. package/dist/{replacement-rules-CF-_BKrA.js.map → replacement-rules-I3zjGJT3.js.map} +1 -1
  43. package/dist/{resource-deadline-DAdDceOc.js → resource-deadline-BDevYZI1.js} +4 -4
  44. package/dist/{resource-deadline-DAdDceOc.js.map → resource-deadline-BDevYZI1.js.map} +1 -1
  45. package/dist/{run-cli-580oPJW5.js → run-cli-B7sBleP8.js} +2 -2
  46. package/dist/{run-cli-580oPJW5.js.map → run-cli-B7sBleP8.js.map} +1 -1
  47. package/dist/{update-removal-CYrJHBvS.js → update-removal-BecVqdN2.js} +4 -4
  48. package/dist/{update-removal-CYrJHBvS.js.map → update-removal-BecVqdN2.js.map} +1 -1
  49. package/dist/{version-Daw3iRRc.js → version-CDUEtMdM.js} +2 -2
  50. package/dist/{version-Daw3iRRc.js.map → version-CDUEtMdM.js.map} +1 -1
  51. package/package.json +7 -7
  52. package/dist/ambient-client-defaults-COOu75wQ.js.map +0 -1
  53. package/dist/deploy-engine-C8rwXBlr.js.map +0 -1
  54. package/dist/program-C8K2yI5F.js.map +0 -1
  55. package/dist/provider-classes-CTUyynuJ.js.map +0 -1
@@ -1,19 +1,19 @@
1
- import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-Daw3iRRc.js";
2
- import { $ as renderStacksNoLongerSelected, $t as deployOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as STATE_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllStateKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as listAllLockKeys, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptDeprecatedRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as parseStateKey, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as contextOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as LOCK_FILE_SUFFIX, St as realAwsException, T as DockerRunnerError, Tn as describeStateKey, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as commonOptions, _ as copyLayerTreeLastWins, _n as parseDuration, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noLocalCustomResourcesOption, at as unmatchedPatterns, b as probeHostGatewaySupport, bn as cliArgParser, bt as prepareLocalLoopbackForwarder, cn as skipFinalSnapshotOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as useCdkBootstrapAssetsOption, dt as activateLocalAwsAndRoleArn, en as deprecatedRegionOption, et as renderUnmatchedPatternsWarning, f as derivePseudoParametersFromRegion$1, fn as warnIfDeprecatedRegion, ft as assertAwsEmulatorValue, g as buildContainerImage$1, gn as allowUnsupportedTypesOption, gt as localAwsEmulatorActive, h as architectureToPlatform, hn as parseAssumeRoleToken, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as noCfnFallbackOption, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as stackOptions, lt as stackForConstructPath, m as tryResolveImageFnJoin, mn as normalizeStartApiAssumeRole, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as exclusivelyOption, nt as stackMatchesPattern, o as resolveLambdaTarget, on as parseContextOptions, ot as buildCdkPathIndex, p as substituteImagePlaceholders, pn as effectiveAssumeRoleArn, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as guardStackRegionOptions, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseStackRegion, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as destroyOptions, tt as selectTargetStack, u as assetPathDirs, un as stateOptions, ut as stackForPathFormTarget, v as layerAssetDirectory, vn as resourceTimeoutOptions, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_KEY_MAX_CODE_POINTS, wt as setContainerRegion, x as resolveHostGatewayExtraHosts, xn as parsePositiveIntegerOption, xt as profileCredentialsForWorkload, y as HOST_GATEWAY_MIN_VERSION, yn as validateResourceTimeouts, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-BN0nYgoQ.js";
3
- import { $t as buildForceUnlockCommand, Ct as isInterruptedWaitError, G as isMarkedNotGone, N as VALUE_NOT_SHOWN, Qt as UNREPRODUCIBLE_LOCK_CLAUSE, St as interruptWatchListenerCount, U as RESOURCE_NOT_FOUND, V as remedyLogicalId, W as assertRegionMatch, bt as beginCommandInterruptScope, cn as DEFAULT_STATE_PREFIX, dn as producerCoordinateKey, en as buildLockContentionMessage, fn as producerRecordKey, gt as isAwsCliLiteral, hn as withPasteableAwsProfile, in as formatLockOwner, jt as resourceTypeShown, kt as logicalIdShown, ln as injectiveKey, lt as runDeleteAttempt, m as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, mn as setPasteableAwsProfile, nn as formatLockExpiry, p as IAM_PRINCIPAL_NAME, pn as setPasteableAwsCaBundle, rn as formatLockOperation, sn as CUSTOM_RESOURCE_RESPONSE_PREFIX, tn as forceQuitRecoveryClause, xt as endCommandInterruptScope, y as readRecordedPrincipals } from "./update-removal-CYrJHBvS.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-CDUEtMdM.js";
2
+ import { $ as renderStacksNoLongerSelected, $t as deployOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as STATE_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllStateKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as listAllLockKeys, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptDeprecatedRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as parseStateKey, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as contextOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as LOCK_FILE_SUFFIX, St as realAwsException, T as DockerRunnerError, Tn as describeStateKey, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as commonOptions, _ as copyLayerTreeLastWins, _n as parseDuration, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noLocalCustomResourcesOption, at as unmatchedPatterns, b as probeHostGatewaySupport, bn as cliArgParser, bt as prepareLocalLoopbackForwarder, cn as skipFinalSnapshotOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as useCdkBootstrapAssetsOption, dt as activateLocalAwsAndRoleArn, en as deprecatedRegionOption, et as renderUnmatchedPatternsWarning, f as derivePseudoParametersFromRegion$1, fn as warnIfDeprecatedRegion, ft as assertAwsEmulatorValue, g as buildContainerImage$1, gn as allowUnsupportedTypesOption, gt as localAwsEmulatorActive, h as architectureToPlatform, hn as parseAssumeRoleToken, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as noCfnFallbackOption, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as stackOptions, lt as stackForConstructPath, m as tryResolveImageFnJoin, mn as normalizeStartApiAssumeRole, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as exclusivelyOption, nt as stackMatchesPattern, o as resolveLambdaTarget, on as parseContextOptions, ot as buildCdkPathIndex, p as substituteImagePlaceholders, pn as effectiveAssumeRoleArn, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as guardStackRegionOptions, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseStackRegion, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as destroyOptions, tt as selectTargetStack, u as assetPathDirs, un as stateOptions, ut as stackForPathFormTarget, v as layerAssetDirectory, vn as resourceTimeoutOptions, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_KEY_MAX_CODE_POINTS, wt as setContainerRegion, x as resolveHostGatewayExtraHosts, xn as parsePositiveIntegerOption, xt as profileCredentialsForWorkload, y as HOST_GATEWAY_MIN_VERSION, yn as validateResourceTimeouts, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-D14qiuGN.js";
3
+ import { $t as buildForceUnlockCommand, Ct as isInterruptedWaitError, G as isMarkedNotGone, N as VALUE_NOT_SHOWN, Qt as UNREPRODUCIBLE_LOCK_CLAUSE, St as interruptWatchListenerCount, U as RESOURCE_NOT_FOUND, V as remedyLogicalId, W as assertRegionMatch, bt as beginCommandInterruptScope, cn as DEFAULT_STATE_PREFIX, dn as producerCoordinateKey, en as buildLockContentionMessage, fn as producerRecordKey, gt as isAwsCliLiteral, hn as withPasteableAwsProfile, in as formatLockOwner, jt as resourceTypeShown, kt as logicalIdShown, ln as injectiveKey, lt as runDeleteAttempt, m as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, mn as setPasteableAwsProfile, nn as formatLockExpiry, p as IAM_PRINCIPAL_NAME, pn as setPasteableAwsCaBundle, rn as formatLockOperation, sn as CUSTOM_RESOURCE_RESPONSE_PREFIX, tn as forceQuitRecoveryClause, xt as endCommandInterruptScope, y as readRecordedPrincipals } from "./update-removal-BecVqdN2.js";
4
4
  import { a as runWithStackAwsClients, i as resetAwsClients, l as s3ClientDefaults, o as setAwsClients, s as resolveS3ClientDefaults, t as AwsClients, u as setS3ClientDefaultsDebugLog } from "./aws-clients-DOkPjjAW.js";
5
- import { $ as withStackScope, B as generateResourceName, E as coerceCfnBoolean, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-D8OJkAgE.js";
6
- import { A as stripControlChars, B as retryClassificationText, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, ct as SynthesisError, et as CdkdError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, n as ambientCredentialConfig, o as formatError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, rt as LocalInvokeBuildError$1, s as handleError, st as StateError, t as ambientClientDefaults, tt as DeployCancelledError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isTransientServerError } from "./ambient-client-defaults-COOu75wQ.js";
5
+ import { $ as withStackScope, B as generateResourceName, E as coerceCfnBoolean, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-B9asIO9y.js";
6
+ import { A as stripControlChars, B as retryClassificationText, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, ct as SynthesisError, et as CdkdError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, n as ambientCredentialConfig, o as formatError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, rt as LocalInvokeBuildError$1, s as handleError, st as StateError, t as ambientClientDefaults, tt as DeployCancelledError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isTransientServerError } from "./ambient-client-defaults-Bkb7tmBu.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 { A as loadCdkJson, B as warnDeprecatedNoPrefixCliFlag, C as runDockerForeground, D as synthesisStatusMessage, E as Synthesizer, F as resolveStateBucketWithDefault, G as uploadCfnTemplate, H as CFN_TEMPLATE_URL_LIMIT, I as resolveStateBucketWithDefaultAndSource, J as StageLoadError, K as refuseFailedLookups, L as resolveStateBucketWithSource, M as resolveAutoAssetStorage, N as resolveCaptureObservedState, O as getDefaultStateBucketName, P as resolveSkipPrefix, R as resolveUseCdkBootstrapAssets, S as getDockerCmd, T as abortInFlightMultipartUploads, U as MIGRATE_TMP_PREFIX, V as CFN_TEMPLATE_BODY_LIMIT, W as findLargeInlineResources, X as setChildProcessAwsEnv, Y as processStackMessages, _ as partitionSensitiveEnv, a as AssetPublisher, b as isMalformedEnvKey, c as resolveDockerContextDirectory, d as describeDockerFailure, f as redactedCause, g as finchSecretArgvRefusal, h as dockerSpawnEnvWithSensitive, i as isLockInfoExpired, j as resolveApp, k as getLegacyStateBucketName, m as redactDockerArgvValues, n as DagBuilder, o as WorkGraph, p as redactedDockerCause, q as AssemblyReader, r as LockManager, s as buildDockerImage, t as DiffCalculator, u as describeDockerExecFailure, v as warnFinchArgvExposure, w as runDockerStreaming, x as formatDockerLoginError, y as isDockerClientEnvKey, z as stateBucketExistenceConfirmed } from "./diff-calculator-DcVlH1Go.js";
9
- import { $c as hasReasonlessBaselineRefusal, $i as ccRoutedFinalSnapshotError, $l as ownValue, $n as replayFailedOperations, $r as secretBearing, $s as malformedResourcePropertiesWarning, A as refusePendingMovesOut, Aa as customResourcesRunWithoutApp, Ac as refuseMalformedState, Ai as green, Al as validateAssetBucketName, An as noEchoMacBinding, Ao as AWS_NO_VALUE, As as malformedOrphanRowsKeptWarning, B as readProtection, Ba as RollbackInlinePolicyWriters, Bc as findActionableSdkUnwired, Bi as journaledOrphanPrintingBag, Bn as rollbackOrphanIds, Br as retiredAfterRollback, Bs as malformedLocalResourcesWarning, Bt as readRefactorMarkerOnce, C as isAbsoluteAssetPath, Ca as readsNoEchoDeleteValues, Cc as refuseDivergentRecordRegionForDestroy, Ci as supersededHeldByOtherTypeWarning, Cl as ensureAssetStorage, Cn as makeForeignHolderScan, Cr as recordUnderIdIsNotOwn, D as hasPendingMovesOut, Da as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Dc as refuseMalformedResourcesForDeploy, Di as bold, Dl as getBootstrapMarkerKey, Dn as DeploymentEventsStore, Do as coerceParameterTypedValue, Dr as resolveReplacementOldType, Ds as isReadableOrphanRecord, E as templateIdentity, Ea as withPrintingSecrets, Ec as malformedStateRefusalMessage, Ei as withoutSuperseded, El as isCrossRegionRedirect, En as DeploymentEventsReader, Er as computeImplicitDeleteEdges, Es as deployRefusesOrphanRowsReason, F as recordedProtectionEvidence, Fc as STATE_RESOURCES_MALFORMED, Fi as noEchoExactEchoLeavesOf, Fn as findDestructiveChanges, Fo as lacksRecordedTableArn, Fr as removeProtectionTypeList, Fs as repairMalformedOrphanRecordsForReadOnly, Gi as secretNamePrintingBags, Gn as differingRemedy, Gr as inheritProducerRegions, Gs as refuseMalformedResourceEntriesForDeploy, Gt as updateRefactorMarker, Ha as deleteIndeterminateGuards, Hi as namingSecretsWithRecordedNoEcho, Hn as changedReferenceInDiff, Hr as retiredNameGenerationsLeaving, Hs as malformedScrubResourceEntriesRefusalMessage, Ht as refactorMarkerRefusalMessage, I as recordedProtectionNote, Ia as CloudControlProvider, Ic as UNREADABLE_RESOURCES_MAP_ROW, Ii as noEchoParameterNamesOf, In as formatDestructiveChange, Ir as orphanNeedsIdentity, Is as unpreviewableOrphanRecords, Ja as isSelectOutOfBounds, Jc as hasNoCloudControlHandlers, Ji as stateSecretNameNeedles, Jn as mappingPairs, Jo as carriesFetchableDynamicReference, Jr as reachableDivergentParameters, Js as refuseMalformedResourceEntriesForImportSave, Ka as isWaitAbandonedError, Kl as decodeListingKey, Kn as isPairableType, Ko as getAccountInfo, Kr as computeParameterTaint, Ks as refuseMalformedResourceEntriesForDestroy, Kt as macWriteOnlyKeys, L as PROTECTION_PROPERTY_BY_TYPE, Lc as displayLogicalId, Li as withAttemptedItemsMasked, Ln as findRefactorHints, Lr as nameGenerationCarriedFrom, Ls as unreadableOrphanRecords, Lt as keptForRetainedRecord, M as findServiceTokenRefusals, Mc as JSON_LISTING_HOLE_VALUE, Mi as yellow, Ml as BOOTSTRAP_MARKER_PREFIX, Mn as noEchoMacVerdict, Mo as isStalePlaceholderArnAttribute, Ms as refuseMalformedOrphanRecords, N as serviceTokenBlockingReason, Na as setLocalCustomResourceRuntimeEnabled, Nc as accountArgs, Ni as noEchoAttributeNamesOf, Nl as AssetManifestLoader, Nn as noEchoValueMacsOf, No as refStateLookupFromResource, Ns as refuseMalformedOrphanRecordsForDestroy, O as pendingMovesOutOf, Oc as refuseMalformedResourcesForDestroy, Oi as cyan, Ol as parseBootstrapMarker, On as NOECHO_MAC_KEY_ALIAS, Oo as isUnboundTemplateParameter, Or as withPreviousPolicies, Os as malformedOrphanRecordsRefusalMessage, P as diffSecurity, Pa as withCustomResourceStack, Pc as withheldAccountClause, Pi as noEchoComparisonForTemplate, Pl as getDockerImageBySourceHash, Pn as constructPathOf$1, Po as lacksRecordedRefArn, Pr as segmentCleanupOptions, Ps as refuseMalformedOrphansForOrphan, Qi as PRE_DELETE_SNAPSHOT_TYPES, Ql as nullPrototypeRecord, Qn as referencedLogicalIds, Qo as withSharedDrainBudget, Qr as exportAliasCollisionScrubWarning, Qs as malformedDriftResourcePropertiesWarning, R as isProtectionValueActive, Rc as hasReadableOutputs, Ri as createReadOnlyAttributeHealerFactory, Rn as hintSidesOf, Rr as nameGenerationHighWaterOf, Rs as isReadableResourceEntry, Rt as recordRetainedForReadoption, S as findNestedTemplateTreeDefect, Sa as TemplateNoEchoReresolver, Sc as STATE_REGION_DIVERGED, Si as supersededAfterRollback, Sl as AssetModeResolver, Sn as sameJournaledOrphans, Sr as recheckFailedPlan, Ss as maskedInputProof, T as renderNestedTemplateTreeDefect, Tc as malformedResourcesWarning, Ti as supersededResourcesOf, Tl as assertAssetBucketRegion, Tn as planOrphanAdoption, Tr as IMPLICIT_DELETE_DEPENDENCIES, Ts as maskedPropertyFingerprint, Ua as deleteLeftInPlace, Uc as unwrittenCreateOnlyReplacement, Ui as orphanRecordsPrintingBag, Ul as ssmResolvedValueType, Un as changedReferencePath, Uo as recordedReferenceRegions, Ur as withNameGenerationReached, Us as refuseMalformedResourceAttributesForOrphan, Ut as refuseRefactorMarker, Va as UNSPECIFIED_SKIP_REASON, Vc as findHandledUnwrittenCreateOnly, Vi as maskEventTextWithBoundBags, Vn as withMovedTo, Vo as recordedOutputReferenceRegions, Vr as retiredNameGenerationsAfter, Vs as malformedResourceEntriesWarning, Vt as refactorMarkerMovesOf, Wa as deleteSkipReason, Wi as secretNamePrintingBag, Wl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Wn as changedReferenceReason, Ws as refuseMalformedResourceEntries, Wt as sameMove, Xa as poisonRenderedSpellingsCollidingIn, Xc as S3StateBackend, Xi as extractDeploymentEventError, Xl as hasOwnKey, Xn as propertiesChangedReason, Xo as carriesDynamicReference, Xr as WITHHELD_NAME_DISPLAY, Xs as repairMalformedResourceEntriesForReadOnly, Xt as formatResourceLine, Ya as isAlwaysLiveAttribute, Yc as TemplateParser, Yi as storedSecretNameNeedles, Yl as defineOwnKey, Yn as parseMappingFile, Yo as isNamelessDynamicReferenceError, Yr as resourcesNamingDeclaredParameter, Ys as refuseMalformedResourceEntriesForOrphan, Za as stackIdTailOf, Zc as splitImportedOps, Zi as ATOMIC_FINAL_SNAPSHOT_TYPES, Zl as hasPlainPrototype, Zn as proposeRenames, Zo as keepsSecretReferenceToken, Zr as displayTextOrWithheld, Zs as unreadableResourceEntries, _ as conditionFingerprint, _a as wouldReturnToSdkProvider, _c as malformedOutputsWarning, _i as withStackRecords, _n as dropFailedCommands, _o as envCredentialsAreAssumedRole, _r as seedsDeleteFirstGuard, a as scanActiveConsumers, aa as createPreDeleteFinalSnapshot, ac as repairMalformedResourcePropertiesForReadOnly, ai as isWholeDynamicReferenceValue, al as crossPrefixDeniedWarning, an as displacedPhysicalIdShown, ao as producerLookupOver, ar as calculateResourceDrift, as as findReplacedReadersOfRecreateTargets, au as renderAssemblyPathEscape, b as readRecordedConditionVerdicts, ba as customResourceResponseExpirationWarning, bc as refuseMalformedOutputsForDestroy, bi as holdsSupersededResources, bn as journaledOrphanLines, bo as producerRegionsFromState, br as isReplacementOrphan, c as nestedSsmNameDeferredNote, cc as malformedOrphansRefusalMessage, ci as collectPublishedOutputNames, cl as stackInstanceIdOf, cn as nestedChildStackName$1, co as assertFlagRoleArn, cr as undeclaredEmptyObservedKeys, cs as MULTI_REGION_RECREATE_BLOCKED_TYPES, cu as resolveBucketRegion, d as slashedSsmNameHealAdoptedNote, dc as refuseMalformedOrphansForDestroy, di as DEFAULT_RESOURCE_TIMEOUT_MS, dl as isSensitiveAttributeName, dn as revertedNestedRowIds, do as isIamRoleArn, ds as renderStatefulReason, ea as ccRoutedInstanceTakesNoSnapshot, ei as secretBearingStateKeyWarning, el as hasUnverifiableParameterRefusal, er as replayRollback, es as INTRINSIC_KEYS, f as slashedSsmNameHealNote, fc as repairMalformedOrphansForReadOnly, fi as DEFAULT_RESOURCE_WARN_AFTER_MS, fn as withNestedRevertRun, fo as parseIamRoleArn, fr as ledgerForStack, g as makeCanonicalizePropertiesFn, ga as isCustomResource, gc as malformedOutputsRefusalMessage, gn as deleteJournaledOrphans, go as callerEnvCredentials, gr as planRollback, h as inheritedProvenanceForChildDiff, ha as ccBrokenReason, hc as malformedLocalOutputsWarning, hi as destroyStackRecordsView, hn as withNestedStackContext, ho as applyCallerIdentityCredentials, i as mergeNoChangeOutputs, ia as unsupportedFinalSnapshotError, ic as refuseMalformedResourcePropertiesForOrphan, ii as exportNameSecretExposure, il as applyCrossPrefixScan, in as displacedOpClause, io as resolveDynamicReferences, ir as withUnprovenUnsettled, j as deferredServiceTokenWarning, ja as localCustomResourceCommand, jc as repairMalformedResourcesForReadOnly, ji as red, jl as validateContainerRepoName, jn as noEchoMacParametersOf, jo as cfnRefValueFromPhysicalId, js as previewableOrphanRecords, k as pendingMovesRefusalMessage, ka as customResourcesFailedWithoutApp, kc as refuseMalformedResourcesForExport, ki as gray, kl as readBootstrapMarkerBody, kn as createNoEchoValueMacs, ko as parameterTypeMayLoseSecretIdentity, kr as findNestedStackTypeChanges, ks as malformedOrphanRecordsWarning, l as nestedSsmNameRowNote, lc as malformedOrphansWarning, li as isExportAliasCollision, ll as withStackInstanceIdWithheld, ln as recordDisplacedSkips, lo as assertSendableRoleArn, lr as updatePartialMessage, ls as isStatefulRecreateTargetForReplace, m as crossStackOutputProvenanceSource, ma as ProviderRegistry, mc as malformedExportSourceWarning, ml as createAssetRedirectResolver, mn as getCurrentNestedStackContext, mo as AWS_CREDENTIAL_ENV_KEYS, mr as withCreateTokenLedger, n as isSecretBearingReferenceString, na as isFinalSnapshotError, nc as refuseMalformedResourcePropertiesForDrift, ni as carriedExportAliasExposure, nl as CrossPrefixReadError, nn as resolvePendingCloudControlRequests, no as secretSegmentsOfState, nr as recordAfterRollbackUpdate, nu as describeFileReadFailure, o as inRunStackKey, oa as buildFinalSnapshotIdentifier, oc as UNREADABLE_ORPHANS_CONTAINER_ROW, oi as noEchoParameterValueSeed, ol as isAccessDenied, on as dropSettledNestedJournals, oo as refuseUnreadableCdkCrossAccountRefs, or as equalModuloMarkedMask, ou as resolveAssemblyPath, p as slashedSsmNameHealPendingNote, pa as CC_BROKEN_REASON, pc as malformedExportNamesWarning, pi as maskingRetryLogger, pl as buildAssetRedirectMap, pn as collectNestedChildUnaddressed, po as sendableAssumeRoleCommand, qa as IntrinsicFunctionResolver, qc as NO_CC_HANDLERS_REASON, qi as secretNamedRecordNeedles, qn as looselyEqual, qo as isImpossibleEmptyStoredAttribute, qr as namesAnyDeclaredParameter, qs as refuseMalformedResourceEntriesForImport, qt as readsOnlyNoEchoParameters, r as keptWholeReasonText, ra as refusesFinalSnapshot, rc as refuseMalformedResourcePropertiesForExport, ri as exportNameNoEchoParameters, rl as CrossPrefixScanCache, rn as NESTED_PENDING_PARENT_REASON, ro as withSecretPhysicalIdsMaskedInState, rr as settleUnsettledPrevious, ru as displayAssemblyPath, s as checkNestedSsmNames, sc as hasReadableOrphans, si as collectDeclaredOutputNames, sl as isNotImplemented, so as applyRoleArnIfSet, sr as equalModuloMask, ss as shownType, t as DeployEngine, ta as effectiveDeletionPolicy, tc as refuseMalformedResourcePropertiesForDestroy, ti as secretSafeKeyDisplay, tl as rebuildClientForBucketRegion, tn as pendingRequestCount, to as secretPhysicalIdSegment, tr as DELETED_RESOURCE_REMEDY, u as healSlashedSsmParameterNames, ua as stripSiblingOwnedMembers, uc as refuseMalformedOrphans, ui as bindingSkippedOutputs, ul as isSecretValuedAttribute, uo as explicitRoleArnOrThrow, ur as updatePartialReason, us as isStatefulRecreateTargetSync, v as conditionInputsFrom, va as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, vl as loadPublishableAssetManifest, vn as dropFailedHint, vo as classifyRecordedSecretRegion, vr as demoteSupersededOrphans, w as listNestedTemplateRows, wa as isCustomResourceType$1, wc as malformedRenderedContainersWarning, wi as supersededHolderOf, wl as buildDenyExternalAccessPolicy, wn as makeSiblingClaimReader, wr as replacementNeverSwapped, ws as declaresNoEcho, x as childTemplateLoader, xc as repairMalformedOutputsForReadOnly, xi as isSupersededResourceRecord, xl as rewriteTemplateAssetReferences, xn as loadJournaledOrphans, xo as regionLessSecretName, xr as planFailedOps, xs as parameterInputsFor, y as parentSuppliedValues, ya as applyCustomResourceResponseExpiration, yc as refuseMalformedOutputs, yi as deleteSupersededEntry, yn as isHandledOrphan, yo as classifyReplaySecretRegion, yr as isJournaledOrphan, ys as maskedPropertyFingerprintsOf, z as perType, za as setResolvedResourceTimeouts, zc as hasReadableResources, zi as completedReplayEntries, zn as movedToHint, zo as keepHeldTokenProvenance, zr as nameScopeOf, zs as malformedLocalResourceEntriesWarning, zt as readRefactorMarker } from "./deploy-engine-C8rwXBlr.js";
8
+ import { A as loadCdkJson, B as warnDeprecatedNoPrefixCliFlag, C as runDockerForeground, D as synthesisStatusMessage, E as Synthesizer, F as resolveStateBucketWithDefault, G as uploadCfnTemplate, H as CFN_TEMPLATE_URL_LIMIT, I as resolveStateBucketWithDefaultAndSource, J as StageLoadError, K as refuseFailedLookups, L as resolveStateBucketWithSource, M as resolveAutoAssetStorage, N as resolveCaptureObservedState, O as getDefaultStateBucketName, P as resolveSkipPrefix, R as resolveUseCdkBootstrapAssets, S as getDockerCmd, T as abortInFlightMultipartUploads, U as MIGRATE_TMP_PREFIX, V as CFN_TEMPLATE_BODY_LIMIT, W as findLargeInlineResources, X as setChildProcessAwsEnv, Y as processStackMessages, _ as partitionSensitiveEnv, a as AssetPublisher, b as isMalformedEnvKey, c as resolveDockerContextDirectory, d as describeDockerFailure, f as redactedCause, g as finchSecretArgvRefusal, h as dockerSpawnEnvWithSensitive, i as isLockInfoExpired, j as resolveApp, k as getLegacyStateBucketName, m as redactDockerArgvValues, n as DagBuilder, o as WorkGraph, p as redactedDockerCause, q as AssemblyReader, r as LockManager, s as buildDockerImage, t as DiffCalculator, u as describeDockerExecFailure, v as warnFinchArgvExposure, w as runDockerStreaming, x as formatDockerLoginError, y as isDockerClientEnvKey, z as stateBucketExistenceConfirmed } from "./diff-calculator-r1e-2Y-A.js";
9
+ import { $i as PRE_DELETE_SNAPSHOT_TYPES, $l as nullPrototypeRecord, $n as referencedLogicalIds, $o as withSharedDrainBudget, $r as exportAliasCollisionScrubWarning, $s as malformedDriftResourcePropertiesWarning, A as refusePendingMovesOut, Aa as customResourcesFailedWithoutApp, Ac as refuseMalformedResourcesForExport, Ai as gray, Al as readBootstrapMarkerBody, An as createNoEchoValueMacs, Ao as parameterTypeMayLoseSecretIdentity, Ar as findNestedStackTypeChanges, As as malformedOrphanRecordsWarning, B as readProtection, Ba as setResolvedResourceTimeouts, Bc as hasReadableResources, Bi as completedReplayEntries, Bn as movedToHint, Bo as keepHeldTokenProvenance, Br as nameScopeOf, Bs as malformedLocalResourceEntriesWarning, Bt as readRefactorMarkerOnce, C as isAbsoluteAssetPath, Ca as TemplateNoEchoReresolver, Cc as STATE_REGION_DIVERGED, Ci as supersededAfterRollback, Cl as AssetModeResolver, Cn as makeForeignHolderScan, Cr as recheckFailedPlan, Cs as maskedInputProof, D as hasPendingMovesOut, Da as withPrintingSecrets, Dc as malformedStateRefusalMessage, Di as withoutSuperseded, Dl as isCrossRegionRedirect, Dn as DeploymentEventsStore, Dr as computeImplicitDeleteEdges, Ds as deployRefusesOrphanRowsReason, E as templateIdentity, Ec as malformedResourcesWarning, Ei as supersededResourcesOf, El as assertAssetBucketRegion, En as DeploymentEventsReader, Er as IMPLICIT_DELETE_DEPENDENCIES, Es as maskedPropertyFingerprint, F as recordedProtectionEvidence, Fa as withCustomResourceStack, Fc as withheldAccountClause, Fi as noEchoComparisonForTemplate, Fl as getDockerImageBySourceHash, Fn as constructPathOf$1, Fo as lacksRecordedRefArn, Fr as segmentCleanupOptions, Fs as refuseMalformedOrphansForOrphan, Ga as deleteSkipReason, Gi as secretNamePrintingBag, Gl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Gn as changedReferenceReason, Gs as refuseMalformedResourceEntries, Gt as updateRefactorMarker, Ha as UNSPECIFIED_SKIP_REASON, Hc as findHandledUnwrittenCreateOnly, Hi as maskEventTextWithBoundBags, Hn as withMovedTo, Ho as recordedOutputReferenceRegions, Hr as retiredNameGenerationsAfter, Hs as malformedResourceEntriesWarning, Ht as refactorMarkerRefusalMessage, I as recordedProtectionNote, Ic as STATE_RESOURCES_MALFORMED, Ii as noEchoExactEchoLeavesOf, In as findDestructiveChanges, Io as lacksRecordedTableArn, Ir as removeProtectionTypeList, Is as repairMalformedOrphanRecordsForReadOnly, Ja as IntrinsicFunctionResolver, Jc as NO_CC_HANDLERS_REASON, Ji as secretNamedRecordNeedles, Jn as looselyEqual, Jo as isImpossibleEmptyStoredAttribute, Jr as namesAnyDeclaredParameter, Js as refuseMalformedResourceEntriesForImport, Ki as secretNamePrintingBags, Kn as differingRemedy, Kr as inheritProducerRegions, Ks as refuseMalformedResourceEntriesForDeploy, Kt as macWriteOnlyKeys, L as PROTECTION_PROPERTY_BY_TYPE, La as CloudControlProvider, Lc as UNREADABLE_RESOURCES_MAP_ROW, Li as noEchoParameterNamesOf, Ln as formatDestructiveChange, Lr as orphanNeedsIdentity, Ls as unpreviewableOrphanRecords, Lt as keptForRetainedRecord, M as findServiceTokenRefusals, Ma as localCustomResourceCommand, Mc as repairMalformedResourcesForReadOnly, Mi as red, Ml as validateContainerRepoName, Mn as noEchoMacParametersOf, Mo as cfnRefValueFromPhysicalId, Ms as previewableOrphanRecords, N as serviceTokenBlockingReason, Nc as JSON_LISTING_HOLE_VALUE, Ni as yellow, Nl as BOOTSTRAP_MARKER_PREFIX, Nn as noEchoMacVerdict, No as isStalePlaceholderArnAttribute, Ns as refuseMalformedOrphanRecords, O as pendingMovesOutOf, Oa as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Oc as refuseMalformedResourcesForDeploy, Oi as bold, Ol as getBootstrapMarkerKey, On as crossStackReadsForPartialSave, Oo as coerceParameterTypedValue, Or as resolveReplacementOldType, Os as isReadableOrphanRecord, P as diffSecurity, Pa as setLocalCustomResourceRuntimeEnabled, Pc as accountArgs, Pi as noEchoAttributeNamesOf, Pl as AssetManifestLoader, Pn as noEchoValueMacsOf, Po as refStateLookupFromResource, Ps as refuseMalformedOrphanRecordsForDestroy, Qa as stackIdTailOf, Qc as splitImportedOps, Qi as ATOMIC_FINAL_SNAPSHOT_TYPES, Ql as hasPlainPrototype, Qn as proposeRenames, Qo as keepsSecretReferenceToken, Qr as displayTextOrWithheld, Qs as unreadableResourceEntries, R as isProtectionValueActive, Rc as displayLogicalId, Ri as withAttemptedItemsMasked, Rn as findRefactorHints, Rr as nameGenerationCarriedFrom, Rs as unreadableOrphanRecords, Rt as recordRetainedForReadoption, S as findNestedTemplateTreeDefect, Sc as repairMalformedOutputsForReadOnly, Si as isSupersededResourceRecord, Sl as rewriteTemplateAssetReferences, Sn as sameJournaledOrphans, So as regionLessSecretName, Sr as planFailedOps, Ss as parameterInputsFor, T as renderNestedTemplateTreeDefect, Ta as isCustomResourceType$1, Tc as malformedRenderedContainersWarning, Ti as supersededHolderOf, Tl as buildDenyExternalAccessPolicy, Tn as planOrphanAdoption, Tr as replacementNeverSwapped, Ts as declaresNoEcho, Ua as deleteIndeterminateGuards, Ui as namingSecretsWithRecordedNoEcho, Un as changedReferenceInDiff, Ur as retiredNameGenerationsLeaving, Us as malformedScrubResourceEntriesRefusalMessage, Ut as refuseRefactorMarker, Va as RollbackInlinePolicyWriters, Vc as findActionableSdkUnwired, Vi as journaledOrphanPrintingBag, Vn as rollbackOrphanIds, Vr as retiredAfterRollback, Vs as malformedLocalResourcesWarning, Vt as refactorMarkerMovesOf, Wa as deleteLeftInPlace, Wc as unwrittenCreateOnlyReplacement, Wi as orphanRecordsPrintingBag, Wl as ssmResolvedValueType, Wn as changedReferencePath, Wo as recordedReferenceRegions, Wr as withNameGenerationReached, Ws as refuseMalformedResourceAttributesForOrphan, Wt as sameMove, Xa as isAlwaysLiveAttribute, Xc as TemplateParser, Xi as storedSecretNameNeedles, Xl as defineOwnKey, Xn as parseMappingFile, Xo as isNamelessDynamicReferenceError, Xr as resourcesNamingDeclaredParameter, Xs as refuseMalformedResourceEntriesForOrphan, Xt as formatResourceLine, Ya as isSelectOutOfBounds, Yc as hasNoCloudControlHandlers, Yi as stateSecretNameNeedles, Yn as mappingPairs, Yo as carriesFetchableDynamicReference, Yr as reachableDivergentParameters, Ys as refuseMalformedResourceEntriesForImportSave, Za as poisonRenderedSpellingsCollidingIn, Zc as S3StateBackend, Zi as extractDeploymentEventError, Zl as hasOwnKey, Zn as propertiesChangedReason, Zo as carriesDynamicReference, Zr as WITHHELD_NAME_DISPLAY, Zs as repairMalformedResourceEntriesForReadOnly, _ as conditionFingerprint, _a as isCustomResource, _c as malformedOutputsRefusalMessage, _n as dropFailedCommands, _o as callerEnvCredentials, _r as planRollback, a as scanActiveConsumers, aa as unsupportedFinalSnapshotError, ac as refuseMalformedResourcePropertiesForOrphan, ai as exportNameSecretExposure, al as applyCrossPrefixScan, an as displacedPhysicalIdShown, ao as resolveDynamicReferences, ar as withUnprovenUnsettled, b as readRecordedConditionVerdicts, ba as applyCustomResourceResponseExpiration, bc as refuseMalformedOutputs, bi as deleteSupersededEntry, bn as journaledOrphanLines, bo as classifyReplaySecretRegion, br as isJournaledOrphan, bs as maskedPropertyFingerprintsOf, c as nestedSsmNameDeferredNote, cc as hasReadableOrphans, ci as collectDeclaredOutputNames, cl as isNotImplemented, cn as nestedChildStackName$1, co as applyRoleArnIfSet, cr as equalModuloMask, cs as shownType, d as slashedSsmNameHealAdoptedNote, da as stripSiblingOwnedMembers, dc as refuseMalformedOrphans, di as bindingSkippedOutputs, dl as isSecretValuedAttribute, dn as revertedNestedRowIds, do as explicitRoleArnOrThrow, dr as updatePartialReason, ds as isStatefulRecreateTargetSync, ea as ccRoutedFinalSnapshotError, ec as malformedResourcePropertiesWarning, ei as secretBearing, el as hasReasonlessBaselineRefusal, er as replayFailedOperations, eu as ownValue, f as slashedSsmNameHealNote, fc as refuseMalformedOrphansForDestroy, fi as DEFAULT_RESOURCE_TIMEOUT_MS, fl as isSensitiveAttributeName, fn as withNestedRevertRun, fo as isIamRoleArn, fs as renderStatefulReason, g as makeCanonicalizePropertiesFn, ga as ccBrokenReason, gc as malformedLocalOutputsWarning, gi as destroyStackRecordsView, gn as deleteJournaledOrphans, go as applyCallerIdentityCredentials, h as inheritedProvenanceForChildDiff, ha as ProviderRegistry, hc as malformedExportSourceWarning, hl as createAssetRedirectResolver, hn as withNestedStackContext, ho as AWS_CREDENTIAL_ENV_KEYS, hr as withCreateTokenLedger, i as mergeNoChangeOutputs, ia as refusesFinalSnapshot, ic as refuseMalformedResourcePropertiesForExport, ii as exportNameNoEchoParameters, il as CrossPrefixScanCache, in as displacedOpClause, io as withSecretPhysicalIdsMaskedInState, ir as settleUnsettledPrevious, iu as displayAssemblyPath, j as deferredServiceTokenWarning, ja as customResourcesRunWithoutApp, jc as refuseMalformedState, ji as green, jl as validateAssetBucketName, jn as noEchoMacBinding, jo as AWS_NO_VALUE, js as malformedOrphanRowsKeptWarning, k as pendingMovesRefusalMessage, kc as refuseMalformedResourcesForDestroy, ki as cyan, kl as parseBootstrapMarker, kn as NOECHO_MAC_KEY_ALIAS, ko as isUnboundTemplateParameter, kr as withPreviousPolicies, ks as malformedOrphanRecordsRefusalMessage, l as nestedSsmNameRowNote, lc as malformedOrphansRefusalMessage, li as collectPublishedOutputNames, ll as stackInstanceIdOf, ln as recordDisplacedSkips, lo as assertFlagRoleArn, lr as undeclaredEmptyObservedKeys, ls as MULTI_REGION_RECREATE_BLOCKED_TYPES, lu as resolveBucketRegion, m as crossStackOutputProvenanceSource, ma as CC_BROKEN_REASON, mc as malformedExportNamesWarning, mi as maskingRetryLogger, ml as buildAssetRedirectMap, mn as getCurrentNestedStackContext, mo as sendableAssumeRoleCommand, n as isSecretBearingReferenceString, na as effectiveDeletionPolicy, nc as refuseMalformedResourcePropertiesForDestroy, ni as secretSafeKeyDisplay, nl as rebuildClientForBucketRegion, nn as resolvePendingCloudControlRequests, no as secretPhysicalIdSegment, nr as DELETED_RESOURCE_REMEDY, o as inRunStackKey, oa as createPreDeleteFinalSnapshot, oc as repairMalformedResourcePropertiesForReadOnly, oi as isWholeDynamicReferenceValue, ol as crossPrefixDeniedWarning, on as dropSettledNestedJournals, oo as producerLookupOver, or as calculateResourceDrift, os as findReplacedReadersOfRecreateTargets, ou as renderAssemblyPathEscape, p as slashedSsmNameHealPendingNote, pc as repairMalformedOrphansForReadOnly, pi as DEFAULT_RESOURCE_WARN_AFTER_MS, pn as collectNestedChildUnaddressed, po as parseIamRoleArn, pr as ledgerForStack, qa as isWaitAbandonedError, ql as decodeListingKey, qn as isPairableType, qo as getAccountInfo, qr as computeParameterTaint, qs as refuseMalformedResourceEntriesForDestroy, qt as readsOnlyNoEchoParameters, r as keptWholeReasonText, ra as isFinalSnapshotError, rc as refuseMalformedResourcePropertiesForDrift, ri as carriedExportAliasExposure, rl as CrossPrefixReadError, rn as NESTED_PENDING_PARENT_REASON, ro as secretSegmentsOfState, rr as recordAfterRollbackUpdate, ru as describeFileReadFailure, s as checkNestedSsmNames, sa as buildFinalSnapshotIdentifier, sc as UNREADABLE_ORPHANS_CONTAINER_ROW, si as noEchoParameterValueSeed, sl as isAccessDenied, so as refuseUnreadableCdkCrossAccountRefs, sr as equalModuloMarkedMask, su as resolveAssemblyPath, t as DeployEngine, ta as ccRoutedInstanceTakesNoSnapshot, ti as secretBearingStateKeyWarning, tl as hasUnverifiableParameterRefusal, tn as pendingRequestCount, tr as replayRollback, ts as INTRINSIC_KEYS, u as healSlashedSsmParameterNames, uc as malformedOrphansWarning, ui as isExportAliasCollision, ul as withStackInstanceIdWithheld, uo as assertSendableRoleArn, ur as updatePartialMessage, us as isStatefulRecreateTargetForReplace, v as conditionInputsFrom, va as wouldReturnToSdkProvider, vc as malformedOutputsWarning, vi as withStackRecords, vn as dropFailedHint, vo as envCredentialsAreAssumedRole, vr as seedsDeleteFirstGuard, w as listNestedTemplateRows, wa as readsNoEchoDeleteValues, wc as refuseDivergentRecordRegionForDestroy, wi as supersededHeldByOtherTypeWarning, wl as ensureAssetStorage, wn as makeSiblingClaimReader, wr as recordUnderIdIsNotOwn, x as childTemplateLoader, xa as customResourceResponseExpirationWarning, xc as refuseMalformedOutputsForDestroy, xi as holdsSupersededResources, xn as loadJournaledOrphans, xo as producerRegionsFromState, xr as isReplacementOrphan, y as parentSuppliedValues, ya as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, yl as loadPublishableAssetManifest, yn as isHandledOrphan, yo as classifyRecordedSecretRegion, yr as demoteSupersededOrphans, z as perType, zc as hasReadableOutputs, zi as createReadOnlyAttributeHealerFactory, zn as hintSidesOf, zr as nameGenerationHighWaterOf, zs as isReadableResourceEntry, zt as readRefactorMarker } from "./deploy-engine-DJeAtTj8.js";
10
10
  import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
11
- import { A as describeJsonParseFailure, C as PhaseClock, D as renderPhaseTimings, M as parseFailureDebugDetail, O as timePhase, P as utf8ByteLength, d as getCreateOnlyPropertyPaths, g as describeTypeWithThrottleRetry, m as templateResourceTypes, p as prefetchCreateOnlyPropertyPaths, x as withRetry } from "./ec2-termination-protection-BKKt6PdW.js";
12
- import { t as expectedOwnerParam } from "./expected-bucket-owner-ByWXInN8.js";
13
- import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-BpZMtyEd.js";
14
- import { An as recordNoEchoAttributeValues, Bt as identityKeyFor, D as recordedNoEchoValuesOf, Fn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Ft as keepTemplateLiteralLeaves, Ln as isSingleDynamicReferenceToken, Lt as spelledKeysOf, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, On as recordMaskOnlyValue, Ot as scrubResourceRecord, Pt as isUncertifiedBaselineMaskPosition, Rt as pathCrossesDottedKey, T as readsNoEchoSource, Tn as provenPublicValue, W as redactForState, Yt as inheritNestedStackParameterAssociations, _t as maskSecretsInText, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, ct as recordLogOnlyParameterValue, dt as shareLogOnlyValues, et as carryLogOnlyValues, f as isMarkedCoordinate, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gt as maskSecretsInError, h as maskWholeValue, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, jn as recordNoEchoParameterFreshValue, k as valueAtCoordinate, kn as recordMaskOnlyValuesIn, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, sn as physicalNameCopiesOf, st as printingCorpusOf, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, y as noEchoLeavesOf } from "./replacement-rules-CF-_BKrA.js";
15
- import { C as unsettledItemsField, E as unsettledPropertiesOf, O as withUnsettledProperties, i as withResourceDeadline, k as withoutUnsettledProperties, w as unsettledItemsOf } from "./resource-deadline-DAdDceOc.js";
16
- import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-CIXafW4r.js";
11
+ import { A as describeJsonParseFailure, C as PhaseClock, D as renderPhaseTimings, M as parseFailureDebugDetail, O as timePhase, P as utf8ByteLength, d as getCreateOnlyPropertyPaths, g as describeTypeWithThrottleRetry, m as templateResourceTypes, p as prefetchCreateOnlyPropertyPaths, x as withRetry } from "./ec2-termination-protection-BV8hz9MZ.js";
12
+ import { t as expectedOwnerParam } from "./expected-bucket-owner-27PSPNSP.js";
13
+ import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-CLEjcsQ3.js";
14
+ import { An as recordNoEchoAttributeValues, Bt as identityKeyFor, D as recordedNoEchoValuesOf, Fn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Ft as keepTemplateLiteralLeaves, Ln as isSingleDynamicReferenceToken, Lt as spelledKeysOf, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, On as recordMaskOnlyValue, Ot as scrubResourceRecord, Pt as isUncertifiedBaselineMaskPosition, Rt as pathCrossesDottedKey, T as readsNoEchoSource, Tn as provenPublicValue, W as redactForState, Yt as inheritNestedStackParameterAssociations, _t as maskSecretsInText, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, ct as recordLogOnlyParameterValue, dt as shareLogOnlyValues, et as carryLogOnlyValues, f as isMarkedCoordinate, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gt as maskSecretsInError, h as maskWholeValue, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, jn as recordNoEchoParameterFreshValue, k as valueAtCoordinate, kn as recordMaskOnlyValuesIn, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, sn as physicalNameCopiesOf, st as printingCorpusOf, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, y as noEchoLeavesOf } from "./replacement-rules-I3zjGJT3.js";
15
+ import { C as unsettledItemsField, E as unsettledPropertiesOf, O as withUnsettledProperties, i as withResourceDeadline, k as withoutUnsettledProperties, w as unsettledItemsOf } from "./resource-deadline-BDevYZI1.js";
16
+ import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-BlgB80sH.js";
17
17
  import { t as cdkdCacheHome } from "./cli.js";
18
18
  import { randomBytes, randomUUID } from "node:crypto";
19
19
  import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
@@ -1363,6 +1363,84 @@ function refuseMalformedNestedTemplateTrees(stacks) {
1363
1363
  throw markNonRetryable(new SynthesisError(renderNestedTemplateTreeDefect(defect, stack.stackName, "start the deploy; nothing has been published or provisioned")));
1364
1364
  }
1365
1365
  }
1366
+ const NESTED_STACK_TYPE$4 = "AWS::CloudFormation::Stack";
1367
+ const HOSTED_ROTATION_SUFFIX = "HostedRotationLambda";
1368
+ const MAX_RENDERED_OWNER_IDS = 8;
1369
+ function resourceEntries(template) {
1370
+ if (template === null || typeof template !== "object") return [];
1371
+ const resources = template.Resources;
1372
+ if (resources === null || typeof resources !== "object") return [];
1373
+ const out = [];
1374
+ for (const [id, row] of Object.entries(resources)) if (row !== null && typeof row === "object") out.push([id, row]);
1375
+ return out;
1376
+ }
1377
+ function readTemplateFile(templatePath) {
1378
+ try {
1379
+ return JSON.parse(fs.readFileSync(templatePath, "utf-8"));
1380
+ } catch {
1381
+ return;
1382
+ }
1383
+ }
1384
+ function renderOwner(stackName, ancestorIds) {
1385
+ if (ancestorIds.length <= MAX_RENDERED_OWNER_IDS) return displayStackName([stackName, ...ancestorIds].join("~"));
1386
+ const keep = MAX_RENDERED_OWNER_IDS / 2;
1387
+ const head = displayStackName([stackName, ...ancestorIds.slice(0, keep)].join("~"));
1388
+ const tail = displayStackName(ancestorIds.slice(-4).join("~"));
1389
+ return `${head}~...${ancestorIds.length - 8} more...~${tail}`;
1390
+ }
1391
+ function hostedRotationScheduleId(logicalId, rows) {
1392
+ if (!logicalId.endsWith(HOSTED_ROTATION_SUFFIX)) return void 0;
1393
+ const scheduleId = logicalId.slice(0, -20);
1394
+ return rows.get(scheduleId)?.["Type"] === "AWS::SecretsManager::RotationSchedule" ? scheduleId : void 0;
1395
+ }
1396
+ function refuseRemoteNestedStackRows(stacks, onConditionalRow) {
1397
+ for (const stack of stacks) {
1398
+ const visited = /* @__PURE__ */ new Set();
1399
+ const check = (template, templateDir, ancestorIds) => {
1400
+ const entries = resourceEntries(template);
1401
+ const rows = new Map(entries);
1402
+ for (const [logicalId, row] of entries) {
1403
+ if (row["Type"] !== NESTED_STACK_TYPE$4) continue;
1404
+ let childPath;
1405
+ if (templateDir === void 0) {
1406
+ const index = stack.nestedTemplates;
1407
+ const entry = index && Object.prototype.hasOwnProperty.call(index, logicalId) ? index[logicalId] : void 0;
1408
+ childPath = typeof entry === "string" && entry.length > 0 ? entry : void 0;
1409
+ } else {
1410
+ const assetPath = row["Metadata"]?.["aws:asset:path"];
1411
+ if (typeof assetPath === "string" && assetPath.length > 0) {
1412
+ const resolved = resolveAssemblyPath(templateDir, assetPath);
1413
+ if (!resolved.contained) continue;
1414
+ childPath = resolved.path;
1415
+ }
1416
+ }
1417
+ if (row["Condition"] !== void 0) {
1418
+ if (childPath === void 0) onConditionalRow?.(conditionalRowNote(stack.stackName, ancestorIds, logicalId));
1419
+ continue;
1420
+ }
1421
+ if (childPath !== void 0) {
1422
+ const key = path.resolve(childPath);
1423
+ if (visited.has(key)) continue;
1424
+ visited.add(key);
1425
+ check(readTemplateFile(childPath), path.dirname(childPath), [...ancestorIds, logicalId]);
1426
+ continue;
1427
+ }
1428
+ throw markNonRetryable(new SynthesisError(renderRemoteNestedStack(stack.stackName, ancestorIds, logicalId, rows)));
1429
+ }
1430
+ };
1431
+ check(stack.template, void 0, []);
1432
+ }
1433
+ }
1434
+ function renderRemoteNestedStack(stackName, ancestorIds, logicalId, rows) {
1435
+ const where = ancestorIds.length === 0 ? `stack ${displayStackName(stackName)}` : `nested stack ${renderOwner(stackName, ancestorIds)} (under stack ${displayStackName(stackName)})`;
1436
+ const base = `${NESTED_STACK_TYPE$4} ${displayIdent(logicalId)} in ${where} has no template in the cloud assembly (no Metadata['aws:asset:path']), and cdkd deploys a nested stack only from the template file that metadata names.`;
1437
+ const scheduleId = hostedRotationScheduleId(logicalId, rows);
1438
+ return `${base}${scheduleId !== void 0 ? ` It is the nested stack the AWS::SecretsManager-2024-09-16 transform generates for the hosted rotation of AWS::SecretsManager::RotationSchedule ${displayIdent(scheduleId)} (a CDK HostedRotation.*), whose TemplateURL is a remote template. A nested stack with a remote TemplateURL is not supported. To deploy this stack with cdkd, rotate the secret with a function the app owns instead (addRotationSchedule's rotationLambda), or deploy it with the AWS CDK CLI.` : " If it is a cdk.NestedStack synthesized with asset metadata disabled (the context aws:cdk:enable-asset-metadata set to false, or an assembly from cdk synth --no-asset-metadata), re-enable asset metadata and deploy again. If its TemplateURL is a remote template, that is not supported: deploy this stack with the AWS CDK CLI."} Refusing to start the deploy; nothing has been published or provisioned.`;
1439
+ }
1440
+ function conditionalRowNote(stackName, ancestorIds, logicalId) {
1441
+ const where = ancestorIds.length === 0 ? `stack ${displayStackName(stackName)}` : `nested stack ${renderOwner(stackName, ancestorIds)}`;
1442
+ return `${NESTED_STACK_TYPE$4} ${displayIdent(logicalId)} in ${where} has no local template and a Condition; left to the deploy; a real deploy refuses it if the condition is true.`;
1443
+ }
1366
1444
 
1367
1445
  // src/analyzer/cross-stack-deps.ts
1368
1446
  function inferCrossStackStackDeps(stacks, opts) {
@@ -1465,7 +1543,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
1465
1543
  // src/provisioning/register-providers.ts
1466
1544
  let providerClasses;
1467
1545
  function loadProviderClasses() {
1468
- providerClasses ??= import("./provider-classes-CTUyynuJ.js");
1546
+ providerClasses ??= import("./provider-classes-CEDAur3Q.js");
1469
1547
  return providerClasses;
1470
1548
  }
1471
1549
  function registerAllProviders(registry, classes) {
@@ -3450,6 +3528,7 @@ async function deployCommand(stacks, options) {
3450
3528
  runClock.lap("stack selection, stack regions");
3451
3529
  await synthesizer.expandMacrosForStacks(targetStacks, synthOptions);
3452
3530
  runClock.lap("macro expansion");
3531
+ refuseRemoteNestedStackRows(targetStacks, (message) => logger.info(message));
3453
3532
  const accountId = (await callerIdentityPromise).Account;
3454
3533
  runClock.lap("caller identity");
3455
3534
  const assetPublisher = new AssetPublisher();
@@ -10104,7 +10183,8 @@ const UNDECLARED_UNCOMPARED_KEYS = {
10104
10183
  "Groups",
10105
10184
  "Roles",
10106
10185
  "Users"
10107
- ]
10186
+ ],
10187
+ "AWS::EC2::Instance": ["BlockDeviceMappings"]
10108
10188
  };
10109
10189
  function undeclaredUncomparedDriftKeys(resourceType, properties) {
10110
10190
  const keys = hasOwnKey(UNDECLARED_UNCOMPARED_KEYS, resourceType) ? UNDECLARED_UNCOMPARED_KEYS[resourceType] : [];
@@ -20727,7 +20807,7 @@ function actionLabel(item, skipFinalSnapshot) {
20727
20807
  case "revert": return ` - revert ${safe(op.logicalId)} (${safe(op.resourceType)})${rep}`;
20728
20808
  case "restore-policies": return ` - revert ${safe(op.logicalId)} (${safe(op.resourceType)}) [DeletionPolicy / UpdateReplacePolicy only, in state; no AWS call]`;
20729
20809
  case "reverse-replacement":
20730
- if (op.oldResourceMaySurvive !== void 0) return ` - reverse-replace ${safe(op.logicalId)} (${replacementTypes(op)}) [the deploy did not confirm deleting the old resource: re-create it if AWS reports it gone, ` + (op.oldResourceMaySurvive === "kept" ? `re-adopt it if AWS still has it (its delete was refused or never sent), ` : `REFUSED if AWS still has it (its delete may still be running, or only partly ran), `) + `REFUSED if cdkd cannot tell; ` + (item.retainsNewResource ? `new one RETAINED (UpdateReplacePolicy: Retain) and left untracked]` : `delete new]`);
20810
+ if (op.oldResourceMaySurvive !== void 0) return ` - reverse-replace ${safe(op.logicalId)} (${replacementTypes(op)}) [the deploy did not confirm deleting the old resource: re-create it if AWS reports it gone, ` + (op.oldResourceMaySurvive === "kept" ? `re-adopt it if AWS still has it (its delete was refused or never sent), ` : op.oldResourceMaySurvive === "deferred" ? `re-adopt it if AWS still has it (its delete waits for the deploy to succeed), ` : `REFUSED if AWS still has it (its delete may still be running, or only partly ran), `) + `REFUSED if cdkd cannot tell; ` + (item.retainsNewResource ? `new one RETAINED (UpdateReplacePolicy: Retain) and left untracked]` : `delete new]`);
20731
20811
  return item.retainsNewResource ? ` - reverse-replace ${safe(op.logicalId)} (${replacementTypes(op)}) [re-create old resource; new one RETAINED (UpdateReplacePolicy: Retain) and left untracked — REFUSED instead if the re-create collides with the name the retained resource still holds]` : ` - reverse-replace ${safe(op.logicalId)} (${replacementTypes(op)}) [re-create old resource, delete new]`;
20732
20812
  case "reverse-replacement-readopt": return item.retainsNewResource ? ` - reverse-replace ${safe(op.logicalId)} (${replacementTypes(op)}) [re-adopt retained old resource; new one RETAINED (UpdateReplacePolicy: Retain) and left untracked]` : ` - reverse-replace ${safe(op.logicalId)} (${replacementTypes(op)}) [delete new, re-adopt retained old resource]`;
20733
20813
  case "unrecoverable-delete": return ` - (cannot restore) ${safe(op.logicalId)} (${safe(op.resourceType)}) — was DELETED, unrecoverable`;
@@ -21055,11 +21135,11 @@ async function runRollbackReplay(ctx) {
21055
21135
  let currentEtag = stateData.etag;
21056
21136
  const saveState = async () => {
21057
21137
  if (declinedDivergentRewrite) return;
21058
- const { skippedOutputs: _droppedByRollback, ...carriedState } = baseState;
21138
+ const { skippedOutputs: _droppedByRollback, ...carriedState } = withoutSuperseded(baseState);
21059
21139
  const next = () => ({
21060
21140
  ...carriedState,
21061
- ...stackInstanceIdCarriedFrom(baseState),
21062
- ...supersededAfterRollback(baseState, supersededHost),
21141
+ ...stackInstanceIdCarriedFrom(withoutSuperseded(baseState)),
21142
+ ...supersededAfterRollback(baseState, supersededHost, stateResources),
21063
21143
  version: 17,
21064
21144
  region,
21065
21145
  resources: { ...stateResources },
@@ -24367,6 +24447,9 @@ async function resolveImportedProperties(stackState, template, region, stateBack
24367
24447
  parametersHit: /* @__PURE__ */ new Set()
24368
24448
  };
24369
24449
  }
24450
+ const recordedImports = [];
24451
+ const recordedOutputReads = [];
24452
+ const allRecordedSecrets = /* @__PURE__ */ new Map();
24370
24453
  const baseContext = {
24371
24454
  template,
24372
24455
  resources: stackState.resources,
@@ -24376,9 +24459,12 @@ async function resolveImportedProperties(stackState, template, region, stateBack
24376
24459
  ...Object.keys(conditions).length > 0 && { conditions },
24377
24460
  stateBackend,
24378
24461
  stackName: stackState.stackName,
24379
- stackIdTail: () => stackIdTailOf(stackState, stackState.stackName)
24462
+ stackIdTail: () => stackIdTailOf(stackState, stackState.stackName),
24463
+ recordedImports,
24464
+ recordedOutputReads
24380
24465
  };
24381
24466
  const noEchoInputs = /* @__PURE__ */ new Map();
24467
+ const unresolvedReadSources = [];
24382
24468
  for (const [logicalId, resource] of entries) {
24383
24469
  const recordedSecretValues = /* @__PURE__ */ new Map();
24384
24470
  const unresolvedProperties = resource.properties ?? {};
@@ -24402,7 +24488,12 @@ async function resolveImportedProperties(stackState, template, region, stateBack
24402
24488
  } catch (err) {
24403
24489
  logger.warn(`Failed to resolve intrinsics in Properties for imported resource ${logicalIdShown(logicalId)} (${resourceTypeShown(resource.resourceType)}): ${maskSecretsInText(describeAwsFailure(err).detail, recordedSecretValues)}.\nState will be written with the raw intrinsic shape, which may cause 'cdkd destroy' to fail on this resource — re-import once every referenced sibling is in state, or remove this resource from state with ${pasteableCommand("cdkd orphan", [{ hole: "StackPath/Path/To/Resource" }]).command}.` + (unboundParameterNames.length > 0 ? ` This template also declares parameter(s) with no 'Default' that an import cannot bind (${unboundParameterNames.map((name) => plainOrDescribed(name, "parameter name")).join(", ")}), and 'cdkd import' accepts no parameter values — if this property was built from one of those, re-importing a sibling will not change it: give the parameter a 'Default' in the template and re-import, or correct the recorded properties before the next ${proseQuoted(cdkdRemedy("cdkd deploy"))}.` : ""));
24404
24490
  threw = true;
24491
+ unresolvedReadSources.push({
24492
+ label: `resource ${logicalIdShown(logicalId)}`,
24493
+ value: unresolvedProperties
24494
+ });
24405
24495
  }
24496
+ for (const [plaintext, expression] of recordedSecretValues) allRecordedSecrets.set(plaintext, expression);
24406
24497
  if (recordedSecretValues.size > 0 && resource.attributes !== void 0) resource.attributes = redactForState(resource.attributes, {
24407
24498
  provenance: "value-scan",
24408
24499
  secrets: recordedSecretValues
@@ -24434,8 +24525,126 @@ async function resolveImportedProperties(stackState, template, region, stateBack
24434
24525
  }
24435
24526
  }
24436
24527
  positionImportedNoEcho(stackState, noEchoInputs, template, conditions, unsafeObservedBaselineLogicalIds, logger);
24528
+ await recordCrossStackReadNodes([...unresolvedReadSources, ...outputReadSources(template, conditions)], template, conditions, resolver, baseContext, allRecordedSecrets, logger);
24529
+ persistCrossStackReads(stackState, recordedImports, recordedOutputReads, allRecordedSecrets);
24437
24530
  return unsafeObservedBaselineLogicalIds;
24438
24531
  }
24532
+ function outputReadSources(template, conditions) {
24533
+ const outputs = template.Outputs;
24534
+ if (outputs === null || typeof outputs !== "object") return [];
24535
+ const sources = [];
24536
+ for (const [name, output] of Object.entries(outputs)) {
24537
+ if (output === null || typeof output !== "object") continue;
24538
+ const condition = output.Condition;
24539
+ if (typeof condition === "string" && conditions[condition] === false) continue;
24540
+ sources.push({
24541
+ label: `Output ${displayIdent(name)}`,
24542
+ value: output.Value
24543
+ });
24544
+ }
24545
+ return sources;
24546
+ }
24547
+ async function recordCrossStackReadNodes(sources, template, conditions, resolver, baseContext, allRecordedSecrets, logger) {
24548
+ const known = /* @__PURE__ */ new Set([...Object.keys(baseContext?.resources ?? {}), ...Object.keys(template.Parameters ?? {})]);
24549
+ for (const { label, value } of sources) for (const node of crossStackReadNodes(value, conditions)) {
24550
+ if (referencedIds(node, conditions).some((id) => !id.startsWith("AWS::") && !known.has(id))) {
24551
+ logger.debug(safeMsg`A cross-stack read in ${label} was not resolved during import: its argument references a resource this record does not hold.`);
24552
+ continue;
24553
+ }
24554
+ const recordedSecretValues = /* @__PURE__ */ new Map();
24555
+ try {
24556
+ await resolver.resolve(node, {
24557
+ ...baseContext,
24558
+ recordedSecretValues
24559
+ });
24560
+ } catch (err) {
24561
+ logger.debug(safeMsg`A cross-stack read in ${label} was not resolved during import: ${err instanceof Error ? err.name : typeof err}.`);
24562
+ }
24563
+ for (const [plaintext, expression] of recordedSecretValues) allRecordedSecrets.set(plaintext, expression);
24564
+ }
24565
+ }
24566
+ const MAX_READ_SCAN_DEPTH = 64;
24567
+ function crossStackReadNodes(value, conditions) {
24568
+ const nodes = [];
24569
+ const walk = (node, depth) => {
24570
+ if (depth > MAX_READ_SCAN_DEPTH || node === null || typeof node !== "object") return;
24571
+ if (Array.isArray(node)) {
24572
+ for (const item of node) walk(item, depth + 1);
24573
+ return;
24574
+ }
24575
+ const entries = Object.entries(node);
24576
+ if (entries.length === 1) {
24577
+ const [key, arg] = entries[0];
24578
+ if (key === "Fn::ImportValue" || key === "Fn::GetStackOutput") {
24579
+ nodes.push(node);
24580
+ return;
24581
+ }
24582
+ if (key === "Fn::If" && Array.isArray(arg) && typeof arg[0] === "string") {
24583
+ const verdict = conditions[arg[0]];
24584
+ if (verdict !== false) walk(arg[1], depth + 1);
24585
+ if (verdict !== true) walk(arg[2], depth + 1);
24586
+ return;
24587
+ }
24588
+ }
24589
+ for (const [, child] of entries) walk(child, depth + 1);
24590
+ };
24591
+ walk(value, 0);
24592
+ return nodes;
24593
+ }
24594
+ function referencedIds(value, conditions) {
24595
+ const targets = [];
24596
+ const walk = (node, depth) => {
24597
+ if (depth > MAX_READ_SCAN_DEPTH || node === null || typeof node !== "object") return;
24598
+ if (Array.isArray(node)) {
24599
+ for (const item of node) walk(item, depth + 1);
24600
+ return;
24601
+ }
24602
+ const entries = Object.entries(node);
24603
+ if (entries.length === 1) {
24604
+ const [key, arg] = entries[0];
24605
+ if (key === "Fn::If" && Array.isArray(arg) && typeof arg[0] === "string") {
24606
+ const verdict = conditions[arg[0]];
24607
+ if (verdict !== false) walk(arg[1], depth + 1);
24608
+ if (verdict !== true) walk(arg[2], depth + 1);
24609
+ return;
24610
+ }
24611
+ }
24612
+ for (const [key, child] of entries) {
24613
+ if (key === "Ref" && typeof child === "string") targets.push(child);
24614
+ if (key === "Fn::GetAtt") {
24615
+ const id = Array.isArray(child) ? child[0] : typeof child === "string" ? child.split(".")[0] : void 0;
24616
+ if (typeof id === "string") targets.push(id);
24617
+ }
24618
+ if (key === "Fn::Sub") {
24619
+ const [body, vars] = Array.isArray(child) ? child : [child, void 0];
24620
+ const bound = vars !== null && typeof vars === "object" ? Object.keys(vars) : [];
24621
+ if (typeof body === "string") for (const m of body.matchAll(/\$\{([^!}][^}]*)\}/g)) {
24622
+ const id = m[1].split(".")[0];
24623
+ if (!bound.includes(id)) targets.push(id);
24624
+ }
24625
+ }
24626
+ walk(child, depth + 1);
24627
+ }
24628
+ };
24629
+ walk(value, 0);
24630
+ return targets;
24631
+ }
24632
+ function persistCrossStackReads(stackState, recordedImports, recordedOutputReads, secrets) {
24633
+ const redact = (value) => redactForState(value, {
24634
+ provenance: "value-scan",
24635
+ secrets
24636
+ });
24637
+ const reads = crossStackReadsForPartialSave(stackState, recordedImports, recordedOutputReads, redact);
24638
+ if (reads.imports !== void 0) stackState.imports = reads.imports.map((entry) => ({
24639
+ ...entry,
24640
+ exportName: redact(entry.exportName)
24641
+ }));
24642
+ if (reads.outputReads !== void 0) stackState.outputReads = reads.outputReads.map((entry) => ({
24643
+ ...entry,
24644
+ sourceStack: redact(entry.sourceStack),
24645
+ outputName: redact(entry.outputName)
24646
+ }));
24647
+ }
24439
24648
 
24440
24649
  // src/cli/commands/import/stack-state.ts
24441
24650
  async function claimRegistryMarkerAfterImport(backend, stackName, region, logger) {
@@ -24604,6 +24813,8 @@ function buildStackState(stackName, region, rows, templateParser, template, exis
24604
24813
  ...existingState?.outputReferenceProvenance !== void 0 && { outputReferenceProvenance: existingState.outputReferenceProvenance },
24605
24814
  ...existingState ? orphansCarriedFrom(existingState) : {},
24606
24815
  ...existingState ? stackInstanceIdCarriedFrom(existingState) : {},
24816
+ ...existingState?.imports !== void 0 && { imports: existingState.imports },
24817
+ ...existingState?.outputReads !== void 0 && { outputReads: existingState.outputReads },
24607
24818
  lastModified: Date.now()
24608
24819
  };
24609
24820
  }
@@ -24707,8 +24918,12 @@ async function importNestedStackChildrenRecursive(args) {
24707
24918
  childStackState.parentRegion = parentRegion;
24708
24919
  const childPrior = await stateBackend.getState(childStackName, childRegion);
24709
24920
  const childStackInstanceId = childPrior ? stackInstanceIdOf(childPrior.state, displaySafe(childStackName)) : await stateBackend.stackInstanceIdForFirstWrite(childStackName, childRegion, { writeAhead: false });
24710
- if (childPrior) Object.assign(childStackState, stackInstanceIdCarriedFrom(childPrior.state));
24711
- else if (childStackInstanceId !== void 0) childStackState.stackInstanceId = childStackInstanceId;
24921
+ if (childPrior) {
24922
+ Object.assign(childStackState, stackInstanceIdCarriedFrom(childPrior.state));
24923
+ const { imports, outputReads } = childPrior.state;
24924
+ if (imports !== void 0) childStackState.imports = imports;
24925
+ if (outputReads !== void 0) childStackState.outputReads = outputReads;
24926
+ } else if (childStackInstanceId !== void 0) childStackState.stackInstanceId = childStackInstanceId;
24712
24927
  const childDeployedParameters = namesAnyDeclaredParameter(childStateTemplate) ? await readDeployedParameters(childTreeNode.stackName, args.cfnClient, logger, displaySafe(childStackName)) : void 0;
24713
24928
  const childUnsafeObservedBaselineLogicalIds = await withSharedDrainBudget(() => resolveImportedProperties(childStackState, childStateTemplate, childRegion, stateBackend, logger, childDeployedParameters));
24714
24929
  await captureObservedForImportedResources(childStackState, providerRegistry, logger, childUnsafeObservedBaselineLogicalIds, rebuiltLogicalIdsFrom(rows, childTemplate));
@@ -33935,4 +34150,4 @@ function collectVerbFlags(program) {
33935
34150
  }
33936
34151
 
33937
34152
  export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, canonicalizeIpProtocolValue as o, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
33938
- //# sourceMappingURL=program-C8K2yI5F.js.map
34153
+ //# sourceMappingURL=program-DNuXtBgT.js.map