@cdkd/cli 0.339.0 → 0.340.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/{asg-provider-BiLQ0XWy.js → asg-provider-DrQNWTtu.js} +2 -2
  2. package/dist/{asg-provider-BiLQ0XWy.js.map → asg-provider-DrQNWTtu.js.map} +1 -1
  3. package/dist/cli.js +2 -2
  4. package/dist/{db-instance-modify-retry-DR1oW9Ln.js → db-instance-modify-retry-BJSwxkSE.js} +2 -2
  5. package/dist/{db-instance-modify-retry-DR1oW9Ln.js.map → db-instance-modify-retry-BJSwxkSE.js.map} +1 -1
  6. package/dist/{deploy-engine-BFlLAOb5.js → deploy-engine-Bn_aBFb7.js} +99 -35
  7. package/dist/deploy-engine-Bn_aBFb7.js.map +1 -0
  8. package/dist/{ecr-uri-DWcC0h82.js → ecr-uri-B5zqA138.js} +2 -2
  9. package/dist/{ecr-uri-DWcC0h82.js.map → ecr-uri-B5zqA138.js.map} +1 -1
  10. package/dist/{iam-role-provider-m_Kd7_uy.js → iam-role-provider-CRHaUz5M.js} +2 -2
  11. package/dist/{iam-role-provider-m_Kd7_uy.js.map → iam-role-provider-CRHaUz5M.js.map} +1 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/{neptune-provider-Du2C7Q5P.js → neptune-provider-BL93NXUx.js} +3 -3
  15. package/dist/{neptune-provider-Du2C7Q5P.js.map → neptune-provider-BL93NXUx.js.map} +1 -1
  16. package/dist/{program-B-C6eA7H.js → program-CuJKRAac.js} +35 -50
  17. package/dist/program-CuJKRAac.js.map +1 -0
  18. package/dist/{provider-classes-ZB2dhH_W.js → provider-classes-CRZ8a4sy.js} +10 -10
  19. package/dist/provider-classes-CRZ8a4sy.js.map +1 -0
  20. package/dist/{rds-provider-DzsTP_11.js → rds-provider-B-LP69hz.js} +292 -18
  21. package/dist/rds-provider-B-LP69hz.js.map +1 -0
  22. package/dist/{read-replica-DIfL8kl8.js → read-replica-DblnJp2B.js} +2 -2
  23. package/dist/{read-replica-DIfL8kl8.js.map → read-replica-DblnJp2B.js.map} +1 -1
  24. package/dist/{version-eQ4CwKON.js → version-Y2LIzQUU.js} +2 -2
  25. package/dist/{version-eQ4CwKON.js.map → version-Y2LIzQUU.js.map} +1 -1
  26. package/package.json +1 -1
  27. package/dist/deploy-engine-BFlLAOb5.js.map +0 -1
  28. package/dist/program-B-C6eA7H.js.map +0 -1
  29. package/dist/provider-classes-ZB2dhH_W.js.map +0 -1
  30. package/dist/rds-provider-DzsTP_11.js.map +0 -1
@@ -1,11 +1,11 @@
1
- import { t as getCdkdVersion } from "./version-eQ4CwKON.js";
1
+ import { t as getCdkdVersion } from "./version-Y2LIzQUU.js";
2
2
  import { $ as safeMsg, B as SAFE_MSG_ALTERED_CHAR, C as PATTERN_B_RESOURCE_TYPES, F as isNameGeneration, G as cutMarker, H as STACK_REF_MAX_CODE_POINTS, J as displaySafe, K as displayAwsMessage, L as withSkipPrefix, Q as plainIdentOr, R as withStackScope, S as PATTERN_B_NAME_PROPERTIES, T as generateResourceName, U as UNRENDERABLE, V as SECRET_REF_MAX_CODE_POINTS, W as asIsMessage, X as isPasteableIdent, Y as displayStackName, _ as explicitNamePropertyFor, a as safeStringify, c as isStdoutReservedForPayload, d as runStackBuffered, et as stringifyJsonPayload, l as reserveStdoutForPayload, m as getLiveRenderer, n as describeAwsFailure, nt as truncateCodePoints, q as displayIdent, s as getLogger, tt as terminalSafe, w as derivesPatternBName, x as PATTERN_B_NAME_OPTIONS } from "./aws-failure-text-FKztQiaJ.js";
3
- import { $a as applyCallerIdentityCredentials, $c as recordedNoEchoValuesOf, $l as hasReadableExportSet, $n as planRollback, $r as deleteSupersededEntry, $s as malformedExportSourceWarning, $t as NESTED_PENDING_PARENT_REASON, $u as isMalformedEnvKey, A as serviceTokenBlockingReason, Ac as NO_CC_HANDLERS_REASON, Ad as canonicalizeRegion, Ai as stateSecretNameNeedles, An as rollbackOrphanIds, Ao as withSharedDrainBudget, Ar as displayTextOrWithheld, As as refuseMalformedResourceEntries, Au as ensureAssetStorage, Ba as isAlwaysLiveAttribute, Bc as TemplateParser, Bd as hasOwnKey, Bi as ccRoutedInstanceTakesNoSnapshot, Bl as recordNoEchoAttributeValues, Bn as settleUnsettledPrevious, Bo as MULTI_REGION_RECREATE_BLOCKED_TYPES, Br as collectDeclaredOutputNames, Bs as refuseMalformedResourcePropertiesForDestroy, Bt as recordRetainedForReadoption, Bu as buildDockerImage, C as templateIdentity, Ca as RollbackInlinePolicyWriters, Cc as hasReadableOutputs, Cd as MIGRATE_TMP_PREFIX, Ci as maskEventTextWithBoundBags, Cl as DYNAMIC_REFERENCE_TOKEN_SCAN, Cn as DeploymentEventsStore, Co as recordedReferenceRegions, Cs as unreadableOrphanRecords, Cu as stringifyValue, D as refusePendingMovesOut, Da as deleteSkipReason, Dd as decodeListingKey, Di as secretNamePrintingBags, Dl as pathCrossesDottedKey, Dn as findRefactorHints, Do as isNamelessDynamicReferenceError, Dr as reachableDivergentParameters, Ds as malformedResourceEntriesWarning, Du as loadPublishableAssetManifest, E as pendingMovesRefusalMessage, Ea as deleteLeftInPlace, Ec as findHandledUnwrittenCreateOnly, Ed as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Ei as secretNamePrintingBag, El as spelledKeysOf, En as formatDestructiveChange, Eo as carriesFetchableDynamicReference, Er as namesAnyDeclaredParameter, Es as malformedLocalResourcesWarning, Eu as createAssetRedirectResolver, F as isProtectionValueActive, Fd as processStackMessages, Fi as secretSegmentsOfState, Fl as splitGetAttStringForm, Fn as parseMappingFile, Fo as unsettledPropertiesOf, Fr as carriedExportAliasExposure, Fs as refuseMalformedResourceEntriesForOrphan, Fu as parseBootstrapMarker, Ga as refuseUnreadableCdkCrossAccountRefs, Gc as maskWholeValue, Gd as describeFileReadFailure, Gi as createPreDeleteFinalSnapshot, Gl as isSingleDynamicReferenceToken, Gn as undeclaredEmptyObservedKeys, Gr as DEFAULT_RESOURCE_WARN_AFTER_MS, Gs as UNREADABLE_ORPHANS_CONTAINER_ROW, Gt as refuseRefactorMarker, Gu as redactedCause, Hc as isMarkedCoordinate, Hd as nullPrototypeRecord, Hi as isFinalSnapshotError, Hl as recordProvenPublicExpression, Hn as calculateResourceDrift, Ho as isStatefulRecreateTargetSync, Hr as isExportAliasCollision, Hs as refuseMalformedResourcePropertiesForExport, Ht as readRefactorMarkerOnce, Hu as describeDockerCapturedOutput, I as perType, Id as describeJsonParseFailure, Ii as withSecretPhysicalIdsMaskedInState, Il as carriesSecretMask, In as proposeRenames, Io as withUnsettledProperties, Ir as exportNameNoEchoParameters, Is as repairMalformedResourceEntriesForReadOnly, It as withResourceDeadline, Iu as readBootstrapMarkerBody, Ja as assertSendableRoleArn, Jc as noEchoLeavesOf, Jd as resolveAssemblyPath, Jl as S3StateBackend, Jr as destroyStackRecordsView, Js as malformedOrphansWarning, Ju as dockerSpawnEnvWithSensitive, Ka as applyRoleArnIfSet, Kc as maskedLeafCoordinatesOf, Kd as displayAssemblyPath, Ki as buildFinalSnapshotIdentifier, Kl as LockManager, Kn as updatePartialMessage, Kr as maskingRetryLogger, Ks as hasReadableOrphans, Kt as sameMove, Ku as redactedDockerCause, L as readProtection, La as isWaitAbandonedError, Ld as parseFailureDebugDetail, Li as ATOMIC_FINAL_SNAPSHOT_TYPES, Ll as provenPublicValue, Ln as replayFailedOperations, Lo as withoutUnsettledProperties, Lr as exportNameSecretExposure, Ls as unreadableResourceEntries, Lt as IMPLICIT_DELETE_DEPENDENCIES, Lu as validateAssetBucketName, M as recordedProtectionEvidence, Md as refuseFailedLookups, Mi as extractDeploymentEventError, Mn as isPairableType, Mr as secretBearing, Ms as refuseMalformedResourceEntriesForDestroy, Mu as assertAssetBucketRegion, N as recordedProtectionNote, Nd as AssemblyReader, Nl as recordPhysicalNameCopy, Nn as looselyEqual, No as unsettledItemsField, Nr as secretBearingStateKeyWarning, Ns as refuseMalformedResourceEntriesForImport, Nu as isCrossRegionRedirect, O as deferredServiceTokenWarning, Oc as unwrittenCreateOnlyReplacement, Od as expectedOwnerParam, Ol as identityKeyFor, On as hintSidesOf, Oo as carriesDynamicReference, Or as resourcesNamingDeclaredParameter, Os as malformedScrubResourceEntriesRefusalMessage, Ou as rewriteTemplateAssetReferences, P as PROTECTION_PROPERTY_BY_TYPE, Pd as StageLoadError, Pl as recordNestedStackParameterExpressions, Pn as mappingPairs, Po as unsettledItemsOf, Pr as secretSafeKeyDisplay, Ps as refuseMalformedResourceEntriesForImportSave, Pu as getBootstrapMarkerKey, Qa as AWS_CREDENTIAL_ENV_KEYS, Qc as readsNoEchoSource, Qd as resolveBucketRegion, Ql as exportNamesCarriedFrom, Qr as addSuperseded, Qs as malformedExportNamesWarning, Qt as resolvePendingCloudControlRequests, Qu as isDockerClientEnvKey, Ra as DiffCalculator, Rd as utf8ByteLength, Ri as PRE_DELETE_SNAPSHOT_TYPES, Rl as recordMaskOnlyValue, Rn as replayRollback, Ro as findReplacedReadersOfRecreateTargets, Rr as isWholeDynamicReferenceValue, Rs as malformedDriftResourcePropertiesWarning, Rt as computeImplicitDeleteEdges, Ru as validateContainerRepoName, S as renderNestedTemplateTreeDefect, Sa as slowCcOperationTimeoutMs, Sc as displayLogicalId, Sd as CFN_TEMPLATE_URL_LIMIT, Si as journaledOrphanPrintingBag, Sn as DeploymentEventsReader, So as recordedOutputReferenceRegions, Sr as withNameGenerationReached, Ss as unpreviewableOrphanRecords, Su as isSensitiveAttributeName, T as pendingMovesOutOf, Ta as deleteIndeterminateGuards, Tc as findActionableSdkUnwired, Td as uploadCfnTemplate, Ti as orphanRecordsPrintingBag, Tl as isUncertifiedBaselineMaskPosition, Tn as findDestructiveChanges, To as isImpossibleEmptyStoredAttribute, Tr as computeParameterTaint, Ts as malformedLocalResourceEntriesWarning, Tu as buildAssetRedirectMap, Ua as resolveDynamicReferences, Uc as maskAtCoordinates, Ud as ownValue, Ui as refusesFinalSnapshot, Ul as wholeStringLeavesOf, Un as equalModuloMarkedMask, Uo as renderStatefulReason, Ur as bindingSkippedOutputs, Us as refuseMalformedResourcePropertiesForOrphan, Ut as refactorMarkerMovesOf, Uu as describeDockerExecFailure, Va as poisonRenderedSpellingsCollidingIn, Vc as canonicalCoordinates, Vd as hasPlainPrototype, Vi as effectiveDeletionPolicy, Vl as recordNoEchoParameterFreshValue, Vn as withUnprovenUnsettled, Vo as isStatefulRecreateTargetForReplace, Vr as collectPublishedOutputNames, Vs as refuseMalformedResourcePropertiesForDrift, Vt as readRefactorMarker, Vu as resolveDockerContextDirectory, Wa as producerLookupOver, Wc as maskReadbackAtCoordinates, Wd as absoluteAssemblyPathEscape, Wi as unsupportedFinalSnapshotError, Wl as WHOLE_DYNAMIC_REFERENCE_PATTERN, Wn as equalModuloMask, Wr as DEFAULT_RESOURCE_TIMEOUT_MS, Ws as repairMalformedResourcePropertiesForReadOnly, Wt as refactorMarkerRefusalMessage, Wu as describeDockerFailure, Xa as isIamRoleArn, Xd as injectedAwsRegionValue, Xl as acceptedCreateOnlyDropsOf, Xr as withStackRecords, Xs as refuseMalformedOrphansForDestroy, Xt as formatResourceLine, Xu as partitionSensitiveEnv, Ya as explicitRoleArnOrThrow, Yc as noEchoOutputsComparison, Yd as injectAwsRegion, Yl as splitImportedOps, Yn as ledgerForStack, Yo as coerceCfnBoolean, Ys as refuseMalformedOrphans, Yu as finchSecretArgvRefusal, Za as sendableAssumeRoleCommand, Zc as readbackPathFor, Zl as describeRegionValueKind, Zn as withCreateTokenLedger, Zs as repairMalformedOrphansForReadOnly, Zt as pendingRequestCount, Zu as warnFinchArgvExposure, _ as readRecordedConditionVerdicts, _c as JSON_LISTING_HOLE_VALUE, _d as resolveUseCdkBootstrapAssets, _i as noEchoExactEchoLeavesOf, _l as errorCauseChain, _n as loadJournaledOrphans, _o as lacksRecordedTableArn, _r as nameGenerationHighWaterOf, _s as previewableOrphanRecords, _u as isAccessDenied, aa as ProviderRegistry, ac as refuseMalformedOutputsForDestroy, ad as getDockerImageBySourceHash, ai as supersededHolderOf, an as recordDisplacedSkips, ao as regionLessSecretName, ar as recheckFailedPlan, as as prefetchCreateOnlyPropertyPaths, au as shouldRetainResource, b as isAbsoluteAssetPath, bc as STATE_RESOURCES_MALFORMED, bd as ssmResolvedValueType, bi as createReadOnlyAttributeHealerFactory, bl as scrubResourceRecord, bn as makeSiblingClaimReader, bo as keepHeldTokenProvenance, br as retiredNameGenerationsAfter, bs as refuseMalformedOrphansForOrphan, bu as withStackInstanceIdWithheld, c as mergeNoChangeOutputs, ca as wouldReturnToSdkProvider, cc as refuseDivergentRecordRegionForDestroy, cd as getDefaultStateBucketName, cl as hasMaskableValues, cn as withNestedRevertRun, cr as resolveReplacementOldType, cs as withRetry, cu as hasUnverifiableParameterRefusal, d as crossStackOutputProvenanceSource, da as customResourceResponseExpirationWarning, dc as malformedStateRefusalMessage, dd as resolveApp, di as gray, dl as printingCorpusOf, dn as withNestedStackContext, do as coerceParameterTypedValue, ds as declaresNoEcho, du as timePhase, ec as malformedLocalOutputsWarning, ed as formatDockerLoginError, ei as holdsSupersededResources, el as valueAtCoordinate, en as displacedOpClause, eo as callerEnvCredentials, er as seedsDeleteFirstGuard, eu as importableOutputKeys, f as inheritedProvenanceForChildDiff, fa as TemplateNoEchoReresolver, fc as refuseMalformedResourcesForDeploy, fd as resolveAutoAssetStorage, fi as green, fl as recordLogOnlyParameterValue, fn as deleteJournaledOrphans, fo as isUnboundTemplateParameter, fs as deployRefusesOrphanRowsReason, fu as rebuildClientForBucketRegion, g as parentSuppliedValues, ga as withPrintingSecrets, gc as repairMalformedResourcesForReadOnly, gd as resolveStateBucketWithDefaultAndSource, gi as noEchoComparisonForTemplate, gl as createSecretMasker, gn as journaledOrphanLines, go as isStalePlaceholderArnAttribute, gr as nameGenerationCarriedFrom, gs as malformedOrphanRowsKeptWarning, gu as crossPrefixDeniedWarning, h as conditionInputsFrom, hc as refuseMalformedState, hd as resolveStateBucketWithDefault, hi as noEchoAttributeNamesOf, hl as unionOfSecretBags, hn as isHandledOrphan, ho as cfnRefValueFromPhysicalId, hr as orphanNeedsIdentity, hs as malformedOrphanRecordsWarning, hu as applyCrossPrefixScan, ia as CC_BROKEN_REASON, ic as refuseMalformedOutputs, id as AssetManifestLoader, ii as supersededHeldByOtherTypeWarning, in as nestedChildStackName$1, io as producerRegionsFromState, ir as planFailedOps, iu as orphansCarriedFrom, j as diffSecurity, jc as hasNoCloudControlHandlers, jd as derivePartitionAndUrlSuffix, ji as storedSecretNameNeedles, jl as physicalNameCopiesOf, jn as withMovedTo, jo as INTRINSIC_KEYS, jr as exportAliasCollisionScrubWarning, js as refuseMalformedResourceEntriesForDeploy, ju as buildDenyExternalAccessPolicy, k as findServiceTokenRefusals, kd as PARTITION_TABLE, ki as secretNamedRecordNeedles, kl as inheritNestedStackParameterAssociations, kn as movedToHint, ko as keepsSecretReferenceToken, kr as WITHHELD_NAME_DISPLAY, ks as refuseMalformedResourceAttributesForOrphan, ku as AssetModeResolver, l as scanActiveConsumers, la as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, lc as malformedRenderedContainersWarning, ld as getLegacyStateBucketName, li as bold, ll as literalSplitDelimitersOf, ln as collectNestedChildUnaddressed, lr as findNestedStackTypeChanges, ls as parameterInputsFor, lu as PhaseClock, m as conditionFingerprint, ma as isCustomResourceType$1, mc as refuseMalformedResourcesForExport, md as resolveSkipPrefix, mi as yellow, ml as shareLogOnlyValues, mn as dropFailedHint, mo as AWS_NO_VALUE, mr as removeProtectionTypeList, ms as malformedOrphanRecordsRefusalMessage, mu as CrossPrefixScanCache, nc as malformedOutputsWarning, nd as runDockerForeground, ni as removeSuperseded, nn as dropSettledNestedJournals, no as classifyRecordedSecretRegion, nr as isJournaledOrphan, nu as isReadableBag, o as isSecretBearingReferenceString, oa as ccBrokenReason, oc as repairMalformedOutputsForReadOnly, od as Synthesizer, oi as supersededResourcesOf, ol as carryLogOnlyValues, or as recordUnderIdIsNotOwn, os as templateResourceTypes, ou as stackInstanceIdCarriedFrom, p as makeCanonicalizePropertiesFn, pa as readsNoEchoDeleteValues, pc as refuseMalformedResourcesForDestroy, pd as resolveCaptureObservedState, pi as red, pl as recordLogOnlyValue, pn as dropFailedCommands, po as parameterTypeMayLoseSecretIdentity, ps as isReadableOrphanRecord, pu as CrossPrefixReadError, qa as assertFlagRoleArn, qc as noEchoCoordinatesOf, qd as renderAssemblyPathEscape, ql as isLockInfoExpired, qn as updatePartialReason, qs as malformedOrphansRefusalMessage, qt as updateRefactorMarker, qu as redactDockerArgvValues, rd as runDockerStreaming, ri as supersededAfterRollback, rl as redactForState, ro as classifyReplaySecretRegion, rr as isReplacementOrphan, ru as orphansAfterRollback, s as keptWholeReasonText, sa as isCustomResource, sc as STATE_REGION_DIVERGED, sd as synthesisStatusMessage, si as withoutSuperseded, sl as createUnionSecretMasker, sn as revertedNestedRowIds, sr as replacementNeverSwapped, ss as describeTypeWithThrottleRetry, su as hasReasonlessBaselineRefusal, t as DeployEngine, tc as malformedOutputsRefusalMessage, td as getDockerCmd, ti as isSupersededResourceRecord, tl as liveMatchesUnresolvedTokenFrame, tn as displacedPhysicalIdShown, to as envCredentialsAreAssumedRole, tr as demoteSupersededOrphans, tu as importableOutputs, u as inRunStackKey, ua as applyCustomResourceResponseExpiration, uc as malformedResourcesWarning, ud as loadCdkJson, ui as cyan, ul as logOnlyValueCount, un as getCurrentNestedStackContext, uu as renderPhaseTimings, v as childTemplateLoader, va as CloudControlProvider, vc as accountArgs, vd as stateBucketExistenceConfirmed, vi as noEchoParameterNamesOf, vl as maskSecretsInError, vn as sameJournaledOrphans, vo as refStateLookupFromResource, vr as nameScopeOf, vs as refuseMalformedOrphanRecords, vu as isNotImplemented, w as hasPendingMovesOut, wa as UNSPECIFIED_SKIP_REASON, wc as hasReadableResources, wd as findLargeInlineResources, wi as namingSecretsWithRecordedNoEcho, wl as dynamicReferenceTokens, wn as constructPathOf$1, wo as getAccountInfo, wr as inheritProducerRegions, ws as isReadableResourceEntry, wu as WorkGraph, x as listNestedTemplateRows, xa as setResolvedResourceTimeouts, xc as UNREADABLE_RESOURCES_MAP_ROW, xd as CFN_TEMPLATE_BODY_LIMIT, xi as completedReplayEntries, xl as withPhysicalNameCopies, xn as planOrphanAdoption, xr as retiredNameGenerationsLeaving, xs as repairMalformedOrphanRecordsForReadOnly, xu as AssetPublisher, y as findNestedTemplateTreeDefect, yc as withheldAccountClause, yd as warnDeprecatedNoPrefixCliFlag, yi as withAttemptedItemsMasked, yl as maskSecretsInText, yn as makeForeignHolderScan, yr as retiredAfterRollback, ys as refuseMalformedOrphanRecordsForDestroy, yu as stackInstanceIdOf, za as IntrinsicFunctionResolver, zc as DagBuilder, zd as defineOwnKey, zi as ccRoutedFinalSnapshotError, zl as recordMaskOnlyValuesIn, zn as recordAfterRollbackUpdate, zo as shownType, zr as noEchoParameterValueSeed, zs as malformedResourcePropertiesWarning, zt as keptForRetainedRecord, zu as BOOTSTRAP_MARKER_PREFIX } from "./deploy-engine-BFlLAOb5.js";
3
+ import { $a as assertFlagRoleArn, $c as noEchoCoordinatesOf, $d as renderAssemblyPathEscape, $l as isLockInfoExpired, $n as updatePartialReason, $s as malformedOrphansRefusalMessage, $t as NESTED_PENDING_PARENT_REASON, $u as redactDockerArgvValues, A as serviceTokenBlockingReason, Aa as UNSPECIFIED_SKIP_REASON, Ac as hasReadableResources, Ad as findLargeInlineResources, Ai as namingSecretsWithRecordedNoEcho, Al as dynamicReferenceTokens, An as rollbackOrphanIds, Ao as getAccountInfo, Ar as inheritProducerRegions, As as isReadableResourceEntry, Au as WorkGraph, Bd as StageLoadError, Bl as recordNestedStackParameterExpressions, Bn as propertiesChangedReason, Bo as unsettledItemsOf, Br as secretSafeKeyDisplay, Bs as refuseMalformedResourceEntriesForImportSave, Bt as recordRetainedForReadoption, Bu as getBootstrapMarkerKey, C as templateIdentity, Cc as JSON_LISTING_HOLE_VALUE, Cd as resolveUseCdkBootstrapAssets, Ci as noEchoExactEchoLeavesOf, Cl as errorCauseChain, Cn as DeploymentEventsStore, Co as lacksRecordedTableArn, Cr as nameGenerationHighWaterOf, Cs as previewableOrphanRecords, Cu as isAccessDenied, D as refusePendingMovesOut, Da as setResolvedResourceTimeouts, Dc as UNREADABLE_RESOURCES_MAP_ROW, Dd as CFN_TEMPLATE_BODY_LIMIT, Di as completedReplayEntries, Dl as withPhysicalNameCopies, Dn as findRefactorHints, Dr as retiredNameGenerationsLeaving, Ds as repairMalformedOrphanRecordsForReadOnly, Du as AssetPublisher, E as pendingMovesRefusalMessage, Ec as STATE_RESOURCES_MALFORMED, Ed as ssmResolvedValueType, Ei as createReadOnlyAttributeHealerFactory, El as scrubResourceRecord, En as formatDestructiveChange, Eo as keepHeldTokenProvenance, Er as retiredNameGenerationsAfter, Es as refuseMalformedOrphansForOrphan, Eu as withStackInstanceIdWithheld, F as isProtectionValueActive, Fd as PARTITION_TABLE, Fi as secretNamedRecordNeedles, Fl as inheritNestedStackParameterAssociations, Fn as differingRemedy, Fo as keepsSecretReferenceToken, Fr as WITHHELD_NAME_DISPLAY, Fs as refuseMalformedResourceAttributesForOrphan, Fu as AssetModeResolver, Ga as IntrinsicFunctionResolver, Gc as DagBuilder, Gd as defineOwnKey, Gi as ccRoutedFinalSnapshotError, Gl as recordMaskOnlyValuesIn, Gn as recordAfterRollbackUpdate, Go as shownType, Gr as noEchoParameterValueSeed, Gs as malformedResourcePropertiesWarning, Gt as refuseRefactorMarker, Gu as BOOTSTRAP_MARKER_PREFIX, Hd as describeJsonParseFailure, Hi as withSecretPhysicalIdsMaskedInState, Hl as carriesSecretMask, Hn as referencedLogicalIds, Ho as withUnsettledProperties, Hr as exportNameNoEchoParameters, Hs as repairMalformedResourceEntriesForReadOnly, Ht as readRefactorMarkerOnce, Hu as readBootstrapMarkerBody, I as perType, Ic as NO_CC_HANDLERS_REASON, Id as canonicalizeRegion, Ii as stateSecretNameNeedles, In as isPairableType, Io as withSharedDrainBudget, Ir as displayTextOrWithheld, Is as refuseMalformedResourceEntries, It as withResourceDeadline, Iu as ensureAssetStorage, Jc as isMarkedCoordinate, Jd as nullPrototypeRecord, Ji as isFinalSnapshotError, Jl as recordProvenPublicExpression, Jn as calculateResourceDrift, Jo as isStatefulRecreateTargetSync, Jr as isExportAliasCollision, Js as refuseMalformedResourcePropertiesForExport, Ju as describeDockerCapturedOutput, Ka as isAlwaysLiveAttribute, Kc as TemplateParser, Kd as hasOwnKey, Ki as ccRoutedInstanceTakesNoSnapshot, Kl as recordNoEchoAttributeValues, Kn as settleUnsettledPrevious, Ko as MULTI_REGION_RECREATE_BLOCKED_TYPES, Kr as collectDeclaredOutputNames, Ks as refuseMalformedResourcePropertiesForDestroy, Kt as sameMove, Ku as buildDockerImage, L as readProtection, Lc as hasNoCloudControlHandlers, Ld as derivePartitionAndUrlSuffix, Li as storedSecretNameNeedles, Ll as physicalNameCopiesOf, Ln as looselyEqual, Lo as INTRINSIC_KEYS, Lr as exportAliasCollisionScrubWarning, Ls as refuseMalformedResourceEntriesForDeploy, Lt as IMPLICIT_DELETE_DEPENDENCIES, Lu as buildDenyExternalAccessPolicy, M as recordedProtectionEvidence, Ma as deleteLeftInPlace, Mc as findHandledUnwrittenCreateOnly, Md as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Mi as secretNamePrintingBag, Ml as spelledKeysOf, Mn as changedReferenceInDiff, Mo as carriesFetchableDynamicReference, Mr as namesAnyDeclaredParameter, Ms as malformedLocalResourcesWarning, Mu as createAssetRedirectResolver, N as recordedProtectionNote, Na as deleteSkipReason, Nd as decodeListingKey, Ni as secretNamePrintingBags, Nl as pathCrossesDottedKey, Nn as changedReferencePath, No as isNamelessDynamicReferenceError, Nr as reachableDivergentParameters, Ns as malformedResourceEntriesWarning, Nu as loadPublishableAssetManifest, O as deferredServiceTokenWarning, Oa as slowCcOperationTimeoutMs, Oc as displayLogicalId, Od as CFN_TEMPLATE_URL_LIMIT, Oi as journaledOrphanPrintingBag, On as hintSidesOf, Oo as recordedOutputReferenceRegions, Or as withNameGenerationReached, Os as unpreviewableOrphanRecords, Ou as isSensitiveAttributeName, P as PROTECTION_PROPERTY_BY_TYPE, Pc as unwrittenCreateOnlyReplacement, Pd as expectedOwnerParam, Pl as identityKeyFor, Pn as changedReferenceReason, Po as carriesDynamicReference, Pr as resourcesNamingDeclaredParameter, Ps as malformedScrubResourceEntriesRefusalMessage, Pu as rewriteTemplateAssetReferences, Qa as applyRoleArnIfSet, Qc as maskedLeafCoordinatesOf, Qd as displayAssemblyPath, Qi as buildFinalSnapshotIdentifier, Ql as LockManager, Qn as updatePartialMessage, Qr as maskingRetryLogger, Qs as hasReadableOrphans, Qt as resolvePendingCloudControlRequests, Qu as redactedDockerCause, Rd as refuseFailedLookups, Ri as extractDeploymentEventError, Rn as mappingPairs, Rr as secretBearing, Rs as refuseMalformedResourceEntriesForDestroy, Rt as computeImplicitDeleteEdges, Ru as assertAssetBucketRegion, S as renderNestedTemplateTreeDefect, Sa as withPrintingSecrets, Sc as repairMalformedResourcesForReadOnly, Sd as resolveStateBucketWithDefaultAndSource, Si as noEchoComparisonForTemplate, Sl as createSecretMasker, Sn as DeploymentEventsReader, So as isStalePlaceholderArnAttribute, Sr as nameGenerationCarriedFrom, Ss as malformedOrphanRowsKeptWarning, Su as crossPrefixDeniedWarning, T as pendingMovesOutOf, Tc as withheldAccountClause, Td as warnDeprecatedNoPrefixCliFlag, Ti as withAttemptedItemsMasked, Tl as maskSecretsInText, Tn as findDestructiveChanges, Tr as retiredAfterRollback, Ts as refuseMalformedOrphanRecordsForDestroy, Tu as stackInstanceIdOf, Ua as isWaitAbandonedError, Ud as parseFailureDebugDetail, Ui as ATOMIC_FINAL_SNAPSHOT_TYPES, Ul as provenPublicValue, Un as replayFailedOperations, Uo as withoutUnsettledProperties, Ur as exportNameSecretExposure, Us as unreadableResourceEntries, Ut as refactorMarkerMovesOf, Uu as validateAssetBucketName, Vd as processStackMessages, Vi as secretSegmentsOfState, Vl as splitGetAttStringForm, Vn as proposeRenames, Vo as unsettledPropertiesOf, Vr as carriedExportAliasExposure, Vs as refuseMalformedResourceEntriesForOrphan, Vt as readRefactorMarker, Vu as parseBootstrapMarker, Wa as DiffCalculator, Wd as utf8ByteLength, Wi as PRE_DELETE_SNAPSHOT_TYPES, Wl as recordMaskOnlyValue, Wn as replayRollback, Wo as findReplacedReadersOfRecreateTargets, Wr as isWholeDynamicReferenceValue, Ws as malformedDriftResourcePropertiesWarning, Wt as refactorMarkerRefusalMessage, Wu as validateContainerRepoName, Xa as producerLookupOver, Xc as maskReadbackAtCoordinates, Xd as absoluteAssemblyPathEscape, Xi as unsupportedFinalSnapshotError, Xl as WHOLE_DYNAMIC_REFERENCE_PATTERN, Xn as equalModuloMask, Xr as DEFAULT_RESOURCE_TIMEOUT_MS, Xs as repairMalformedResourcePropertiesForReadOnly, Xt as formatResourceLine, Xu as describeDockerFailure, Ya as resolveDynamicReferences, Yc as maskAtCoordinates, Yd as ownValue, Yi as refusesFinalSnapshot, Yl as wholeStringLeavesOf, Yn as equalModuloMarkedMask, Yo as renderStatefulReason, Yr as bindingSkippedOutputs, Ys as refuseMalformedResourcePropertiesForOrphan, Yu as describeDockerExecFailure, Za as refuseUnreadableCdkCrossAccountRefs, Zc as maskWholeValue, Zd as describeFileReadFailure, Zi as createPreDeleteFinalSnapshot, Zl as isSingleDynamicReferenceToken, Zn as undeclaredEmptyObservedKeys, Zr as DEFAULT_RESOURCE_WARN_AFTER_MS, Zs as UNREADABLE_ORPHANS_CONTAINER_ROW, Zt as pendingRequestCount, Zu as redactedCause, _ as readRecordedConditionVerdicts, _a as customResourceResponseExpirationWarning, _c as malformedStateRefusalMessage, _d as resolveApp, _i as gray, _l as printingCorpusOf, _n as loadJournaledOrphans, _o as coerceParameterTypedValue, _s as declaresNoEcho, _u as timePhase, ac as malformedExportSourceWarning, ad as isMalformedEnvKey, ai as deleteSupersededEntry, al as recordedNoEchoValuesOf, an as recordDisplacedSkips, ao as applyCallerIdentityCredentials, ar as planRollback, au as hasReadableExportSet, b as isAbsoluteAssetPath, ba as isCustomResourceType$1, bc as refuseMalformedResourcesForExport, bd as resolveSkipPrefix, bi as yellow, bl as shareLogOnlyValues, bn as makeSiblingClaimReader, bo as AWS_NO_VALUE, br as removeProtectionTypeList, bs as malformedOrphanRecordsRefusalMessage, bu as CrossPrefixScanCache, c as mergeNoChangeOutputs, cc as malformedOutputsWarning, cd as runDockerForeground, ci as removeSuperseded, cn as withNestedRevertRun, co as classifyRecordedSecretRegion, cr as isJournaledOrphan, cu as isReadableBag, d as crossStackOutputProvenanceSource, da as ProviderRegistry, dc as refuseMalformedOutputsForDestroy, dd as getDockerImageBySourceHash, di as supersededHolderOf, dn as withNestedStackContext, do as regionLessSecretName, dr as recheckFailedPlan, ds as prefetchCreateOnlyPropertyPaths, du as shouldRetainResource, ec as malformedOrphansWarning, ed as dockerSpawnEnvWithSensitive, ef as resolveAssemblyPath, ei as destroyStackRecordsView, el as noEchoLeavesOf, en as displacedOpClause, eo as assertSendableRoleArn, eu as S3StateBackend, f as inheritedProvenanceForChildDiff, fa as ccBrokenReason, fc as repairMalformedOutputsForReadOnly, fd as Synthesizer, fi as supersededResourcesOf, fl as carryLogOnlyValues, fn as deleteJournaledOrphans, fr as recordUnderIdIsNotOwn, fs as templateResourceTypes, fu as stackInstanceIdCarriedFrom, g as parentSuppliedValues, ga as applyCustomResourceResponseExpiration, gc as malformedResourcesWarning, gd as loadCdkJson, gi as cyan, gl as logOnlyValueCount, gn as journaledOrphanLines, gu as renderPhaseTimings, h as conditionInputsFrom, ha as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, hc as malformedRenderedContainersWarning, hd as getLegacyStateBucketName, hi as bold, hl as literalSplitDelimitersOf, hn as isHandledOrphan, hr as findNestedStackTypeChanges, hs as parameterInputsFor, hu as PhaseClock, ic as malformedExportNamesWarning, id as isDockerClientEnvKey, if as resolveBucketRegion, ii as addSuperseded, il as readsNoEchoSource, in as nestedChildStackName$1, io as AWS_CREDENTIAL_ENV_KEYS, iu as exportNamesCarriedFrom, j as diffSecurity, ja as deleteIndeterminateGuards, jc as findActionableSdkUnwired, jd as uploadCfnTemplate, ji as orphanRecordsPrintingBag, jl as isUncertifiedBaselineMaskPosition, jn as withMovedTo, jo as isImpossibleEmptyStoredAttribute, jr as computeParameterTaint, js as malformedLocalResourceEntriesWarning, ju as buildAssetRedirectMap, k as findServiceTokenRefusals, ka as RollbackInlinePolicyWriters, kc as hasReadableOutputs, kd as MIGRATE_TMP_PREFIX, ki as maskEventTextWithBoundBags, kl as DYNAMIC_REFERENCE_TOKEN_SCAN, kn as movedToHint, ko as recordedReferenceRegions, ks as unreadableOrphanRecords, ku as stringifyValue, l as scanActiveConsumers, ld as runDockerStreaming, li as supersededAfterRollback, ll as redactForState, ln as collectNestedChildUnaddressed, lo as classifyReplaySecretRegion, lr as isReplacementOrphan, lu as orphansAfterRollback, m as conditionFingerprint, ma as wouldReturnToSdkProvider, mc as refuseDivergentRecordRegionForDestroy, md as getDefaultStateBucketName, ml as hasMaskableValues, mn as dropFailedHint, mr as resolveReplacementOldType, ms as withRetry, mu as hasUnverifiableParameterRefusal, nc as refuseMalformedOrphansForDestroy, nd as partitionSensitiveEnv, nf as injectedAwsRegionValue, ni as withStackRecords, nn as dropSettledNestedJournals, no as isIamRoleArn, nu as acceptedCreateOnlyDropsOf, o as isSecretBearingReferenceString, oc as malformedLocalOutputsWarning, od as formatDockerLoginError, oi as holdsSupersededResources, ol as valueAtCoordinate, oo as callerEnvCredentials, or as seedsDeleteFirstGuard, ou as importableOutputKeys, p as makeCanonicalizePropertiesFn, pa as isCustomResource, pc as STATE_REGION_DIVERGED, pd as synthesisStatusMessage, pi as withoutSuperseded, pl as createUnionSecretMasker, pn as dropFailedCommands, pr as replacementNeverSwapped, ps as describeTypeWithThrottleRetry, pu as hasReasonlessBaselineRefusal, qa as poisonRenderedSpellingsCollidingIn, qc as canonicalCoordinates, qd as hasPlainPrototype, qi as effectiveDeletionPolicy, ql as recordNoEchoParameterFreshValue, qn as withUnprovenUnsettled, qo as isStatefulRecreateTargetForReplace, qr as collectPublishedOutputNames, qs as refuseMalformedResourcePropertiesForDrift, qt as updateRefactorMarker, qu as resolveDockerContextDirectory, rc as repairMalformedOrphansForReadOnly, rd as warnFinchArgvExposure, rl as readbackPathFor, ro as sendableAssumeRoleCommand, rr as withCreateTokenLedger, ru as describeRegionValueKind, s as keptWholeReasonText, sc as malformedOutputsRefusalMessage, sd as getDockerCmd, si as isSupersededResourceRecord, sl as liveMatchesUnresolvedTokenFrame, sn as revertedNestedRowIds, so as envCredentialsAreAssumedRole, sr as demoteSupersededOrphans, su as importableOutputs, t as DeployEngine, tc as refuseMalformedOrphans, td as finchSecretArgvRefusal, tf as injectAwsRegion, tl as noEchoOutputsComparison, tn as displacedPhysicalIdShown, to as explicitRoleArnOrThrow, tr as ledgerForStack, ts as coerceCfnBoolean, tu as splitImportedOps, u as inRunStackKey, ua as CC_BROKEN_REASON, uc as refuseMalformedOutputs, ud as AssetManifestLoader, ui as supersededHeldByOtherTypeWarning, un as getCurrentNestedStackContext, uo as producerRegionsFromState, ur as planFailedOps, uu as orphansCarriedFrom, v as childTemplateLoader, va as TemplateNoEchoReresolver, vc as refuseMalformedResourcesForDeploy, vd as resolveAutoAssetStorage, vi as green, vl as recordLogOnlyParameterValue, vn as sameJournaledOrphans, vo as isUnboundTemplateParameter, vs as deployRefusesOrphanRowsReason, vu as rebuildClientForBucketRegion, w as hasPendingMovesOut, wa as CloudControlProvider, wc as accountArgs, wd as stateBucketExistenceConfirmed, wi as noEchoParameterNamesOf, wl as maskSecretsInError, wn as constructPathOf$1, wo as refStateLookupFromResource, wr as nameScopeOf, ws as refuseMalformedOrphanRecords, wu as isNotImplemented, x as listNestedTemplateRows, xc as refuseMalformedState, xd as resolveStateBucketWithDefault, xi as noEchoAttributeNamesOf, xl as unionOfSecretBags, xn as planOrphanAdoption, xo as cfnRefValueFromPhysicalId, xr as orphanNeedsIdentity, xs as malformedOrphanRecordsWarning, xu as applyCrossPrefixScan, y as findNestedTemplateTreeDefect, ya as readsNoEchoDeleteValues, yc as refuseMalformedResourcesForDestroy, yd as resolveCaptureObservedState, yi as red, yl as recordLogOnlyValue, yn as makeForeignHolderScan, yo as parameterTypeMayLoseSecretIdentity, ys as isReadableOrphanRecord, yu as CrossPrefixReadError, zd as AssemblyReader, zl as recordPhysicalNameCopy, zn as parseMappingFile, zo as unsettledItemsField, zr as secretBearingStateKeyWarning, zs as refuseMalformedResourceEntriesForImport, zt as keptForRetainedRecord, zu as isCrossRegionRedirect } from "./deploy-engine-Bn_aBFb7.js";
4
4
  import { $ as DeployCancelledError, A as stripForDisplay, Ct as setPasteableVerbFlags, H as isThrottlingError, J as IntrinsicResolutionRefusalError, K as CrossAccountSecretRefusalError, L as isRetryableTransientError, O as escapeRegExp, P as isAmbiguousOutcomeError, Q as CdkdError, R as isTransientServerError, St as setPasteableRunFlags, U as markNonRetryable, V as isMarkedNonRetryable, X as AccountIdUnavailableError, Y as MalformedProducerRecordRefusalError, _ as StackHasActiveImportsError, _t as plainOrDescribed, a as normalizeAwsError, at as StateError, bt as shellQuote, c as withErrorHandling, ct as TIMEOUT_FLAG_RESOURCE_TYPE, ft as commandHole, g as ResourceUpdateNotSupportedError, h as PartialFailureError, ht as pasteableCommand, i as credentialFingerprint, it as ResourceTimeoutError, k as stripControlChars, l as LocalStartServiceError, m as NestedStackChildDirectDestroyError, mt as isInertUnquoted, n as ambientCredentialConfig, o as formatError, ot as SynthesisError, q as DynamicReferenceRegionAmbiguousError, r as clientDefaultsFor, rt as ProvisioningError, t as ambientClientDefaults, tt as LocalInvokeBuildError$1, ut as SHELL_ACTIVE_WHY, v as StackTerminationProtectionError, vt as quotedOrDescribed, xt as withheldTargetClause, yt as shellBoundedDisplay, z as retryClassificationText } from "./ambient-client-defaults-D2df_dIB.js";
5
5
  import { $t as forceQuitRecoveryClause, Dt as logicalIdShown, H as assertRegionMatch, M as VALUE_NOT_SHOWN, Qt as buildLockContentionMessage, U as isMarkedNotGone, V as RESOURCE_NOT_FOUND, Xt as UNREPRODUCIBLE_LOCK_CLAUSE, Zt as buildForceUnlockCommand, an as CUSTOM_RESOURCE_RESPONSE_PREFIX, bt as interruptWatchListenerCount, dn as setPasteableAwsProfile, en as formatLockExpiry, fn as withPasteableAwsProfile, kt as resourceTypeShown, ln as producerCoordinateKey, m as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, mt as isAwsCliLiteral, nn as formatLockOwner, on as DEFAULT_STATE_PREFIX, p as IAM_PRINCIPAL_NAME, sn as injectiveKey, st as runDeleteAttempt, tn as formatLockOperation, un as producerRecordKey, vt as beginCommandInterruptScope, xt as isInterruptedWaitError, y as readRecordedPrincipals, yt as endCommandInterruptScope, z as remedyLogicalId } from "./update-removal-DTvJXMeM.js";
6
6
  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-D3Z_tFc1.js";
7
7
  import { a as setAssumedRoleCredentials, d as formatAuthority, i as getPreAssumeEnvCredentials, n as awsClientDefaults, r as getAssumedRoleCredentials, u as runInStackAwsScope } from "./aws-client-defaults-BLXFsfMa.js";
8
- import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-DWcC0h82.js";
8
+ import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-B5zqA138.js";
9
9
  import { t as cdkdCacheHome } from "./cli.js";
10
10
  import { randomBytes, randomUUID } from "node:crypto";
11
11
  import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
@@ -1854,7 +1854,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
1854
1854
  // src/provisioning/register-providers.ts
1855
1855
  let providerClasses;
1856
1856
  function loadProviderClasses() {
1857
- providerClasses ??= import("./provider-classes-ZB2dhH_W.js");
1857
+ providerClasses ??= import("./provider-classes-CRZ8a4sy.js");
1858
1858
  return providerClasses;
1859
1859
  }
1860
1860
  function registerAllProviders(registry, classes) {
@@ -6096,7 +6096,7 @@ async function buildDiffTree(args) {
6096
6096
  destructiveChanges: findDestructiveChanges(stackName, changes.values(), stateAfterAdoption.resources, effectiveTemplate),
6097
6097
  children: []
6098
6098
  };
6099
- if (found && !isNestedChild && node.blocking.length === 0) node.refactorSides = hintSidesOf(changes.values(), rollbackOrphanIds(state.orphans));
6099
+ if (found && !isNestedChild && node.blocking.length === 0) node.refactorSides = hintSidesOf(changes.values(), effectiveTemplate, rollbackOrphanIds(state.orphans));
6100
6100
  if (!recursive) return node;
6101
6101
  const templateChildIds = /* @__PURE__ */ new Set();
6102
6102
  for (const [logicalId, resource] of Object.entries(effectiveTemplate.Resources ?? {})) {
@@ -22225,19 +22225,23 @@ async function planMoves(plans, envOf, overrides) {
22225
22225
  const { changes } = await dest.diff(withMoves);
22226
22226
  for (const m of incoming) {
22227
22227
  const change = changes.get(m.to);
22228
- if (change?.changeType === "NO_CHANGE") continue;
22228
+ const ref = change?.changeType === "NO_CHANGE" ? changedReferenceInDiff(dest.template, m.to, changes) : void 0;
22229
+ if (change?.changeType === "NO_CHANGE" && ref === void 0) continue;
22229
22230
  failed.push(m);
22230
- const paths = (change?.propertyChanges ?? []).map((p) => p.path);
22231
+ const paths = ref === void 0 ? (change?.propertyChanges ?? []).map((p) => p.path) : [changedReferencePath(ref)];
22231
22232
  for (const a of change?.attributeChanges ?? []) paths.push(a.attribute);
22232
22233
  if (paths.length === 0) paths.push(`(${change?.changeType ?? "not in the diff"})`);
22233
- if (m.source === "override") result.refused.push({
22234
- fromStack: m.fromStack,
22235
- from: m.from,
22236
- toStack: m.toStack,
22237
- to: m.to,
22238
- reason: `its properties also changed (${paths.join(", ")}); cdkd refactor keeps only an unchanged resource. Revert the property change, run cdkd refactor, then deploy the change`
22239
- });
22240
- else result.differing.push({
22234
+ if (m.source === "override") {
22235
+ const reason = ref === void 0 ? propertiesChangedReason(paths) : changedReferenceReason(ref);
22236
+ const { fromStack, from, toStack, to } = m;
22237
+ result.refused.push({
22238
+ fromStack,
22239
+ from,
22240
+ toStack,
22241
+ to,
22242
+ reason
22243
+ });
22244
+ } else result.differing.push({
22241
22245
  move: m,
22242
22246
  paths
22243
22247
  });
@@ -22260,7 +22264,7 @@ function renderMovePlan(plan) {
22260
22264
  if (plan.moves.length === 0 && plan.differing.length === 0 && plan.refused.length === 0 && plan.ambiguous.length === 0) return lines;
22261
22265
  lines.push("Moves between stacks");
22262
22266
  for (const m of plan.moves) lines.push(safeMsg` ${m.fromStack}.${m.from} -> ${m.toStack}.${m.to} (${m.resourceType}${m.source === "override" ? ", from the mapping file" : ""})`);
22263
- for (const { move: m, paths } of plan.differing) lines.push(safeMsg` Not moved: ${m.fromStack}.${m.from} -> ${m.toStack}.${m.to} (${m.resourceType}) also ` + safeMsg`changes ${paths.join(", ")}. cdkd refactor keeps only an unchanged resource: revert ` + "the property change, run cdkd refactor, then deploy the change.");
22267
+ for (const { move: m, paths } of plan.differing) lines.push(safeMsg` Not moved: ${m.fromStack}.${m.from} -> ${m.toStack}.${m.to} (${m.resourceType}) also ` + safeMsg`changes ${paths.join(", ")}. ${differingRemedy(paths)}`);
22264
22268
  for (const group of plan.ambiguous) lines.push(safeMsg` Ambiguous (${group.resourceType}): ${group.from.join(", ")} could each be ` + safeMsg`${group.to.join(", ")}. Name the pairs with --override-file.`);
22265
22269
  for (const r of plan.refused) lines.push(safeMsg` Refused: ${r.fromStack}.${r.from} -> ${r.toStack}.${r.to}: ${r.reason}.`);
22266
22270
  return lines;
@@ -22650,22 +22654,29 @@ async function planStackRefactor(input) {
22650
22654
  });
22651
22655
  return false;
22652
22656
  });
22653
- const confirm = async (proposed) => {
22657
+ const confirm = async (proposed, checkReferences = false) => {
22654
22658
  let kept = [...proposed];
22655
22659
  while (kept.length > 0) {
22656
22660
  const renamed = applyLogicalIdRenames(state, toLogicalIdRenames(kept), template);
22657
22661
  const { changes } = await diff(renamed);
22658
- const failed = kept.filter((r) => changes.get(r.to)?.changeType !== "NO_CHANGE");
22662
+ const refOf = /* @__PURE__ */ new Map();
22663
+ const failed = kept.filter((r) => {
22664
+ if (changes.get(r.to)?.changeType !== "NO_CHANGE") return true;
22665
+ const ref = checkReferences ? changedReferenceInDiff(template, r.to, changes) : void 0;
22666
+ if (ref !== void 0) refOf.set(r, ref);
22667
+ return ref !== void 0;
22668
+ });
22659
22669
  if (failed.length === 0) return {
22660
22670
  kept,
22661
22671
  changes
22662
22672
  };
22663
22673
  for (const rename of failed) {
22664
- const paths = changedPaths(changes.get(rename.to));
22674
+ const ref = refOf.get(rename);
22675
+ const paths = ref === void 0 ? changedPaths(changes.get(rename.to)) : [changedReferencePath(ref)];
22665
22676
  if (rename.source === "override") refusedOverrides.push({
22666
22677
  from: rename.from,
22667
22678
  to: rename.to,
22668
- reason: `its properties also changed (${paths.join(", ")}); cdkd refactor keeps only an unchanged resource. Revert the property change, run cdkd refactor, then deploy the change`
22679
+ reason: ref === void 0 ? propertiesChangedReason(paths) : changedReferenceReason(ref)
22669
22680
  });
22670
22681
  else differing.push({
22671
22682
  rename,
@@ -22740,6 +22751,8 @@ async function planStackRefactor(input) {
22740
22751
  if (accepted.length === 0) break;
22741
22752
  ({kept: renames, changes: confirmed} = await confirm([...renames, ...accepted]));
22742
22753
  }
22754
+ const settled = confirmed;
22755
+ if (settled && renames.some((r) => changedReferenceInDiff(template, r.to, settled))) ({kept: renames, changes: confirmed} = await confirm(renames, true));
22743
22756
  const renamedTo = new Set(renames.map((r) => r.to));
22744
22757
  const stillChanging = confirmed === void 0 ? [] : [...confirmed.values()].filter((change) => (change.changeType === "UPDATE" || change.changeType === "CREATE") && !renamedTo.has(change.logicalId) && [...referencedLogicalIds(template, change.logicalId)].some((id) => renamedTo.has(id))).map((change) => change.logicalId).sort();
22745
22758
  const takenTo = /* @__PURE__ */ new Set([
@@ -22777,34 +22790,6 @@ async function planStackRefactor(input) {
22777
22790
  };
22778
22791
  }
22779
22792
  const MAX_TRIAL_DIFFS = 64;
22780
- function referencedLogicalIds(template, logicalId) {
22781
- const out = /* @__PURE__ */ new Set();
22782
- const resources = template.Resources ?? {};
22783
- if (!Object.hasOwn(resources, logicalId)) return out;
22784
- const resource = resources[logicalId];
22785
- const dependsOn = resource.DependsOn;
22786
- for (const id of Array.isArray(dependsOn) ? dependsOn : [dependsOn]) if (typeof id === "string") out.add(id);
22787
- const walk = (value) => {
22788
- if (Array.isArray(value)) {
22789
- value.forEach(walk);
22790
- return;
22791
- }
22792
- if (value === null || typeof value !== "object") return;
22793
- for (const [key, arg] of Object.entries(value)) {
22794
- if (key === "Ref" && typeof arg === "string") out.add(arg);
22795
- else if (key === "Fn::GetAtt") {
22796
- if (Array.isArray(arg) && typeof arg[0] === "string") out.add(arg[0]);
22797
- else if (typeof arg === "string") out.add(arg.split(".")[0]);
22798
- } else if (key === "Fn::Sub") {
22799
- const text = typeof arg === "string" ? arg : Array.isArray(arg) ? arg[0] : void 0;
22800
- if (typeof text === "string") for (const match of text.matchAll(/\$\{([^}!][^}.]*)/g)) out.add(match[1]);
22801
- }
22802
- walk(arg);
22803
- }
22804
- };
22805
- walk(resource.Properties);
22806
- return out;
22807
- }
22808
22793
  function toLogicalIdRenames(renames) {
22809
22794
  return renames.map(({ from, to }) => ({
22810
22795
  from,
@@ -22844,7 +22829,7 @@ function renderRefactorPlan(plan) {
22844
22829
  const lines = [safeMsg`Stack ${plan.stackName} (${plan.region})`];
22845
22830
  if (plan.renames.length === 0) lines.push(" No resource to refactor.");
22846
22831
  for (const r of plan.renames) lines.push(safeMsg` ${r.from} -> ${r.to} (${r.resourceType}${r.source === "override" ? ", from the mapping file" : ""})`);
22847
- for (const { rename, paths } of plan.differing) lines.push(safeMsg` Not refactored: ${rename.from} -> ${rename.to} (${rename.resourceType}) also changes ` + safeMsg`${paths.join(", ")}. cdkd refactor keeps only an unchanged resource: revert the ` + "property change, run cdkd refactor, then deploy the change.");
22832
+ for (const { rename, paths } of plan.differing) lines.push(safeMsg` Not refactored: ${rename.from} -> ${rename.to} (${rename.resourceType}) also changes ` + safeMsg`${paths.join(", ")}. ` + differingRemedy(paths));
22848
22833
  for (const { rename, reason } of plan.skipped) lines.push(safeMsg` Not refactored: ${rename.from} -> ${rename.to} (${rename.resourceType}): ${reason}.`);
22849
22834
  for (const group of plan.ambiguous) lines.push(safeMsg` Ambiguous (${group.resourceType}): ${group.from.join(", ")} could each be ` + safeMsg`${group.to.join(", ")}. Name the pairs with --override-file.`);
22850
22835
  for (const refused of plan.refusedOverrides) lines.push(safeMsg` Refused: ${refused.from} -> ${refused.to}: ${refused.reason}.`);
@@ -32863,4 +32848,4 @@ function collectVerbFlags(program) {
32863
32848
  }
32864
32849
 
32865
32850
  export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, canonicalizeIpProtocolValue as o, holdsUnprovenSecretPrincipalToken as r, canonicalizeIpv4Cidr as t };
32866
- //# sourceMappingURL=program-B-C6eA7H.js.map
32851
+ //# sourceMappingURL=program-CuJKRAac.js.map