@cdkd/cli 0.358.4 → 0.358.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.
- package/dist/{ambient-client-defaults-CcCQuSZx.js → ambient-client-defaults-XFcZ_IMI.js} +3 -3
- package/dist/{ambient-client-defaults-CcCQuSZx.js.map → ambient-client-defaults-XFcZ_IMI.js.map} +1 -1
- package/dist/{asg-provider-BYsZoqmF.js → asg-provider-BP8oMti2.js} +6 -6
- package/dist/{asg-provider-BYsZoqmF.js.map → asg-provider-BP8oMti2.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-vUQQgT6M.js → custom-resource-runtime-QfoyaxPW.js} +6 -6
- package/dist/{custom-resource-runtime-vUQQgT6M.js.map → custom-resource-runtime-QfoyaxPW.js.map} +1 -1
- package/dist/{db-associated-roles-D1kkpP0k.js → db-associated-roles-5I6qQ0C6.js} +2 -2
- package/dist/{db-associated-roles-D1kkpP0k.js.map → db-associated-roles-5I6qQ0C6.js.map} +1 -1
- package/dist/{delete-started-joCwegKq.js → delete-started-B3fWZ4t9.js} +4 -4
- package/dist/{delete-started-joCwegKq.js.map → delete-started-B3fWZ4t9.js.map} +1 -1
- package/dist/{deploy-engine-CilA7v8d.js → deploy-engine-DwpkRhxS.js} +399 -244
- package/dist/deploy-engine-DwpkRhxS.js.map +1 -0
- package/dist/{diff-calculator-Bjr0sh-h.js → diff-calculator-Drt5nkqk.js} +12 -12
- package/dist/{diff-calculator-Bjr0sh-h.js.map → diff-calculator-Drt5nkqk.js.map} +1 -1
- package/dist/{ec2-termination-protection-Gdl3Djvt.js → ec2-termination-protection-CEAH5-4N.js} +6 -6
- package/dist/{ec2-termination-protection-Gdl3Djvt.js.map → ec2-termination-protection-CEAH5-4N.js.map} +1 -1
- package/dist/{ecr-uri-BhoeLkz2.js → ecr-uri-CsP8Bfa_.js} +2 -2
- package/dist/{ecr-uri-BhoeLkz2.js.map → ecr-uri-CsP8Bfa_.js.map} +1 -1
- package/dist/{expected-bucket-owner-CIiqUDil.js → expected-bucket-owner-Lk8hXI9d.js} +2 -2
- package/dist/{expected-bucket-owner-CIiqUDil.js.map → expected-bucket-owner-Lk8hXI9d.js.map} +1 -1
- package/dist/{iam-role-provider-gS0g_h2H.js → iam-role-provider-B6iCxpQV.js} +8 -8
- package/dist/{iam-role-provider-gS0g_h2H.js.map → iam-role-provider-B6iCxpQV.js.map} +1 -1
- package/dist/{image-plan-hSzmMXmK.js → image-plan-D-54O-Nq.js} +8 -8
- package/dist/{image-plan-hSzmMXmK.js.map → image-plan-D-54O-Nq.js.map} +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-ZjhMP0A2.js → logger-jcgg96uu.js} +2 -2
- package/dist/{logger-ZjhMP0A2.js.map → logger-jcgg96uu.js.map} +1 -1
- package/dist/{neptune-provider-D3O8Y0lx.js → neptune-provider-CpoLlf2R.js} +7 -7
- package/dist/{neptune-provider-D3O8Y0lx.js.map → neptune-provider-CpoLlf2R.js.map} +1 -1
- package/dist/{program-MndcrrWf.js → program-DDysnPS0.js} +708 -47
- package/dist/program-DDysnPS0.js.map +1 -0
- package/dist/{provider-classes-KrOpD8Sp.js → provider-classes-CwIe3PGY.js} +453 -649
- package/dist/provider-classes-CwIe3PGY.js.map +1 -0
- package/dist/{rds-provider-Q_PZr6mn.js → rds-provider-DJtzCaTQ.js} +10 -10
- package/dist/{rds-provider-Q_PZr6mn.js.map → rds-provider-DJtzCaTQ.js.map} +1 -1
- package/dist/{read-replica-DyQpEv77.js → read-replica-eSaw4q1p.js} +3 -3
- package/dist/{read-replica-DyQpEv77.js.map → read-replica-eSaw4q1p.js.map} +1 -1
- package/dist/{replacement-rules-BdvFwhmu.js → replacement-rules-DOyuWYSl.js} +3 -3
- package/dist/{replacement-rules-BdvFwhmu.js.map → replacement-rules-DOyuWYSl.js.map} +1 -1
- package/dist/{resource-deadline-CKaftDB_.js → resource-deadline-Cd5Jfimc.js} +4 -4
- package/dist/{resource-deadline-CKaftDB_.js.map → resource-deadline-Cd5Jfimc.js.map} +1 -1
- package/dist/{restore-source-guard-eOILAZqS.js → restore-source-guard-YKb1WUF2.js} +4 -4
- package/dist/{restore-source-guard-eOILAZqS.js.map → restore-source-guard-YKb1WUF2.js.map} +1 -1
- package/dist/{run-cli-PZtAEtYO.js → run-cli-CyokhRcp.js} +2 -2
- package/dist/{run-cli-PZtAEtYO.js.map → run-cli-CyokhRcp.js.map} +1 -1
- package/dist/{version-DiwszmmI.js → version-DKW7jD3V.js} +2 -2
- package/dist/{version-DiwszmmI.js.map → version-DKW7jD3V.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-CilA7v8d.js.map +0 -1
- package/dist/program-MndcrrWf.js.map +0 -1
- package/dist/provider-classes-KrOpD8Sp.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-
|
|
2
|
-
import { $ as renderStacksNoLongerSelected, $t as deployOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as STATE_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllStateKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as listAllLockKeys, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as parseStateKey, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as contextOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as LOCK_FILE_SUFFIX, St as realAwsException, T as DockerRunnerError, Tn as describeStateKey, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as commonOptions, _ as probeHostGatewaySupport, _n as parseDuration, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noLocalCustomResourcesOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as cliArgParser, bt as prepareLocalLoopbackForwarder, cn as regionOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stateOptions, dt as activateLocalAwsAndRoleArn, en as destroyOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as useCdkBootstrapAssetsOption, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as allowUnsupportedTypesOption, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as parseAssumeRoleToken, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as noCfnFallbackOption, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as skipFinalSnapshotOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as normalizeStartApiAssumeRole, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as exclusivelyOption, nt as stackMatchesPattern, o as resolveLambdaTarget, on as parseContextOptions, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as effectiveAssumeRoleArn, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as guardStackRegionOptions, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseStackRegion, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as diffUpdatePolicyOptions, tt as selectTargetStack, u as assetPathDirs, un as stackOptions, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as resourceTimeoutOptions, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_KEY_MAX_CODE_POINTS, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as parsePositiveIntegerOption, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as validateResourceTimeouts, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-
|
|
3
|
-
import { C as readRecordedPrincipals, Dt as interruptWatchListenerCount, Et as endCommandInterruptScope, G as remedyLogicalId, It as resourceTypeShown, J as RESOURCE_NOT_FOUND, L as VALUE_NOT_SHOWN, Ot as isInterruptedWaitError, Pt as logicalIdShown, Tt as beginCommandInterruptScope, X as isMarkedNotGone, Y as assertRegionMatch, _ as IAM_PRINCIPAL_NAME, _n as injectiveKey, an as buildLockContentionMessage, bn as producerRecordKey, cn as formatLockOperation, fn as CUSTOM_RESOURCE_RESPONSE_PREFIX, gn as withPasteableAwsProfile, hn as setPasteableAwsProfile, i as withResourceDeadline, in as buildForceUnlockCommand, ln as formatLockOwner, mn as setPasteableAwsCaBundle, mt as runDeleteAttempt, on as forceQuitRecoveryClause, pn as DEFAULT_STATE_PREFIX, q as DriftReadRefusedError, rn as UNREPRODUCIBLE_LOCK_CLAUSE, sn as formatLockExpiry, v as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, xt as isAwsCliLiteral, yn as producerCoordinateKey } from "./resource-deadline-
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, E as cutMarker, F as stringifyJsonPayload, I as terminalSafe, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, b as setPasteableVerbFlags, c as deployReplaceCommand, d as pasteableCommand, g as shellBoundedDisplay, h as quotedOrDescribed, i as SHELL_ACTIVE_WHY, j as isPasteableIdent, k as displaySafe, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, t as getCdkdVersion, u as isInertUnquoted, v as withheldTargetClause, w as UNRENDERABLE, x as SAFE_MSG_ALTERED_CHAR, y as setPasteableRunFlags } from "./version-DKW7jD3V.js";
|
|
2
|
+
import { $ as renderStacksNoLongerSelected, $t as deployOptions, A as followContainerLogs, At as namedEnvAwsRegion, B as resolveRuntimeCodeMountPath, Bt as regionNeedsReconciliation, C as waitForRieReady, Cn as STATE_FILE_SUFFIX, Ct as resolveContainerRegion, Dn as listAllStateKeys, Dt as warnAwsEmulatorStateSourceHint, E as SENSITIVE_ENV_KEYS, En as listAllLockKeys, Et as taskRoleAssumedInRealAws, F as removeContainer, Ft as legacyStateBucketFallbackRegion, G as nestedOwnerOfLogicalId, Gt as withOtherIndexRemoval, H as resolveRuntimeImage, Ht as resolveEffectiveRegion, It as namedCliRegion, J as renderAllLeftOutStageStacks, Jt as annotationMessageOptions, K as partitionTopLevel, Kt as strandedProfileCredentialsNotice, L as runDetached, Lt as rawCliRegion, M as killAndDrainContainerLogs, Mt as adoptRegionFlag, N as pickFreePort, Nt as exportInferredRegionForSdk, O as ensureDockerAvailable, On as parseStateKey, Ot as workloadGetsEmulatorKeysOnly, P as pullImage, Pt as foldRegionOption, Q as renderNotInAppWarning, Qt as contextOptions, Rt as reconcileExportIndexRegion, S as invokeRie, Sn as LOCK_FILE_SUFFIX, St as realAwsException, T as DockerRunnerError, Tn as describeStateKey, Tt as stateRoleRecordIsEmulatorSide, U as describeStack, Ut as stackRegionResolver, V as resolveRuntimeFileExtension, Vt as regionShown, W as matchStacks, Wt as stateWithRegion, X as renderAmbiguousTargetStack, Xt as applyWaitFlagEnv, Y as renderAllNoTopLevelStacks, Yt as appOptions, Z as renderNoStackMatch, Zt as commonOptions, _ as probeHostGatewaySupport, _n as parseDuration, _t as localAwsEmulatorCredentials, a as materializeLayerFromArn, an as noLocalCustomResourcesOption, at as unmatchedPatterns, b as substituteImagePlaceholders, bn as cliArgParser, bt as prepareLocalLoopbackForwarder, cn as regionOption, ct as resolveCdkPathToLogicalIds, d as resolveAssetCodeDirectory, dn as stateOptions, dt as activateLocalAwsAndRoleArn, en as destroyOptions, et as renderUnmatchedPatternsWarning, f as architectureToPlatform, fn as useCdkBootstrapAssetsOption, ft as assertAwsEmulatorValue, g as HOST_GATEWAY_MIN_VERSION, gn as allowUnsupportedTypesOption, gt as localAwsEmulatorActive, h as layerAssetDirectory, hn as parseAssumeRoleToken, ht as keepEmulatorIssuedCredentials, i as resolveInlineCodeFilePath, in as noCfnFallbackOption, it as stacksNoLongerSelected, jt as recordEmulatorDefaultRegion, k as flushStdio, kt as emulatorDefaultRegion, l as resolveLambdaLayers, ln as skipFinalSnapshotOption, lt as stackForConstructPath, m as copyLayerTreeLastWins, mn as normalizeStartApiAssumeRole, mt as getActiveWorkloadAwsWiring$1, n as resolveTmpfsForLambda, nn as exclusivelyOption, nt as stackMatchesPattern, o as resolveLambdaTarget, on as parseContextOptions, ot as buildCdkPathIndex, p as buildContainerImage$1, pn as effectiveAssumeRoleArn, pt as attachLocalLoopbackForwarder, q as refuseStackNameRegionCollisions, qt as writeProfileCredentialsFile, r as resolveZipImagePlan, rn as guardStackRegionOptions, rt as stacksForDependency, s as extractEphemeralStorageMb, sn as parseStackRegion, st as readCdkPathOrUndefined, t as resolveLocalBuildPlan$1, tn as diffUpdatePolicyOptions, tt as selectTargetStack, u as assetPathDirs, un as stackOptions, ut as stackForPathFormTarget, v as resolveHostGatewayExtraHosts, vn as resourceTimeoutOptions, vt as mixedModeActive, w as CONTAINER_LOG_DRAIN_TIMEOUT_MS, wn as STATE_KEY_MAX_CODE_POINTS, wt as setContainerRegion, x as tryResolveImageFnJoin, xn as parsePositiveIntegerOption, xt as profileCredentialsForWorkload, y as derivePseudoParametersFromRegion$1, yn as validateResourceTimeouts, yt as mixedModeEmulatorOverride, z as streamLogs, zt as reconcileMarkerRegionWithLegacyDefault } from "./image-plan-D-54O-Nq.js";
|
|
3
|
+
import { C as readRecordedPrincipals, Dt as interruptWatchListenerCount, Et as endCommandInterruptScope, G as remedyLogicalId, Ht as maskDeep, It as resourceTypeShown, J as RESOURCE_NOT_FOUND, L as VALUE_NOT_SHOWN, Ot as isInterruptedWaitError, Pt as logicalIdShown, Tt as beginCommandInterruptScope, X as isMarkedNotGone, Y as assertRegionMatch, _ as IAM_PRINCIPAL_NAME, _n as injectiveKey, an as buildLockContentionMessage, bn as producerRecordKey, cn as formatLockOperation, fn as CUSTOM_RESOURCE_RESPONSE_PREFIX, gn as withPasteableAwsProfile, hn as setPasteableAwsProfile, i as withResourceDeadline, in as buildForceUnlockCommand, ln as formatLockOwner, mn as setPasteableAwsCaBundle, mt as runDeleteAttempt, on as forceQuitRecoveryClause, pn as DEFAULT_STATE_PREFIX, q as DriftReadRefusedError, rn as UNREPRODUCIBLE_LOCK_CLAUSE, sn as formatLockExpiry, v as RESOLVED_PREVIOUS_PRINCIPAL_KEYS, wt as renderDisableCommand, xt as isAwsCliLiteral, yn as producerCoordinateKey } from "./resource-deadline-Cd5Jfimc.js";
|
|
4
4
|
import { a as runWithStackAwsClients, i as resetAwsClients, l as s3ClientDefaults, o as setAwsClients, s as resolveS3ClientDefaults, t as AwsClients, u as setS3ClientDefaultsDebugLog } from "./aws-clients-DOkPjjAW.js";
|
|
5
|
-
import { $ as withStackScope, B as generateResourceName, E as coerceCfnBoolean, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-
|
|
6
|
-
import { A as stripControlChars, B as retryClassificationText, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, ct as SynthesisError, et as CdkdError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, n as ambientCredentialConfig, o as formatError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, rt as LocalInvokeBuildError$1, s as handleError, st as StateError, t as ambientClientDefaults, tt as DeployCancelledError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
+
import { $ as withStackScope, A as configStringRefusal, B as generateResourceName, E as coerceCfnBoolean, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, R as PATTERN_B_RESOURCE_TYPES, S as explicitNamePropertyFor, X as isNameGeneration, a as reserveStdoutForPayload, i as releaseStdoutForPayload, m as verboseAwareText, n as getLogger, p as safeStringify, r as isStdoutReservedForPayload, s as runStackBuffered, u as describeAwsFailure, y as getLiveRenderer, z as derivesPatternBName } from "./logger-jcgg96uu.js";
|
|
6
|
+
import { A as stripControlChars, B as retryClassificationText, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, ct as SynthesisError, et as CdkdError, g as PartialFailureError, h as NestedStackChildDirectDestroyError, i as credentialFingerprint, j as stripForDisplay, k as escapeRegExp, l as withErrorHandling, n as ambientCredentialConfig, o as formatError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, rt as LocalInvokeBuildError$1, s as handleError, st as StateError, t as ambientClientDefaults, tt as DeployCancelledError, u as LocalStartServiceError, v as StackHasActiveImportsError, y as StackTerminationProtectionError, z as isTransientServerError } from "./ambient-client-defaults-XFcZ_IMI.js";
|
|
7
7
|
import { a as getAssumedRoleCredentials, c as setAssumedRoleCredentials, h as formatAuthority, l as setAwsEndpointOverrideSource, m as runInStackAwsScope, n as awsClientDefaults, r as awsEndpointOverrideActive, s as runWithRealAws } from "./aws-client-defaults-DAebi99J.js";
|
|
8
|
-
import { $ as legacyPlanAssetCount, A as getLegacyStateBucketName, B as resolveUseCdkBootstrapAssets, C as getDockerCmd, D as Synthesizer, E as abortInFlightMultipartUploads, F as resolveSkipPrefix, G as MIGRATE_TMP_PREFIX, H as warnDeprecatedNoPrefixCliFlag, I as resolveStateBucketWithDefault, J as refuseFailedLookups, K as findLargeInlineResources, L as resolveStateBucketWithDefaultAndSource, M as resolveApp, N as resolveAutoAssetStorage, O as synthesisStatusMessage, P as resolveCaptureObservedState, Q as createLegacyAssetParameterBinder, R as resolveStateBucketWithSource, S as formatDockerLoginError, T as runDockerStreaming, U as CFN_TEMPLATE_BODY_LIMIT, V as stateBucketExistenceConfirmed, W as CFN_TEMPLATE_URL_LIMIT, X as StageLoadError, Y as AssemblyReader, Z as bindLegacyStackAssetParameters, _ as finchSecretArgvRefusal, a as isLockInfoExpired, b as isDockerClientEnvKey, c as buildDockerImage, d as describeDockerExecFailure, et as predictedAutoCreatedAssetMode, f as describeDockerFailure, g as dockerSpawnEnvWithSensitive, h as redactDockerArgvValues, i as LockManager, it as setChildProcessAwsEnv, j as loadCdkJson, k as getDefaultStateBucketName, l as resolveDockerContextDirectory, m as redactedDockerCause, nt as CdkToolkitBucketMissingError, o as AssetPublisher, p as redactedCause, q as uploadCfnTemplate, r as DagBuilder, rt as processStackMessages, s as WorkGraph, t as DiffCalculator, tt as prepareLegacyStackAssets, v as partitionSensitiveEnv, w as runDockerForeground, x as isMalformedEnvKey, y as warnFinchArgvExposure, z as resolveUpdatePolicy } from "./diff-calculator-
|
|
9
|
-
import { $o as getAccountInfo, $r as computeParameterTaint, $s as refuseMalformedResourceEntries, $t as displacedPhysicalIdShown, A as recordedProtectionEvidence, Aa as readsNoEchoDeleteValues, Ac as repairMalformedOutputsForReadOnly, Ai as supersededHeldByOtherTypeWarning, An as findDestructiveChanges, Ar as IMPLICIT_DELETE_DEPENDENCIES, As as parameterInputsFor, Ba as setLocalCustomResourceRuntimeEnabled, Bc as repairMalformedResourcesForReadOnly, Bi as noEchoAttributeNamesOf, Bl as createLazyAssetModeContext, Bn as differingRemedy, Bo as refStateLookupFromResource, Bs as previewableOrphanRecords, Bt as sameMove, C as pendingMovesOutOf, Ca as isCustomResource, Cc as malformedExportSourceWarning, Cn as NOECHO_MAC_KEY_ALIAS, Co as callerEnvCredentials, Cr as demoteSupersededOrphans, D as findServiceTokenRefusals, Da as customResourceResponseExpirationWarning, Di as holdsSupersededResources, Dl as listNestedTemplateRows, Dn as noEchoMacVerdict, Do as producerRegionsFromState, Dr as recheckFailedPlan, Du as resolveBucketRegion, E as deferredServiceTokenWarning, Ea as applyCustomResourceResponseExpiration, Ec as malformedOutputsWarning, Ei as deleteSupersededEntry, El as isAbsoluteAssetPath, En as noEchoMacParametersOf, Eo as classifyReplaySecretRegion, Er as planFailedOps, Es as tryGetTopLevelWriteOnlyProperties, F as readProtection, Fc as malformedStateRefusalMessage, Fi as cyan, Fl as decodeListingKey, Fn as rollbackOrphanIds, Fo as isUnboundTemplateParameter, Fr as withPreviousPolicies, Fs as deployRefusesOrphanRowsReason, Ft as readRefactorMarker, Ga as RollbackInlinePolicyWriters, Gc as UNREADABLE_RESOURCES_MAP_ROW, Gi as createReadOnlyAttributeHealerFactory, Gn as propertiesChangedReason, Gr as nameGenerationHighWaterOf, Gs as unpreviewableOrphanRecords, H as readStreamPolicy, Hc as accountArgs, Hi as noEchoExactEchoLeavesOf, Hn as looselyEqual, Ho as lacksRecordedTableArn, Hr as removeProtectionTypeList, Hs as refuseMalformedOrphanRecordsForDestroy, Ht as macWriteOnlyKeys, Ia as customResourcesFailedWithoutApp, Ic as refuseMalformedResourcesForDeploy, Ii as gray, In as withMovedTo, Io as parameterTypeMayLoseSecretIdentity, Ir as findNestedStackTypeChanges, Is as isReadableOrphanRecord, It as readRefactorMarkerOnce, Ja as deleteLeftInPlace, Jc as hasReadableResources, Ji as maskEventTextWithBoundBags, Jl as AssetManifestLoader, Jn as siblingOwnedRevertDesired, Jo as recordedOutputReferenceRegions, Jr as retiredNameGenerationsAfter, Js as malformedLocalResourceEntriesWarning, Ka as UNSPECIFIED_SKIP_REASON, Kc as displayLogicalId, Ki as completedReplayEntries, Kn as proposeRenames, Ko as keepHeldTokenProvenance, Kr as nameScopeOf, Ks as unreadableOrphanRecords, La as customResourcesRunWithoutApp, Lc as refuseMalformedResourcesForDestroy, Li as green, Ln as changedReferenceInDiff, Lo as AWS_NO_VALUE, Ls as malformedOrphanRecordsRefusalMessage, Lt as refactorMarkerMovesOf, M as PROTECTION_PROPERTY_BY_TYPE, Mc as refuseDivergentRecordRegionForDestroy, Mi as supersededResourcesOf, Ml as ssmResolvedValueType, Mn as findRefactorHints, Mr as attemptUsesCompletedCreate, N as isProtectionValueActive, Na as withPrintingSecrets, Nc as malformedRenderedContainersWarning, Ni as withoutSuperseded, Nl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Nn as hintSidesOf, Nr as readsRegeneratingSecret, Ns as declaresNoEcho, Nt as keptForRetainedRecord, O as serviceTokenBlockingReason, Oc as refuseMalformedOutputs, Oi as isSupersededResourceRecord, Ol as renderNestedTemplateTreeDefect, On as noEchoValueMacsOf, Oo as regionLessSecretName, Or as recordUnderIdIsNotOwn, Os as maskedPropertyFingerprintsOf, P as perType, Pa as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Pc as malformedResourcesWarning, Pi as bold, Pn as movedToHint, Po as coerceParameterTypedValue, Pr as resolveReplacementOldType, Ps as maskedPropertyFingerprint, Pt as recordRetainedForReadoption, Qa as isWaitAbandonedError, Qc as unwrittenCreateOnlyReplacement, Qi as secretNamePrintingBags, Qr as inheritProducerRegions, Qs as refuseMalformedResourceAttributesForOrphan, Qt as displacedOpClause, Ra as localCustomResourceCommand, Rc as refuseMalformedResourcesForExport, Ri as red, Rl as buildAssetRedirectMap, Rn as changedReferencePath, Ro as cfnRefValueFromPhysicalId, Rs as malformedOrphanRecordsWarning, Rt as refactorMarkerRefusalMessage, S as hasPendingMovesOut, Sa as ccBrokenReason, Sc as malformedExportNamesWarning, Si as destroyStackRecordsView, Sl as isSensitiveAttributeName, Sn as crossStackReadsForPartialSave, So as applyCallerIdentityCredentials, Sr as seedsDeleteFirstGuard, Su as displayAssemblyPath, T as refusePendingMovesOut, Ta as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, Tc as malformedOutputsRefusalMessage, Tl as findNestedTemplateTreeDefect, Tn as noEchoMacBinding, To as classifyRecordedSecretRegion, Tr as isReplacementOrphan, Ts as getTopLevelKeysHoldingUnreadableCreateOnly, Tu as resolveAssemblyPath, Ua as CloudControlProvider, Uc as withheldAccountClause, Ui as noEchoParameterNamesOf, Un as mappingPairs, Ur as orphanNeedsIdentity, Us as refuseMalformedOrphansForOrphan, Ut as readsOnlyNoEchoParameters, Va as withCustomResourceStack, Vc as JSON_LISTING_HOLE_VALUE, Vi as noEchoComparisonForTemplate, Vn as isPairableType, Vo as lacksRecordedRefArn, Vr as segmentCleanupOptions, Vs as refuseMalformedOrphanRecords, Vt as updateRefactorMarker, Wc as STATE_RESOURCES_MALFORMED, Wi as withAttemptedItemsMasked, Wl as loadPublishableAssetManifest, Wn as parseMappingFile, Wr as nameGenerationCarriedFrom, Ws as repairMalformedOrphanRecordsForReadOnly, Wt as formatResourceLine, Xc as findHandledUnwrittenCreateOnly, Xi as orphanRecordsPrintingBag, Xo as recordedReferenceRegions, Xr as withNameGenerationReached, Xs as malformedResourceEntriesWarning, Xt as resolvePendingCloudControlRequests, Ya as deleteSkipReason, Yc as findActionableSdkUnwired, Yi as namingSecretsWithRecordedNoEcho, Yl as getDockerImageBySourceHash, Yn as stripSiblingOwnedParentMembers, Yr as retiredNameGenerationsLeaving, Ys as malformedLocalResourcesWarning, Yt as pendingRequestCount, Za as getReadOnlyPropertyPaths, Zi as secretNamePrintingBag, Zs as malformedScrubResourceEntriesRefusalMessage, Zt as NESTED_PENDING_PARENT_REASON, _ as conditionFingerprint, _c as malformedOrphansRefusalMessage, _i as bindingSkippedOutputs, _l as isAccessDenied, _n as makeForeignHolderScan, _o as explicitRoleArnOrThrow, _r as ledgerForStack, _s as isStatefulRecreateTargetSync, _u as nullPrototypeRecord, a as scanActiveConsumers, aa as PRE_DELETE_SNAPSHOT_TYPES, ac as repairMalformedResourceEntriesForReadOnly, ai as exportAliasCollisionScrubWarning, al as TemplateParser, an as revertedNestedRowIds, ar as recordAfterRollbackUpdate, as as withSharedDrainBudget, au as isCrossRegionRedirect, b as readRecordedConditionVerdicts, ba as CC_BROKEN_REASON, bc as refuseMalformedOrphansForDestroy, bi as maskingRetryLogger, bl as withStackInstanceIdWithheld, bn as DeploymentEventsReader, bo as sendableAssumeRoleCommand, c as nestedSsmNameDeferredNote, ca as effectiveDeletionPolicy, cc as malformedResourcePropertiesWarning, ci as secretSafeKeyDisplay, cn as getCurrentNestedStackContext, co as secretPhysicalIdSegment, cr as calculateResourceDrift, cu as readBootstrapMarkerBody, d as slashedSsmNameHealAdoptedNote, da as unsupportedFinalSnapshotError, dc as refuseMalformedResourcePropertiesForDrift, di as exportNameSecretExposure, dl as hasUnverifiableParameterRefusal, dn as dropFailedCommands, do as resolveDynamicReferences, dr as undeclaredEmptyObservedKeys, du as BOOTSTRAP_MARKER_PREFIX, ea as secretNamedRecordNeedles, ec as refuseMalformedResourceEntriesForDeploy, ei as namesAnyDeclaredParameter, en as dropSettledNestedJournals, eo as IntrinsicFunctionResolver, er as canonicalizeIpProtocolValue, es as isImpossibleEmptyStoredAttribute, f as slashedSsmNameHealNote, fa as createPreDeleteFinalSnapshot, fc as refuseMalformedResourcePropertiesForExport, fi as isWholeDynamicReferenceValue, fl as rebuildClientForBucketRegion, fn as dropFailedHint, fo as producerLookupOver, fr as updatePartialMessage, fs as findReplacedReadersOfRecreateTargets, g as makeCanonicalizePropertiesFn, gc as hasReadableOrphans, gi as isExportAliasCollision, gl as crossPrefixDeniedWarning, gn as sameJournaledOrphans, go as assertSendableRoleArn, gs as isStatefulRecreateTargetForReplace, gu as hasPlainPrototype, h as inheritedProvenanceForChildDiff, hc as UNREADABLE_ORPHANS_CONTAINER_ROW, hi as collectPublishedOutputNames, hl as applyCrossPrefixScan, hn as loadJournaledOrphans, ho as assertFlagRoleArn, hr as replacementCreateRoutesToCloudControl, hs as MULTI_REGION_RECREATE_BLOCKED_TYPES, hu as hasOwnKey, i as mergeNoChangeOutputs, ia as ATOMIC_FINAL_SNAPSHOT_TYPES, ic as refuseMalformedResourceEntriesForOrphan, ii as displayTextOrWithheld, il as PROPERTY_COVERAGE_BY_TYPE, io as stackIdTailOf, ir as buildReadCurrentStateContext, is as keepsSecretReferenceToken, iu as assertAssetBucketRegion, j as recordedProtectionNote, ja as isCustomResourceType$1, jc as STATE_REGION_DIVERGED, ji as supersededHolderOf, jn as formatDestructiveChange, jr as computeImplicitDeleteEdges, js as maskedInputProof, k as diffSecurity, ka as TemplateNoEchoReresolver, kc as refuseMalformedOutputsForDestroy, ki as supersededAfterRollback, kl as templateIdentity, kn as constructPathOf$1, kr as replacementNeverSwapped, l as nestedSsmNameRowNote, la as isFinalSnapshotError, li as carriedExportAliasExposure, ll as readOnlyStateVersionOf, ln as withNestedStackContext, lo as secretSegmentsOfState, lr as equalModuloMarkedMask, lu as validateAssetBucketName, m as crossStackOutputProvenanceSource, mc as repairMalformedResourcePropertiesForReadOnly, mi as collectDeclaredOutputNames, ml as CrossPrefixScanCache, mn as journaledOrphanLines, mo as applyRoleArnIfSet, mr as findUpdatePolicyReplacementRefusals, ms as shownType, mu as defineOwnKey, n as isSecretBearingReferenceString, na as storedSecretNameNeedles, nc as refuseMalformedResourceEntriesForImport, ni as resourcesNamingDeclaredParameter, nl as NO_CC_HANDLERS_REASON, nn as nestedChildStackName$1, no as isAlwaysLiveAttribute, nr as replayRollback, ns as isNamelessDynamicReferenceError, nu as ensureAssetStorage, o as inRunStackKey, oa as ccRoutedFinalSnapshotError, oc as unreadableResourceEntries, oi as secretBearing, ol as S3StateBackend, on as withNestedRevertRun, or as settleUnsettledPrevious, ou as getBootstrapMarkerKey, p as slashedSsmNameHealPendingNote, pa as buildFinalSnapshotIdentifier, pc as refuseMalformedResourcePropertiesForOrphan, pi as noEchoParameterValueSeed, pl as CrossPrefixReadError, pn as isHandledOrphan, po as refuseUnreadableCdkCrossAccountRefs, pr as updatePartialReason, q as streamPolicyMatchesDeclared, qa as deleteIndeterminateGuards, qc as hasReadableOutputs, qi as journaledOrphanPrintingBag, ql as rewriteTemplateAssetReferences, qn as referencedLogicalIds, qr as retiredAfterRollback, qs as isReadableResourceEntry, r as keptWholeReasonText, ra as extractDeploymentEventError, rc as refuseMalformedResourceEntriesForImportSave, ri as WITHHELD_NAME_DISPLAY, rl as hasNoCloudControlHandlers, rn as recordDisplacedSkips, ro as poisonRenderedSpellingsCollidingIn, rr as DELETED_RESOURCE_REMEDY, rs as carriesDynamicReference, ru as buildDenyExternalAccessPolicy, s as checkNestedSsmNames, sa as ccRoutedInstanceTakesNoSnapshot, sc as malformedDriftResourcePropertiesWarning, si as secretBearingStateKeyWarning, sl as splitImportedOps, sn as collectNestedChildUnaddressed, sr as withUnprovenUnsettled, ss as INTRINSIC_KEYS, su as parseBootstrapMarker, t as DeployEngine, ta as stateSecretNameNeedles, tc as refuseMalformedResourceEntriesForDestroy, ti as reachableDivergentParameters, to as isSelectOutOfBounds, tr as replayFailedOperations, ts as carriesFetchableDynamicReference, tu as AssetModeResolver, u as healSlashedSsmParameterNames, ua as refusesFinalSnapshot, uc as refuseMalformedResourcePropertiesForDestroy, ui as exportNameNoEchoParameters, ul as hasReasonlessBaselineRefusal, un as deleteJournaledOrphans, uo as withSecretPhysicalIdsMaskedInState, ur as equalModuloMask, uu as validateContainerRepoName, v as conditionInputsFrom, vc as malformedOrphansWarning, vi as DEFAULT_RESOURCE_TIMEOUT_MS, vl as isNotImplemented, vn as makeSiblingClaimReader, vo as isIamRoleArn, vs as renderStatefulReason, vu as ownValue, w as pendingMovesRefusalMessage, wa as wouldReturnToSdkProvider, wc as malformedLocalOutputsWarning, wi as withStackRecords, wn as createNoEchoValueMacs, wo as envCredentialsAreAssumedRole, wr as isJournaledOrphan, ws as getSettledWriteOnlyPropertyPaths, wu as renderAssemblyPathEscape, x as childTemplateLoader, xa as ProviderRegistry, xc as repairMalformedOrphansForReadOnly, xl as isSecretValuedAttribute, xn as DeploymentEventsStore, xo as AWS_CREDENTIAL_ENV_KEYS, xr as planRollback, xu as describeFileReadFailure, y as parentSuppliedValues, yc as refuseMalformedOrphans, yi as DEFAULT_RESOURCE_WARN_AFTER_MS, yl as stackInstanceIdOf, yn as planOrphanAdoption, yo as parseIamRoleArn, yr as withCreateTokenLedger, zc as refuseMalformedState, zi as yellow, zl as createAssetRedirectResolver, zn as changedReferenceReason, zo as isStalePlaceholderArnAttribute, zs as malformedOrphanRowsKeptWarning, zt as refuseRefactorMarker } from "./deploy-engine-CilA7v8d.js";
|
|
8
|
+
import { $ as legacyPlanAssetCount, A as getLegacyStateBucketName, B as resolveUseCdkBootstrapAssets, C as getDockerCmd, D as Synthesizer, E as abortInFlightMultipartUploads, F as resolveSkipPrefix, G as MIGRATE_TMP_PREFIX, H as warnDeprecatedNoPrefixCliFlag, I as resolveStateBucketWithDefault, J as refuseFailedLookups, K as findLargeInlineResources, L as resolveStateBucketWithDefaultAndSource, M as resolveApp, N as resolveAutoAssetStorage, O as synthesisStatusMessage, P as resolveCaptureObservedState, Q as createLegacyAssetParameterBinder, R as resolveStateBucketWithSource, S as formatDockerLoginError, T as runDockerStreaming, U as CFN_TEMPLATE_BODY_LIMIT, V as stateBucketExistenceConfirmed, W as CFN_TEMPLATE_URL_LIMIT, X as StageLoadError, Y as AssemblyReader, Z as bindLegacyStackAssetParameters, _ as finchSecretArgvRefusal, a as isLockInfoExpired, b as isDockerClientEnvKey, c as buildDockerImage, d as describeDockerExecFailure, et as predictedAutoCreatedAssetMode, f as describeDockerFailure, g as dockerSpawnEnvWithSensitive, h as redactDockerArgvValues, i as LockManager, it as setChildProcessAwsEnv, j as loadCdkJson, k as getDefaultStateBucketName, l as resolveDockerContextDirectory, m as redactedDockerCause, nt as CdkToolkitBucketMissingError, o as AssetPublisher, p as redactedCause, q as uploadCfnTemplate, r as DagBuilder, rt as processStackMessages, s as WorkGraph, t as DiffCalculator, tt as prepareLegacyStackAssets, v as partitionSensitiveEnv, w as runDockerForeground, x as isMalformedEnvKey, y as warnFinchArgvExposure, z as resolveUpdatePolicy } from "./diff-calculator-Drt5nkqk.js";
|
|
9
|
+
import { $a as getReadOnlyPropertyPaths, $i as secretNamePrintingBag, $r as reachableDivergentParameters, $s as malformedScrubResourceEntriesRefusalMessage, $t as displacedPhysicalIdShown, A as recordedProtectionEvidence, Ac as refuseMalformedOutputs, Ai as isSupersededResourceRecord, Al as renderNestedTemplateTreeDefect, An as findDestructiveChanges, Ao as regionLessSecretName, Ar as replacementNeverSwapped, As as maskedPropertyFingerprintsOf, Ba as localCustomResourceCommand, Bc as refuseMalformedResourcesForExport, Bi as red, Bl as buildAssetRedirectMap, Bn as differingRemedy, Bo as cfnRefValueFromPhysicalId, Br as removeProtectionTypeList, Bs as malformedOrphanRecordsWarning, Bt as sameMove, C as pendingMovesOutOf, Ca as ProviderRegistry, Cc as repairMalformedOrphansForReadOnly, Cl as isSecretValuedAttribute, Cn as NOECHO_MAC_KEY_ALIAS, Co as AWS_CREDENTIAL_ENV_KEYS, Cr as seedsDeleteFirstGuard, Cu as describeFileReadFailure, D as findServiceTokenRefusals, Da as CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID, Dc as malformedOutputsRefusalMessage, Di as findNestedStackTypeChanges, Dl as findNestedTemplateTreeDefect, Dn as noEchoMacVerdict, Do as classifyRecordedSecretRegion, Dr as planFailedOps, Ds as getTopLevelKeysHoldingUnreadableCreateOnly, Du as resolveAssemblyPath, E as deferredServiceTokenWarning, Ea as wouldReturnToSdkProvider, Ec as malformedLocalOutputsWarning, Ei as withPreviousPolicies, En as noEchoMacParametersOf, Eo as envCredentialsAreAssumedRole, Er as isReplacementOrphan, Es as getSettledWriteOnlyPropertyPaths, Eu as renderAssemblyPathEscape, F as readProtection, Fa as withPrintingSecrets, Fc as malformedRenderedContainersWarning, Fi as withoutSuperseded, Fl as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, Fn as rollbackOrphanIds, Fs as declaresNoEcho, Ft as readRefactorMarker, Ga as CloudControlProvider, Gc as withheldAccountClause, Gi as noEchoParameterNamesOf, Gn as propertiesChangedReason, Gr as retiredAfterRollback, Gs as refuseMalformedOrphansForOrphan, H as readStreamPolicy, Ha as setLocalCustomResourceRuntimeEnabled, Hc as repairMalformedResourcesForReadOnly, Hi as noEchoAttributeNamesOf, Hl as createLazyAssetModeContext, Hn as looselyEqual, Ho as refStateLookupFromResource, Hr as nameGenerationCarriedFrom, Hs as previewableOrphanRecords, Ht as macWriteOnlyKeys, Ia as NO_LOCAL_CUSTOM_RESOURCES_FLAG, Ic as malformedResourcesWarning, Ii as bold, In as withMovedTo, Io as coerceParameterTypedValue, Is as maskedPropertyFingerprint, It as readRefactorMarkerOnce, Ja as UNSPECIFIED_SKIP_REASON, Jc as displayLogicalId, Ji as completedReplayEntries, Jn as siblingOwnedRevertDesired, Jo as keepHeldTokenProvenance, Jr as withNameGenerationReached, Js as unreadableOrphanRecords, Kc as STATE_RESOURCES_MALFORMED, Ki as withAttemptedItemsMasked, Kl as loadPublishableAssetManifest, Kn as proposeRenames, Kr as retiredNameGenerationsAfter, Ks as repairMalformedOrphanRecordsForReadOnly, Lc as malformedStateRefusalMessage, Li as cyan, Ll as decodeListingKey, Ln as changedReferenceInDiff, Lo as isUnboundTemplateParameter, Ls as deployRefusesOrphanRowsReason, Lt as refactorMarkerMovesOf, M as PROTECTION_PROPERTY_BY_TYPE, Ma as readsNoEchoDeleteValues, Mc as repairMalformedOutputsForReadOnly, Mi as supersededHeldByOtherTypeWarning, Mn as findRefactorHints, Mr as computeImplicitDeleteEdges, Ms as parameterInputsFor, N as isProtectionValueActive, Na as isCustomResourceType$1, Nc as STATE_REGION_DIVERGED, Ni as supersededHolderOf, Nn as hintSidesOf, Nr as attemptUsesCompletedCreate, Ns as maskedInputProof, Nt as keptForRetainedRecord, O as serviceTokenBlockingReason, Oa as applyCustomResourceResponseExpiration, Oc as malformedOutputsWarning, Oi as deleteSupersededEntry, Ol as isAbsoluteAssetPath, On as noEchoValueMacsOf, Oo as classifyReplaySecretRegion, Or as recheckFailedPlan, Os as tryGetTopLevelWriteOnlyProperties, P as perType, Pc as refuseDivergentRecordRegionForDestroy, Pi as supersededResourcesOf, Pl as ssmResolvedValueType, Pn as movedToHint, Pr as readsRegeneratingSecret, Pt as recordRetainedForReadoption, Qc as findHandledUnwrittenCreateOnly, Qi as orphanRecordsPrintingBag, Qo as recordedReferenceRegions, Qr as namesAnyDeclaredParameter, Qs as malformedResourceEntriesWarning, Qt as displacedOpClause, Ra as customResourcesFailedWithoutApp, Rc as refuseMalformedResourcesForDeploy, Ri as gray, Rn as changedReferencePath, Ro as parameterTypeMayLoseSecretIdentity, Rs as isReadableOrphanRecord, Rt as refactorMarkerRefusalMessage, S as hasPendingMovesOut, Sa as CC_BROKEN_REASON, Sc as refuseMalformedOrphansForDestroy, Si as withStackRecords, Sl as withStackInstanceIdWithheld, Sn as crossStackReadsForPartialSave, So as sendableAssumeRoleCommand, Sr as planRollback, T as refusePendingMovesOut, Ta as isCustomResource, Tc as malformedExportSourceWarning, Ti as resolveReplacementOldType, Tn as noEchoMacBinding, To as callerEnvCredentials, Tr as isJournaledOrphan, Ua as withCustomResourceStack, Uc as JSON_LISTING_HOLE_VALUE, Ui as noEchoComparisonForTemplate, Un as mappingPairs, Uo as lacksRecordedRefArn, Ur as nameGenerationHighWaterOf, Us as refuseMalformedOrphanRecords, Ut as readsOnlyNoEchoParameters, Vc as refuseMalformedState, Vi as yellow, Vl as createAssetRedirectResolver, Vn as isPairableType, Vo as isStalePlaceholderArnAttribute, Vr as orphanNeedsIdentity, Vs as malformedOrphanRowsKeptWarning, Vt as updateRefactorMarker, Wc as accountArgs, Wi as noEchoExactEchoLeavesOf, Wn as parseMappingFile, Wo as lacksRecordedTableArn, Wr as nameScopeOf, Ws as refuseMalformedOrphanRecordsForDestroy, Wt as formatResourceLine, Xa as deleteLeftInPlace, Xc as hasReadableResources, Xi as maskEventTextWithBoundBags, Xl as AssetManifestLoader, Xo as recordedOutputReferenceRegions, Xr as inheritProducerRegions, Xs as malformedLocalResourceEntriesWarning, Xt as resolvePendingCloudControlRequests, Ya as deleteIndeterminateGuards, Yc as hasReadableOutputs, Yi as journaledOrphanPrintingBag, Yl as rewriteTemplateAssetReferences, Yn as stripSiblingOwnedParentMembers, Ys as isReadableResourceEntry, Yt as pendingRequestCount, Za as deleteSkipReason, Zc as findActionableSdkUnwired, Zi as namingSecretsWithRecordedNoEcho, Zl as getDockerImageBySourceHash, Zr as computeParameterTaint, Zs as malformedLocalResourcesWarning, Zt as NESTED_PENDING_PARENT_REASON, _ as conditionFingerprint, _c as UNREADABLE_ORPHANS_CONTAINER_ROW, _i as DEFAULT_RESOURCE_WARN_AFTER_MS, _l as applyCrossPrefixScan, _n as makeForeignHolderScan, _o as assertFlagRoleArn, _s as MULTI_REGION_RECREATE_BLOCKED_TYPES, _u as hasOwnKey, a as scanActiveConsumers, aa as extractDeploymentEventError, ac as refuseMalformedResourceEntriesForImportSave, ai as secretBearingStateKeyWarning, al as hasNoCloudControlHandlers, an as revertedNestedRowIds, ao as poisonRenderedSpellingsCollidingIn, ar as recordAfterRollbackUpdate, as as carriesDynamicReference, au as buildDenyExternalAccessPolicy, b as readRecordedConditionVerdicts, bc as malformedOrphansWarning, bi as destroyStackRecordsView, bl as isNotImplemented, bn as DeploymentEventsReader, bo as isIamRoleArn, br as withCreateTokenLedger, bs as renderStatefulReason, bu as ownValue, c as nestedSsmNameDeferredNote, ca as ccRoutedFinalSnapshotError, cc as unreadableResourceEntries, ci as exportNameNoEchoParameters, cl as S3StateBackend, cn as getCurrentNestedStackContext, cr as calculateResourceDrift, cu as getBootstrapMarkerKey, d as slashedSsmNameHealAdoptedNote, da as isFinalSnapshotError, di as noEchoParameterValueSeed, dl as readOnlyStateVersionOf, dn as dropFailedCommands, do as secretSegmentsOfState, dr as undeclaredEmptyObservedKeys, du as validateAssetBucketName, ea as secretNamePrintingBags, ec as refuseMalformedResourceAttributesForOrphan, ei as resourcesNamingDeclaredParameter, el as unwrittenCreateOnlyReplacement, en as dropSettledNestedJournals, eo as isWaitAbandonedError, er as canonicalizeIpProtocolValue, f as slashedSsmNameHealNote, fa as refusesFinalSnapshot, fc as refuseMalformedResourcePropertiesForDestroy, fi as collectDeclaredOutputNames, fl as hasReasonlessBaselineRefusal, fn as dropFailedHint, fo as withSecretPhysicalIdsMaskedInState, fr as verbatimEchoDriftKeys, fu as validateContainerRepoName, g as makeCanonicalizePropertiesFn, gc as repairMalformedResourcePropertiesForReadOnly, gi as DEFAULT_RESOURCE_TIMEOUT_MS, gl as CrossPrefixScanCache, gn as sameJournaledOrphans, go as applyRoleArnIfSet, gr as replacementCreateRoutesToCloudControl, gs as shownType, gu as defineOwnKey, h as inheritedProvenanceForChildDiff, ha as buildFinalSnapshotIdentifier, hc as refuseMalformedResourcePropertiesForOrphan, hi as bindingSkippedOutputs, hl as CrossPrefixReadError, hn as loadJournaledOrphans, ho as refuseUnreadableCdkCrossAccountRefs, hr as findUpdatePolicyReplacementRefusals, i as mergeNoChangeOutputs, ia as storedSecretNameNeedles, ic as refuseMalformedResourceEntriesForImport, ii as secretBearing, il as NO_CC_HANDLERS_REASON, io as isAlwaysLiveAttribute, ir as buildReadCurrentStateContext, is as isNamelessDynamicReferenceError, iu as ensureAssetStorage, j as recordedProtectionNote, ja as TemplateNoEchoReresolver, jc as refuseMalformedOutputsForDestroy, ji as supersededAfterRollback, jl as templateIdentity, jn as formatDestructiveChange, jr as IMPLICIT_DELETE_DEPENDENCIES, k as diffSecurity, ka as customResourceResponseExpirationWarning, ki as holdsSupersededResources, kl as listNestedTemplateRows, kn as constructPathOf$1, ko as producerRegionsFromState, kr as recordUnderIdIsNotOwn, ku as resolveBucketRegion, l as nestedSsmNameRowNote, la as ccRoutedInstanceTakesNoSnapshot, lc as malformedDriftResourcePropertiesWarning, li as exportNameSecretExposure, ll as splitImportedOps, ln as withNestedStackContext, lr as equalModuloMarkedMask, ls as INTRINSIC_KEYS, lu as parseBootstrapMarker, m as crossStackOutputProvenanceSource, ma as createPreDeleteFinalSnapshot, mc as refuseMalformedResourcePropertiesForExport, mi as isExportAliasCollision, ml as rebuildClientForBucketRegion, mn as journaledOrphanLines, mo as producerLookupOver, mr as updatePartialReason, ms as findReplacedReadersOfRecreateTargets, n as isSecretBearingReferenceString, na as secretNamedRecordNeedles, nc as refuseMalformedResourceEntriesForDeploy, ni as displayTextOrWithheld, nn as nestedChildStackName$1, no as IntrinsicFunctionResolver, nr as replayRollback, ns as isImpossibleEmptyStoredAttribute, o as inRunStackKey, oa as ATOMIC_FINAL_SNAPSHOT_TYPES, oc as refuseMalformedResourceEntriesForOrphan, oi as secretSafeKeyDisplay, ol as PROPERTY_COVERAGE_BY_TYPE, on as withNestedRevertRun, oo as stackIdTailOf, or as settleUnsettledPrevious, os as keepsSecretReferenceToken, ou as assertAssetBucketRegion, p as slashedSsmNameHealPendingNote, pa as unsupportedFinalSnapshotError, pc as refuseMalformedResourcePropertiesForDrift, pi as collectPublishedOutputNames, pl as hasUnverifiableParameterRefusal, pn as isHandledOrphan, po as resolveDynamicReferences, pr as updatePartialMessage, pu as BOOTSTRAP_MARKER_PREFIX, q as streamPolicyMatchesDeclared, qa as RollbackInlinePolicyWriters, qc as UNREADABLE_RESOURCES_MAP_ROW, qi as createReadOnlyAttributeHealerFactory, qn as referencedLogicalIds, qr as retiredNameGenerationsLeaving, qs as unpreviewableOrphanRecords, r as keptWholeReasonText, ra as stateSecretNameNeedles, rc as refuseMalformedResourceEntriesForDestroy, ri as exportAliasCollisionScrubWarning, rn as recordDisplacedSkips, ro as isSelectOutOfBounds, rr as DELETED_RESOURCE_REMEDY, rs as carriesFetchableDynamicReference, ru as AssetModeResolver, s as checkNestedSsmNames, sa as PRE_DELETE_SNAPSHOT_TYPES, sc as repairMalformedResourceEntriesForReadOnly, si as carriedExportAliasExposure, sl as TemplateParser, sn as collectNestedChildUnaddressed, sr as withUnprovenUnsettled, ss as withSharedDrainBudget, su as isCrossRegionRedirect, t as DeployEngine, tc as refuseMalformedResourceEntries, ti as WITHHELD_NAME_DISPLAY, tr as replayFailedOperations, ts as getAccountInfo, u as healSlashedSsmParameterNames, ua as effectiveDeletionPolicy, uc as malformedResourcePropertiesWarning, ui as isWholeDynamicReferenceValue, un as deleteJournaledOrphans, uo as secretPhysicalIdSegment, ur as equalModuloMask, uu as readBootstrapMarkerBody, v as conditionInputsFrom, vc as hasReadableOrphans, vi as maskingRetryLogger, vl as crossPrefixDeniedWarning, vn as makeSiblingClaimReader, vo as assertSendableRoleArn, vr as ledgerForStack, vs as isStatefulRecreateTargetForReplace, vu as hasPlainPrototype, w as pendingMovesRefusalMessage, wa as ccBrokenReason, wc as malformedExportNamesWarning, wi as snapshotSegmentSurvivors, wl as isSensitiveAttributeName, wn as createNoEchoValueMacs, wo as applyCallerIdentityCredentials, wr as demoteSupersededOrphans, wu as displayAssemblyPath, x as childTemplateLoader, xc as refuseMalformedOrphans, xl as stackInstanceIdOf, xn as DeploymentEventsStore, xo as parseIamRoleArn, y as parentSuppliedValues, yc as malformedOrphansRefusalMessage, yl as isAccessDenied, yn as planOrphanAdoption, yo as explicitRoleArnOrThrow, ys as isStatefulRecreateTargetSync, yu as nullPrototypeRecord, za as customResourcesRunWithoutApp, zc as refuseMalformedResourcesForDestroy, zi as green, zn as changedReferenceReason, zo as AWS_NO_VALUE, zr as segmentCleanupOptions, zs as malformedOrphanRecordsRefusalMessage, zt as refuseRefactorMarker } from "./deploy-engine-DwpkRhxS.js";
|
|
10
10
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix, t as PARTITION_TABLE } from "./aws-partition-DA0r2sr-.js";
|
|
11
|
-
import { A as withRetry, C as templateResourceTypes, G as describeJsonParseFailure, H as renderPhaseTimings, R as PhaseClock, S as prefetchCreateOnlyPropertyPaths, T as describeTypeWithThrottleRetry, U as timePhase, Y as utf8ByteLength, b as getCreateOnlyPropertyPaths, c as setResolvedResourceTimeouts, q as parseFailureDebugDetail } from "./ec2-termination-protection-
|
|
12
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
13
|
-
import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-
|
|
14
|
-
import { An as recordNoEchoAttributeValues, Bt as identityKeyFor, D as recordedNoEchoValuesOf, Fn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Ft as keepTemplateLiteralLeaves, Ln as isSingleDynamicReferenceToken, Lt as spelledKeysOf, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, On as recordMaskOnlyValue, Ot as scrubResourceRecord, Pt as isUncertifiedBaselineMaskPosition, Rt as pathCrossesDottedKey, T as readsNoEchoSource, Tn as provenPublicValue, W as redactForState, Yt as inheritNestedStackParameterAssociations, _t as maskSecretsInText, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, ct as recordLogOnlyParameterValue, dt as shareLogOnlyValues, et as carryLogOnlyValues, f as isMarkedCoordinate, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gt as maskSecretsInError, h as maskWholeValue, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, jn as recordNoEchoParameterFreshValue, k as valueAtCoordinate, kn as recordMaskOnlyValuesIn, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, sn as physicalNameCopiesOf, st as printingCorpusOf, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, y as noEchoLeavesOf } from "./replacement-rules-
|
|
15
|
-
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-
|
|
16
|
-
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-
|
|
11
|
+
import { A as withRetry, C as templateResourceTypes, G as describeJsonParseFailure, H as renderPhaseTimings, R as PhaseClock, S as prefetchCreateOnlyPropertyPaths, T as describeTypeWithThrottleRetry, U as timePhase, Y as utf8ByteLength, b as getCreateOnlyPropertyPaths, c as setResolvedResourceTimeouts, q as parseFailureDebugDetail } from "./ec2-termination-protection-CEAH5-4N.js";
|
|
12
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-Lk8hXI9d.js";
|
|
13
|
+
import { Ct as isReadableBag, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, bt as hasReadableExportSet, gt as slowCcOperationTimeoutMs, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-B3fWZ4t9.js";
|
|
14
|
+
import { An as recordNoEchoAttributeValues, Bt as identityKeyFor, D as recordedNoEchoValuesOf, Fn as WHOLE_DYNAMIC_REFERENCE_PATTERN, Ft as keepTemplateLiteralLeaves, Ln as isSingleDynamicReferenceToken, Lt as spelledKeysOf, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, On as recordMaskOnlyValue, Ot as scrubResourceRecord, Pt as isUncertifiedBaselineMaskPosition, Rt as pathCrossesDottedKey, T as readsNoEchoSource, Tn as provenPublicValue, W as redactForState, Yt as inheritNestedStackParameterAssociations, _t as maskSecretsInText, at as literalSplitDelimitersOf, b as noEchoOutputsComparison, ct as recordLogOnlyParameterValue, dt as shareLogOnlyValues, et as carryLogOnlyValues, f as isMarkedCoordinate, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gt as maskSecretsInError, h as maskWholeValue, it as hasMaskableValues, j as liveMatchesUnresolvedTokenFrame, jn as recordNoEchoParameterFreshValue, k as valueAtCoordinate, kn as recordMaskOnlyValuesIn, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nt as createUnionSecretMasker, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, sn as physicalNameCopiesOf, st as printingCorpusOf, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, y as noEchoLeavesOf } from "./replacement-rules-DOyuWYSl.js";
|
|
15
|
+
import { S as unsettledPropertiesOf, T as withoutUnsettledProperties, b as unsettledItemsOf, w as withUnsettledProperties, y as unsettledItemsField } from "./restore-source-guard-YKb1WUF2.js";
|
|
16
|
+
import { a as parseEcrRegistryHost, i as looksLikeEcrHostWithForeignSuffix, n as hasEcrRegistryHostLabels, t as ecrRegistryHostPattern } from "./ecr-uri-CsP8Bfa_.js";
|
|
17
17
|
import { t as cdkdCacheHome } from "./cache-home-BVYKj3de.js";
|
|
18
18
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
19
19
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, NotFound, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutBucketVersioningCommand, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -1541,7 +1541,7 @@ function collectCrossStackRefs(node, onRef, unconditional) {
|
|
|
1541
1541
|
// src/provisioning/register-providers.ts
|
|
1542
1542
|
let providerClasses;
|
|
1543
1543
|
function loadProviderClasses() {
|
|
1544
|
-
providerClasses ??= import("./provider-classes-
|
|
1544
|
+
providerClasses ??= import("./provider-classes-CwIe3PGY.js");
|
|
1545
1545
|
return providerClasses;
|
|
1546
1546
|
}
|
|
1547
1547
|
function registerAllProviders(registry, classes) {
|
|
@@ -10210,17 +10210,6 @@ function canonicalizeIpProtocols(baseline, aws, resourceType) {
|
|
|
10210
10210
|
};
|
|
10211
10211
|
}
|
|
10212
10212
|
|
|
10213
|
-
// src/analyzer/drift-verbatim-paths.ts
|
|
10214
|
-
const VERBATIM_ECHO_DRIFT_KEYS = {
|
|
10215
|
-
"AWS::IAM::Role": ["AssumeRolePolicyDocument"],
|
|
10216
|
-
"AWS::IAM::Policy": ["PolicyDocument"],
|
|
10217
|
-
"AWS::IAM::ManagedPolicy": ["PolicyDocument"]
|
|
10218
|
-
};
|
|
10219
|
-
const NONE = [];
|
|
10220
|
-
function verbatimEchoDriftKeys(resourceType) {
|
|
10221
|
-
return Object.hasOwn(VERBATIM_ECHO_DRIFT_KEYS, resourceType) ? VERBATIM_ECHO_DRIFT_KEYS[resourceType] : NONE;
|
|
10222
|
-
}
|
|
10223
|
-
|
|
10224
10213
|
// src/provisioning/policy-document-content.ts
|
|
10225
10214
|
const MASK = "***";
|
|
10226
10215
|
const PERMANENT_CDKD_CODES = /* @__PURE__ */ new Set(["ROLLBACK_SECRET_TOKEN_SCAN_MISMATCH"]);
|
|
@@ -10507,6 +10496,642 @@ function lambdaPermissionMatchesDeclared(read, declared) {
|
|
|
10507
10496
|
});
|
|
10508
10497
|
}
|
|
10509
10498
|
|
|
10499
|
+
// src/provisioning/providers/s3-bucket/shared.ts
|
|
10500
|
+
function manualBucketDeletionClause(bucketName, maskSecrets, journaled) {
|
|
10501
|
+
const command = renderDisableCommand({
|
|
10502
|
+
before: "aws s3api delete-bucket --bucket",
|
|
10503
|
+
identifier: bucketName,
|
|
10504
|
+
maskSecrets
|
|
10505
|
+
});
|
|
10506
|
+
const lead = journaled ? `Outside a rollback's re-create, the failed deploy's rollback journal records the bucket for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}; otherwise delete it yourself before the next deploy` : "Manual deletion may be required before the next deploy";
|
|
10507
|
+
return command ? `${lead}: ${command}` : `${lead}, via the console: the bucket name cannot be reproduced safely on a command line, so any command shown here could act on a different bucket or run part of the name as shell.`;
|
|
10508
|
+
}
|
|
10509
|
+
function configItemId(item) {
|
|
10510
|
+
if (!isPlainObject(item)) return void 0;
|
|
10511
|
+
const id = item["Id"];
|
|
10512
|
+
if (typeof id === "string") return id;
|
|
10513
|
+
if (typeof id === "number" && Number.isFinite(id)) return String(id);
|
|
10514
|
+
}
|
|
10515
|
+
function declaresBucketObjectLock(properties) {
|
|
10516
|
+
return properties["ObjectLockEnabled"] === true || properties["ObjectLockEnabled"] === "true";
|
|
10517
|
+
}
|
|
10518
|
+
function declaresNestedObjectLock(properties) {
|
|
10519
|
+
return properties["ObjectLockConfiguration"]?.["ObjectLockEnabled"] === "Enabled";
|
|
10520
|
+
}
|
|
10521
|
+
function caughtErrorName(error) {
|
|
10522
|
+
const name = error?.name;
|
|
10523
|
+
return typeof name === "string" && name !== "" ? name : "unknown error";
|
|
10524
|
+
}
|
|
10525
|
+
function isPlainObject(value) {
|
|
10526
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
10527
|
+
}
|
|
10528
|
+
function describeValue(value, maskSecrets = (text) => text) {
|
|
10529
|
+
if (value === null) return "null";
|
|
10530
|
+
if (Array.isArray(value)) return "an array";
|
|
10531
|
+
if (typeof value === "string") return `a string ${displaySafe(JSON.stringify(maskDeep(value, maskSecrets)))}`;
|
|
10532
|
+
if (isPlainObject(value)) return `an object with keys [${Object.keys(value).map((key) => displaySafe(maskSecrets(key))).join(", ")}]`;
|
|
10533
|
+
return `a ${typeof value} (${maskSecrets(String(value))})`;
|
|
10534
|
+
}
|
|
10535
|
+
function coerceCfnNumber(value) {
|
|
10536
|
+
if (typeof value !== "number" && typeof value !== "string") return void 0;
|
|
10537
|
+
if (value === "") return void 0;
|
|
10538
|
+
const n = Number(value);
|
|
10539
|
+
return Number.isFinite(n) ? n : void 0;
|
|
10540
|
+
}
|
|
10541
|
+
function mergeLegacySingular(plural, singular, onCollision) {
|
|
10542
|
+
const out = (Array.isArray(plural) ? plural : []).filter(isPlainObject);
|
|
10543
|
+
if (!isPlainObject(singular)) return out;
|
|
10544
|
+
const sc = singular["StorageClass"];
|
|
10545
|
+
if (typeof sc === "string" && out.some((e) => e["StorageClass"] === sc)) {
|
|
10546
|
+
onCollision(sc);
|
|
10547
|
+
return out;
|
|
10548
|
+
}
|
|
10549
|
+
return [...out, singular];
|
|
10550
|
+
}
|
|
10551
|
+
function shownLifecycleRuleId(id) {
|
|
10552
|
+
return id === void 0 || id === null || id === "" ? "(no Id)" : displayIdent(id);
|
|
10553
|
+
}
|
|
10554
|
+
|
|
10555
|
+
// src/provisioning/providers/s3-bucket/effective-items.ts
|
|
10556
|
+
function effectiveS3BucketDestination(declared, sentFormat) {
|
|
10557
|
+
if (!isPlainObject(declared)) return declared;
|
|
10558
|
+
if (!declared["BucketArn"]) return declared;
|
|
10559
|
+
const out = { BucketArn: declared["BucketArn"] };
|
|
10560
|
+
if (declared["BucketAccountId"] !== void 0) out["BucketAccountId"] = declared["BucketAccountId"];
|
|
10561
|
+
out["Format"] = sentFormat ?? declaredOrDefault(declared, "Format", "CSV");
|
|
10562
|
+
if (declared["Prefix"] !== void 0) out["Prefix"] = declared["Prefix"];
|
|
10563
|
+
return sameScalarRecord(out, declared) ? declared : out;
|
|
10564
|
+
}
|
|
10565
|
+
function declaredOrDefault(container, key, fallback) {
|
|
10566
|
+
return key in container ? container[key] : fallback;
|
|
10567
|
+
}
|
|
10568
|
+
const INVENTORY_DESTINATION_DEFAULT_FORMAT = "CSV";
|
|
10569
|
+
const INVENTORY_DEFAULT_ENABLED = true;
|
|
10570
|
+
const INVENTORY_DEFAULT_INCLUDED_OBJECT_VERSIONS = "All";
|
|
10571
|
+
const ANALYTICS_DEFAULT_OUTPUT_SCHEMA_VERSION = "V_1";
|
|
10572
|
+
function sameScalarRecord(a, b) {
|
|
10573
|
+
const aKeys = Object.keys(a);
|
|
10574
|
+
if (aKeys.length !== Object.keys(b).length) return false;
|
|
10575
|
+
return aKeys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && Object.is(a[k], b[k]));
|
|
10576
|
+
}
|
|
10577
|
+
const INVENTORY_DEFAULT_SCHEDULE_FREQUENCY = "Weekly";
|
|
10578
|
+
function effectiveInventoryItem(item, sent) {
|
|
10579
|
+
const patch = {};
|
|
10580
|
+
const declaredEnabled = item["Enabled"];
|
|
10581
|
+
if (declaredEnabled === void 0) patch["Enabled"] = true;
|
|
10582
|
+
else {
|
|
10583
|
+
const coercedEnabled = coerceCfnBoolean(declaredEnabled);
|
|
10584
|
+
if (coercedEnabled !== void 0 && !Object.is(declaredEnabled, coercedEnabled)) patch["Enabled"] = coercedEnabled;
|
|
10585
|
+
}
|
|
10586
|
+
if (item["IncludedObjectVersions"] === void 0) patch["IncludedObjectVersions"] = "All";
|
|
10587
|
+
const declaredSchedule = item["Schedule"];
|
|
10588
|
+
const declaresScheduleFrequency = item["ScheduleFrequency"] !== void 0;
|
|
10589
|
+
const scheduleFrequencyUsable = declaresScheduleFrequency && configStringRefusal(item, "ScheduleFrequency", "Weekly", "AWS::S3::Bucket InventoryConfigurations[]") === void 0;
|
|
10590
|
+
const scheduleContainerUsable = configStringRefusal(declaredSchedule, "Frequency", INVENTORY_DEFAULT_SCHEDULE_FREQUENCY, "AWS::S3::Bucket InventoryConfigurations[].Schedule") === void 0;
|
|
10591
|
+
const canFoldSchedule = sent?.frequency !== void 0 || scheduleFrequencyUsable || !declaresScheduleFrequency && scheduleContainerUsable;
|
|
10592
|
+
if (canFoldSchedule) {
|
|
10593
|
+
const declaredFrequency = declaresScheduleFrequency ? item["ScheduleFrequency"] : isPlainObject(declaredSchedule) && declaredSchedule["Frequency"] !== void 0 ? declaredSchedule["Frequency"] : INVENTORY_DEFAULT_SCHEDULE_FREQUENCY;
|
|
10594
|
+
const frequency = sent?.frequency ?? declaredFrequency;
|
|
10595
|
+
if (!Object.is(item["ScheduleFrequency"], frequency)) patch["ScheduleFrequency"] = frequency;
|
|
10596
|
+
}
|
|
10597
|
+
const destination = effectiveS3BucketDestination(item["Destination"], sent?.format);
|
|
10598
|
+
if (destination !== item["Destination"]) patch["Destination"] = destination;
|
|
10599
|
+
const dropsSchedule = declaredSchedule !== void 0 && canFoldSchedule;
|
|
10600
|
+
if (!dropsSchedule && Object.keys(patch).length === 0) return item;
|
|
10601
|
+
const out = {
|
|
10602
|
+
...item,
|
|
10603
|
+
...patch
|
|
10604
|
+
};
|
|
10605
|
+
if (dropsSchedule) delete out["Schedule"];
|
|
10606
|
+
return out;
|
|
10607
|
+
}
|
|
10608
|
+
function effectiveAnalyticsItem(item, sent) {
|
|
10609
|
+
const storageClassAnalysis = item["StorageClassAnalysis"];
|
|
10610
|
+
if (!isPlainObject(storageClassAnalysis)) return item;
|
|
10611
|
+
const dataExport = storageClassAnalysis["DataExport"];
|
|
10612
|
+
if (!isPlainObject(dataExport)) return item;
|
|
10613
|
+
const patch = {};
|
|
10614
|
+
const outputSchemaVersion = sent?.outputSchemaVersion ?? declaredOrDefault(dataExport, "OutputSchemaVersion", "V_1");
|
|
10615
|
+
if (!Object.is(dataExport["OutputSchemaVersion"], outputSchemaVersion)) patch["OutputSchemaVersion"] = outputSchemaVersion;
|
|
10616
|
+
const destination = effectiveS3BucketDestination(dataExport["Destination"], sent?.format);
|
|
10617
|
+
if (destination !== dataExport["Destination"]) patch["Destination"] = destination;
|
|
10618
|
+
if (Object.keys(patch).length === 0) return item;
|
|
10619
|
+
return {
|
|
10620
|
+
...item,
|
|
10621
|
+
StorageClassAnalysis: {
|
|
10622
|
+
...storageClassAnalysis,
|
|
10623
|
+
DataExport: {
|
|
10624
|
+
...dataExport,
|
|
10625
|
+
...patch
|
|
10626
|
+
}
|
|
10627
|
+
}
|
|
10628
|
+
};
|
|
10629
|
+
}
|
|
10630
|
+
const INTELLIGENT_TIERING_DEFAULT_STATUS = "Enabled";
|
|
10631
|
+
function effectiveIntelligentTieringItem(item) {
|
|
10632
|
+
if (item["Status"] !== void 0) return item;
|
|
10633
|
+
return {
|
|
10634
|
+
...item,
|
|
10635
|
+
Status: INTELLIGENT_TIERING_DEFAULT_STATUS
|
|
10636
|
+
};
|
|
10637
|
+
}
|
|
10638
|
+
function foldToleratedAliases(bag, aliases) {
|
|
10639
|
+
let out;
|
|
10640
|
+
for (const [emitted, tolerated] of aliases) {
|
|
10641
|
+
if (bag[tolerated] === void 0) continue;
|
|
10642
|
+
out ??= { ...bag };
|
|
10643
|
+
out[emitted] = bag[emitted] ?? bag[tolerated];
|
|
10644
|
+
delete out[tolerated];
|
|
10645
|
+
}
|
|
10646
|
+
return out ?? bag;
|
|
10647
|
+
}
|
|
10648
|
+
const TRANSITION_DATE_KEY = "TransitionDate";
|
|
10649
|
+
const TRANSITION_ALIASES = [["TransitionInDays", "Days"], ["TransitionDate", "Date"]];
|
|
10650
|
+
const EVENTBRIDGE_CONFIG_PATH = "AWS::S3::Bucket NotificationConfiguration.EventBridgeConfiguration";
|
|
10651
|
+
const EVENTBRIDGE_CONFIG_KEY = "EventBridgeConfiguration";
|
|
10652
|
+
const EVENTBRIDGE_DEFAULT_ENABLED = true;
|
|
10653
|
+
function eventBridgeEnabledOf(eb) {
|
|
10654
|
+
const declared = isPlainObject(eb) ? eb["EventBridgeEnabled"] : void 0;
|
|
10655
|
+
return coerceCfnBoolean(declared) ?? true;
|
|
10656
|
+
}
|
|
10657
|
+
const NOTIFICATION_LIST_KEYS = [
|
|
10658
|
+
"TopicConfigurations",
|
|
10659
|
+
"QueueConfigurations",
|
|
10660
|
+
"LambdaConfigurations"
|
|
10661
|
+
];
|
|
10662
|
+
function dropEmptyNotificationFamilies(config) {
|
|
10663
|
+
let out;
|
|
10664
|
+
for (const listKey of NOTIFICATION_LIST_KEYS) {
|
|
10665
|
+
const list = config[listKey];
|
|
10666
|
+
if (!Array.isArray(list) || list.length > 0) continue;
|
|
10667
|
+
out ??= { ...config };
|
|
10668
|
+
delete out[listKey];
|
|
10669
|
+
}
|
|
10670
|
+
return out ?? config;
|
|
10671
|
+
}
|
|
10672
|
+
function foldNotificationEvents(item) {
|
|
10673
|
+
const events = item["Events"];
|
|
10674
|
+
if (events === void 0) return item;
|
|
10675
|
+
const out = { ...item };
|
|
10676
|
+
if (item["Event"] === void 0) {
|
|
10677
|
+
if (!Array.isArray(events) || events.length !== 1) return item;
|
|
10678
|
+
out["Event"] = events[0];
|
|
10679
|
+
}
|
|
10680
|
+
delete out["Events"];
|
|
10681
|
+
return out;
|
|
10682
|
+
}
|
|
10683
|
+
function effectiveNotificationConfiguration(config) {
|
|
10684
|
+
if (!isPlainObject(config)) return config;
|
|
10685
|
+
let out = config;
|
|
10686
|
+
for (const listKey of NOTIFICATION_LIST_KEYS) out = canonicalizeItemList(out, listKey, foldNotificationEvents);
|
|
10687
|
+
out = dropEmptyNotificationFamilies(out);
|
|
10688
|
+
return foldEventBridgeConfiguration(out);
|
|
10689
|
+
}
|
|
10690
|
+
function foldEventBridgeConfiguration(config) {
|
|
10691
|
+
const eb = config[EVENTBRIDGE_CONFIG_KEY];
|
|
10692
|
+
if (eb === void 0) return config;
|
|
10693
|
+
if (eb !== null && configBooleanRefusal(eb, "EventBridgeEnabled", "AWS::S3::Bucket NotificationConfiguration.EventBridgeConfiguration")) return config;
|
|
10694
|
+
const enabled = eb === null ? false : eventBridgeEnabledOf(eb);
|
|
10695
|
+
const declared = isPlainObject(eb) ? eb["EventBridgeEnabled"] : void 0;
|
|
10696
|
+
if (isPlainObject(eb) && Object.keys(eb).length === 1 && Object.is(declared, enabled)) return config;
|
|
10697
|
+
return {
|
|
10698
|
+
...config,
|
|
10699
|
+
[EVENTBRIDGE_CONFIG_KEY]: { EventBridgeEnabled: enabled }
|
|
10700
|
+
};
|
|
10701
|
+
}
|
|
10702
|
+
|
|
10703
|
+
// src/utils/cfn-timestamp.ts
|
|
10704
|
+
const OFFSETLESS_DATE_TIME = /^\d{4}-\d{2}-\d{2}[Tt ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/;
|
|
10705
|
+
function parseCfnTimestamp(value) {
|
|
10706
|
+
return new Date(OFFSETLESS_DATE_TIME.test(value) ? `${value}Z` : value);
|
|
10707
|
+
}
|
|
10708
|
+
|
|
10709
|
+
// src/provisioning/providers/s3-bucket/lifecycle-fold.ts
|
|
10710
|
+
const LIFECYCLE_RULE_PATH = "AWS::S3::Bucket LifecycleConfiguration.Rules[]";
|
|
10711
|
+
const LIFECYCLE_FILTER_PATH = `${LIFECYCLE_RULE_PATH}.Filter`;
|
|
10712
|
+
const LIFECYCLE_TAG_FILTERS_PATH = `${LIFECYCLE_RULE_PATH}.TagFilters`;
|
|
10713
|
+
const LIFECYCLE_DEFAULT_STATUS = "Enabled";
|
|
10714
|
+
const LIFECYCLE_STATUS_KEY = "Status";
|
|
10715
|
+
function lifecycleRuleScope(rule) {
|
|
10716
|
+
const filter = rule["Filter"];
|
|
10717
|
+
return {
|
|
10718
|
+
prefix: filter?.["Prefix"] ?? rule["Prefix"],
|
|
10719
|
+
tagFilters: filter?.["TagFilters"] ?? rule["TagFilters"],
|
|
10720
|
+
sizeGt: filter?.["ObjectSizeGreaterThan"] ?? rule["ObjectSizeGreaterThan"],
|
|
10721
|
+
sizeLt: filter?.["ObjectSizeLessThan"] ?? rule["ObjectSizeLessThan"]
|
|
10722
|
+
};
|
|
10723
|
+
}
|
|
10724
|
+
function lifecycleRuleIsPlainPrefixOnly(rule) {
|
|
10725
|
+
if (rule["Filter"] != null) return false;
|
|
10726
|
+
const s = lifecycleRuleScope(rule);
|
|
10727
|
+
return s.prefix !== void 0 && (s.tagFilters == null || s.tagFilters.length === 0) && s.sizeGt === void 0 && s.sizeLt === void 0;
|
|
10728
|
+
}
|
|
10729
|
+
function lifecycleUsesFilterForm(rules) {
|
|
10730
|
+
return !rules.every(lifecycleRuleIsPlainPrefixOnly);
|
|
10731
|
+
}
|
|
10732
|
+
const IGNORE_REFUSAL_MESSAGE = () => {};
|
|
10733
|
+
function lifecycleRuleRefused(rule) {
|
|
10734
|
+
const rawFilter = rule["Filter"];
|
|
10735
|
+
if (rawFilter != null && requireConfigObject(rawFilter, "AWS::S3::Bucket LifecycleConfiguration.Rules[].Filter", { onUnusable: IGNORE_REFUSAL_MESSAGE }) === void 0) return true;
|
|
10736
|
+
const rawTagFilters = rawFilter?.["TagFilters"] ?? rule["TagFilters"];
|
|
10737
|
+
if (rawTagFilters != null && requireConfigArray(rawTagFilters, "AWS::S3::Bucket LifecycleConfiguration.Rules[].TagFilters", { onUnusable: IGNORE_REFUSAL_MESSAGE }) === void 0) return true;
|
|
10738
|
+
return configStringRefusal(rule, "Status", LIFECYCLE_DEFAULT_STATUS, LIFECYCLE_RULE_PATH) !== void 0;
|
|
10739
|
+
}
|
|
10740
|
+
function deepSameValue(a, b) {
|
|
10741
|
+
if (Object.is(a, b)) return true;
|
|
10742
|
+
if (Array.isArray(a) || Array.isArray(b)) {
|
|
10743
|
+
if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;
|
|
10744
|
+
return a.every((element, index) => deepSameValue(element, b[index]));
|
|
10745
|
+
}
|
|
10746
|
+
if (isPlainObject(a) && isPlainObject(b)) {
|
|
10747
|
+
const keysA = Object.keys(a);
|
|
10748
|
+
if (keysA.length !== Object.keys(b).length) return false;
|
|
10749
|
+
return keysA.every((key) => Object.hasOwn(b, key) && deepSameValue(a[key], b[key]));
|
|
10750
|
+
}
|
|
10751
|
+
return false;
|
|
10752
|
+
}
|
|
10753
|
+
const TIMEZONE_INDEPENDENT_DATE = /^\d{4}-\d{2}-\d{2}([Tt ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?)?$/;
|
|
10754
|
+
function cfnDateToIso(value) {
|
|
10755
|
+
let parsed;
|
|
10756
|
+
if (typeof value === "string") {
|
|
10757
|
+
if (!TIMEZONE_INDEPENDENT_DATE.test(value)) return void 0;
|
|
10758
|
+
parsed = parseCfnTimestamp(value);
|
|
10759
|
+
} else if (typeof value === "number") parsed = new Date(value);
|
|
10760
|
+
else return;
|
|
10761
|
+
return Number.isNaN(parsed.getTime()) ? void 0 : parsed.toISOString();
|
|
10762
|
+
}
|
|
10763
|
+
const LEGACY_SINGULAR_TRANSITIONS = [["Transitions", "Transition"], ["NoncurrentVersionTransitions", "NoncurrentVersionTransition"]];
|
|
10764
|
+
function foldLegacySingularTransitions(rule) {
|
|
10765
|
+
let out;
|
|
10766
|
+
for (const [pluralKey, singularKey] of LEGACY_SINGULAR_TRANSITIONS) {
|
|
10767
|
+
const singular = rule[singularKey];
|
|
10768
|
+
const hasSingular = isPlainObject(singular);
|
|
10769
|
+
const plural = rule[pluralKey];
|
|
10770
|
+
const needsFilter = Array.isArray(plural) && plural.some((element) => !isPlainObject(element));
|
|
10771
|
+
if (!hasSingular && !needsFilter) continue;
|
|
10772
|
+
let collided = false;
|
|
10773
|
+
const merged = mergeLegacySingular(plural, hasSingular ? singular : void 0, () => {
|
|
10774
|
+
collided = true;
|
|
10775
|
+
});
|
|
10776
|
+
out ??= { ...rule };
|
|
10777
|
+
if (collided) {
|
|
10778
|
+
if (needsFilter) out[pluralKey] = merged;
|
|
10779
|
+
continue;
|
|
10780
|
+
}
|
|
10781
|
+
out[pluralKey] = merged;
|
|
10782
|
+
if (hasSingular) delete out[singularKey];
|
|
10783
|
+
}
|
|
10784
|
+
return out ?? rule;
|
|
10785
|
+
}
|
|
10786
|
+
function foldTransitionDate(item) {
|
|
10787
|
+
const declared = item[TRANSITION_DATE_KEY];
|
|
10788
|
+
if (!declared) return item;
|
|
10789
|
+
const iso = cfnDateToIso(declared);
|
|
10790
|
+
if (iso === void 0 || iso === declared) return item;
|
|
10791
|
+
const out = { ...item };
|
|
10792
|
+
out[TRANSITION_DATE_KEY] = iso;
|
|
10793
|
+
return out;
|
|
10794
|
+
}
|
|
10795
|
+
function dropEmptyTransitionLists(rule) {
|
|
10796
|
+
let out;
|
|
10797
|
+
for (const [pluralKey] of LEGACY_SINGULAR_TRANSITIONS) {
|
|
10798
|
+
const list = rule[pluralKey];
|
|
10799
|
+
if (!Array.isArray(list) || list.length > 0) continue;
|
|
10800
|
+
out ??= { ...rule };
|
|
10801
|
+
delete out[pluralKey];
|
|
10802
|
+
}
|
|
10803
|
+
return out ?? rule;
|
|
10804
|
+
}
|
|
10805
|
+
function foldLifecycleExpiration(rule) {
|
|
10806
|
+
const declaredMarker = rule["ExpiredObjectDeleteMarker"];
|
|
10807
|
+
const ruleLevelMarker = coerceCfnBoolean(declaredMarker);
|
|
10808
|
+
if (declaredMarker !== void 0 && ruleLevelMarker === void 0) return rule;
|
|
10809
|
+
if (rule["ExpirationInDays"] === void 0 && rule["ExpirationDate"] === void 0 && rule["Expiration"] === void 0 && declaredMarker === void 0) return rule;
|
|
10810
|
+
const expiration = rule["ExpirationInDays"] || rule["ExpirationDate"] || rule["Expiration"];
|
|
10811
|
+
let days;
|
|
10812
|
+
let date;
|
|
10813
|
+
let marker;
|
|
10814
|
+
if (typeof expiration === "number") days = expiration;
|
|
10815
|
+
else if (typeof expiration === "string") {
|
|
10816
|
+
const iso = cfnDateToIso(expiration);
|
|
10817
|
+
if (iso === void 0) return rule;
|
|
10818
|
+
date = iso;
|
|
10819
|
+
} else if (isPlainObject(expiration)) {
|
|
10820
|
+
if (expiration["Days"] !== void 0) days = expiration["Days"];
|
|
10821
|
+
if (expiration["Date"]) {
|
|
10822
|
+
const iso = cfnDateToIso(expiration["Date"]);
|
|
10823
|
+
if (iso === void 0) return rule;
|
|
10824
|
+
date = iso;
|
|
10825
|
+
}
|
|
10826
|
+
const nested = expiration["ExpiredObjectDeleteMarker"];
|
|
10827
|
+
if (nested !== void 0) {
|
|
10828
|
+
if (typeof nested !== "boolean") return rule;
|
|
10829
|
+
marker = nested;
|
|
10830
|
+
}
|
|
10831
|
+
} else if (expiration) return rule;
|
|
10832
|
+
if (ruleLevelMarker === true) {
|
|
10833
|
+
if (days !== void 0 || date !== void 0) return rule;
|
|
10834
|
+
days = void 0;
|
|
10835
|
+
date = void 0;
|
|
10836
|
+
marker = true;
|
|
10837
|
+
}
|
|
10838
|
+
const out = { ...rule };
|
|
10839
|
+
delete out["ExpirationInDays"];
|
|
10840
|
+
delete out["ExpirationDate"];
|
|
10841
|
+
delete out["Expiration"];
|
|
10842
|
+
delete out["ExpiredObjectDeleteMarker"];
|
|
10843
|
+
if (days !== void 0) out["ExpirationInDays"] = days;
|
|
10844
|
+
if (date !== void 0) out["ExpirationDate"] = date;
|
|
10845
|
+
if (marker !== void 0) out["ExpiredObjectDeleteMarker"] = marker;
|
|
10846
|
+
return out;
|
|
10847
|
+
}
|
|
10848
|
+
function foldNoncurrentVersionExpiration(rule) {
|
|
10849
|
+
const legacy = rule["NoncurrentVersionExpirationInDays"];
|
|
10850
|
+
if (legacy === void 0) return rule;
|
|
10851
|
+
const declaredObject = rule["NoncurrentVersionExpiration"];
|
|
10852
|
+
if (declaredObject !== void 0 && !isPlainObject(declaredObject)) return rule;
|
|
10853
|
+
const out = { ...rule };
|
|
10854
|
+
delete out["NoncurrentVersionExpirationInDays"];
|
|
10855
|
+
if (isPlainObject(declaredObject)) return out;
|
|
10856
|
+
const days = coerceCfnNumber(legacy);
|
|
10857
|
+
if (days === void 0) return rule;
|
|
10858
|
+
out["NoncurrentVersionExpiration"] = { NoncurrentDays: days };
|
|
10859
|
+
return out;
|
|
10860
|
+
}
|
|
10861
|
+
function foldLifecycleScope(rule, useFilterForm) {
|
|
10862
|
+
const { prefix, tagFilters, sizeGt, sizeLt } = lifecycleRuleScope(rule);
|
|
10863
|
+
const hasTags = tagFilters != null && tagFilters.length > 0;
|
|
10864
|
+
const componentCount = (hasTags ? 1 : 0) + (prefix !== void 0 ? 1 : 0) + (sizeGt !== void 0 ? 1 : 0) + (sizeLt !== void 0 ? 1 : 0);
|
|
10865
|
+
let filter;
|
|
10866
|
+
if (componentCount > 1) {
|
|
10867
|
+
filter = {};
|
|
10868
|
+
if (prefix !== void 0) filter["Prefix"] = prefix;
|
|
10869
|
+
if (hasTags) filter["TagFilters"] = tagFilters;
|
|
10870
|
+
if (sizeGt !== void 0) filter["ObjectSizeGreaterThan"] = sizeGt;
|
|
10871
|
+
if (sizeLt !== void 0) filter["ObjectSizeLessThan"] = sizeLt;
|
|
10872
|
+
} else if (hasTags) filter = { TagFilters: tagFilters };
|
|
10873
|
+
else if (sizeGt !== void 0) filter = { ObjectSizeGreaterThan: sizeGt };
|
|
10874
|
+
else if (sizeLt !== void 0) filter = { ObjectSizeLessThan: sizeLt };
|
|
10875
|
+
else if (useFilterForm) filter = { Prefix: prefix ?? "" };
|
|
10876
|
+
const out = { ...rule };
|
|
10877
|
+
delete out["Filter"];
|
|
10878
|
+
delete out["Prefix"];
|
|
10879
|
+
delete out["TagFilters"];
|
|
10880
|
+
delete out["ObjectSizeGreaterThan"];
|
|
10881
|
+
delete out["ObjectSizeLessThan"];
|
|
10882
|
+
if (filter !== void 0) out["Filter"] = filter;
|
|
10883
|
+
else if (prefix !== void 0) out["Prefix"] = prefix;
|
|
10884
|
+
return out;
|
|
10885
|
+
}
|
|
10886
|
+
function effectiveLifecycleConfiguration(config) {
|
|
10887
|
+
if (!isPlainObject(config)) return config;
|
|
10888
|
+
const rules = config["Rules"];
|
|
10889
|
+
if (!Array.isArray(rules)) return config;
|
|
10890
|
+
const objectRules = rules.filter(isPlainObject);
|
|
10891
|
+
if (objectRules.length !== rules.length || objectRules.length === 0) return config;
|
|
10892
|
+
if (objectRules.some(lifecycleRuleRefused)) return config;
|
|
10893
|
+
const useFilterForm = lifecycleUsesFilterForm(objectRules);
|
|
10894
|
+
return canonicalizeItemList(config, "Rules", (rule) => effectiveLifecycleRule(rule, useFilterForm));
|
|
10895
|
+
}
|
|
10896
|
+
function effectiveLifecycleRule(rule, useFilterForm) {
|
|
10897
|
+
let out = foldLegacySingularTransitions(rule);
|
|
10898
|
+
out = canonicalizeItemList(out, "Transitions", (t) => foldTransitionDate(foldToleratedAliases(t, TRANSITION_ALIASES)));
|
|
10899
|
+
out = dropEmptyTransitionLists(out);
|
|
10900
|
+
out = foldLifecycleExpiration(out);
|
|
10901
|
+
out = foldNoncurrentVersionExpiration(out);
|
|
10902
|
+
out = foldLifecycleScope(out, useFilterForm);
|
|
10903
|
+
if (out["Status"] === void 0) {
|
|
10904
|
+
const withStatus = { ...out };
|
|
10905
|
+
withStatus[LIFECYCLE_STATUS_KEY] = LIFECYCLE_DEFAULT_STATUS;
|
|
10906
|
+
out = withStatus;
|
|
10907
|
+
}
|
|
10908
|
+
return deepSameValue(rule, out) ? rule : out;
|
|
10909
|
+
}
|
|
10910
|
+
function canonicalizeBlock(properties, key, fold) {
|
|
10911
|
+
const folded = fold(properties[key]);
|
|
10912
|
+
return folded === properties[key] ? properties : {
|
|
10913
|
+
...properties,
|
|
10914
|
+
[key]: folded
|
|
10915
|
+
};
|
|
10916
|
+
}
|
|
10917
|
+
function canonicalizeItemList(properties, key, fold) {
|
|
10918
|
+
const list = properties[key];
|
|
10919
|
+
if (!Array.isArray(list)) return properties;
|
|
10920
|
+
let changed = false;
|
|
10921
|
+
const mapped = list.map((element) => {
|
|
10922
|
+
if (!isPlainObject(element)) return element;
|
|
10923
|
+
const next = fold(element);
|
|
10924
|
+
if (next !== element) changed = true;
|
|
10925
|
+
return next;
|
|
10926
|
+
});
|
|
10927
|
+
return changed ? {
|
|
10928
|
+
...properties,
|
|
10929
|
+
[key]: mapped
|
|
10930
|
+
} : properties;
|
|
10931
|
+
}
|
|
10932
|
+
|
|
10933
|
+
// src/provisioning/providers/s3-bucket/lifecycle-baseline.ts
|
|
10934
|
+
const LIFECYCLE_BASELINE_REREAD_DELAYS_MS = [
|
|
10935
|
+
500,
|
|
10936
|
+
1e3,
|
|
10937
|
+
2e3,
|
|
10938
|
+
4e3
|
|
10939
|
+
];
|
|
10940
|
+
const LIFECYCLE_DEFAULT_TRANSITION_MIN_SIZE = "all_storage_classes_128K";
|
|
10941
|
+
const TDMOS_KEY = "TransitionDefaultMinimumObjectSize";
|
|
10942
|
+
const lifecycleWrites = /* @__PURE__ */ new WeakMap();
|
|
10943
|
+
function recordLifecycleWrite(provider, bucket, write) {
|
|
10944
|
+
let writes = lifecycleWrites.get(provider.s3Client);
|
|
10945
|
+
if (writes === void 0) {
|
|
10946
|
+
writes = /* @__PURE__ */ new Map();
|
|
10947
|
+
lifecycleWrites.set(provider.s3Client, writes);
|
|
10948
|
+
}
|
|
10949
|
+
writes.set(bucket, {
|
|
10950
|
+
write,
|
|
10951
|
+
op: provider
|
|
10952
|
+
});
|
|
10953
|
+
}
|
|
10954
|
+
function takeLifecycleWrite(client, bucket) {
|
|
10955
|
+
const writes = lifecycleWrites.get(client);
|
|
10956
|
+
const noted = writes?.get(bucket);
|
|
10957
|
+
writes?.delete(bucket);
|
|
10958
|
+
return noted?.write;
|
|
10959
|
+
}
|
|
10960
|
+
function clearLifecycleWritesOf(provider) {
|
|
10961
|
+
const writes = lifecycleWrites.get(provider.s3Client);
|
|
10962
|
+
if (writes === void 0) return;
|
|
10963
|
+
for (const [bucket, noted] of writes) if (noted.op === provider) writes.delete(bucket);
|
|
10964
|
+
}
|
|
10965
|
+
function declaredLifecycle(properties) {
|
|
10966
|
+
if (!isPlainObject(properties)) return void 0;
|
|
10967
|
+
const config = properties["LifecycleConfiguration"];
|
|
10968
|
+
if (config == null) return { kind: "absent" };
|
|
10969
|
+
if (!isPlainObject(config)) return void 0;
|
|
10970
|
+
const rules = config["Rules"];
|
|
10971
|
+
if (rules == null || Array.isArray(rules) && rules.length === 0) return { kind: "absent" };
|
|
10972
|
+
if (!Array.isArray(rules) || !rules.every(isPlainObject)) return void 0;
|
|
10973
|
+
if (rules.some(lifecycleRuleRefused)) return void 0;
|
|
10974
|
+
const expected = readbackShape(effectiveLifecycleConfiguration(config));
|
|
10975
|
+
return expected === void 0 ? void 0 : {
|
|
10976
|
+
kind: "present",
|
|
10977
|
+
expected
|
|
10978
|
+
};
|
|
10979
|
+
}
|
|
10980
|
+
function lifecycleSettleTarget(write, properties, onUnsettled) {
|
|
10981
|
+
if (write === "delete") return {
|
|
10982
|
+
kind: "absent",
|
|
10983
|
+
onUnsettled
|
|
10984
|
+
};
|
|
10985
|
+
if (write !== "put" || properties === void 0 || Object.keys(properties).length === 0) return;
|
|
10986
|
+
const declared = declaredLifecycle(properties);
|
|
10987
|
+
return declared?.kind === "present" ? {
|
|
10988
|
+
...declared,
|
|
10989
|
+
onUnsettled
|
|
10990
|
+
} : void 0;
|
|
10991
|
+
}
|
|
10992
|
+
const ISO_DATE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
10993
|
+
const RULE_KEYS = /* @__PURE__ */ new Set([
|
|
10994
|
+
"Id",
|
|
10995
|
+
"Status",
|
|
10996
|
+
"Prefix",
|
|
10997
|
+
"ExpirationInDays",
|
|
10998
|
+
"ExpirationDate",
|
|
10999
|
+
"ExpiredObjectDeleteMarker",
|
|
11000
|
+
"Transitions",
|
|
11001
|
+
"NoncurrentVersionExpiration",
|
|
11002
|
+
"NoncurrentVersionTransitions",
|
|
11003
|
+
"AbortIncompleteMultipartUpload",
|
|
11004
|
+
"Filter"
|
|
11005
|
+
]);
|
|
11006
|
+
var NotReadable = class extends Error {};
|
|
11007
|
+
function num(value) {
|
|
11008
|
+
const n = coerceCfnNumber(value);
|
|
11009
|
+
if (n === void 0) throw new NotReadable();
|
|
11010
|
+
return n;
|
|
11011
|
+
}
|
|
11012
|
+
function numbers(block, numeric, other = []) {
|
|
11013
|
+
if (!isPlainObject(block)) throw new NotReadable();
|
|
11014
|
+
const out = {};
|
|
11015
|
+
for (const [key, value] of Object.entries(block)) if (numeric.includes(key)) out[key] = num(value);
|
|
11016
|
+
else if (other.includes(key)) out[key] = value;
|
|
11017
|
+
else throw new NotReadable();
|
|
11018
|
+
return out;
|
|
11019
|
+
}
|
|
11020
|
+
function readbackShape(config) {
|
|
11021
|
+
try {
|
|
11022
|
+
const out = {};
|
|
11023
|
+
for (const [key, value] of Object.entries(config)) if (key === TDMOS_KEY) {
|
|
11024
|
+
if (typeof value !== "string") throw new NotReadable();
|
|
11025
|
+
out[key] = value;
|
|
11026
|
+
} else if (key === "Rules") out[key] = value.map(readbackRule);
|
|
11027
|
+
else throw new NotReadable();
|
|
11028
|
+
return out;
|
|
11029
|
+
} catch (err) {
|
|
11030
|
+
if (err instanceof NotReadable) return void 0;
|
|
11031
|
+
throw err;
|
|
11032
|
+
}
|
|
11033
|
+
}
|
|
11034
|
+
function readbackRule(rule) {
|
|
11035
|
+
const out = {};
|
|
11036
|
+
for (const [key, value] of Object.entries(rule)) {
|
|
11037
|
+
if (!RULE_KEYS.has(key)) throw new NotReadable();
|
|
11038
|
+
switch (key) {
|
|
11039
|
+
case "ExpirationInDays":
|
|
11040
|
+
if (typeof value !== "number") throw new NotReadable();
|
|
11041
|
+
out[key] = value;
|
|
11042
|
+
break;
|
|
11043
|
+
case "ExpirationDate":
|
|
11044
|
+
if (typeof value !== "string" || !ISO_DATE.test(value)) throw new NotReadable();
|
|
11045
|
+
out[key] = value;
|
|
11046
|
+
break;
|
|
11047
|
+
case "ExpiredObjectDeleteMarker":
|
|
11048
|
+
if (typeof value !== "boolean") throw new NotReadable();
|
|
11049
|
+
out[key] = value;
|
|
11050
|
+
break;
|
|
11051
|
+
case "Transitions":
|
|
11052
|
+
if (!Array.isArray(value)) throw new NotReadable();
|
|
11053
|
+
out[key] = value.map((t) => {
|
|
11054
|
+
const item = numbers(t, ["TransitionInDays"], ["StorageClass", "TransitionDate"]);
|
|
11055
|
+
const date = item["TransitionDate"];
|
|
11056
|
+
if (date !== void 0 && (typeof date !== "string" || !ISO_DATE.test(date))) throw new NotReadable();
|
|
11057
|
+
return item;
|
|
11058
|
+
});
|
|
11059
|
+
break;
|
|
11060
|
+
case "NoncurrentVersionExpiration":
|
|
11061
|
+
out[key] = numbers(value, ["NoncurrentDays", "NewerNoncurrentVersions"]);
|
|
11062
|
+
break;
|
|
11063
|
+
case "NoncurrentVersionTransitions":
|
|
11064
|
+
if (!Array.isArray(value)) throw new NotReadable();
|
|
11065
|
+
out[key] = value.map((t) => numbers(t, ["TransitionInDays", "NewerNoncurrentVersions"], ["StorageClass"]));
|
|
11066
|
+
break;
|
|
11067
|
+
case "AbortIncompleteMultipartUpload":
|
|
11068
|
+
out[key] = numbers(value, ["DaysAfterInitiation"]);
|
|
11069
|
+
break;
|
|
11070
|
+
case "Filter":
|
|
11071
|
+
out[key] = numbers(value, ["ObjectSizeGreaterThan", "ObjectSizeLessThan"], ["Prefix", "TagFilters"]);
|
|
11072
|
+
break;
|
|
11073
|
+
default: out[key] = value;
|
|
11074
|
+
}
|
|
11075
|
+
}
|
|
11076
|
+
if (out["ExpiredObjectDeleteMarker"] !== void 0 && (out["ExpirationInDays"] !== void 0 || out["ExpirationDate"] !== void 0)) throw new NotReadable();
|
|
11077
|
+
return out;
|
|
11078
|
+
}
|
|
11079
|
+
function lifecycleReadIsAbsent(read) {
|
|
11080
|
+
const rules = read["Rules"];
|
|
11081
|
+
return !Array.isArray(rules) || rules.length === 0;
|
|
11082
|
+
}
|
|
11083
|
+
function lifecycleMatchesDeclared(read, expected) {
|
|
11084
|
+
const declaredSize = expected[TDMOS_KEY];
|
|
11085
|
+
const readSize = read[TDMOS_KEY];
|
|
11086
|
+
if (declaredSize !== void 0) {
|
|
11087
|
+
if (readSize !== declaredSize) return false;
|
|
11088
|
+
} else if (readSize !== void 0 && readSize !== "all_storage_classes_128K") return false;
|
|
11089
|
+
const readRules = read["Rules"];
|
|
11090
|
+
const declaredRules = expected["Rules"];
|
|
11091
|
+
if (!Array.isArray(readRules) || !Array.isArray(declaredRules)) return false;
|
|
11092
|
+
if (readRules.length !== declaredRules.length) return false;
|
|
11093
|
+
const restRead = withoutKeys$1(read, [TDMOS_KEY, "Rules"]);
|
|
11094
|
+
const restDeclared = withoutKeys$1(expected, [TDMOS_KEY, "Rules"]);
|
|
11095
|
+
if (!deepSameValue(restRead, restDeclared)) return false;
|
|
11096
|
+
return declaredRules.every((declaredRule, index) => {
|
|
11097
|
+
const readRule = readRules[index];
|
|
11098
|
+
if (!isPlainObject(declaredRule) || !isPlainObject(readRule)) return false;
|
|
11099
|
+
if (declaredRule["Id"] !== void 0) return deepSameValue(readRule, declaredRule);
|
|
11100
|
+
return typeof readRule["Id"] === "string" && deepSameValue(withoutKeys$1(readRule, ["Id"]), declaredRule);
|
|
11101
|
+
});
|
|
11102
|
+
}
|
|
11103
|
+
function declaredLifecycleBaseline(expected) {
|
|
11104
|
+
return {
|
|
11105
|
+
[TDMOS_KEY]: expected[TDMOS_KEY] ?? "all_storage_classes_128K",
|
|
11106
|
+
...withoutKeys$1(expected, [TDMOS_KEY])
|
|
11107
|
+
};
|
|
11108
|
+
}
|
|
11109
|
+
async function settleLifecycleRead(read, declared, delaysMs) {
|
|
11110
|
+
const settled = (answer) => declared.kind === "absent" ? lifecycleReadIsAbsent(answer) : lifecycleMatchesDeclared(answer, declared.expected);
|
|
11111
|
+
const unsettled = () => {
|
|
11112
|
+
declared.onUnsettled?.();
|
|
11113
|
+
return declared.kind === "present" ? declaredLifecycleBaseline(declared.expected) : void 0;
|
|
11114
|
+
};
|
|
11115
|
+
let answered = false;
|
|
11116
|
+
try {
|
|
11117
|
+
const outcome = await reReadUntilSettled(async () => {
|
|
11118
|
+
const answer = await read();
|
|
11119
|
+
answered = true;
|
|
11120
|
+
return answer;
|
|
11121
|
+
}, settled, delaysMs);
|
|
11122
|
+
return outcome.settled ? outcome.answer : unsettled();
|
|
11123
|
+
} catch (err) {
|
|
11124
|
+
if (answered) return unsettled();
|
|
11125
|
+
if (declared.kind === "present" && memberReadFailure(err) === "failed") return unsettled();
|
|
11126
|
+
throw err;
|
|
11127
|
+
}
|
|
11128
|
+
}
|
|
11129
|
+
function withoutKeys$1(bag, keys) {
|
|
11130
|
+
const out = {};
|
|
11131
|
+
for (const [key, value] of Object.entries(bag)) if (!keys.includes(key)) out[key] = value;
|
|
11132
|
+
return out;
|
|
11133
|
+
}
|
|
11134
|
+
|
|
10510
11135
|
// src/cli/commands/drift/baseline-keys.ts
|
|
10511
11136
|
const UNDECLARED_UNCOMPARED_KEYS = {
|
|
10512
11137
|
"AWS::S3::Bucket": ["NotificationConfiguration"],
|
|
@@ -10521,6 +11146,15 @@ const UNDECLARED_UNCOMPARED_KEYS = {
|
|
|
10521
11146
|
],
|
|
10522
11147
|
"AWS::EC2::Instance": ["BlockDeviceMappings"]
|
|
10523
11148
|
};
|
|
11149
|
+
const UNDECLARED_EMPTY_COMPARED_KEYS = { "AWS::BedrockAgentCore::Runtime": [
|
|
11150
|
+
"FilesystemConfigurations",
|
|
11151
|
+
"HooksConfiguration",
|
|
11152
|
+
"RequestHeaderConfiguration",
|
|
11153
|
+
"ResourceConfigurations"
|
|
11154
|
+
] };
|
|
11155
|
+
function undeclaredEmptyComparedDriftKeys(resourceType) {
|
|
11156
|
+
return hasOwnKey(UNDECLARED_EMPTY_COMPARED_KEYS, resourceType) ? UNDECLARED_EMPTY_COMPARED_KEYS[resourceType] : [];
|
|
11157
|
+
}
|
|
10524
11158
|
function undeclaredUncomparedDriftKeys(resourceType, properties) {
|
|
10525
11159
|
const keys = hasOwnKey(UNDECLARED_UNCOMPARED_KEYS, resourceType) ? UNDECLARED_UNCOMPARED_KEYS[resourceType] : [];
|
|
10526
11160
|
if (keys.length === 0) return [];
|
|
@@ -10590,6 +11224,16 @@ const OWN_WRITE_MEMBERS = new Map(Object.entries({
|
|
|
10590
11224
|
return efsPolicyMatchesDeclared(aws["FileSystemPolicy"], declared);
|
|
10591
11225
|
}
|
|
10592
11226
|
},
|
|
11227
|
+
"AWS::S3::Bucket": {
|
|
11228
|
+
key: "LifecycleConfiguration",
|
|
11229
|
+
liveIsDeclared: (properties, aws) => {
|
|
11230
|
+
const declared = declaredLifecycle(properties);
|
|
11231
|
+
const live = aws["LifecycleConfiguration"];
|
|
11232
|
+
if (declared === void 0 || typeof live !== "object" || live === null) return false;
|
|
11233
|
+
const liveBag = live;
|
|
11234
|
+
return declared.kind === "absent" ? lifecycleReadIsAbsent(liveBag) : lifecycleMatchesDeclared(liveBag, declared.expected);
|
|
11235
|
+
}
|
|
11236
|
+
},
|
|
10593
11237
|
"AWS::CodeBuild::Project": {
|
|
10594
11238
|
key: "Visibility",
|
|
10595
11239
|
liveIsDeclared: (properties, aws) => typeof properties["Visibility"] === "string" && properties["Visibility"] !== "" && aws["Visibility"] === properties["Visibility"]
|
|
@@ -11682,7 +12326,7 @@ async function compareDriftReadback(args) {
|
|
|
11682
12326
|
secrets.clear();
|
|
11683
12327
|
}
|
|
11684
12328
|
if (unresolvedTokens.size > 0) logger.warn(`${logicalId} (${resource.resourceType}): cdkd cannot resolve ${maskSecretsInText([...unresolvedTokens].join(", "), secrets)} — those properties are NOT compared. A revert leaves a property whose WHOLE value is one of these tokens untouched where its position can be matched against AWS's report (a list element pairs by an identity field, or by the list's own unchanged literal values). A token EMBEDDED in a longer string is left untouched the same way when the rest of that string is exactly what AWS holds. Where it cannot be matched, the revert writes the token literal, exactly as 'cdkd deploy' does — so a resolved value AWS holds there WOULD be overwritten. cdkd resolves 'secretsmanager', 'ssm' and 'ssm-secure' references; anything else is left as written.`);
|
|
11685
|
-
const observedIgnorePaths = useObserved ? undeclaredEmptyObservedKeys(resource.observedProperties, resource.properties ?? {}) : [];
|
|
12329
|
+
const observedIgnorePaths = useObserved ? undeclaredEmptyObservedKeys(resource.observedProperties, resource.properties ?? {}, undeclaredEmptyComparedDriftKeys(resource.resourceType)) : [];
|
|
11686
12330
|
const normalized = await canonicalizePrincipalUniqueIds(comparisonBaseline, aws, resolvePrincipalUniqueId);
|
|
11687
12331
|
const protocolNormalized = canonicalizeIpProtocols(normalized.baseline, normalized.aws, resource.resourceType);
|
|
11688
12332
|
const siblingStripped = stripSiblingOwnedParentMembers(resource.resourceType, resource.physicalId, protocolNormalized.baseline, protocolNormalized.aws, resource.properties, readContext);
|
|
@@ -12170,7 +12814,7 @@ function carriesIntrinsicObject(value) {
|
|
|
12170
12814
|
|
|
12171
12815
|
// src/cli/commands/drift/revert-apply.ts
|
|
12172
12816
|
async function applyRevertUpdate(args) {
|
|
12173
|
-
const { logger, tally, report, narrowedByLogicalId,
|
|
12817
|
+
const { logger, tally, report, narrowedByLogicalId, settledByRevert, outcome, stateResource, provider, secrets, revertBaseline, newProperties } = args;
|
|
12174
12818
|
try {
|
|
12175
12819
|
const revertPrevious = await settleUnsettledPrevious({
|
|
12176
12820
|
provider,
|
|
@@ -12193,6 +12837,13 @@ async function applyRevertUpdate(args) {
|
|
|
12193
12837
|
recordedCreateOnlyDrops: stateResource.acceptedCreateOnlyDrops,
|
|
12194
12838
|
removedProperties: /* @__PURE__ */ new Set()
|
|
12195
12839
|
}), outcome.logicalId, { logger: maskingRetryLogger(logger, secrets) });
|
|
12840
|
+
const replacedBy = revertReplacementOf(stateResource.physicalId, updateResult);
|
|
12841
|
+
if (replacedBy !== void 0) {
|
|
12842
|
+
tally.totalFailed++;
|
|
12843
|
+
logger.error(safeMsg` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): the provider REPLACED the resource or changed its identity instead of reverting it in place (${maskSecretsInText(replacedBy, secrets)}). A drift revert must never replace a resource — this is a cdkd bug, please report it. State records the identity the provider returned for a replacement, so it is not orphaned; check its consumers.`);
|
|
12844
|
+
recordReturnedIdentity(args, updateResult, "replaced");
|
|
12845
|
+
return;
|
|
12846
|
+
}
|
|
12196
12847
|
tally.totalSucceeded++;
|
|
12197
12848
|
const unsettledNames = unsettledPropertiesOf(stateResource);
|
|
12198
12849
|
if (unsettledNames.size > 0) {
|
|
@@ -12223,24 +12874,7 @@ async function applyRevertUpdate(args) {
|
|
|
12223
12874
|
} catch (captureErr) {
|
|
12224
12875
|
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)}`);
|
|
12225
12876
|
}
|
|
12226
|
-
|
|
12227
|
-
if (updateResult !== void 0) {
|
|
12228
|
-
const noEchoDeclared = recordNoEchoAttributeValues(updateResult, secrets, newProperties);
|
|
12229
|
-
const next = recordAfterRollbackUpdate(stateResource, updateResult);
|
|
12230
|
-
const keptAttributes = next.attributes === void 0 ? void 0 : keepRecordedAttributesOverMask(redactForState(next.attributes, {
|
|
12231
|
-
provenance: "value-scan",
|
|
12232
|
-
secrets
|
|
12233
|
-
}), next.attributes, stateResource.attributes, noEchoDeclared);
|
|
12234
|
-
const declaredNames = noEchoAttributeNamesOf(stateResource) ?? [];
|
|
12235
|
-
const attributes = keptAttributes === void 0 || declaredNames.length === 0 ? keptAttributes : Object.fromEntries(Object.entries(keptAttributes).map(([name, value]) => [name, declaredNames.includes(name) ? maskWholeValue(value) : value]));
|
|
12236
|
-
if (next.physicalId !== stateResource.physicalId || !sameRecordedJson(attributes, stateResource.attributes)) reRecordedByLogicalId.set(outcome.logicalId, {
|
|
12237
|
-
physicalId: next.physicalId,
|
|
12238
|
-
attributes
|
|
12239
|
-
});
|
|
12240
|
-
}
|
|
12241
|
-
} catch (recordErr) {
|
|
12242
|
-
logger.warn(safeMsg` ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): reverted, but the attributes the provider returned could not be recorded — ${maskSecretsInText(describeAwsFailure(recordErr).detail, secrets)}`);
|
|
12243
|
-
}
|
|
12877
|
+
recordReturnedIdentity(args, updateResult, "reverted");
|
|
12244
12878
|
} catch (err) {
|
|
12245
12879
|
if (err instanceof ResourceUpdateNotSupportedError) {
|
|
12246
12880
|
tally.totalUnsupported++;
|
|
@@ -12252,6 +12886,32 @@ async function applyRevertUpdate(args) {
|
|
|
12252
12886
|
logger.error(` ✗ ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): AWS update failed — ${msg}`);
|
|
12253
12887
|
}
|
|
12254
12888
|
}
|
|
12889
|
+
function revertReplacementOf(recordedPhysicalId, updateResult) {
|
|
12890
|
+
if (updateResult === void 0) return void 0;
|
|
12891
|
+
if (typeof updateResult.physicalId === "string" && updateResult.physicalId !== "" && updateResult.physicalId !== recordedPhysicalId) return `physical id ${recordedPhysicalId} became ${updateResult.physicalId}`;
|
|
12892
|
+
return updateResult.wasReplaced === true ? `reported a replacement under the same physical id ${recordedPhysicalId}` : void 0;
|
|
12893
|
+
}
|
|
12894
|
+
function recordReturnedIdentity(args, updateResult, verdict) {
|
|
12895
|
+
const { logger, report, reRecordedByLogicalId, outcome, stateResource, secrets, newProperties } = args;
|
|
12896
|
+
try {
|
|
12897
|
+
if (updateResult !== void 0) {
|
|
12898
|
+
const noEchoDeclared = recordNoEchoAttributeValues(updateResult, secrets, newProperties);
|
|
12899
|
+
const next = recordAfterRollbackUpdate(stateResource, updateResult);
|
|
12900
|
+
const keptAttributes = next.attributes === void 0 ? void 0 : keepRecordedAttributesOverMask(redactForState(next.attributes, {
|
|
12901
|
+
provenance: "value-scan",
|
|
12902
|
+
secrets
|
|
12903
|
+
}), next.attributes, stateResource.attributes, noEchoDeclared);
|
|
12904
|
+
const declaredNames = noEchoAttributeNamesOf(stateResource) ?? [];
|
|
12905
|
+
const attributes = keptAttributes === void 0 || declaredNames.length === 0 ? keptAttributes : Object.fromEntries(Object.entries(keptAttributes).map(([name, value]) => [name, declaredNames.includes(name) ? maskWholeValue(value) : value]));
|
|
12906
|
+
if (next.physicalId !== stateResource.physicalId || !sameRecordedJson(attributes, stateResource.attributes)) reRecordedByLogicalId.set(outcome.logicalId, {
|
|
12907
|
+
physicalId: next.physicalId,
|
|
12908
|
+
attributes
|
|
12909
|
+
});
|
|
12910
|
+
}
|
|
12911
|
+
} catch (recordErr) {
|
|
12912
|
+
logger.warn(safeMsg` ${report.stackName}/${outcome.logicalId} (${outcome.resourceType}): ${verdict}, but the attributes the provider returned could not be recorded — ${maskSecretsInText(describeAwsFailure(recordErr).detail, secrets)}`);
|
|
12913
|
+
}
|
|
12914
|
+
}
|
|
12255
12915
|
|
|
12256
12916
|
// src/cli/commands/drift/revert-outcome.ts
|
|
12257
12917
|
async function revertDriftedOutcome(args) {
|
|
@@ -21999,6 +22659,7 @@ async function runRollbackReplay(ctx) {
|
|
|
21999
22659
|
const failedOrphanIds = [];
|
|
22000
22660
|
const inlinePolicyWriters = new RollbackInlinePolicyWriters();
|
|
22001
22661
|
const failedOpsPrinting = journaledOrphanPrintingBag(journal.segments.flatMap((s) => s.failedOperations ?? []), stateResources);
|
|
22662
|
+
await snapshotSegmentSurvivors(ctx, journal.segments);
|
|
22002
22663
|
try {
|
|
22003
22664
|
while (journal.segments.length > 0) {
|
|
22004
22665
|
if (interrupted) break;
|
|
@@ -35081,5 +35742,5 @@ function collectVerbFlags(program) {
|
|
|
35081
35742
|
return map;
|
|
35082
35743
|
}
|
|
35083
35744
|
|
|
35084
|
-
export { warnUnsettledMember as _, resolveSecretDerivedPrincipals as a,
|
|
35085
|
-
//# sourceMappingURL=program-
|
|
35745
|
+
export { configItemId as A, SNS_DEFAULT_POLICY_ID as B, effectiveAnalyticsItem as C, eventBridgeEnabledOf as D, effectiveNotificationConfiguration as E, manualBucketDeletionClause as F, memberReadFailure as G, declaredPolicyDocument as H, mergeLegacySingular as I, settleDeclaredMember as J, policyDocumentMatchesDeclared as K, shownLifecycleRuleId as L, declaresNestedObjectLock as M, describeValue as N, caughtErrorName as O, isPlainObject as P, KMS_DEFAULT_KEY_POLICY_ID as R, EVENTBRIDGE_CONFIG_PATH as S, effectiveInventoryItem as T, efsPolicyMatchesDeclared as U, declaredMemberDocument as V, lambdaPermissionMatchesDeclared as W, attemptedPolicyDocument as X, warnUnsettledMember as Y, policyContentKey as Z, canonicalizeItemList as _, resolveSecretDerivedPrincipals as a, lifecycleUsesFilterForm as b, buildProgram, lifecycleSettleTarget as c, takeLifecycleWrite as d, LIFECYCLE_DEFAULT_STATUS as f, canonicalizeBlock as g, LIFECYCLE_TAG_FILTERS_PATH as h, isResolvableSecretPrincipalList as i, declaresBucketObjectLock as j, coerceCfnNumber as k, recordLifecycleWrite as l, LIFECYCLE_RULE_PATH as m, runDestroyForStack as n, LIFECYCLE_BASELINE_REREAD_DELAYS_MS as o, LIFECYCLE_FILTER_PATH as p, reReadUntilSettled as q, holdsUnprovenSecretPrincipalToken as r, clearLifecycleWritesOf as s, canonicalizeIpv4Cidr as t, settleLifecycleRead as u, effectiveLifecycleConfiguration as v, effectiveIntelligentTieringItem as w, parseCfnTimestamp as x, lifecycleRuleScope as y, OWN_WRITE_REREAD_DELAYS_MS as z };
|
|
35746
|
+
//# sourceMappingURL=program-DDysnPS0.js.map
|