@cdkd/cli 0.358.2 → 0.358.4
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-ov4YgebP.js → ambient-client-defaults-CcCQuSZx.js} +4 -3
- package/dist/ambient-client-defaults-CcCQuSZx.js.map +1 -0
- package/dist/{asg-provider-B3SM2Pb6.js → asg-provider-BYsZoqmF.js} +6 -6
- package/dist/{asg-provider-B3SM2Pb6.js.map → asg-provider-BYsZoqmF.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-C2L70Uvt.js → custom-resource-runtime-vUQQgT6M.js} +6 -6
- package/dist/{custom-resource-runtime-C2L70Uvt.js.map → custom-resource-runtime-vUQQgT6M.js.map} +1 -1
- package/dist/{db-associated-roles-BtFMDSS8.js → db-associated-roles-D1kkpP0k.js} +2 -2
- package/dist/{db-associated-roles-BtFMDSS8.js.map → db-associated-roles-D1kkpP0k.js.map} +1 -1
- package/dist/{delete-started-D6-EOWNl.js → delete-started-joCwegKq.js} +4 -4
- package/dist/{delete-started-D6-EOWNl.js.map → delete-started-joCwegKq.js.map} +1 -1
- package/dist/{deploy-engine-C7WHVVa_.js → deploy-engine-CilA7v8d.js} +977 -84
- package/dist/deploy-engine-CilA7v8d.js.map +1 -0
- package/dist/{diff-calculator-CfIvxdWW.js → diff-calculator-Bjr0sh-h.js} +12 -12
- package/dist/{diff-calculator-CfIvxdWW.js.map → diff-calculator-Bjr0sh-h.js.map} +1 -1
- package/dist/{ec2-termination-protection-BftAVRVj.js → ec2-termination-protection-Gdl3Djvt.js} +6 -6
- package/dist/{ec2-termination-protection-BftAVRVj.js.map → ec2-termination-protection-Gdl3Djvt.js.map} +1 -1
- package/dist/{ecr-uri-BcxKuVtg.js → ecr-uri-BhoeLkz2.js} +2 -2
- package/dist/{ecr-uri-BcxKuVtg.js.map → ecr-uri-BhoeLkz2.js.map} +1 -1
- package/dist/{expected-bucket-owner-DF9akR1A.js → expected-bucket-owner-CIiqUDil.js} +2 -2
- package/dist/{expected-bucket-owner-DF9akR1A.js.map → expected-bucket-owner-CIiqUDil.js.map} +1 -1
- package/dist/{iam-role-provider-D83igvxU.js → iam-role-provider-gS0g_h2H.js} +8 -8
- package/dist/{iam-role-provider-D83igvxU.js.map → iam-role-provider-gS0g_h2H.js.map} +1 -1
- package/dist/{image-plan-CX0jARAo.js → image-plan-hSzmMXmK.js} +8 -8
- package/dist/{image-plan-CX0jARAo.js.map → image-plan-hSzmMXmK.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-BOyzi_bp.js → logger-ZjhMP0A2.js} +2 -2
- package/dist/{logger-BOyzi_bp.js.map → logger-ZjhMP0A2.js.map} +1 -1
- package/dist/{neptune-provider-LICtrjZA.js → neptune-provider-D3O8Y0lx.js} +7 -7
- package/dist/{neptune-provider-LICtrjZA.js.map → neptune-provider-D3O8Y0lx.js.map} +1 -1
- package/dist/{program-CNXtBZfo.js → program-MndcrrWf.js} +476 -47
- package/dist/program-MndcrrWf.js.map +1 -0
- package/dist/{provider-classes-DTrcboTq.js → provider-classes-KrOpD8Sp.js} +846 -748
- package/dist/provider-classes-KrOpD8Sp.js.map +1 -0
- package/dist/{rds-provider-CBmrdoyi.js → rds-provider-Q_PZr6mn.js} +10 -10
- package/dist/{rds-provider-CBmrdoyi.js.map → rds-provider-Q_PZr6mn.js.map} +1 -1
- package/dist/{read-replica-BCcgBJRn.js → read-replica-DyQpEv77.js} +3 -3
- package/dist/{read-replica-BCcgBJRn.js.map → read-replica-DyQpEv77.js.map} +1 -1
- package/dist/{replacement-rules-BfJK4-AO.js → replacement-rules-BdvFwhmu.js} +3 -3
- package/dist/{replacement-rules-BfJK4-AO.js.map → replacement-rules-BdvFwhmu.js.map} +1 -1
- package/dist/{resource-deadline-C8ZUmToQ.js → resource-deadline-CKaftDB_.js} +8 -5
- package/dist/{resource-deadline-C8ZUmToQ.js.map → resource-deadline-CKaftDB_.js.map} +1 -1
- package/dist/{restore-source-guard-VsAsPwf6.js → restore-source-guard-eOILAZqS.js} +4 -4
- package/dist/{restore-source-guard-VsAsPwf6.js.map → restore-source-guard-eOILAZqS.js.map} +1 -1
- package/dist/{run-cli-Cauimq5Y.js → run-cli-PZtAEtYO.js} +2 -2
- package/dist/{run-cli-Cauimq5Y.js.map → run-cli-PZtAEtYO.js.map} +1 -1
- package/dist/{version-DWD1DsuN.js → version-DiwszmmI.js} +2 -2
- package/dist/{version-DWD1DsuN.js.map → version-DiwszmmI.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ambient-client-defaults-ov4YgebP.js.map +0 -1
- package/dist/deploy-engine-C7WHVVa_.js.map +0 -1
- package/dist/program-CNXtBZfo.js.map +0 -1
- package/dist/provider-classes-DTrcboTq.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-DiwszmmI.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-ZjhMP0A2.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-CcCQuSZx.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-Gdl3Djvt.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-CKaftDB_.js";
|
|
9
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-CIiqUDil.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-joCwegKq.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-BdvFwhmu.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-eOILAZqS.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-CIiqUDil.js").then((n) => n.n);
|
|
86
86
|
return (await client.send(new GetBucketLocationCommand({
|
|
87
87
|
Bucket: bucketName,
|
|
88
88
|
...await expectedOwnerParam(client)
|
|
@@ -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
|
}
|
|
@@ -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,13 @@ 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::GuardDuty::Master",
|
|
12386
|
+
"AWS::GuardDuty::Member",
|
|
12387
|
+
"AWS::EMR::InstanceFleetConfig"
|
|
12337
12388
|
]);
|
|
12338
12389
|
const REF_RETURNS_SEGMENT_BEFORE_FIRST_PIPE = /* @__PURE__ */ new Set([
|
|
12339
12390
|
"AWS::EC2::EIP",
|
|
@@ -12342,7 +12393,11 @@ const REF_RETURNS_SEGMENT_BEFORE_FIRST_PIPE = /* @__PURE__ */ new Set([
|
|
|
12342
12393
|
"AWS::ApiGatewayV2::Authorizer",
|
|
12343
12394
|
"AWS::ApiGatewayV2::ApiMapping",
|
|
12344
12395
|
"AWS::ECS::Service",
|
|
12345
|
-
"AWS::EC2::VPCCidrBlock"
|
|
12396
|
+
"AWS::EC2::VPCCidrBlock",
|
|
12397
|
+
"AWS::SES::ReceiptRule",
|
|
12398
|
+
"AWS::GuardDuty::IPSet",
|
|
12399
|
+
"AWS::GuardDuty::ThreatIntelSet",
|
|
12400
|
+
"AWS::EMR::InstanceGroupConfig"
|
|
12346
12401
|
]);
|
|
12347
12402
|
const REF_RETURNS_NAME_FROM_ARN = /* @__PURE__ */ new Map([["AWS::Events::Rule", ":rule/"], ["AWS::CloudTrail::Trail", ":trail/"]]);
|
|
12348
12403
|
const REF_RETURNS_SEGMENT_AT_INDEX = /* @__PURE__ */ new Map([["AWS::Route53::RecordSet", {
|
|
@@ -12428,6 +12483,8 @@ function cfnRefValueFromPhysicalId(resourceType, physicalId, stateLookup) {
|
|
|
12428
12483
|
if (resourceType === "AWS::S3Tables::Namespace") return s3TablesNamespaceRefFromPhysicalId(physicalId);
|
|
12429
12484
|
if (resourceType === "AWS::EC2::VPCGatewayAttachment") return vpcGatewayAttachmentRefFromPhysicalId(physicalId);
|
|
12430
12485
|
if (resourceType === "AWS::AppSync::GraphQLSchema") return graphQLSchemaCfnId(physicalId);
|
|
12486
|
+
const typeRef = REF_FROM_PHYSICAL_ID_HELPERS.get(resourceType);
|
|
12487
|
+
if (typeRef) return typeRef(physicalId, stateLookup);
|
|
12431
12488
|
if (resourceType === "AWS::Glue::Table") {
|
|
12432
12489
|
const tableName = glueTableRefFromPhysicalId(physicalId, stateLookup);
|
|
12433
12490
|
if (tableName !== void 0) return tableName;
|
|
@@ -19884,7 +19941,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
19884
19941
|
const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
|
|
19885
19942
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
19886
19943
|
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-
|
|
19944
|
+
const { ASGProvider } = await import("./asg-provider-BYsZoqmF.js");
|
|
19888
19945
|
const delegateRegion = ambientRegion();
|
|
19889
19946
|
let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
|
|
19890
19947
|
if (asgProvider === void 0) {
|
|
@@ -20038,7 +20095,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
|
|
|
20038
20095
|
const family = SDK_DELETE_FAMILIES.get(resourceType);
|
|
20039
20096
|
const cached = this.sdkDeleteDelegates.get(family);
|
|
20040
20097
|
if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
|
|
20041
|
-
const provider = family === "rds" ? new (await (import("./rds-provider-
|
|
20098
|
+
const provider = family === "rds" ? new (await (import("./rds-provider-Q_PZr6mn.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-D3O8Y0lx.js"))).NeptuneProvider({ region: ccRegion });
|
|
20042
20099
|
this.sdkDeleteDelegates.set(family, {
|
|
20043
20100
|
region: ccRegion,
|
|
20044
20101
|
provider
|
|
@@ -21743,11 +21800,11 @@ function applyNoEchoDeleteValues(properties, recordedLeaves, values) {
|
|
|
21743
21800
|
payload: properties,
|
|
21744
21801
|
unresolved: []
|
|
21745
21802
|
};
|
|
21746
|
-
const byKey = new Map((values?.leaves ?? []).map((leaf) => [canonicalJson$
|
|
21803
|
+
const byKey = new Map((values?.leaves ?? []).map((leaf) => [canonicalJson$6(leaf.coordinate), leaf]));
|
|
21747
21804
|
const entries = [];
|
|
21748
21805
|
const unresolved = [];
|
|
21749
21806
|
for (const coordinate of masked) {
|
|
21750
|
-
const leaf = byKey.get(canonicalJson$
|
|
21807
|
+
const leaf = byKey.get(canonicalJson$6(coordinate));
|
|
21751
21808
|
if (leaf === void 0) unresolved.push(coordinate);
|
|
21752
21809
|
else entries.push({
|
|
21753
21810
|
coordinate,
|
|
@@ -21798,7 +21855,7 @@ async function noEchoDeleteValuesFromResolved(options) {
|
|
|
21798
21855
|
const fingerprinter = options.inputSources === void 0 ? void 0 : inputFingerprinter(templateProps, options.inputSources);
|
|
21799
21856
|
const leaves = [];
|
|
21800
21857
|
for (const coordinate of masked) {
|
|
21801
|
-
if (!nodes.has(canonicalJson$
|
|
21858
|
+
if (!nodes.has(canonicalJson$6(coordinate))) continue;
|
|
21802
21859
|
if (!await fingerprintsUnchanged(record, templateProps, coordinate, fingerprinter)) continue;
|
|
21803
21860
|
const value = valueAtCoordinate(resolvedProperties, coordinate);
|
|
21804
21861
|
if (value === void 0 || carriesSecretMask(value)) continue;
|
|
@@ -21977,7 +22034,7 @@ var TemplateNoEchoReresolver = class TemplateNoEchoReresolver {
|
|
|
21977
22034
|
const bag = await this.noEchoNeedles();
|
|
21978
22035
|
const leaves = [];
|
|
21979
22036
|
for (const coordinate of masked) {
|
|
21980
|
-
const key = canonicalJson$
|
|
22037
|
+
const key = canonicalJson$6(coordinate);
|
|
21981
22038
|
if (!nodes.has(key)) continue;
|
|
21982
22039
|
const node = nodes.get(key)?.node;
|
|
21983
22040
|
if (!readsParametersOnly(node, declared, refused)) continue;
|
|
@@ -22679,7 +22736,7 @@ async function publishToSns(topicArn, request) {
|
|
|
22679
22736
|
}
|
|
22680
22737
|
async function invokeLambda(serviceToken, request) {
|
|
22681
22738
|
if (localCustomResourceRuntimeActive()) {
|
|
22682
|
-
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-
|
|
22739
|
+
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-vUQQgT6M.js");
|
|
22683
22740
|
const local = await invokeCustomResourceFunctionLocally({
|
|
22684
22741
|
lambda: this.lambdaClient,
|
|
22685
22742
|
s3: this.s3Client
|
|
@@ -26670,7 +26727,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
|
|
|
26670
26727
|
if (resourceType !== "AWS::RDS::DBInstance") return false;
|
|
26671
26728
|
if (region === void 0 || region === "") return false;
|
|
26672
26729
|
const mask = input.mask ?? ((text) => text);
|
|
26673
|
-
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-
|
|
26730
|
+
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-DyQpEv77.js").then((n) => n.l);
|
|
26674
26731
|
let reason;
|
|
26675
26732
|
try {
|
|
26676
26733
|
const live = await describeDBInstanceInRegion(physicalId, region);
|
|
@@ -29217,7 +29274,7 @@ function handleOutputResolutionFailure(deps, error, outputKey, outputs, secrets,
|
|
|
29217
29274
|
}
|
|
29218
29275
|
|
|
29219
29276
|
// src/analyzer/skipped-outputs.ts
|
|
29220
|
-
function canonicalJson$
|
|
29277
|
+
function canonicalJson$4(value) {
|
|
29221
29278
|
return JSON.stringify(value, (_key, v) => {
|
|
29222
29279
|
if (v !== null && typeof v === "object" && !Array.isArray(v)) {
|
|
29223
29280
|
const sorted = Object.create(null);
|
|
@@ -29247,7 +29304,7 @@ function skippedOutputDigest(template, outputKey) {
|
|
|
29247
29304
|
sections[section] = section === "Parameters" ? withNoEchoDefaultsMasked(body) : body;
|
|
29248
29305
|
}
|
|
29249
29306
|
const entry = template.Outputs?.[outputKey];
|
|
29250
|
-
return createHash("sha256").update(canonicalJson$
|
|
29307
|
+
return createHash("sha256").update(canonicalJson$4({
|
|
29251
29308
|
output: entry,
|
|
29252
29309
|
template: sections
|
|
29253
29310
|
})).digest("hex");
|
|
@@ -30017,7 +30074,7 @@ var ReplayResolvers = class {
|
|
|
30017
30074
|
constructor(stackRegion, regeneratedSecrets = /* @__PURE__ */ new Set()) {
|
|
30018
30075
|
this.stackRegion = stackRegion;
|
|
30019
30076
|
this.primary = new IntrinsicFunctionResolver(stackRegion);
|
|
30020
|
-
this.regeneratedSecrets = regeneratedSecrets;
|
|
30077
|
+
this.regeneratedSecrets = regeneratedSecrets ?? /* @__PURE__ */ new Set();
|
|
30021
30078
|
}
|
|
30022
30079
|
forRegion(region) {
|
|
30023
30080
|
const target = canonicalizeRegion(region);
|
|
@@ -30103,7 +30160,7 @@ function keepPersistedPlainLeaves(redacted, raw, persisted) {
|
|
|
30103
30160
|
}
|
|
30104
30161
|
return out ?? redacted;
|
|
30105
30162
|
}
|
|
30106
|
-
if (!isPlainRecord$
|
|
30163
|
+
if (!isPlainRecord$5(raw) || !isPlainRecord$5(persisted) || !isPlainRecord$5(redacted)) return redacted;
|
|
30107
30164
|
let out;
|
|
30108
30165
|
for (const key of Object.keys(redacted)) {
|
|
30109
30166
|
if (!hasOwnKey(raw, key) || !hasOwnKey(persisted, key)) continue;
|
|
@@ -30114,7 +30171,7 @@ function keepPersistedPlainLeaves(redacted, raw, persisted) {
|
|
|
30114
30171
|
}
|
|
30115
30172
|
return out ?? redacted;
|
|
30116
30173
|
}
|
|
30117
|
-
function isPlainRecord$
|
|
30174
|
+
function isPlainRecord$5(value) {
|
|
30118
30175
|
return typeof value === "object" && value !== null && !Array.isArray(value) && hasPlainPrototype(value);
|
|
30119
30176
|
}
|
|
30120
30177
|
|
|
@@ -30848,7 +30905,8 @@ function revertRegeneratesSecret(op, stateResources) {
|
|
|
30848
30905
|
const current = Object.hasOwn(stateResources, op.logicalId) ? stateResources[op.logicalId] : void 0;
|
|
30849
30906
|
const previousGenerate = op.previousState?.properties?.["GenerateSecretString"];
|
|
30850
30907
|
if (previousGenerate === void 0 || previousGenerate === null) return false;
|
|
30851
|
-
|
|
30908
|
+
const forward = op.properties ?? current?.properties;
|
|
30909
|
+
return !deepEqual$2(previousGenerate, forward?.["GenerateSecretString"]);
|
|
30852
30910
|
}
|
|
30853
30911
|
function regeneratedSecretAddresses(op) {
|
|
30854
30912
|
const out = /* @__PURE__ */ new Set();
|
|
@@ -30900,6 +30958,16 @@ function orderAfterRegeneratedSecrets(ops, stateResources) {
|
|
|
30900
30958
|
}
|
|
30901
30959
|
return out;
|
|
30902
30960
|
}
|
|
30961
|
+
function readsRegeneratingSecret(logicalId, stateResources, completedOps) {
|
|
30962
|
+
const record = Object.hasOwn(stateResources, logicalId) ? stateResources[logicalId] : void 0;
|
|
30963
|
+
if (record === void 0) return false;
|
|
30964
|
+
const text = JSON.stringify(record.properties ?? {});
|
|
30965
|
+
return completedOps.some((op) => revertRegeneratesSecret(op, stateResources) && leafReadsSecret(text, regeneratedSecretAddresses(op)));
|
|
30966
|
+
}
|
|
30967
|
+
function attemptUsesCompletedCreate(attemptedProperties, completedOps) {
|
|
30968
|
+
const text = JSON.stringify(attemptedProperties ?? {});
|
|
30969
|
+
return completedOps.some((op) => op.changeType === "CREATE" && typeof op.physicalId === "string" && op.physicalId !== "" && text.includes(op.physicalId));
|
|
30970
|
+
}
|
|
30903
30971
|
|
|
30904
30972
|
// src/analyzer/implicit-delete-deps.ts
|
|
30905
30973
|
const IMPLICIT_DELETE_DEPENDENCIES = {
|
|
@@ -32294,7 +32362,7 @@ function maskRestoredNoEchoRecord(record, baseline, substituted = []) {
|
|
|
32294
32362
|
const marked = noEchoLeavesOf(baseline) ?? [];
|
|
32295
32363
|
const names = declaredNoEchoAttributeNames(baseline);
|
|
32296
32364
|
if (marked.length === 0 && names.length === 0 && substituted.length === 0) return record;
|
|
32297
|
-
const echoes = (name, value) => value !== record.physicalId && substituted.some((leaf) => leaf.coordinate[0] === name && canonicalJson$
|
|
32365
|
+
const echoes = (name, value) => value !== record.physicalId && substituted.some((leaf) => leaf.coordinate[0] === name && canonicalJson$6(leaf.value) === canonicalJson$6(value));
|
|
32298
32366
|
let attributes = record.attributes;
|
|
32299
32367
|
if (attributes !== void 0 && attributes !== null && typeof attributes === "object") for (const [name, value] of Object.entries(attributes)) {
|
|
32300
32368
|
if (!names.includes(name) && !echoes(name, value)) continue;
|
|
@@ -32305,7 +32373,7 @@ function maskRestoredNoEchoRecord(record, baseline, substituted = []) {
|
|
|
32305
32373
|
const list = coordinate.findIndex((segment) => typeof segment === "number");
|
|
32306
32374
|
if (list < 0) return false;
|
|
32307
32375
|
const path = coordinate.slice(0, list);
|
|
32308
|
-
return canonicalJson$
|
|
32376
|
+
return canonicalJson$6(valueAtCoordinate(byIndex, path)) !== canonicalJson$6(valueAtCoordinate(baseline.properties, path));
|
|
32309
32377
|
});
|
|
32310
32378
|
const properties = reshaped.length === 0 ? byIndex : maskReadbackAtCoordinates(byIndex, baseline.properties, reshaped);
|
|
32311
32379
|
const widened = reshaped.map((coordinate) => readbackPathFor(byIndex, baseline.properties, coordinate)).filter((path, i) => path !== void 0 && path.length < reshaped[i].length);
|
|
@@ -32477,11 +32545,11 @@ function canonicalizeUnorderedArraysAtPaths(v, paths) {
|
|
|
32477
32545
|
if (paths.length === 0) return v;
|
|
32478
32546
|
return walkUnordered(v, "", paths);
|
|
32479
32547
|
}
|
|
32480
|
-
function canonicalJson$
|
|
32481
|
-
if (Array.isArray(v)) return `[${v.map(canonicalJson$
|
|
32548
|
+
function canonicalJson$3(v) {
|
|
32549
|
+
if (Array.isArray(v)) return `[${v.map(canonicalJson$3).join(",")}]`;
|
|
32482
32550
|
if (v && typeof v === "object") {
|
|
32483
32551
|
const bag = v;
|
|
32484
|
-
return `{${Object.keys(bag).filter((k) => bag[k] !== void 0).sort().map((k) => `${JSON.stringify(k)}:${canonicalJson$
|
|
32552
|
+
return `{${Object.keys(bag).filter((k) => bag[k] !== void 0).sort().map((k) => `${JSON.stringify(k)}:${canonicalJson$3(bag[k])}`).join(",")}}`;
|
|
32485
32553
|
}
|
|
32486
32554
|
return JSON.stringify(v) ?? "null";
|
|
32487
32555
|
}
|
|
@@ -32494,7 +32562,7 @@ function walkUnordered(v, path, paths) {
|
|
|
32494
32562
|
if (mapped.every(isPlainObjectElement)) {
|
|
32495
32563
|
const keyed = mapped.map((el) => ({
|
|
32496
32564
|
el,
|
|
32497
|
-
key: canonicalJson$
|
|
32565
|
+
key: canonicalJson$3(el)
|
|
32498
32566
|
}));
|
|
32499
32567
|
keyed.sort((a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0);
|
|
32500
32568
|
return keyed.map((k) => k.el);
|
|
@@ -32517,11 +32585,12 @@ function calculateResourceDrift(stateProperties, awsProperties, options) {
|
|
|
32517
32585
|
const ignore = options?.ignorePaths ?? [];
|
|
32518
32586
|
const union = options?.unionWalkObjects ?? false;
|
|
32519
32587
|
const unordered = options?.unorderedPaths ?? [];
|
|
32588
|
+
const unionPaths = options?.unionWalkPaths ?? [];
|
|
32520
32589
|
stateProperties = canonicalizeUnorderedArraysAtPaths(canonicalizeIdArraysDeep(canonicalizeTagListsDeep(stateProperties)), unordered);
|
|
32521
32590
|
awsProperties = canonicalizeUnorderedArraysAtPaths(canonicalizeIdArraysDeep(canonicalizeTagListsDeep(awsProperties)), unordered);
|
|
32522
32591
|
for (const key of Object.keys(stateProperties)) {
|
|
32523
32592
|
if (isIgnoredPath(key, ignore)) continue;
|
|
32524
|
-
diffAt(key, stateProperties[key], awsProperties[key], drifts, ignore, union);
|
|
32593
|
+
diffAt(key, stateProperties[key], awsProperties[key], drifts, ignore, union, unionPaths);
|
|
32525
32594
|
}
|
|
32526
32595
|
return drifts;
|
|
32527
32596
|
}
|
|
@@ -32537,17 +32606,17 @@ function undeclaredEmptyObservedKeys(observed, declared) {
|
|
|
32537
32606
|
function isIgnoredPath(path, ignorePaths) {
|
|
32538
32607
|
return matchesPathPrefix(path, ignorePaths);
|
|
32539
32608
|
}
|
|
32540
|
-
function diffAt(path, stateValue, awsValue, out, ignorePaths, unionWalkObjects) {
|
|
32609
|
+
function diffAt(path, stateValue, awsValue, out, ignorePaths, unionWalkObjects, unionWalkPaths) {
|
|
32541
32610
|
const stateForm = jsonForm(stateValue);
|
|
32542
32611
|
const awsForm = jsonForm(awsValue);
|
|
32543
32612
|
if (deepEqual$1(stateForm, awsForm)) return;
|
|
32544
32613
|
if (typeof stateValue === "string" && stateValue.includes("{{resolve:")) return;
|
|
32545
32614
|
if (isPlainObject$5(stateForm) && isPlainObject$5(awsForm) && !Array.isArray(stateForm) && !Array.isArray(awsForm)) {
|
|
32546
|
-
const keys = unionWalkObjects ? /* @__PURE__ */ new Set([...Object.keys(stateForm), ...Object.keys(awsForm)]) : Object.keys(stateForm);
|
|
32615
|
+
const keys = unionWalkObjects || matchesPathPrefix(path, unionWalkPaths) ? /* @__PURE__ */ new Set([...Object.keys(stateForm), ...Object.keys(awsForm)]) : Object.keys(stateForm);
|
|
32547
32616
|
for (const key of keys) {
|
|
32548
32617
|
const childPath = `${path}.${key}`;
|
|
32549
32618
|
if (isIgnoredPath(childPath, ignorePaths)) continue;
|
|
32550
|
-
diffAt(childPath, stateForm[key], awsForm[key], out, ignorePaths, unionWalkObjects);
|
|
32619
|
+
diffAt(childPath, stateForm[key], awsForm[key], out, ignorePaths, unionWalkObjects, unionWalkPaths);
|
|
32551
32620
|
}
|
|
32552
32621
|
return;
|
|
32553
32622
|
}
|
|
@@ -32953,11 +33022,16 @@ function buildReadCurrentStateContext(state, excludedLogicalId) {
|
|
|
32953
33022
|
};
|
|
32954
33023
|
}
|
|
32955
33024
|
const own = (state.resources ?? {})[excludedLogicalId];
|
|
32956
|
-
const
|
|
32957
|
-
|
|
33025
|
+
const ownRecord = (key) => {
|
|
33026
|
+
const value = isReadableResourceEntry(own) ? own[key] : void 0;
|
|
33027
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
|
|
33028
|
+
};
|
|
33029
|
+
const ownAttributes = ownRecord("attributes");
|
|
33030
|
+
const ownObserved = ownRecord("observedProperties");
|
|
32958
33031
|
return {
|
|
32959
33032
|
siblings,
|
|
32960
|
-
...ownAttributes && { attributes: ownAttributes }
|
|
33033
|
+
...ownAttributes && { attributes: ownAttributes },
|
|
33034
|
+
...ownObserved && { driftBaseline: ownObserved }
|
|
32961
33035
|
};
|
|
32962
33036
|
}
|
|
32963
33037
|
|
|
@@ -33801,6 +33875,7 @@ async function replayRollbackUnbound(operations, stateResources, stackName, ctx,
|
|
|
33801
33875
|
eventType: "ROLLBACK_FINISHED",
|
|
33802
33876
|
stackName
|
|
33803
33877
|
});
|
|
33878
|
+
if (regenerated.size > 0) result.regeneratedSecrets = regenerated;
|
|
33804
33879
|
return result;
|
|
33805
33880
|
}
|
|
33806
33881
|
async function replaySingle(op, stateResources, stackName, ctx, resolver, orphanLogicalIds, result, onOrphan, inlinePolicyWriters, afterOp, isInterrupted, createdInSegment = /* @__PURE__ */ new Set(), onRolledBackCreate, deferral, movedIdCleanups) {
|
|
@@ -33968,7 +34043,7 @@ async function replayFailedOperationsUnbound(failedOps, stateResources, stackNam
|
|
|
33968
34043
|
result,
|
|
33969
34044
|
onRolledBackCreate: options.onRolledBackCreate
|
|
33970
34045
|
};
|
|
33971
|
-
const resolver = new ReplayResolvers(ctx.region);
|
|
34046
|
+
const resolver = new ReplayResolvers(ctx.region, options.regeneratedSecrets);
|
|
33972
34047
|
const emitEnvelope = options.emitEnvelope === true && failedOps.length > 0;
|
|
33973
34048
|
if (emitEnvelope) ctx.recordEvent?.({
|
|
33974
34049
|
eventType: "ROLLBACK_STARTED",
|
|
@@ -34393,12 +34468,12 @@ const IDENTITY_KEYS$1 = [
|
|
|
34393
34468
|
"DestinationSecurityGroupId",
|
|
34394
34469
|
"DestinationPrefixListId"
|
|
34395
34470
|
];
|
|
34396
|
-
function isPlainRecord$
|
|
34471
|
+
function isPlainRecord$4(value) {
|
|
34397
34472
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
34398
34473
|
}
|
|
34399
34474
|
function namesGroup(groupId, logicalId, physicalId) {
|
|
34400
34475
|
if (groupId === physicalId) return true;
|
|
34401
|
-
if (!isPlainRecord$
|
|
34476
|
+
if (!isPlainRecord$4(groupId)) return false;
|
|
34402
34477
|
if (groupId["Ref"] === logicalId) return true;
|
|
34403
34478
|
const getAtt = groupId["Fn::GetAtt"];
|
|
34404
34479
|
return Array.isArray(getAtt) && getAtt[0] === logicalId && getAtt[1] === "GroupId";
|
|
@@ -34407,7 +34482,7 @@ async function buildSgRuleCaptureSiblings(deps, capturedLogicalId, capturedPhysi
|
|
|
34407
34482
|
const siblings = {};
|
|
34408
34483
|
for (const [lid, rec] of Object.entries(stateResources)) {
|
|
34409
34484
|
if (lid === capturedLogicalId || !RULE_TYPES.has(rec?.resourceType)) continue;
|
|
34410
|
-
if (!isPlainRecord$
|
|
34485
|
+
if (!isPlainRecord$4(rec.properties) || rec.properties["GroupId"] !== capturedPhysicalId) continue;
|
|
34411
34486
|
siblings[lid] = {
|
|
34412
34487
|
resourceType: rec.resourceType,
|
|
34413
34488
|
properties: rec.properties
|
|
@@ -34418,7 +34493,7 @@ async function buildSgRuleCaptureSiblings(deps, capturedLogicalId, capturedPhysi
|
|
|
34418
34493
|
if (lid === capturedLogicalId || !RULE_TYPES.has(res.Type)) continue;
|
|
34419
34494
|
if (conditions !== void 0 && res.Condition !== void 0 && conditions[res.Condition] === false) continue;
|
|
34420
34495
|
const props = res.Properties;
|
|
34421
|
-
if (!isPlainRecord$
|
|
34496
|
+
if (!isPlainRecord$4(props) || !namesGroup(props["GroupId"], capturedLogicalId, capturedPhysicalId)) continue;
|
|
34422
34497
|
resolverContext ??= deps.buildResolverContext({
|
|
34423
34498
|
template,
|
|
34424
34499
|
resources: stateResources,
|
|
@@ -34432,7 +34507,7 @@ async function buildSgRuleCaptureSiblings(deps, capturedLogicalId, capturedPhysi
|
|
|
34432
34507
|
} catch {
|
|
34433
34508
|
continue;
|
|
34434
34509
|
}
|
|
34435
|
-
if (!isPlainRecord$
|
|
34510
|
+
if (!isPlainRecord$4(resolved)) continue;
|
|
34436
34511
|
const key = siblings[lid] === void 0 ? lid : `${lid}#template`;
|
|
34437
34512
|
siblings[key] = {
|
|
34438
34513
|
resourceType: res.Type,
|
|
@@ -34505,11 +34580,11 @@ const PEER_KEYS = {
|
|
|
34505
34580
|
"DestinationPrefixListId"
|
|
34506
34581
|
]
|
|
34507
34582
|
};
|
|
34508
|
-
function isPlainRecord$
|
|
34583
|
+
function isPlainRecord$3(value) {
|
|
34509
34584
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
34510
34585
|
}
|
|
34511
34586
|
function sgRuleOwnershipIdentity(rule, direction) {
|
|
34512
|
-
if (!isPlainRecord$
|
|
34587
|
+
if (!isPlainRecord$3(rule)) return void 0;
|
|
34513
34588
|
if ([
|
|
34514
34589
|
"IpProtocol",
|
|
34515
34590
|
"FromPort",
|
|
@@ -34532,7 +34607,7 @@ function siblingOwnedSgRuleIdentities(groupId, direction, properties, context) {
|
|
|
34532
34607
|
for (const sibling of Object.values(context?.siblings ?? {})) {
|
|
34533
34608
|
if (sibling.resourceType !== RULE_TYPE[direction]) continue;
|
|
34534
34609
|
const props = sibling.properties;
|
|
34535
|
-
if (!isPlainRecord$
|
|
34610
|
+
if (!isPlainRecord$3(props) || props["GroupId"] !== groupId) continue;
|
|
34536
34611
|
const identity = sgRuleOwnershipIdentity(props, direction);
|
|
34537
34612
|
if (identity !== void 0) owned.add(identity);
|
|
34538
34613
|
}
|
|
@@ -34583,7 +34658,7 @@ function stripSiblingOwnedSgRules(resourceType, physicalId, baseline, aws, prope
|
|
|
34583
34658
|
function ruleWriteOf(record) {
|
|
34584
34659
|
const direction = record.resourceType === RULE_TYPE.ingress ? "ingress" : record.resourceType === RULE_TYPE.egress ? "egress" : void 0;
|
|
34585
34660
|
const props = record.properties;
|
|
34586
|
-
if (direction === void 0 || !isPlainRecord$
|
|
34661
|
+
if (direction === void 0 || !isPlainRecord$3(props)) return void 0;
|
|
34587
34662
|
const group = props["GroupId"];
|
|
34588
34663
|
if (typeof group !== "string" || group === "" || isRedactedRecordedValue(group)) return void 0;
|
|
34589
34664
|
const identity = sgRuleOwnershipIdentity(props, direction);
|
|
@@ -34648,6 +34723,794 @@ function withoutStoppedSiblingSgRules(bag, stopped, properties) {
|
|
|
34648
34723
|
return out;
|
|
34649
34724
|
}
|
|
34650
34725
|
|
|
34726
|
+
// src/provisioning/sibling-owned-members/rows.ts
|
|
34727
|
+
function isPlainRecord$2(value) {
|
|
34728
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
34729
|
+
}
|
|
34730
|
+
function plainString(value) {
|
|
34731
|
+
return typeof value === "string" && value !== "" && !isRedactedRecordedValue(value) ? value : void 0;
|
|
34732
|
+
}
|
|
34733
|
+
function clusterWrites(properties) {
|
|
34734
|
+
const cluster = plainString(properties["Cluster"]);
|
|
34735
|
+
if (cluster === void 0) return [];
|
|
34736
|
+
const arn = /^arn:[^:]+:ecs:[^:]*:[^:]*:cluster\/(.+)$/.exec(cluster);
|
|
34737
|
+
return [{ parent: arn ? arn[1] : cluster }];
|
|
34738
|
+
}
|
|
34739
|
+
function snsSubscriptionIdentity(element) {
|
|
34740
|
+
if (!isPlainRecord$2(element)) return void 0;
|
|
34741
|
+
const protocol = plainString(element["Protocol"]);
|
|
34742
|
+
const endpoint = plainString(element["Endpoint"]);
|
|
34743
|
+
return protocol === void 0 || endpoint === void 0 ? void 0 : JSON.stringify([protocol, endpoint]);
|
|
34744
|
+
}
|
|
34745
|
+
function snsSubscriptionWrites(properties) {
|
|
34746
|
+
const topic = plainString(properties["TopicArn"]);
|
|
34747
|
+
const member = snsSubscriptionIdentity(properties);
|
|
34748
|
+
return topic === void 0 || member === void 0 ? [] : [{
|
|
34749
|
+
parent: topic,
|
|
34750
|
+
member
|
|
34751
|
+
}];
|
|
34752
|
+
}
|
|
34753
|
+
function canonicalJson$2(value) {
|
|
34754
|
+
let doc = value;
|
|
34755
|
+
if (typeof doc === "string") try {
|
|
34756
|
+
doc = JSON.parse(doc);
|
|
34757
|
+
} catch {
|
|
34758
|
+
return;
|
|
34759
|
+
}
|
|
34760
|
+
if (doc === void 0 || isRedactedRecordedValue(doc)) return void 0;
|
|
34761
|
+
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;
|
|
34762
|
+
return JSON.stringify(sort(doc));
|
|
34763
|
+
}
|
|
34764
|
+
function inlinePolicyName(element) {
|
|
34765
|
+
return isPlainRecord$2(element) ? plainString(element["PolicyName"]) : void 0;
|
|
34766
|
+
}
|
|
34767
|
+
function inlinePolicyMemberName(member) {
|
|
34768
|
+
try {
|
|
34769
|
+
const name = JSON.parse(member)[0];
|
|
34770
|
+
return typeof name === "string" ? name : void 0;
|
|
34771
|
+
} catch {
|
|
34772
|
+
return;
|
|
34773
|
+
}
|
|
34774
|
+
}
|
|
34775
|
+
function inlinePolicyIdentity(element) {
|
|
34776
|
+
if (!isPlainRecord$2(element)) return void 0;
|
|
34777
|
+
const name = plainString(element["PolicyName"]);
|
|
34778
|
+
const doc = canonicalJson$2(element["PolicyDocument"]);
|
|
34779
|
+
return name === void 0 || doc === void 0 ? void 0 : JSON.stringify([name, doc]);
|
|
34780
|
+
}
|
|
34781
|
+
function iamPolicyWrites(field) {
|
|
34782
|
+
return (properties) => {
|
|
34783
|
+
const member = inlinePolicyIdentity(properties);
|
|
34784
|
+
const names = properties[field];
|
|
34785
|
+
if (member === void 0 || !Array.isArray(names)) return [];
|
|
34786
|
+
return names.flatMap((n) => {
|
|
34787
|
+
const parent = plainString(n);
|
|
34788
|
+
return parent === void 0 ? [] : [{
|
|
34789
|
+
parent,
|
|
34790
|
+
member
|
|
34791
|
+
}];
|
|
34792
|
+
});
|
|
34793
|
+
};
|
|
34794
|
+
}
|
|
34795
|
+
function standalonePolicyWrites(field) {
|
|
34796
|
+
return (properties) => {
|
|
34797
|
+
const member = inlinePolicyIdentity(properties);
|
|
34798
|
+
const parent = plainString(properties[field]);
|
|
34799
|
+
return member === void 0 || parent === void 0 ? [] : [{
|
|
34800
|
+
parent,
|
|
34801
|
+
member
|
|
34802
|
+
}];
|
|
34803
|
+
};
|
|
34804
|
+
}
|
|
34805
|
+
function eipAssociationWrites(properties) {
|
|
34806
|
+
const parent = plainString(properties["AllocationId"]) ?? plainString(properties["EIP"]);
|
|
34807
|
+
return parent === void 0 ? [] : [{ parent }];
|
|
34808
|
+
}
|
|
34809
|
+
function lifecycleHookWrites(properties, physicalId) {
|
|
34810
|
+
const group = plainString(properties["AutoScalingGroupName"]);
|
|
34811
|
+
const fromId = typeof physicalId === "string" ? physicalId.split("|") : [];
|
|
34812
|
+
const name = plainString(properties["LifecycleHookName"]) ?? (fromId.length === 2 && fromId[0] === group ? plainString(fromId[1]) : void 0);
|
|
34813
|
+
return group === void 0 || name === void 0 ? [] : [{
|
|
34814
|
+
parent: group,
|
|
34815
|
+
member: name
|
|
34816
|
+
}];
|
|
34817
|
+
}
|
|
34818
|
+
function lifecycleHookIdentity(element) {
|
|
34819
|
+
return isPlainRecord$2(element) ? plainString(element["LifecycleHookName"]) : void 0;
|
|
34820
|
+
}
|
|
34821
|
+
function emrGroupIdentity(element) {
|
|
34822
|
+
if (!isPlainRecord$2(element)) return void 0;
|
|
34823
|
+
const name = plainString(element["Name"]);
|
|
34824
|
+
const type = plainString(element["InstanceType"]);
|
|
34825
|
+
return name === void 0 || type === void 0 ? void 0 : JSON.stringify([name, type]);
|
|
34826
|
+
}
|
|
34827
|
+
function emrGroupWrites(properties) {
|
|
34828
|
+
const cluster = plainString(properties["JobFlowId"]);
|
|
34829
|
+
const member = properties["InstanceRole"] === "TASK" ? emrGroupIdentity(properties) : void 0;
|
|
34830
|
+
return cluster === void 0 || member === void 0 ? [] : [{
|
|
34831
|
+
parent: cluster,
|
|
34832
|
+
member
|
|
34833
|
+
}];
|
|
34834
|
+
}
|
|
34835
|
+
function emrFleetIdentity(element) {
|
|
34836
|
+
return isPlainRecord$2(element) ? plainString(element["Name"]) : void 0;
|
|
34837
|
+
}
|
|
34838
|
+
function emrFleetWrites(properties) {
|
|
34839
|
+
const cluster = plainString(properties["ClusterId"]);
|
|
34840
|
+
const member = properties["InstanceFleetType"] === "TASK" ? emrFleetIdentity(properties) : void 0;
|
|
34841
|
+
return cluster === void 0 || member === void 0 ? [] : [{
|
|
34842
|
+
parent: cluster,
|
|
34843
|
+
member
|
|
34844
|
+
}];
|
|
34845
|
+
}
|
|
34846
|
+
function instanceAttachmentWrites(idField) {
|
|
34847
|
+
return (properties) => {
|
|
34848
|
+
const instance = plainString(properties["InstanceId"]);
|
|
34849
|
+
const member = plainString(properties[idField]);
|
|
34850
|
+
return instance === void 0 || member === void 0 ? [] : [{
|
|
34851
|
+
parent: instance,
|
|
34852
|
+
member
|
|
34853
|
+
}];
|
|
34854
|
+
};
|
|
34855
|
+
}
|
|
34856
|
+
function instanceAttachmentIdentity(idField) {
|
|
34857
|
+
return (element) => isPlainRecord$2(element) ? plainString(element[idField]) : void 0;
|
|
34858
|
+
}
|
|
34859
|
+
const PRINCIPALS = [
|
|
34860
|
+
[
|
|
34861
|
+
"AWS::IAM::Role",
|
|
34862
|
+
"Roles",
|
|
34863
|
+
"AWS::IAM::RolePolicy",
|
|
34864
|
+
"RoleName"
|
|
34865
|
+
],
|
|
34866
|
+
[
|
|
34867
|
+
"AWS::IAM::User",
|
|
34868
|
+
"Users",
|
|
34869
|
+
"AWS::IAM::UserPolicy",
|
|
34870
|
+
"UserName"
|
|
34871
|
+
],
|
|
34872
|
+
[
|
|
34873
|
+
"AWS::IAM::Group",
|
|
34874
|
+
"Groups",
|
|
34875
|
+
"AWS::IAM::GroupPolicy",
|
|
34876
|
+
"GroupName"
|
|
34877
|
+
]
|
|
34878
|
+
];
|
|
34879
|
+
const SIBLING_OWNED_ROWS = [
|
|
34880
|
+
{
|
|
34881
|
+
child: "AWS::ECS::ClusterCapacityProviderAssociations",
|
|
34882
|
+
parent: "AWS::ECS::Cluster",
|
|
34883
|
+
key: "CapacityProviders",
|
|
34884
|
+
writes: clusterWrites
|
|
34885
|
+
},
|
|
34886
|
+
{
|
|
34887
|
+
child: "AWS::ECS::ClusterCapacityProviderAssociations",
|
|
34888
|
+
parent: "AWS::ECS::Cluster",
|
|
34889
|
+
key: "DefaultCapacityProviderStrategy",
|
|
34890
|
+
writes: clusterWrites
|
|
34891
|
+
},
|
|
34892
|
+
{
|
|
34893
|
+
child: "AWS::SNS::Subscription",
|
|
34894
|
+
parent: "AWS::SNS::Topic",
|
|
34895
|
+
key: "Subscription",
|
|
34896
|
+
writes: snsSubscriptionWrites,
|
|
34897
|
+
identity: snsSubscriptionIdentity
|
|
34898
|
+
},
|
|
34899
|
+
{
|
|
34900
|
+
child: "AWS::AutoScaling::LifecycleHook",
|
|
34901
|
+
parent: "AWS::AutoScaling::AutoScalingGroup",
|
|
34902
|
+
key: "LifecycleHookSpecificationList",
|
|
34903
|
+
writes: lifecycleHookWrites,
|
|
34904
|
+
identity: lifecycleHookIdentity
|
|
34905
|
+
},
|
|
34906
|
+
{
|
|
34907
|
+
child: "AWS::EMR::InstanceGroupConfig",
|
|
34908
|
+
parent: "AWS::EMR::Cluster",
|
|
34909
|
+
key: "Instances.TaskInstanceGroups",
|
|
34910
|
+
writes: emrGroupWrites,
|
|
34911
|
+
identity: emrGroupIdentity,
|
|
34912
|
+
emptyMeansAbsent: true
|
|
34913
|
+
},
|
|
34914
|
+
{
|
|
34915
|
+
child: "AWS::EMR::InstanceFleetConfig",
|
|
34916
|
+
parent: "AWS::EMR::Cluster",
|
|
34917
|
+
key: "Instances.TaskInstanceFleets",
|
|
34918
|
+
writes: emrFleetWrites,
|
|
34919
|
+
identity: emrFleetIdentity,
|
|
34920
|
+
emptyMeansAbsent: true
|
|
34921
|
+
},
|
|
34922
|
+
{
|
|
34923
|
+
child: "AWS::EC2::VolumeAttachment",
|
|
34924
|
+
parent: "AWS::EC2::Instance",
|
|
34925
|
+
key: "Volumes",
|
|
34926
|
+
writes: instanceAttachmentWrites("VolumeId"),
|
|
34927
|
+
identity: instanceAttachmentIdentity("VolumeId")
|
|
34928
|
+
},
|
|
34929
|
+
{
|
|
34930
|
+
child: "AWS::EC2::NetworkInterfaceAttachment",
|
|
34931
|
+
parent: "AWS::EC2::Instance",
|
|
34932
|
+
key: "NetworkInterfaces",
|
|
34933
|
+
writes: instanceAttachmentWrites("NetworkInterfaceId"),
|
|
34934
|
+
identity: instanceAttachmentIdentity("NetworkInterfaceId")
|
|
34935
|
+
},
|
|
34936
|
+
{
|
|
34937
|
+
child: "AWS::EC2::EIPAssociation",
|
|
34938
|
+
parent: "AWS::EC2::EIP",
|
|
34939
|
+
key: "InstanceId",
|
|
34940
|
+
writes: eipAssociationWrites,
|
|
34941
|
+
parentIds: (physicalId) => physicalId.split("|").filter((part) => part !== "")
|
|
34942
|
+
},
|
|
34943
|
+
...PRINCIPALS.flatMap(([parent, field, standalone, nameField]) => [{
|
|
34944
|
+
child: "AWS::IAM::Policy",
|
|
34945
|
+
parent,
|
|
34946
|
+
key: "Policies",
|
|
34947
|
+
writes: iamPolicyWrites(field),
|
|
34948
|
+
identity: inlinePolicyIdentity,
|
|
34949
|
+
nameOf: inlinePolicyName,
|
|
34950
|
+
memberName: inlinePolicyMemberName
|
|
34951
|
+
}, {
|
|
34952
|
+
child: standalone,
|
|
34953
|
+
parent,
|
|
34954
|
+
key: "Policies",
|
|
34955
|
+
writes: standalonePolicyWrites(nameField),
|
|
34956
|
+
identity: inlinePolicyIdentity,
|
|
34957
|
+
nameOf: inlinePolicyName,
|
|
34958
|
+
memberName: inlinePolicyMemberName
|
|
34959
|
+
}])
|
|
34960
|
+
];
|
|
34961
|
+
|
|
34962
|
+
// src/provisioning/sibling-owned-members/helper-readd.ts
|
|
34963
|
+
const asString = (m) => typeof m === "string" ? m : void 0;
|
|
34964
|
+
const folded = (m) => typeof m === "string" ? m.toLowerCase() : void 0;
|
|
34965
|
+
function helperOwnedLists(resourceType, physicalId, properties, context) {
|
|
34966
|
+
const declared = (key, keyOf) => {
|
|
34967
|
+
const list = properties?.[key];
|
|
34968
|
+
const out = /* @__PURE__ */ new Set();
|
|
34969
|
+
if (Array.isArray(list)) for (const m of list) {
|
|
34970
|
+
const k = keyOf(m);
|
|
34971
|
+
if (k !== void 0) out.add(k);
|
|
34972
|
+
}
|
|
34973
|
+
return out;
|
|
34974
|
+
};
|
|
34975
|
+
const list = (key, keyOf, members) => {
|
|
34976
|
+
const own = declared(key, keyOf);
|
|
34977
|
+
const owned = /* @__PURE__ */ new Set();
|
|
34978
|
+
for (const m of members) {
|
|
34979
|
+
const k = keyOf(m);
|
|
34980
|
+
if (k !== void 0 && !own.has(k)) owned.add(k);
|
|
34981
|
+
}
|
|
34982
|
+
return {
|
|
34983
|
+
key,
|
|
34984
|
+
keyOf,
|
|
34985
|
+
owned
|
|
34986
|
+
};
|
|
34987
|
+
};
|
|
34988
|
+
const out = [];
|
|
34989
|
+
const field = managedPolicyAttachmentField(resourceType);
|
|
34990
|
+
if (field !== void 0) out.push(list("ManagedPolicyArns", asString, collectManagedPolicyArnsAttachedBySiblings(physicalId, context, field)));
|
|
34991
|
+
if (resourceType === "AWS::IAM::User") out.push(list("Groups", folded, collectGroupsAddedBySiblings(physicalId, context)));
|
|
34992
|
+
if (resourceType === "AWS::IAM::ManagedPolicy") for (const key of [
|
|
34993
|
+
"Roles",
|
|
34994
|
+
"Users",
|
|
34995
|
+
"Groups"
|
|
34996
|
+
]) out.push(list(key, asString, collectPrincipalsAttachingPolicy(physicalId, context, key)));
|
|
34997
|
+
if (resourceType === "AWS::EC2::SecurityGroup") for (const [key, direction] of [["SecurityGroupIngress", "ingress"], ["SecurityGroupEgress", "egress"]]) out.push({
|
|
34998
|
+
key,
|
|
34999
|
+
keyOf: (m) => sgRuleOwnershipIdentity(m, direction),
|
|
35000
|
+
owned: siblingOwnedSgRuleIdentities(physicalId, direction, properties, context)
|
|
35001
|
+
});
|
|
35002
|
+
return out.filter((l) => l.owned.size > 0);
|
|
35003
|
+
}
|
|
35004
|
+
function withLiveHelperOwnedMembers(resourceType, physicalId, desired, aws, properties, context) {
|
|
35005
|
+
if (typeof physicalId !== "string" || physicalId === "") return desired;
|
|
35006
|
+
let out = desired;
|
|
35007
|
+
for (const { key, keyOf, owned } of helperOwnedLists(resourceType, physicalId, properties, context)) {
|
|
35008
|
+
const kept = out[key];
|
|
35009
|
+
const live = aws[key];
|
|
35010
|
+
if (!Array.isArray(kept) || !Array.isArray(live)) continue;
|
|
35011
|
+
const anyKey = (m) => keyOf(m) ?? JSON.stringify(m) ?? "";
|
|
35012
|
+
const present = new Set(kept.map(anyKey));
|
|
35013
|
+
const result = [...kept];
|
|
35014
|
+
live.forEach((m, index) => {
|
|
35015
|
+
const k = keyOf(m);
|
|
35016
|
+
if (k === void 0 || !owned.has(k) || present.has(k)) return;
|
|
35017
|
+
let at = 0;
|
|
35018
|
+
for (let j = index - 1; j >= 0; j--) {
|
|
35019
|
+
const pos = result.findIndex((r) => anyKey(r) === anyKey(live[j]));
|
|
35020
|
+
if (pos >= 0) {
|
|
35021
|
+
at = pos + 1;
|
|
35022
|
+
break;
|
|
35023
|
+
}
|
|
35024
|
+
}
|
|
35025
|
+
result.splice(at, 0, m);
|
|
35026
|
+
present.add(k);
|
|
35027
|
+
});
|
|
35028
|
+
if (result.length !== kept.length) out = {
|
|
35029
|
+
...out,
|
|
35030
|
+
[key]: result
|
|
35031
|
+
};
|
|
35032
|
+
}
|
|
35033
|
+
return out;
|
|
35034
|
+
}
|
|
35035
|
+
|
|
35036
|
+
// src/provisioning/sibling-owned-members/pairs.ts
|
|
35037
|
+
const SIBLING_WRITE_PAIRS = [
|
|
35038
|
+
...SIBLING_OWNED_ROWS.map((row) => ({
|
|
35039
|
+
child: row.child,
|
|
35040
|
+
parent: row.parent,
|
|
35041
|
+
key: row.key,
|
|
35042
|
+
verdict: "table",
|
|
35043
|
+
evidence: "SIBLING_OWNED_ROWS"
|
|
35044
|
+
})),
|
|
35045
|
+
...[
|
|
35046
|
+
"AWS::IAM::Role",
|
|
35047
|
+
"AWS::IAM::User",
|
|
35048
|
+
"AWS::IAM::Group"
|
|
35049
|
+
].map((parent) => ({
|
|
35050
|
+
child: "AWS::IAM::ManagedPolicy",
|
|
35051
|
+
parent,
|
|
35052
|
+
key: "ManagedPolicyArns",
|
|
35053
|
+
verdict: "helper",
|
|
35054
|
+
evidence: "iam-sibling-managed-policies.ts (#6324)"
|
|
35055
|
+
})),
|
|
35056
|
+
...[
|
|
35057
|
+
"Roles",
|
|
35058
|
+
"Users",
|
|
35059
|
+
"Groups"
|
|
35060
|
+
].map((key) => ({
|
|
35061
|
+
child: "AWS::IAM::Role / User / Group",
|
|
35062
|
+
parent: "AWS::IAM::ManagedPolicy",
|
|
35063
|
+
key,
|
|
35064
|
+
verdict: "helper",
|
|
35065
|
+
evidence: "iam-sibling-managed-policies.ts (#6328)"
|
|
35066
|
+
})),
|
|
35067
|
+
{
|
|
35068
|
+
child: "AWS::IAM::UserToGroupAddition",
|
|
35069
|
+
parent: "AWS::IAM::User",
|
|
35070
|
+
key: "Groups",
|
|
35071
|
+
verdict: "helper",
|
|
35072
|
+
evidence: "iam-sibling-managed-policies.ts (#6328)"
|
|
35073
|
+
},
|
|
35074
|
+
...["SecurityGroupIngress", "SecurityGroupEgress"].map((key) => ({
|
|
35075
|
+
child: `AWS::EC2::${key}`,
|
|
35076
|
+
parent: "AWS::EC2::SecurityGroup",
|
|
35077
|
+
key,
|
|
35078
|
+
verdict: "helper",
|
|
35079
|
+
evidence: "sg-sibling-rules.ts (#6418)"
|
|
35080
|
+
})),
|
|
35081
|
+
{
|
|
35082
|
+
child: "Custom::S3BucketNotifications",
|
|
35083
|
+
parent: "AWS::S3::Bucket",
|
|
35084
|
+
key: "NotificationConfiguration",
|
|
35085
|
+
verdict: "helper",
|
|
35086
|
+
evidence: "undeclaredUncomparedDriftKeys (#5736): any writer, any stack"
|
|
35087
|
+
},
|
|
35088
|
+
{
|
|
35089
|
+
child: "AWS::Events::EventBusPolicy",
|
|
35090
|
+
parent: "AWS::Events::EventBus",
|
|
35091
|
+
key: "Policy",
|
|
35092
|
+
verdict: "helper",
|
|
35093
|
+
evidence: "undeclaredUncomparedDriftKeys (#6323): any writer, any stack"
|
|
35094
|
+
},
|
|
35095
|
+
{
|
|
35096
|
+
child: "AWS::EC2::VolumeAttachment",
|
|
35097
|
+
parent: "AWS::EC2::Instance",
|
|
35098
|
+
key: "BlockDeviceMappings",
|
|
35099
|
+
verdict: "helper",
|
|
35100
|
+
evidence: "undeclaredUncomparedDriftKeys + declared-devices readback (#6384)"
|
|
35101
|
+
},
|
|
35102
|
+
...[
|
|
35103
|
+
[
|
|
35104
|
+
"AWS::IAM::UserToGroupAddition",
|
|
35105
|
+
"AWS::IAM::Group",
|
|
35106
|
+
"members",
|
|
35107
|
+
"the group read has no member list; Cloud Control: the Group schema has no member list"
|
|
35108
|
+
],
|
|
35109
|
+
[
|
|
35110
|
+
"AWS::Lambda::Permission",
|
|
35111
|
+
"AWS::Lambda::Function",
|
|
35112
|
+
"policy",
|
|
35113
|
+
"lambda-function read-state emits no Policy; Cloud Control: the Function schema has no Policy"
|
|
35114
|
+
],
|
|
35115
|
+
[
|
|
35116
|
+
"AWS::Lambda::EventSourceMapping / EventInvokeConfig / Url",
|
|
35117
|
+
"AWS::Lambda::Function",
|
|
35118
|
+
"-",
|
|
35119
|
+
"lambda-function read-state emits none of their keys; Cloud Control: the Function schema has none of their keys"
|
|
35120
|
+
],
|
|
35121
|
+
[
|
|
35122
|
+
"AWS::S3::BucketPolicy",
|
|
35123
|
+
"AWS::S3::Bucket",
|
|
35124
|
+
"policy",
|
|
35125
|
+
"s3-bucket read-state emits no Policy; Cloud Control: the Bucket schema has no Policy"
|
|
35126
|
+
],
|
|
35127
|
+
[
|
|
35128
|
+
"AWS::SNS::TopicPolicy",
|
|
35129
|
+
"AWS::SNS::Topic",
|
|
35130
|
+
"policy",
|
|
35131
|
+
"sns-topic read-state emits no Policy; Cloud Control: the Topic schema has no Policy"
|
|
35132
|
+
],
|
|
35133
|
+
[
|
|
35134
|
+
"AWS::SQS::QueuePolicy",
|
|
35135
|
+
"AWS::SQS::Queue",
|
|
35136
|
+
"policy",
|
|
35137
|
+
"the SQS queue read emits no Policy; Cloud Control: the Queue schema has no Policy"
|
|
35138
|
+
],
|
|
35139
|
+
[
|
|
35140
|
+
"AWS::SNS::TopicInlinePolicy",
|
|
35141
|
+
"AWS::SNS::Topic",
|
|
35142
|
+
"policy",
|
|
35143
|
+
"sns-topic read-state emits no Policy; Cloud Control: the Topic schema has no Policy"
|
|
35144
|
+
],
|
|
35145
|
+
[
|
|
35146
|
+
"AWS::SQS::QueueInlinePolicy",
|
|
35147
|
+
"AWS::SQS::Queue",
|
|
35148
|
+
"policy",
|
|
35149
|
+
"the SQS queue read emits no Policy; Cloud Control: the Queue schema has no Policy"
|
|
35150
|
+
],
|
|
35151
|
+
[
|
|
35152
|
+
"AWS::Logs::SubscriptionFilter",
|
|
35153
|
+
"AWS::Logs::LogGroup",
|
|
35154
|
+
"filters",
|
|
35155
|
+
"logs-loggroup read-state emits no filter key; Cloud Control: the LogGroup schema has no filter property"
|
|
35156
|
+
],
|
|
35157
|
+
[
|
|
35158
|
+
"AWS::ElasticLoadBalancingV2::ListenerRule",
|
|
35159
|
+
"AWS::ElasticLoadBalancingV2::Listener",
|
|
35160
|
+
"rules",
|
|
35161
|
+
"the listener read has no rule list; DefaultActions is the listener's own; Cloud Control: the Listener schema has no rule list"
|
|
35162
|
+
],
|
|
35163
|
+
[
|
|
35164
|
+
"AWS::ElasticLoadBalancingV2::ListenerCertificate",
|
|
35165
|
+
"AWS::ElasticLoadBalancingV2::Listener",
|
|
35166
|
+
"Certificates",
|
|
35167
|
+
"DescribeListeners returns the default certificate only; Cloud Control: the Listener model is read from DescribeListeners too"
|
|
35168
|
+
],
|
|
35169
|
+
[
|
|
35170
|
+
"AWS::EC2::NetworkAclEntry",
|
|
35171
|
+
"AWS::EC2::NetworkAcl",
|
|
35172
|
+
"entries",
|
|
35173
|
+
"the network ACL read emits VpcId only; Cloud Control: the NetworkAcl schema holds Id, Tags and VpcId only"
|
|
35174
|
+
],
|
|
35175
|
+
[
|
|
35176
|
+
"AWS::EC2::Route",
|
|
35177
|
+
"AWS::EC2::RouteTable",
|
|
35178
|
+
"routes",
|
|
35179
|
+
"the route table read emits VpcId only; Cloud Control: the RouteTable schema holds RouteTableId, Tags and VpcId only"
|
|
35180
|
+
],
|
|
35181
|
+
[
|
|
35182
|
+
"AWS::EC2::SubnetRouteTableAssociation / SubnetNetworkAclAssociation",
|
|
35183
|
+
"AWS::EC2::Subnet / RouteTable / NetworkAcl",
|
|
35184
|
+
"associations",
|
|
35185
|
+
"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"
|
|
35186
|
+
],
|
|
35187
|
+
[
|
|
35188
|
+
"AWS::EC2::VPCGatewayAttachment",
|
|
35189
|
+
"AWS::EC2::VPC / InternetGateway",
|
|
35190
|
+
"attachments",
|
|
35191
|
+
"neither read emits an attachment; Cloud Control: neither schema has an attachment property"
|
|
35192
|
+
],
|
|
35193
|
+
[
|
|
35194
|
+
"AWS::EC2::VPCCidrBlock",
|
|
35195
|
+
"AWS::EC2::VPC",
|
|
35196
|
+
"CidrBlockAssociations",
|
|
35197
|
+
"the VPC read emits the primary CidrBlock only; Cloud Control: the list is read-only (#6485)"
|
|
35198
|
+
],
|
|
35199
|
+
[
|
|
35200
|
+
"AWS::KMS::Alias",
|
|
35201
|
+
"AWS::KMS::Key",
|
|
35202
|
+
"aliases",
|
|
35203
|
+
"the key read emits no alias; Cloud Control: the Key schema has no alias"
|
|
35204
|
+
],
|
|
35205
|
+
[
|
|
35206
|
+
"AWS::SecretsManager::ResourcePolicy / RotationSchedule",
|
|
35207
|
+
"AWS::SecretsManager::Secret",
|
|
35208
|
+
"-",
|
|
35209
|
+
"the secret read emits neither; Cloud Control: the Secret schema has neither"
|
|
35210
|
+
],
|
|
35211
|
+
[
|
|
35212
|
+
"AWS::Cognito::UserPoolClient / UserPoolDomain",
|
|
35213
|
+
"AWS::Cognito::UserPool",
|
|
35214
|
+
"-",
|
|
35215
|
+
"the user pool read emits neither; Cloud Control: the UserPool schema has neither"
|
|
35216
|
+
],
|
|
35217
|
+
[
|
|
35218
|
+
"AWS::Route53::RecordSet",
|
|
35219
|
+
"AWS::Route53::HostedZone",
|
|
35220
|
+
"records",
|
|
35221
|
+
"the hosted zone read emits no records; Cloud Control: the HostedZone schema has no record list"
|
|
35222
|
+
],
|
|
35223
|
+
[
|
|
35224
|
+
"AWS::ApiGateway::Method / Resource",
|
|
35225
|
+
"AWS::ApiGateway::Resource / RestApi",
|
|
35226
|
+
"-",
|
|
35227
|
+
"the resource read emits ParentId and PathPart only; Cloud Control: neither schema lists methods or child resources"
|
|
35228
|
+
]
|
|
35229
|
+
].map(([child, parent, key, evidence]) => ({
|
|
35230
|
+
child,
|
|
35231
|
+
parent,
|
|
35232
|
+
key,
|
|
35233
|
+
verdict: "none",
|
|
35234
|
+
evidence
|
|
35235
|
+
}))
|
|
35236
|
+
];
|
|
35237
|
+
|
|
35238
|
+
// src/provisioning/sibling-owned-members.ts
|
|
35239
|
+
const REMOVE = Symbol("remove");
|
|
35240
|
+
function getAt(bag, path) {
|
|
35241
|
+
let node = bag;
|
|
35242
|
+
for (const segment of path) {
|
|
35243
|
+
if (!isPlainRecord$2(node) || !hasOwnKey(node, segment)) return void 0;
|
|
35244
|
+
node = node[segment];
|
|
35245
|
+
}
|
|
35246
|
+
return node;
|
|
35247
|
+
}
|
|
35248
|
+
function hasAt(bag, path) {
|
|
35249
|
+
let node = bag;
|
|
35250
|
+
for (const segment of path) {
|
|
35251
|
+
if (!isPlainRecord$2(node) || !hasOwnKey(node, segment)) return false;
|
|
35252
|
+
node = node[segment];
|
|
35253
|
+
}
|
|
35254
|
+
return true;
|
|
35255
|
+
}
|
|
35256
|
+
function setAt(bag, path, value) {
|
|
35257
|
+
const [head, ...rest] = path;
|
|
35258
|
+
if (head === void 0) return bag;
|
|
35259
|
+
if (rest.length === 0) {
|
|
35260
|
+
if (value !== REMOVE) return {
|
|
35261
|
+
...bag,
|
|
35262
|
+
[head]: value
|
|
35263
|
+
};
|
|
35264
|
+
const { [head]: _removed, ...kept } = bag;
|
|
35265
|
+
return kept;
|
|
35266
|
+
}
|
|
35267
|
+
const child = bag[head];
|
|
35268
|
+
return isPlainRecord$2(child) ? {
|
|
35269
|
+
...bag,
|
|
35270
|
+
[head]: setAt(child, rest, value)
|
|
35271
|
+
} : bag;
|
|
35272
|
+
}
|
|
35273
|
+
const pathOf = (row) => row.key.split(".");
|
|
35274
|
+
function parentIdsOf(row, physicalId) {
|
|
35275
|
+
return row.parentIds ? row.parentIds(physicalId) : [physicalId];
|
|
35276
|
+
}
|
|
35277
|
+
function ownedByRow(resourceType, physicalId, context) {
|
|
35278
|
+
if (typeof physicalId !== "string" || physicalId === "") return [];
|
|
35279
|
+
const out = [];
|
|
35280
|
+
for (const row of SIBLING_OWNED_ROWS) {
|
|
35281
|
+
if (row.parent !== resourceType) continue;
|
|
35282
|
+
const ids = new Set(parentIdsOf(row, physicalId));
|
|
35283
|
+
const members = /* @__PURE__ */ new Map();
|
|
35284
|
+
let any = false;
|
|
35285
|
+
for (const sibling of Object.values(context?.siblings ?? {})) {
|
|
35286
|
+
if (sibling.resourceType !== row.child || !isPlainRecord$2(sibling.properties)) continue;
|
|
35287
|
+
for (const w of row.writes(sibling.properties, sibling.physicalId)) {
|
|
35288
|
+
if (!ids.has(w.parent)) continue;
|
|
35289
|
+
any = true;
|
|
35290
|
+
if (w.member !== void 0) members.set(w.member, (members.get(w.member) ?? 0) + 1);
|
|
35291
|
+
}
|
|
35292
|
+
}
|
|
35293
|
+
if (any) out.push([row, row.identity ? members : void 0]);
|
|
35294
|
+
}
|
|
35295
|
+
return out;
|
|
35296
|
+
}
|
|
35297
|
+
function effectiveDrop(row, owned, properties) {
|
|
35298
|
+
const drop = new Map(owned ?? []);
|
|
35299
|
+
const identity = row.identity;
|
|
35300
|
+
const own = getAt(properties, pathOf(row));
|
|
35301
|
+
if (identity === void 0 || drop.size === 0 || !Array.isArray(own)) return drop;
|
|
35302
|
+
for (const entry of own) {
|
|
35303
|
+
const id = identity(entry);
|
|
35304
|
+
const n = id === void 0 ? void 0 : drop.get(id);
|
|
35305
|
+
if (n === void 0) continue;
|
|
35306
|
+
if (n <= 1) drop.delete(id);
|
|
35307
|
+
else drop.set(id, n - 1);
|
|
35308
|
+
}
|
|
35309
|
+
return drop;
|
|
35310
|
+
}
|
|
35311
|
+
function namesDroppedFromBaseline(row, drop, properties, readback) {
|
|
35312
|
+
const { nameOf, memberName } = row;
|
|
35313
|
+
if (nameOf === void 0 || memberName === void 0 || readback === void 0) return /* @__PURE__ */ new Set();
|
|
35314
|
+
const liveList = getAt(readback, pathOf(row));
|
|
35315
|
+
const live = new Set(Array.isArray(liveList) ? liveList.map((m) => nameOf(m)) : []);
|
|
35316
|
+
const own = getAt(properties, pathOf(row));
|
|
35317
|
+
const declared = new Set(Array.isArray(own) ? own.map((m) => nameOf(m)) : []);
|
|
35318
|
+
const names = /* @__PURE__ */ new Set();
|
|
35319
|
+
for (const id of drop.keys()) {
|
|
35320
|
+
const name = memberName(id);
|
|
35321
|
+
if (name !== void 0 && !live.has(name) && !declared.has(name)) names.add(name);
|
|
35322
|
+
}
|
|
35323
|
+
return names;
|
|
35324
|
+
}
|
|
35325
|
+
function namesChangedInReadback(row, drop, readback) {
|
|
35326
|
+
const { nameOf, identity } = row;
|
|
35327
|
+
const names = /* @__PURE__ */ new Set();
|
|
35328
|
+
if (nameOf === void 0 || identity === void 0 || readback === void 0) return names;
|
|
35329
|
+
const liveList = getAt(readback, pathOf(row));
|
|
35330
|
+
if (!Array.isArray(liveList)) return names;
|
|
35331
|
+
for (const m of liveList) {
|
|
35332
|
+
const id = identity(m);
|
|
35333
|
+
if (id !== void 0 && drop.has(id)) continue;
|
|
35334
|
+
const name = nameOf(m);
|
|
35335
|
+
if (name !== void 0) names.add(name);
|
|
35336
|
+
}
|
|
35337
|
+
return names;
|
|
35338
|
+
}
|
|
35339
|
+
function withoutOwned(bag, row, owned, properties, readback) {
|
|
35340
|
+
const path = pathOf(row);
|
|
35341
|
+
if (!hasAt(bag, path)) return bag;
|
|
35342
|
+
const declared = hasAt(properties, path);
|
|
35343
|
+
if (row.identity === void 0) return declared ? bag : setAt(bag, path, REMOVE);
|
|
35344
|
+
const list = getAt(bag, path);
|
|
35345
|
+
if (!Array.isArray(list)) return bag;
|
|
35346
|
+
const identity = row.identity;
|
|
35347
|
+
const drop = effectiveDrop(row, owned, properties);
|
|
35348
|
+
if (drop.size === 0) return bag;
|
|
35349
|
+
const byName = namesDroppedFromBaseline(row, drop, properties, readback);
|
|
35350
|
+
const changed = namesChangedInReadback(row, drop, readback);
|
|
35351
|
+
const left = new Map(drop);
|
|
35352
|
+
const kept = list.filter((m) => {
|
|
35353
|
+
const id = identity(m);
|
|
35354
|
+
const n = id === void 0 ? void 0 : left.get(id);
|
|
35355
|
+
if (n !== void 0 && n > 0) {
|
|
35356
|
+
const name = row.nameOf?.(m);
|
|
35357
|
+
if (name !== void 0 && changed.has(name)) return true;
|
|
35358
|
+
left.set(id, n - 1);
|
|
35359
|
+
return false;
|
|
35360
|
+
}
|
|
35361
|
+
const name = row.nameOf?.(m);
|
|
35362
|
+
return name === void 0 || !byName.has(name);
|
|
35363
|
+
});
|
|
35364
|
+
if (kept.length === list.length) return bag;
|
|
35365
|
+
return setAt(bag, path, kept.length === 0 && row.emptyMeansAbsent && !declared ? REMOVE : kept);
|
|
35366
|
+
}
|
|
35367
|
+
function stripSiblingOwnedParentMembers(resourceType, physicalId, baseline, aws, properties, context) {
|
|
35368
|
+
const members = stripSiblingOwnedMembers(resourceType, physicalId, baseline, aws, properties, context);
|
|
35369
|
+
let out = stripSiblingOwnedSgRules(resourceType, physicalId, members.baseline, members.aws, properties, context);
|
|
35370
|
+
for (const [row, owned] of ownedByRow(resourceType, physicalId, context)) out = {
|
|
35371
|
+
baseline: withoutOwned(out.baseline, row, owned, properties, out.aws),
|
|
35372
|
+
aws: withoutOwned(out.aws, row, owned, properties)
|
|
35373
|
+
};
|
|
35374
|
+
return out;
|
|
35375
|
+
}
|
|
35376
|
+
function siblingOwnedRevertDesired(resourceType, physicalId, desired, aws, properties, context) {
|
|
35377
|
+
let out = stripSiblingOwnedMembers(resourceType, physicalId, desired, aws, properties, context).baseline;
|
|
35378
|
+
out = stripSiblingOwnedSgRules(resourceType, physicalId, out, aws, properties, context).baseline;
|
|
35379
|
+
out = withLiveHelperOwnedMembers(resourceType, physicalId, out, aws, properties, context);
|
|
35380
|
+
for (const [row, owned] of ownedByRow(resourceType, physicalId, context)) {
|
|
35381
|
+
const path = pathOf(row);
|
|
35382
|
+
const stripped = withoutOwned(out, row, owned, properties, aws);
|
|
35383
|
+
const live = getAt(aws, path);
|
|
35384
|
+
if (row.identity === void 0) {
|
|
35385
|
+
out = stripped;
|
|
35386
|
+
continue;
|
|
35387
|
+
}
|
|
35388
|
+
const drop = effectiveDrop(row, owned, properties);
|
|
35389
|
+
if (!Array.isArray(live) || drop.size === 0) {
|
|
35390
|
+
out = stripped;
|
|
35391
|
+
continue;
|
|
35392
|
+
}
|
|
35393
|
+
const identity = row.identity;
|
|
35394
|
+
const strippedList = getAt(stripped, path);
|
|
35395
|
+
const kept = Array.isArray(strippedList) ? strippedList : row.emptyMeansAbsent && strippedList === void 0 ? [] : void 0;
|
|
35396
|
+
if (kept === void 0 || !hasAt(stripped, path.slice(0, -1))) {
|
|
35397
|
+
out = stripped;
|
|
35398
|
+
continue;
|
|
35399
|
+
}
|
|
35400
|
+
const result = [...kept];
|
|
35401
|
+
const room = new Map(drop);
|
|
35402
|
+
const keyOf = (m) => identity(m) ?? JSON.stringify(m) ?? "";
|
|
35403
|
+
live.forEach((m, index) => {
|
|
35404
|
+
const id = identity(m);
|
|
35405
|
+
const n = id === void 0 ? void 0 : room.get(id);
|
|
35406
|
+
if (n === void 0 || n <= 0) return;
|
|
35407
|
+
let at = 0;
|
|
35408
|
+
for (let j = index - 1; j >= 0; j--) {
|
|
35409
|
+
const pos = result.findIndex((r) => keyOf(r) === keyOf(live[j]));
|
|
35410
|
+
if (pos >= 0) {
|
|
35411
|
+
at = pos + 1;
|
|
35412
|
+
break;
|
|
35413
|
+
}
|
|
35414
|
+
}
|
|
35415
|
+
result.splice(at, 0, m);
|
|
35416
|
+
room.set(id, n - 1);
|
|
35417
|
+
});
|
|
35418
|
+
out = result.length === kept.length && Array.isArray(strippedList) ? stripped : setAt(stripped, path, result);
|
|
35419
|
+
}
|
|
35420
|
+
return out;
|
|
35421
|
+
}
|
|
35422
|
+
function tableMembersSiblingsStoppedWriting(previous, next, oldMaySurvive = () => false, templatePolicies) {
|
|
35423
|
+
const encode = (row, parent, member) => injectiveKey(row, parent, member === void 0 ? "" : `m:${member}`);
|
|
35424
|
+
const writesOf = (record) => {
|
|
35425
|
+
const props = record.properties;
|
|
35426
|
+
if (!isPlainRecord$2(props)) return [];
|
|
35427
|
+
const out = [];
|
|
35428
|
+
SIBLING_OWNED_ROWS.forEach((row, index) => {
|
|
35429
|
+
if (row.child !== record.resourceType) return;
|
|
35430
|
+
for (const w of row.writes(props, record.physicalId)) out.push([index, w]);
|
|
35431
|
+
});
|
|
35432
|
+
return out;
|
|
35433
|
+
};
|
|
35434
|
+
const count = (into, key) => {
|
|
35435
|
+
into.set(key, (into.get(key) ?? 0) + 1);
|
|
35436
|
+
};
|
|
35437
|
+
const nextCount = /* @__PURE__ */ new Map();
|
|
35438
|
+
for (const record of Object.values(next)) for (const [i, w] of writesOf(record)) count(nextCount, encode(i, w.parent, w.member));
|
|
35439
|
+
const prevCount = /* @__PURE__ */ new Map();
|
|
35440
|
+
const touched = /* @__PURE__ */ new Map();
|
|
35441
|
+
for (const [logicalId, record] of Object.entries(previous)) {
|
|
35442
|
+
const writes = writesOf(record);
|
|
35443
|
+
if (writes.length === 0) continue;
|
|
35444
|
+
if (previousMaySurvive(logicalId, record, next, oldMaySurvive, templatePolicies)) continue;
|
|
35445
|
+
for (const [i, w] of writes) {
|
|
35446
|
+
count(prevCount, encode(i, w.parent, w.member));
|
|
35447
|
+
const target = injectiveKey(i, w.parent);
|
|
35448
|
+
let entry = touched.get(target);
|
|
35449
|
+
if (entry === void 0) {
|
|
35450
|
+
entry = {
|
|
35451
|
+
row: i,
|
|
35452
|
+
members: w.member === void 0 ? void 0 : /* @__PURE__ */ new Set()
|
|
35453
|
+
};
|
|
35454
|
+
touched.set(target, entry);
|
|
35455
|
+
}
|
|
35456
|
+
if (w.member !== void 0) entry.members?.add(w.member);
|
|
35457
|
+
}
|
|
35458
|
+
}
|
|
35459
|
+
const result = /* @__PURE__ */ new Map();
|
|
35460
|
+
if (touched.size === 0) return result;
|
|
35461
|
+
for (const [logicalId, record] of Object.entries(next)) {
|
|
35462
|
+
const id = record.physicalId;
|
|
35463
|
+
if (typeof id !== "string" || id === "") continue;
|
|
35464
|
+
const entries = [];
|
|
35465
|
+
SIBLING_OWNED_ROWS.forEach((row, index) => {
|
|
35466
|
+
if (row.parent !== record.resourceType) return;
|
|
35467
|
+
const ids = [...new Set(parentIdsOf(row, id))];
|
|
35468
|
+
const sum = (counts, member) => ids.reduce((n, pid) => n + (counts.get(encode(index, pid, member)) ?? 0), 0);
|
|
35469
|
+
const members = /* @__PURE__ */ new Set();
|
|
35470
|
+
let wholeKey = false;
|
|
35471
|
+
for (const pid of ids) {
|
|
35472
|
+
const entry = touched.get(injectiveKey(index, pid));
|
|
35473
|
+
if (entry === void 0) continue;
|
|
35474
|
+
if (entry.members === void 0) wholeKey = true;
|
|
35475
|
+
else for (const m of entry.members) members.add(m);
|
|
35476
|
+
}
|
|
35477
|
+
if (wholeKey) {
|
|
35478
|
+
if (sum(nextCount, void 0) === 0) entries.push({
|
|
35479
|
+
row,
|
|
35480
|
+
members: void 0
|
|
35481
|
+
});
|
|
35482
|
+
return;
|
|
35483
|
+
}
|
|
35484
|
+
const stopped = /* @__PURE__ */ new Map();
|
|
35485
|
+
for (const m of members) {
|
|
35486
|
+
const n = sum(prevCount, m) - sum(nextCount, m);
|
|
35487
|
+
if (n > 0) stopped.set(m, n);
|
|
35488
|
+
}
|
|
35489
|
+
if (stopped.size > 0) entries.push({
|
|
35490
|
+
row,
|
|
35491
|
+
members: stopped
|
|
35492
|
+
});
|
|
35493
|
+
});
|
|
35494
|
+
if (entries.length > 0) result.set(logicalId, entries);
|
|
35495
|
+
}
|
|
35496
|
+
return result;
|
|
35497
|
+
}
|
|
35498
|
+
function withoutStoppedTableMembers(bag, stopped, properties) {
|
|
35499
|
+
let out = bag;
|
|
35500
|
+
for (const { row, members } of stopped) {
|
|
35501
|
+
if (row.identity !== void 0) {
|
|
35502
|
+
out = withoutOwned(out, row, members, properties);
|
|
35503
|
+
continue;
|
|
35504
|
+
}
|
|
35505
|
+
const path = pathOf(row);
|
|
35506
|
+
const value = getAt(out, path);
|
|
35507
|
+
if (value === void 0 || value === null || Array.isArray(value) && value.length === 0) continue;
|
|
35508
|
+
if (hasAt(properties, path)) continue;
|
|
35509
|
+
out = setAt(out, path, Array.isArray(value) ? [] : REMOVE);
|
|
35510
|
+
}
|
|
35511
|
+
return out;
|
|
35512
|
+
}
|
|
35513
|
+
|
|
34651
35514
|
// src/deployment/deploy-engine/observed-capture.ts
|
|
34652
35515
|
var ObservedCapture = class {
|
|
34653
35516
|
observedCaptureTasks = /* @__PURE__ */ new Map();
|
|
@@ -34835,6 +35698,18 @@ function pruneMembersSiblingsStoppedWriting(previous, next, replacementRun, temp
|
|
|
34835
35698
|
};
|
|
34836
35699
|
changed++;
|
|
34837
35700
|
}
|
|
35701
|
+
for (const [logicalId, stopped] of tableMembersSiblingsStoppedWriting(previous, next, oldMaySurvive, templatePolicies)) {
|
|
35702
|
+
const record = next[logicalId];
|
|
35703
|
+
const observed = record?.observedProperties;
|
|
35704
|
+
if (record === void 0 || observed === void 0) continue;
|
|
35705
|
+
const pruned = withoutStoppedTableMembers(observed, stopped, record.properties);
|
|
35706
|
+
if (pruned === observed) continue;
|
|
35707
|
+
next[logicalId] = {
|
|
35708
|
+
...record,
|
|
35709
|
+
observedProperties: carryRedactionMarks(observed, pruned)
|
|
35710
|
+
};
|
|
35711
|
+
changed++;
|
|
35712
|
+
}
|
|
34838
35713
|
return changed;
|
|
34839
35714
|
}
|
|
34840
35715
|
function pruneStoppedSiblingMembersBestEffort(logger, ...args) {
|
|
@@ -34842,7 +35717,7 @@ function pruneStoppedSiblingMembersBestEffort(logger, ...args) {
|
|
|
34842
35717
|
pruneMembersSiblingsStoppedWriting(...args);
|
|
34843
35718
|
} catch (err) {
|
|
34844
35719
|
const cause = err instanceof Error ? err.name : typeof err;
|
|
34845
|
-
logger.debug(safeMsg`Sibling-written IAM
|
|
35720
|
+
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'.`);
|
|
34846
35721
|
}
|
|
34847
35722
|
}
|
|
34848
35723
|
const STANDALONE_SIBLING = {
|
|
@@ -37620,6 +38495,7 @@ async function revertUnsettledFailedUpdates(deps, ctx, stackName, stateResources
|
|
|
37620
38495
|
inlinePolicyWriters: options.inlinePolicyWriters,
|
|
37621
38496
|
isInterrupted,
|
|
37622
38497
|
previousFromRecord: own,
|
|
38498
|
+
regeneratedSecrets: options.regeneratedSecrets,
|
|
37623
38499
|
...options.cleanup
|
|
37624
38500
|
}));
|
|
37625
38501
|
out.warnings += replay.warnings + replay.failures;
|
|
@@ -37698,26 +38574,44 @@ async function performRollback(deps, completedOperations, stateResources, stackN
|
|
|
37698
38574
|
const cleanup = segmentCleanupOptions(true, supersededHost);
|
|
37699
38575
|
const runId = deps.options.eventRecorder?.runId;
|
|
37700
38576
|
const { result, failed, unsettled, run } = await withNestedRevertRun(runId, async (scope) => {
|
|
38577
|
+
const failedResult = orphanOps.length > 0 ? await withPrintingSecrets(replayPrintingBag(deps, orphanOps.map((op) => ({
|
|
38578
|
+
...op,
|
|
38579
|
+
properties: op.attemptedProperties
|
|
38580
|
+
})), stateResources), () => replayFailedOperations(orphanOps, stateResources, stackName, ctx, {
|
|
38581
|
+
emitEnvelope: completedOperations.length === 0,
|
|
38582
|
+
inlinePolicyWriters
|
|
38583
|
+
})) : void 0;
|
|
38584
|
+
const deferred = /* @__PURE__ */ new Set();
|
|
38585
|
+
failedOperations.forEach((op, i) => {
|
|
38586
|
+
if (op.changeType === "UPDATE" && !orphanIndexes.includes(i) && !seedsDeleteFirstGuard(op) && readsRegeneratingSecret(op.logicalId, stateResources, completedOperations) && !attemptUsesCompletedCreate(op.attemptedProperties, completedOperations)) deferred.add(i);
|
|
38587
|
+
});
|
|
38588
|
+
const unsettledFirst = await revertUnsettledFailedUpdates(deps, ctx, stackName, stateResources, failedOperations, /* @__PURE__ */ new Set([...orphanIndexes, ...deferred]), {
|
|
38589
|
+
emitEnvelope: completedOperations.length === 0 && orphanOps.length === 0,
|
|
38590
|
+
inlinePolicyWriters,
|
|
38591
|
+
hooks: unsettledRevert,
|
|
38592
|
+
cleanup
|
|
38593
|
+
});
|
|
38594
|
+
const completedResult = await withPrintingSecrets(replayPrintingBag(deps, completedReplayEntries(completedOperations), stateResources), () => replayRollback(completedOperations, stateResources, stackName, ctx, {
|
|
38595
|
+
inlinePolicyWriters,
|
|
38596
|
+
failedOperations,
|
|
38597
|
+
isInterrupted: () => deps.userInterrupted(),
|
|
38598
|
+
...cleanup
|
|
38599
|
+
}));
|
|
38600
|
+
const unsettledDeferred = deferred.size === 0 ? void 0 : await revertUnsettledFailedUpdates(deps, ctx, stackName, stateResources, failedOperations, new Set(failedOperations.map((_, i) => i).filter((i) => !deferred.has(i))), {
|
|
38601
|
+
emitEnvelope: false,
|
|
38602
|
+
inlinePolicyWriters,
|
|
38603
|
+
hooks: unsettledRevert,
|
|
38604
|
+
cleanup,
|
|
38605
|
+
regeneratedSecrets: new Set([...completedResult.regeneratedSecrets?.values() ?? []].flatMap((a) => [...a]))
|
|
38606
|
+
});
|
|
37701
38607
|
return {
|
|
37702
|
-
failed:
|
|
37703
|
-
|
|
37704
|
-
|
|
37705
|
-
|
|
37706
|
-
|
|
37707
|
-
|
|
37708
|
-
|
|
37709
|
-
unsettled: await revertUnsettledFailedUpdates(deps, ctx, stackName, stateResources, failedOperations, new Set(orphanIndexes), {
|
|
37710
|
-
emitEnvelope: completedOperations.length === 0 && orphanOps.length === 0,
|
|
37711
|
-
inlinePolicyWriters,
|
|
37712
|
-
hooks: unsettledRevert,
|
|
37713
|
-
cleanup
|
|
37714
|
-
}),
|
|
37715
|
-
result: await withPrintingSecrets(replayPrintingBag(deps, completedReplayEntries(completedOperations), stateResources), () => replayRollback(completedOperations, stateResources, stackName, ctx, {
|
|
37716
|
-
inlinePolicyWriters,
|
|
37717
|
-
failedOperations,
|
|
37718
|
-
isInterrupted: () => deps.userInterrupted(),
|
|
37719
|
-
...cleanup
|
|
37720
|
-
})),
|
|
38608
|
+
failed: failedResult,
|
|
38609
|
+
unsettled: unsettledDeferred === void 0 ? unsettledFirst : {
|
|
38610
|
+
handled: [...unsettledFirst.handled, ...unsettledDeferred.handled],
|
|
38611
|
+
warnings: unsettledFirst.warnings + unsettledDeferred.warnings,
|
|
38612
|
+
interrupted: unsettledFirst.interrupted || unsettledDeferred.interrupted
|
|
38613
|
+
},
|
|
38614
|
+
result: completedResult,
|
|
37721
38615
|
run: scope
|
|
37722
38616
|
};
|
|
37723
38617
|
});
|
|
@@ -45491,16 +46385,15 @@ async function readReplicaPolicies(client, tableName, regionLabel, tableArn, str
|
|
|
45491
46385
|
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
45492
46386
|
live = await read();
|
|
45493
46387
|
}
|
|
45494
|
-
if (afterOwnWrite && (live
|
|
45495
|
-
this.logger.debug(safeMsg`Kept the declared ${what} of the ${regionLabel} replica of ${tableName} in the baseline captured after its write: the read
|
|
46388
|
+
if (afterOwnWrite && !streamPolicyMatchesDeclared(live, container)) {
|
|
46389
|
+
this.logger.debug(safeMsg`Kept the declared ${what} of the ${regionLabel} replica of ${tableName} in the baseline captured after its write: the read never settled on it`);
|
|
45496
46390
|
return declaredMember();
|
|
45497
46391
|
}
|
|
45498
46392
|
return reverseMapStreamPolicy(live, container);
|
|
45499
46393
|
} catch (err) {
|
|
45500
46394
|
if (strictFor("Replicas") && !(err instanceof ResourceNotFoundException$1)) throw err;
|
|
45501
46395
|
this.logger.debug(safeMsg`Could not read the ${what} of the ${regionLabel} replica of ${tableName}: ${describeAwsFailure(err).detail}`);
|
|
45502
|
-
if (afterOwnWrite && last !== void 0 && last !== "")
|
|
45503
|
-
if (afterOwnWrite && (isThrottlingError(err) || isTransientServerError(err) || isAmbiguousOutcomeError(err) || err instanceof ResourceNotFoundException$1)) return declaredMember();
|
|
46396
|
+
if (afterOwnWrite && (last !== void 0 && last !== "" || isThrottlingError(err) || isTransientServerError(err) || isAmbiguousOutcomeError(err) || err instanceof ResourceNotFoundException$1)) return declaredMember();
|
|
45504
46397
|
return;
|
|
45505
46398
|
}
|
|
45506
46399
|
};
|
|
@@ -52232,5 +53125,5 @@ var DeployEngine = class {
|
|
|
52232
53125
|
}
|
|
52233
53126
|
};
|
|
52234
53127
|
|
|
52235
|
-
export { planVectorIndexUpdates as $, poisonRenderedSpellingsCollidingIn as $a, hasNoCloudControlHandlers as $c, extractDeploymentEventError as $i, buildDenyExternalAccessPolicy as $l, replayFailedOperations as $n, carriesDynamicReference as $o, WITHHELD_NAME_DISPLAY as $r, refuseMalformedResourceEntriesForImportSave as $s, dropSettledNestedJournals as $t, recordedProtectionEvidence as A, NO_LOCAL_CUSTOM_RESOURCES_FLAG as Aa, malformedResourcesWarning as Ac, bold as Ai, purgeNoncurrentKeyVersions as Al, formatDestructiveChange as An, coerceParameterTypedValue as Ao, resolveReplacementOldType as Ar, maskedPropertyFingerprint as As, hasCdkAutoDeleteTag as At, declaredStreamTagsMember as B, waitForGoneAfterDelete as Ba, STATE_RESOURCES_MALFORMED as Bc, withAttemptedItemsMasked as Bi, loadPublishableAssetManifest as Bl, isPairableType as Bn, extractGetAttRefs as Bo, nameGenerationCarriedFrom as Br, repairMalformedOrphanRecordsForReadOnly as Bs, updateRefactorMarker as Bt, pendingMovesOutOf as C, customResourceResponseExpirationWarning as Ca, refuseMalformedNestedChildOutputs as Cc, holdsSupersededResources as Ci, listNestedTemplateRows as Cl, createNoEchoValueMacs as Cn, producerRegionsFromState as Co, isReplacementOrphan as Cr, inputFingerprinter as Cs, TABLE_INDEX_NOUN as Ct, resolveBucketRegion as Cu, findServiceTokenRefusals as D, isCustomResourceType as Da, STATE_REGION_DIVERGED as Dc, supersededHolderOf as Di, isListParameterType as Dl, noEchoValueMacsOf as Dn, s3BucketDualStackDomainName as Do, replacementNeverSwapped as Dr, maskedInputProof as Ds, waitForIndexesSettled as Dt, deferredServiceTokenWarning as E, readsNoEchoDeleteValues as Ea, repairMalformedOutputsForReadOnly as Ec, supersededHeldByOtherTypeWarning as Ei, SSM_PARAMETER_VALUE_PREFIX as El, noEchoMacVerdict as En, s3BucketDomainName as Eo, recordUnderIdIsNotOwn as Er, parameterInputsFor as Es, relayedIndexBusyDelete as Et, readProtection as F, localCustomResourceRuntimeActive as Fa, refuseMalformedState as Fc, yellow as Fi, createAssetRedirectResolver as Fl, withMovedTo as Fn, isStalePlaceholderArnAttribute as Fo, redactedDeleteAddressFields as Fr, malformedOrphanRowsKeptWarning as Fs, readRefactorMarkerOnce as Ft, streamMemberRefusals as G, deleteSkipReason as Ga, findActionableSdkUnwired as Gc, namingSecretsWithRecordedNoEcho as Gi, getDockerImageBySourceHash as Gl, proposeRenames as Gn, recordedProvenanceOf as Go, retiredNameGenerationsLeaving as Gr, malformedLocalResourcesWarning as Gs, isAccessDeniedError as Gt, reverseMapStreamPolicy as H, UNSPECIFIED_SKIP_REASON as Ha, displayLogicalId as Hc, completedReplayEntries as Hi, redirectFileAsset as Hl, mappingPairs as Hn, keepHeldTokenProvenance as Ho, nameScopeOf as Hr, unreadableOrphanRecords as Hs, readsOnlyNoEchoParameters as Ht, DynamoDBGlobalTableProvider as I, setLocalCustomResourceRuntimeEnabled as Ia, repairMalformedResourcesForReadOnly as Ic, noEchoAttributeNamesOf as Ii, createLazyAssetModeContext as Il, changedReferenceInDiff as In, refStateLookupFromResource as Io, redactedDeleteAddressSkip as Ir, previewableOrphanRecords as Is, refactorMarkerMovesOf as It, isTtlAlreadyDisabled as J, isWaitAbandonedError as Ja, unwrittenCreateOnlyReplacement as Jc, secretNamePrintingBags as Ji, resolveFileAssetSourcePath as Jl, stripSiblingOwnedSgRules as Jn, referenceTokensIn as Jo, inheritProducerRegions as Jr, refuseMalformedResourceAttributesForOrphan as Js, pendingRequestCount as Jt, streamPolicyMatchesDeclared as K, withIndeterminateGuard as Ka, findHandledUnwrittenCreateOnly as Kc, orphanRecordsPrintingBag as Ki, isCfnTemplateAssetPath as Kl, referencedLogicalIds as Kn, recordedReferenceRegions as Ko, withNameGenerationReached as Kr, malformedResourceEntriesWarning as Ks, lookupEachName as Kt, STREAM_POLICY_KEY as L, withCustomResourceStack as La, JSON_LISTING_HOLE_VALUE as Lc, noEchoComparisonForTemplate as Li, flattenAssetPlaceholders as Ll, changedReferencePath as Ln, lacksRecordedRefArn as Lo, segmentCleanupOptions as Lr, refuseMalformedOrphanRecords as Ls, refactorMarkerRefusalMessage as Lt, PROTECTION_PROPERTY_BY_TYPE as M, customResourcesFailedWithoutApp as Ma, refuseMalformedResourcesForDeploy as Mc, gray as Mi, rememberSynthesizedStacks as Ml, hintSidesOf as Mn, parameterTypeMayLoseSecretIdentity as Mo, findNestedStackTypeChanges as Mr, isReadableOrphanRecord as Ms, keptForRetainedRecord as Mt, isProtectionValueActive as N, customResourcesRunWithoutApp as Na, refuseMalformedResourcesForDestroy as Nc, green as Ni, synthesizedStacks as Nl, movedToHint as Nn, AWS_NO_VALUE as No, REDACTED_DELETE_ADDRESS_SKIP_REASON as Nr, malformedOrphanRecordsRefusalMessage as Ns, recordRetainedForReadoption as Nt, serviceTokenBlockingReason as O, getCurrentResourceSecrets as Oa, refuseDivergentRecordRegionForDestroy as Oc, supersededResourcesOf as Oi, ssmResolvedValueType as Ol, constructPathOf as On, s3BucketRegionalDomainName as Oo, IMPLICIT_DELETE_DEPENDENCIES as Or, passedParameterClassesOf as Os, ECR_AUTO_DELETE_IMAGES_TAG as Ot, perType as P, localCustomResourceCommand as Pa, refuseMalformedResourcesForExport as Pc, red as Pi, buildAssetRedirectMap as Pl, rollbackOrphanIds as Pn, cfnRefValueFromPhysicalId as Po, isRedactedRecordedValue as Pr, malformedOrphanRecordsWarning as Ps, readRefactorMarker as Pt, sendTtlWaitingOutRateLimit as Q, isAlwaysLiveAttribute as Qa, NO_CC_HANDLERS_REASON as Qc, storedSecretNameNeedles as Qi, ensureAssetStorage as Ql, canonicalizeIpProtocolValue as Qn, isNamelessDynamicReferenceError as Qo, resourcesNamingDeclaredParameter as Qr, refuseMalformedResourceEntriesForImport as Qs, displacedPhysicalIdShown as Qt, STREAM_TAGS_KEY as R, waitForLambdaFunctionActive as Ra, accountArgs as Rc, noEchoExactEchoLeavesOf as Ri, isDefaultBootstrapBucketName as Rl, changedReferenceReason as Rn, lacksRecordedTableArn as Ro, removeProtectionTypeList as Rr, refuseMalformedOrphanRecordsForDestroy as Rs, refuseRefactorMarker as Rt, hasPendingMovesOut as S, applyCustomResourceResponseExpiration as Sa, malformedOutputsWarning as Sc, deleteSupersededEntry as Si, isAbsoluteAssetPath as Sl, NOECHO_MAC_KEY_ALIAS as Sn, classifyReplaySecretRegion as So, isJournaledOrphan as Sr, tryGetTopLevelWriteOnlyProperties as Ss, INDEX_SETTLE_POLL_INTERVAL_MS as St, clearBucketRegionCache as Su, refusePendingMovesOut as T, TemplateNoEchoReresolver as Ta, refuseMalformedOutputsForDestroy as Tc, supersededAfterRollback as Ti, templateIdentity as Tl, noEchoMacParametersOf as Tn, s3BucketArn as To, recheckFailedPlan as Tr, movedMaskedProperties as Ts, maskedLogger as Tt, streamDeclaresPolicy as U, deleteIndeterminateGuards as Ua, hasReadableOutputs as Uc, journaledOrphanPrintingBag as Ui, rewriteTemplateAssetReferences as Ul, parseMappingFile as Un, outputReferenceProvenanceOf as Uo, retiredAfterRollback as Ur, isReadableResourceEntry as Us, formatResourceLine as Ut, planStreamMemberOps as V, RollbackInlinePolicyWriters as Va, UNREADABLE_RESOURCES_MAP_ROW as Vc, createReadOnlyAttributeHealerFactory as Vi, redirectDockerAsset as Vl, looselyEqual as Vn, promoteInPlaceAttributeDependents as Vo, nameGenerationHighWaterOf as Vr, unpreviewableOrphanRecords as Vs, macWriteOnlyKeys as Vt, streamDeclaresTags as W, deleteLeftInPlace as Wa, hasReadableResources as Wc, maskEventTextWithBoundBags as Wi, AssetManifestLoader as Wl, propertiesChangedReason as Wn, recordedOutputReferenceRegions as Wo, retiredNameGenerationsAfter as Wr, malformedLocalResourceEntriesWarning as Ws, chunks as Wt, planTimeToLive as X, IntrinsicFunctionResolver as Xa, withoutSdkUnwiredProperties as Xc, secretNamedRecordNeedles as Xi, warnWholeAssemblyAsSource as Xl, cfnIngressPortValue as Xn, isImpossibleEmptyStoredAttribute as Xo, namesAnyDeclaredParameter as Xr, refuseMalformedResourceEntriesForDeploy as Xs, NESTED_PENDING_PARENT_REASON as Xt, isTtlRateLimited as Y, markWaitAbandoned as Ya, withoutAcceptedSdkUnwiredProperties as Yc, secretNamedAttributeNamesOf as Yi, warnAbsoluteAssetPath as Yl, withoutSiblingOwnedSgRules as Yn, getAccountInfo as Yo, computeParameterTaint as Yr, refuseMalformedResourceEntries as Ys, resolvePendingCloudControlRequests as Yt, readTtlSpec as Z, isSelectOutOfBounds as Za, withoutUnwrittenSdkUnwiredProperties as Zc, stateSecretNameNeedles as Zi, AssetModeResolver as Zl, sgProtocolKey as Zn, carriesFetchableDynamicReference as Zo, reachableDivergentParameters as Zr, refuseMalformedResourceEntriesForDestroy as Zs, displacedOpClause as Zt, conditionFingerprint as _, ProviderRegistry as _a, repairMalformedOrphansForReadOnly as _c, awaitInFlightSibling as _i, isSecretValuedAttribute as _l, makeSiblingClaimReader as _n, AWS_CREDENTIAL_ENV_KEYS as _o, withCreateTokenLedger as _r, isWarmThroughputDecrease as _s, compensateRemovedDeletionProtection as _t, describeFileReadFailure as _u, scanActiveConsumers as a, isFinalSnapshotError as aa, refuseMalformedResourceProperties as ac, carriedExportAliasExposure as ai, readOnlyStateVersionOf as al, withNestedRevertRun as an, secretSegmentsOfState as ao, withUnprovenUnsettled as ar, markNewValueKnownAfterDeploy as as, contributorInsightsRefusals as at, validateAssetBucketName as au, readRecordedConditionVerdicts as b, wouldReturnToSdkProvider as ba, malformedLocalOutputsWarning as bc, withStackRecords as bi, missingStateBucketRemedy as bl, DeploymentEventsStore as bn, envCredentialsAreAssumedRole as bo, seedsDeleteFirstGuard as br, getSettledWriteOnlyPropertyPaths as bs, resolveDynamoDbDeleteBudgetMs as bt, renderAssemblyPathEscape as bu, nestedSsmNameDeferredNote as c, createPreDeleteFinalSnapshot as ca, refuseMalformedResourcePropertiesForExport as cc, isWholeDynamicReferenceValue as ci, rebuildClientForBucketRegion as cl, withNestedStackContext as cn, producerLookupOver as co, equalModuloMask as cr, findReplacedReadersOfRecreateTargets as cs, planIndexContributorInsightsOps as ct, getCdkdAssetBucketName as cu, slashedSsmNameHealAdoptedNote as d, collectManagedPolicyArnsAttachedBySiblings as da, UNREADABLE_ORPHANS_CONTAINER_ROW as dc, collectPublishedOutputNames as di, applyCrossPrefixScan as dl, dropFailedHint as dn, assertFlagRoleArn as do, updatePartialReason as dr, MULTI_REGION_RECREATE_BLOCKED_TYPES as ds, reverseMapTableContributorInsights as dt, hasOwnKey as du, ATOMIC_FINAL_SNAPSHOT_TYPES as ea, refuseMalformedResourceEntriesForOrphan as ec, displayTextOrWithheld as ei, PROPERTY_COVERAGE_BY_TYPE as el, getNestedRevertRun as en, stackIdTailOf as eo, replayRollback as er, keepsSecretReferenceToken as es, readbackVectorIndexes as et, assertAssetBucketRegion as eu, slashedSsmNameHealNote as f, collectPrincipalsAttachingPolicy as fa, hasReadableOrphans as fc, isExportAliasCollision as fi, crossPrefixDeniedWarning as fl, isHandledOrphan as fn, assertSendableRoleArn as fo, findUpdatePolicyReplacementRefusals as fr, isStatefulRecreateTargetForReplace as fs, stripIndexContributorInsights as ft, hasPlainPrototype as fu, makeCanonicalizePropertiesFn as g, CC_BROKEN_REASON as ga, refuseMalformedOrphansForDestroy as gc, maskingRetryLogger as gi, withStackInstanceIdWithheld as gl, makeForeignHolderScan as gn, sendableAssumeRoleCommand as go, reserveStackCreateToken as gr, coerceWarmThroughput as gs, beginDeleteWait as gt, assemblyPathEscape as gu, inheritedProvenanceForChildDiff as h, withoutSiblingOwned as ha, refuseMalformedOrphans as hc, DEFAULT_RESOURCE_WARN_AFTER_MS as hi, stackInstanceIdOf as hl, sameJournaledOrphans as hn, parseIamRoleArn as ho, ledgerForStack as hr, WARM_THROUGHPUT_MEMBERS as hs, DYNAMODB_DELETE_POLL_COST_MS as ht, absoluteAssemblyPathEscape as hu, mergeNoChangeOutputs as i, effectiveDeletionPolicy as ia, malformedResourcePropertiesWarning as ic, secretSafeKeyDisplay as ii, isKnownTokenFreeState as il, revertedNestedRowIds as in, secretPhysicalIdSegment as io, settleUnsettledPrevious as ir, containsIntrinsic as is, CONTRIBUTOR_INSIGHTS_KEY as it, readBootstrapMarkerBody as iu, recordedProtectionNote as j, customResourceStackName as ja, malformedStateRefusalMessage as jc, cyan as ji, decodeListingKey as jl, findRefactorHints as jn, isUnboundTemplateParameter as jo, withPreviousPolicies as jr, deployRefusesOrphanRowsReason as js, isTruthyCfnBoolean as jt, diffSecurity as k, withPrintingSecrets as ka, malformedRenderedContainersWarning as kc, withoutSuperseded as ki, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as kl, findDestructiveChanges as kn, s3BucketWebsiteUrl as ko, computeImplicitDeleteEdges as kr, declaresNoEcho as ks, S3_AUTO_DELETE_OBJECTS_TAG as kt, nestedSsmNameRowNote as l, buildFinalSnapshotIdentifier as la, refuseMalformedResourcePropertiesForOrphan as lc, noEchoParameterValueSeed as li, CrossPrefixReadError as ll, deleteJournaledOrphans as ln, refuseUnreadableCdkCrossAccountRefs as lo, undeclaredEmptyObservedKeys as lr, isPlainReferenceTo as ls, readContributorInsightsSpec as lt, getCdkdContainerRepoName as lu, crossStackOutputProvenanceSource as m, withoutSiblingAttachedArns as ma, malformedOrphansWarning as mc, DEFAULT_RESOURCE_TIMEOUT_MS as mi, isNotImplemented as ml, loadJournaledOrphans as mn, isIamRoleArn as mo, earliestDefined as mr, renderStatefulReason as ms, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as mt, ownValue as mu, isSecretBearingReferenceString as n, ccRoutedFinalSnapshotError as na, unreadableResourceEntries as nc, secretBearing as ni, S3StateBackend as nl, recordDisplacedSkips as nn, APPSYNC_APIKEY_ARN_RESOURCE_PATH as no, buildReadCurrentStateContext as nr, namesRecreatedParent as ns, vectorIndexesSettled as nt, getBootstrapMarkerKey as nu, inRunStackKey as o, refusesFinalSnapshot as oa, refuseMalformedResourcePropertiesForDestroy as oc, exportNameNoEchoParameters as oi, hasReasonlessBaselineRefusal as ol, collectNestedChildUnaddressed as on, withSecretPhysicalIdsMaskedInState as oo, calculateResourceDrift as or, replacementSidesForLog as os, indexDeclaresContributorInsights as ot, validateContainerRepoName as ou, slashedSsmNameHealPendingNote as p, stripSiblingOwnedMembers as pa, malformedOrphansRefusalMessage as pc, bindingSkippedOutputs as pi, isAccessDenied$1 as pl, journaledOrphanLines as pn, explicitRoleArnOrThrow as po, replacementCreateRoutesToCloudControl as pr, isStatefulRecreateTargetSync as ps, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as pt, nullPrototypeRecord as pu, streamTagsMatchDeclared as q, getReadOnlyPropertyPaths as qa, findSdkUnwiredProperties as qc, secretNamePrintingBag as qi, parseAssetManifestBody as ql, siblingOwnedSgRuleIdentities as qn, referenceProvenanceOf as qo, getCurrentProducerRegions as qr, malformedScrubResourceEntriesRefusalMessage as qs, withApiLimit as qt, keptWholeReasonText as r, ccRoutedInstanceTakesNoSnapshot as ra, malformedDriftResourcePropertiesWarning as rc, secretBearingStateKeyWarning as ri, splitImportedOps as rl, revertNestedChildFromJournal as rn, maskedSecretSegment as ro, recordAfterRollbackUpdate as rr, INTRINSIC_KEYS as rs, vectorIndexesShapeDetail as rt, parseBootstrapMarker as ru, checkNestedSsmNames as s, unsupportedFinalSnapshotError as sa, refuseMalformedResourcePropertiesForDrift as sc, exportNameSecretExposure as si, hasUnverifiableParameterRefusal as sl, getCurrentNestedStackContext as sn, resolveDynamicReferences as so, equalModuloMarkedMask as sr, siblingsOf as ss, planContributorInsightsOp as st, BOOTSTRAP_MARKER_PREFIX as su, DeployEngine as t, PRE_DELETE_SNAPSHOT_TYPES as ta, repairMalformedResourceEntriesForReadOnly as tc, exportAliasCollisionScrubWarning as ti, TemplateParser as tl, nestedChildStackName as tn, isSettledInstanceState as to, DELETED_RESOURCE_REMEDY as tr, withSharedDrainBudget as ts, vectorIndexesForCreate as tt, isCrossRegionRedirect as tu, healSlashedSsmParameterNames as u, collectGroupsAddedBySiblings as ua, repairMalformedResourcePropertiesForReadOnly as uc, collectDeclaredOutputNames as ui, CrossPrefixScanCache as ul, dropFailedCommands as un, applyRoleArnIfSet as uo, updatePartialMessage as ur, shownType as us, reverseMapIndexContributorInsights as ut, defineOwnKey as uu, conditionInputsFrom as v, ccBrokenReason as va, malformedExportNamesWarning as vc, destroyStackRecordsView as vi, isSensitiveAttributeName as vl, planOrphanAdoption as vn, applyCallerIdentityCredentials as vo, acquireIdempotencyToken as vr, toCfnInteger as vs, deleteBudgetKey as vt, displayAssemblyPath as vu, pendingMovesRefusalMessage as w, responsePresignClient as wa, refuseMalformedOutputs as wc, isSupersededResourceRecord as wi, renderNestedTemplateTreeDefect as wl, noEchoMacBinding as wn, regionLessSecretName as wo, planFailedOps as wr, maskedPropertyFingerprintsOf as ws, deleteTableWithIndexBusyRetry as wt, childTemplateLoader as x, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as xa, malformedOutputsRefusalMessage as xc, replacedDeleteFailureVerdict as xi, findNestedTemplateTreeDefect as xl, crossStackReadsForPartialSave as xn, classifyRecordedSecretRegion as xo, demoteSupersededOrphans as xr, getTopLevelKeysHoldingUnreadableCreateOnly as xs, DELETE_INDEX_WAIT_PROCEED_NOTE as xt, resolveAssemblyPath as xu, parentSuppliedValues as y, isCustomResource as ya, malformedExportSourceWarning as yc, getStackRecords as yi, stringifyValue as yl, DeploymentEventsReader as yn, callerEnvCredentials as yo, planRollback as yr, toFiniteNumber as ys, resolveDynamoDbDeleteBudgetClock as yt, namesTheSameDirectory as yu, declaredStreamPolicyMember as z, CloudControlProvider as za, withheldAccountClause as zc, noEchoParameterNamesOf as zi, isDefaultBootstrapRepoName as zl, differingRemedy as zn, parseWebACLArn as zo, orphanNeedsIdentity as zr, refuseMalformedOrphansForOrphan as zs, sameMove as zt };
|
|
52236
|
-
//# sourceMappingURL=deploy-engine-
|
|
53128
|
+
export { sendTtlWaitingOutRateLimit as $, markWaitAbandoned as $a, withoutAcceptedSdkUnwiredProperties as $c, secretNamedAttributeNamesOf as $i, warnAbsoluteAssetPath as $l, sgProtocolKey as $n, getAccountInfo as $o, computeParameterTaint as $r, refuseMalformedResourceEntries as $s, displacedPhysicalIdShown as $t, recordedProtectionEvidence as A, readsNoEchoDeleteValues as Aa, repairMalformedOutputsForReadOnly as Ac, supersededHeldByOtherTypeWarning as Ai, SSM_PARAMETER_VALUE_PREFIX as Al, findDestructiveChanges as An, s3BucketDomainName as Ao, IMPLICIT_DELETE_DEPENDENCIES as Ar, parameterInputsFor as As, S3_AUTO_DELETE_OBJECTS_TAG as At, declaredStreamTagsMember as B, setLocalCustomResourceRuntimeEnabled as Ba, repairMalformedResourcesForReadOnly as Bc, noEchoAttributeNamesOf as Bi, createLazyAssetModeContext as Bl, differingRemedy as Bn, refStateLookupFromResource as Bo, redactedDeleteAddressSkip as Br, previewableOrphanRecords as Bs, sameMove as Bt, pendingMovesOutOf as C, isCustomResource as Ca, malformedExportSourceWarning as Cc, getStackRecords as Ci, stringifyValue as Cl, NOECHO_MAC_KEY_ALIAS as Cn, callerEnvCredentials as Co, demoteSupersededOrphans as Cr, toFiniteNumber as Cs, INDEX_SETTLE_POLL_INTERVAL_MS as Ct, namesTheSameDirectory as Cu, findServiceTokenRefusals as D, customResourceResponseExpirationWarning as Da, refuseMalformedNestedChildOutputs as Dc, holdsSupersededResources as Di, listNestedTemplateRows as Dl, noEchoMacVerdict as Dn, producerRegionsFromState as Do, recheckFailedPlan as Dr, inputFingerprinter as Ds, relayedIndexBusyDelete as Dt, resolveBucketRegion as Du, deferredServiceTokenWarning as E, applyCustomResourceResponseExpiration as Ea, malformedOutputsWarning as Ec, deleteSupersededEntry as Ei, isAbsoluteAssetPath as El, noEchoMacParametersOf as En, classifyReplaySecretRegion as Eo, planFailedOps as Er, tryGetTopLevelWriteOnlyProperties as Es, maskedLogger as Et, clearBucketRegionCache as Eu, readProtection as F, customResourceStackName as Fa, malformedStateRefusalMessage as Fc, cyan as Fi, decodeListingKey as Fl, rollbackOrphanIds as Fn, isUnboundTemplateParameter as Fo, withPreviousPolicies as Fr, deployRefusesOrphanRowsReason as Fs, readRefactorMarker as Ft, streamDeclaresTags as G, RollbackInlinePolicyWriters as Ga, UNREADABLE_RESOURCES_MAP_ROW as Gc, createReadOnlyAttributeHealerFactory as Gi, redirectDockerAsset as Gl, propertiesChangedReason as Gn, promoteInPlaceAttributeDependents as Go, nameGenerationHighWaterOf as Gr, unpreviewableOrphanRecords as Gs, chunks as Gt, readStreamPolicy as H, waitForLambdaFunctionActive as Ha, accountArgs as Hc, noEchoExactEchoLeavesOf as Hi, isDefaultBootstrapBucketName as Hl, looselyEqual as Hn, lacksRecordedTableArn as Ho, removeProtectionTypeList as Hr, refuseMalformedOrphanRecordsForDestroy as Hs, macWriteOnlyKeys as Ht, DynamoDBGlobalTableProvider as I, customResourcesFailedWithoutApp as Ia, refuseMalformedResourcesForDeploy as Ic, gray as Ii, rememberSynthesizedStacks as Il, withMovedTo as In, parameterTypeMayLoseSecretIdentity as Io, findNestedStackTypeChanges as Ir, isReadableOrphanRecord as Is, readRefactorMarkerOnce as It, streamTagsMatchDeclared as J, deleteLeftInPlace as Ja, hasReadableResources as Jc, maskEventTextWithBoundBags as Ji, AssetManifestLoader as Jl, siblingOwnedRevertDesired as Jn, recordedOutputReferenceRegions as Jo, retiredNameGenerationsAfter as Jr, malformedLocalResourceEntriesWarning as Js, withApiLimit as Jt, streamMemberRefusals as K, UNSPECIFIED_SKIP_REASON as Ka, displayLogicalId as Kc, completedReplayEntries as Ki, redirectFileAsset as Kl, proposeRenames as Kn, keepHeldTokenProvenance as Ko, nameScopeOf as Kr, unreadableOrphanRecords as Ks, isAccessDeniedError as Kt, STREAM_POLICY_KEY as L, customResourcesRunWithoutApp as La, refuseMalformedResourcesForDestroy as Lc, green as Li, synthesizedStacks as Ll, changedReferenceInDiff as Ln, AWS_NO_VALUE as Lo, REDACTED_DELETE_ADDRESS_SKIP_REASON as Lr, malformedOrphanRecordsRefusalMessage as Ls, refactorMarkerMovesOf as Lt, PROTECTION_PROPERTY_BY_TYPE as M, getCurrentResourceSecrets as Ma, refuseDivergentRecordRegionForDestroy as Mc, supersededResourcesOf as Mi, ssmResolvedValueType as Ml, findRefactorHints as Mn, s3BucketRegionalDomainName as Mo, attemptUsesCompletedCreate as Mr, passedParameterClassesOf as Ms, isTruthyCfnBoolean as Mt, isProtectionValueActive as N, withPrintingSecrets as Na, malformedRenderedContainersWarning as Nc, withoutSuperseded as Ni, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Nl, hintSidesOf as Nn, s3BucketWebsiteUrl as No, readsRegeneratingSecret as Nr, declaresNoEcho as Ns, keptForRetainedRecord as Nt, serviceTokenBlockingReason as O, responsePresignClient as Oa, refuseMalformedOutputs as Oc, isSupersededResourceRecord as Oi, renderNestedTemplateTreeDefect as Ol, noEchoValueMacsOf as On, regionLessSecretName as Oo, recordUnderIdIsNotOwn as Or, maskedPropertyFingerprintsOf as Os, waitForIndexesSettled as Ot, perType as P, NO_LOCAL_CUSTOM_RESOURCES_FLAG as Pa, malformedResourcesWarning as Pc, bold as Pi, purgeNoncurrentKeyVersions as Pl, movedToHint as Pn, coerceParameterTypedValue as Po, resolveReplacementOldType as Pr, maskedPropertyFingerprint as Ps, recordRetainedForReadoption as Pt, readTtlSpec as Q, isWaitAbandonedError as Qa, unwrittenCreateOnlyReplacement as Qc, secretNamePrintingBags as Qi, resolveFileAssetSourcePath as Ql, cfnIngressPortValue as Qn, referenceTokensIn as Qo, inheritProducerRegions as Qr, refuseMalformedResourceAttributesForOrphan as Qs, displacedOpClause as Qt, STREAM_TAGS_KEY as R, localCustomResourceCommand as Ra, refuseMalformedResourcesForExport as Rc, red as Ri, buildAssetRedirectMap as Rl, changedReferencePath as Rn, cfnRefValueFromPhysicalId as Ro, isRedactedRecordedValue as Rr, malformedOrphanRecordsWarning as Rs, refactorMarkerRefusalMessage as Rt, hasPendingMovesOut as S, ccBrokenReason as Sa, malformedExportNamesWarning as Sc, destroyStackRecordsView as Si, isSensitiveAttributeName as Sl, crossStackReadsForPartialSave as Sn, applyCallerIdentityCredentials as So, seedsDeleteFirstGuard as Sr, toCfnInteger as Ss, DELETE_INDEX_WAIT_PROCEED_NOTE as St, displayAssemblyPath as Su, refusePendingMovesOut as T, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as Ta, malformedOutputsRefusalMessage as Tc, replacedDeleteFailureVerdict as Ti, findNestedTemplateTreeDefect as Tl, noEchoMacBinding as Tn, classifyRecordedSecretRegion as To, isReplacementOrphan as Tr, getTopLevelKeysHoldingUnreadableCreateOnly as Ts, deleteTableWithIndexBusyRetry as Tt, resolveAssemblyPath as Tu, reverseMapStreamPolicy as U, CloudControlProvider as Ua, withheldAccountClause as Uc, noEchoParameterNamesOf as Ui, isDefaultBootstrapRepoName as Ul, mappingPairs as Un, parseWebACLArn as Uo, orphanNeedsIdentity as Ur, refuseMalformedOrphansForOrphan as Us, readsOnlyNoEchoParameters as Ut, planStreamMemberOps as V, withCustomResourceStack as Va, JSON_LISTING_HOLE_VALUE as Vc, noEchoComparisonForTemplate as Vi, flattenAssetPlaceholders as Vl, isPairableType as Vn, lacksRecordedRefArn as Vo, segmentCleanupOptions as Vr, refuseMalformedOrphanRecords as Vs, updateRefactorMarker as Vt, streamDeclaresPolicy as W, waitForGoneAfterDelete as Wa, STATE_RESOURCES_MALFORMED as Wc, withAttemptedItemsMasked as Wi, loadPublishableAssetManifest as Wl, parseMappingFile as Wn, extractGetAttRefs as Wo, nameGenerationCarriedFrom as Wr, repairMalformedOrphanRecordsForReadOnly as Ws, formatResourceLine as Wt, isTtlRateLimited as X, withIndeterminateGuard as Xa, findHandledUnwrittenCreateOnly as Xc, orphanRecordsPrintingBag as Xi, isCfnTemplateAssetPath as Xl, siblingOwnedSgRuleIdentities as Xn, recordedReferenceRegions as Xo, withNameGenerationReached as Xr, malformedResourceEntriesWarning as Xs, resolvePendingCloudControlRequests as Xt, isTtlAlreadyDisabled as Y, deleteSkipReason as Ya, findActionableSdkUnwired as Yc, namingSecretsWithRecordedNoEcho as Yi, getDockerImageBySourceHash as Yl, stripSiblingOwnedParentMembers as Yn, recordedProvenanceOf as Yo, retiredNameGenerationsLeaving as Yr, malformedLocalResourcesWarning as Ys, pendingRequestCount as Yt, planTimeToLive as Z, getReadOnlyPropertyPaths as Za, findSdkUnwiredProperties as Zc, secretNamePrintingBag as Zi, parseAssetManifestBody as Zl, withoutSiblingOwnedSgRules as Zn, referenceProvenanceOf as Zo, getCurrentProducerRegions as Zr, malformedScrubResourceEntriesRefusalMessage as Zs, NESTED_PENDING_PARENT_REASON as Zt, conditionFingerprint as _, isStoredExpression as _a, malformedOrphansRefusalMessage as _c, bindingSkippedOutputs as _i, isAccessDenied$1 as _l, makeForeignHolderScan as _n, explicitRoleArnOrThrow as _o, ledgerForStack as _r, isStatefulRecreateTargetSync as _s, beginDeleteWait as _t, nullPrototypeRecord as _u, scanActiveConsumers as a, PRE_DELETE_SNAPSHOT_TYPES as aa, repairMalformedResourceEntriesForReadOnly as ac, exportAliasCollisionScrubWarning as ai, TemplateParser as al, revertedNestedRowIds as an, isSettledInstanceState as ao, recordAfterRollbackUpdate as ar, withSharedDrainBudget as as, CONTRIBUTOR_INSIGHTS_KEY as at, isCrossRegionRedirect as au, readRecordedConditionVerdicts as b, CC_BROKEN_REASON as ba, refuseMalformedOrphansForDestroy as bc, maskingRetryLogger as bi, withStackInstanceIdWithheld as bl, DeploymentEventsReader as bn, sendableAssumeRoleCommand as bo, acquireIdempotencyToken as br, coerceWarmThroughput as bs, resolveDynamoDbDeleteBudgetClock as bt, assemblyPathEscape as bu, nestedSsmNameDeferredNote as c, effectiveDeletionPolicy as ca, malformedResourcePropertiesWarning as cc, secretSafeKeyDisplay as ci, isKnownTokenFreeState as cl, getCurrentNestedStackContext as cn, secretPhysicalIdSegment as co, calculateResourceDrift as cr, containsIntrinsic as cs, planContributorInsightsOp as ct, readBootstrapMarkerBody as cu, slashedSsmNameHealAdoptedNote as d, unsupportedFinalSnapshotError as da, refuseMalformedResourcePropertiesForDrift as dc, exportNameSecretExposure as di, hasUnverifiableParameterRefusal as dl, dropFailedCommands as dn, resolveDynamicReferences as do, undeclaredEmptyObservedKeys as dr, siblingsOf as ds, reverseMapIndexContributorInsights as dt, BOOTSTRAP_MARKER_PREFIX as du, secretNamedRecordNeedles as ea, refuseMalformedResourceEntriesForDeploy as ec, namesAnyDeclaredParameter as ei, withoutSdkUnwiredProperties as el, dropSettledNestedJournals as en, IntrinsicFunctionResolver as eo, canonicalizeIpProtocolValue as er, isImpossibleEmptyStoredAttribute as es, planVectorIndexUpdates as et, warnWholeAssemblyAsSource as eu, slashedSsmNameHealNote as f, createPreDeleteFinalSnapshot as fa, refuseMalformedResourcePropertiesForExport as fc, isWholeDynamicReferenceValue as fi, rebuildClientForBucketRegion as fl, dropFailedHint as fn, producerLookupOver as fo, updatePartialMessage as fr, findReplacedReadersOfRecreateTargets as fs, reverseMapTableContributorInsights as ft, getCdkdAssetBucketName as fu, makeCanonicalizePropertiesFn as g, collectPrincipalsAttachingPolicy as ga, hasReadableOrphans as gc, isExportAliasCollision as gi, crossPrefixDeniedWarning as gl, sameJournaledOrphans as gn, assertSendableRoleArn as go, earliestDefined as gr, isStatefulRecreateTargetForReplace as gs, DYNAMODB_DELETE_POLL_COST_MS as gt, hasPlainPrototype as gu, inheritedProvenanceForChildDiff as h, collectManagedPolicyArnsAttachedBySiblings as ha, UNREADABLE_ORPHANS_CONTAINER_ROW as hc, collectPublishedOutputNames as hi, applyCrossPrefixScan as hl, loadJournaledOrphans as hn, assertFlagRoleArn as ho, replacementCreateRoutesToCloudControl as hr, MULTI_REGION_RECREATE_BLOCKED_TYPES as hs, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as ht, hasOwnKey as hu, mergeNoChangeOutputs as i, ATOMIC_FINAL_SNAPSHOT_TYPES as ia, refuseMalformedResourceEntriesForOrphan as ic, displayTextOrWithheld as ii, PROPERTY_COVERAGE_BY_TYPE as il, revertNestedChildFromJournal as in, stackIdTailOf as io, buildReadCurrentStateContext as ir, keepsSecretReferenceToken as is, vectorIndexesShapeDetail as it, assertAssetBucketRegion as iu, recordedProtectionNote as j, isCustomResourceType as ja, STATE_REGION_DIVERGED as jc, supersededHolderOf as ji, isListParameterType as jl, formatDestructiveChange as jn, s3BucketDualStackDomainName as jo, computeImplicitDeleteEdges as jr, maskedInputProof as js, hasCdkAutoDeleteTag as jt, diffSecurity as k, TemplateNoEchoReresolver as ka, refuseMalformedOutputsForDestroy as kc, supersededAfterRollback as ki, templateIdentity as kl, constructPathOf as kn, s3BucketArn as ko, replacementNeverSwapped as kr, movedMaskedProperties as ks, ECR_AUTO_DELETE_IMAGES_TAG as kt, nestedSsmNameRowNote as l, isFinalSnapshotError as la, refuseMalformedResourceProperties as lc, carriedExportAliasExposure as li, readOnlyStateVersionOf as ll, withNestedStackContext as ln, secretSegmentsOfState as lo, equalModuloMarkedMask as lr, markNewValueKnownAfterDeploy as ls, planIndexContributorInsightsOps as lt, validateAssetBucketName as lu, crossStackOutputProvenanceSource as m, collectGroupsAddedBySiblings as ma, repairMalformedResourcePropertiesForReadOnly as mc, collectDeclaredOutputNames as mi, CrossPrefixScanCache as ml, journaledOrphanLines as mn, applyRoleArnIfSet as mo, findUpdatePolicyReplacementRefusals as mr, shownType as ms, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as mt, defineOwnKey as mu, isSecretBearingReferenceString as n, storedSecretNameNeedles as na, refuseMalformedResourceEntriesForImport as nc, resourcesNamingDeclaredParameter as ni, NO_CC_HANDLERS_REASON as nl, nestedChildStackName as nn, isAlwaysLiveAttribute as no, replayRollback as nr, isNamelessDynamicReferenceError as ns, vectorIndexesForCreate as nt, ensureAssetStorage as nu, inRunStackKey as o, ccRoutedFinalSnapshotError as oa, unreadableResourceEntries as oc, secretBearing as oi, S3StateBackend as ol, withNestedRevertRun as on, APPSYNC_APIKEY_ARN_RESOURCE_PATH as oo, settleUnsettledPrevious as or, namesRecreatedParent as os, contributorInsightsRefusals as ot, getBootstrapMarkerKey as ou, slashedSsmNameHealPendingNote as p, buildFinalSnapshotIdentifier as pa, refuseMalformedResourcePropertiesForOrphan as pc, noEchoParameterValueSeed as pi, CrossPrefixReadError as pl, isHandledOrphan as pn, refuseUnreadableCdkCrossAccountRefs as po, updatePartialReason as pr, isPlainReferenceTo as ps, stripIndexContributorInsights as pt, getCdkdContainerRepoName as pu, streamPolicyMatchesDeclared as q, deleteIndeterminateGuards as qa, hasReadableOutputs as qc, journaledOrphanPrintingBag as qi, rewriteTemplateAssetReferences as ql, referencedLogicalIds as qn, outputReferenceProvenanceOf as qo, retiredAfterRollback as qr, isReadableResourceEntry as qs, lookupEachName as qt, keptWholeReasonText as r, extractDeploymentEventError as ra, refuseMalformedResourceEntriesForImportSave as rc, WITHHELD_NAME_DISPLAY as ri, hasNoCloudControlHandlers as rl, recordDisplacedSkips as rn, poisonRenderedSpellingsCollidingIn as ro, DELETED_RESOURCE_REMEDY as rr, carriesDynamicReference as rs, vectorIndexesSettled as rt, buildDenyExternalAccessPolicy as ru, checkNestedSsmNames as s, ccRoutedInstanceTakesNoSnapshot as sa, malformedDriftResourcePropertiesWarning as sc, secretBearingStateKeyWarning as si, splitImportedOps as sl, collectNestedChildUnaddressed as sn, maskedSecretSegment as so, withUnprovenUnsettled as sr, INTRINSIC_KEYS as ss, indexDeclaresContributorInsights as st, parseBootstrapMarker as su, DeployEngine as t, stateSecretNameNeedles as ta, refuseMalformedResourceEntriesForDestroy as tc, reachableDivergentParameters as ti, withoutUnwrittenSdkUnwiredProperties as tl, getNestedRevertRun as tn, isSelectOutOfBounds as to, replayFailedOperations as tr, carriesFetchableDynamicReference as ts, readbackVectorIndexes as tt, AssetModeResolver as tu, healSlashedSsmParameterNames as u, refusesFinalSnapshot as ua, refuseMalformedResourcePropertiesForDestroy as uc, exportNameNoEchoParameters as ui, hasReasonlessBaselineRefusal as ul, deleteJournaledOrphans as un, withSecretPhysicalIdsMaskedInState as uo, equalModuloMask as ur, replacementSidesForLog as us, readContributorInsightsSpec as ut, validateContainerRepoName as uu, conditionInputsFrom as v, withoutSiblingAttachedArns as va, malformedOrphansWarning as vc, DEFAULT_RESOURCE_TIMEOUT_MS as vi, isNotImplemented as vl, makeSiblingClaimReader as vn, isIamRoleArn as vo, reserveStackCreateToken as vr, renderStatefulReason as vs, compensateRemovedDeletionProtection as vt, ownValue as vu, pendingMovesRefusalMessage as w, wouldReturnToSdkProvider as wa, malformedLocalOutputsWarning as wc, withStackRecords as wi, missingStateBucketRemedy as wl, createNoEchoValueMacs as wn, envCredentialsAreAssumedRole as wo, isJournaledOrphan as wr, getSettledWriteOnlyPropertyPaths as ws, TABLE_INDEX_NOUN as wt, renderAssemblyPathEscape as wu, childTemplateLoader as x, ProviderRegistry as xa, repairMalformedOrphansForReadOnly as xc, awaitInFlightSibling as xi, isSecretValuedAttribute as xl, DeploymentEventsStore as xn, AWS_CREDENTIAL_ENV_KEYS as xo, planRollback as xr, isWarmThroughputDecrease as xs, resolveDynamoDbDeleteBudgetMs as xt, describeFileReadFailure as xu, parentSuppliedValues as y, withoutSiblingOwned as ya, refuseMalformedOrphans as yc, DEFAULT_RESOURCE_WARN_AFTER_MS as yi, stackInstanceIdOf as yl, planOrphanAdoption as yn, parseIamRoleArn as yo, withCreateTokenLedger as yr, WARM_THROUGHPUT_MEMBERS as ys, deleteBudgetKey as yt, absoluteAssemblyPathEscape as yu, declaredStreamPolicyMember as z, localCustomResourceRuntimeActive as za, refuseMalformedState as zc, yellow as zi, createAssetRedirectResolver as zl, changedReferenceReason as zn, isStalePlaceholderArnAttribute as zo, redactedDeleteAddressFields as zr, malformedOrphanRowsKeptWarning as zs, refuseRefactorMarker as zt };
|
|
53129
|
+
//# sourceMappingURL=deploy-engine-CilA7v8d.js.map
|