@go-to-k/cdkd 0.301.5 → 0.301.6

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.
@@ -2,8 +2,8 @@ import { a as runWithStackAwsClients, i as resetAwsClients, o as setAwsClients,
2
2
  import { A as UNRENDERABLE, B as safeMsg, D as SAFE_MSG_ALTERED_CHAR, F as displaySafe, H as terminalSafe, I as displayStackName, L as isPasteableIdent, M as cutMarker, N as displayAwsMessage, O as SECRET_REF_MAX_CODE_POINTS, P as displayIdent, T as withStackName, U as truncateCodePoints, V as stringifyJsonPayload, _ as derivesPatternBName, a as getLogger, f as getLiveRenderer, h as PATTERN_B_RESOURCE_TYPES, k as STACK_REF_MAX_CODE_POINTS, l as runStackBuffered, m as PATTERN_B_NAME_PROPERTIES, o as isStdoutReservedForPayload, p as PATTERN_B_NAME_OPTIONS, r as safeStringify, s as reserveStdoutForPayload, t as describeAwsFailure, v as explicitNamePropertyFor, w as withSkipPrefix, y as generateResourceName, z as plainIdentOr } from "./aws-failure-text-BEQfs6za.js";
3
3
  import { $t as ambientCredentialConfig, Bn as shellBoundedDisplay, Bt as formatLockOperation, Cn as StateError, D as VALUE_NOT_SHOWN, Dn as normalizeAwsError, E as assertRegionMatch, Fn as isInertUnquoted, Ft as UNREPRODUCIBLE_LOCK_CLAUSE, G as runDeleteAttempt, Gt as DEFAULT_STATE_PREFIX, Hn as withheldTargetClause, In as pasteableCommand, It as buildForceUnlockCommand, Jt as producerCoordinateKey, Kt as injectiveKey, Lt as buildLockContentionMessage, Nn as commandHole, On as withErrorHandling, P as remedyLogicalId, Qt as ambientClientDefaults, Rn as plainOrDescribed, Rt as forceQuitRecoveryClause, Sn as StackTerminationProtectionError, T as RESOURCE_NOT_FOUND, Un as setPasteableRunFlags, Vn as shellQuote, Vt as formatLockOwner, Wn as setPasteableVerbFlags, Wt as CUSTOM_RESOURCE_RESPONSE_PREFIX, Xt as setPasteableAwsProfile, Yt as producerRecordKey, Z as isAwsCliLiteral, Zt as withPasteableAwsProfile, _n as PartialFailureError, ar as isRetryableTransientError, bn as ResourceUpdateNotSupportedError, cn as DeployCancelledError, dn as LocalInvokeBuildError$1, dr as markNonRetryable, en as clientDefaultsFor, fn as LocalStartServiceError, ft as logicalIdShown, gn as NestedStackChildDirectDestroyError, hn as MalformedProducerRecordRefusalError, in as CdkdError, it as isInterruptedWaitError, jn as SHELL_ACTIVE_WHY, kn as TIMEOUT_FLAG_RESOURCE_TYPE, ln as DynamicReferenceRegionAmbiguousError, lr as isMarkedNonRetryable, mt as resourceTypeShown, n as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, nn as AccountIdUnavailableError, nr as isAmbiguousOutcomeError, nt as endCommandInterruptScope, on as CrossAccountSecretRefusalError, or as isTransientServerError, rt as interruptWatchListenerCount, s as readRecordedPrincipals, sr as retryClassificationText, t as IAM_PRINCIPAL_NAME, tn as credentialFingerprint, tt as beginCommandInterruptScope, un as IntrinsicResolutionRefusalError, ur as isThrottlingError, vn as ProvisioningError, wn as SynthesisError, xn as StackHasActiveImportsError, yn as ResourceTimeoutError, zn as quotedOrDescribed, zt as formatLockExpiry } from "./iam-policy-targets-BkeM7IXi.js";
4
4
  import { a as setAssumedRoleCredentials, i as getPreAssumeEnvCredentials, l as runInStackAwsScope, n as awsClientDefaults, r as getAssumedRoleCredentials, u as formatAuthority } from "./aws-client-defaults-DBXBcg0J.js";
5
- import { $ as resolvePendingCloudControlRequests, $a as repairMalformedOutputsForReadOnly, $c as redactedDockerCause, $i as accountArgs, $n as buildFinalSnapshotIdentifier, $o as readbackPathFor, $r as DiffCalculator, $s as S3StateBackend, $t as namesAnyDeclaredParameter, A as findServiceTokenRefusals, Aa as refuseMalformedOrphanRecordsForDestroy, Ac as assertAssetBucketRegion, Ai as coerceParameterTypedValue, Al as expectedOwnerParam, An as gray, Ar as isCustomResourceType$1, As as inheritNestedStackParameterAssociations, At as removeProtectionTypeList, B as parentSuppliedValues, Ba as refuseMalformedResourceEntriesForImport, Bc as resolveDockerContextDirectory, Bi as cfnRefValueFromPhysicalId, Bl as nullPrototypeRecord, Bn as journaledOrphanPrintingBag, Br as UNSPECIFIED_SKIP_REASON, Bs as recordMaskOnlyValuesIn, Bt as resolveReplacementOldType, Ca as malformedResourcesWarning, Cc as WorkGraph, Ci as applyCallerIdentityCredentials, Cl as CFN_TEMPLATE_BODY_LIMIT, Cr as ProviderRegistry, Cs as withPhysicalNameCopies, Ct as formatResourceLine, D as crossStackOutputProvenanceSource, Da as refuseDivergentRecordRegionForDestroy, Dc as rewriteTemplateAssetReferences, Di as classifyReplaySecretRegion, Dl as uploadCfnTemplate, Ds as isUncertifiedBaselineMaskPosition, E as computeImplicitDeleteEdges, Ea as previewableOrphanRecords, Ec as loadPublishableAssetManifest, Ei as classifyRecordedSecretRegion, El as findLargeInlineResources, En as withStackRecords, Er as wouldReturnToSdkProvider, Es as dynamicReferenceTokens, F as listNestedTemplateRows, Fa as refuseMalformedOutputsForDestroy, Fc as readBootstrapMarkerBody, Fi as carriesDynamicReference, Fl as StageLoadError, Fn as noEchoComparisonForTemplate, Fo as templateResourceTypes, Fr as customResourceResponseExpirationWarning, Fs as recordPhysicalNameCopy, Ft as planFailedOps, G as keptWholeReasonText, Ga as refuseMalformedResourcePropertiesForExport, Gc as finchSecretArgvRefusal, Gi as parameterInputsFor, Gl as renderAssemblyPathEscape, Gn as secretNamePrintingBags, Go as maskAtCoordinates, Gr as isWaitAbandonedError, Gs as STATE_SOURCED_BASELINE_RULES, Gt as inheritProducerRegions, H as withResourceDeadline, Ha as refuseMalformedResourceEntriesForOrphan, Hc as describeDockerExecFailure, Hi as refStateLookupFromResource, Hl as absoluteAssemblyPathEscape, Hn as namingSecretsWithRecordedNoEcho, Ho as TemplateParser, Hr as deleteLeftInPlace, Hs as recordNoEchoParameterFreshValue, Ht as orphanNeedsIdentity, I as renderNestedTemplateTreeDefect, Ia as refuseMalformedResourceAttributesForOrphan, Ic as validateAssetBucketName, Ii as carriesFetchableDynamicReference, Il as processStackMessages, In as noEchoExactEchoLeavesOf, Io as describeTypeWithThrottleRetry, Ir as CloudControlProvider, Is as splitGetAttStringForm, It as planRollback, J as makeSiblingClaimReader, Ja as refuseMalformedResourcesForDestroy, Jc as isDockerClientEnvKey, Ji as JSON_LISTING_HOLE_VALUE, Jl as injectedAwsRegionValue, Jn as stateSecretNameNeedles, Jo as maskedLeafCoordinatesOf, Js as TEMPLATE_SOURCED_RULES, K as mergeNoChangeOutputs, Ka as refuseMalformedResourcePropertiesForOrphan, Kc as formatDockerLoginError, Kl as resolveAssemblyPath, Ko as maskReadbackAtCoordinates, Ks as STATE_SOURCED_CROSS_GENERATION_RULES, L as templateIdentity, La as refuseMalformedResourceEntries, Lc as validateContainerRepoName, Li as isNamelessDynamicReferenceError, Ll as defineOwnKey, Ln as noEchoParameterNamesOf, Lo as withRetry, Lr as slowCcOperationTimeoutMs, Ls as carriesSecretMask, Lt as recheckFailedPlan, M as childTemplateLoader, Ma as refuseMalformedOrphansForDestroy, Mc as getBootstrapMarkerKey, Mi as parameterTypeMayLoseSecretIdentity, Ml as canonicalizeRegion, Mn as red, Mr as withPrintingSecrets, Mt as demoteSupersededOrphans, N as findNestedTemplateTreeDefect, Na as refuseMalformedOrphansForOrphan, Nc as isCrossRegionRedirect, Ni as getAccountInfo, Nl as derivePartitionAndUrlSuffix, Nn as yellow, Nr as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, Ns as physicalNameCopiesOf, Nt as isJournaledOrphan, O as inheritedProvenanceForChildDiff, Oc as AssetModeResolver, Oi as producerRegionsFromState, Ol as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, On as bold, Or as TemplateNoEchoReresolver, Os as pathCrossesDottedKey, Ot as replayFailedOperations, P as isAbsoluteAssetPath, Pa as refuseMalformedOutputs, Pc as parseBootstrapMarker, Pi as isImpossibleEmptyStoredAttribute, Pl as AssemblyReader, Pn as noEchoAttributeNamesOf, Po as prefetchCreateOnlyPropertyPaths, Pr as applyCustomResourceResponseExpiration, Pt as isReplacementOrphan, Q as pendingRequestCount, Qa as repairMalformedOrphansForReadOnly, Qc as redactedCause, Qi as UNREADABLE_RESOURCES_MAP_ROW, Qn as PRE_DELETE_SNAPSHOT_TYPES, Qs as isLockInfoExpired, Qt as computeParameterTaint, R as conditionFingerprint, Ra as refuseMalformedResourceEntriesForDeploy, Rc as buildDenyExternalAccessPolicy, Ri as keepsSecretReferenceToken, Rl as hasOwnKey, Rn as createReadOnlyAttributeHealerFactory, Rs as provenPublicValue, Rt as recordUnderIdIsNotOwn, Sa as malformedResourcePropertiesWarning, Sc as stringifyValue, Si as AWS_CREDENTIAL_ENV_KEYS, Sl as ssmResolvedValueType, Sn as formatDestructiveChange, Sr as CC_BROKEN_REASON, Ss as scrubResourceRecord, St as sameJournaledOrphans, T as IMPLICIT_DELETE_DEPENDENCIES, Ta as malformedStateRefusalMessage, Tc as createAssetRedirectResolver, Ti as envCredentialsAreAssumedRole, Tl as MIGRATE_TMP_PREFIX, Tr as isCustomResource, Ts as DYNAMIC_REFERENCE_TOKEN_SCAN, U as diffSecurity, Ua as refuseMalformedResourcePropertiesForDestroy, Uc as describeDockerFailure, Ul as describeFileReadFailure, Un as orphanRecordsPrintingBag, Uo as canonicalCoordinates, Ur as deleteSkipReason, Us as recordProvenPublicExpression, Ut as findNestedStackTypeChanges, V as readRecordedConditionVerdicts, Va as refuseMalformedResourceEntriesForImportSave, Vc as describeDockerCapturedOutput, Vi as isStalePlaceholderArnAttribute, Vl as ownValue, Vn as maskEventTextWithBoundBags, Vo as DagBuilder, Vr as deleteIndeterminateGuards, Vs as recordNoEchoAttributeValues, Vt as seedsDeleteFirstGuard, W as isSecretBearingReferenceString, Wa as refuseMalformedResourcePropertiesForDrift, Wc as dockerSpawnEnvWithSensitive, Wi as withSharedDrainBudget, Wl as displayAssemblyPath, Wn as secretNamePrintingBag, Wo as isMarkedCoordinate, Ws as wholeStringLeavesOf, X as DeploymentEventsReader, Xa as refuseMalformedState, Xc as partitionSensitiveEnv, Xi as STATE_RESOURCES_MALFORMED, Xl as resolveBucketRegion, Xn as extractDeploymentEventError, Xo as noEchoLeavesOf, Xs as isSingleDynamicReferenceToken, Xt as updatePartialMessage, Y as planOrphanAdoption, Ya as refuseMalformedResourcesForExport, Yc as isMalformedEnvKey, Yi as STATE_REGION_DIVERGED, Yn as storedSecretNameNeedles, Yo as noEchoCoordinatesOf, Ys as WHOLE_DYNAMIC_REFERENCE_PATTERN, Z as DeploymentEventsStore, Za as repairMalformedOrphanRecordsForReadOnly, Zc as redactDockerArgvValues, Zi as UNREADABLE_ORPHANS_CONTAINER_ROW, Zn as ATOMIC_FINAL_SNAPSHOT_TYPES, Zo as noEchoOutputsComparison, Zs as LockManager, Zt as updatePartialReason, _a as malformedOrphansWarning, _c as orphansAfterRollback, _i as assertFlagRoleArn, _l as resolveStateBucketWithDefault, _n as DEFAULT_RESOURCE_TIMEOUT_MS, _o as isStatefulRecreateTargetSync, _s as maskSecretsInText, _t as dropFailedHint, a as isProtectionValueActive, aa as isReadableOrphanRecord, ac as isAccessDenied, al as stripForDisplay, an as secretBearing, ao as unreadableResourceEntries, ar as unsupportedFinalSnapshotError, as as createUnionSecretMasker, at as dropSettledNestedJournals, ba as malformedRenderedContainersWarning, bc as AssetPublisher, bi as isIamRoleArn, bl as stateBucketExistenceConfirmed, bn as constructPathOf, bt as loadJournaledOrphans, ca as malformedExportNamesWarning, cc as acceptedCreateOnlyDropsOf, cl as Synthesizer, cn as carriedExportAliasExposure, cs as logOnlyValueCount, ct as recordDisplacedSkips, da as malformedLocalResourceEntriesWarning, dc as hasReadableExportSet, di as refuseUnreadableCdkCrossAccountRefs, dl as getLegacyStateBucketName, dn as isWholeDynamicReferenceValue, do as NO_CC_HANDLERS_REASON, ds as recordLogOnlyValue, dt as withNestedRevertRun, ea as deployRefusesOrphanRowsReason, ec as rebuildClientForBucketRegion, ei as INTRINSIC_KEYS, el as runDockerForeground, en as reachableDivergentParameters, eo as repairMalformedResourceEntriesForReadOnly, er as ccRoutedFinalSnapshotError, es as readsNoEchoSource, et as keptForReadoption, fa as malformedLocalResourcesWarning, fc as hasReasonlessBaselineRefusal, fi as keepHeldTokenProvenance, fl as loadCdkJson, fn as noEchoParameterValueSeed, fo as hasNoCloudControlHandlers, fs as shareLogOnlyValues, ft as collectNestedChildUnaddressed, ga as malformedOrphansRefusalMessage, gc as isReadableBag, gi as applyRoleArnIfSet, gl as resolveSkipPrefix, gn as bindingSkippedOutputs, go as isStatefulRecreateTargetForReplace, gs as maskSecretsInError, gt as dropFailedCommands, ha as malformedOrphanRowsKeptWarning, hc as importableOutputs, hi as recordedReferenceRegions, hl as resolveCaptureObservedState, hn as isExportAliasCollision, ho as MULTI_REGION_RECREATE_BLOCKED_TYPES, hs as errorCauseChain, ht as deleteJournaledOrphans, i as PROTECTION_PROPERTY_BY_TYPE, ia as hasReadableResources, ic as crossPrefixDeniedWarning, il as stripControlChars, in as exportAliasCollisionScrubWarning, io as unreadableOrphanRecords, ir as refusesFinalSnapshot, is as carryLogOnlyValues, it as displacedPhysicalIdShown, j as serviceTokenBlockingReason, ja as refuseMalformedOrphans, jc as ensureAssetStorage, ji as isUnboundTemplateParameter, jl as PARTITION_TABLE, jn as green, js as recordNestedStackParameterExpressions, jt as recordAfterRollbackUpdate, k as deferredServiceTokenWarning, ka as refuseMalformedOrphanRecords, kc as BOOTSTRAP_MARKER_PREFIX, ki as regionLessSecretName, kl as decodeListingKey, kn as cyan, kr as readsNoEchoDeleteValues, ks as identityKeyFor, kt as replayRollback, la as malformedExportSourceWarning, lc as describeRegionValueKind, li as resolveDynamicReferences, ll as synthesisStatusMessage, ln as exportNameNoEchoParameters, lo as unwrittenCreateOnlyReplacement, lr as withCreateTokenLedger, ls as printingCorpusOf, ma as malformedOrphanRecordsWarning, mc as importableOutputKeys, mi as recordedOutputReferenceRegions, ml as resolveAutoAssetStorage, mn as collectPublishedOutputNames, mo as shownType, ms as createSecretMasker, mt as withNestedStackContext, n as recordedProtectionEvidence, na as hasReadableOrphans, nc as CrossPrefixScanCache, ni as poisonRenderedSpellingsCollidingIn, nl as warnFinchArgvExposure, nn as WITHHELD_NAME_DISPLAY, no as repairMalformedResourcesForReadOnly, nr as effectiveDeletionPolicy, ns as valueAtCoordinate, nt as NESTED_PENDING_PARENT_REASON, o as perType, oa as isReadableResourceEntry, oc as isNotImplemented, ol as AssetManifestLoader, on as secretBearingStateKeyWarning, oo as withheldAccountClause, os as hasMaskableValues, pa as malformedOrphanRecordsRefusalMessage, pc as hasUnverifiableParameterRefusal, pl as resolveApp, pn as collectDeclaredOutputNames, po as findReplacedReadersOfRecreateTargets, ps as unionOfSecretBags, pt as getCurrentNestedStackContext, q as makeCanonicalizePropertiesFn, qa as refuseMalformedResourcesForDeploy, qc as getDockerCmd, qi as declaresNoEcho, ql as injectAwsRegion, qn as secretNamedRecordNeedles, qo as maskWholeValue, qs as STATE_SOURCED_READBACK_RULES, r as recordedProtectionNote, ra as hasReadableOutputs, rc as applyCrossPrefixScan, rl as escapeRegExp, rn as displayTextOrWithheld, ro as unpreviewableOrphanRecords, rr as isFinalSnapshotError, rs as liveMatchesUnresolvedTokenFrame, rt as displacedOpClause, s as readProtection, sa as malformedDriftResourcePropertiesWarning, sc as splitImportedOps, sl as getDockerImageBySourceHash, sn as secretSafeKeyDisplay, so as findActionableSilentDrops, sr as ledgerForStack, ss as literalSplitDelimitersOf, st as nestedChildStackName$1, t as DeployEngine, ta as displayLogicalId, tc as CrossPrefixReadError, ti as IntrinsicFunctionResolver, tl as runDockerStreaming, tn as resourcesNamingDeclaredParameter, to as repairMalformedResourcePropertiesForReadOnly, tr as createPreDeleteFinalSnapshot, ts as recordedNoEchoValuesOf, tt as recordRetainedForReadoption, ua as malformedLocalOutputsWarning, uc as exportNamesCarriedFrom, ui as producerLookupOver, ul as getDefaultStateBucketName, un as exportNameSecretExposure, us as recordLogOnlyParameterValue, ut as revertedNestedRowIds, va as malformedOutputsRefusalMessage, vc as orphansCarriedFrom, vi as assertSendableRoleArn, vl as resolveStateBucketWithDefaultAndSource, vn as DEFAULT_RESOURCE_WARN_AFTER_MS, vo as renderStatefulReason, vs as markSameGenerationBag, vt as isHandledOrphan, wa as malformedScrubResourceEntriesRefusalMessage, wc as buildAssetRedirectMap, wi as callerEnvCredentials, wl as CFN_TEMPLATE_URL_LIMIT, wn as destroyStackRecordsView, wr as ccBrokenReason, xa as malformedResourceEntriesWarning, xc as isSensitiveAttributeName, xi as sendableAssumeRoleCommand, xl as warnDeprecatedNoPrefixCliFlag, xn as findDestructiveChanges, xs as redactSecretsForState, xt as makeForeignHolderScan, ya as malformedOutputsWarning, yc as shouldRetainResource, yi as explicitRoleArnOrThrow, yl as resolveUseCdkBootstrapAssets, yn as maskingRetryLogger, yt as journaledOrphanLines, z as conditionInputsFrom, za as refuseMalformedResourceEntriesForDestroy, zc as buildDockerImage, zi as AWS_NO_VALUE, zl as hasPlainPrototype, zn as completedReplayEntries, zr as RollbackInlinePolicyWriters, zs as recordMaskOnlyValue, zt as replacementNeverSwapped } from "./deploy-engine-HAvm8vSI.js";
6
- import { t as getCdkdVersion } from "./version-2jeKJQlt.js";
5
+ import { $ as resolvePendingCloudControlRequests, $a as repairMalformedOutputsForReadOnly, $c as warnFinchArgvExposure, $i as accountArgs, $n as buildFinalSnapshotIdentifier, $o as readbackPathFor, $r as DiffCalculator, $s as CrossPrefixScanCache, $t as namesAnyDeclaredParameter, A as findServiceTokenRefusals, Aa as refuseMalformedOrphanRecordsForDestroy, Ac as isCrossRegionRedirect, Ai as coerceParameterTypedValue, Al as derivePartitionAndUrlSuffix, An as gray, Ar as isCustomResourceType$1, As as inheritNestedStackParameterAssociations, At as removeProtectionTypeList, B as parentSuppliedValues, Ba as refuseMalformedResourceEntriesForImport, Bc as describeDockerFailure, Bi as cfnRefValueFromPhysicalId, Bl as describeFileReadFailure, Bn as journaledOrphanPrintingBag, Br as UNSPECIFIED_SKIP_REASON, Bs as recordMaskOnlyValuesIn, Bt as resolveReplacementOldType, Ca as malformedResourcesWarning, Cc as loadPublishableAssetManifest, Ci as applyCallerIdentityCredentials, Cl as findLargeInlineResources, Cr as ProviderRegistry, Cs as withPhysicalNameCopies, Ct as formatResourceLine, D as crossStackOutputProvenanceSource, Da as refuseDivergentRecordRegionForDestroy, Dc as assertAssetBucketRegion, Di as classifyReplaySecretRegion, Dl as expectedOwnerParam, Ds as isUncertifiedBaselineMaskPosition, E as computeImplicitDeleteEdges, Ea as previewableOrphanRecords, Ec as BOOTSTRAP_MARKER_PREFIX, Ei as classifyRecordedSecretRegion, El as decodeListingKey, En as withStackRecords, Er as wouldReturnToSdkProvider, Es as dynamicReferenceTokens, F as listNestedTemplateRows, Fa as refuseMalformedOutputsForDestroy, Fc as buildDenyExternalAccessPolicy, Fi as carriesDynamicReference, Fl as hasOwnKey, Fn as noEchoComparisonForTemplate, Fo as templateResourceTypes, Fr as customResourceResponseExpirationWarning, Fs as recordPhysicalNameCopy, Ft as planFailedOps, G as keptWholeReasonText, Ga as refuseMalformedResourcePropertiesForExport, Gc as isDockerClientEnvKey, Gi as parameterInputsFor, Gl as injectedAwsRegionValue, Gn as secretNamePrintingBags, Go as maskAtCoordinates, Gr as isWaitAbandonedError, Gs as STATE_SOURCED_CROSS_GENERATION_RULES, Gt as inheritProducerRegions, H as withResourceDeadline, Ha as refuseMalformedResourceEntriesForOrphan, Hc as finchSecretArgvRefusal, Hi as refStateLookupFromResource, Hl as renderAssemblyPathEscape, Hn as namingSecretsWithRecordedNoEcho, Ho as TemplateParser, Hr as deleteLeftInPlace, Hs as recordNoEchoParameterFreshValue, Ht as orphanNeedsIdentity, I as renderNestedTemplateTreeDefect, Ia as refuseMalformedResourceAttributesForOrphan, Ic as buildDockerImage, Ii as carriesFetchableDynamicReference, Il as hasPlainPrototype, In as noEchoExactEchoLeavesOf, Io as describeTypeWithThrottleRetry, Ir as CloudControlProvider, Is as splitGetAttStringForm, It as planRollback, J as makeSiblingClaimReader, Ja as refuseMalformedResourcesForDestroy, Jc as redactDockerArgvValues, Ji as JSON_LISTING_HOLE_VALUE, Jn as stateSecretNameNeedles, Jo as maskedLeafCoordinatesOf, Js as LockManager, K as mergeNoChangeOutputs, Ka as refuseMalformedResourcePropertiesForOrphan, Kc as isMalformedEnvKey, Ko as maskReadbackAtCoordinates, Ks as WHOLE_DYNAMIC_REFERENCE_PATTERN, L as templateIdentity, La as refuseMalformedResourceEntries, Lc as resolveDockerContextDirectory, Li as isNamelessDynamicReferenceError, Ll as nullPrototypeRecord, Ln as noEchoParameterNamesOf, Lo as withRetry, Lr as slowCcOperationTimeoutMs, Ls as carriesSecretMask, Lt as recheckFailedPlan, M as childTemplateLoader, Ma as refuseMalformedOrphansForDestroy, Mc as readBootstrapMarkerBody, Mi as parameterTypeMayLoseSecretIdentity, Ml as StageLoadError, Mn as red, Mr as withPrintingSecrets, Mt as demoteSupersededOrphans, N as findNestedTemplateTreeDefect, Na as refuseMalformedOrphansForOrphan, Nc as validateAssetBucketName, Ni as getAccountInfo, Nl as processStackMessages, Nn as yellow, Nr as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, Ns as physicalNameCopiesOf, Nt as isJournaledOrphan, O as inheritedProvenanceForChildDiff, Oc as ensureAssetStorage, Oi as producerRegionsFromState, Ol as PARTITION_TABLE, On as bold, Or as TemplateNoEchoReresolver, Os as pathCrossesDottedKey, Ot as replayFailedOperations, P as isAbsoluteAssetPath, Pa as refuseMalformedOutputs, Pc as validateContainerRepoName, Pi as isImpossibleEmptyStoredAttribute, Pl as defineOwnKey, Pn as noEchoAttributeNamesOf, Po as prefetchCreateOnlyPropertyPaths, Pr as applyCustomResourceResponseExpiration, Pt as isReplacementOrphan, Q as pendingRequestCount, Qa as repairMalformedOrphansForReadOnly, Qc as runDockerStreaming, Qi as UNREADABLE_RESOURCES_MAP_ROW, Qn as PRE_DELETE_SNAPSHOT_TYPES, Qs as CrossPrefixReadError, Qt as computeParameterTaint, R as conditionFingerprint, Ra as refuseMalformedResourceEntriesForDeploy, Rc as describeDockerCapturedOutput, Ri as keepsSecretReferenceToken, Rl as ownValue, Rn as createReadOnlyAttributeHealerFactory, Rs as provenPublicValue, Rt as recordUnderIdIsNotOwn, Sa as malformedResourcePropertiesWarning, Sc as createAssetRedirectResolver, Si as AWS_CREDENTIAL_ENV_KEYS, Sl as MIGRATE_TMP_PREFIX, Sn as formatDestructiveChange, Sr as CC_BROKEN_REASON, Ss as scrubResourceRecord, St as sameJournaledOrphans, T as IMPLICIT_DELETE_DEPENDENCIES, Ta as malformedStateRefusalMessage, Tc as AssetModeResolver, Ti as envCredentialsAreAssumedRole, Tl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Tr as isCustomResource, Ts as DYNAMIC_REFERENCE_TOKEN_SCAN, U as diffSecurity, Ua as refuseMalformedResourcePropertiesForDestroy, Uc as formatDockerLoginError, Ul as resolveAssemblyPath, Un as orphanRecordsPrintingBag, Uo as canonicalCoordinates, Ur as deleteSkipReason, Us as recordProvenPublicExpression, Ut as findNestedStackTypeChanges, V as readRecordedConditionVerdicts, Va as refuseMalformedResourceEntriesForImportSave, Vc as dockerSpawnEnvWithSensitive, Vi as isStalePlaceholderArnAttribute, Vl as displayAssemblyPath, Vn as maskEventTextWithBoundBags, Vo as DagBuilder, Vr as deleteIndeterminateGuards, Vs as recordNoEchoAttributeValues, Vt as seedsDeleteFirstGuard, W as isSecretBearingReferenceString, Wa as refuseMalformedResourcePropertiesForDrift, Wc as getDockerCmd, Wi as withSharedDrainBudget, Wl as injectAwsRegion, Wn as secretNamePrintingBag, Wo as isMarkedCoordinate, Ws as wholeStringLeavesOf, X as DeploymentEventsReader, Xa as refuseMalformedState, Xc as redactedDockerCause, Xi as STATE_RESOURCES_MALFORMED, Xn as extractDeploymentEventError, Xo as noEchoLeavesOf, Xs as S3StateBackend, Xt as updatePartialMessage, Y as planOrphanAdoption, Ya as refuseMalformedResourcesForExport, Yc as redactedCause, Yi as STATE_REGION_DIVERGED, Yn as storedSecretNameNeedles, Yo as noEchoCoordinatesOf, Ys as isLockInfoExpired, Z as DeploymentEventsStore, Za as repairMalformedOrphanRecordsForReadOnly, Zc as runDockerForeground, Zi as UNREADABLE_ORPHANS_CONTAINER_ROW, Zn as ATOMIC_FINAL_SNAPSHOT_TYPES, Zo as noEchoOutputsComparison, Zs as rebuildClientForBucketRegion, Zt as updatePartialReason, _a as malformedOrphansWarning, _c as AssetPublisher, _i as assertFlagRoleArn, _l as stateBucketExistenceConfirmed, _n as DEFAULT_RESOURCE_TIMEOUT_MS, _o as isStatefulRecreateTargetSync, _s as maskSecretsInError, _t as dropFailedHint, a as isProtectionValueActive, aa as isReadableOrphanRecord, ac as acceptedCreateOnlyDropsOf, al as Synthesizer, an as secretBearing, ao as unreadableResourceEntries, ar as unsupportedFinalSnapshotError, as as carryLogOnlyValues, at as dropSettledNestedJournals, ba as malformedRenderedContainersWarning, bc as WorkGraph, bi as isIamRoleArn, bl as CFN_TEMPLATE_BODY_LIMIT, bn as constructPathOf, bt as loadJournaledOrphans, ca as malformedExportNamesWarning, cc as hasReadableExportSet, cl as getLegacyStateBucketName, cn as carriedExportAliasExposure, cs as literalSplitDelimitersOf, ct as recordDisplacedSkips, da as malformedLocalResourceEntriesWarning, dc as importableOutputKeys, di as refuseUnreadableCdkCrossAccountRefs, dl as resolveAutoAssetStorage, dn as isWholeDynamicReferenceValue, do as NO_CC_HANDLERS_REASON, ds as recordLogOnlyParameterValue, dt as withNestedRevertRun, ea as deployRefusesOrphanRowsReason, ec as applyCrossPrefixScan, ei as INTRINSIC_KEYS, el as escapeRegExp, en as reachableDivergentParameters, eo as repairMalformedResourceEntriesForReadOnly, er as ccRoutedFinalSnapshotError, es as readsNoEchoSource, et as keptForReadoption, fa as malformedLocalResourcesWarning, fc as importableOutputs, fi as keepHeldTokenProvenance, fl as resolveCaptureObservedState, fn as noEchoParameterValueSeed, fo as hasNoCloudControlHandlers, fs as recordLogOnlyValue, ft as collectNestedChildUnaddressed, ga as malformedOrphansRefusalMessage, gc as shouldRetainResource, gi as applyRoleArnIfSet, gl as resolveUseCdkBootstrapAssets, gn as bindingSkippedOutputs, go as isStatefulRecreateTargetForReplace, gs as errorCauseChain, gt as dropFailedCommands, ha as malformedOrphanRowsKeptWarning, hc as orphansCarriedFrom, hi as recordedReferenceRegions, hl as resolveStateBucketWithDefaultAndSource, hn as isExportAliasCollision, ho as MULTI_REGION_RECREATE_BLOCKED_TYPES, hs as createSecretMasker, ht as deleteJournaledOrphans, i as PROTECTION_PROPERTY_BY_TYPE, ia as hasReadableResources, ic as splitImportedOps, il as getDockerImageBySourceHash, in as exportAliasCollisionScrubWarning, io as unreadableOrphanRecords, ir as refusesFinalSnapshot, is as liveMatchesUnresolvedTokenFrame, it as displacedPhysicalIdShown, j as serviceTokenBlockingReason, ja as refuseMalformedOrphans, jc as parseBootstrapMarker, ji as isUnboundTemplateParameter, jl as AssemblyReader, jn as green, js as recordNestedStackParameterExpressions, jt as recordAfterRollbackUpdate, k as deferredServiceTokenWarning, ka as refuseMalformedOrphanRecords, kc as getBootstrapMarkerKey, ki as regionLessSecretName, kl as canonicalizeRegion, kn as cyan, kr as readsNoEchoDeleteValues, ks as identityKeyFor, kt as replayRollback, la as malformedExportSourceWarning, lc as hasReasonlessBaselineRefusal, li as resolveDynamicReferences, ll as loadCdkJson, ln as exportNameNoEchoParameters, lo as unwrittenCreateOnlyReplacement, lr as withCreateTokenLedger, ls as logOnlyValueCount, ma as malformedOrphanRecordsWarning, mc as orphansAfterRollback, mi as recordedOutputReferenceRegions, ml as resolveStateBucketWithDefault, mn as collectPublishedOutputNames, mo as shownType, ms as unionOfSecretBags, mt as withNestedStackContext, n as recordedProtectionEvidence, na as hasReadableOrphans, nc as isAccessDenied, ni as poisonRenderedSpellingsCollidingIn, nl as stripForDisplay, nn as WITHHELD_NAME_DISPLAY, no as repairMalformedResourcesForReadOnly, nr as effectiveDeletionPolicy, ns as valueAtCoordinate, nt as NESTED_PENDING_PARENT_REASON, o as perType, oa as isReadableResourceEntry, oc as describeRegionValueKind, ol as synthesisStatusMessage, on as secretBearingStateKeyWarning, oo as withheldAccountClause, os as createUnionSecretMasker, pa as malformedOrphanRecordsRefusalMessage, pc as isReadableBag, pl as resolveSkipPrefix, pn as collectDeclaredOutputNames, po as findReplacedReadersOfRecreateTargets, ps as shareLogOnlyValues, pt as getCurrentNestedStackContext, q as makeCanonicalizePropertiesFn, qa as refuseMalformedResourcesForDeploy, qc as partitionSensitiveEnv, qi as declaresNoEcho, ql as resolveBucketRegion, qn as secretNamedRecordNeedles, qo as maskWholeValue, qs as isSingleDynamicReferenceToken, r as recordedProtectionNote, ra as hasReadableOutputs, rc as isNotImplemented, rl as AssetManifestLoader, rn as displayTextOrWithheld, ro as unpreviewableOrphanRecords, rr as isFinalSnapshotError, rs as redactForState, rt as displacedOpClause, s as readProtection, sa as malformedDriftResourcePropertiesWarning, sc as exportNamesCarriedFrom, sl as getDefaultStateBucketName, sn as secretSafeKeyDisplay, so as findActionableSilentDrops, sr as ledgerForStack, ss as hasMaskableValues, st as nestedChildStackName$1, t as DeployEngine, ta as displayLogicalId, tc as crossPrefixDeniedWarning, ti as IntrinsicFunctionResolver, tl as stripControlChars, tn as resourcesNamingDeclaredParameter, to as repairMalformedResourcePropertiesForReadOnly, tr as createPreDeleteFinalSnapshot, ts as recordedNoEchoValuesOf, tt as recordRetainedForReadoption, ua as malformedLocalOutputsWarning, uc as hasUnverifiableParameterRefusal, ui as producerLookupOver, ul as resolveApp, un as exportNameSecretExposure, us as printingCorpusOf, ut as revertedNestedRowIds, va as malformedOutputsRefusalMessage, vc as isSensitiveAttributeName, vi as assertSendableRoleArn, vl as warnDeprecatedNoPrefixCliFlag, vn as DEFAULT_RESOURCE_WARN_AFTER_MS, vo as renderStatefulReason, vs as maskSecretsInText, vt as isHandledOrphan, wa as malformedScrubResourceEntriesRefusalMessage, wc as rewriteTemplateAssetReferences, wi as callerEnvCredentials, wl as uploadCfnTemplate, wn as destroyStackRecordsView, wr as ccBrokenReason, xa as malformedResourceEntriesWarning, xc as buildAssetRedirectMap, xi as sendableAssumeRoleCommand, xl as CFN_TEMPLATE_URL_LIMIT, xn as findDestructiveChanges, xt as makeForeignHolderScan, ya as malformedOutputsWarning, yc as stringifyValue, yi as explicitRoleArnOrThrow, yl as ssmResolvedValueType, yn as maskingRetryLogger, yt as journaledOrphanLines, z as conditionInputsFrom, za as refuseMalformedResourceEntriesForDestroy, zc as describeDockerExecFailure, zi as AWS_NO_VALUE, zl as absoluteAssemblyPathEscape, zn as completedReplayEntries, zr as RollbackInlinePolicyWriters, zs as recordMaskOnlyValue, zt as replacementNeverSwapped } from "./deploy-engine-D1z0QUsv.js";
6
+ import { t as getCdkdVersion } from "./version-CnjZ9J4l.js";
7
7
  import { randomBytes, randomUUID } from "node:crypto";
8
8
  import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
9
9
  import { GetRoleCommand, GetUserCommand } from "@aws-sdk/client-iam";
@@ -2559,7 +2559,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
2559
2559
  //#region src/provisioning/register-providers.ts
2560
2560
  let providerClasses;
2561
2561
  function loadProviderClasses() {
2562
- providerClasses ??= import("./provider-classes-DPwEHVDJ.js");
2562
+ providerClasses ??= import("./provider-classes-CR4DtD8M.js");
2563
2563
  return providerClasses;
2564
2564
  }
2565
2565
  function registerAllProviders(registry, classes) {
@@ -4982,7 +4982,7 @@ async function computeStackDiff(currentState, template, region, stackName, state
4982
4982
  if (Object.hasOwn(bound, name)) templateParameters[name] = bound[name];
4983
4983
  } catch (error) {
4984
4984
  unboundParameterNames.add(name);
4985
- logger.debug(`Diff parameter binding for stack ${displayStackName(stackName)} is partial: ${error instanceof Error ? error.message : String(error)}`);
4985
+ logger.debug(`Diff parameter binding for stack ${displayStackName(stackName)} is partial: ${describeAwsFailure(error).detail}`);
4986
4986
  }
4987
4987
  mergedParameters = {
4988
4988
  ...parameters,
@@ -5064,7 +5064,7 @@ async function computeStackDiff(currentState, template, region, stackName, state
5064
5064
  effectiveTemplate = new TemplateParser().filterResourcesByCondition(template, conditions);
5065
5065
  everyConditionKnown = unboundParameterNames.size === 0 && unknownConditions.size === 0;
5066
5066
  } catch (error) {
5067
- logger.debug(`Diff condition evaluation for stack ${displayStackName(stackName)} skipped: ${error instanceof Error ? error.message : String(error)}`);
5067
+ logger.debug(`Diff condition evaluation for stack ${displayStackName(stackName)} skipped: ${describeAwsFailure(error).detail}`);
5068
5068
  }
5069
5069
  if (mismatchedRecords.length > 0) logger.warn(safeMsg`Stack ${displayStackName(stackName)}: condition(s) ${mismatchedRecords.map((name) => displayIdent(name)).join(", ")} read a secret-fed parameter and changed since the last deploy, or one of their inputs did. This diff cannot tell which branch the next deploy takes, and shows each Fn::If on them as its FALSE branch.`);
5070
5070
  const stillUnknown = [...unknownConditions].filter((name) => !Object.hasOwn(recordedVerdicts, name));
@@ -7031,7 +7031,10 @@ function redactUnaccountedOutputs(positioned, stored, accountedKeys, secrets) {
7031
7031
  let repaired;
7032
7032
  for (const [key, value] of Object.entries(stored)) {
7033
7033
  if (accountedKeys.has(key)) continue;
7034
- const next = redactSecretsForState(value, secrets);
7034
+ const next = redactForState(value, {
7035
+ provenance: "value-scan",
7036
+ secrets
7037
+ });
7035
7038
  if (JSON.stringify(next) === JSON.stringify(value)) continue;
7036
7039
  repaired ??= { ...positioned };
7037
7040
  repaired[key] = next;
@@ -8395,7 +8398,10 @@ async function scrubStack(stack, region, stateBackend, lockManager, opts) {
8395
8398
  };
8396
8399
  const holdsRecordedPlaintext = (value) => {
8397
8400
  const needles = new Map([...allRecordedSecrets(outputSecrets, perResourceSecrets, orphanSecrets), ...outputSecrets]);
8398
- return JSON.stringify(redactSecretsForState(value, needles)) !== JSON.stringify(value);
8401
+ return JSON.stringify(redactForState(value, {
8402
+ provenance: "value-scan",
8403
+ secrets: needles
8404
+ })) !== JSON.stringify(value);
8399
8405
  };
8400
8406
  const noEchoPublicTokens = /* @__PURE__ */ new Set([region, stack.stackName]);
8401
8407
  const totalSecrets = outputSecrets.size + [...perResourceSecrets.values()].reduce((n, m) => n + m.size, 0) + [...orphanSecrets.values()].reduce((n, m) => n + m.size, 0);
@@ -8430,7 +8436,11 @@ async function scrubStack(stack, region, stateBackend, lockManager, opts) {
8430
8436
  const ownSecrets = secrets ?? /* @__PURE__ */ new Map();
8431
8437
  const positioned = templateProps ? {
8432
8438
  ...record,
8433
- properties: redactSecretsForState(record.properties, ownSecrets, templateProps, TEMPLATE_SOURCED_RULES)
8439
+ properties: redactForState(record.properties, {
8440
+ provenance: "template-sourced",
8441
+ secrets: ownSecrets,
8442
+ source: templateProps
8443
+ })
8434
8444
  } : record;
8435
8445
  const scrubbed = secrets || templateProps ? scrubResourceRecord(positioned, ownSecrets, void 0, STATE_SOURCED_CROSS_GENERATION_RULES) : record;
8436
8446
  const plan = noEchoPlans.byLogicalId.get(logicalId);
@@ -8454,7 +8464,10 @@ async function scrubStack(stack, region, stateBackend, lockManager, opts) {
8454
8464
  };
8455
8465
  });
8456
8466
  const crossStackNeedles = allRecordedSecrets(outputSecrets, perResourceSecrets, orphanSecrets);
8457
- const redactCrossStackName = (name) => redactSecretsForState(name, crossStackNeedles);
8467
+ const redactCrossStackName = (name) => redactForState(name, {
8468
+ provenance: "value-scan",
8469
+ secrets: crossStackNeedles
8470
+ });
8458
8471
  const newImports = state.imports?.map((entry) => {
8459
8472
  const exportName = redactCrossStackName(entry.exportName);
8460
8473
  if (exportName === entry.exportName) return entry;
@@ -8483,7 +8496,14 @@ async function scrubStack(stack, region, stateBackend, lockManager, opts) {
8483
8496
  const producer = list === "imports" ? `producer ${displayStackName(maskSecretsInText(entry.sourceStack, crossStackNeedles))}, ` : "";
8484
8497
  logger.warn(safeMsg`Scrub of ${shownStack}: state.${list}[${index}] (${producer}${displayIdent(String(entry.sourceRegion))}) ` + "holds a cross-stack read name in plaintext that has the shape of a secret-bearing read in today's template but not the secret's current value — most likely a value from before the secret was ROTATED. Scrub cannot repair it (it matches only the current value) and does not print it; treat that earlier value as exposed. A deploy " + safeMsg`that updates ${shownStack} rewrites this list from the reads it performs.`);
8485
8498
  }
8486
- const noEchoMaskedOutputs = maskScrubNoEchoOutputs(redactUnaccountedOutputs(outputSecrets.size > 0 ? redactSecretsForState(state.outputs, outputSecrets, outputsSourceUntrusted ? void 0 : outputsTemplateSource, TEMPLATE_SOURCED_RULES) : state.outputs, state.outputs, accountedOutputKeys, allRecordedSecrets(outputSecrets, perResourceSecrets, orphanSecrets)), noEchoPlans.outputKeys, new Set(Object.keys(stack.template.Outputs ?? {})), declaredAliasOf);
8499
+ const noEchoMaskedOutputs = maskScrubNoEchoOutputs(redactUnaccountedOutputs(outputSecrets.size > 0 ? redactForState(state.outputs, outputsSourceUntrusted ? {
8500
+ provenance: "value-scan",
8501
+ secrets: outputSecrets
8502
+ } : {
8503
+ provenance: "template-sourced",
8504
+ secrets: outputSecrets,
8505
+ source: outputsTemplateSource
8506
+ }) : state.outputs, state.outputs, accountedOutputKeys, allRecordedSecrets(outputSecrets, perResourceSecrets, orphanSecrets)), noEchoPlans.outputKeys, new Set(Object.keys(stack.template.Outputs ?? {})), declaredAliasOf);
8487
8507
  emitAbandonedScanNotes();
8488
8508
  let newOutputs = noEchoMaskedOutputs;
8489
8509
  let newExportNames = state.exportNames;
@@ -9976,7 +9996,10 @@ function isSecretBearingPath(path, secretPaths) {
9976
9996
  return false;
9977
9997
  }
9978
9998
  function redactDriftValue(value, secrets, secretBearing) {
9979
- const redacted = redactSecretsForState(value, secrets);
9999
+ const redacted = redactForState(value, {
10000
+ provenance: "value-scan",
10001
+ secrets
10002
+ });
9980
10003
  if (!secretBearing) return redacted;
9981
10004
  if (redacted === void 0 || redacted === null) return redacted;
9982
10005
  if (typeof redacted === "string" && isSingleDynamicReferenceToken(redacted)) return redacted;
@@ -10459,7 +10482,11 @@ async function runAccept(reports, stateBackend, stateConfig, awsClients, options
10459
10482
  setAtPath(newBaseline, change.path, change.awsValue);
10460
10483
  accepted.push(change);
10461
10484
  }
10462
- const redactedBaseline = withPhysicalNameCopies(outcome.secrets, otherPhysicalIds(report.state.resources, outcome.logicalId), () => redactSecretsForState(newBaseline, outcome.secrets, existing.properties ?? {}, hasObserved ? STATE_SOURCED_BASELINE_RULES : STATE_SOURCED_READBACK_RULES));
10485
+ const redactedBaseline = withPhysicalNameCopies(outcome.secrets, otherPhysicalIds(report.state.resources, outcome.logicalId), () => redactForState(newBaseline, {
10486
+ provenance: hasObserved ? "state-baseline" : "state-readback",
10487
+ secrets: outcome.secrets,
10488
+ source: existing.properties ?? {}
10489
+ }));
10463
10490
  let recordedChanges = 0;
10464
10491
  for (const change of accepted) {
10465
10492
  if (deepEqualUnordered(getAtPath(redactedBaseline, change.path), change.awsValue)) {
@@ -11036,7 +11063,11 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
11036
11063
  try {
11037
11064
  if (updateResult?.effectiveProperties) {
11038
11065
  const delta = collectNarrowedTopLevelKeys(newProperties, updateResult.effectiveProperties);
11039
- if (Object.keys(delta).length > 0) narrowedByLogicalId.set(outcome.logicalId, keepBaselineAtUncertifiedPaths(redactSecretsForState(delta, secrets, revertBaseline, stateResource.observedProperties !== void 0 ? STATE_SOURCED_BASELINE_RULES : STATE_SOURCED_READBACK_RULES), [...outcome.uncertifiedPaths, ...outcome.noEchoParameterPaths ?? []], revertBaseline));
11066
+ if (Object.keys(delta).length > 0) narrowedByLogicalId.set(outcome.logicalId, keepBaselineAtUncertifiedPaths(redactForState(delta, {
11067
+ provenance: stateResource.observedProperties !== void 0 ? "state-baseline" : "state-readback",
11068
+ secrets,
11069
+ source: revertBaseline
11070
+ }), [...outcome.uncertifiedPaths, ...outcome.noEchoParameterPaths ?? []], revertBaseline));
11040
11071
  }
11041
11072
  } catch (captureErr) {
11042
11073
  logger.warn(` ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): reverted, but the provider's reported effective properties could not be read — ${maskSecretsInText(describeAwsFailure(captureErr).detail, secrets)}`);
@@ -11045,7 +11076,10 @@ async function runRevert(reports, regionScope, stateBackend, stateConfig, awsCli
11045
11076
  if (updateResult !== void 0) {
11046
11077
  const noEchoDeclared = recordNoEchoAttributeValues(updateResult, secrets, newProperties);
11047
11078
  const next = recordAfterRollbackUpdate(stateResource, updateResult);
11048
- const keptAttributes = next.attributes === void 0 ? void 0 : keepRecordedAttributesOverMask(redactSecretsForState(next.attributes, secrets), next.attributes, stateResource.attributes, noEchoDeclared);
11079
+ const keptAttributes = next.attributes === void 0 ? void 0 : keepRecordedAttributesOverMask(redactForState(next.attributes, {
11080
+ provenance: "value-scan",
11081
+ secrets
11082
+ }), next.attributes, stateResource.attributes, noEchoDeclared);
11049
11083
  const declaredNames = noEchoAttributeNamesOf(stateResource) ?? [];
11050
11084
  const attributes = keptAttributes === void 0 || declaredNames.length === 0 ? keptAttributes : Object.fromEntries(Object.entries(keptAttributes).map(([name, value]) => [name, declaredNames.includes(name) ? maskWholeValue(value) : value]));
11051
11085
  if (next.physicalId !== stateResource.physicalId || !sameRecordedJson(attributes, stateResource.attributes)) reRecordedByLogicalId.set(outcome.logicalId, {
@@ -12629,7 +12663,7 @@ async function purgeEventsAfterDestroy(reader, stackName, region, opts, logger)
12629
12663
  else if ((purge.earlierVersions?.deletedBodies ?? 0) > 0) logger.info(safeMsg` Purged earlier deployment-event versions left under the deployments/ prefix of ${displaySafe(stackName)} (${displaySafe(region)}), unless a warning above says otherwise.`);
12630
12664
  return purge;
12631
12665
  } catch (purgeError) {
12632
- logger.warn(` Failed to purge deployment-event history for ${displaySafe(stackName)}: ${displaySafe(purgeError instanceof Error ? purgeError.message : String(purgeError))}`);
12666
+ logger.warn(` Failed to purge deployment-event history for ${displaySafe(stackName)}: ${displaySafe(describeAwsFailure(purgeError).detail)}`);
12633
12667
  return null;
12634
12668
  }
12635
12669
  }
@@ -12757,7 +12791,7 @@ async function destroyCommand(stackArgs, options) {
12757
12791
  }
12758
12792
  throw named;
12759
12793
  }
12760
- synthError = error instanceof Error ? error : new Error(String(error));
12794
+ synthError = error instanceof Error ? error : new Error(safeStringify(error));
12761
12795
  logger.debug("Could not synthesize app, falling back to state-based stack list");
12762
12796
  }
12763
12797
  const stackPatterns = stackArgs.length > 0 ? stackArgs : options.stack ? [options.stack] : [];
@@ -19042,7 +19076,11 @@ async function refreshObservedForStack(stackName, region, stateBackend, lockMana
19042
19076
  logger.warn(safeMsg` ✗ ${displayStackName(stackName)}/${displayIdent(logicalId)} ` + safeMsg`(${displayIdent(resource.resourceType)}): ` + `not found in AWS — it was deleted outside cdkd; 'cdkd drift' reports it as deleted.`);
19043
19077
  return;
19044
19078
  }
19045
- resource.observedProperties = redactSecretsForState(maskReadbackAtCoordinates(observed, resource.properties ?? {}, [...maskedLeafCoordinatesOf(resource.properties ?? {}), ...noEchoLeavesOf(resource) ?? []]), await publicSsmProver.proofBagFor(resource.properties ?? {}), resource.properties ?? {}, STATE_SOURCED_BASELINE_RULES);
19079
+ resource.observedProperties = redactForState(maskReadbackAtCoordinates(observed, resource.properties ?? {}, [...maskedLeafCoordinatesOf(resource.properties ?? {}), ...noEchoLeavesOf(resource) ?? []]), {
19080
+ provenance: "state-baseline",
19081
+ secrets: await publicSsmProver.proofBagFor(resource.properties ?? {}),
19082
+ source: resource.properties ?? {}
19083
+ });
19046
19084
  if (logicalId === acceptId) {
19047
19085
  delete resource.observedBaselineRefused;
19048
19086
  delete resource.observedBaselineRefusalReason;
@@ -19127,7 +19165,7 @@ function rerunRollback(stackName) {
19127
19165
  }
19128
19166
  function backendErrorText(error, stackName, region) {
19129
19167
  if (!isPasteableIdent(stackName) || !isPasteableIdent(region)) return "its error text names a stack or region that is not a plain identifier, so it is not shown";
19130
- return displaySafe(error instanceof Error ? error.message : String(error));
19168
+ return displaySafe(describeAwsFailure(error).detail);
19131
19169
  }
19132
19170
  function stackRegionShown(stackName, region) {
19133
19171
  return `${plainOrDescribed(stackName, "stack name")} (${plainOrDescribed(region, "region")})`;
@@ -21748,7 +21786,12 @@ async function resolveImportedProperties(stackState, template, region, stateBack
21748
21786
  ...baseContext,
21749
21787
  recordedSecretValues
21750
21788
  });
21751
- resource.properties = recordedSecretValues.size > 0 ? redactSecretsForState(markSameGenerationBag(resolved), recordedSecretValues, unresolvedProperties) : resolved;
21789
+ resource.properties = recordedSecretValues.size > 0 ? redactForState(resolved, {
21790
+ provenance: "template-derived",
21791
+ secrets: recordedSecretValues,
21792
+ source: unresolvedProperties,
21793
+ generation: "same-generation"
21794
+ }) : resolved;
21752
21795
  noEchoInputs.set(logicalId, {
21753
21796
  template: unresolvedProperties,
21754
21797
  resolved,
@@ -21758,7 +21801,10 @@ async function resolveImportedProperties(stackState, template, region, stateBack
21758
21801
  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 'cdkd orphan <StackPath>/<Path/To/Resource>'.` + (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 'cdkd deploy'.` : ""));
21759
21802
  threw = true;
21760
21803
  }
21761
- if (recordedSecretValues.size > 0 && resource.attributes !== void 0) resource.attributes = redactSecretsForState(resource.attributes, recordedSecretValues);
21804
+ if (recordedSecretValues.size > 0 && resource.attributes !== void 0) resource.attributes = redactForState(resource.attributes, {
21805
+ provenance: "value-scan",
21806
+ secrets: recordedSecretValues
21807
+ });
21762
21808
  const dependsOnDivergent = parameterTaint?.refused.has(logicalId) === true;
21763
21809
  if (dependsOnDivergent) unsafeObservedBaselineLogicalIds.unverifiableParameter.add(logicalId);
21764
21810
  if (threw || dependsOnDivergent) {
@@ -22031,7 +22077,11 @@ async function captureObservedForImportedResources(stackState, providerRegistry,
22031
22077
  const observed = await provider.readCurrentState(resource.physicalId, logicalId, resource.resourceType, resource.properties ?? {}, buildReadCurrentStateContext(stackState, logicalId));
22032
22078
  if (observed !== void 0 && observed !== RESOURCE_NOT_FOUND) {
22033
22079
  const marked = noEchoLeavesOf(resource) ?? [];
22034
- resource.observedProperties = redactSecretsForState(marked.length > 0 ? maskReadbackAtCoordinates(observed, resource.properties ?? {}, marked) : observed, NO_RECORDED_SECRETS, resource.properties ?? {}, STATE_SOURCED_BASELINE_RULES);
22080
+ resource.observedProperties = redactForState(marked.length > 0 ? maskReadbackAtCoordinates(observed, resource.properties ?? {}, marked) : observed, {
22081
+ provenance: "state-baseline",
22082
+ secrets: NO_RECORDED_SECRETS,
22083
+ source: resource.properties ?? {}
22084
+ });
22035
22085
  }
22036
22086
  } catch (err) {
22037
22087
  logger.debug(`observedProperties capture for imported ${logicalId} (${resource.resourceType}) failed: ${err instanceof Error ? err.name : typeof err} — drift will fall back to template properties for this resource until the next successful deploy.`);
@@ -29501,4 +29551,4 @@ function collectVerbFlags(program) {
29501
29551
 
29502
29552
  //#endregion
29503
29553
  export { resolveSecretDerivedPrincipals as a, buildProgram, isResolvableSecretPrincipalList as i, runDestroyForStack as n, canonicalizeIpProtocolValue as o, holdsUnprovenSecretPrincipalToken as r, resolvedResourceTimeoutMs as s, canonicalizeIpv4Cidr as t };
29504
- //# sourceMappingURL=program-DmPDfDhE.js.map
29554
+ //# sourceMappingURL=program-Cqk1ZTsY.js.map