@cdkd/cli 0.358.3 → 0.358.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-BN4tRwp9.js → ambient-client-defaults-sV7_Dag9.js} +3 -3
- package/dist/{ambient-client-defaults-BN4tRwp9.js.map → ambient-client-defaults-sV7_Dag9.js.map} +1 -1
- package/dist/{asg-provider-DHkF4o0Q.js → asg-provider-C8Z9gQh6.js} +6 -6
- package/dist/{asg-provider-DHkF4o0Q.js.map → asg-provider-C8Z9gQh6.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-KEMII41H.js → custom-resource-runtime-CFKtxcut.js} +6 -6
- package/dist/{custom-resource-runtime-KEMII41H.js.map → custom-resource-runtime-CFKtxcut.js.map} +1 -1
- package/dist/{db-associated-roles-0r3NPm7U.js → db-associated-roles-CAqrOMb6.js} +2 -2
- package/dist/{db-associated-roles-0r3NPm7U.js.map → db-associated-roles-CAqrOMb6.js.map} +1 -1
- package/dist/{delete-started-xsYgmgVh.js → delete-started-nZR1YxYW.js} +4 -4
- package/dist/{delete-started-xsYgmgVh.js.map → delete-started-nZR1YxYW.js.map} +1 -1
- package/dist/{deploy-engine-2R2hbP5Y.js → deploy-engine-DD0u1ctj.js} +1302 -285
- package/dist/deploy-engine-DD0u1ctj.js.map +1 -0
- package/dist/{diff-calculator-CIuzHmBn.js → diff-calculator-D6-l89Im.js} +12 -12
- package/dist/{diff-calculator-CIuzHmBn.js.map → diff-calculator-D6-l89Im.js.map} +1 -1
- package/dist/{ec2-termination-protection-DIdBlUyw.js → ec2-termination-protection-CrZB0URU.js} +6 -6
- package/dist/{ec2-termination-protection-DIdBlUyw.js.map → ec2-termination-protection-CrZB0URU.js.map} +1 -1
- package/dist/{ecr-uri-DD3r4tU6.js → ecr-uri-97_fu_HH.js} +2 -2
- package/dist/{ecr-uri-DD3r4tU6.js.map → ecr-uri-97_fu_HH.js.map} +1 -1
- package/dist/{expected-bucket-owner-Cm4q0WEG.js → expected-bucket-owner-DztbSJ4h.js} +2 -2
- package/dist/{expected-bucket-owner-Cm4q0WEG.js.map → expected-bucket-owner-DztbSJ4h.js.map} +1 -1
- package/dist/{iam-role-provider-DiB7B6vR.js → iam-role-provider-CMtP4Ptf.js} +8 -8
- package/dist/{iam-role-provider-DiB7B6vR.js.map → iam-role-provider-CMtP4Ptf.js.map} +1 -1
- package/dist/{image-plan-VU9zHTjW.js → image-plan-B9r5-bNi.js} +8 -8
- package/dist/{image-plan-VU9zHTjW.js.map → image-plan-B9r5-bNi.js.map} +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-C4kIC51Z.js → logger-D2Z2OHGQ.js} +2 -2
- package/dist/{logger-C4kIC51Z.js.map → logger-D2Z2OHGQ.js.map} +1 -1
- package/dist/{neptune-provider-CVtiI39K.js → neptune-provider-CXTIUxND.js} +7 -7
- package/dist/{neptune-provider-CVtiI39K.js.map → neptune-provider-CXTIUxND.js.map} +1 -1
- package/dist/{program-BOR4WbUs.js → program-fQBUrH4s.js} +416 -50
- package/dist/program-fQBUrH4s.js.map +1 -0
- package/dist/{provider-classes-CwFJ4uJU.js → provider-classes-ZbdmR8mu.js} +1588 -1332
- package/dist/provider-classes-ZbdmR8mu.js.map +1 -0
- package/dist/{rds-provider-CYCp7gwi.js → rds-provider-DH7JWWZE.js} +10 -10
- package/dist/{rds-provider-CYCp7gwi.js.map → rds-provider-DH7JWWZE.js.map} +1 -1
- package/dist/{read-replica-DBLr287T.js → read-replica-DPeTyeJe.js} +3 -3
- package/dist/{read-replica-DBLr287T.js.map → read-replica-DPeTyeJe.js.map} +1 -1
- package/dist/{replacement-rules-DLJ-yZz-.js → replacement-rules-CRiQUpPY.js} +3 -3
- package/dist/{replacement-rules-DLJ-yZz-.js.map → replacement-rules-CRiQUpPY.js.map} +1 -1
- package/dist/{resource-deadline-j2gItrpv.js → resource-deadline-8W0fpf3B.js} +8 -5
- package/dist/{resource-deadline-j2gItrpv.js.map → resource-deadline-8W0fpf3B.js.map} +1 -1
- package/dist/{restore-source-guard-BZ5CE9r9.js → restore-source-guard-BFsarBUR.js} +4 -4
- package/dist/{restore-source-guard-BZ5CE9r9.js.map → restore-source-guard-BFsarBUR.js.map} +1 -1
- package/dist/{run-cli-CWVdMkku.js → run-cli-APX25Mdo.js} +2 -2
- package/dist/{run-cli-CWVdMkku.js.map → run-cli-APX25Mdo.js.map} +1 -1
- package/dist/{version-D4vZ_aE6.js → version-DiLAo6CH.js} +2 -2
- package/dist/{version-D4vZ_aE6.js.map → version-DiLAo6CH.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-2R2hbP5Y.js.map +0 -1
- package/dist/program-BOR4WbUs.js.map +0 -1
- package/dist/provider-classes-CwFJ4uJU.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, 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, a as UNSHOWABLE_VALUE, c as deployReplaceCommand, d as pasteableCommand, f as physicalIdShownBesideCommand, 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 } from "./version-
|
|
2
|
-
import { $ as withStackScope, A as configStringRefusal, C as fallbackNamePropertyFor, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, G as currentNameGeneration, H as looksLikeCdkdGeneratedName, J as getCurrentStackName, K as getCurrentSkipPrefix, M as replayWarn, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, S as explicitNamePropertyFor, T as withoutGeneratedFallbackName, V as generateResourceNameWithFallback, W as stackInstanceNameSuffix, X as isNameGeneration, Z as withNameGeneration, _ as currentLogLineMasker, b as alternateNamePropertiesFor, c as VERBOSE_POINTER, et as withStackScopeBeforeStateRead, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, v as installLogLineMaskerSource, w as generatedNameFor, x as applyDefaultNameForFallback, y as getLiveRenderer } from "./logger-
|
|
3
|
-
import { A as stripControlChars, C as isNameCooldownError, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, K as wrapMaskedAwsError, L as isIamPropagationError, O as relayedNameCollision, P as isAmbiguousCcHandlerErrorCode, Q as AccountIdUnavailableError, R as isRetryableTransientError, S as isNameCollisionErrorFrom, T as isReplayedNameCollisionFrom, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as SelectOutOfBoundsRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, b as isUpdateUnsupportedError, et as CdkdError, i as credentialFingerprint, k as escapeRegExp$1, m as ExportInUseError, n as ambientCredentialConfig, nt as DeploymentNotApprovedError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, st as StateError, t as ambientClientDefaults, w as isRecreateRetryableError, z as isTransientServerError } from "./ambient-client-defaults-
|
|
1
|
+
import { A as displayStackName, C as STACK_REF_MAX_CODE_POINTS, D as displayAwsMessage, 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, a as UNSHOWABLE_VALUE, c as deployReplaceCommand, d as pasteableCommand, f as physicalIdShownBesideCommand, 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 } from "./version-DiLAo6CH.js";
|
|
2
|
+
import { $ as withStackScope, A as configStringRefusal, C as fallbackNamePropertyFor, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, G as currentNameGeneration, H as looksLikeCdkdGeneratedName, J as getCurrentStackName, K as getCurrentSkipPrefix, M as replayWarn, O as configBooleanRefusal, P as requireConfigObject, Q as withSkipPrefix, S as explicitNamePropertyFor, T as withoutGeneratedFallbackName, V as generateResourceNameWithFallback, W as stackInstanceNameSuffix, X as isNameGeneration, Z as withNameGeneration, _ as currentLogLineMasker, b as alternateNamePropertiesFor, c as VERBOSE_POINTER, et as withStackScopeBeforeStateRead, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, v as installLogLineMaskerSource, w as generatedNameFor, x as applyDefaultNameForFallback, y as getLiveRenderer } from "./logger-D2Z2OHGQ.js";
|
|
3
|
+
import { A as stripControlChars, C as isNameCooldownError, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, J as DynamicReferenceRegionAmbiguousError, K as wrapMaskedAwsError, L as isIamPropagationError, O as relayedNameCollision, P as isAmbiguousCcHandlerErrorCode, Q as AccountIdUnavailableError, R as isRetryableTransientError, S as isNameCollisionErrorFrom, T as isReplayedNameCollisionFrom, U as isThrottlingError, W as markNonRetryable, X as MalformedProducerRecordRefusalError, Y as IntrinsicResolutionRefusalError, Z as SelectOutOfBoundsRefusalError, _ as ResourceUpdateNotSupportedError, a as normalizeAwsError, at as ProvisioningError, b as isUpdateUnsupportedError, et as CdkdError, i as credentialFingerprint, k as escapeRegExp$1, m as ExportInUseError, n as ambientCredentialConfig, nt as DeploymentNotApprovedError, ot as ResourceTimeoutError, q as CrossAccountSecretRefusalError, r as clientDefaultsFor, st as StateError, t as ambientClientDefaults, w as isRecreateRetryableError, z as isTransientServerError } from "./ambient-client-defaults-sV7_Dag9.js";
|
|
4
4
|
import { a as getAssumedRoleCredentials, c as setAssumedRoleCredentials, d as quietS3Logger, f as ambientRegion, i as awsEndpointOverrideUrl, n as awsClientDefaults, o as getPreAssumeEnvCredentials, r as awsEndpointOverrideActive, t as SECOND_ROLE_PUBLISH_REFUSAL, u as setPreAssumeEnvCredentials } from "./aws-client-defaults-DAebi99J.js";
|
|
5
5
|
import { l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
6
|
-
import { A as withRetry, B as phaseTimingsEnabled, C as templateResourceTypes, D as isAwsEmulatorRegistryMiss, E as hasNoRegistrySchema, F as ignoresUnmodifiedGroupSize, G as describeJsonParseFailure, I as rollingUpdatePolicy, J as parseJsonNamingNoBody, K as jsonParseFailureStandIn, L as willReplaceGroup, M as INSTANCE_REFRESH_TRIGGER_PROPERTIES, N as REPLACEMENT_TRIGGER_PROPERTIES, O as reportAwsEmulatorRegistryMiss, R as PhaseClock, S as prefetchCreateOnlyPropertyPaths, T as describeTypeWithThrottleRetry, U as timePhase, V as recordPhase, W as timePhaseSync, Y as utf8ByteLength, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, b as getCreateOnlyPropertyPaths, d as markRefusedBeforeApplying, f as priorAttemptLookup, h as withPriorAttempts, i as observeThenDisableInstanceApiTermination, j as CREATE_ONLY_PATHS_SNAPSHOT, k as IAM_PROPAGATION_MAX_DELAY_MS, m as provenOrphanIdsInJournal, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as priorAttemptsInJournal, q as parseFailureDebugDetail, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs, u as isRefusedBeforeApplying, v as cachedCreateOnlyPropertyPaths, w as parseCreateOnlyPropertyPointers, x as isIntrinsicShaped, z as phaseScopeForStack } from "./ec2-termination-protection-
|
|
6
|
+
import { A as withRetry, B as phaseTimingsEnabled, C as templateResourceTypes, D as isAwsEmulatorRegistryMiss, E as hasNoRegistrySchema, F as ignoresUnmodifiedGroupSize, G as describeJsonParseFailure, I as rollingUpdatePolicy, J as parseJsonNamingNoBody, K as jsonParseFailureStandIn, L as willReplaceGroup, M as INSTANCE_REFRESH_TRIGGER_PROPERTIES, N as REPLACEMENT_TRIGGER_PROPERTIES, O as reportAwsEmulatorRegistryMiss, R as PhaseClock, S as prefetchCreateOnlyPropertyPaths, T as describeTypeWithThrottleRetry, U as timePhase, V as recordPhase, W as timePhaseSync, Y as utf8ByteLength, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, b as getCreateOnlyPropertyPaths, d as markRefusedBeforeApplying, f as priorAttemptLookup, h as withPriorAttempts, i as observeThenDisableInstanceApiTermination, j as CREATE_ONLY_PATHS_SNAPSHOT, k as IAM_PROPAGATION_MAX_DELAY_MS, m as provenOrphanIdsInJournal, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as priorAttemptsInJournal, q as parseFailureDebugDetail, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs, u as isRefusedBeforeApplying, v as cachedCreateOnlyPropertyPaths, w as parseCreateOnlyPropertyPointers, x as isIntrinsicShaped, z as phaseScopeForStack } from "./ec2-termination-protection-CrZB0URU.js";
|
|
7
7
|
import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
8
|
-
import { $t as
|
|
9
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
10
|
-
import { Ct as isReadableBag, Dt as skippedOutputsCarriedFrom, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, gt as slowCcOperationTimeoutMs, ht as dbInstanceAttributes, i as dbClusterAttributes, n as isRefusedByName, r as markDeleteStarted, t as isDeleteStarted, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-
|
|
11
|
-
import { $t as recordInheritedParameterValue, A as witnessNormalize, An as recordNoEchoAttributeValues, At as withoutPhysicalNameCopies, B as redactionClaimOf, Cn as noEchoParameterPlaintextsOf, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dn as recordFreshNoEchoValuesIn, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, En as recordDerivedMaskOnlyValue, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, G as foldRecording, Gt as recordTakenIfBranch, H as mixedLiteralAnswered, Ht as splitOutsideDynamicReferences, I as markSameGenerationBag, In as isDynamicReferenceString, It as secretRerenderPairs, J as hasPassProvenance, Jt as templateRereadsAccountId, K as openRecordingScope, Kt as inheritedPseudoValue, L as mergeResolvedPairs, Ln as isSingleDynamicReferenceToken, M as carryRedactionMarks, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as withoutNoEchoParameterEntries, Q as recordReferenceResolution, Qt as recordInheritedParameterRead, R as recordIntrinsicLeafResolution, Rn as maskMatchSpans, S as noEchoParametersReadBy, Sn as markNoEchoParameterClass, St as replaceWholeLeaves, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as standsForInheritedSecret, V as resolvedPlaintextOf, Vt as rereadParameterExpression, W as redactForState, Wt as recordDroppedArrayElements, X as passReadVersionsFor, Xt as inheritedParameterExpression, Y as passProvenanceFor, Yt as inheritNestedStackParameterAssociations, Z as recordReferenceProvenanceEntry, Zt as inheritedRenderedToken, _ as noEchoComparison, _n as freshNoEchoValuesOf, _t as maskSecretsInText, an as recordRecoverableMaskedOutput, at as literalSplitDelimitersOf, bn as isScopedSecretVerdict, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, ct as recordLogOnlyParameterValue, d as canonicalJson$
|
|
12
|
-
import { C as withUnsettledItems, S as unsettledPropertiesOf, T as withoutUnsettledProperties, _ as isUsableAttemptedName, b as unsettledItemsOf, c as planTagDiff, f as tagPlanWarning, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, u as refuseMalformedDesiredTags, v as unsettledContextOf, w as withUnsettledProperties, x as unsettledItemsTopKey, y as unsettledItemsField } from "./restore-source-guard-
|
|
8
|
+
import { $ as deleteWithProtectionCompensation, $t as markAuxiliaryFailure, At as canonicalizeRoute53QueryName, Bt as createMaskedRetryLogger, Ct as protectedReplacementAdvice, Gt as RETRY_AUXILIARY_OWNER, H as normalizeAwsTagsToCfn, Ht as maskDeep, I as withoutServerErrorRetries, It as resourceTypeShown, J as RESOURCE_NOT_FOUND, Jt as createdBeforeFailure, K as resolveExplicitPhysicalId, Lt as segmentAfterAnchor, Mt as compositeIdSeparatorRefusal, Ot as isInterruptedWaitError, Pt as logicalIdShown, Q as compensateProtectionFlip, Qt as isAuxiliaryMarkOf, Rt as stateOrphanRecordRemedy, St as pasteableAwsCommand, T as withUnchangedSecretPrincipalLists, U as quotedRemedyLogicalId, Ut as maskerOrIdentity, V as isQuotableImportValue, Vt as isSecretDerivedValue, W as refusalTypeShown, Wt as withDerivedNameMasks, X as isMarkedNotGone, Y as assertRegionMatch, Yt as createdResourceIdentityBeforeFailure, Z as markNotGone, Zt as isAuxiliaryFailure, _n as injectiveKey, _t as monotonicNowMs, bn as producerRecordKey, d as CreatedResourceSink, dn as sanitizeRecoveryValue, dt as ProtectionFlipRegistry, en as markCreatedBeforeFailure, f as clearCreatedReport, fn as CUSTOM_RESOURCE_RESPONSE_PREFIX, ft as isTerminalDeleteFailure, g as retractCreatedResource, gn as withPasteableAwsProfile, gt as ElapsedBudgetRegistry, ht as ElapsedBudget, i as withResourceDeadline, kt as startInterruptWatch, m as reportCreatedResource, mt as runDeleteAttempt, n as enclosingDeadlineRemainingMs, o as prepareRemovalForUpdate, p as collectCreatedResources, pn as DEFAULT_STATE_PREFIX, pt as protectionFlipKey, r as whileEnclosingDeadlinesPaused, s as removalWarning, t as enclosingDeadlineExpired, tt as observeThenDisableProtection, u as withoutInjectedRemovals, un as recoveryCommandFlags, vt as DELETION_PROTECTION_DOC_POINTER, zt as createMaskedLogSinks } from "./resource-deadline-8W0fpf3B.js";
|
|
9
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-DztbSJ4h.js";
|
|
10
|
+
import { Ct as isReadableBag, Dt as skippedOutputsCarriedFrom, Et as shouldRetainResource, Ot as stackInstanceIdCarriedFrom, St as importableOutputs, Tt as orphansCarriedFrom, _t as acceptedCreateOnlyDropsOf, gt as slowCcOperationTimeoutMs, ht as dbInstanceAttributes, i as dbClusterAttributes, n as isRefusedByName, r as markDeleteStarted, t as isDeleteStarted, vt as describeRegionValueKind, wt as orphansAfterRollback, xt as importableOutputKeys, yt as exportNamesCarriedFrom } from "./delete-started-nZR1YxYW.js";
|
|
11
|
+
import { $t as recordInheritedParameterValue, A as witnessNormalize, An as recordNoEchoAttributeValues, At as withoutPhysicalNameCopies, B as redactionClaimOf, Cn as noEchoParameterPlaintextsOf, Ct as withLegacyOverlapScan, D as recordedNoEchoValuesOf, Dn as recordFreshNoEchoValuesIn, Dt as replaceEmbeddedPhysicalNameRewrites, E as recordPassedNoEchoParameters, En as recordDerivedMaskOnlyValue, Et as repairPhysicalNameCopyLeaves, F as markLeafCertifiedBag, G as foldRecording, Gt as recordTakenIfBranch, H as mixedLiteralAnswered, Ht as splitOutsideDynamicReferences, I as markSameGenerationBag, In as isDynamicReferenceString, It as secretRerenderPairs, J as hasPassProvenance, Jt as templateRereadsAccountId, K as openRecordingScope, Kt as inheritedPseudoValue, L as mergeResolvedPairs, Ln as isSingleDynamicReferenceToken, M as carryRedactionMarks, Mn as recordProvenPublicExpression, Mt as DYNAMIC_REFERENCE_TOKEN_SCAN, N as intrinsicLeafResolutionOf, Nn as wholeStringLeavesOf, Nt as dynamicReferenceTokens, O as replaceAtCoordinates, Ot as scrubResourceRecord, P as isSameGenerationBag, Pn as withoutNoEchoParameterEntries, Q as recordReferenceResolution, Qt as recordInheritedParameterRead, R as recordIntrinsicLeafResolution, Rn as maskMatchSpans, S as noEchoParametersReadBy, Sn as markNoEchoParameterClass, St as replaceWholeLeaves, Tt as repairEmbeddedPhysicalNamesTowards, U as withLegacyMixedScan, Ut as standsForInheritedSecret, V as resolvedPlaintextOf, Vt as rereadParameterExpression, W as redactForState, Wt as recordDroppedArrayElements, X as passReadVersionsFor, Xt as inheritedParameterExpression, Y as passProvenanceFor, Yt as inheritNestedStackParameterAssociations, Z as recordReferenceProvenanceEntry, Zt as inheritedRenderedToken, _ as noEchoComparison, _n as freshNoEchoValuesOf, _t as maskSecretsInText, an as recordRecoverableMaskedOutput, at as literalSplitDelimitersOf, bn as isScopedSecretVerdict, bt as legacyReferenceLeavesOnly, c as parseLambdaFunctionAddress, ct as recordLogOnlyParameterValue, d as canonicalJson$6, dn as crossStackSourceKey, dt as shareLogOnlyValues, en as redactInheritedParameterValue, et as carryLogOnlyValues, f as isMarkedCoordinate, fn as recordCrossStackExpression, ft as unionOfSecretBags, g as maskedLeafCoordinatesOf, gn as contradictProvenPublicExpression, gt as maskSecretsInError, h as maskWholeValue, hn as carryFreshNoEchoMark, ht as maskRecordedSecretsInText, in as freshNoEchoLeafPositions, it as hasMaskableValues, jn as recordNoEchoParameterFreshValue, jt as spanNamesResolvableService, k as valueAtCoordinate, kt as withPhysicalNameCopies, ln as recordPhysicalNameCopy, lt as recordLogOnlySplitFragments, m as maskReadbackAtCoordinates, mn as carriesSecretMask, mt as errorCauseChain, nn as carriesFreshNoEchoValue, nt as createUnionSecretMasker, on as recoverMaskedOutput, ot as logOnlyValueCount, p as maskAtCoordinates, pn as splitGetAttStringForm, pt as createSecretMasker, q as recordSecretResolution, qt as recordInheritedPseudoParameters, rn as embedsFreshNoEchoValue, rt as hasLogOnlyValues, sn as physicalNameCopiesOf, st as printingCorpusOf, t as ReplacementRulesRegistry, tn as withdrawRenderedParameterSpelling, tt as carryLogOnlyValuesCarriedBy, u as canonicalCoordinates, un as recordNestedStackParameterExpressions, ut as recordLogOnlyValue, v as noEchoCoordinatesOf, vn as isMaskOnlyPlaintext, vt as differingStringLeaves, w as readbackPathFor, wn as pinScopedSecretVerdict, wt as embeddedPhysicalNameRewrites, x as noEchoParameterNodesAt, xn as isSecretExpressionByVerdictOrSpelling, xt as overlapRuleAnswered, y as noEchoLeavesOf, yn as isNoEchoParameterPlaintext, yt as legacyLeavesWithoutMask, z as recordIntrinsicLeafResolutionAs, zt as arrayPairsWhateverDrops } from "./replacement-rules-CRiQUpPY.js";
|
|
12
|
+
import { C as withUnsettledItems, S as unsettledPropertiesOf, T as withoutUnsettledProperties, _ as isUsableAttemptedName, b as unsettledItemsOf, c as planTagDiff, f as tagPlanWarning, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, u as refuseMalformedDesiredTags, v as unsettledContextOf, w as withUnsettledProperties, x as unsettledItemsTopKey, y as unsettledItemsField } from "./restore-source-guard-BFsarBUR.js";
|
|
13
13
|
import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
14
14
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
15
15
|
import { CreateBucketCommand, DeleteObjectCommand, DeleteObjectsCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchKey, PutBucketEncryptionCommand, PutBucketLifecycleConfigurationCommand, PutBucketPolicyCommand, PutObjectCommand, PutPublicAccessBlockCommand, S3Client } from "@aws-sdk/client-s3";
|
|
@@ -82,7 +82,7 @@ async function resolveBucketRegion(bucketName, opts = {}) {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
try {
|
|
85
|
-
const { expectedOwnerParam } = await import("./expected-bucket-owner-
|
|
85
|
+
const { expectedOwnerParam } = await import("./expected-bucket-owner-DztbSJ4h.js").then((n) => n.n);
|
|
86
86
|
return (await client.send(new GetBucketLocationCommand({
|
|
87
87
|
Bucket: bucketName,
|
|
88
88
|
...await expectedOwnerParam(client)
|
|
@@ -3449,6 +3449,7 @@ function refuseMalformedOperation(shownStack, where, op) {
|
|
|
3449
3449
|
"unconfirmed",
|
|
3450
3450
|
"deferred"
|
|
3451
3451
|
].includes(o["oldResourceMaySurvive"])) fail("oldResourceMaySurvive", o["oldResourceMaySurvive"], "kept, unconfirmed or deferred when present");
|
|
3452
|
+
if (o["oldResourceIdentity"] !== void 0 && !(typeof o["oldResourceIdentity"] === "string" && o["oldResourceIdentity"] !== "")) fail("oldResourceIdentity", o["oldResourceIdentity"], "a non-empty string when present");
|
|
3452
3453
|
if (o["physicalIdRecoveredFromError"] !== void 0 && typeof o["physicalIdRecoveredFromError"] !== "boolean") fail("physicalIdRecoveredFromError", o["physicalIdRecoveredFromError"], "a boolean when present");
|
|
3453
3454
|
if (o["physicalIdRecoveredFromError"] !== void 0 && o["changeType"] !== "CREATE") refuseMalformed(shownStack, `${where}.physicalIdRecoveredFromError is only valid on a CREATE (got changeType ${kind(o["changeType"])}).`);
|
|
3454
3455
|
const pending = o["pendingCloudControlRequest"];
|
|
@@ -4859,11 +4860,13 @@ const PROPERTY_COVERAGE_BY_TYPE = /* @__PURE__ */ new Map([
|
|
|
4859
4860
|
"Description",
|
|
4860
4861
|
"EnvironmentVariables",
|
|
4861
4862
|
"FilesystemConfigurations",
|
|
4863
|
+
"HooksConfiguration",
|
|
4862
4864
|
"LifecycleConfiguration",
|
|
4863
4865
|
"NetworkConfiguration",
|
|
4864
4866
|
"PlatformVersion",
|
|
4865
4867
|
"ProtocolConfiguration",
|
|
4866
4868
|
"RequestHeaderConfiguration",
|
|
4869
|
+
"ResourceConfigurations",
|
|
4867
4870
|
"RoleArn",
|
|
4868
4871
|
"Tags"
|
|
4869
4872
|
]),
|
|
@@ -5116,6 +5119,7 @@ const PROPERTY_COVERAGE_BY_TYPE = /* @__PURE__ */ new Map([
|
|
|
5116
5119
|
"AdminCreateUserConfig",
|
|
5117
5120
|
"AliasAttributes",
|
|
5118
5121
|
"AutoVerifiedAttributes",
|
|
5122
|
+
"DcrConfiguration",
|
|
5119
5123
|
"DeletionProtection",
|
|
5120
5124
|
"DeviceConfiguration",
|
|
5121
5125
|
"EmailAuthenticationMessage",
|
|
@@ -5237,12 +5241,8 @@ const PROPERTY_COVERAGE_BY_TYPE = /* @__PURE__ */ new Map([
|
|
|
5237
5241
|
]),
|
|
5238
5242
|
sdkUnwired: /* @__PURE__ */ new Map(),
|
|
5239
5243
|
createOnlyDrops: /* @__PURE__ */ new Set(),
|
|
5240
|
-
readOnly: /* @__PURE__ */ new Set([
|
|
5241
|
-
|
|
5242
|
-
"Id",
|
|
5243
|
-
"Port"
|
|
5244
|
-
]),
|
|
5245
|
-
primaryIdentifier: /* @__PURE__ */ new Set(["Id"]),
|
|
5244
|
+
readOnly: /* @__PURE__ */ new Set(["Endpoint", "Port"]),
|
|
5245
|
+
primaryIdentifier: /* @__PURE__ */ new Set(["DBInstanceIdentifier"]),
|
|
5246
5246
|
ccRouteUnavailable: true
|
|
5247
5247
|
}],
|
|
5248
5248
|
["AWS::DocDB::DBSubnetGroup", {
|
|
@@ -8877,12 +8877,12 @@ function malformedOrphansForOrphanRefusalMessage(rawStackName, rawRegion, logica
|
|
|
8877
8877
|
|
|
8878
8878
|
// src/deployment/masked-property-fingerprints/core.ts
|
|
8879
8879
|
const FINGERPRINT_LAYOUT$1 = 1;
|
|
8880
|
-
function canonicalJson$
|
|
8880
|
+
function canonicalJson$5(value) {
|
|
8881
8881
|
if (value === void 0) return "null";
|
|
8882
|
-
if (Array.isArray(value)) return `[${value.map(canonicalJson$
|
|
8882
|
+
if (Array.isArray(value)) return `[${value.map(canonicalJson$5).join(",")}]`;
|
|
8883
8883
|
if (value !== null && typeof value === "object") {
|
|
8884
8884
|
const record = value;
|
|
8885
|
-
return `{${Object.keys(record).filter((key) => record[key] !== void 0).sort().map((key) => `${JSON.stringify(key)}:${canonicalJson$
|
|
8885
|
+
return `{${Object.keys(record).filter((key) => record[key] !== void 0).sort().map((key) => `${JSON.stringify(key)}:${canonicalJson$5(record[key])}`).join(",")}}`;
|
|
8886
8886
|
}
|
|
8887
8887
|
return JSON.stringify(value) ?? "null";
|
|
8888
8888
|
}
|
|
@@ -8903,7 +8903,7 @@ function splitInputFingerprint(entry) {
|
|
|
8903
8903
|
};
|
|
8904
8904
|
}
|
|
8905
8905
|
function templateCarriesNeedle(templateValue, secrets) {
|
|
8906
|
-
const text = canonicalJson$
|
|
8906
|
+
const text = canonicalJson$5(templateValue);
|
|
8907
8907
|
for (const needle of printingCorpusOf(secrets).keys()) {
|
|
8908
8908
|
if (needle.length < 4) continue;
|
|
8909
8909
|
if (text.includes(needle) || text.includes(JSON.stringify(needle).slice(1, -1))) return true;
|
|
@@ -8911,7 +8911,7 @@ function templateCarriesNeedle(templateValue, secrets) {
|
|
|
8911
8911
|
return false;
|
|
8912
8912
|
}
|
|
8913
8913
|
function maskedPropertyFingerprint(templateValue) {
|
|
8914
|
-
const digest = createHash("sha256").update(canonicalJson$
|
|
8914
|
+
const digest = createHash("sha256").update(canonicalJson$5({
|
|
8915
8915
|
layout: FINGERPRINT_LAYOUT$1,
|
|
8916
8916
|
value: templateValue
|
|
8917
8917
|
})).digest("hex");
|
|
@@ -9169,7 +9169,7 @@ async function maskedInputWalk(templateValue, sources, covered) {
|
|
|
9169
9169
|
};
|
|
9170
9170
|
}
|
|
9171
9171
|
function inputFingerprintOf(form, templateValue) {
|
|
9172
|
-
const digest = createHash("sha256").update(canonicalJson$
|
|
9172
|
+
const digest = createHash("sha256").update(canonicalJson$5({
|
|
9173
9173
|
layout: 2,
|
|
9174
9174
|
value: form
|
|
9175
9175
|
})).digest("hex");
|
|
@@ -9220,7 +9220,7 @@ const NESTED_STACK_TYPE$4 = "AWS::CloudFormation::Stack";
|
|
|
9220
9220
|
const NESTED_OUTPUT_PREFIX = "Outputs.";
|
|
9221
9221
|
function carriesSecretValue(value, corpora) {
|
|
9222
9222
|
if (carriesSecretMask(value)) return true;
|
|
9223
|
-
const text = canonicalJson$
|
|
9223
|
+
const text = canonicalJson$5(value);
|
|
9224
9224
|
if (text.includes("{{resolve:")) return true;
|
|
9225
9225
|
for (const corpus of corpora) {
|
|
9226
9226
|
if (corpus === void 0) continue;
|
|
@@ -9269,7 +9269,7 @@ function parameterInputsFor(args) {
|
|
|
9269
9269
|
};
|
|
9270
9270
|
}
|
|
9271
9271
|
function carriesReference(operand) {
|
|
9272
|
-
return canonicalJson$
|
|
9272
|
+
return canonicalJson$5(operand).includes(DYNAMIC_REFERENCE_OPEN);
|
|
9273
9273
|
}
|
|
9274
9274
|
function proof(walk, proven) {
|
|
9275
9275
|
return walk.covered === void 0 ? {} : { proven: proven() };
|
|
@@ -9691,7 +9691,7 @@ function possiblyMaskedKeys(resolvedProps, corpora) {
|
|
|
9691
9691
|
return Object.keys(resolvedProps).filter((key) => {
|
|
9692
9692
|
const value = resolvedProps[key];
|
|
9693
9693
|
if (carriesSecretMask(value) || wholeShortLeaf(value)) return true;
|
|
9694
|
-
const text = canonicalJson$
|
|
9694
|
+
const text = canonicalJson$5(value);
|
|
9695
9695
|
return long.some((needle) => text.includes(needle) || text.includes(JSON.stringify(needle).slice(1, -1)));
|
|
9696
9696
|
});
|
|
9697
9697
|
}
|
|
@@ -10515,9 +10515,9 @@ function rewrittenNameHolds(input, rewrite, viaCloudControl, labels, newResource
|
|
|
10515
10515
|
return unproven(`${wanted}, and cdkd cannot show that ${newResource} holds that name (the provider of this type rewrites the names it sends, so a recorded name is no proof)`);
|
|
10516
10516
|
}
|
|
10517
10517
|
function reverseReplacementNewHoldsName(input) {
|
|
10518
|
-
return holderVerdict(input, ROLLBACK_VOICE);
|
|
10518
|
+
return holderVerdict$1(input, ROLLBACK_VOICE);
|
|
10519
10519
|
}
|
|
10520
|
-
function holderVerdict(input, v) {
|
|
10520
|
+
function holderVerdict$1(input, v) {
|
|
10521
10521
|
const { oldResourceType, newResourceType, requested, recorded, observed, physicalId } = input;
|
|
10522
10522
|
const r = renderer(input.mask ?? ((value) => value));
|
|
10523
10523
|
const newResource = `${v.holder} (${r.shown(physicalId)})`;
|
|
@@ -10581,7 +10581,7 @@ function holderVerdict(input, v) {
|
|
|
10581
10581
|
return HOLDS;
|
|
10582
10582
|
}
|
|
10583
10583
|
function replacementOldHoldsSentName(input) {
|
|
10584
|
-
return holderVerdict({
|
|
10584
|
+
return holderVerdict$1({
|
|
10585
10585
|
oldResourceType: input.createType,
|
|
10586
10586
|
newResourceType: input.holderType,
|
|
10587
10587
|
requested: input.requested,
|
|
@@ -12290,6 +12290,51 @@ function vpcGatewayAttachmentRefFromPhysicalId(physicalId) {
|
|
|
12290
12290
|
if (gatewayId.startsWith("vgw-")) return `VGW${"|"}${vpcId}`;
|
|
12291
12291
|
return physicalId;
|
|
12292
12292
|
}
|
|
12293
|
+
function tgwRouteTablePropagationRefFromPhysicalId(physicalId) {
|
|
12294
|
+
const parts = physicalId.split("|");
|
|
12295
|
+
if (parts.length !== 2) return physicalId;
|
|
12296
|
+
const [routeTableId, attachmentId] = parts;
|
|
12297
|
+
if (!routeTableId.startsWith("tgw-rtb-") || !attachmentId.startsWith("tgw-attach-")) return physicalId;
|
|
12298
|
+
return `${attachmentId}_${routeTableId}`;
|
|
12299
|
+
}
|
|
12300
|
+
function glueConnectionRefFromPhysicalId(physicalId) {
|
|
12301
|
+
const match = /^\d{12}\|(.+)$/s.exec(physicalId);
|
|
12302
|
+
return match ? match[1] : physicalId;
|
|
12303
|
+
}
|
|
12304
|
+
function scheduledActionRefFromPhysicalId(physicalId, stateLookup) {
|
|
12305
|
+
const firstPipe = physicalId.indexOf("|");
|
|
12306
|
+
if (firstPipe < 0) return physicalId;
|
|
12307
|
+
if (physicalId.includes("|", firstPipe + 1)) {
|
|
12308
|
+
const group = stateLookup?.(["AutoScalingGroupName"]);
|
|
12309
|
+
if (group !== void 0 && carriesSecretMask(group)) return group;
|
|
12310
|
+
const suffix = `${"|"}${group ?? ""}`;
|
|
12311
|
+
if (suffix.length > 1 && physicalId.length > suffix.length && physicalId.endsWith(suffix)) return physicalId.slice(0, physicalId.length - suffix.length);
|
|
12312
|
+
}
|
|
12313
|
+
return physicalId.slice(0, firstPipe);
|
|
12314
|
+
}
|
|
12315
|
+
function scalingPolicyRefFromPhysicalId(physicalId) {
|
|
12316
|
+
const lastPipe = physicalId.lastIndexOf("|");
|
|
12317
|
+
return lastPipe < 0 ? physicalId : physicalId.slice(0, lastPipe);
|
|
12318
|
+
}
|
|
12319
|
+
function elasticBeanstalkChildRefFromPhysicalId(physicalId, stateLookup) {
|
|
12320
|
+
const firstPipe = physicalId.indexOf("|");
|
|
12321
|
+
if (firstPipe < 0) return physicalId;
|
|
12322
|
+
if (physicalId.includes("|", firstPipe + 1)) {
|
|
12323
|
+
const application = stateLookup?.(["ApplicationName"]);
|
|
12324
|
+
if (application !== void 0 && carriesSecretMask(application)) return application;
|
|
12325
|
+
const anchored = segmentAfterAnchor(physicalId, application);
|
|
12326
|
+
if (anchored !== void 0) return anchored;
|
|
12327
|
+
}
|
|
12328
|
+
return physicalId.slice(firstPipe + 1);
|
|
12329
|
+
}
|
|
12330
|
+
const REF_FROM_PHYSICAL_ID_HELPERS = /* @__PURE__ */ new Map([
|
|
12331
|
+
["AWS::EC2::TransitGatewayRouteTablePropagation", tgwRouteTablePropagationRefFromPhysicalId],
|
|
12332
|
+
["AWS::Glue::Connection", glueConnectionRefFromPhysicalId],
|
|
12333
|
+
["AWS::AutoScaling::ScheduledAction", scheduledActionRefFromPhysicalId],
|
|
12334
|
+
["AWS::ApplicationAutoScaling::ScalingPolicy", scalingPolicyRefFromPhysicalId],
|
|
12335
|
+
["AWS::ElasticBeanstalk::ConfigurationTemplate", elasticBeanstalkChildRefFromPhysicalId],
|
|
12336
|
+
["AWS::ElasticBeanstalk::ApplicationVersion", elasticBeanstalkChildRefFromPhysicalId]
|
|
12337
|
+
]);
|
|
12293
12338
|
const REF_ARN_ATTRIBUTE_HEALED = /* @__PURE__ */ new Map([["AWS::AppSync::GraphQLApi", "Arn"], ["AWS::S3Vectors::VectorBucket", "VectorBucketArn"]]);
|
|
12294
12339
|
function lacksRecordedRefArn(resource) {
|
|
12295
12340
|
const attribute = REF_ARN_ATTRIBUTE_HEALED.get(resource.resourceType);
|
|
@@ -12333,7 +12378,15 @@ const REF_RETURNS_SEGMENT_AFTER_PIPE = /* @__PURE__ */ new Set([
|
|
|
12333
12378
|
"AWS::AppConfig::Deployment",
|
|
12334
12379
|
"AWS::SSM::MaintenanceWindowTarget",
|
|
12335
12380
|
"AWS::SSM::MaintenanceWindowTask",
|
|
12336
|
-
"AWS::CodeDeploy::DeploymentGroup"
|
|
12381
|
+
"AWS::CodeDeploy::DeploymentGroup",
|
|
12382
|
+
"AWS::GuardDuty::Filter",
|
|
12383
|
+
"AWS::AutoScaling::LifecycleHook",
|
|
12384
|
+
"AWS::ServiceDiscovery::Instance",
|
|
12385
|
+
"AWS::EC2::ClientVpnTargetNetworkAssociation",
|
|
12386
|
+
"AWS::GuardDuty::PublishingDestination",
|
|
12387
|
+
"AWS::GuardDuty::Master",
|
|
12388
|
+
"AWS::GuardDuty::Member",
|
|
12389
|
+
"AWS::EMR::InstanceFleetConfig"
|
|
12337
12390
|
]);
|
|
12338
12391
|
const REF_RETURNS_SEGMENT_BEFORE_FIRST_PIPE = /* @__PURE__ */ new Set([
|
|
12339
12392
|
"AWS::EC2::EIP",
|
|
@@ -12342,7 +12395,11 @@ const REF_RETURNS_SEGMENT_BEFORE_FIRST_PIPE = /* @__PURE__ */ new Set([
|
|
|
12342
12395
|
"AWS::ApiGatewayV2::Authorizer",
|
|
12343
12396
|
"AWS::ApiGatewayV2::ApiMapping",
|
|
12344
12397
|
"AWS::ECS::Service",
|
|
12345
|
-
"AWS::EC2::VPCCidrBlock"
|
|
12398
|
+
"AWS::EC2::VPCCidrBlock",
|
|
12399
|
+
"AWS::SES::ReceiptRule",
|
|
12400
|
+
"AWS::GuardDuty::IPSet",
|
|
12401
|
+
"AWS::GuardDuty::ThreatIntelSet",
|
|
12402
|
+
"AWS::EMR::InstanceGroupConfig"
|
|
12346
12403
|
]);
|
|
12347
12404
|
const REF_RETURNS_NAME_FROM_ARN = /* @__PURE__ */ new Map([["AWS::Events::Rule", ":rule/"], ["AWS::CloudTrail::Trail", ":trail/"]]);
|
|
12348
12405
|
const REF_RETURNS_SEGMENT_AT_INDEX = /* @__PURE__ */ new Map([["AWS::Route53::RecordSet", {
|
|
@@ -12428,6 +12485,8 @@ function cfnRefValueFromPhysicalId(resourceType, physicalId, stateLookup) {
|
|
|
12428
12485
|
if (resourceType === "AWS::S3Tables::Namespace") return s3TablesNamespaceRefFromPhysicalId(physicalId);
|
|
12429
12486
|
if (resourceType === "AWS::EC2::VPCGatewayAttachment") return vpcGatewayAttachmentRefFromPhysicalId(physicalId);
|
|
12430
12487
|
if (resourceType === "AWS::AppSync::GraphQLSchema") return graphQLSchemaCfnId(physicalId);
|
|
12488
|
+
const typeRef = REF_FROM_PHYSICAL_ID_HELPERS.get(resourceType);
|
|
12489
|
+
if (typeRef) return typeRef(physicalId, stateLookup);
|
|
12431
12490
|
if (resourceType === "AWS::Glue::Table") {
|
|
12432
12491
|
const tableName = glueTableRefFromPhysicalId(physicalId, stateLookup);
|
|
12433
12492
|
if (tableName !== void 0) return tableName;
|
|
@@ -19884,7 +19943,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
19884
19943
|
const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
|
|
19885
19944
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
19886
19945
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
19887
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
19946
|
+
const { ASGProvider } = await import("./asg-provider-C8Z9gQh6.js");
|
|
19888
19947
|
const delegateRegion = ambientRegion();
|
|
19889
19948
|
let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
|
|
19890
19949
|
if (asgProvider === void 0) {
|
|
@@ -20038,7 +20097,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
|
|
|
20038
20097
|
const family = SDK_DELETE_FAMILIES.get(resourceType);
|
|
20039
20098
|
const cached = this.sdkDeleteDelegates.get(family);
|
|
20040
20099
|
if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
|
|
20041
|
-
const provider = family === "rds" ? new (await (import("./rds-provider-
|
|
20100
|
+
const provider = family === "rds" ? new (await (import("./rds-provider-DH7JWWZE.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-CXTIUxND.js"))).NeptuneProvider({ region: ccRegion });
|
|
20042
20101
|
this.sdkDeleteDelegates.set(family, {
|
|
20043
20102
|
region: ccRegion,
|
|
20044
20103
|
provider
|
|
@@ -21743,11 +21802,11 @@ function applyNoEchoDeleteValues(properties, recordedLeaves, values) {
|
|
|
21743
21802
|
payload: properties,
|
|
21744
21803
|
unresolved: []
|
|
21745
21804
|
};
|
|
21746
|
-
const byKey = new Map((values?.leaves ?? []).map((leaf) => [canonicalJson$
|
|
21805
|
+
const byKey = new Map((values?.leaves ?? []).map((leaf) => [canonicalJson$6(leaf.coordinate), leaf]));
|
|
21747
21806
|
const entries = [];
|
|
21748
21807
|
const unresolved = [];
|
|
21749
21808
|
for (const coordinate of masked) {
|
|
21750
|
-
const leaf = byKey.get(canonicalJson$
|
|
21809
|
+
const leaf = byKey.get(canonicalJson$6(coordinate));
|
|
21751
21810
|
if (leaf === void 0) unresolved.push(coordinate);
|
|
21752
21811
|
else entries.push({
|
|
21753
21812
|
coordinate,
|
|
@@ -21798,7 +21857,7 @@ async function noEchoDeleteValuesFromResolved(options) {
|
|
|
21798
21857
|
const fingerprinter = options.inputSources === void 0 ? void 0 : inputFingerprinter(templateProps, options.inputSources);
|
|
21799
21858
|
const leaves = [];
|
|
21800
21859
|
for (const coordinate of masked) {
|
|
21801
|
-
if (!nodes.has(canonicalJson$
|
|
21860
|
+
if (!nodes.has(canonicalJson$6(coordinate))) continue;
|
|
21802
21861
|
if (!await fingerprintsUnchanged(record, templateProps, coordinate, fingerprinter)) continue;
|
|
21803
21862
|
const value = valueAtCoordinate(resolvedProperties, coordinate);
|
|
21804
21863
|
if (value === void 0 || carriesSecretMask(value)) continue;
|
|
@@ -21977,7 +22036,7 @@ var TemplateNoEchoReresolver = class TemplateNoEchoReresolver {
|
|
|
21977
22036
|
const bag = await this.noEchoNeedles();
|
|
21978
22037
|
const leaves = [];
|
|
21979
22038
|
for (const coordinate of masked) {
|
|
21980
|
-
const key = canonicalJson$
|
|
22039
|
+
const key = canonicalJson$6(coordinate);
|
|
21981
22040
|
if (!nodes.has(key)) continue;
|
|
21982
22041
|
const node = nodes.get(key)?.node;
|
|
21983
22042
|
if (!readsParametersOnly(node, declared, refused)) continue;
|
|
@@ -22679,7 +22738,7 @@ async function publishToSns(topicArn, request) {
|
|
|
22679
22738
|
}
|
|
22680
22739
|
async function invokeLambda(serviceToken, request) {
|
|
22681
22740
|
if (localCustomResourceRuntimeActive()) {
|
|
22682
|
-
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-
|
|
22741
|
+
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-CFKtxcut.js");
|
|
22683
22742
|
const local = await invokeCustomResourceFunctionLocally({
|
|
22684
22743
|
lambda: this.lambdaClient,
|
|
22685
22744
|
s3: this.s3Client
|
|
@@ -23407,8 +23466,12 @@ const NESTED_REQUIRED = /* @__PURE__ */ new Map([
|
|
|
23407
23466
|
["FilesystemConfigurations.EfsAccessPoint", ["AccessPointArn", "MountPath"]],
|
|
23408
23467
|
["FilesystemConfigurations.S3FilesAccessPoint", ["AccessPointArn", "MountPath"]],
|
|
23409
23468
|
["FilesystemConfigurations.SessionStorage", ["MountPath"]],
|
|
23469
|
+
["HooksConfiguration.Build.Warmup", ["Action"]],
|
|
23470
|
+
["HooksConfiguration.Build.Warmup.Action", ["HttpPost"]],
|
|
23471
|
+
["HooksConfiguration.Build.Warmup.Action.HttpPost", ["Path"]],
|
|
23410
23472
|
["NetworkConfiguration", ["NetworkMode"]],
|
|
23411
23473
|
["NetworkConfiguration.NetworkModeConfig", ["SecurityGroups", "Subnets"]],
|
|
23474
|
+
["ResourceConfigurations", ["MinimumMemoryInMiB"]],
|
|
23412
23475
|
["WorkloadIdentityDetails", ["WorkloadIdentityArn"]]
|
|
23413
23476
|
])],
|
|
23414
23477
|
["AWS::Budgets::Budget", /* @__PURE__ */ new Map([
|
|
@@ -24843,7 +24906,7 @@ const PROPERTY_SHAPES = /* @__PURE__ */ new Map([
|
|
|
24843
24906
|
["AWS::AppSync::Resolver", "{\"CachingConfig\":\"object\",\"CachingConfig.CachingKeys\":\"array\",\"PipelineConfig\":\"object\",\"PipelineConfig.Functions\":\"array\",\"Runtime\":\"object\",\"SyncConfig\":\"object\",\"SyncConfig.LambdaConflictHandlerConfig\":\"object\"}"],
|
|
24844
24907
|
["AWS::AutoScaling::AutoScalingGroup", "{\"AvailabilityZoneDistribution\":\"object\",\"AvailabilityZoneIds\":\"array\",\"AvailabilityZoneImpairmentPolicy\":\"object\",\"AvailabilityZones\":\"array\",\"CapacityReservationSpecification\":\"object\",\"CapacityReservationSpecification.CapacityReservationTarget\":\"object\",\"CapacityReservationSpecification.CapacityReservationTarget.CapacityReservationIds\":\"array\",\"CapacityReservationSpecification.CapacityReservationTarget.CapacityReservationResourceGroupArns\":\"array\",\"InstanceLifecyclePolicy\":\"object\",\"InstanceLifecyclePolicy.RetentionTriggers\":\"object\",\"InstanceMaintenancePolicy\":\"object\",\"LaunchTemplate\":\"object\",\"LifecycleHookSpecificationList\":\"array\",\"LifecycleHookSpecificationList[]\":\"object\",\"LoadBalancerNames\":\"array\",\"MetricsCollection\":\"array\",\"MetricsCollection[]\":\"object\",\"MetricsCollection[].Metrics\":\"array\",\"MixedInstancesPolicy\":\"object\",\"MixedInstancesPolicy.InstancesDistribution\":\"object\",\"MixedInstancesPolicy.InstancesDistribution.DistributionSegments\":\"array\",\"MixedInstancesPolicy.InstancesDistribution.DistributionSegments[]\":\"object\",\"MixedInstancesPolicy.InstancesDistribution.DistributionSegments[].TargetCapacityTypes\":\"array\",\"MixedInstancesPolicy.LaunchTemplate\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.LaunchTemplateSpecification\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides\":\"array\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[]\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.AcceleratorCount\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.AcceleratorManufacturers\":\"array\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.AcceleratorNames\":\"array\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.AcceleratorTotalMemoryMiB\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.AcceleratorTypes\":\"array\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.AllowedInstanceTypes\":\"array\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.BaselineEbsBandwidthMbps\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.BaselinePerformanceFactors\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.BaselinePerformanceFactors.Cpu\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.BaselinePerformanceFactors.Cpu.References\":\"array\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.BaselinePerformanceFactors.Cpu.References[]\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.CpuManufacturers\":\"array\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.ExcludedInstanceTypes\":\"array\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.InstanceGenerations\":\"array\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.LocalStorageTypes\":\"array\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.MemoryGiBPerVCpu\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.MemoryMiB\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.NetworkBandwidthGbps\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.NetworkInterfaceCount\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.TotalLocalStorageGB\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].InstanceRequirements.VCpuCount\":\"object\",\"MixedInstancesPolicy.LaunchTemplate.Overrides[].LaunchTemplateSpecification\":\"object\",\"NotificationConfiguration\":\"object\",\"NotificationConfiguration.NotificationTypes\":\"array\",\"NotificationConfigurations\":\"array\",\"NotificationConfigurations[]\":\"object\",\"NotificationConfigurations[].NotificationTypes\":\"array\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"TargetGroupARNs\":\"array\",\"TerminationPolicies\":\"array\",\"TrafficSources\":\"array\",\"TrafficSources[]\":\"object\",\"VPCZoneIdentifier\":\"array\"}"],
|
|
24845
24908
|
["AWS::BedrockAgentCore::Evaluator", "{\"EvaluatorConfig\":\"object\",\"EvaluatorConfig.CodeBased\":\"object\",\"EvaluatorConfig.CodeBased.LambdaConfig\":\"object\",\"EvaluatorConfig.Derived\":\"object\",\"EvaluatorConfig.Derived.ModelConfig\":\"object\",\"EvaluatorConfig.Derived.ModelConfig.BedrockEvaluatorModelConfig\":\"object\",\"EvaluatorConfig.Derived.ModelConfig.BedrockEvaluatorModelConfig.AdditionalModelRequestFields\":\"object\",\"EvaluatorConfig.Derived.ModelConfig.BedrockEvaluatorModelConfig.InferenceConfig\":\"object\",\"EvaluatorConfig.Derived.ModelConfig.BedrockEvaluatorModelConfig.InferenceConfig.StopSequences\":\"array\",\"EvaluatorConfig.Derived.ModelConfig.ResponsesEvaluatorModelConfig\":\"object\",\"EvaluatorConfig.Derived.ModelConfig.ResponsesEvaluatorModelConfig.Reasoning\":\"object\",\"EvaluatorConfig.LlmAsAJudge\":\"object\",\"EvaluatorConfig.LlmAsAJudge.ModelConfig\":\"object\",\"EvaluatorConfig.LlmAsAJudge.ModelConfig.BedrockEvaluatorModelConfig\":\"object\",\"EvaluatorConfig.LlmAsAJudge.ModelConfig.BedrockEvaluatorModelConfig.AdditionalModelRequestFields\":\"object\",\"EvaluatorConfig.LlmAsAJudge.ModelConfig.BedrockEvaluatorModelConfig.InferenceConfig\":\"object\",\"EvaluatorConfig.LlmAsAJudge.ModelConfig.BedrockEvaluatorModelConfig.InferenceConfig.StopSequences\":\"array\",\"EvaluatorConfig.LlmAsAJudge.ModelConfig.ResponsesEvaluatorModelConfig\":\"object\",\"EvaluatorConfig.LlmAsAJudge.ModelConfig.ResponsesEvaluatorModelConfig.Reasoning\":\"object\",\"EvaluatorConfig.LlmAsAJudge.RatingScale\":\"object\",\"EvaluatorConfig.LlmAsAJudge.RatingScale.Categorical\":\"array\",\"EvaluatorConfig.LlmAsAJudge.RatingScale.Categorical[]\":\"object\",\"EvaluatorConfig.LlmAsAJudge.RatingScale.MultiDimensional\":\"array\",\"EvaluatorConfig.LlmAsAJudge.RatingScale.MultiDimensional[]\":\"object\",\"EvaluatorConfig.LlmAsAJudge.RatingScale.MultiDimensional[].DimensionRatingScale\":\"object\",\"EvaluatorConfig.LlmAsAJudge.RatingScale.MultiDimensional[].DimensionRatingScale.Categorical\":\"array\",\"EvaluatorConfig.LlmAsAJudge.RatingScale.MultiDimensional[].DimensionRatingScale.Categorical[]\":\"object\",\"EvaluatorConfig.LlmAsAJudge.RatingScale.MultiDimensional[].DimensionRatingScale.Numerical\":\"array\",\"EvaluatorConfig.LlmAsAJudge.RatingScale.MultiDimensional[].DimensionRatingScale.Numerical[]\":\"object\",\"EvaluatorConfig.LlmAsAJudge.RatingScale.Numerical\":\"array\",\"EvaluatorConfig.LlmAsAJudge.RatingScale.Numerical[]\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\"}"],
|
|
24846
|
-
["AWS::BedrockAgentCore::Runtime", "{\"AgentRuntimeArtifact\":\"object\",\"AgentRuntimeArtifact.CodeConfiguration\":\"object\",\"AgentRuntimeArtifact.CodeConfiguration.Code\":\"object\",\"AgentRuntimeArtifact.CodeConfiguration.Code.S3\":\"object\",\"AgentRuntimeArtifact.CodeConfiguration.EntryPoint\":\"array\",\"AgentRuntimeArtifact.ContainerConfiguration\":\"object\",\"AuthorizerConfiguration\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedAudience\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedClients\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedScopes\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedWorkloadConfiguration\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedWorkloadConfiguration.HostingEnvironments\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedWorkloadConfiguration.HostingEnvironments[]\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedWorkloadConfiguration.WorkloadIdentities\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.CustomClaims\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.CustomClaims[]\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.CustomClaims[].AuthorizingClaimMatchValue\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.CustomClaims[].AuthorizingClaimMatchValue.ClaimMatchValue\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.CustomClaims[].AuthorizingClaimMatchValue.ClaimMatchValue.MatchValueStringList\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint.ManagedVpcResource\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint.ManagedVpcResource.SecurityGroupIds\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint.ManagedVpcResource.SubnetIds\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint.ManagedVpcResource.Tags\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint.SelfManagedLatticeResource\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[]\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint.ManagedVpcResource\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint.ManagedVpcResource.SecurityGroupIds\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint.ManagedVpcResource.SubnetIds\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint.ManagedVpcResource.Tags\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint.SelfManagedLatticeResource\":\"object\",\"CapacityProviderConfiguration\":\"object\",\"EnvironmentVariables\":\"object\",\"FilesystemConfigurations\":\"array\",\"FilesystemConfigurations[]\":\"object\",\"FilesystemConfigurations[].CapacityProviderVolume\":\"object\",\"FilesystemConfigurations[].EfsAccessPoint\":\"object\",\"FilesystemConfigurations[].S3FilesAccessPoint\":\"object\",\"FilesystemConfigurations[].SessionStorage\":\"object\",\"LifecycleConfiguration\":\"object\",\"NetworkConfiguration\":\"object\",\"NetworkConfiguration.NetworkModeConfig\":\"object\",\"NetworkConfiguration.NetworkModeConfig.SecurityGroups\":\"array\",\"NetworkConfiguration.NetworkModeConfig.Subnets\":\"array\",\"RequestHeaderConfiguration\":\"object\",\"RequestHeaderConfiguration.RequestHeaderAllowlist\":\"array\",\"Tags\":\"object\",\"WorkloadIdentityDetails\":\"object\"}"],
|
|
24909
|
+
["AWS::BedrockAgentCore::Runtime", "{\"AgentRuntimeArtifact\":\"object\",\"AgentRuntimeArtifact.CodeConfiguration\":\"object\",\"AgentRuntimeArtifact.CodeConfiguration.Code\":\"object\",\"AgentRuntimeArtifact.CodeConfiguration.Code.S3\":\"object\",\"AgentRuntimeArtifact.CodeConfiguration.EntryPoint\":\"array\",\"AgentRuntimeArtifact.ContainerConfiguration\":\"object\",\"AuthorizerConfiguration\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedAudience\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedClients\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedScopes\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedWorkloadConfiguration\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedWorkloadConfiguration.HostingEnvironments\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedWorkloadConfiguration.HostingEnvironments[]\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.AllowedWorkloadConfiguration.WorkloadIdentities\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.CustomClaims\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.CustomClaims[]\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.CustomClaims[].AuthorizingClaimMatchValue\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.CustomClaims[].AuthorizingClaimMatchValue.ClaimMatchValue\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.CustomClaims[].AuthorizingClaimMatchValue.ClaimMatchValue.MatchValueStringList\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint.ManagedVpcResource\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint.ManagedVpcResource.SecurityGroupIds\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint.ManagedVpcResource.SubnetIds\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint.ManagedVpcResource.Tags\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpoint.SelfManagedLatticeResource\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[]\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint.ManagedVpcResource\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint.ManagedVpcResource.SecurityGroupIds\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint.ManagedVpcResource.SubnetIds\":\"array\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint.ManagedVpcResource.Tags\":\"object\",\"AuthorizerConfiguration.CustomJWTAuthorizer.PrivateEndpointOverrides[].PrivateEndpoint.SelfManagedLatticeResource\":\"object\",\"CapacityProviderConfiguration\":\"object\",\"EnvironmentVariables\":\"object\",\"FilesystemConfigurations\":\"array\",\"FilesystemConfigurations[]\":\"object\",\"FilesystemConfigurations[].CapacityProviderVolume\":\"object\",\"FilesystemConfigurations[].EfsAccessPoint\":\"object\",\"FilesystemConfigurations[].S3FilesAccessPoint\":\"object\",\"FilesystemConfigurations[].SessionStorage\":\"object\",\"HooksConfiguration\":\"object\",\"HooksConfiguration.Build\":\"object\",\"HooksConfiguration.Build.Warmup\":\"object\",\"HooksConfiguration.Build.Warmup.Action\":\"object\",\"HooksConfiguration.Build.Warmup.Action.HttpPost\":\"object\",\"LifecycleConfiguration\":\"object\",\"NetworkConfiguration\":\"object\",\"NetworkConfiguration.NetworkModeConfig\":\"object\",\"NetworkConfiguration.NetworkModeConfig.SecurityGroups\":\"array\",\"NetworkConfiguration.NetworkModeConfig.Subnets\":\"array\",\"RequestHeaderConfiguration\":\"object\",\"RequestHeaderConfiguration.RequestHeaderAllowlist\":\"array\",\"ResourceConfigurations\":\"array\",\"ResourceConfigurations[]\":\"object\",\"Tags\":\"object\",\"WorkloadIdentityDetails\":\"object\"}"],
|
|
24847
24910
|
["AWS::Budgets::Budget", "{\"Budget\":\"object\",\"Budget.AutoAdjustData\":\"object\",\"Budget.AutoAdjustData.HistoricalOptions\":\"object\",\"Budget.BudgetLimit\":\"object\",\"Budget.CostFilters\":\"object\",\"Budget.CostTypes\":\"object\",\"Budget.FilterExpression\":\"object\",\"Budget.FilterExpression.And\":\"array\",\"Budget.FilterExpression.CostCategories\":\"object\",\"Budget.FilterExpression.CostCategories.MatchOptions\":\"array\",\"Budget.FilterExpression.CostCategories.Values\":\"array\",\"Budget.FilterExpression.Dimensions\":\"object\",\"Budget.FilterExpression.Dimensions.MatchOptions\":\"array\",\"Budget.FilterExpression.Dimensions.Values\":\"array\",\"Budget.FilterExpression.Or\":\"array\",\"Budget.FilterExpression.Tags\":\"object\",\"Budget.FilterExpression.Tags.MatchOptions\":\"array\",\"Budget.FilterExpression.Tags.Values\":\"array\",\"Budget.Metrics\":\"array\",\"Budget.PlannedBudgetLimits\":\"object\",\"Budget.TimePeriod\":\"object\",\"NotificationsWithSubscribers\":\"array\",\"NotificationsWithSubscribers[]\":\"object\",\"NotificationsWithSubscribers[].Notification\":\"object\",\"NotificationsWithSubscribers[].Subscribers\":\"array\",\"NotificationsWithSubscribers[].Subscribers[]\":\"object\",\"ResourceTags\":\"array\",\"ResourceTags[]\":\"object\"}"],
|
|
24848
24911
|
["AWS::CertificateManager::Certificate", "{\"DomainValidationOptions\":\"array\",\"DomainValidationOptions[]\":\"object\",\"SubjectAlternativeNames\":\"array\",\"Tags\":\"array\",\"Tags[]\":\"object\"}"],
|
|
24849
24912
|
["AWS::CloudFormation::Stack", "{\"Capabilities\":\"array\",\"NotificationARNs\":\"array\",\"Outputs\":\"array\",\"Outputs[]\":\"object\",\"Parameters\":\"object\",\"StackPolicyBody\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\"}"],
|
|
@@ -24854,8 +24917,9 @@ const PROPERTY_SHAPES = /* @__PURE__ */ new Map([
|
|
|
24854
24917
|
["AWS::CloudWatch::Alarm", "{\"ActionConfiguration\":\"object\",\"ActionConfiguration.AlarmTagsPropagation\":\"object\",\"ActionConfiguration.AlarmTagsPropagation.ExcludedTagKeys\":\"array\",\"ActionConfiguration.AlarmTagsPropagation.IncludedTagKeys\":\"array\",\"AlarmActions\":\"array\",\"Dimensions\":\"array\",\"Dimensions[]\":\"object\",\"EvaluationCriteria\":\"object\",\"EvaluationCriteria.PromQLCriteria\":\"object\",\"EvaluationWindow\":\"object\",\"EvaluationWindow.SlidingWindow\":\"object\",\"EvaluationWindow.WallClockWindow\":\"object\",\"InsufficientDataActions\":\"array\",\"Metrics\":\"array\",\"Metrics[]\":\"object\",\"Metrics[].MetricStat\":\"object\",\"Metrics[].MetricStat.Metric\":\"object\",\"Metrics[].MetricStat.Metric.Dimensions\":\"array\",\"Metrics[].MetricStat.Metric.Dimensions[]\":\"object\",\"OKActions\":\"array\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"WarmUpConfiguration\":\"object\"}"],
|
|
24855
24918
|
["AWS::CodeBuild::Project", "{\"Artifacts\":\"object\",\"BuildBatchConfig\":\"object\",\"BuildBatchConfig.Restrictions\":\"object\",\"BuildBatchConfig.Restrictions.ComputeTypesAllowed\":\"array\",\"BuildBatchConfig.Restrictions.FleetsAllowed\":\"array\",\"Cache\":\"object\",\"Cache.Modes\":\"array\",\"Environment\":\"object\",\"Environment.DockerServer\":\"object\",\"Environment.DockerServer.SecurityGroupIds\":\"array\",\"Environment.EnvironmentVariables\":\"array\",\"Environment.EnvironmentVariables[]\":\"object\",\"Environment.Fleet\":\"object\",\"Environment.RegistryCredential\":\"object\",\"FileSystemLocations\":\"array\",\"FileSystemLocations[]\":\"object\",\"LogsConfig\":\"object\",\"LogsConfig.CloudWatchLogs\":\"object\",\"LogsConfig.S3Logs\":\"object\",\"SecondaryArtifacts\":\"array\",\"SecondaryArtifacts[]\":\"object\",\"SecondarySourceVersions\":\"array\",\"SecondarySourceVersions[]\":\"object\",\"SecondarySources\":\"array\",\"SecondarySources[]\":\"object\",\"SecondarySources[].Auth\":\"object\",\"SecondarySources[].BuildStatusConfig\":\"object\",\"SecondarySources[].GitSubmodulesConfig\":\"object\",\"Source\":\"object\",\"Source.Auth\":\"object\",\"Source.BuildStatusConfig\":\"object\",\"Source.GitSubmodulesConfig\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"Triggers\":\"object\",\"Triggers.FilterGroups\":\"array\",\"Triggers.FilterGroups[]\":\"array\",\"Triggers.FilterGroups[][]\":\"object\",\"Triggers.PullRequestBuildPolicy\":\"object\",\"Triggers.PullRequestBuildPolicy.ApproverRoles\":\"array\",\"Triggers.ScopeConfiguration\":\"object\",\"VpcConfig\":\"object\",\"VpcConfig.SecurityGroupIds\":\"array\",\"VpcConfig.Subnets\":\"array\"}"],
|
|
24856
24919
|
["AWS::CodeCommit::Repository", "{\"Code\":\"object\",\"Code.S3\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"Triggers\":\"array\",\"Triggers[]\":\"object\",\"Triggers[].Branches\":\"array\",\"Triggers[].Events\":\"array\"}"],
|
|
24857
|
-
["AWS::Cognito::UserPool", "{\"AccountRecoverySetting\":\"object\",\"AccountRecoverySetting.RecoveryMechanisms\":\"array\",\"AccountRecoverySetting.RecoveryMechanisms[]\":\"object\",\"AdminCreateUserConfig\":\"object\",\"AdminCreateUserConfig.InviteMessageTemplate\":\"object\",\"AliasAttributes\":\"array\",\"AutoVerifiedAttributes\":\"array\",\"DeviceConfiguration\":\"object\",\"EmailConfiguration\":\"object\",\"EnabledMfas\":\"array\",\"IssuerConfiguration\":\"object\",\"KeyConfiguration\":\"object\",\"LambdaConfig\":\"object\",\"LambdaConfig.CustomEmailSender\":\"object\",\"LambdaConfig.CustomSMSSender\":\"object\",\"LambdaConfig.InboundFederation\":\"object\",\"LambdaConfig.PreTokenGenerationConfig\":\"object\",\"Policies\":\"object\",\"Policies.PasswordPolicy\":\"object\",\"Policies.SignInPolicy\":\"object\",\"Policies.SignInPolicy.AllowedFirstAuthFactors\":\"array\",\"Schema\":\"array\",\"Schema[]\":\"object\",\"Schema[].NumberAttributeConstraints\":\"object\",\"Schema[].StringAttributeConstraints\":\"object\",\"SmsConfiguration\":\"object\",\"SmsConfiguration.EumsSms\":\"object\",\"UserAttributeUpdateSettings\":\"object\",\"UserAttributeUpdateSettings.AttributesRequireVerificationBeforeUpdate\":\"array\",\"UserPoolAddOns\":\"object\",\"UserPoolAddOns.AdvancedSecurityAdditionalFlows\":\"object\",\"UserPoolTags\":\"object\",\"UsernameAttributes\":\"array\",\"UsernameConfiguration\":\"object\",\"VerificationMessageTemplate\":\"object\"}"],
|
|
24920
|
+
["AWS::Cognito::UserPool", "{\"AccountRecoverySetting\":\"object\",\"AccountRecoverySetting.RecoveryMechanisms\":\"array\",\"AccountRecoverySetting.RecoveryMechanisms[]\":\"object\",\"AdminCreateUserConfig\":\"object\",\"AdminCreateUserConfig.InviteMessageTemplate\":\"object\",\"AliasAttributes\":\"array\",\"AutoVerifiedAttributes\":\"array\",\"DcrConfiguration\":\"object\",\"DcrConfiguration.AllowedScopes\":\"array\",\"DcrConfiguration.AuthenticatedGrantTypes\":\"array\",\"DcrConfiguration.OpenDcrGrantTypes\":\"array\",\"DeviceConfiguration\":\"object\",\"EmailConfiguration\":\"object\",\"EnabledMfas\":\"array\",\"IssuerConfiguration\":\"object\",\"KeyConfiguration\":\"object\",\"LambdaConfig\":\"object\",\"LambdaConfig.CustomEmailSender\":\"object\",\"LambdaConfig.CustomSMSSender\":\"object\",\"LambdaConfig.InboundFederation\":\"object\",\"LambdaConfig.PreTokenGenerationConfig\":\"object\",\"Policies\":\"object\",\"Policies.PasswordPolicy\":\"object\",\"Policies.SignInPolicy\":\"object\",\"Policies.SignInPolicy.AllowedFirstAuthFactors\":\"array\",\"Schema\":\"array\",\"Schema[]\":\"object\",\"Schema[].NumberAttributeConstraints\":\"object\",\"Schema[].StringAttributeConstraints\":\"object\",\"SmsConfiguration\":\"object\",\"SmsConfiguration.EumsSms\":\"object\",\"UserAttributeUpdateSettings\":\"object\",\"UserAttributeUpdateSettings.AttributesRequireVerificationBeforeUpdate\":\"array\",\"UserPoolAddOns\":\"object\",\"UserPoolAddOns.AdvancedSecurityAdditionalFlows\":\"object\",\"UserPoolTags\":\"object\",\"UsernameAttributes\":\"array\",\"UsernameConfiguration\":\"object\",\"VerificationMessageTemplate\":\"object\"}"],
|
|
24858
24921
|
["AWS::DLM::LifecyclePolicy", "{\"CrossRegionCopyTargets\":\"array\",\"CrossRegionCopyTargets[]\":\"object\",\"Exclusions\":\"object\",\"Exclusions.ExcludeTags\":\"array\",\"Exclusions.ExcludeTags[]\":\"object\",\"Exclusions.ExcludeVolumeTypes\":\"array\",\"PolicyDetails\":\"object\",\"PolicyDetails.Actions\":\"array\",\"PolicyDetails.Actions[]\":\"object\",\"PolicyDetails.Actions[].CrossRegionCopy\":\"array\",\"PolicyDetails.Actions[].CrossRegionCopy[]\":\"object\",\"PolicyDetails.Actions[].CrossRegionCopy[].EncryptionConfiguration\":\"object\",\"PolicyDetails.Actions[].CrossRegionCopy[].RetainRule\":\"object\",\"PolicyDetails.CrossRegionCopyTargets\":\"array\",\"PolicyDetails.CrossRegionCopyTargets[]\":\"object\",\"PolicyDetails.EventSource\":\"object\",\"PolicyDetails.EventSource.Parameters\":\"object\",\"PolicyDetails.EventSource.Parameters.SnapshotOwner\":\"array\",\"PolicyDetails.Exclusions\":\"object\",\"PolicyDetails.Exclusions.ExcludeTags\":\"array\",\"PolicyDetails.Exclusions.ExcludeTags[]\":\"object\",\"PolicyDetails.Exclusions.ExcludeVolumeTypes\":\"array\",\"PolicyDetails.Parameters\":\"object\",\"PolicyDetails.Parameters.ExcludeDataVolumeTags\":\"array\",\"PolicyDetails.Parameters.ExcludeDataVolumeTags[]\":\"object\",\"PolicyDetails.ResourceLocations\":\"array\",\"PolicyDetails.ResourceTypes\":\"array\",\"PolicyDetails.Schedules\":\"array\",\"PolicyDetails.Schedules[]\":\"object\",\"PolicyDetails.Schedules[].ArchiveRule\":\"object\",\"PolicyDetails.Schedules[].ArchiveRule.RetainRule\":\"object\",\"PolicyDetails.Schedules[].ArchiveRule.RetainRule.RetentionArchiveTier\":\"object\",\"PolicyDetails.Schedules[].CreateRule\":\"object\",\"PolicyDetails.Schedules[].CreateRule.Scripts\":\"array\",\"PolicyDetails.Schedules[].CreateRule.Scripts[]\":\"object\",\"PolicyDetails.Schedules[].CreateRule.Scripts[].Stages\":\"array\",\"PolicyDetails.Schedules[].CreateRule.Times\":\"array\",\"PolicyDetails.Schedules[].CrossRegionCopyRules\":\"array\",\"PolicyDetails.Schedules[].CrossRegionCopyRules[]\":\"object\",\"PolicyDetails.Schedules[].CrossRegionCopyRules[].DeprecateRule\":\"object\",\"PolicyDetails.Schedules[].CrossRegionCopyRules[].RetainRule\":\"object\",\"PolicyDetails.Schedules[].DeprecateRule\":\"object\",\"PolicyDetails.Schedules[].FastRestoreRule\":\"object\",\"PolicyDetails.Schedules[].FastRestoreRule.AvailabilityZoneIds\":\"array\",\"PolicyDetails.Schedules[].FastRestoreRule.AvailabilityZones\":\"array\",\"PolicyDetails.Schedules[].RetainRule\":\"object\",\"PolicyDetails.Schedules[].ShareRules\":\"array\",\"PolicyDetails.Schedules[].ShareRules[]\":\"object\",\"PolicyDetails.Schedules[].ShareRules[].TargetAccounts\":\"array\",\"PolicyDetails.Schedules[].TagsToAdd\":\"array\",\"PolicyDetails.Schedules[].TagsToAdd[]\":\"object\",\"PolicyDetails.Schedules[].VariableTags\":\"array\",\"PolicyDetails.Schedules[].VariableTags[]\":\"object\",\"PolicyDetails.TargetTags\":\"array\",\"PolicyDetails.TargetTags[]\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\"}"],
|
|
24922
|
+
["AWS::DocDB::DBInstance", "{\"Tags\":\"array\",\"Tags[]\":\"object\"}"],
|
|
24859
24923
|
["AWS::DocDB::DBSubnetGroup", "{\"SubnetIds\":\"array\",\"Tags\":\"array\",\"Tags[]\":\"object\"}"],
|
|
24860
24924
|
["AWS::DynamoDB::GlobalTable", "{\"AttributeDefinitions\":\"array\",\"AttributeDefinitions[]\":\"object\",\"GlobalSecondaryIndexes\":\"array\",\"GlobalSecondaryIndexes[]\":\"object\",\"GlobalSecondaryIndexes[].KeySchema\":\"array\",\"GlobalSecondaryIndexes[].KeySchema[]\":\"object\",\"GlobalSecondaryIndexes[].Projection\":\"object\",\"GlobalSecondaryIndexes[].Projection.NonKeyAttributes\":\"array\",\"GlobalSecondaryIndexes[].ReadOnDemandThroughputSettings\":\"object\",\"GlobalSecondaryIndexes[].ReadProvisionedThroughputSettings\":\"object\",\"GlobalSecondaryIndexes[].WarmThroughput\":\"object\",\"GlobalSecondaryIndexes[].WriteOnDemandThroughputSettings\":\"object\",\"GlobalSecondaryIndexes[].WriteProvisionedThroughputSettings\":\"object\",\"GlobalSecondaryIndexes[].WriteProvisionedThroughputSettings.WriteCapacityAutoScalingSettings\":\"object\",\"GlobalSecondaryIndexes[].WriteProvisionedThroughputSettings.WriteCapacityAutoScalingSettings.TargetTrackingScalingPolicyConfiguration\":\"object\",\"GlobalTableWitnesses\":\"array\",\"GlobalTableWitnesses[]\":\"object\",\"KeySchema\":\"array\",\"KeySchema[]\":\"object\",\"LocalSecondaryIndexes\":\"array\",\"LocalSecondaryIndexes[]\":\"object\",\"LocalSecondaryIndexes[].KeySchema\":\"array\",\"LocalSecondaryIndexes[].KeySchema[]\":\"object\",\"LocalSecondaryIndexes[].Projection\":\"object\",\"LocalSecondaryIndexes[].Projection.NonKeyAttributes\":\"array\",\"ReadOnDemandThroughputSettings\":\"object\",\"ReadProvisionedThroughputSettings\":\"object\",\"Replicas\":\"array\",\"Replicas[]\":\"object\",\"Replicas[].ContributorInsightsSpecification\":\"object\",\"Replicas[].GlobalSecondaryIndexes\":\"array\",\"Replicas[].GlobalSecondaryIndexes[]\":\"object\",\"Replicas[].GlobalSecondaryIndexes[].ContributorInsightsSpecification\":\"object\",\"Replicas[].GlobalSecondaryIndexes[].ReadOnDemandThroughputSettings\":\"object\",\"Replicas[].GlobalSecondaryIndexes[].ReadProvisionedThroughputSettings\":\"object\",\"Replicas[].GlobalSecondaryIndexes[].ReadProvisionedThroughputSettings.ReadCapacityAutoScalingSettings\":\"object\",\"Replicas[].GlobalSecondaryIndexes[].ReadProvisionedThroughputSettings.ReadCapacityAutoScalingSettings.TargetTrackingScalingPolicyConfiguration\":\"object\",\"Replicas[].KinesisStreamSpecification\":\"object\",\"Replicas[].PointInTimeRecoverySpecification\":\"object\",\"Replicas[].ReadOnDemandThroughputSettings\":\"object\",\"Replicas[].ReadProvisionedThroughputSettings\":\"object\",\"Replicas[].ReadProvisionedThroughputSettings.ReadCapacityAutoScalingSettings\":\"object\",\"Replicas[].ReadProvisionedThroughputSettings.ReadCapacityAutoScalingSettings.TargetTrackingScalingPolicyConfiguration\":\"object\",\"Replicas[].ReplicaStreamSpecification\":\"object\",\"Replicas[].ReplicaStreamSpecification.ResourcePolicy\":\"object\",\"Replicas[].ReplicaStreamSpecification.ResourcePolicy.PolicyDocument\":\"object\",\"Replicas[].ReplicaStreamSpecification.Tags\":\"array\",\"Replicas[].ReplicaStreamSpecification.Tags[]\":\"object\",\"Replicas[].ResourcePolicy\":\"object\",\"Replicas[].ResourcePolicy.PolicyDocument\":\"object\",\"Replicas[].SSESpecification\":\"object\",\"Replicas[].Tags\":\"array\",\"Replicas[].Tags[]\":\"object\",\"SSESpecification\":\"object\",\"StreamSpecification\":\"object\",\"TimeToLiveSpecification\":\"object\",\"VectorIndexes\":\"array\",\"VectorIndexes[]\":\"object\",\"VectorIndexes[].Projection\":\"object\",\"VectorIndexes[].Projection.NonKeyAttributes\":\"array\",\"VectorIndexes[].SearchSchema\":\"array\",\"VectorIndexes[].SearchSchema[]\":\"object\",\"VectorIndexes[].VectorAttribute\":\"object\",\"WarmThroughput\":\"object\",\"WriteOnDemandThroughputSettings\":\"object\",\"WriteProvisionedThroughputSettings\":\"object\",\"WriteProvisionedThroughputSettings.WriteCapacityAutoScalingSettings\":\"object\",\"WriteProvisionedThroughputSettings.WriteCapacityAutoScalingSettings.TargetTrackingScalingPolicyConfiguration\":\"object\"}"],
|
|
24861
24925
|
["AWS::DynamoDB::Table", "{\"AttributeDefinitions\":\"array\",\"AttributeDefinitions[]\":\"object\",\"ContributorInsightsSpecification\":\"object\",\"GlobalSecondaryIndexes\":\"array\",\"GlobalSecondaryIndexes[]\":\"object\",\"GlobalSecondaryIndexes[].ContributorInsightsSpecification\":\"object\",\"GlobalSecondaryIndexes[].KeySchema\":\"array\",\"GlobalSecondaryIndexes[].KeySchema[]\":\"object\",\"GlobalSecondaryIndexes[].OnDemandThroughput\":\"object\",\"GlobalSecondaryIndexes[].Projection\":\"object\",\"GlobalSecondaryIndexes[].Projection.NonKeyAttributes\":\"array\",\"GlobalSecondaryIndexes[].ProvisionedThroughput\":\"object\",\"GlobalSecondaryIndexes[].WarmThroughput\":\"object\",\"ImportSourceSpecification\":\"object\",\"ImportSourceSpecification.InputFormatOptions\":\"object\",\"ImportSourceSpecification.InputFormatOptions.Csv\":\"object\",\"ImportSourceSpecification.InputFormatOptions.Csv.HeaderList\":\"array\",\"ImportSourceSpecification.S3BucketSource\":\"object\",\"KeySchema[]\":\"object\",\"KinesisStreamSpecification\":\"object\",\"LocalSecondaryIndexes\":\"array\",\"LocalSecondaryIndexes[]\":\"object\",\"LocalSecondaryIndexes[].KeySchema\":\"array\",\"LocalSecondaryIndexes[].KeySchema[]\":\"object\",\"LocalSecondaryIndexes[].Projection\":\"object\",\"LocalSecondaryIndexes[].Projection.NonKeyAttributes\":\"array\",\"OnDemandThroughput\":\"object\",\"PointInTimeRecoverySpecification\":\"object\",\"ProvisionedThroughput\":\"object\",\"ResourcePolicy\":\"object\",\"ResourcePolicy.PolicyDocument\":\"object\",\"SSESpecification\":\"object\",\"StreamSpecification\":\"object\",\"StreamSpecification.ResourcePolicy\":\"object\",\"StreamSpecification.ResourcePolicy.PolicyDocument\":\"object\",\"StreamSpecification.Tags\":\"array\",\"StreamSpecification.Tags[]\":\"object\",\"Tags\":\"array\",\"Tags[]\":\"object\",\"TimeToLiveSpecification\":\"object\",\"VectorIndexes\":\"array\",\"VectorIndexes[]\":\"object\",\"VectorIndexes[].Projection\":\"object\",\"VectorIndexes[].Projection.NonKeyAttributes\":\"array\",\"VectorIndexes[].SearchSchema\":\"array\",\"VectorIndexes[].SearchSchema[]\":\"object\",\"VectorIndexes[].VectorAttribute\":\"object\",\"WarmThroughput\":\"object\"}"],
|
|
@@ -26279,6 +26343,7 @@ var ReplacementRunState = class {
|
|
|
26279
26343
|
supersededEntries = /* @__PURE__ */ new Map();
|
|
26280
26344
|
retainedOldOnReplacement = /* @__PURE__ */ new Set();
|
|
26281
26345
|
replacedOldMaySurvive = /* @__PURE__ */ new Map();
|
|
26346
|
+
replacedOldIdentity = /* @__PURE__ */ new Map();
|
|
26282
26347
|
recreatedUnderSameId = /* @__PURE__ */ new Set();
|
|
26283
26348
|
restoredLostChildren = /* @__PURE__ */ new Set();
|
|
26284
26349
|
updatesThatSentNothing = /* @__PURE__ */ new Set();
|
|
@@ -26670,7 +26735,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
|
|
|
26670
26735
|
if (resourceType !== "AWS::RDS::DBInstance") return false;
|
|
26671
26736
|
if (region === void 0 || region === "") return false;
|
|
26672
26737
|
const mask = input.mask ?? ((text) => text);
|
|
26673
|
-
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-
|
|
26738
|
+
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-DPeTyeJe.js").then((n) => n.l);
|
|
26674
26739
|
let reason;
|
|
26675
26740
|
try {
|
|
26676
26741
|
const live = await describeDBInstanceInRegion(physicalId, region);
|
|
@@ -28776,12 +28841,273 @@ function noteRolledBackCreate(scope, op, record) {
|
|
|
28776
28841
|
scope.onRolledBackCreate?.(create);
|
|
28777
28842
|
}
|
|
28778
28843
|
|
|
28844
|
+
// src/deployment/type-change-guard.ts
|
|
28845
|
+
function equalIdNamesDifferentResources(input) {
|
|
28846
|
+
if (input.resourceType === "AWS::Lambda::Permission") return permissionsOnDifferentFunctions(input.oldProperties, input.newProperties);
|
|
28847
|
+
if (input.resourceType !== "AWS::Glue::Table" || input.physicalId === void 0) return false;
|
|
28848
|
+
const oldDb = input.oldProperties?.["DatabaseName"];
|
|
28849
|
+
const newDb = input.newProperties?.["DatabaseName"];
|
|
28850
|
+
if (typeof oldDb !== "string" || typeof newDb !== "string") return false;
|
|
28851
|
+
if (carriesSecretMask(oldDb) || carriesSecretMask(newDb)) return false;
|
|
28852
|
+
if (segmentAfterAnchor(input.physicalId, oldDb) === void 0 || segmentAfterAnchor(input.physicalId, newDb) === void 0) return false;
|
|
28853
|
+
return oldDb !== newDb;
|
|
28854
|
+
}
|
|
28855
|
+
function permissionsOnDifferentFunctions(oldProperties, newProperties) {
|
|
28856
|
+
const oldFn = oldProperties?.["FunctionName"];
|
|
28857
|
+
const newFn = newProperties?.["FunctionName"];
|
|
28858
|
+
if (typeof oldFn !== "string" || typeof newFn !== "string") return false;
|
|
28859
|
+
if (carriesSecretMask(oldFn) || carriesSecretMask(newFn)) return false;
|
|
28860
|
+
const oldName = parseLambdaFunctionAddress(oldFn)?.name;
|
|
28861
|
+
const newName = parseLambdaFunctionAddress(newFn)?.name;
|
|
28862
|
+
return oldName !== void 0 && newName !== void 0 && oldName !== newName;
|
|
28863
|
+
}
|
|
28864
|
+
function equalIdNamesSameResource(input) {
|
|
28865
|
+
if (input.oldType === input.newType) return !equalIdNamesDifferentResources({
|
|
28866
|
+
resourceType: input.oldType,
|
|
28867
|
+
physicalId: input.physicalId,
|
|
28868
|
+
oldProperties: input.oldProperties,
|
|
28869
|
+
newProperties: input.newProperties
|
|
28870
|
+
});
|
|
28871
|
+
return isCustomResource(input.oldType) && isCustomResource(input.newType) && input.createLayer !== "cc-api";
|
|
28872
|
+
}
|
|
28873
|
+
const NESTED_STACK_RESOURCE_TYPE = "AWS::CloudFormation::Stack";
|
|
28874
|
+
function findNestedStackTypeChanges(input) {
|
|
28875
|
+
const found = [];
|
|
28876
|
+
for (const [logicalId, change] of input.changes) {
|
|
28877
|
+
if (!Object.hasOwn(input.stateResources, logicalId)) continue;
|
|
28878
|
+
const currentResource = input.stateResources[logicalId];
|
|
28879
|
+
if (!currentResource) continue;
|
|
28880
|
+
const currentType = currentResource.resourceType;
|
|
28881
|
+
const desiredType = change.resourceType;
|
|
28882
|
+
if (currentType === desiredType) continue;
|
|
28883
|
+
const intoNested = desiredType === NESTED_STACK_RESOURCE_TYPE;
|
|
28884
|
+
if (!intoNested && !(currentType === NESTED_STACK_RESOURCE_TYPE)) continue;
|
|
28885
|
+
found.push({
|
|
28886
|
+
logicalId,
|
|
28887
|
+
currentType,
|
|
28888
|
+
desiredType,
|
|
28889
|
+
physicalId: currentResource.physicalId,
|
|
28890
|
+
direction: intoNested ? "into-nested-stack" : "out-of-nested-stack"
|
|
28891
|
+
});
|
|
28892
|
+
}
|
|
28893
|
+
return found;
|
|
28894
|
+
}
|
|
28895
|
+
function renderNestedStackTypeChangeRefusal(typeChanges, stackName) {
|
|
28896
|
+
const rows = typeChanges.map((tc) => {
|
|
28897
|
+
return `${` - ${tc.logicalId}: Type changes from ${tc.currentType} to ${tc.desiredType} (the existing ${tc.currentType} is ${tc.physicalId}).`}\n${tc.direction === "into-nested-stack" ? ` Replacing a single resource BY a nested stack is not supported: the create half of the replacement would deploy a whole child stack "${stackName}~${tc.logicalId}" as one row, while ${tc.physicalId} is still recorded under this logical id.` : ` Replacing a nested stack BY a single resource is not supported: a replacement deletes its old half as a best-effort cleanup step whose failure is only a warning, so the child stack "${stackName}~${tc.logicalId}" and every resource it owns could be left behind, untracked, under a deploy that reports success.`}`;
|
|
28898
|
+
});
|
|
28899
|
+
return `Refusing to deploy ${stackName}: ` + (typeChanges.length === 1 ? `a resource changes its Type ` : `${typeChanges.length} resources change their Type `) + `into or out of ${NESTED_STACK_RESOURCE_TYPE}, which cdkd does not replace in place.\n${rows.join("\n")}\n Deploy this as two changes instead: give the new resource a DIFFERENT logical id (in CDK, rename the construct) so the existing row is deleted through its own type's provider and the new one is created under its own — or remove the resource in one deploy and add its replacement in the next. There is no flag that overrides this refusal.`;
|
|
28900
|
+
}
|
|
28901
|
+
|
|
28902
|
+
// src/deployment/rollback-executor/plan/classify.ts
|
|
28903
|
+
function journaledOldTypes(op) {
|
|
28904
|
+
return {
|
|
28905
|
+
stamped: nonEmptyString(op.previousResourceType) ? op.previousResourceType : void 0,
|
|
28906
|
+
recorded: nonEmptyString(op.previousState?.resourceType) ? op.previousState.resourceType : void 0
|
|
28907
|
+
};
|
|
28908
|
+
}
|
|
28909
|
+
function resolveReplacementOldType(op) {
|
|
28910
|
+
const { stamped, recorded } = journaledOldTypes(op);
|
|
28911
|
+
if (stamped !== void 0 && recorded !== void 0 && stamped !== recorded) return {
|
|
28912
|
+
ok: false,
|
|
28913
|
+
reason: `the journal names two different types for the old resource (previousResourceType ${refusalResourceType(stamped)}, previousState.resourceType ${refusalResourceType(recorded)})`
|
|
28914
|
+
};
|
|
28915
|
+
const oldType = stamped ?? recorded;
|
|
28916
|
+
if (oldType === void 0) return {
|
|
28917
|
+
ok: false,
|
|
28918
|
+
reason: "the journal does not record the old resource's type"
|
|
28919
|
+
};
|
|
28920
|
+
if (oldType !== op.resourceType && (oldType === "AWS::CloudFormation::Stack" || op.resourceType === "AWS::CloudFormation::Stack")) return {
|
|
28921
|
+
ok: false,
|
|
28922
|
+
reason: `it is a Type change between ${refusalResourceType(oldType)} and ${refusalResourceType(op.resourceType)}, and cdkd does not replace a nested stack with, or by, a single resource`
|
|
28923
|
+
};
|
|
28924
|
+
return {
|
|
28925
|
+
ok: true,
|
|
28926
|
+
oldType
|
|
28927
|
+
};
|
|
28928
|
+
}
|
|
28929
|
+
function unroutableReplacementError(op, reason, remedyCtx) {
|
|
28930
|
+
const remedy = orphanRemedy(op.logicalId, remedyCtx);
|
|
28931
|
+
return ownRemedyError(markNonRetryable(new CdkdError(`Cannot reverse the replacement of ${refusalLogicalId(op.logicalId)} (${refusalResourceType(op.resourceType)}): ${reason}, so cdkd will not guess which provider re-creates the old resource. Nothing was changed. The journal is kept: fix forward with ${cdkdRemedy("cdkd deploy")}` + (remedy.offered ? ", or leave this resource as it is and let the rest of the rollback proceed by re-running with the command below." : ".") + `${remedy.clause}${remedy.line}`, "ROLLBACK_REPLACEMENT_UNROUTABLE")));
|
|
28932
|
+
}
|
|
28933
|
+
function isTypeChangeOp(op) {
|
|
28934
|
+
const { stamped, recorded } = journaledOldTypes(op);
|
|
28935
|
+
return stamped !== void 0 && stamped !== op.resourceType || recorded !== void 0 && recorded !== op.resourceType;
|
|
28936
|
+
}
|
|
28937
|
+
function isReplacementOp(op) {
|
|
28938
|
+
if (movedIdLeftForCleanup(op)) return false;
|
|
28939
|
+
return op.changeType === "UPDATE" && op.previousState?.physicalId !== void 0 && (op.previousState.physicalId !== op.physicalId && op.wasReplaced !== false || sameIdRecreated(op) || isTypeChangeOp(op) || equalIdNamesDifferentResources({
|
|
28940
|
+
resourceType: op.resourceType,
|
|
28941
|
+
physicalId: op.physicalId,
|
|
28942
|
+
oldProperties: op.previousState.properties,
|
|
28943
|
+
newProperties: op.properties
|
|
28944
|
+
}));
|
|
28945
|
+
}
|
|
28946
|
+
function movedIdLeftForCleanup(op) {
|
|
28947
|
+
return op.changeType === "UPDATE" && op.oldPhysicalIdLeftForCleanup === true && isCustomResourceType(op.resourceType) && op.wasReplaced === true && op.oldDeletedBeforeCreate !== true && typeof op.physicalId === "string" && typeof op.previousState?.physicalId === "string" && op.previousState.physicalId !== op.physicalId && !isTypeChangeOp(op);
|
|
28948
|
+
}
|
|
28949
|
+
function sameIdRecreated(op) {
|
|
28950
|
+
return op.oldDeletedBeforeCreate === true && op.wasReplaced !== false && op.physicalId !== void 0 && op.previousState?.physicalId === op.physicalId;
|
|
28951
|
+
}
|
|
28952
|
+
function sameIdReversalDone(op, current) {
|
|
28953
|
+
const before = op.previousState.properties ?? {};
|
|
28954
|
+
const forward = op.properties;
|
|
28955
|
+
const now = current.properties ?? {};
|
|
28956
|
+
if (forward === void 0) return "undecidable";
|
|
28957
|
+
const own = (bag, key) => Object.hasOwn(bag, key) ? bag[key] : void 0;
|
|
28958
|
+
const changed = [.../* @__PURE__ */ new Set([...Object.keys(before), ...Object.keys(forward)])].filter((key) => !deepEqual$2(own(before, key), own(forward, key)));
|
|
28959
|
+
if (changed.length === 0) return holdsRedactedLeaf(before) ? "undecidable" : deepEqual$2(now, before);
|
|
28960
|
+
return changed.every((key) => deepEqual$2(own(now, key), own(before, key)));
|
|
28961
|
+
}
|
|
28962
|
+
function holdsRedactedLeaf(value) {
|
|
28963
|
+
if (typeof value === "string") return value.includes("***");
|
|
28964
|
+
if (value === null || typeof value !== "object") return false;
|
|
28965
|
+
return Object.values(value).some(holdsRedactedLeaf);
|
|
28966
|
+
}
|
|
28967
|
+
function sameIdReversalUndecidable(op, current) {
|
|
28968
|
+
return sameIdRecreated(op) && current !== void 0 && sameIdReversalDone(op, current) === "undecidable";
|
|
28969
|
+
}
|
|
28970
|
+
function deepEqual$2(a, b) {
|
|
28971
|
+
if (a === b) return true;
|
|
28972
|
+
if (a == null || b == null) return a === b;
|
|
28973
|
+
if (typeof a !== typeof b) return false;
|
|
28974
|
+
if (typeof a !== "object") return false;
|
|
28975
|
+
if (Array.isArray(a) || Array.isArray(b)) {
|
|
28976
|
+
if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;
|
|
28977
|
+
return a.every((v, i) => deepEqual$2(v, b[i]));
|
|
28978
|
+
}
|
|
28979
|
+
const ao = a;
|
|
28980
|
+
const bo = b;
|
|
28981
|
+
const ak = Object.keys(ao);
|
|
28982
|
+
if (ak.length !== Object.keys(bo).length) return false;
|
|
28983
|
+
for (const k of ak) {
|
|
28984
|
+
if (!Object.prototype.hasOwnProperty.call(bo, k)) return false;
|
|
28985
|
+
if (!deepEqual$2(ao[k], bo[k])) return false;
|
|
28986
|
+
}
|
|
28987
|
+
return true;
|
|
28988
|
+
}
|
|
28989
|
+
function classifyRollbackOp(op, stateResources, orphanLogicalIds) {
|
|
28990
|
+
const replacement = isReplacementOp(op);
|
|
28991
|
+
if (op.changeType === "DELETE") return "unrecoverable-delete";
|
|
28992
|
+
if (orphanLogicalIds.has(op.logicalId)) return "orphan-flag";
|
|
28993
|
+
if (op.changeType === "CREATE") {
|
|
28994
|
+
const current = stateResources[op.logicalId];
|
|
28995
|
+
if (!current) return "skip-already-done";
|
|
28996
|
+
if (op.physicalId !== void 0 && current.physicalId !== op.physicalId) return "skip-mismatch";
|
|
28997
|
+
const policy = effectiveDeletionPolicy(current.resourceType, current.deletionPolicy, current.properties);
|
|
28998
|
+
if (policy === "Retain") return "orphan-retain";
|
|
28999
|
+
if (policy === "Snapshot") return "delete-with-final-snapshot";
|
|
29000
|
+
return "delete";
|
|
29001
|
+
}
|
|
29002
|
+
const current = stateResources[op.logicalId];
|
|
29003
|
+
if (!current) return "skip-absent";
|
|
29004
|
+
if (replacement) {
|
|
29005
|
+
const oldTypes = journaledOldTypes(op);
|
|
29006
|
+
const oldTypeForCompare = isTypeChangeOp(op) ? oldTypes.stamped ?? oldTypes.recorded : void 0;
|
|
29007
|
+
const sameTypeAsOld = oldTypeForCompare === void 0 || !nonEmptyString(current.resourceType) || current.resourceType === oldTypeForCompare;
|
|
29008
|
+
if (current.physicalId === op.previousState.physicalId && sameTypeAsOld && (!sameIdRecreated(op) || sameIdReversalDone(op, current) === true) && !equalIdNamesDifferentResources({
|
|
29009
|
+
resourceType: op.resourceType,
|
|
29010
|
+
physicalId: current.physicalId,
|
|
29011
|
+
oldProperties: op.previousState.properties,
|
|
29012
|
+
newProperties: current.properties
|
|
29013
|
+
})) return "skip-already-done";
|
|
29014
|
+
const retainedOld = op.oldResourceRetained ?? op.previousState.updateReplacePolicy === "Retain";
|
|
29015
|
+
if (rollbackCannotAddress(current, op.resourceType, current.provisionedBy ?? op.provisionedBy, current.physicalId)) {
|
|
29016
|
+
if (!resolveReplacementOldType(op).ok) return "refuse-replacement-routing";
|
|
29017
|
+
return retainedOld ? "reverse-replacement-readopt" : "reverse-replacement";
|
|
29018
|
+
}
|
|
29019
|
+
if (retainedOld && op.physicalId !== void 0 && !hasAddressablePhysicalId(op)) {
|
|
29020
|
+
if (!resolveReplacementOldType(op).ok) return "refuse-replacement-routing";
|
|
29021
|
+
return "reverse-replacement-readopt";
|
|
29022
|
+
}
|
|
29023
|
+
if (op.physicalId !== void 0 && current.physicalId !== op.physicalId) {
|
|
29024
|
+
if (sameTypeAsOld && deepEqual$2(current.properties, op.previousState.properties)) return "skip-already-done";
|
|
29025
|
+
return "skip-mismatch";
|
|
29026
|
+
}
|
|
29027
|
+
if (!resolveReplacementOldType(op).ok) return "refuse-replacement-routing";
|
|
29028
|
+
return op.oldResourceRetained ?? op.previousState.updateReplacePolicy === "Retain" ? "reverse-replacement-readopt" : "reverse-replacement";
|
|
29029
|
+
}
|
|
29030
|
+
if (op.previousState && deepEqual$2(current.properties, op.previousState.properties)) {
|
|
29031
|
+
if (templatePoliciesDiffer(current, op.previousState)) return "restore-policies";
|
|
29032
|
+
return "skip-already-done";
|
|
29033
|
+
}
|
|
29034
|
+
if (movedIdLeftForCleanup(op) && current.physicalId !== op.physicalId) return "skip-mismatch";
|
|
29035
|
+
return "revert";
|
|
29036
|
+
}
|
|
29037
|
+
function templatePoliciesDiffer(current, previous) {
|
|
29038
|
+
return current.deletionPolicy !== previous.deletionPolicy || current.updateReplacePolicy !== previous.updateReplacePolicy;
|
|
29039
|
+
}
|
|
29040
|
+
function withPreviousPolicies(current, previous) {
|
|
29041
|
+
const { deletionPolicy: _deletionPolicy, updateReplacePolicy: _updateReplacePolicy, ...rest } = current;
|
|
29042
|
+
return {
|
|
29043
|
+
...rest,
|
|
29044
|
+
...previous.deletionPolicy !== void 0 && { deletionPolicy: previous.deletionPolicy },
|
|
29045
|
+
...previous.updateReplacePolicy !== void 0 && { updateReplacePolicy: previous.updateReplacePolicy }
|
|
29046
|
+
};
|
|
29047
|
+
}
|
|
29048
|
+
|
|
28779
29049
|
// src/deployment/rollback-executor/replaced-survivor.ts
|
|
28780
29050
|
function replacedDeleteFailureVerdict(error) {
|
|
28781
29051
|
if (isDeleteStarted(error)) return "unconfirmed";
|
|
28782
29052
|
return isRefusedByName(error) ? "kept" : "unconfirmed";
|
|
28783
29053
|
}
|
|
28784
29054
|
const REPLACED_SURVIVOR_PROBE_TIMEOUT_MS = 3e4;
|
|
29055
|
+
function isForeignSurvivor(verdict) {
|
|
29056
|
+
return verdict.startsWith("foreign");
|
|
29057
|
+
}
|
|
29058
|
+
const SURVIVOR_LIVE_READ_TYPES = { "AWS::S3::Bucket": "us-east-1" };
|
|
29059
|
+
const DEFERRAL_IDENTITY_TIMEOUT_MS = 1e4;
|
|
29060
|
+
async function readDeferralIdentity(registry, oldType, physicalId, region) {
|
|
29061
|
+
if (SURVIVOR_LIVE_READ_TYPES[oldType] === void 0) return void 0;
|
|
29062
|
+
let timer;
|
|
29063
|
+
try {
|
|
29064
|
+
const provider = registry.getProvider(oldType);
|
|
29065
|
+
if (typeof provider.replacedSurvivorIdentity !== "function") return void 0;
|
|
29066
|
+
const read = await Promise.race([provider.replacedSurvivorIdentity(physicalId, oldType, { expectedRegion: region }), new Promise((resolve) => {
|
|
29067
|
+
timer = setTimeout(() => resolve(void 0), DEFERRAL_IDENTITY_TIMEOUT_MS);
|
|
29068
|
+
})]);
|
|
29069
|
+
return read?.kind === "owned" ? read.identity : void 0;
|
|
29070
|
+
} catch {
|
|
29071
|
+
return;
|
|
29072
|
+
} finally {
|
|
29073
|
+
clearTimeout(timer);
|
|
29074
|
+
}
|
|
29075
|
+
}
|
|
29076
|
+
function survivorKey(oldType, physicalId) {
|
|
29077
|
+
return JSON.stringify([oldType, physicalId]);
|
|
29078
|
+
}
|
|
29079
|
+
async function snapshotSurvivorIdentities(ctx, ops) {
|
|
29080
|
+
const reads = [];
|
|
29081
|
+
for (const op of ops) {
|
|
29082
|
+
if (op.oldResourceMaySurvive === void 0) continue;
|
|
29083
|
+
const oldType = resolveReplacementOldType(op);
|
|
29084
|
+
const physicalId = op.previousState?.physicalId;
|
|
29085
|
+
if (!oldType.ok || SURVIVOR_LIVE_READ_TYPES[oldType.oldType] === void 0) continue;
|
|
29086
|
+
if (typeof physicalId !== "string" || physicalId === "") continue;
|
|
29087
|
+
const type = oldType.oldType;
|
|
29088
|
+
reads.push(liveSurvivorRead(ctx, type, physicalId).then((read) => {
|
|
29089
|
+
(ctx.survivorIdentities ??= /* @__PURE__ */ new Map()).set(survivorKey(type, physicalId), read);
|
|
29090
|
+
}));
|
|
29091
|
+
}
|
|
29092
|
+
await Promise.all(reads);
|
|
29093
|
+
}
|
|
29094
|
+
function snapshotSegmentSurvivors(ctx, segments) {
|
|
29095
|
+
return snapshotSurvivorIdentities(ctx, segments.flatMap((segment) => segment.operations));
|
|
29096
|
+
}
|
|
29097
|
+
async function liveSurvivorRead(ctx, oldType, physicalId) {
|
|
29098
|
+
let timer;
|
|
29099
|
+
try {
|
|
29100
|
+
const provider = ctx.providerRegistry.getProvider(oldType);
|
|
29101
|
+
if (typeof provider.replacedSurvivorIdentity !== "function") return { kind: "unknown" };
|
|
29102
|
+
return await Promise.race([provider.replacedSurvivorIdentity(physicalId, oldType, { expectedRegion: ctx.region }), new Promise((resolve) => {
|
|
29103
|
+
timer = setTimeout(() => resolve({ kind: "unknown" }), REPLACED_SURVIVOR_PROBE_TIMEOUT_MS);
|
|
29104
|
+
})]);
|
|
29105
|
+
} catch {
|
|
29106
|
+
return { kind: "unknown" };
|
|
29107
|
+
} finally {
|
|
29108
|
+
clearTimeout(timer);
|
|
29109
|
+
}
|
|
29110
|
+
}
|
|
28785
29111
|
const SURVIVOR_IDENTITY_ATTRIBUTES = { "AWS::IAM::Role": "RoleId" };
|
|
28786
29112
|
const INTERRUPT_POLL_MS = 250;
|
|
28787
29113
|
async function probeReplacedSurvivor(s, oldType, timeoutMs = REPLACED_SURVIVOR_PROBE_TIMEOUT_MS) {
|
|
@@ -28805,9 +29131,15 @@ async function probeReplacedSurvivor(s, oldType, timeoutMs = REPLACED_SURVIVOR_P
|
|
|
28805
29131
|
}
|
|
28806
29132
|
}
|
|
28807
29133
|
async function readSurvivor(s, oldType) {
|
|
28808
|
-
const
|
|
28809
|
-
const physicalId = prev?.physicalId;
|
|
29134
|
+
const physicalId = s.op.previousState?.physicalId;
|
|
28810
29135
|
if (typeof physicalId !== "string" || physicalId === "") return "unknown";
|
|
29136
|
+
const existence = await readExistence(s, physicalId, oldType);
|
|
29137
|
+
if (existence === "gone") return "gone";
|
|
29138
|
+
if (SURVIVOR_LIVE_READ_TYPES[oldType] !== void 0) return holderVerdict(s, physicalId, oldType, existence);
|
|
29139
|
+
return existence === "exists" ? identityVerdict(s, physicalId, oldType) : existence;
|
|
29140
|
+
}
|
|
29141
|
+
async function readExistence(s, physicalId, oldType) {
|
|
29142
|
+
const prev = s.op.previousState;
|
|
28811
29143
|
try {
|
|
28812
29144
|
const { provider } = s.ctx.providerRegistry.getProviderFor({
|
|
28813
29145
|
resourceType: oldType,
|
|
@@ -28819,11 +29151,40 @@ async function readSurvivor(s, oldType) {
|
|
|
28819
29151
|
if (read === void 0) return "unreadable";
|
|
28820
29152
|
if (typeof read !== "object" || read === null || Array.isArray(read)) return "unknown";
|
|
28821
29153
|
if (Object.keys(read).length === 0) return "unreadable";
|
|
28822
|
-
return
|
|
29154
|
+
return "exists";
|
|
28823
29155
|
} catch {
|
|
28824
29156
|
return "unknown";
|
|
28825
29157
|
}
|
|
28826
29158
|
}
|
|
29159
|
+
async function holderVerdict(s, physicalId, oldType, existence) {
|
|
29160
|
+
const live = () => withReplayDeletePrinting(s, () => liveSurvivorRead(s.ctx, oldType, physicalId));
|
|
29161
|
+
const snapshot = s.ctx.survivorIdentities?.get(survivorKey(oldType, physicalId));
|
|
29162
|
+
const verdict = judgeHolder(s, oldType, existence, snapshot ?? await live(), snapshot);
|
|
29163
|
+
if (snapshot === void 0 || verdict !== "exists" && verdict !== "unknown" && verdict !== "unreadable") return verdict;
|
|
29164
|
+
const now = await live();
|
|
29165
|
+
if (now.kind === "foreign") return foreignHolder(now);
|
|
29166
|
+
if (now.kind === "gone") return "vacated";
|
|
29167
|
+
if (verdict !== "exists") return verdict;
|
|
29168
|
+
const journaled = s.op.oldResourceIdentity;
|
|
29169
|
+
if (journaled?.split("|")[0] === SURVIVOR_LIVE_READ_TYPES[oldType] && now.kind === "owned" && now.identity !== void 0 && now.identity !== journaled) return "foreign-recreated";
|
|
29170
|
+
return "exists";
|
|
29171
|
+
}
|
|
29172
|
+
function foreignHolder(read) {
|
|
29173
|
+
return read.seen === "other-account" ? "foreign-account" : "foreign-region";
|
|
29174
|
+
}
|
|
29175
|
+
function judgeHolder(s, oldType, existence, read, snapshot) {
|
|
29176
|
+
if (read.kind === "foreign") return foreignHolder(read);
|
|
29177
|
+
if (read.kind === "gone") {
|
|
29178
|
+
if (snapshot !== void 0) return existence === "exists" ? "foreign-appeared" : "free-unreadable";
|
|
29179
|
+
return existence === "exists" ? "gone" : existence;
|
|
29180
|
+
}
|
|
29181
|
+
if (read.kind === "unknown") return existence === "exists" ? "exists-unverified" : "owner-unverified";
|
|
29182
|
+
const journaled = s.op.oldResourceIdentity;
|
|
29183
|
+
if (journaled !== void 0 && read.identity !== void 0 && read.identity !== journaled) return journaled.split("|")[0] === SURVIVOR_LIVE_READ_TYPES[oldType] ? "foreign-recreated" : "modified";
|
|
29184
|
+
if (existence !== "exists") return existence;
|
|
29185
|
+
if (journaled === void 0) return "exists";
|
|
29186
|
+
return read.identity === void 0 ? "unknown" : "exists";
|
|
29187
|
+
}
|
|
28827
29188
|
async function identityVerdict(s, physicalId, oldType) {
|
|
28828
29189
|
const key = SURVIVOR_IDENTITY_ATTRIBUTES[oldType];
|
|
28829
29190
|
if (key === void 0) return "exists";
|
|
@@ -28847,6 +29208,9 @@ async function deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType,
|
|
|
28847
29208
|
noEchoDeleteValues
|
|
28848
29209
|
})) {
|
|
28849
29210
|
run.replacedOldMaySurvive.set(logicalId, "deferred");
|
|
29211
|
+
const identity = await readDeferralIdentity(deps.providerRegistry(), oldResourceType, currentResource.physicalId, deps.stackRegion);
|
|
29212
|
+
if (identity !== void 0) run.replacedOldIdentity.set(logicalId, identity);
|
|
29213
|
+
else run.replacedOldIdentity.delete(logicalId);
|
|
28850
29214
|
run.deferredReplacedDeletes?.set(logicalId, {
|
|
28851
29215
|
physicalId: currentResource.physicalId,
|
|
28852
29216
|
resourceType: oldResourceType,
|
|
@@ -29217,7 +29581,7 @@ function handleOutputResolutionFailure(deps, error, outputKey, outputs, secrets,
|
|
|
29217
29581
|
}
|
|
29218
29582
|
|
|
29219
29583
|
// src/analyzer/skipped-outputs.ts
|
|
29220
|
-
function canonicalJson$
|
|
29584
|
+
function canonicalJson$4(value) {
|
|
29221
29585
|
return JSON.stringify(value, (_key, v) => {
|
|
29222
29586
|
if (v !== null && typeof v === "object" && !Array.isArray(v)) {
|
|
29223
29587
|
const sorted = Object.create(null);
|
|
@@ -29247,7 +29611,7 @@ function skippedOutputDigest(template, outputKey) {
|
|
|
29247
29611
|
sections[section] = section === "Parameters" ? withNoEchoDefaultsMasked(body) : body;
|
|
29248
29612
|
}
|
|
29249
29613
|
const entry = template.Outputs?.[outputKey];
|
|
29250
|
-
return createHash("sha256").update(canonicalJson$
|
|
29614
|
+
return createHash("sha256").update(canonicalJson$4({
|
|
29251
29615
|
output: entry,
|
|
29252
29616
|
template: sections
|
|
29253
29617
|
})).digest("hex");
|
|
@@ -30103,7 +30467,7 @@ function keepPersistedPlainLeaves(redacted, raw, persisted) {
|
|
|
30103
30467
|
}
|
|
30104
30468
|
return out ?? redacted;
|
|
30105
30469
|
}
|
|
30106
|
-
if (!isPlainRecord$
|
|
30470
|
+
if (!isPlainRecord$5(raw) || !isPlainRecord$5(persisted) || !isPlainRecord$5(redacted)) return redacted;
|
|
30107
30471
|
let out;
|
|
30108
30472
|
for (const key of Object.keys(redacted)) {
|
|
30109
30473
|
if (!hasOwnKey(raw, key) || !hasOwnKey(persisted, key)) continue;
|
|
@@ -30114,7 +30478,7 @@ function keepPersistedPlainLeaves(redacted, raw, persisted) {
|
|
|
30114
30478
|
}
|
|
30115
30479
|
return out ?? redacted;
|
|
30116
30480
|
}
|
|
30117
|
-
function isPlainRecord$
|
|
30481
|
+
function isPlainRecord$5(value) {
|
|
30118
30482
|
return typeof value === "object" && value !== null && !Array.isArray(value) && hasPlainPrototype(value);
|
|
30119
30483
|
}
|
|
30120
30484
|
|
|
@@ -30635,211 +30999,6 @@ function serializedDocument(document) {
|
|
|
30635
30999
|
return isRedactedRecordedValue(document) ? void 0 : JSON.stringify(document);
|
|
30636
31000
|
}
|
|
30637
31001
|
|
|
30638
|
-
// src/deployment/type-change-guard.ts
|
|
30639
|
-
function equalIdNamesDifferentResources(input) {
|
|
30640
|
-
if (input.resourceType === "AWS::Lambda::Permission") return permissionsOnDifferentFunctions(input.oldProperties, input.newProperties);
|
|
30641
|
-
if (input.resourceType !== "AWS::Glue::Table" || input.physicalId === void 0) return false;
|
|
30642
|
-
const oldDb = input.oldProperties?.["DatabaseName"];
|
|
30643
|
-
const newDb = input.newProperties?.["DatabaseName"];
|
|
30644
|
-
if (typeof oldDb !== "string" || typeof newDb !== "string") return false;
|
|
30645
|
-
if (carriesSecretMask(oldDb) || carriesSecretMask(newDb)) return false;
|
|
30646
|
-
if (segmentAfterAnchor(input.physicalId, oldDb) === void 0 || segmentAfterAnchor(input.physicalId, newDb) === void 0) return false;
|
|
30647
|
-
return oldDb !== newDb;
|
|
30648
|
-
}
|
|
30649
|
-
function permissionsOnDifferentFunctions(oldProperties, newProperties) {
|
|
30650
|
-
const oldFn = oldProperties?.["FunctionName"];
|
|
30651
|
-
const newFn = newProperties?.["FunctionName"];
|
|
30652
|
-
if (typeof oldFn !== "string" || typeof newFn !== "string") return false;
|
|
30653
|
-
if (carriesSecretMask(oldFn) || carriesSecretMask(newFn)) return false;
|
|
30654
|
-
const oldName = parseLambdaFunctionAddress(oldFn)?.name;
|
|
30655
|
-
const newName = parseLambdaFunctionAddress(newFn)?.name;
|
|
30656
|
-
return oldName !== void 0 && newName !== void 0 && oldName !== newName;
|
|
30657
|
-
}
|
|
30658
|
-
function equalIdNamesSameResource(input) {
|
|
30659
|
-
if (input.oldType === input.newType) return !equalIdNamesDifferentResources({
|
|
30660
|
-
resourceType: input.oldType,
|
|
30661
|
-
physicalId: input.physicalId,
|
|
30662
|
-
oldProperties: input.oldProperties,
|
|
30663
|
-
newProperties: input.newProperties
|
|
30664
|
-
});
|
|
30665
|
-
return isCustomResource(input.oldType) && isCustomResource(input.newType) && input.createLayer !== "cc-api";
|
|
30666
|
-
}
|
|
30667
|
-
const NESTED_STACK_RESOURCE_TYPE = "AWS::CloudFormation::Stack";
|
|
30668
|
-
function findNestedStackTypeChanges(input) {
|
|
30669
|
-
const found = [];
|
|
30670
|
-
for (const [logicalId, change] of input.changes) {
|
|
30671
|
-
if (!Object.hasOwn(input.stateResources, logicalId)) continue;
|
|
30672
|
-
const currentResource = input.stateResources[logicalId];
|
|
30673
|
-
if (!currentResource) continue;
|
|
30674
|
-
const currentType = currentResource.resourceType;
|
|
30675
|
-
const desiredType = change.resourceType;
|
|
30676
|
-
if (currentType === desiredType) continue;
|
|
30677
|
-
const intoNested = desiredType === NESTED_STACK_RESOURCE_TYPE;
|
|
30678
|
-
if (!intoNested && !(currentType === NESTED_STACK_RESOURCE_TYPE)) continue;
|
|
30679
|
-
found.push({
|
|
30680
|
-
logicalId,
|
|
30681
|
-
currentType,
|
|
30682
|
-
desiredType,
|
|
30683
|
-
physicalId: currentResource.physicalId,
|
|
30684
|
-
direction: intoNested ? "into-nested-stack" : "out-of-nested-stack"
|
|
30685
|
-
});
|
|
30686
|
-
}
|
|
30687
|
-
return found;
|
|
30688
|
-
}
|
|
30689
|
-
function renderNestedStackTypeChangeRefusal(typeChanges, stackName) {
|
|
30690
|
-
const rows = typeChanges.map((tc) => {
|
|
30691
|
-
return `${` - ${tc.logicalId}: Type changes from ${tc.currentType} to ${tc.desiredType} (the existing ${tc.currentType} is ${tc.physicalId}).`}\n${tc.direction === "into-nested-stack" ? ` Replacing a single resource BY a nested stack is not supported: the create half of the replacement would deploy a whole child stack "${stackName}~${tc.logicalId}" as one row, while ${tc.physicalId} is still recorded under this logical id.` : ` Replacing a nested stack BY a single resource is not supported: a replacement deletes its old half as a best-effort cleanup step whose failure is only a warning, so the child stack "${stackName}~${tc.logicalId}" and every resource it owns could be left behind, untracked, under a deploy that reports success.`}`;
|
|
30692
|
-
});
|
|
30693
|
-
return `Refusing to deploy ${stackName}: ` + (typeChanges.length === 1 ? `a resource changes its Type ` : `${typeChanges.length} resources change their Type `) + `into or out of ${NESTED_STACK_RESOURCE_TYPE}, which cdkd does not replace in place.\n${rows.join("\n")}\n Deploy this as two changes instead: give the new resource a DIFFERENT logical id (in CDK, rename the construct) so the existing row is deleted through its own type's provider and the new one is created under its own — or remove the resource in one deploy and add its replacement in the next. There is no flag that overrides this refusal.`;
|
|
30694
|
-
}
|
|
30695
|
-
|
|
30696
|
-
// src/deployment/rollback-executor/plan/classify.ts
|
|
30697
|
-
function journaledOldTypes(op) {
|
|
30698
|
-
return {
|
|
30699
|
-
stamped: nonEmptyString(op.previousResourceType) ? op.previousResourceType : void 0,
|
|
30700
|
-
recorded: nonEmptyString(op.previousState?.resourceType) ? op.previousState.resourceType : void 0
|
|
30701
|
-
};
|
|
30702
|
-
}
|
|
30703
|
-
function resolveReplacementOldType(op) {
|
|
30704
|
-
const { stamped, recorded } = journaledOldTypes(op);
|
|
30705
|
-
if (stamped !== void 0 && recorded !== void 0 && stamped !== recorded) return {
|
|
30706
|
-
ok: false,
|
|
30707
|
-
reason: `the journal names two different types for the old resource (previousResourceType ${refusalResourceType(stamped)}, previousState.resourceType ${refusalResourceType(recorded)})`
|
|
30708
|
-
};
|
|
30709
|
-
const oldType = stamped ?? recorded;
|
|
30710
|
-
if (oldType === void 0) return {
|
|
30711
|
-
ok: false,
|
|
30712
|
-
reason: "the journal does not record the old resource's type"
|
|
30713
|
-
};
|
|
30714
|
-
if (oldType !== op.resourceType && (oldType === "AWS::CloudFormation::Stack" || op.resourceType === "AWS::CloudFormation::Stack")) return {
|
|
30715
|
-
ok: false,
|
|
30716
|
-
reason: `it is a Type change between ${refusalResourceType(oldType)} and ${refusalResourceType(op.resourceType)}, and cdkd does not replace a nested stack with, or by, a single resource`
|
|
30717
|
-
};
|
|
30718
|
-
return {
|
|
30719
|
-
ok: true,
|
|
30720
|
-
oldType
|
|
30721
|
-
};
|
|
30722
|
-
}
|
|
30723
|
-
function unroutableReplacementError(op, reason, remedyCtx) {
|
|
30724
|
-
const remedy = orphanRemedy(op.logicalId, remedyCtx);
|
|
30725
|
-
return ownRemedyError(markNonRetryable(new CdkdError(`Cannot reverse the replacement of ${refusalLogicalId(op.logicalId)} (${refusalResourceType(op.resourceType)}): ${reason}, so cdkd will not guess which provider re-creates the old resource. Nothing was changed. The journal is kept: fix forward with ${cdkdRemedy("cdkd deploy")}` + (remedy.offered ? ", or leave this resource as it is and let the rest of the rollback proceed by re-running with the command below." : ".") + `${remedy.clause}${remedy.line}`, "ROLLBACK_REPLACEMENT_UNROUTABLE")));
|
|
30726
|
-
}
|
|
30727
|
-
function isTypeChangeOp(op) {
|
|
30728
|
-
const { stamped, recorded } = journaledOldTypes(op);
|
|
30729
|
-
return stamped !== void 0 && stamped !== op.resourceType || recorded !== void 0 && recorded !== op.resourceType;
|
|
30730
|
-
}
|
|
30731
|
-
function isReplacementOp(op) {
|
|
30732
|
-
if (movedIdLeftForCleanup(op)) return false;
|
|
30733
|
-
return op.changeType === "UPDATE" && op.previousState?.physicalId !== void 0 && (op.previousState.physicalId !== op.physicalId && op.wasReplaced !== false || sameIdRecreated(op) || isTypeChangeOp(op) || equalIdNamesDifferentResources({
|
|
30734
|
-
resourceType: op.resourceType,
|
|
30735
|
-
physicalId: op.physicalId,
|
|
30736
|
-
oldProperties: op.previousState.properties,
|
|
30737
|
-
newProperties: op.properties
|
|
30738
|
-
}));
|
|
30739
|
-
}
|
|
30740
|
-
function movedIdLeftForCleanup(op) {
|
|
30741
|
-
return op.changeType === "UPDATE" && op.oldPhysicalIdLeftForCleanup === true && isCustomResourceType(op.resourceType) && op.wasReplaced === true && op.oldDeletedBeforeCreate !== true && typeof op.physicalId === "string" && typeof op.previousState?.physicalId === "string" && op.previousState.physicalId !== op.physicalId && !isTypeChangeOp(op);
|
|
30742
|
-
}
|
|
30743
|
-
function sameIdRecreated(op) {
|
|
30744
|
-
return op.oldDeletedBeforeCreate === true && op.wasReplaced !== false && op.physicalId !== void 0 && op.previousState?.physicalId === op.physicalId;
|
|
30745
|
-
}
|
|
30746
|
-
function sameIdReversalDone(op, current) {
|
|
30747
|
-
const before = op.previousState.properties ?? {};
|
|
30748
|
-
const forward = op.properties;
|
|
30749
|
-
const now = current.properties ?? {};
|
|
30750
|
-
if (forward === void 0) return "undecidable";
|
|
30751
|
-
const own = (bag, key) => Object.hasOwn(bag, key) ? bag[key] : void 0;
|
|
30752
|
-
const changed = [.../* @__PURE__ */ new Set([...Object.keys(before), ...Object.keys(forward)])].filter((key) => !deepEqual$2(own(before, key), own(forward, key)));
|
|
30753
|
-
if (changed.length === 0) return holdsRedactedLeaf(before) ? "undecidable" : deepEqual$2(now, before);
|
|
30754
|
-
return changed.every((key) => deepEqual$2(own(now, key), own(before, key)));
|
|
30755
|
-
}
|
|
30756
|
-
function holdsRedactedLeaf(value) {
|
|
30757
|
-
if (typeof value === "string") return value.includes("***");
|
|
30758
|
-
if (value === null || typeof value !== "object") return false;
|
|
30759
|
-
return Object.values(value).some(holdsRedactedLeaf);
|
|
30760
|
-
}
|
|
30761
|
-
function sameIdReversalUndecidable(op, current) {
|
|
30762
|
-
return sameIdRecreated(op) && current !== void 0 && sameIdReversalDone(op, current) === "undecidable";
|
|
30763
|
-
}
|
|
30764
|
-
function deepEqual$2(a, b) {
|
|
30765
|
-
if (a === b) return true;
|
|
30766
|
-
if (a == null || b == null) return a === b;
|
|
30767
|
-
if (typeof a !== typeof b) return false;
|
|
30768
|
-
if (typeof a !== "object") return false;
|
|
30769
|
-
if (Array.isArray(a) || Array.isArray(b)) {
|
|
30770
|
-
if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;
|
|
30771
|
-
return a.every((v, i) => deepEqual$2(v, b[i]));
|
|
30772
|
-
}
|
|
30773
|
-
const ao = a;
|
|
30774
|
-
const bo = b;
|
|
30775
|
-
const ak = Object.keys(ao);
|
|
30776
|
-
if (ak.length !== Object.keys(bo).length) return false;
|
|
30777
|
-
for (const k of ak) {
|
|
30778
|
-
if (!Object.prototype.hasOwnProperty.call(bo, k)) return false;
|
|
30779
|
-
if (!deepEqual$2(ao[k], bo[k])) return false;
|
|
30780
|
-
}
|
|
30781
|
-
return true;
|
|
30782
|
-
}
|
|
30783
|
-
function classifyRollbackOp(op, stateResources, orphanLogicalIds) {
|
|
30784
|
-
const replacement = isReplacementOp(op);
|
|
30785
|
-
if (op.changeType === "DELETE") return "unrecoverable-delete";
|
|
30786
|
-
if (orphanLogicalIds.has(op.logicalId)) return "orphan-flag";
|
|
30787
|
-
if (op.changeType === "CREATE") {
|
|
30788
|
-
const current = stateResources[op.logicalId];
|
|
30789
|
-
if (!current) return "skip-already-done";
|
|
30790
|
-
if (op.physicalId !== void 0 && current.physicalId !== op.physicalId) return "skip-mismatch";
|
|
30791
|
-
const policy = effectiveDeletionPolicy(current.resourceType, current.deletionPolicy, current.properties);
|
|
30792
|
-
if (policy === "Retain") return "orphan-retain";
|
|
30793
|
-
if (policy === "Snapshot") return "delete-with-final-snapshot";
|
|
30794
|
-
return "delete";
|
|
30795
|
-
}
|
|
30796
|
-
const current = stateResources[op.logicalId];
|
|
30797
|
-
if (!current) return "skip-absent";
|
|
30798
|
-
if (replacement) {
|
|
30799
|
-
const oldTypes = journaledOldTypes(op);
|
|
30800
|
-
const oldTypeForCompare = isTypeChangeOp(op) ? oldTypes.stamped ?? oldTypes.recorded : void 0;
|
|
30801
|
-
const sameTypeAsOld = oldTypeForCompare === void 0 || !nonEmptyString(current.resourceType) || current.resourceType === oldTypeForCompare;
|
|
30802
|
-
if (current.physicalId === op.previousState.physicalId && sameTypeAsOld && (!sameIdRecreated(op) || sameIdReversalDone(op, current) === true) && !equalIdNamesDifferentResources({
|
|
30803
|
-
resourceType: op.resourceType,
|
|
30804
|
-
physicalId: current.physicalId,
|
|
30805
|
-
oldProperties: op.previousState.properties,
|
|
30806
|
-
newProperties: current.properties
|
|
30807
|
-
})) return "skip-already-done";
|
|
30808
|
-
const retainedOld = op.oldResourceRetained ?? op.previousState.updateReplacePolicy === "Retain";
|
|
30809
|
-
if (rollbackCannotAddress(current, op.resourceType, current.provisionedBy ?? op.provisionedBy, current.physicalId)) {
|
|
30810
|
-
if (!resolveReplacementOldType(op).ok) return "refuse-replacement-routing";
|
|
30811
|
-
return retainedOld ? "reverse-replacement-readopt" : "reverse-replacement";
|
|
30812
|
-
}
|
|
30813
|
-
if (retainedOld && op.physicalId !== void 0 && !hasAddressablePhysicalId(op)) {
|
|
30814
|
-
if (!resolveReplacementOldType(op).ok) return "refuse-replacement-routing";
|
|
30815
|
-
return "reverse-replacement-readopt";
|
|
30816
|
-
}
|
|
30817
|
-
if (op.physicalId !== void 0 && current.physicalId !== op.physicalId) {
|
|
30818
|
-
if (sameTypeAsOld && deepEqual$2(current.properties, op.previousState.properties)) return "skip-already-done";
|
|
30819
|
-
return "skip-mismatch";
|
|
30820
|
-
}
|
|
30821
|
-
if (!resolveReplacementOldType(op).ok) return "refuse-replacement-routing";
|
|
30822
|
-
return op.oldResourceRetained ?? op.previousState.updateReplacePolicy === "Retain" ? "reverse-replacement-readopt" : "reverse-replacement";
|
|
30823
|
-
}
|
|
30824
|
-
if (op.previousState && deepEqual$2(current.properties, op.previousState.properties)) {
|
|
30825
|
-
if (templatePoliciesDiffer(current, op.previousState)) return "restore-policies";
|
|
30826
|
-
return "skip-already-done";
|
|
30827
|
-
}
|
|
30828
|
-
if (movedIdLeftForCleanup(op) && current.physicalId !== op.physicalId) return "skip-mismatch";
|
|
30829
|
-
return "revert";
|
|
30830
|
-
}
|
|
30831
|
-
function templatePoliciesDiffer(current, previous) {
|
|
30832
|
-
return current.deletionPolicy !== previous.deletionPolicy || current.updateReplacePolicy !== previous.updateReplacePolicy;
|
|
30833
|
-
}
|
|
30834
|
-
function withPreviousPolicies(current, previous) {
|
|
30835
|
-
const { deletionPolicy: _deletionPolicy, updateReplacePolicy: _updateReplacePolicy, ...rest } = current;
|
|
30836
|
-
return {
|
|
30837
|
-
...rest,
|
|
30838
|
-
...previous.deletionPolicy !== void 0 && { deletionPolicy: previous.deletionPolicy },
|
|
30839
|
-
...previous.updateReplacePolicy !== void 0 && { updateReplacePolicy: previous.updateReplacePolicy }
|
|
30840
|
-
};
|
|
30841
|
-
}
|
|
30842
|
-
|
|
30843
31002
|
// src/deployment/rollback-executor/regenerated-secrets.ts
|
|
30844
31003
|
const SECRET_TYPE = "AWS::SecretsManager::Secret";
|
|
30845
31004
|
function revertRegeneratesSecret(op, stateResources) {
|
|
@@ -32305,7 +32464,7 @@ function maskRestoredNoEchoRecord(record, baseline, substituted = []) {
|
|
|
32305
32464
|
const marked = noEchoLeavesOf(baseline) ?? [];
|
|
32306
32465
|
const names = declaredNoEchoAttributeNames(baseline);
|
|
32307
32466
|
if (marked.length === 0 && names.length === 0 && substituted.length === 0) return record;
|
|
32308
|
-
const echoes = (name, value) => value !== record.physicalId && substituted.some((leaf) => leaf.coordinate[0] === name && canonicalJson$
|
|
32467
|
+
const echoes = (name, value) => value !== record.physicalId && substituted.some((leaf) => leaf.coordinate[0] === name && canonicalJson$6(leaf.value) === canonicalJson$6(value));
|
|
32309
32468
|
let attributes = record.attributes;
|
|
32310
32469
|
if (attributes !== void 0 && attributes !== null && typeof attributes === "object") for (const [name, value] of Object.entries(attributes)) {
|
|
32311
32470
|
if (!names.includes(name) && !echoes(name, value)) continue;
|
|
@@ -32316,7 +32475,7 @@ function maskRestoredNoEchoRecord(record, baseline, substituted = []) {
|
|
|
32316
32475
|
const list = coordinate.findIndex((segment) => typeof segment === "number");
|
|
32317
32476
|
if (list < 0) return false;
|
|
32318
32477
|
const path = coordinate.slice(0, list);
|
|
32319
|
-
return canonicalJson$
|
|
32478
|
+
return canonicalJson$6(valueAtCoordinate(byIndex, path)) !== canonicalJson$6(valueAtCoordinate(baseline.properties, path));
|
|
32320
32479
|
});
|
|
32321
32480
|
const properties = reshaped.length === 0 ? byIndex : maskReadbackAtCoordinates(byIndex, baseline.properties, reshaped);
|
|
32322
32481
|
const widened = reshaped.map((coordinate) => readbackPathFor(byIndex, baseline.properties, coordinate)).filter((path, i) => path !== void 0 && path.length < reshaped[i].length);
|
|
@@ -32488,11 +32647,11 @@ function canonicalizeUnorderedArraysAtPaths(v, paths) {
|
|
|
32488
32647
|
if (paths.length === 0) return v;
|
|
32489
32648
|
return walkUnordered(v, "", paths);
|
|
32490
32649
|
}
|
|
32491
|
-
function canonicalJson$
|
|
32492
|
-
if (Array.isArray(v)) return `[${v.map(canonicalJson$
|
|
32650
|
+
function canonicalJson$3(v) {
|
|
32651
|
+
if (Array.isArray(v)) return `[${v.map(canonicalJson$3).join(",")}]`;
|
|
32493
32652
|
if (v && typeof v === "object") {
|
|
32494
32653
|
const bag = v;
|
|
32495
|
-
return `{${Object.keys(bag).filter((k) => bag[k] !== void 0).sort().map((k) => `${JSON.stringify(k)}:${canonicalJson$
|
|
32654
|
+
return `{${Object.keys(bag).filter((k) => bag[k] !== void 0).sort().map((k) => `${JSON.stringify(k)}:${canonicalJson$3(bag[k])}`).join(",")}}`;
|
|
32496
32655
|
}
|
|
32497
32656
|
return JSON.stringify(v) ?? "null";
|
|
32498
32657
|
}
|
|
@@ -32505,7 +32664,7 @@ function walkUnordered(v, path, paths) {
|
|
|
32505
32664
|
if (mapped.every(isPlainObjectElement)) {
|
|
32506
32665
|
const keyed = mapped.map((el) => ({
|
|
32507
32666
|
el,
|
|
32508
|
-
key: canonicalJson$
|
|
32667
|
+
key: canonicalJson$3(el)
|
|
32509
32668
|
}));
|
|
32510
32669
|
keyed.sort((a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0);
|
|
32511
32670
|
return keyed.map((k) => k.el);
|
|
@@ -32522,17 +32681,43 @@ function walkUnordered(v, path, paths) {
|
|
|
32522
32681
|
return v;
|
|
32523
32682
|
}
|
|
32524
32683
|
|
|
32684
|
+
// src/analyzer/drift-verbatim-paths.ts
|
|
32685
|
+
const VERBATIM_ECHO_DRIFT_KEYS = {
|
|
32686
|
+
"AWS::IAM::Role": ["AssumeRolePolicyDocument"],
|
|
32687
|
+
"AWS::IAM::Policy": ["PolicyDocument"],
|
|
32688
|
+
"AWS::IAM::ManagedPolicy": ["PolicyDocument"],
|
|
32689
|
+
"AWS::IAM::RolePolicy": ["PolicyDocument"],
|
|
32690
|
+
"AWS::IAM::UserPolicy": ["PolicyDocument"],
|
|
32691
|
+
"AWS::IAM::GroupPolicy": ["PolicyDocument"],
|
|
32692
|
+
"AWS::S3::BucketPolicy": ["PolicyDocument"],
|
|
32693
|
+
"AWS::SQS::QueuePolicy": ["PolicyDocument"],
|
|
32694
|
+
"AWS::SNS::TopicPolicy": ["PolicyDocument"],
|
|
32695
|
+
"AWS::KMS::Key": ["KeyPolicy"],
|
|
32696
|
+
"AWS::SecretsManager::ResourcePolicy": ["ResourcePolicy"]
|
|
32697
|
+
};
|
|
32698
|
+
const NONE$1 = [];
|
|
32699
|
+
function verbatimEchoDriftKeys(resourceType) {
|
|
32700
|
+
return Object.hasOwn(VERBATIM_ECHO_DRIFT_KEYS, resourceType) ? VERBATIM_ECHO_DRIFT_KEYS[resourceType] : NONE$1;
|
|
32701
|
+
}
|
|
32702
|
+
function isVerbatimStatementPath(path, verbatimKeys) {
|
|
32703
|
+
return verbatimKeys.some((key) => path === `${key}.Statement`);
|
|
32704
|
+
}
|
|
32705
|
+
function isOmittedVersionDefault(path, value, verbatimKeys) {
|
|
32706
|
+
return value === "2008-10-17" && verbatimKeys.some((key) => path === `${key}.Version`);
|
|
32707
|
+
}
|
|
32708
|
+
|
|
32525
32709
|
// src/analyzer/drift-calculator.ts
|
|
32526
32710
|
function calculateResourceDrift(stateProperties, awsProperties, options) {
|
|
32527
32711
|
const drifts = [];
|
|
32528
32712
|
const ignore = options?.ignorePaths ?? [];
|
|
32529
32713
|
const union = options?.unionWalkObjects ?? false;
|
|
32530
32714
|
const unordered = options?.unorderedPaths ?? [];
|
|
32715
|
+
const unionPaths = options?.unionWalkPaths ?? [];
|
|
32531
32716
|
stateProperties = canonicalizeUnorderedArraysAtPaths(canonicalizeIdArraysDeep(canonicalizeTagListsDeep(stateProperties)), unordered);
|
|
32532
32717
|
awsProperties = canonicalizeUnorderedArraysAtPaths(canonicalizeIdArraysDeep(canonicalizeTagListsDeep(awsProperties)), unordered);
|
|
32533
32718
|
for (const key of Object.keys(stateProperties)) {
|
|
32534
32719
|
if (isIgnoredPath(key, ignore)) continue;
|
|
32535
|
-
diffAt(key, stateProperties[key], awsProperties[key], drifts, ignore, union);
|
|
32720
|
+
diffAt(key, stateProperties[key], awsProperties[key], drifts, ignore, union, unionPaths);
|
|
32536
32721
|
}
|
|
32537
32722
|
return drifts;
|
|
32538
32723
|
}
|
|
@@ -32548,17 +32733,22 @@ function undeclaredEmptyObservedKeys(observed, declared) {
|
|
|
32548
32733
|
function isIgnoredPath(path, ignorePaths) {
|
|
32549
32734
|
return matchesPathPrefix(path, ignorePaths);
|
|
32550
32735
|
}
|
|
32551
|
-
function diffAt(path, stateValue, awsValue, out, ignorePaths, unionWalkObjects) {
|
|
32552
|
-
|
|
32553
|
-
|
|
32736
|
+
function diffAt(path, stateValue, awsValue, out, ignorePaths, unionWalkObjects, unionWalkPaths) {
|
|
32737
|
+
let stateForm = jsonForm(stateValue);
|
|
32738
|
+
let awsForm = jsonForm(awsValue);
|
|
32739
|
+
if (isVerbatimStatementPath(path, unionWalkPaths)) {
|
|
32740
|
+
stateForm = asStatementList(stateForm, awsForm);
|
|
32741
|
+
awsForm = asStatementList(awsForm, stateForm);
|
|
32742
|
+
}
|
|
32554
32743
|
if (deepEqual$1(stateForm, awsForm)) return;
|
|
32555
32744
|
if (typeof stateValue === "string" && stateValue.includes("{{resolve:")) return;
|
|
32556
32745
|
if (isPlainObject$5(stateForm) && isPlainObject$5(awsForm) && !Array.isArray(stateForm) && !Array.isArray(awsForm)) {
|
|
32557
|
-
const keys = unionWalkObjects ? /* @__PURE__ */ new Set([...Object.keys(stateForm), ...Object.keys(awsForm)]) : Object.keys(stateForm);
|
|
32746
|
+
const keys = unionWalkObjects || matchesPathPrefix(path, unionWalkPaths) ? /* @__PURE__ */ new Set([...Object.keys(stateForm), ...Object.keys(awsForm)]) : Object.keys(stateForm);
|
|
32558
32747
|
for (const key of keys) {
|
|
32559
32748
|
const childPath = `${path}.${key}`;
|
|
32560
32749
|
if (isIgnoredPath(childPath, ignorePaths)) continue;
|
|
32561
|
-
|
|
32750
|
+
if (!unionWalkObjects && stateForm[key] === void 0 && isOmittedVersionDefault(childPath, awsForm[key], unionWalkPaths)) continue;
|
|
32751
|
+
diffAt(childPath, stateForm[key], awsForm[key], out, ignorePaths, unionWalkObjects, unionWalkPaths);
|
|
32562
32752
|
}
|
|
32563
32753
|
return;
|
|
32564
32754
|
}
|
|
@@ -32669,6 +32859,9 @@ function sameJson(a, b) {
|
|
|
32669
32859
|
function definedKeys(obj) {
|
|
32670
32860
|
return Object.keys(obj).filter((k) => obj[k] !== void 0);
|
|
32671
32861
|
}
|
|
32862
|
+
function asStatementList(statement, other) {
|
|
32863
|
+
return isPlainObject$5(statement) && !Array.isArray(statement) && Array.isArray(other) ? [statement] : statement;
|
|
32864
|
+
}
|
|
32672
32865
|
function isPlainObject$5(value) {
|
|
32673
32866
|
return typeof value === "object" && value !== null;
|
|
32674
32867
|
}
|
|
@@ -32964,11 +33157,16 @@ function buildReadCurrentStateContext(state, excludedLogicalId) {
|
|
|
32964
33157
|
};
|
|
32965
33158
|
}
|
|
32966
33159
|
const own = (state.resources ?? {})[excludedLogicalId];
|
|
32967
|
-
const
|
|
32968
|
-
|
|
33160
|
+
const ownRecord = (key) => {
|
|
33161
|
+
const value = isReadableResourceEntry(own) ? own[key] : void 0;
|
|
33162
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
|
|
33163
|
+
};
|
|
33164
|
+
const ownAttributes = ownRecord("attributes");
|
|
33165
|
+
const ownObserved = ownRecord("observedProperties");
|
|
32969
33166
|
return {
|
|
32970
33167
|
siblings,
|
|
32971
|
-
...ownAttributes && { attributes: ownAttributes }
|
|
33168
|
+
...ownAttributes && { attributes: ownAttributes },
|
|
33169
|
+
...ownObserved && { driftBaseline: ownObserved }
|
|
32972
33170
|
};
|
|
32973
33171
|
}
|
|
32974
33172
|
|
|
@@ -33549,8 +33747,15 @@ async function replayReverseReplacement(s) {
|
|
|
33549
33747
|
refuseSameIdParentReversal(s);
|
|
33550
33748
|
}
|
|
33551
33749
|
if (op.oldResourceMaySurvive !== void 0) {
|
|
33552
|
-
|
|
33553
|
-
if (survivor
|
|
33750
|
+
let survivor = await probeReplacedSurvivor(s, oldType);
|
|
33751
|
+
if (isForeignSurvivor(survivor)) throw foreignSurvivorRefusal(s, oldType, survivor);
|
|
33752
|
+
if (survivor === "modified") throw modifiedSurvivorRefusal(s, oldType);
|
|
33753
|
+
if (survivor === "owner-unverified" || survivor === "free-unreadable" || survivor === "vacated") throw survivorUnprovenRefusal(s, oldType, survivor);
|
|
33754
|
+
if (survivor === "exists-unverified") {
|
|
33755
|
+
logger.warn(safeMsg` ⚠ Rollback: cdkd could not verify that the old resource of ${shownLogicalId(op.logicalId)} ` + "belongs to this account (this account's bucket list could not be read; it needs s3:ListAllMyBuckets), so it is re-adopted because AWS reports it.");
|
|
33756
|
+
result.warnings++;
|
|
33757
|
+
survivor = "exists";
|
|
33758
|
+
}
|
|
33554
33759
|
if (survivor === "exists" && op.oldResourceMaySurvive === "unconfirmed") throw survivorUnprovenRefusal(s, oldType, "maybe-deleting");
|
|
33555
33760
|
if (op.oldResourceMaySurvive === "deferred" && survivor !== "gone" && survivor !== "interrupted" && (survivor === "exists" || deferredDeleteStillPending(ctx.supersededResources, prev, oldType))) {
|
|
33556
33761
|
logger.info(safeMsg` Rollback: the old resource of ${safe(op.logicalId)} (${mask(String(prev.physicalId))}) was not deleted yet — re-adopting it`);
|
|
@@ -33656,15 +33861,23 @@ function survivorUnprovenRefusal(s, oldType, verdict) {
|
|
|
33656
33861
|
const oldId = op.previousState?.physicalId;
|
|
33657
33862
|
const oldShown = hasAddressablePhysicalId({ physicalId: oldId }) ? refusalPhysicalId(mask(String(oldId))) : "no recorded id";
|
|
33658
33863
|
const rerun = rerunRollbackPhrase(ctx, cdkdRemedy("cdkd rollback"));
|
|
33659
|
-
const why = verdict === "unreadable" ? "cdkd has no read for this resource type that can tell whether it does. Re-creating it could duplicate it or collide with it" : verdict === "interrupted" ? `the rollback was interrupted before cdkd could read whether it does; re-running ${rerun} reads it` : verdict === "unknown" ? `cdkd could not read whether it does (the read failed or did not answer in time); re-running ${rerun} reads it again. Re-creating it could duplicate it or collide with it` : `AWS still reports it, but its failed delete may have been accepted and still be running, or only partly ran. Re-adopting it could leave neither resource once a running delete finishes, or one that delete already stripped; once AWS reports it gone, re-running ${rerun} re-creates it. A refused delete is not running, so waiting does not help: if its delete was refused, delete it by hand, then re-run ${rerun}`;
|
|
33660
|
-
return ownRemedyError(markNonRetryable(new CdkdError(`Cannot reverse the replacement of ${refusalLogicalId(op.logicalId)} (${refusalResourceType(oldType)}): the deploy did not confirm that it deleted the old resource (${oldShown}), so it may still exist, and ${why}
|
|
33864
|
+
const why = verdict === "free-unreadable" ? `nothing held that name when this rollback started, and its current state could not be read; re-running ${rerun} reads it again` : verdict === "vacated" ? `the name went free while this rollback read it (AWS reported it, then a second read found no bucket under it), so re-adopting it would delete the new resource for nothing; re-running ${rerun} reads it again` : verdict === "owner-unverified" ? `cdkd could not read whether it does, nor whether it belongs to this account (this account's bucket list could not be read; it needs s3:ListAllMyBuckets). Re-adopting another owner's bucket would delete the new one; re-running ${rerun} reads both again` : verdict === "unreadable" ? "cdkd has no read for this resource type that can tell whether it does. Re-creating it could duplicate it or collide with it" : verdict === "interrupted" ? `the rollback was interrupted before cdkd could read whether it does; re-running ${rerun} reads it` : verdict === "unknown" ? `cdkd could not read whether it does (the read failed or did not answer in time); re-running ${rerun} reads it again. Re-creating it could duplicate it or collide with it` : `AWS still reports it, but its failed delete may have been accepted and still be running, or only partly ran. Re-adopting it could leave neither resource once a running delete finishes, or one that delete already stripped; once AWS reports it gone, re-running ${rerun} re-creates it. A refused delete is not running, so waiting does not help: if its delete was refused, delete it by hand, then re-run ${rerun}`;
|
|
33865
|
+
return ownRemedyError(markNonRetryable(new CdkdError(`Cannot reverse the replacement of ${refusalLogicalId(op.logicalId)} (${refusalResourceType(oldType)}): ` + (verdict === "vacated" || verdict === "free-unreadable" ? `the old resource (${oldShown}) cannot be proven the stack's: ${why}.` : `the deploy did not confirm that it deleted the old resource (${oldShown}), so it may still exist, and ${why}.`) + ` Nothing was sent and the journal is kept.` + (remedy.offered ? ` To keep the new resource in its place instead, re-run with the command below, ` + (verdict === "vacated" || verdict === "free-unreadable" ? `and leave anything under the old id alone unless it is this stack's.` : `then delete the old resource by hand if it still exists.`) : "") + `${remedy.clause}${describedPhysicalIdPointer(oldShown)}` + remedy.line, "REPLACED_SURVIVOR_UNPROVEN")));
|
|
33866
|
+
}
|
|
33867
|
+
function foreignSurvivorRefusal(s, oldType, verdict) {
|
|
33868
|
+
const { op, ctx, mask } = s;
|
|
33869
|
+
const remedy = orphanRemedy(op.logicalId, ctx);
|
|
33870
|
+
const oldShown = refusalPhysicalId(mask(String(op.previousState?.physicalId)));
|
|
33871
|
+
const rerun = rerunRollbackPhrase(ctx, cdkdRemedy("cdkd rollback"));
|
|
33872
|
+
const seen = verdict === "foreign-account" ? `it is not in this account's bucket list, so it belongs to another account` : verdict === "foreign-region" ? `it is in another region than this stack's, and a bucket never moves region` : verdict === "foreign-recreated" ? "its creation date differs from the one read when the deploy deferred the old bucket's delete, and in us-east-1 only a re-create changes it" : verdict === "foreign-appeared" ? `nothing held that id when this rollback started` : `its ${SURVIVOR_IDENTITY_ATTRIBUTES[oldType] ?? "identity"} differs`;
|
|
33873
|
+
return ownRemedyError(markNonRetryable(new CdkdError(`Cannot reverse the replacement of ${refusalLogicalId(op.logicalId)} (${refusalResourceType(oldType)}): AWS reports a resource under the old physical id (${oldShown}), but not the one this stack recorded (${seen}), so another resource took that name after the stack's was deleted. Re-adopting it would make it this stack's, and re-creating the old one would collide with it. Nothing was sent and the journal is kept. If that resource is not meant to be there, remove it, then re-run ${rerun}, which re-creates the old one.` + (remedy.offered ? " To keep the new resource in its place instead, re-run with the command below; leave the other resource alone." : "") + `${remedy.clause}${describedPhysicalIdPointer(oldShown)}` + remedy.line, "REPLACED_SURVIVOR_UNPROVEN")));
|
|
33661
33874
|
}
|
|
33662
|
-
function
|
|
33875
|
+
function modifiedSurvivorRefusal(s, oldType) {
|
|
33663
33876
|
const { op, ctx, mask } = s;
|
|
33664
33877
|
const remedy = orphanRemedy(op.logicalId, ctx);
|
|
33665
33878
|
const oldShown = refusalPhysicalId(mask(String(op.previousState?.physicalId)));
|
|
33666
33879
|
const rerun = rerunRollbackPhrase(ctx, cdkdRemedy("cdkd rollback"));
|
|
33667
|
-
return ownRemedyError(markNonRetryable(new CdkdError(`Cannot reverse the replacement of ${refusalLogicalId(op.logicalId)} (${refusalResourceType(oldType)}):
|
|
33880
|
+
return ownRemedyError(markNonRetryable(new CdkdError(`Cannot reverse the replacement of ${refusalLogicalId(op.logicalId)} (${refusalResourceType(oldType)}): the bucket under the old name (${oldShown}) may have been re-created or modified since the failed deploy: its creation date differs from the one read when the deploy deferred its delete, and outside us-east-1 S3 moves that date on a configuration write (tags, versioning, encryption, policy) as well as on a re-create, so cdkd cannot tell which. Re-adopting it would delete the new resource for what may be another owner's bucket. Nothing was sent and the journal is kept. Re-running ${rerun} refuses again while that bucket is there.` + (remedy.offered ? " To keep the new resource in its place instead, re-run with the command below; the bucket under the old name is then outside the stack: if it is this stack's old bucket, delete it by hand once its contents are no longer needed, and otherwise leave it alone." : "") + `${remedy.clause}${describedPhysicalIdPointer(oldShown)}` + remedy.line, "REPLACED_SURVIVOR_UNPROVEN")));
|
|
33668
33881
|
}
|
|
33669
33882
|
function deferredDeleteStillPending(superseded, prev, oldType) {
|
|
33670
33883
|
if (superseded === void 0) return true;
|
|
@@ -34405,12 +34618,12 @@ const IDENTITY_KEYS$1 = [
|
|
|
34405
34618
|
"DestinationSecurityGroupId",
|
|
34406
34619
|
"DestinationPrefixListId"
|
|
34407
34620
|
];
|
|
34408
|
-
function isPlainRecord$
|
|
34621
|
+
function isPlainRecord$4(value) {
|
|
34409
34622
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
34410
34623
|
}
|
|
34411
34624
|
function namesGroup(groupId, logicalId, physicalId) {
|
|
34412
34625
|
if (groupId === physicalId) return true;
|
|
34413
|
-
if (!isPlainRecord$
|
|
34626
|
+
if (!isPlainRecord$4(groupId)) return false;
|
|
34414
34627
|
if (groupId["Ref"] === logicalId) return true;
|
|
34415
34628
|
const getAtt = groupId["Fn::GetAtt"];
|
|
34416
34629
|
return Array.isArray(getAtt) && getAtt[0] === logicalId && getAtt[1] === "GroupId";
|
|
@@ -34419,7 +34632,7 @@ async function buildSgRuleCaptureSiblings(deps, capturedLogicalId, capturedPhysi
|
|
|
34419
34632
|
const siblings = {};
|
|
34420
34633
|
for (const [lid, rec] of Object.entries(stateResources)) {
|
|
34421
34634
|
if (lid === capturedLogicalId || !RULE_TYPES.has(rec?.resourceType)) continue;
|
|
34422
|
-
if (!isPlainRecord$
|
|
34635
|
+
if (!isPlainRecord$4(rec.properties) || rec.properties["GroupId"] !== capturedPhysicalId) continue;
|
|
34423
34636
|
siblings[lid] = {
|
|
34424
34637
|
resourceType: rec.resourceType,
|
|
34425
34638
|
properties: rec.properties
|
|
@@ -34430,7 +34643,7 @@ async function buildSgRuleCaptureSiblings(deps, capturedLogicalId, capturedPhysi
|
|
|
34430
34643
|
if (lid === capturedLogicalId || !RULE_TYPES.has(res.Type)) continue;
|
|
34431
34644
|
if (conditions !== void 0 && res.Condition !== void 0 && conditions[res.Condition] === false) continue;
|
|
34432
34645
|
const props = res.Properties;
|
|
34433
|
-
if (!isPlainRecord$
|
|
34646
|
+
if (!isPlainRecord$4(props) || !namesGroup(props["GroupId"], capturedLogicalId, capturedPhysicalId)) continue;
|
|
34434
34647
|
resolverContext ??= deps.buildResolverContext({
|
|
34435
34648
|
template,
|
|
34436
34649
|
resources: stateResources,
|
|
@@ -34444,7 +34657,7 @@ async function buildSgRuleCaptureSiblings(deps, capturedLogicalId, capturedPhysi
|
|
|
34444
34657
|
} catch {
|
|
34445
34658
|
continue;
|
|
34446
34659
|
}
|
|
34447
|
-
if (!isPlainRecord$
|
|
34660
|
+
if (!isPlainRecord$4(resolved)) continue;
|
|
34448
34661
|
const key = siblings[lid] === void 0 ? lid : `${lid}#template`;
|
|
34449
34662
|
siblings[key] = {
|
|
34450
34663
|
resourceType: res.Type,
|
|
@@ -34517,11 +34730,11 @@ const PEER_KEYS = {
|
|
|
34517
34730
|
"DestinationPrefixListId"
|
|
34518
34731
|
]
|
|
34519
34732
|
};
|
|
34520
|
-
function isPlainRecord$
|
|
34733
|
+
function isPlainRecord$3(value) {
|
|
34521
34734
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
34522
34735
|
}
|
|
34523
34736
|
function sgRuleOwnershipIdentity(rule, direction) {
|
|
34524
|
-
if (!isPlainRecord$
|
|
34737
|
+
if (!isPlainRecord$3(rule)) return void 0;
|
|
34525
34738
|
if ([
|
|
34526
34739
|
"IpProtocol",
|
|
34527
34740
|
"FromPort",
|
|
@@ -34544,7 +34757,7 @@ function siblingOwnedSgRuleIdentities(groupId, direction, properties, context) {
|
|
|
34544
34757
|
for (const sibling of Object.values(context?.siblings ?? {})) {
|
|
34545
34758
|
if (sibling.resourceType !== RULE_TYPE[direction]) continue;
|
|
34546
34759
|
const props = sibling.properties;
|
|
34547
|
-
if (!isPlainRecord$
|
|
34760
|
+
if (!isPlainRecord$3(props) || props["GroupId"] !== groupId) continue;
|
|
34548
34761
|
const identity = sgRuleOwnershipIdentity(props, direction);
|
|
34549
34762
|
if (identity !== void 0) owned.add(identity);
|
|
34550
34763
|
}
|
|
@@ -34595,7 +34808,7 @@ function stripSiblingOwnedSgRules(resourceType, physicalId, baseline, aws, prope
|
|
|
34595
34808
|
function ruleWriteOf(record) {
|
|
34596
34809
|
const direction = record.resourceType === RULE_TYPE.ingress ? "ingress" : record.resourceType === RULE_TYPE.egress ? "egress" : void 0;
|
|
34597
34810
|
const props = record.properties;
|
|
34598
|
-
if (direction === void 0 || !isPlainRecord$
|
|
34811
|
+
if (direction === void 0 || !isPlainRecord$3(props)) return void 0;
|
|
34599
34812
|
const group = props["GroupId"];
|
|
34600
34813
|
if (typeof group !== "string" || group === "" || isRedactedRecordedValue(group)) return void 0;
|
|
34601
34814
|
const identity = sgRuleOwnershipIdentity(props, direction);
|
|
@@ -34660,6 +34873,794 @@ function withoutStoppedSiblingSgRules(bag, stopped, properties) {
|
|
|
34660
34873
|
return out;
|
|
34661
34874
|
}
|
|
34662
34875
|
|
|
34876
|
+
// src/provisioning/sibling-owned-members/rows.ts
|
|
34877
|
+
function isPlainRecord$2(value) {
|
|
34878
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
34879
|
+
}
|
|
34880
|
+
function plainString(value) {
|
|
34881
|
+
return typeof value === "string" && value !== "" && !isRedactedRecordedValue(value) ? value : void 0;
|
|
34882
|
+
}
|
|
34883
|
+
function clusterWrites(properties) {
|
|
34884
|
+
const cluster = plainString(properties["Cluster"]);
|
|
34885
|
+
if (cluster === void 0) return [];
|
|
34886
|
+
const arn = /^arn:[^:]+:ecs:[^:]*:[^:]*:cluster\/(.+)$/.exec(cluster);
|
|
34887
|
+
return [{ parent: arn ? arn[1] : cluster }];
|
|
34888
|
+
}
|
|
34889
|
+
function snsSubscriptionIdentity(element) {
|
|
34890
|
+
if (!isPlainRecord$2(element)) return void 0;
|
|
34891
|
+
const protocol = plainString(element["Protocol"]);
|
|
34892
|
+
const endpoint = plainString(element["Endpoint"]);
|
|
34893
|
+
return protocol === void 0 || endpoint === void 0 ? void 0 : JSON.stringify([protocol, endpoint]);
|
|
34894
|
+
}
|
|
34895
|
+
function snsSubscriptionWrites(properties) {
|
|
34896
|
+
const topic = plainString(properties["TopicArn"]);
|
|
34897
|
+
const member = snsSubscriptionIdentity(properties);
|
|
34898
|
+
return topic === void 0 || member === void 0 ? [] : [{
|
|
34899
|
+
parent: topic,
|
|
34900
|
+
member
|
|
34901
|
+
}];
|
|
34902
|
+
}
|
|
34903
|
+
function canonicalJson$2(value) {
|
|
34904
|
+
let doc = value;
|
|
34905
|
+
if (typeof doc === "string") try {
|
|
34906
|
+
doc = JSON.parse(doc);
|
|
34907
|
+
} catch {
|
|
34908
|
+
return;
|
|
34909
|
+
}
|
|
34910
|
+
if (doc === void 0 || isRedactedRecordedValue(doc)) return void 0;
|
|
34911
|
+
const sort = (v) => Array.isArray(v) ? v.map(sort) : isPlainRecord$2(v) ? Object.fromEntries(Object.keys(v).sort().map((k) => [k, sort(v[k])])) : v;
|
|
34912
|
+
return JSON.stringify(sort(doc));
|
|
34913
|
+
}
|
|
34914
|
+
function inlinePolicyName(element) {
|
|
34915
|
+
return isPlainRecord$2(element) ? plainString(element["PolicyName"]) : void 0;
|
|
34916
|
+
}
|
|
34917
|
+
function inlinePolicyMemberName(member) {
|
|
34918
|
+
try {
|
|
34919
|
+
const name = JSON.parse(member)[0];
|
|
34920
|
+
return typeof name === "string" ? name : void 0;
|
|
34921
|
+
} catch {
|
|
34922
|
+
return;
|
|
34923
|
+
}
|
|
34924
|
+
}
|
|
34925
|
+
function inlinePolicyIdentity(element) {
|
|
34926
|
+
if (!isPlainRecord$2(element)) return void 0;
|
|
34927
|
+
const name = plainString(element["PolicyName"]);
|
|
34928
|
+
const doc = canonicalJson$2(element["PolicyDocument"]);
|
|
34929
|
+
return name === void 0 || doc === void 0 ? void 0 : JSON.stringify([name, doc]);
|
|
34930
|
+
}
|
|
34931
|
+
function iamPolicyWrites(field) {
|
|
34932
|
+
return (properties) => {
|
|
34933
|
+
const member = inlinePolicyIdentity(properties);
|
|
34934
|
+
const names = properties[field];
|
|
34935
|
+
if (member === void 0 || !Array.isArray(names)) return [];
|
|
34936
|
+
return names.flatMap((n) => {
|
|
34937
|
+
const parent = plainString(n);
|
|
34938
|
+
return parent === void 0 ? [] : [{
|
|
34939
|
+
parent,
|
|
34940
|
+
member
|
|
34941
|
+
}];
|
|
34942
|
+
});
|
|
34943
|
+
};
|
|
34944
|
+
}
|
|
34945
|
+
function standalonePolicyWrites(field) {
|
|
34946
|
+
return (properties) => {
|
|
34947
|
+
const member = inlinePolicyIdentity(properties);
|
|
34948
|
+
const parent = plainString(properties[field]);
|
|
34949
|
+
return member === void 0 || parent === void 0 ? [] : [{
|
|
34950
|
+
parent,
|
|
34951
|
+
member
|
|
34952
|
+
}];
|
|
34953
|
+
};
|
|
34954
|
+
}
|
|
34955
|
+
function eipAssociationWrites(properties) {
|
|
34956
|
+
const parent = plainString(properties["AllocationId"]) ?? plainString(properties["EIP"]);
|
|
34957
|
+
return parent === void 0 ? [] : [{ parent }];
|
|
34958
|
+
}
|
|
34959
|
+
function lifecycleHookWrites(properties, physicalId) {
|
|
34960
|
+
const group = plainString(properties["AutoScalingGroupName"]);
|
|
34961
|
+
const fromId = typeof physicalId === "string" ? physicalId.split("|") : [];
|
|
34962
|
+
const name = plainString(properties["LifecycleHookName"]) ?? (fromId.length === 2 && fromId[0] === group ? plainString(fromId[1]) : void 0);
|
|
34963
|
+
return group === void 0 || name === void 0 ? [] : [{
|
|
34964
|
+
parent: group,
|
|
34965
|
+
member: name
|
|
34966
|
+
}];
|
|
34967
|
+
}
|
|
34968
|
+
function lifecycleHookIdentity(element) {
|
|
34969
|
+
return isPlainRecord$2(element) ? plainString(element["LifecycleHookName"]) : void 0;
|
|
34970
|
+
}
|
|
34971
|
+
function emrGroupIdentity(element) {
|
|
34972
|
+
if (!isPlainRecord$2(element)) return void 0;
|
|
34973
|
+
const name = plainString(element["Name"]);
|
|
34974
|
+
const type = plainString(element["InstanceType"]);
|
|
34975
|
+
return name === void 0 || type === void 0 ? void 0 : JSON.stringify([name, type]);
|
|
34976
|
+
}
|
|
34977
|
+
function emrGroupWrites(properties) {
|
|
34978
|
+
const cluster = plainString(properties["JobFlowId"]);
|
|
34979
|
+
const member = properties["InstanceRole"] === "TASK" ? emrGroupIdentity(properties) : void 0;
|
|
34980
|
+
return cluster === void 0 || member === void 0 ? [] : [{
|
|
34981
|
+
parent: cluster,
|
|
34982
|
+
member
|
|
34983
|
+
}];
|
|
34984
|
+
}
|
|
34985
|
+
function emrFleetIdentity(element) {
|
|
34986
|
+
return isPlainRecord$2(element) ? plainString(element["Name"]) : void 0;
|
|
34987
|
+
}
|
|
34988
|
+
function emrFleetWrites(properties) {
|
|
34989
|
+
const cluster = plainString(properties["ClusterId"]);
|
|
34990
|
+
const member = properties["InstanceFleetType"] === "TASK" ? emrFleetIdentity(properties) : void 0;
|
|
34991
|
+
return cluster === void 0 || member === void 0 ? [] : [{
|
|
34992
|
+
parent: cluster,
|
|
34993
|
+
member
|
|
34994
|
+
}];
|
|
34995
|
+
}
|
|
34996
|
+
function instanceAttachmentWrites(idField) {
|
|
34997
|
+
return (properties) => {
|
|
34998
|
+
const instance = plainString(properties["InstanceId"]);
|
|
34999
|
+
const member = plainString(properties[idField]);
|
|
35000
|
+
return instance === void 0 || member === void 0 ? [] : [{
|
|
35001
|
+
parent: instance,
|
|
35002
|
+
member
|
|
35003
|
+
}];
|
|
35004
|
+
};
|
|
35005
|
+
}
|
|
35006
|
+
function instanceAttachmentIdentity(idField) {
|
|
35007
|
+
return (element) => isPlainRecord$2(element) ? plainString(element[idField]) : void 0;
|
|
35008
|
+
}
|
|
35009
|
+
const PRINCIPALS = [
|
|
35010
|
+
[
|
|
35011
|
+
"AWS::IAM::Role",
|
|
35012
|
+
"Roles",
|
|
35013
|
+
"AWS::IAM::RolePolicy",
|
|
35014
|
+
"RoleName"
|
|
35015
|
+
],
|
|
35016
|
+
[
|
|
35017
|
+
"AWS::IAM::User",
|
|
35018
|
+
"Users",
|
|
35019
|
+
"AWS::IAM::UserPolicy",
|
|
35020
|
+
"UserName"
|
|
35021
|
+
],
|
|
35022
|
+
[
|
|
35023
|
+
"AWS::IAM::Group",
|
|
35024
|
+
"Groups",
|
|
35025
|
+
"AWS::IAM::GroupPolicy",
|
|
35026
|
+
"GroupName"
|
|
35027
|
+
]
|
|
35028
|
+
];
|
|
35029
|
+
const SIBLING_OWNED_ROWS = [
|
|
35030
|
+
{
|
|
35031
|
+
child: "AWS::ECS::ClusterCapacityProviderAssociations",
|
|
35032
|
+
parent: "AWS::ECS::Cluster",
|
|
35033
|
+
key: "CapacityProviders",
|
|
35034
|
+
writes: clusterWrites
|
|
35035
|
+
},
|
|
35036
|
+
{
|
|
35037
|
+
child: "AWS::ECS::ClusterCapacityProviderAssociations",
|
|
35038
|
+
parent: "AWS::ECS::Cluster",
|
|
35039
|
+
key: "DefaultCapacityProviderStrategy",
|
|
35040
|
+
writes: clusterWrites
|
|
35041
|
+
},
|
|
35042
|
+
{
|
|
35043
|
+
child: "AWS::SNS::Subscription",
|
|
35044
|
+
parent: "AWS::SNS::Topic",
|
|
35045
|
+
key: "Subscription",
|
|
35046
|
+
writes: snsSubscriptionWrites,
|
|
35047
|
+
identity: snsSubscriptionIdentity
|
|
35048
|
+
},
|
|
35049
|
+
{
|
|
35050
|
+
child: "AWS::AutoScaling::LifecycleHook",
|
|
35051
|
+
parent: "AWS::AutoScaling::AutoScalingGroup",
|
|
35052
|
+
key: "LifecycleHookSpecificationList",
|
|
35053
|
+
writes: lifecycleHookWrites,
|
|
35054
|
+
identity: lifecycleHookIdentity
|
|
35055
|
+
},
|
|
35056
|
+
{
|
|
35057
|
+
child: "AWS::EMR::InstanceGroupConfig",
|
|
35058
|
+
parent: "AWS::EMR::Cluster",
|
|
35059
|
+
key: "Instances.TaskInstanceGroups",
|
|
35060
|
+
writes: emrGroupWrites,
|
|
35061
|
+
identity: emrGroupIdentity,
|
|
35062
|
+
emptyMeansAbsent: true
|
|
35063
|
+
},
|
|
35064
|
+
{
|
|
35065
|
+
child: "AWS::EMR::InstanceFleetConfig",
|
|
35066
|
+
parent: "AWS::EMR::Cluster",
|
|
35067
|
+
key: "Instances.TaskInstanceFleets",
|
|
35068
|
+
writes: emrFleetWrites,
|
|
35069
|
+
identity: emrFleetIdentity,
|
|
35070
|
+
emptyMeansAbsent: true
|
|
35071
|
+
},
|
|
35072
|
+
{
|
|
35073
|
+
child: "AWS::EC2::VolumeAttachment",
|
|
35074
|
+
parent: "AWS::EC2::Instance",
|
|
35075
|
+
key: "Volumes",
|
|
35076
|
+
writes: instanceAttachmentWrites("VolumeId"),
|
|
35077
|
+
identity: instanceAttachmentIdentity("VolumeId")
|
|
35078
|
+
},
|
|
35079
|
+
{
|
|
35080
|
+
child: "AWS::EC2::NetworkInterfaceAttachment",
|
|
35081
|
+
parent: "AWS::EC2::Instance",
|
|
35082
|
+
key: "NetworkInterfaces",
|
|
35083
|
+
writes: instanceAttachmentWrites("NetworkInterfaceId"),
|
|
35084
|
+
identity: instanceAttachmentIdentity("NetworkInterfaceId")
|
|
35085
|
+
},
|
|
35086
|
+
{
|
|
35087
|
+
child: "AWS::EC2::EIPAssociation",
|
|
35088
|
+
parent: "AWS::EC2::EIP",
|
|
35089
|
+
key: "InstanceId",
|
|
35090
|
+
writes: eipAssociationWrites,
|
|
35091
|
+
parentIds: (physicalId) => physicalId.split("|").filter((part) => part !== "")
|
|
35092
|
+
},
|
|
35093
|
+
...PRINCIPALS.flatMap(([parent, field, standalone, nameField]) => [{
|
|
35094
|
+
child: "AWS::IAM::Policy",
|
|
35095
|
+
parent,
|
|
35096
|
+
key: "Policies",
|
|
35097
|
+
writes: iamPolicyWrites(field),
|
|
35098
|
+
identity: inlinePolicyIdentity,
|
|
35099
|
+
nameOf: inlinePolicyName,
|
|
35100
|
+
memberName: inlinePolicyMemberName
|
|
35101
|
+
}, {
|
|
35102
|
+
child: standalone,
|
|
35103
|
+
parent,
|
|
35104
|
+
key: "Policies",
|
|
35105
|
+
writes: standalonePolicyWrites(nameField),
|
|
35106
|
+
identity: inlinePolicyIdentity,
|
|
35107
|
+
nameOf: inlinePolicyName,
|
|
35108
|
+
memberName: inlinePolicyMemberName
|
|
35109
|
+
}])
|
|
35110
|
+
];
|
|
35111
|
+
|
|
35112
|
+
// src/provisioning/sibling-owned-members/helper-readd.ts
|
|
35113
|
+
const asString = (m) => typeof m === "string" ? m : void 0;
|
|
35114
|
+
const folded = (m) => typeof m === "string" ? m.toLowerCase() : void 0;
|
|
35115
|
+
function helperOwnedLists(resourceType, physicalId, properties, context) {
|
|
35116
|
+
const declared = (key, keyOf) => {
|
|
35117
|
+
const list = properties?.[key];
|
|
35118
|
+
const out = /* @__PURE__ */ new Set();
|
|
35119
|
+
if (Array.isArray(list)) for (const m of list) {
|
|
35120
|
+
const k = keyOf(m);
|
|
35121
|
+
if (k !== void 0) out.add(k);
|
|
35122
|
+
}
|
|
35123
|
+
return out;
|
|
35124
|
+
};
|
|
35125
|
+
const list = (key, keyOf, members) => {
|
|
35126
|
+
const own = declared(key, keyOf);
|
|
35127
|
+
const owned = /* @__PURE__ */ new Set();
|
|
35128
|
+
for (const m of members) {
|
|
35129
|
+
const k = keyOf(m);
|
|
35130
|
+
if (k !== void 0 && !own.has(k)) owned.add(k);
|
|
35131
|
+
}
|
|
35132
|
+
return {
|
|
35133
|
+
key,
|
|
35134
|
+
keyOf,
|
|
35135
|
+
owned
|
|
35136
|
+
};
|
|
35137
|
+
};
|
|
35138
|
+
const out = [];
|
|
35139
|
+
const field = managedPolicyAttachmentField(resourceType);
|
|
35140
|
+
if (field !== void 0) out.push(list("ManagedPolicyArns", asString, collectManagedPolicyArnsAttachedBySiblings(physicalId, context, field)));
|
|
35141
|
+
if (resourceType === "AWS::IAM::User") out.push(list("Groups", folded, collectGroupsAddedBySiblings(physicalId, context)));
|
|
35142
|
+
if (resourceType === "AWS::IAM::ManagedPolicy") for (const key of [
|
|
35143
|
+
"Roles",
|
|
35144
|
+
"Users",
|
|
35145
|
+
"Groups"
|
|
35146
|
+
]) out.push(list(key, asString, collectPrincipalsAttachingPolicy(physicalId, context, key)));
|
|
35147
|
+
if (resourceType === "AWS::EC2::SecurityGroup") for (const [key, direction] of [["SecurityGroupIngress", "ingress"], ["SecurityGroupEgress", "egress"]]) out.push({
|
|
35148
|
+
key,
|
|
35149
|
+
keyOf: (m) => sgRuleOwnershipIdentity(m, direction),
|
|
35150
|
+
owned: siblingOwnedSgRuleIdentities(physicalId, direction, properties, context)
|
|
35151
|
+
});
|
|
35152
|
+
return out.filter((l) => l.owned.size > 0);
|
|
35153
|
+
}
|
|
35154
|
+
function withLiveHelperOwnedMembers(resourceType, physicalId, desired, aws, properties, context) {
|
|
35155
|
+
if (typeof physicalId !== "string" || physicalId === "") return desired;
|
|
35156
|
+
let out = desired;
|
|
35157
|
+
for (const { key, keyOf, owned } of helperOwnedLists(resourceType, physicalId, properties, context)) {
|
|
35158
|
+
const kept = out[key];
|
|
35159
|
+
const live = aws[key];
|
|
35160
|
+
if (!Array.isArray(kept) || !Array.isArray(live)) continue;
|
|
35161
|
+
const anyKey = (m) => keyOf(m) ?? JSON.stringify(m) ?? "";
|
|
35162
|
+
const present = new Set(kept.map(anyKey));
|
|
35163
|
+
const result = [...kept];
|
|
35164
|
+
live.forEach((m, index) => {
|
|
35165
|
+
const k = keyOf(m);
|
|
35166
|
+
if (k === void 0 || !owned.has(k) || present.has(k)) return;
|
|
35167
|
+
let at = 0;
|
|
35168
|
+
for (let j = index - 1; j >= 0; j--) {
|
|
35169
|
+
const pos = result.findIndex((r) => anyKey(r) === anyKey(live[j]));
|
|
35170
|
+
if (pos >= 0) {
|
|
35171
|
+
at = pos + 1;
|
|
35172
|
+
break;
|
|
35173
|
+
}
|
|
35174
|
+
}
|
|
35175
|
+
result.splice(at, 0, m);
|
|
35176
|
+
present.add(k);
|
|
35177
|
+
});
|
|
35178
|
+
if (result.length !== kept.length) out = {
|
|
35179
|
+
...out,
|
|
35180
|
+
[key]: result
|
|
35181
|
+
};
|
|
35182
|
+
}
|
|
35183
|
+
return out;
|
|
35184
|
+
}
|
|
35185
|
+
|
|
35186
|
+
// src/provisioning/sibling-owned-members/pairs.ts
|
|
35187
|
+
const SIBLING_WRITE_PAIRS = [
|
|
35188
|
+
...SIBLING_OWNED_ROWS.map((row) => ({
|
|
35189
|
+
child: row.child,
|
|
35190
|
+
parent: row.parent,
|
|
35191
|
+
key: row.key,
|
|
35192
|
+
verdict: "table",
|
|
35193
|
+
evidence: "SIBLING_OWNED_ROWS"
|
|
35194
|
+
})),
|
|
35195
|
+
...[
|
|
35196
|
+
"AWS::IAM::Role",
|
|
35197
|
+
"AWS::IAM::User",
|
|
35198
|
+
"AWS::IAM::Group"
|
|
35199
|
+
].map((parent) => ({
|
|
35200
|
+
child: "AWS::IAM::ManagedPolicy",
|
|
35201
|
+
parent,
|
|
35202
|
+
key: "ManagedPolicyArns",
|
|
35203
|
+
verdict: "helper",
|
|
35204
|
+
evidence: "iam-sibling-managed-policies.ts (#6324)"
|
|
35205
|
+
})),
|
|
35206
|
+
...[
|
|
35207
|
+
"Roles",
|
|
35208
|
+
"Users",
|
|
35209
|
+
"Groups"
|
|
35210
|
+
].map((key) => ({
|
|
35211
|
+
child: "AWS::IAM::Role / User / Group",
|
|
35212
|
+
parent: "AWS::IAM::ManagedPolicy",
|
|
35213
|
+
key,
|
|
35214
|
+
verdict: "helper",
|
|
35215
|
+
evidence: "iam-sibling-managed-policies.ts (#6328)"
|
|
35216
|
+
})),
|
|
35217
|
+
{
|
|
35218
|
+
child: "AWS::IAM::UserToGroupAddition",
|
|
35219
|
+
parent: "AWS::IAM::User",
|
|
35220
|
+
key: "Groups",
|
|
35221
|
+
verdict: "helper",
|
|
35222
|
+
evidence: "iam-sibling-managed-policies.ts (#6328)"
|
|
35223
|
+
},
|
|
35224
|
+
...["SecurityGroupIngress", "SecurityGroupEgress"].map((key) => ({
|
|
35225
|
+
child: `AWS::EC2::${key}`,
|
|
35226
|
+
parent: "AWS::EC2::SecurityGroup",
|
|
35227
|
+
key,
|
|
35228
|
+
verdict: "helper",
|
|
35229
|
+
evidence: "sg-sibling-rules.ts (#6418)"
|
|
35230
|
+
})),
|
|
35231
|
+
{
|
|
35232
|
+
child: "Custom::S3BucketNotifications",
|
|
35233
|
+
parent: "AWS::S3::Bucket",
|
|
35234
|
+
key: "NotificationConfiguration",
|
|
35235
|
+
verdict: "helper",
|
|
35236
|
+
evidence: "undeclaredUncomparedDriftKeys (#5736): any writer, any stack"
|
|
35237
|
+
},
|
|
35238
|
+
{
|
|
35239
|
+
child: "AWS::Events::EventBusPolicy",
|
|
35240
|
+
parent: "AWS::Events::EventBus",
|
|
35241
|
+
key: "Policy",
|
|
35242
|
+
verdict: "helper",
|
|
35243
|
+
evidence: "undeclaredUncomparedDriftKeys (#6323): any writer, any stack"
|
|
35244
|
+
},
|
|
35245
|
+
{
|
|
35246
|
+
child: "AWS::EC2::VolumeAttachment",
|
|
35247
|
+
parent: "AWS::EC2::Instance",
|
|
35248
|
+
key: "BlockDeviceMappings",
|
|
35249
|
+
verdict: "helper",
|
|
35250
|
+
evidence: "undeclaredUncomparedDriftKeys + declared-devices readback (#6384)"
|
|
35251
|
+
},
|
|
35252
|
+
...[
|
|
35253
|
+
[
|
|
35254
|
+
"AWS::IAM::UserToGroupAddition",
|
|
35255
|
+
"AWS::IAM::Group",
|
|
35256
|
+
"members",
|
|
35257
|
+
"the group read has no member list; Cloud Control: the Group schema has no member list"
|
|
35258
|
+
],
|
|
35259
|
+
[
|
|
35260
|
+
"AWS::Lambda::Permission",
|
|
35261
|
+
"AWS::Lambda::Function",
|
|
35262
|
+
"policy",
|
|
35263
|
+
"lambda-function read-state emits no Policy; Cloud Control: the Function schema has no Policy"
|
|
35264
|
+
],
|
|
35265
|
+
[
|
|
35266
|
+
"AWS::Lambda::EventSourceMapping / EventInvokeConfig / Url",
|
|
35267
|
+
"AWS::Lambda::Function",
|
|
35268
|
+
"-",
|
|
35269
|
+
"lambda-function read-state emits none of their keys; Cloud Control: the Function schema has none of their keys"
|
|
35270
|
+
],
|
|
35271
|
+
[
|
|
35272
|
+
"AWS::S3::BucketPolicy",
|
|
35273
|
+
"AWS::S3::Bucket",
|
|
35274
|
+
"policy",
|
|
35275
|
+
"s3-bucket read-state emits no Policy; Cloud Control: the Bucket schema has no Policy"
|
|
35276
|
+
],
|
|
35277
|
+
[
|
|
35278
|
+
"AWS::SNS::TopicPolicy",
|
|
35279
|
+
"AWS::SNS::Topic",
|
|
35280
|
+
"policy",
|
|
35281
|
+
"sns-topic read-state emits no Policy; Cloud Control: the Topic schema has no Policy"
|
|
35282
|
+
],
|
|
35283
|
+
[
|
|
35284
|
+
"AWS::SQS::QueuePolicy",
|
|
35285
|
+
"AWS::SQS::Queue",
|
|
35286
|
+
"policy",
|
|
35287
|
+
"the SQS queue read emits no Policy; Cloud Control: the Queue schema has no Policy"
|
|
35288
|
+
],
|
|
35289
|
+
[
|
|
35290
|
+
"AWS::SNS::TopicInlinePolicy",
|
|
35291
|
+
"AWS::SNS::Topic",
|
|
35292
|
+
"policy",
|
|
35293
|
+
"sns-topic read-state emits no Policy; Cloud Control: the Topic schema has no Policy"
|
|
35294
|
+
],
|
|
35295
|
+
[
|
|
35296
|
+
"AWS::SQS::QueueInlinePolicy",
|
|
35297
|
+
"AWS::SQS::Queue",
|
|
35298
|
+
"policy",
|
|
35299
|
+
"the SQS queue read emits no Policy; Cloud Control: the Queue schema has no Policy"
|
|
35300
|
+
],
|
|
35301
|
+
[
|
|
35302
|
+
"AWS::Logs::SubscriptionFilter",
|
|
35303
|
+
"AWS::Logs::LogGroup",
|
|
35304
|
+
"filters",
|
|
35305
|
+
"logs-loggroup read-state emits no filter key; Cloud Control: the LogGroup schema has no filter property"
|
|
35306
|
+
],
|
|
35307
|
+
[
|
|
35308
|
+
"AWS::ElasticLoadBalancingV2::ListenerRule",
|
|
35309
|
+
"AWS::ElasticLoadBalancingV2::Listener",
|
|
35310
|
+
"rules",
|
|
35311
|
+
"the listener read has no rule list; DefaultActions is the listener's own; Cloud Control: the Listener schema has no rule list"
|
|
35312
|
+
],
|
|
35313
|
+
[
|
|
35314
|
+
"AWS::ElasticLoadBalancingV2::ListenerCertificate",
|
|
35315
|
+
"AWS::ElasticLoadBalancingV2::Listener",
|
|
35316
|
+
"Certificates",
|
|
35317
|
+
"DescribeListeners returns the default certificate only; Cloud Control: the Listener model is read from DescribeListeners too"
|
|
35318
|
+
],
|
|
35319
|
+
[
|
|
35320
|
+
"AWS::EC2::NetworkAclEntry",
|
|
35321
|
+
"AWS::EC2::NetworkAcl",
|
|
35322
|
+
"entries",
|
|
35323
|
+
"the network ACL read emits VpcId only; Cloud Control: the NetworkAcl schema holds Id, Tags and VpcId only"
|
|
35324
|
+
],
|
|
35325
|
+
[
|
|
35326
|
+
"AWS::EC2::Route",
|
|
35327
|
+
"AWS::EC2::RouteTable",
|
|
35328
|
+
"routes",
|
|
35329
|
+
"the route table read emits VpcId only; Cloud Control: the RouteTable schema holds RouteTableId, Tags and VpcId only"
|
|
35330
|
+
],
|
|
35331
|
+
[
|
|
35332
|
+
"AWS::EC2::SubnetRouteTableAssociation / SubnetNetworkAclAssociation",
|
|
35333
|
+
"AWS::EC2::Subnet / RouteTable / NetworkAcl",
|
|
35334
|
+
"associations",
|
|
35335
|
+
"none of the three reads emits an association; Cloud Control: the Subnet's NetworkAclAssociationId is read-only (#6485); the other two schemas have no association"
|
|
35336
|
+
],
|
|
35337
|
+
[
|
|
35338
|
+
"AWS::EC2::VPCGatewayAttachment",
|
|
35339
|
+
"AWS::EC2::VPC / InternetGateway",
|
|
35340
|
+
"attachments",
|
|
35341
|
+
"neither read emits an attachment; Cloud Control: neither schema has an attachment property"
|
|
35342
|
+
],
|
|
35343
|
+
[
|
|
35344
|
+
"AWS::EC2::VPCCidrBlock",
|
|
35345
|
+
"AWS::EC2::VPC",
|
|
35346
|
+
"CidrBlockAssociations",
|
|
35347
|
+
"the VPC read emits the primary CidrBlock only; Cloud Control: the list is read-only (#6485)"
|
|
35348
|
+
],
|
|
35349
|
+
[
|
|
35350
|
+
"AWS::KMS::Alias",
|
|
35351
|
+
"AWS::KMS::Key",
|
|
35352
|
+
"aliases",
|
|
35353
|
+
"the key read emits no alias; Cloud Control: the Key schema has no alias"
|
|
35354
|
+
],
|
|
35355
|
+
[
|
|
35356
|
+
"AWS::SecretsManager::ResourcePolicy / RotationSchedule",
|
|
35357
|
+
"AWS::SecretsManager::Secret",
|
|
35358
|
+
"-",
|
|
35359
|
+
"the secret read emits neither; Cloud Control: the Secret schema has neither"
|
|
35360
|
+
],
|
|
35361
|
+
[
|
|
35362
|
+
"AWS::Cognito::UserPoolClient / UserPoolDomain",
|
|
35363
|
+
"AWS::Cognito::UserPool",
|
|
35364
|
+
"-",
|
|
35365
|
+
"the user pool read emits neither; Cloud Control: the UserPool schema has neither"
|
|
35366
|
+
],
|
|
35367
|
+
[
|
|
35368
|
+
"AWS::Route53::RecordSet",
|
|
35369
|
+
"AWS::Route53::HostedZone",
|
|
35370
|
+
"records",
|
|
35371
|
+
"the hosted zone read emits no records; Cloud Control: the HostedZone schema has no record list"
|
|
35372
|
+
],
|
|
35373
|
+
[
|
|
35374
|
+
"AWS::ApiGateway::Method / Resource",
|
|
35375
|
+
"AWS::ApiGateway::Resource / RestApi",
|
|
35376
|
+
"-",
|
|
35377
|
+
"the resource read emits ParentId and PathPart only; Cloud Control: neither schema lists methods or child resources"
|
|
35378
|
+
]
|
|
35379
|
+
].map(([child, parent, key, evidence]) => ({
|
|
35380
|
+
child,
|
|
35381
|
+
parent,
|
|
35382
|
+
key,
|
|
35383
|
+
verdict: "none",
|
|
35384
|
+
evidence
|
|
35385
|
+
}))
|
|
35386
|
+
];
|
|
35387
|
+
|
|
35388
|
+
// src/provisioning/sibling-owned-members.ts
|
|
35389
|
+
const REMOVE = Symbol("remove");
|
|
35390
|
+
function getAt(bag, path) {
|
|
35391
|
+
let node = bag;
|
|
35392
|
+
for (const segment of path) {
|
|
35393
|
+
if (!isPlainRecord$2(node) || !hasOwnKey(node, segment)) return void 0;
|
|
35394
|
+
node = node[segment];
|
|
35395
|
+
}
|
|
35396
|
+
return node;
|
|
35397
|
+
}
|
|
35398
|
+
function hasAt(bag, path) {
|
|
35399
|
+
let node = bag;
|
|
35400
|
+
for (const segment of path) {
|
|
35401
|
+
if (!isPlainRecord$2(node) || !hasOwnKey(node, segment)) return false;
|
|
35402
|
+
node = node[segment];
|
|
35403
|
+
}
|
|
35404
|
+
return true;
|
|
35405
|
+
}
|
|
35406
|
+
function setAt(bag, path, value) {
|
|
35407
|
+
const [head, ...rest] = path;
|
|
35408
|
+
if (head === void 0) return bag;
|
|
35409
|
+
if (rest.length === 0) {
|
|
35410
|
+
if (value !== REMOVE) return {
|
|
35411
|
+
...bag,
|
|
35412
|
+
[head]: value
|
|
35413
|
+
};
|
|
35414
|
+
const { [head]: _removed, ...kept } = bag;
|
|
35415
|
+
return kept;
|
|
35416
|
+
}
|
|
35417
|
+
const child = bag[head];
|
|
35418
|
+
return isPlainRecord$2(child) ? {
|
|
35419
|
+
...bag,
|
|
35420
|
+
[head]: setAt(child, rest, value)
|
|
35421
|
+
} : bag;
|
|
35422
|
+
}
|
|
35423
|
+
const pathOf = (row) => row.key.split(".");
|
|
35424
|
+
function parentIdsOf(row, physicalId) {
|
|
35425
|
+
return row.parentIds ? row.parentIds(physicalId) : [physicalId];
|
|
35426
|
+
}
|
|
35427
|
+
function ownedByRow(resourceType, physicalId, context) {
|
|
35428
|
+
if (typeof physicalId !== "string" || physicalId === "") return [];
|
|
35429
|
+
const out = [];
|
|
35430
|
+
for (const row of SIBLING_OWNED_ROWS) {
|
|
35431
|
+
if (row.parent !== resourceType) continue;
|
|
35432
|
+
const ids = new Set(parentIdsOf(row, physicalId));
|
|
35433
|
+
const members = /* @__PURE__ */ new Map();
|
|
35434
|
+
let any = false;
|
|
35435
|
+
for (const sibling of Object.values(context?.siblings ?? {})) {
|
|
35436
|
+
if (sibling.resourceType !== row.child || !isPlainRecord$2(sibling.properties)) continue;
|
|
35437
|
+
for (const w of row.writes(sibling.properties, sibling.physicalId)) {
|
|
35438
|
+
if (!ids.has(w.parent)) continue;
|
|
35439
|
+
any = true;
|
|
35440
|
+
if (w.member !== void 0) members.set(w.member, (members.get(w.member) ?? 0) + 1);
|
|
35441
|
+
}
|
|
35442
|
+
}
|
|
35443
|
+
if (any) out.push([row, row.identity ? members : void 0]);
|
|
35444
|
+
}
|
|
35445
|
+
return out;
|
|
35446
|
+
}
|
|
35447
|
+
function effectiveDrop(row, owned, properties) {
|
|
35448
|
+
const drop = new Map(owned ?? []);
|
|
35449
|
+
const identity = row.identity;
|
|
35450
|
+
const own = getAt(properties, pathOf(row));
|
|
35451
|
+
if (identity === void 0 || drop.size === 0 || !Array.isArray(own)) return drop;
|
|
35452
|
+
for (const entry of own) {
|
|
35453
|
+
const id = identity(entry);
|
|
35454
|
+
const n = id === void 0 ? void 0 : drop.get(id);
|
|
35455
|
+
if (n === void 0) continue;
|
|
35456
|
+
if (n <= 1) drop.delete(id);
|
|
35457
|
+
else drop.set(id, n - 1);
|
|
35458
|
+
}
|
|
35459
|
+
return drop;
|
|
35460
|
+
}
|
|
35461
|
+
function namesDroppedFromBaseline(row, drop, properties, readback) {
|
|
35462
|
+
const { nameOf, memberName } = row;
|
|
35463
|
+
if (nameOf === void 0 || memberName === void 0 || readback === void 0) return /* @__PURE__ */ new Set();
|
|
35464
|
+
const liveList = getAt(readback, pathOf(row));
|
|
35465
|
+
const live = new Set(Array.isArray(liveList) ? liveList.map((m) => nameOf(m)) : []);
|
|
35466
|
+
const own = getAt(properties, pathOf(row));
|
|
35467
|
+
const declared = new Set(Array.isArray(own) ? own.map((m) => nameOf(m)) : []);
|
|
35468
|
+
const names = /* @__PURE__ */ new Set();
|
|
35469
|
+
for (const id of drop.keys()) {
|
|
35470
|
+
const name = memberName(id);
|
|
35471
|
+
if (name !== void 0 && !live.has(name) && !declared.has(name)) names.add(name);
|
|
35472
|
+
}
|
|
35473
|
+
return names;
|
|
35474
|
+
}
|
|
35475
|
+
function namesChangedInReadback(row, drop, readback) {
|
|
35476
|
+
const { nameOf, identity } = row;
|
|
35477
|
+
const names = /* @__PURE__ */ new Set();
|
|
35478
|
+
if (nameOf === void 0 || identity === void 0 || readback === void 0) return names;
|
|
35479
|
+
const liveList = getAt(readback, pathOf(row));
|
|
35480
|
+
if (!Array.isArray(liveList)) return names;
|
|
35481
|
+
for (const m of liveList) {
|
|
35482
|
+
const id = identity(m);
|
|
35483
|
+
if (id !== void 0 && drop.has(id)) continue;
|
|
35484
|
+
const name = nameOf(m);
|
|
35485
|
+
if (name !== void 0) names.add(name);
|
|
35486
|
+
}
|
|
35487
|
+
return names;
|
|
35488
|
+
}
|
|
35489
|
+
function withoutOwned(bag, row, owned, properties, readback) {
|
|
35490
|
+
const path = pathOf(row);
|
|
35491
|
+
if (!hasAt(bag, path)) return bag;
|
|
35492
|
+
const declared = hasAt(properties, path);
|
|
35493
|
+
if (row.identity === void 0) return declared ? bag : setAt(bag, path, REMOVE);
|
|
35494
|
+
const list = getAt(bag, path);
|
|
35495
|
+
if (!Array.isArray(list)) return bag;
|
|
35496
|
+
const identity = row.identity;
|
|
35497
|
+
const drop = effectiveDrop(row, owned, properties);
|
|
35498
|
+
if (drop.size === 0) return bag;
|
|
35499
|
+
const byName = namesDroppedFromBaseline(row, drop, properties, readback);
|
|
35500
|
+
const changed = namesChangedInReadback(row, drop, readback);
|
|
35501
|
+
const left = new Map(drop);
|
|
35502
|
+
const kept = list.filter((m) => {
|
|
35503
|
+
const id = identity(m);
|
|
35504
|
+
const n = id === void 0 ? void 0 : left.get(id);
|
|
35505
|
+
if (n !== void 0 && n > 0) {
|
|
35506
|
+
const name = row.nameOf?.(m);
|
|
35507
|
+
if (name !== void 0 && changed.has(name)) return true;
|
|
35508
|
+
left.set(id, n - 1);
|
|
35509
|
+
return false;
|
|
35510
|
+
}
|
|
35511
|
+
const name = row.nameOf?.(m);
|
|
35512
|
+
return name === void 0 || !byName.has(name);
|
|
35513
|
+
});
|
|
35514
|
+
if (kept.length === list.length) return bag;
|
|
35515
|
+
return setAt(bag, path, kept.length === 0 && row.emptyMeansAbsent && !declared ? REMOVE : kept);
|
|
35516
|
+
}
|
|
35517
|
+
function stripSiblingOwnedParentMembers(resourceType, physicalId, baseline, aws, properties, context) {
|
|
35518
|
+
const members = stripSiblingOwnedMembers(resourceType, physicalId, baseline, aws, properties, context);
|
|
35519
|
+
let out = stripSiblingOwnedSgRules(resourceType, physicalId, members.baseline, members.aws, properties, context);
|
|
35520
|
+
for (const [row, owned] of ownedByRow(resourceType, physicalId, context)) out = {
|
|
35521
|
+
baseline: withoutOwned(out.baseline, row, owned, properties, out.aws),
|
|
35522
|
+
aws: withoutOwned(out.aws, row, owned, properties)
|
|
35523
|
+
};
|
|
35524
|
+
return out;
|
|
35525
|
+
}
|
|
35526
|
+
function siblingOwnedRevertDesired(resourceType, physicalId, desired, aws, properties, context) {
|
|
35527
|
+
let out = stripSiblingOwnedMembers(resourceType, physicalId, desired, aws, properties, context).baseline;
|
|
35528
|
+
out = stripSiblingOwnedSgRules(resourceType, physicalId, out, aws, properties, context).baseline;
|
|
35529
|
+
out = withLiveHelperOwnedMembers(resourceType, physicalId, out, aws, properties, context);
|
|
35530
|
+
for (const [row, owned] of ownedByRow(resourceType, physicalId, context)) {
|
|
35531
|
+
const path = pathOf(row);
|
|
35532
|
+
const stripped = withoutOwned(out, row, owned, properties, aws);
|
|
35533
|
+
const live = getAt(aws, path);
|
|
35534
|
+
if (row.identity === void 0) {
|
|
35535
|
+
out = stripped;
|
|
35536
|
+
continue;
|
|
35537
|
+
}
|
|
35538
|
+
const drop = effectiveDrop(row, owned, properties);
|
|
35539
|
+
if (!Array.isArray(live) || drop.size === 0) {
|
|
35540
|
+
out = stripped;
|
|
35541
|
+
continue;
|
|
35542
|
+
}
|
|
35543
|
+
const identity = row.identity;
|
|
35544
|
+
const strippedList = getAt(stripped, path);
|
|
35545
|
+
const kept = Array.isArray(strippedList) ? strippedList : row.emptyMeansAbsent && strippedList === void 0 ? [] : void 0;
|
|
35546
|
+
if (kept === void 0 || !hasAt(stripped, path.slice(0, -1))) {
|
|
35547
|
+
out = stripped;
|
|
35548
|
+
continue;
|
|
35549
|
+
}
|
|
35550
|
+
const result = [...kept];
|
|
35551
|
+
const room = new Map(drop);
|
|
35552
|
+
const keyOf = (m) => identity(m) ?? JSON.stringify(m) ?? "";
|
|
35553
|
+
live.forEach((m, index) => {
|
|
35554
|
+
const id = identity(m);
|
|
35555
|
+
const n = id === void 0 ? void 0 : room.get(id);
|
|
35556
|
+
if (n === void 0 || n <= 0) return;
|
|
35557
|
+
let at = 0;
|
|
35558
|
+
for (let j = index - 1; j >= 0; j--) {
|
|
35559
|
+
const pos = result.findIndex((r) => keyOf(r) === keyOf(live[j]));
|
|
35560
|
+
if (pos >= 0) {
|
|
35561
|
+
at = pos + 1;
|
|
35562
|
+
break;
|
|
35563
|
+
}
|
|
35564
|
+
}
|
|
35565
|
+
result.splice(at, 0, m);
|
|
35566
|
+
room.set(id, n - 1);
|
|
35567
|
+
});
|
|
35568
|
+
out = result.length === kept.length && Array.isArray(strippedList) ? stripped : setAt(stripped, path, result);
|
|
35569
|
+
}
|
|
35570
|
+
return out;
|
|
35571
|
+
}
|
|
35572
|
+
function tableMembersSiblingsStoppedWriting(previous, next, oldMaySurvive = () => false, templatePolicies) {
|
|
35573
|
+
const encode = (row, parent, member) => injectiveKey(row, parent, member === void 0 ? "" : `m:${member}`);
|
|
35574
|
+
const writesOf = (record) => {
|
|
35575
|
+
const props = record.properties;
|
|
35576
|
+
if (!isPlainRecord$2(props)) return [];
|
|
35577
|
+
const out = [];
|
|
35578
|
+
SIBLING_OWNED_ROWS.forEach((row, index) => {
|
|
35579
|
+
if (row.child !== record.resourceType) return;
|
|
35580
|
+
for (const w of row.writes(props, record.physicalId)) out.push([index, w]);
|
|
35581
|
+
});
|
|
35582
|
+
return out;
|
|
35583
|
+
};
|
|
35584
|
+
const count = (into, key) => {
|
|
35585
|
+
into.set(key, (into.get(key) ?? 0) + 1);
|
|
35586
|
+
};
|
|
35587
|
+
const nextCount = /* @__PURE__ */ new Map();
|
|
35588
|
+
for (const record of Object.values(next)) for (const [i, w] of writesOf(record)) count(nextCount, encode(i, w.parent, w.member));
|
|
35589
|
+
const prevCount = /* @__PURE__ */ new Map();
|
|
35590
|
+
const touched = /* @__PURE__ */ new Map();
|
|
35591
|
+
for (const [logicalId, record] of Object.entries(previous)) {
|
|
35592
|
+
const writes = writesOf(record);
|
|
35593
|
+
if (writes.length === 0) continue;
|
|
35594
|
+
if (previousMaySurvive(logicalId, record, next, oldMaySurvive, templatePolicies)) continue;
|
|
35595
|
+
for (const [i, w] of writes) {
|
|
35596
|
+
count(prevCount, encode(i, w.parent, w.member));
|
|
35597
|
+
const target = injectiveKey(i, w.parent);
|
|
35598
|
+
let entry = touched.get(target);
|
|
35599
|
+
if (entry === void 0) {
|
|
35600
|
+
entry = {
|
|
35601
|
+
row: i,
|
|
35602
|
+
members: w.member === void 0 ? void 0 : /* @__PURE__ */ new Set()
|
|
35603
|
+
};
|
|
35604
|
+
touched.set(target, entry);
|
|
35605
|
+
}
|
|
35606
|
+
if (w.member !== void 0) entry.members?.add(w.member);
|
|
35607
|
+
}
|
|
35608
|
+
}
|
|
35609
|
+
const result = /* @__PURE__ */ new Map();
|
|
35610
|
+
if (touched.size === 0) return result;
|
|
35611
|
+
for (const [logicalId, record] of Object.entries(next)) {
|
|
35612
|
+
const id = record.physicalId;
|
|
35613
|
+
if (typeof id !== "string" || id === "") continue;
|
|
35614
|
+
const entries = [];
|
|
35615
|
+
SIBLING_OWNED_ROWS.forEach((row, index) => {
|
|
35616
|
+
if (row.parent !== record.resourceType) return;
|
|
35617
|
+
const ids = [...new Set(parentIdsOf(row, id))];
|
|
35618
|
+
const sum = (counts, member) => ids.reduce((n, pid) => n + (counts.get(encode(index, pid, member)) ?? 0), 0);
|
|
35619
|
+
const members = /* @__PURE__ */ new Set();
|
|
35620
|
+
let wholeKey = false;
|
|
35621
|
+
for (const pid of ids) {
|
|
35622
|
+
const entry = touched.get(injectiveKey(index, pid));
|
|
35623
|
+
if (entry === void 0) continue;
|
|
35624
|
+
if (entry.members === void 0) wholeKey = true;
|
|
35625
|
+
else for (const m of entry.members) members.add(m);
|
|
35626
|
+
}
|
|
35627
|
+
if (wholeKey) {
|
|
35628
|
+
if (sum(nextCount, void 0) === 0) entries.push({
|
|
35629
|
+
row,
|
|
35630
|
+
members: void 0
|
|
35631
|
+
});
|
|
35632
|
+
return;
|
|
35633
|
+
}
|
|
35634
|
+
const stopped = /* @__PURE__ */ new Map();
|
|
35635
|
+
for (const m of members) {
|
|
35636
|
+
const n = sum(prevCount, m) - sum(nextCount, m);
|
|
35637
|
+
if (n > 0) stopped.set(m, n);
|
|
35638
|
+
}
|
|
35639
|
+
if (stopped.size > 0) entries.push({
|
|
35640
|
+
row,
|
|
35641
|
+
members: stopped
|
|
35642
|
+
});
|
|
35643
|
+
});
|
|
35644
|
+
if (entries.length > 0) result.set(logicalId, entries);
|
|
35645
|
+
}
|
|
35646
|
+
return result;
|
|
35647
|
+
}
|
|
35648
|
+
function withoutStoppedTableMembers(bag, stopped, properties) {
|
|
35649
|
+
let out = bag;
|
|
35650
|
+
for (const { row, members } of stopped) {
|
|
35651
|
+
if (row.identity !== void 0) {
|
|
35652
|
+
out = withoutOwned(out, row, members, properties);
|
|
35653
|
+
continue;
|
|
35654
|
+
}
|
|
35655
|
+
const path = pathOf(row);
|
|
35656
|
+
const value = getAt(out, path);
|
|
35657
|
+
if (value === void 0 || value === null || Array.isArray(value) && value.length === 0) continue;
|
|
35658
|
+
if (hasAt(properties, path)) continue;
|
|
35659
|
+
out = setAt(out, path, Array.isArray(value) ? [] : REMOVE);
|
|
35660
|
+
}
|
|
35661
|
+
return out;
|
|
35662
|
+
}
|
|
35663
|
+
|
|
34663
35664
|
// src/deployment/deploy-engine/observed-capture.ts
|
|
34664
35665
|
var ObservedCapture = class {
|
|
34665
35666
|
observedCaptureTasks = /* @__PURE__ */ new Map();
|
|
@@ -34847,6 +35848,18 @@ function pruneMembersSiblingsStoppedWriting(previous, next, replacementRun, temp
|
|
|
34847
35848
|
};
|
|
34848
35849
|
changed++;
|
|
34849
35850
|
}
|
|
35851
|
+
for (const [logicalId, stopped] of tableMembersSiblingsStoppedWriting(previous, next, oldMaySurvive, templatePolicies)) {
|
|
35852
|
+
const record = next[logicalId];
|
|
35853
|
+
const observed = record?.observedProperties;
|
|
35854
|
+
if (record === void 0 || observed === void 0) continue;
|
|
35855
|
+
const pruned = withoutStoppedTableMembers(observed, stopped, record.properties);
|
|
35856
|
+
if (pruned === observed) continue;
|
|
35857
|
+
next[logicalId] = {
|
|
35858
|
+
...record,
|
|
35859
|
+
observedProperties: carryRedactionMarks(observed, pruned)
|
|
35860
|
+
};
|
|
35861
|
+
changed++;
|
|
35862
|
+
}
|
|
34850
35863
|
return changed;
|
|
34851
35864
|
}
|
|
34852
35865
|
function pruneStoppedSiblingMembersBestEffort(logger, ...args) {
|
|
@@ -34854,7 +35867,7 @@ function pruneStoppedSiblingMembersBestEffort(logger, ...args) {
|
|
|
34854
35867
|
pruneMembersSiblingsStoppedWriting(...args);
|
|
34855
35868
|
} catch (err) {
|
|
34856
35869
|
const cause = err instanceof Error ? err.name : typeof err;
|
|
34857
|
-
logger.debug(safeMsg`Sibling-written IAM
|
|
35870
|
+
logger.debug(safeMsg`Sibling-written members (IAM lists, security-group rules and the other sibling-owned lists) were not pruned from the observed baselines (${cause}); they stay until 'cdkd state refresh-observed'.`);
|
|
34858
35871
|
}
|
|
34859
35872
|
}
|
|
34860
35873
|
const STANDALONE_SIBLING = {
|
|
@@ -37424,6 +38437,7 @@ async function revertNestedChildFromJournal(args) {
|
|
|
37424
38437
|
let warnings = 0;
|
|
37425
38438
|
const inlinePolicyWriters = new RollbackInlinePolicyWriters();
|
|
37426
38439
|
const settledBelow = /* @__PURE__ */ new Map();
|
|
38440
|
+
await snapshotSegmentSurvivors(execCtx, segments);
|
|
37427
38441
|
for (let s = segments.length - 1; s >= 0; s--) {
|
|
37428
38442
|
const segment = segments[s];
|
|
37429
38443
|
const skipPrefix = segment.skipPrefix ?? getCurrentSkipPrefix();
|
|
@@ -37710,6 +38724,7 @@ async function performRollback(deps, completedOperations, stateResources, stackN
|
|
|
37710
38724
|
const supersededHost = {};
|
|
37711
38725
|
const cleanup = segmentCleanupOptions(true, supersededHost);
|
|
37712
38726
|
const runId = deps.options.eventRecorder?.runId;
|
|
38727
|
+
await snapshotSurvivorIdentities(ctx, completedOperations);
|
|
37713
38728
|
const { result, failed, unsettled, run } = await withNestedRevertRun(runId, async (scope) => {
|
|
37714
38729
|
const failedResult = orphanOps.length > 0 ? await withPrintingSecrets(replayPrintingBag(deps, orphanOps.map((op) => ({
|
|
37715
38730
|
...op,
|
|
@@ -39969,6 +40984,7 @@ async function runCleanupPhase(engine, { stackName, counts, completedOperations,
|
|
|
39969
40984
|
const verdict = engine.replacementRun.replacedOldMaySurvive.get(op.logicalId);
|
|
39970
40985
|
if (verdict !== void 0) op.oldResourceMaySurvive = verdict;
|
|
39971
40986
|
else delete op.oldResourceMaySurvive;
|
|
40987
|
+
if (verdict !== "deferred") delete op.oldResourceIdentity;
|
|
39972
40988
|
}
|
|
39973
40989
|
}
|
|
39974
40990
|
await retryCarriedSupersededResources(engine, host, carried, resources, { waitInUse: releasedSomething });
|
|
@@ -49844,6 +50860,7 @@ async function provisionCreateUpdateNode(run, createUpdateExecutor, enqueueLostC
|
|
|
49844
50860
|
oldDeletedBeforeCreate: engine.replacementRun.oldDeletedBeforeCreate.has(logicalId)
|
|
49845
50861
|
},
|
|
49846
50862
|
...change.changeType === "UPDATE" && engine.replacementRun.replacedOldMaySurvive.has(logicalId) && { oldResourceMaySurvive: engine.replacementRun.replacedOldMaySurvive.get(logicalId) },
|
|
50863
|
+
...change.changeType === "UPDATE" && engine.replacementRun.replacedOldMaySurvive.get(logicalId) === "deferred" && engine.replacementRun.replacedOldIdentity.has(logicalId) && { oldResourceIdentity: engine.replacementRun.replacedOldIdentity.get(logicalId) },
|
|
49847
50864
|
...change.changeType === "UPDATE" && engine.replacementRun.updateWasReplaced.has(logicalId) && { wasReplaced: engine.replacementRun.updateWasReplaced.get(logicalId) },
|
|
49848
50865
|
...change.changeType === "UPDATE" && engine.replacementRun.oldIdLeftForCleanup.has(logicalId) && { oldPhysicalIdLeftForCleanup: true },
|
|
49849
50866
|
...journaledUpdatePolicyField(change.changeType, engine.options.updatePolicy, template, logicalId, engine.resolvedUpdatePolicies.get(logicalId)),
|
|
@@ -52262,5 +53279,5 @@ var DeployEngine = class {
|
|
|
52262
53279
|
}
|
|
52263
53280
|
};
|
|
52264
53281
|
|
|
52265
|
-
export { sendTtlWaitingOutRateLimit as $, IntrinsicFunctionResolver as $a, withoutSdkUnwiredProperties as $c, secretNamedRecordNeedles as $i, warnWholeAssemblyAsSource as $l, canonicalizeIpProtocolValue as $n, isImpossibleEmptyStoredAttribute as $o, namesAnyDeclaredParameter as $r, refuseMalformedResourceEntriesForDeploy as $s, displacedPhysicalIdShown as $t, recordedProtectionEvidence as A, isCustomResourceType as Aa, STATE_REGION_DIVERGED as Ac, supersededHolderOf as Ai, isListParameterType as Al, findDestructiveChanges as An, s3BucketDualStackDomainName as Ao, computeImplicitDeleteEdges as Ar, maskedInputProof as As, S3_AUTO_DELETE_OBJECTS_TAG as At, declaredStreamTagsMember as B, withCustomResourceStack as Ba, JSON_LISTING_HOLE_VALUE as Bc, noEchoComparisonForTemplate as Bi, flattenAssetPlaceholders as Bl, differingRemedy as Bn, lacksRecordedRefArn as Bo, segmentCleanupOptions as Br, refuseMalformedOrphanRecords as Bs, sameMove as Bt, pendingMovesOutOf as C, wouldReturnToSdkProvider as Ca, malformedLocalOutputsWarning as Cc, withStackRecords as Ci, missingStateBucketRemedy as Cl, NOECHO_MAC_KEY_ALIAS as Cn, envCredentialsAreAssumedRole as Co, isJournaledOrphan as Cr, getSettledWriteOnlyPropertyPaths as Cs, INDEX_SETTLE_POLL_INTERVAL_MS as Ct, renderAssemblyPathEscape as Cu, findServiceTokenRefusals as D, responsePresignClient as Da, refuseMalformedOutputs as Dc, isSupersededResourceRecord as Di, renderNestedTemplateTreeDefect as Dl, noEchoMacVerdict as Dn, regionLessSecretName as Do, recordUnderIdIsNotOwn as Dr, maskedPropertyFingerprintsOf as Ds, relayedIndexBusyDelete as Dt, deferredServiceTokenWarning as E, customResourceResponseExpirationWarning as Ea, refuseMalformedNestedChildOutputs as Ec, holdsSupersededResources as Ei, listNestedTemplateRows as El, noEchoMacParametersOf as En, producerRegionsFromState as Eo, recheckFailedPlan as Er, inputFingerprinter as Es, maskedLogger as Et, resolveBucketRegion as Eu, readProtection as F, customResourcesFailedWithoutApp as Fa, refuseMalformedResourcesForDeploy as Fc, gray as Fi, rememberSynthesizedStacks as Fl, rollbackOrphanIds as Fn, parameterTypeMayLoseSecretIdentity as Fo, findNestedStackTypeChanges as Fr, isReadableOrphanRecord as Fs, readRefactorMarker as Ft, streamDeclaresTags as G, UNSPECIFIED_SKIP_REASON as Ga, displayLogicalId as Gc, completedReplayEntries as Gi, redirectFileAsset as Gl, propertiesChangedReason as Gn, keepHeldTokenProvenance as Go, nameScopeOf as Gr, unreadableOrphanRecords as Gs, chunks as Gt, readStreamPolicy as H, CloudControlProvider as Ha, withheldAccountClause as Hc, noEchoParameterNamesOf as Hi, isDefaultBootstrapRepoName as Hl, looselyEqual as Hn, parseWebACLArn as Ho, orphanNeedsIdentity as Hr, refuseMalformedOrphansForOrphan as Hs, macWriteOnlyKeys as Ht, DynamoDBGlobalTableProvider as I, customResourcesRunWithoutApp as Ia, refuseMalformedResourcesForDestroy as Ic, green as Ii, synthesizedStacks as Il, withMovedTo as In, AWS_NO_VALUE as Io, REDACTED_DELETE_ADDRESS_SKIP_REASON as Ir, malformedOrphanRecordsRefusalMessage as Is, readRefactorMarkerOnce as It, streamTagsMatchDeclared as J, deleteSkipReason as Ja, findActionableSdkUnwired as Jc, namingSecretsWithRecordedNoEcho as Ji, getDockerImageBySourceHash as Jl, siblingOwnedSgRuleIdentities as Jn, recordedProvenanceOf as Jo, retiredNameGenerationsLeaving as Jr, malformedLocalResourcesWarning as Js, withApiLimit as Jt, streamMemberRefusals as K, deleteIndeterminateGuards as Ka, hasReadableOutputs as Kc, journaledOrphanPrintingBag as Ki, rewriteTemplateAssetReferences as Kl, proposeRenames as Kn, outputReferenceProvenanceOf as Ko, retiredAfterRollback as Kr, isReadableResourceEntry as Ks, isAccessDeniedError as Kt, STREAM_POLICY_KEY as L, localCustomResourceCommand as La, refuseMalformedResourcesForExport as Lc, red as Li, buildAssetRedirectMap as Ll, changedReferenceInDiff as Ln, cfnRefValueFromPhysicalId as Lo, isRedactedRecordedValue as Lr, malformedOrphanRecordsWarning as Ls, refactorMarkerMovesOf as Lt, PROTECTION_PROPERTY_BY_TYPE as M, withPrintingSecrets as Ma, malformedRenderedContainersWarning as Mc, withoutSuperseded as Mi, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Ml, findRefactorHints as Mn, s3BucketWebsiteUrl as Mo, readsRegeneratingSecret as Mr, declaresNoEcho as Ms, isTruthyCfnBoolean as Mt, isProtectionValueActive as N, NO_LOCAL_CUSTOM_RESOURCES_FLAG as Na, malformedResourcesWarning as Nc, bold as Ni, purgeNoncurrentKeyVersions as Nl, hintSidesOf as Nn, coerceParameterTypedValue as No, resolveReplacementOldType as Nr, maskedPropertyFingerprint as Ns, keptForRetainedRecord as Nt, serviceTokenBlockingReason as O, TemplateNoEchoReresolver as Oa, refuseMalformedOutputsForDestroy as Oc, supersededAfterRollback as Oi, templateIdentity as Ol, noEchoValueMacsOf as On, s3BucketArn as Oo, replacementNeverSwapped as Or, movedMaskedProperties as Os, waitForIndexesSettled as Ot, perType as P, customResourceStackName as Pa, malformedStateRefusalMessage as Pc, cyan as Pi, decodeListingKey as Pl, movedToHint as Pn, isUnboundTemplateParameter as Po, withPreviousPolicies as Pr, deployRefusesOrphanRowsReason as Ps, recordRetainedForReadoption as Pt, readTtlSpec as Q, markWaitAbandoned as Qa, withoutAcceptedSdkUnwiredProperties as Qc, secretNamedAttributeNamesOf as Qi, warnAbsoluteAssetPath as Ql, sgProtocolKey as Qn, getAccountInfo as Qo, computeParameterTaint as Qr, refuseMalformedResourceEntries as Qs, displacedOpClause as Qt, STREAM_TAGS_KEY as R, localCustomResourceRuntimeActive as Ra, refuseMalformedState as Rc, yellow as Ri, createAssetRedirectResolver as Rl, changedReferencePath as Rn, isStalePlaceholderArnAttribute as Ro, redactedDeleteAddressFields as Rr, malformedOrphanRowsKeptWarning as Rs, refactorMarkerRefusalMessage as Rt, hasPendingMovesOut as S, isCustomResource as Sa, malformedExportSourceWarning as Sc, getStackRecords as Si, stringifyValue as Sl, crossStackReadsForPartialSave as Sn, callerEnvCredentials as So, demoteSupersededOrphans as Sr, toFiniteNumber as Ss, DELETE_INDEX_WAIT_PROCEED_NOTE as St, namesTheSameDirectory as Su, refusePendingMovesOut as T, applyCustomResourceResponseExpiration as Ta, malformedOutputsWarning as Tc, deleteSupersededEntry as Ti, isAbsoluteAssetPath as Tl, noEchoMacBinding as Tn, classifyReplaySecretRegion as To, planFailedOps as Tr, tryGetTopLevelWriteOnlyProperties as Ts, deleteTableWithIndexBusyRetry as Tt, clearBucketRegionCache as Tu, reverseMapStreamPolicy as U, waitForGoneAfterDelete as Ua, STATE_RESOURCES_MALFORMED as Uc, withAttemptedItemsMasked as Ui, loadPublishableAssetManifest as Ul, mappingPairs as Un, extractGetAttRefs as Uo, nameGenerationCarriedFrom as Ur, repairMalformedOrphanRecordsForReadOnly as Us, readsOnlyNoEchoParameters as Ut, planStreamMemberOps as V, waitForLambdaFunctionActive as Va, accountArgs as Vc, noEchoExactEchoLeavesOf as Vi, isDefaultBootstrapBucketName as Vl, isPairableType as Vn, lacksRecordedTableArn as Vo, removeProtectionTypeList as Vr, refuseMalformedOrphanRecordsForDestroy as Vs, updateRefactorMarker as Vt, streamDeclaresPolicy as W, RollbackInlinePolicyWriters as Wa, UNREADABLE_RESOURCES_MAP_ROW as Wc, createReadOnlyAttributeHealerFactory as Wi, redirectDockerAsset as Wl, parseMappingFile as Wn, promoteInPlaceAttributeDependents as Wo, nameGenerationHighWaterOf as Wr, unpreviewableOrphanRecords as Ws, formatResourceLine as Wt, isTtlRateLimited as X, getReadOnlyPropertyPaths as Xa, findSdkUnwiredProperties as Xc, secretNamePrintingBag as Xi, parseAssetManifestBody as Xl, withoutSiblingOwnedSgRules as Xn, referenceProvenanceOf as Xo, getCurrentProducerRegions as Xr, malformedScrubResourceEntriesRefusalMessage as Xs, resolvePendingCloudControlRequests as Xt, isTtlAlreadyDisabled as Y, withIndeterminateGuard as Ya, findHandledUnwrittenCreateOnly as Yc, orphanRecordsPrintingBag as Yi, isCfnTemplateAssetPath as Yl, stripSiblingOwnedSgRules as Yn, recordedReferenceRegions as Yo, withNameGenerationReached as Yr, malformedResourceEntriesWarning as Ys, pendingRequestCount as Yt, planTimeToLive as Z, isWaitAbandonedError as Za, unwrittenCreateOnlyReplacement as Zc, secretNamePrintingBags as Zi, resolveFileAssetSourcePath as Zl, cfnIngressPortValue as Zn, referenceTokensIn as Zo, inheritProducerRegions as Zr, refuseMalformedResourceAttributesForOrphan as Zs, NESTED_PENDING_PARENT_REASON as Zt, conditionFingerprint as _, withoutSiblingAttachedArns as _a, malformedOrphansWarning as _c, DEFAULT_RESOURCE_TIMEOUT_MS as _i, isNotImplemented as _l, makeForeignHolderScan as _n, isIamRoleArn as _o, reserveStackCreateToken as _r, renderStatefulReason as _s, beginDeleteWait as _t, ownValue as _u, scanActiveConsumers as a, ccRoutedFinalSnapshotError as aa, unreadableResourceEntries as ac, secretBearing as ai, S3StateBackend as al, revertedNestedRowIds as an, APPSYNC_APIKEY_ARN_RESOURCE_PATH as ao, settleUnsettledPrevious as ar, namesRecreatedParent as as, CONTRIBUTOR_INSIGHTS_KEY as at, getBootstrapMarkerKey as au, readRecordedConditionVerdicts as b, ProviderRegistry as ba, repairMalformedOrphansForReadOnly as bc, awaitInFlightSibling as bi, isSecretValuedAttribute as bl, DeploymentEventsReader as bn, AWS_CREDENTIAL_ENV_KEYS as bo, planRollback as br, isWarmThroughputDecrease as bs, resolveDynamoDbDeleteBudgetClock as bt, describeFileReadFailure as bu, nestedSsmNameDeferredNote as c, isFinalSnapshotError as ca, refuseMalformedResourceProperties as cc, carriedExportAliasExposure as ci, readOnlyStateVersionOf as cl, getCurrentNestedStackContext as cn, secretSegmentsOfState as co, equalModuloMarkedMask as cr, markNewValueKnownAfterDeploy as cs, planContributorInsightsOp as ct, validateAssetBucketName as cu, slashedSsmNameHealAdoptedNote as d, createPreDeleteFinalSnapshot as da, refuseMalformedResourcePropertiesForExport as dc, isWholeDynamicReferenceValue as di, rebuildClientForBucketRegion as dl, dropFailedCommands as dn, producerLookupOver as do, updatePartialMessage as dr, findReplacedReadersOfRecreateTargets as ds, reverseMapIndexContributorInsights as dt, getCdkdAssetBucketName as du, stateSecretNameNeedles as ea, refuseMalformedResourceEntriesForDestroy as ec, reachableDivergentParameters as ei, withoutUnwrittenSdkUnwiredProperties as el, dropSettledNestedJournals as en, isSelectOutOfBounds as eo, replayFailedOperations as er, carriesFetchableDynamicReference as es, planVectorIndexUpdates as et, AssetModeResolver as eu, slashedSsmNameHealNote as f, buildFinalSnapshotIdentifier as fa, refuseMalformedResourcePropertiesForOrphan as fc, noEchoParameterValueSeed as fi, CrossPrefixReadError as fl, dropFailedHint as fn, refuseUnreadableCdkCrossAccountRefs as fo, updatePartialReason as fr, isPlainReferenceTo as fs, reverseMapTableContributorInsights as ft, getCdkdContainerRepoName as fu, makeCanonicalizePropertiesFn as g, stripSiblingOwnedMembers as ga, malformedOrphansRefusalMessage as gc, bindingSkippedOutputs as gi, isAccessDenied$1 as gl, sameJournaledOrphans as gn, explicitRoleArnOrThrow as go, ledgerForStack as gr, isStatefulRecreateTargetSync as gs, DYNAMODB_DELETE_POLL_COST_MS as gt, nullPrototypeRecord as gu, inheritedProvenanceForChildDiff as h, collectPrincipalsAttachingPolicy as ha, hasReadableOrphans as hc, isExportAliasCollision as hi, crossPrefixDeniedWarning as hl, loadJournaledOrphans as hn, assertSendableRoleArn as ho, earliestDefined as hr, isStatefulRecreateTargetForReplace as hs, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as ht, hasPlainPrototype as hu, mergeNoChangeOutputs as i, PRE_DELETE_SNAPSHOT_TYPES as ia, repairMalformedResourceEntriesForReadOnly as ic, exportAliasCollisionScrubWarning as ii, TemplateParser as il, revertNestedChildFromJournal as in, isSettledInstanceState as io, recordAfterRollbackUpdate as ir, withSharedDrainBudget as is, vectorIndexesShapeDetail as it, isCrossRegionRedirect as iu, recordedProtectionNote as j, getCurrentResourceSecrets as ja, refuseDivergentRecordRegionForDestroy as jc, supersededResourcesOf as ji, ssmResolvedValueType as jl, formatDestructiveChange as jn, s3BucketRegionalDomainName as jo, attemptUsesCompletedCreate as jr, passedParameterClassesOf as js, hasCdkAutoDeleteTag as jt, diffSecurity as k, readsNoEchoDeleteValues as ka, repairMalformedOutputsForReadOnly as kc, supersededHeldByOtherTypeWarning as ki, SSM_PARAMETER_VALUE_PREFIX as kl, constructPathOf as kn, s3BucketDomainName as ko, IMPLICIT_DELETE_DEPENDENCIES as kr, parameterInputsFor as ks, ECR_AUTO_DELETE_IMAGES_TAG as kt, nestedSsmNameRowNote as l, refusesFinalSnapshot as la, refuseMalformedResourcePropertiesForDestroy as lc, exportNameNoEchoParameters as li, hasReasonlessBaselineRefusal as ll, withNestedStackContext as ln, withSecretPhysicalIdsMaskedInState as lo, equalModuloMask as lr, replacementSidesForLog as ls, planIndexContributorInsightsOps as lt, validateContainerRepoName as lu, crossStackOutputProvenanceSource as m, collectManagedPolicyArnsAttachedBySiblings as ma, UNREADABLE_ORPHANS_CONTAINER_ROW as mc, collectPublishedOutputNames as mi, applyCrossPrefixScan as ml, journaledOrphanLines as mn, assertFlagRoleArn as mo, replacementCreateRoutesToCloudControl as mr, MULTI_REGION_RECREATE_BLOCKED_TYPES as ms, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as mt, hasOwnKey as mu, isSecretBearingReferenceString as n, extractDeploymentEventError as na, refuseMalformedResourceEntriesForImportSave as nc, WITHHELD_NAME_DISPLAY as ni, hasNoCloudControlHandlers as nl, nestedChildStackName as nn, poisonRenderedSpellingsCollidingIn as no, DELETED_RESOURCE_REMEDY as nr, carriesDynamicReference as ns, vectorIndexesForCreate as nt, buildDenyExternalAccessPolicy as nu, inRunStackKey as o, ccRoutedInstanceTakesNoSnapshot as oa, malformedDriftResourcePropertiesWarning as oc, secretBearingStateKeyWarning as oi, splitImportedOps as ol, withNestedRevertRun as on, maskedSecretSegment as oo, withUnprovenUnsettled as or, INTRINSIC_KEYS as os, contributorInsightsRefusals as ot, parseBootstrapMarker as ou, slashedSsmNameHealPendingNote as p, collectGroupsAddedBySiblings as pa, repairMalformedResourcePropertiesForReadOnly as pc, collectDeclaredOutputNames as pi, CrossPrefixScanCache as pl, isHandledOrphan as pn, applyRoleArnIfSet as po, findUpdatePolicyReplacementRefusals as pr, shownType as ps, stripIndexContributorInsights as pt, defineOwnKey as pu, streamPolicyMatchesDeclared as q, deleteLeftInPlace as qa, hasReadableResources as qc, maskEventTextWithBoundBags as qi, AssetManifestLoader as ql, referencedLogicalIds as qn, recordedOutputReferenceRegions as qo, retiredNameGenerationsAfter as qr, malformedLocalResourceEntriesWarning as qs, lookupEachName as qt, keptWholeReasonText as r, ATOMIC_FINAL_SNAPSHOT_TYPES as ra, refuseMalformedResourceEntriesForOrphan as rc, displayTextOrWithheld as ri, PROPERTY_COVERAGE_BY_TYPE as rl, recordDisplacedSkips as rn, stackIdTailOf as ro, buildReadCurrentStateContext as rr, keepsSecretReferenceToken as rs, vectorIndexesSettled as rt, assertAssetBucketRegion as ru, checkNestedSsmNames as s, effectiveDeletionPolicy as sa, malformedResourcePropertiesWarning as sc, secretSafeKeyDisplay as si, isKnownTokenFreeState as sl, collectNestedChildUnaddressed as sn, secretPhysicalIdSegment as so, calculateResourceDrift as sr, containsIntrinsic as ss, indexDeclaresContributorInsights as st, readBootstrapMarkerBody as su, DeployEngine as t, storedSecretNameNeedles as ta, refuseMalformedResourceEntriesForImport as tc, resourcesNamingDeclaredParameter as ti, NO_CC_HANDLERS_REASON as tl, getNestedRevertRun as tn, isAlwaysLiveAttribute as to, replayRollback as tr, isNamelessDynamicReferenceError as ts, readbackVectorIndexes as tt, ensureAssetStorage as tu, healSlashedSsmParameterNames as u, unsupportedFinalSnapshotError as ua, refuseMalformedResourcePropertiesForDrift as uc, exportNameSecretExposure as ui, hasUnverifiableParameterRefusal as ul, deleteJournaledOrphans as un, resolveDynamicReferences as uo, undeclaredEmptyObservedKeys as ur, siblingsOf as us, readContributorInsightsSpec as ut, BOOTSTRAP_MARKER_PREFIX as uu, conditionInputsFrom as v, withoutSiblingOwned as va, refuseMalformedOrphans as vc, DEFAULT_RESOURCE_WARN_AFTER_MS as vi, stackInstanceIdOf as vl, makeSiblingClaimReader as vn, parseIamRoleArn as vo, withCreateTokenLedger as vr, WARM_THROUGHPUT_MEMBERS as vs, compensateRemovedDeletionProtection as vt, absoluteAssemblyPathEscape as vu, pendingMovesRefusalMessage as w, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as wa, malformedOutputsRefusalMessage as wc, replacedDeleteFailureVerdict as wi, findNestedTemplateTreeDefect as wl, createNoEchoValueMacs as wn, classifyRecordedSecretRegion as wo, isReplacementOrphan as wr, getTopLevelKeysHoldingUnreadableCreateOnly as ws, TABLE_INDEX_NOUN as wt, resolveAssemblyPath as wu, childTemplateLoader as x, ccBrokenReason as xa, malformedExportNamesWarning as xc, destroyStackRecordsView as xi, isSensitiveAttributeName as xl, DeploymentEventsStore as xn, applyCallerIdentityCredentials as xo, seedsDeleteFirstGuard as xr, toCfnInteger as xs, resolveDynamoDbDeleteBudgetMs as xt, displayAssemblyPath as xu, parentSuppliedValues as y, CC_BROKEN_REASON as ya, refuseMalformedOrphansForDestroy as yc, maskingRetryLogger as yi, withStackInstanceIdWithheld as yl, planOrphanAdoption as yn, sendableAssumeRoleCommand as yo, acquireIdempotencyToken as yr, coerceWarmThroughput as ys, deleteBudgetKey as yt, assemblyPathEscape as yu, declaredStreamPolicyMember as z, setLocalCustomResourceRuntimeEnabled as za, repairMalformedResourcesForReadOnly as zc, noEchoAttributeNamesOf as zi, createLazyAssetModeContext as zl, changedReferenceReason as zn, refStateLookupFromResource as zo, redactedDeleteAddressSkip as zr, previewableOrphanRecords as zs, refuseRefactorMarker as zt };
|
|
52266
|
-
//# sourceMappingURL=deploy-engine-
|
|
53282
|
+
export { sendTtlWaitingOutRateLimit as $, getReadOnlyPropertyPaths as $a, findSdkUnwiredProperties as $c, secretNamePrintingBag as $i, parseAssetManifestBody as $l, sgProtocolKey as $n, referenceProvenanceOf as $o, reachableDivergentParameters as $r, malformedScrubResourceEntriesRefusalMessage as $s, displacedPhysicalIdShown as $t, recordedProtectionEvidence as A, responsePresignClient as Aa, refuseMalformedOutputs as Ac, isSupersededResourceRecord as Ai, renderNestedTemplateTreeDefect as Al, findDestructiveChanges as An, regionLessSecretName as Ao, replacementNeverSwapped as Ar, maskedPropertyFingerprintsOf as As, S3_AUTO_DELETE_OBJECTS_TAG as At, declaredStreamTagsMember as B, localCustomResourceCommand as Ba, refuseMalformedResourcesForExport as Bc, red as Bi, buildAssetRedirectMap as Bl, differingRemedy as Bn, cfnRefValueFromPhysicalId as Bo, removeProtectionTypeList as Br, malformedOrphanRecordsWarning as Bs, sameMove as Bt, pendingMovesOutOf as C, ProviderRegistry as Ca, repairMalformedOrphansForReadOnly as Cc, replacedDeleteFailureVerdict as Ci, isSecretValuedAttribute as Cl, NOECHO_MAC_KEY_ALIAS as Cn, AWS_CREDENTIAL_ENV_KEYS as Co, seedsDeleteFirstGuard as Cr, isWarmThroughputDecrease as Cs, INDEX_SETTLE_POLL_INTERVAL_MS as Ct, describeFileReadFailure as Cu, findServiceTokenRefusals as D, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as Da, malformedOutputsRefusalMessage as Dc, findNestedStackTypeChanges as Di, findNestedTemplateTreeDefect as Dl, noEchoMacVerdict as Dn, classifyRecordedSecretRegion as Do, planFailedOps as Dr, getTopLevelKeysHoldingUnreadableCreateOnly as Ds, relayedIndexBusyDelete as Dt, resolveAssemblyPath as Du, deferredServiceTokenWarning as E, wouldReturnToSdkProvider as Ea, malformedLocalOutputsWarning as Ec, withPreviousPolicies as Ei, missingStateBucketRemedy as El, noEchoMacParametersOf as En, envCredentialsAreAssumedRole as Eo, isReplacementOrphan as Er, getSettledWriteOnlyPropertyPaths as Es, maskedLogger as Et, renderAssemblyPathEscape as Eu, readProtection as F, withPrintingSecrets as Fa, malformedRenderedContainersWarning as Fc, withoutSuperseded as Fi, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Fl, rollbackOrphanIds as Fn, s3BucketWebsiteUrl as Fo, REDACTED_DELETE_ADDRESS_SKIP_REASON as Fr, declaresNoEcho as Fs, readRefactorMarker as Ft, streamDeclaresTags as G, CloudControlProvider as Ga, withheldAccountClause as Gc, noEchoParameterNamesOf as Gi, isDefaultBootstrapRepoName as Gl, propertiesChangedReason as Gn, parseWebACLArn as Go, retiredAfterRollback as Gr, refuseMalformedOrphansForOrphan as Gs, chunks as Gt, readStreamPolicy as H, setLocalCustomResourceRuntimeEnabled as Ha, repairMalformedResourcesForReadOnly as Hc, noEchoAttributeNamesOf as Hi, createLazyAssetModeContext as Hl, looselyEqual as Hn, refStateLookupFromResource as Ho, nameGenerationCarriedFrom as Hr, previewableOrphanRecords as Hs, macWriteOnlyKeys as Ht, DynamoDBGlobalTableProvider as I, NO_LOCAL_CUSTOM_RESOURCES_FLAG as Ia, malformedResourcesWarning as Ic, bold as Ii, purgeNoncurrentKeyVersions as Il, withMovedTo as In, coerceParameterTypedValue as Io, isRedactedRecordedValue as Ir, maskedPropertyFingerprint as Is, readRefactorMarkerOnce as It, streamTagsMatchDeclared as J, UNSPECIFIED_SKIP_REASON as Ja, displayLogicalId as Jc, completedReplayEntries as Ji, redirectFileAsset as Jl, siblingOwnedRevertDesired as Jn, keepHeldTokenProvenance as Jo, withNameGenerationReached as Jr, unreadableOrphanRecords as Js, withApiLimit as Jt, streamMemberRefusals as K, waitForGoneAfterDelete as Ka, STATE_RESOURCES_MALFORMED as Kc, withAttemptedItemsMasked as Ki, loadPublishableAssetManifest as Kl, proposeRenames as Kn, extractGetAttRefs as Ko, retiredNameGenerationsAfter as Kr, repairMalformedOrphanRecordsForReadOnly as Ks, isAccessDeniedError as Kt, STREAM_POLICY_KEY as L, customResourceStackName as La, malformedStateRefusalMessage as Lc, cyan as Li, decodeListingKey as Ll, changedReferenceInDiff as Ln, isUnboundTemplateParameter as Lo, redactedDeleteAddressFields as Lr, deployRefusesOrphanRowsReason as Ls, refactorMarkerMovesOf as Lt, PROTECTION_PROPERTY_BY_TYPE as M, readsNoEchoDeleteValues as Ma, repairMalformedOutputsForReadOnly as Mc, supersededHeldByOtherTypeWarning as Mi, SSM_PARAMETER_VALUE_PREFIX as Ml, findRefactorHints as Mn, s3BucketDomainName as Mo, computeImplicitDeleteEdges as Mr, parameterInputsFor as Ms, isTruthyCfnBoolean as Mt, isProtectionValueActive as N, isCustomResourceType as Na, STATE_REGION_DIVERGED as Nc, supersededHolderOf as Ni, isListParameterType as Nl, hintSidesOf as Nn, s3BucketDualStackDomainName as No, attemptUsesCompletedCreate as Nr, maskedInputProof as Ns, keptForRetainedRecord as Nt, serviceTokenBlockingReason as O, applyCustomResourceResponseExpiration as Oa, malformedOutputsWarning as Oc, deleteSupersededEntry as Oi, isAbsoluteAssetPath as Ol, noEchoValueMacsOf as On, classifyReplaySecretRegion as Oo, recheckFailedPlan as Or, tryGetTopLevelWriteOnlyProperties as Os, waitForIndexesSettled as Ot, clearBucketRegionCache as Ou, perType as P, getCurrentResourceSecrets as Pa, refuseDivergentRecordRegionForDestroy as Pc, supersededResourcesOf as Pi, ssmResolvedValueType as Pl, movedToHint as Pn, s3BucketRegionalDomainName as Po, readsRegeneratingSecret as Pr, passedParameterClassesOf as Ps, recordRetainedForReadoption as Pt, readTtlSpec as Q, withIndeterminateGuard as Qa, findHandledUnwrittenCreateOnly as Qc, orphanRecordsPrintingBag as Qi, isCfnTemplateAssetPath as Ql, cfnIngressPortValue as Qn, recordedReferenceRegions as Qo, namesAnyDeclaredParameter as Qr, malformedResourceEntriesWarning as Qs, displacedOpClause as Qt, STREAM_TAGS_KEY as R, customResourcesFailedWithoutApp as Ra, refuseMalformedResourcesForDeploy as Rc, gray as Ri, rememberSynthesizedStacks as Rl, changedReferencePath as Rn, parameterTypeMayLoseSecretIdentity as Ro, redactedDeleteAddressSkip as Rr, isReadableOrphanRecord as Rs, refactorMarkerRefusalMessage as Rt, hasPendingMovesOut as S, CC_BROKEN_REASON as Sa, refuseMalformedOrphansForDestroy as Sc, withStackRecords as Si, withStackInstanceIdWithheld as Sl, crossStackReadsForPartialSave as Sn, sendableAssumeRoleCommand as So, planRollback as Sr, coerceWarmThroughput as Ss, DELETE_INDEX_WAIT_PROCEED_NOTE as St, assemblyPathEscape as Su, refusePendingMovesOut as T, isCustomResource as Ta, malformedExportSourceWarning as Tc, resolveReplacementOldType as Ti, stringifyValue as Tl, noEchoMacBinding as Tn, callerEnvCredentials as To, isJournaledOrphan as Tr, toFiniteNumber as Ts, deleteTableWithIndexBusyRetry as Tt, namesTheSameDirectory as Tu, reverseMapStreamPolicy as U, withCustomResourceStack as Ua, JSON_LISTING_HOLE_VALUE as Uc, noEchoComparisonForTemplate as Ui, flattenAssetPlaceholders as Ul, mappingPairs as Un, lacksRecordedRefArn as Uo, nameGenerationHighWaterOf as Ur, refuseMalformedOrphanRecords as Us, readsOnlyNoEchoParameters as Ut, planStreamMemberOps as V, localCustomResourceRuntimeActive as Va, refuseMalformedState as Vc, yellow as Vi, createAssetRedirectResolver as Vl, isPairableType as Vn, isStalePlaceholderArnAttribute as Vo, orphanNeedsIdentity as Vr, malformedOrphanRowsKeptWarning as Vs, updateRefactorMarker as Vt, streamDeclaresPolicy as W, waitForLambdaFunctionActive as Wa, accountArgs as Wc, noEchoExactEchoLeavesOf as Wi, isDefaultBootstrapBucketName as Wl, parseMappingFile as Wn, lacksRecordedTableArn as Wo, nameScopeOf as Wr, refuseMalformedOrphanRecordsForDestroy as Ws, formatResourceLine as Wt, isTtlRateLimited as X, deleteLeftInPlace as Xa, hasReadableResources as Xc, maskEventTextWithBoundBags as Xi, AssetManifestLoader as Xl, siblingOwnedSgRuleIdentities as Xn, recordedOutputReferenceRegions as Xo, inheritProducerRegions as Xr, malformedLocalResourceEntriesWarning as Xs, resolvePendingCloudControlRequests as Xt, isTtlAlreadyDisabled as Y, deleteIndeterminateGuards as Ya, hasReadableOutputs as Yc, journaledOrphanPrintingBag as Yi, rewriteTemplateAssetReferences as Yl, stripSiblingOwnedParentMembers as Yn, outputReferenceProvenanceOf as Yo, getCurrentProducerRegions as Yr, isReadableResourceEntry as Ys, pendingRequestCount as Yt, planTimeToLive as Z, deleteSkipReason as Za, findActionableSdkUnwired as Zc, namingSecretsWithRecordedNoEcho as Zi, getDockerImageBySourceHash as Zl, withoutSiblingOwnedSgRules as Zn, recordedProvenanceOf as Zo, computeParameterTaint as Zr, malformedLocalResourcesWarning as Zs, NESTED_PENDING_PARENT_REASON as Zt, conditionFingerprint as _, collectManagedPolicyArnsAttachedBySiblings as _a, UNREADABLE_ORPHANS_CONTAINER_ROW as _c, DEFAULT_RESOURCE_WARN_AFTER_MS as _i, applyCrossPrefixScan as _l, makeForeignHolderScan as _n, assertFlagRoleArn as _o, earliestDefined as _r, MULTI_REGION_RECREATE_BLOCKED_TYPES as _s, beginDeleteWait as _t, hasOwnKey as _u, scanActiveConsumers as a, extractDeploymentEventError as aa, refuseMalformedResourceEntriesForImportSave as ac, secretBearingStateKeyWarning as ai, hasNoCloudControlHandlers as al, revertedNestedRowIds as an, poisonRenderedSpellingsCollidingIn as ao, recordAfterRollbackUpdate as ar, carriesDynamicReference as as, CONTRIBUTOR_INSIGHTS_KEY as at, buildDenyExternalAccessPolicy as au, readRecordedConditionVerdicts as b, withoutSiblingAttachedArns as ba, malformedOrphansWarning as bc, destroyStackRecordsView as bi, isNotImplemented as bl, DeploymentEventsReader as bn, isIamRoleArn as bo, withCreateTokenLedger as br, renderStatefulReason as bs, resolveDynamoDbDeleteBudgetClock as bt, ownValue as bu, nestedSsmNameDeferredNote as c, ccRoutedFinalSnapshotError as ca, unreadableResourceEntries as cc, exportNameNoEchoParameters as ci, S3StateBackend as cl, getCurrentNestedStackContext as cn, APPSYNC_APIKEY_ARN_RESOURCE_PATH as co, calculateResourceDrift as cr, namesRecreatedParent as cs, planContributorInsightsOp as ct, getBootstrapMarkerKey as cu, slashedSsmNameHealAdoptedNote as d, isFinalSnapshotError as da, refuseMalformedResourceProperties as dc, noEchoParameterValueSeed as di, readOnlyStateVersionOf as dl, dropFailedCommands as dn, secretSegmentsOfState as do, undeclaredEmptyObservedKeys as dr, markNewValueKnownAfterDeploy as ds, reverseMapIndexContributorInsights as dt, validateAssetBucketName as du, secretNamePrintingBags as ea, refuseMalformedResourceAttributesForOrphan as ec, resourcesNamingDeclaredParameter as ei, unwrittenCreateOnlyReplacement as el, dropSettledNestedJournals as en, isWaitAbandonedError as eo, canonicalizeIpProtocolValue as er, referenceTokensIn as es, planVectorIndexUpdates as et, resolveFileAssetSourcePath as eu, slashedSsmNameHealNote as f, refusesFinalSnapshot as fa, refuseMalformedResourcePropertiesForDestroy as fc, collectDeclaredOutputNames as fi, hasReasonlessBaselineRefusal as fl, dropFailedHint as fn, withSecretPhysicalIdsMaskedInState as fo, verbatimEchoDriftKeys as fr, replacementSidesForLog as fs, reverseMapTableContributorInsights as ft, validateContainerRepoName as fu, makeCanonicalizePropertiesFn as g, collectGroupsAddedBySiblings as ga, repairMalformedResourcePropertiesForReadOnly as gc, DEFAULT_RESOURCE_TIMEOUT_MS as gi, CrossPrefixScanCache as gl, sameJournaledOrphans as gn, applyRoleArnIfSet as go, replacementCreateRoutesToCloudControl as gr, shownType as gs, DYNAMODB_DELETE_POLL_COST_MS as gt, defineOwnKey as gu, inheritedProvenanceForChildDiff as h, buildFinalSnapshotIdentifier as ha, refuseMalformedResourcePropertiesForOrphan as hc, bindingSkippedOutputs as hi, CrossPrefixReadError as hl, loadJournaledOrphans as hn, refuseUnreadableCdkCrossAccountRefs as ho, findUpdatePolicyReplacementRefusals as hr, isPlainReferenceTo as hs, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as ht, getCdkdContainerRepoName as hu, mergeNoChangeOutputs as i, storedSecretNameNeedles as ia, refuseMalformedResourceEntriesForImport as ic, secretBearing as ii, NO_CC_HANDLERS_REASON as il, revertNestedChildFromJournal as in, isAlwaysLiveAttribute as io, buildReadCurrentStateContext as ir, isNamelessDynamicReferenceError as is, vectorIndexesShapeDetail as it, ensureAssetStorage as iu, recordedProtectionNote as j, TemplateNoEchoReresolver as ja, refuseMalformedOutputsForDestroy as jc, supersededAfterRollback as ji, templateIdentity as jl, formatDestructiveChange as jn, s3BucketArn as jo, IMPLICIT_DELETE_DEPENDENCIES as jr, movedMaskedProperties as js, hasCdkAutoDeleteTag as jt, diffSecurity as k, customResourceResponseExpirationWarning as ka, refuseMalformedNestedChildOutputs as kc, holdsSupersededResources as ki, listNestedTemplateRows as kl, constructPathOf as kn, producerRegionsFromState as ko, recordUnderIdIsNotOwn as kr, inputFingerprinter as ks, ECR_AUTO_DELETE_IMAGES_TAG as kt, resolveBucketRegion as ku, nestedSsmNameRowNote as l, ccRoutedInstanceTakesNoSnapshot as la, malformedDriftResourcePropertiesWarning as lc, exportNameSecretExposure as li, splitImportedOps as ll, withNestedStackContext as ln, maskedSecretSegment as lo, equalModuloMarkedMask as lr, INTRINSIC_KEYS as ls, planIndexContributorInsightsOps as lt, parseBootstrapMarker as lu, crossStackOutputProvenanceSource as m, createPreDeleteFinalSnapshot as ma, refuseMalformedResourcePropertiesForExport as mc, isExportAliasCollision as mi, rebuildClientForBucketRegion as ml, journaledOrphanLines as mn, producerLookupOver as mo, updatePartialReason as mr, findReplacedReadersOfRecreateTargets as ms, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as mt, getCdkdAssetBucketName as mu, isSecretBearingReferenceString as n, secretNamedRecordNeedles as na, refuseMalformedResourceEntriesForDeploy as nc, displayTextOrWithheld as ni, withoutSdkUnwiredProperties as nl, nestedChildStackName as nn, IntrinsicFunctionResolver as no, replayRollback as nr, isImpossibleEmptyStoredAttribute as ns, vectorIndexesForCreate as nt, warnWholeAssemblyAsSource as nu, inRunStackKey as o, ATOMIC_FINAL_SNAPSHOT_TYPES as oa, refuseMalformedResourceEntriesForOrphan as oc, secretSafeKeyDisplay as oi, PROPERTY_COVERAGE_BY_TYPE as ol, withNestedRevertRun as on, stackIdTailOf as oo, settleUnsettledPrevious as or, keepsSecretReferenceToken as os, contributorInsightsRefusals as ot, assertAssetBucketRegion as ou, slashedSsmNameHealPendingNote as p, unsupportedFinalSnapshotError as pa, refuseMalformedResourcePropertiesForDrift as pc, collectPublishedOutputNames as pi, hasUnverifiableParameterRefusal as pl, isHandledOrphan as pn, resolveDynamicReferences as po, updatePartialMessage as pr, siblingsOf as ps, stripIndexContributorInsights as pt, BOOTSTRAP_MARKER_PREFIX as pu, streamPolicyMatchesDeclared as q, RollbackInlinePolicyWriters as qa, UNREADABLE_RESOURCES_MAP_ROW as qc, createReadOnlyAttributeHealerFactory as qi, redirectDockerAsset as ql, referencedLogicalIds as qn, promoteInPlaceAttributeDependents as qo, retiredNameGenerationsLeaving as qr, unpreviewableOrphanRecords as qs, lookupEachName as qt, keptWholeReasonText as r, stateSecretNameNeedles as ra, refuseMalformedResourceEntriesForDestroy as rc, exportAliasCollisionScrubWarning as ri, withoutUnwrittenSdkUnwiredProperties as rl, recordDisplacedSkips as rn, isSelectOutOfBounds as ro, DELETED_RESOURCE_REMEDY as rr, carriesFetchableDynamicReference as rs, vectorIndexesSettled as rt, AssetModeResolver as ru, checkNestedSsmNames as s, PRE_DELETE_SNAPSHOT_TYPES as sa, repairMalformedResourceEntriesForReadOnly as sc, carriedExportAliasExposure as si, TemplateParser as sl, collectNestedChildUnaddressed as sn, isSettledInstanceState as so, withUnprovenUnsettled as sr, withSharedDrainBudget as ss, indexDeclaresContributorInsights as st, isCrossRegionRedirect as su, DeployEngine as t, secretNamedAttributeNamesOf as ta, refuseMalformedResourceEntries as tc, WITHHELD_NAME_DISPLAY as ti, withoutAcceptedSdkUnwiredProperties as tl, getNestedRevertRun as tn, markWaitAbandoned as to, replayFailedOperations as tr, getAccountInfo as ts, readbackVectorIndexes as tt, warnAbsoluteAssetPath as tu, healSlashedSsmParameterNames as u, effectiveDeletionPolicy as ua, malformedResourcePropertiesWarning as uc, isWholeDynamicReferenceValue as ui, isKnownTokenFreeState as ul, deleteJournaledOrphans as un, secretPhysicalIdSegment as uo, equalModuloMask as ur, containsIntrinsic as us, readContributorInsightsSpec as ut, readBootstrapMarkerBody as uu, conditionInputsFrom as v, collectPrincipalsAttachingPolicy as va, hasReadableOrphans as vc, maskingRetryLogger as vi, crossPrefixDeniedWarning as vl, makeSiblingClaimReader as vn, assertSendableRoleArn as vo, ledgerForStack as vr, isStatefulRecreateTargetForReplace as vs, compensateRemovedDeletionProtection as vt, hasPlainPrototype as vu, pendingMovesRefusalMessage as w, ccBrokenReason as wa, malformedExportNamesWarning as wc, snapshotSegmentSurvivors as wi, isSensitiveAttributeName as wl, createNoEchoValueMacs as wn, applyCallerIdentityCredentials as wo, demoteSupersededOrphans as wr, toCfnInteger as ws, TABLE_INDEX_NOUN as wt, displayAssemblyPath as wu, childTemplateLoader as x, withoutSiblingOwned as xa, refuseMalformedOrphans as xc, getStackRecords as xi, stackInstanceIdOf as xl, DeploymentEventsStore as xn, parseIamRoleArn as xo, acquireIdempotencyToken as xr, WARM_THROUGHPUT_MEMBERS as xs, resolveDynamoDbDeleteBudgetMs as xt, absoluteAssemblyPathEscape as xu, parentSuppliedValues as y, isStoredExpression as ya, malformedOrphansRefusalMessage as yc, awaitInFlightSibling as yi, isAccessDenied$1 as yl, planOrphanAdoption as yn, explicitRoleArnOrThrow as yo, reserveStackCreateToken as yr, isStatefulRecreateTargetSync as ys, deleteBudgetKey as yt, nullPrototypeRecord as yu, declaredStreamPolicyMember as z, customResourcesRunWithoutApp as za, refuseMalformedResourcesForDestroy as zc, green as zi, synthesizedStacks as zl, changedReferenceReason as zn, AWS_NO_VALUE as zo, segmentCleanupOptions as zr, malformedOrphanRecordsRefusalMessage as zs, refuseRefactorMarker as zt };
|
|
53283
|
+
//# sourceMappingURL=deploy-engine-DD0u1ctj.js.map
|