@cdkd/cli 0.351.0 → 0.351.1
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-BdOY70NL.js → ambient-client-defaults-B6WnCkIH.js} +3 -3
- package/dist/{ambient-client-defaults-BdOY70NL.js.map → ambient-client-defaults-B6WnCkIH.js.map} +1 -1
- package/dist/{asg-provider-BhktjcGM.js → asg-provider-Cvt28cjZ.js} +6 -6
- package/dist/{asg-provider-BhktjcGM.js.map → asg-provider-Cvt28cjZ.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-BkEa9HAa.js → custom-resource-runtime-q-XZhmNY.js} +6 -6
- package/dist/{custom-resource-runtime-BkEa9HAa.js.map → custom-resource-runtime-q-XZhmNY.js.map} +1 -1
- package/dist/{db-associated-roles-DZ1mRuUA.js → db-associated-roles-C4lSFcA4.js} +2 -2
- package/dist/{db-associated-roles-DZ1mRuUA.js.map → db-associated-roles-C4lSFcA4.js.map} +1 -1
- package/dist/{delete-started-ByP_GmQ7.js → delete-started-B5fdSbyi.js} +4 -4
- package/dist/{delete-started-ByP_GmQ7.js.map → delete-started-B5fdSbyi.js.map} +1 -1
- package/dist/{deploy-engine-BZNCiQ-B.js → deploy-engine-BCutoRqN.js} +379 -125
- package/dist/deploy-engine-BCutoRqN.js.map +1 -0
- package/dist/{diff-calculator-vaWjL6sQ.js → diff-calculator-Dpy3mtdK.js} +12 -12
- package/dist/{diff-calculator-vaWjL6sQ.js.map → diff-calculator-Dpy3mtdK.js.map} +1 -1
- package/dist/{ec2-termination-protection-DpNlPDar.js → ec2-termination-protection-DEedWKNw.js} +6 -6
- package/dist/{ec2-termination-protection-DpNlPDar.js.map → ec2-termination-protection-DEedWKNw.js.map} +1 -1
- package/dist/{ecr-uri-Cd_x_ldh.js → ecr-uri-BdY53T_-.js} +2 -2
- package/dist/{ecr-uri-Cd_x_ldh.js.map → ecr-uri-BdY53T_-.js.map} +1 -1
- package/dist/{expected-bucket-owner-Ba9LshiP.js → expected-bucket-owner-iywep2CV.js} +2 -2
- package/dist/{expected-bucket-owner-Ba9LshiP.js.map → expected-bucket-owner-iywep2CV.js.map} +1 -1
- package/dist/{iam-role-provider-CL-dMrn4.js → iam-role-provider-BQAmYWyO.js} +7 -7
- package/dist/{iam-role-provider-CL-dMrn4.js.map → iam-role-provider-BQAmYWyO.js.map} +1 -1
- package/dist/{image-plan-C0B05bHS.js → image-plan-Cc837NpF.js} +8 -8
- package/dist/{image-plan-C0B05bHS.js.map → image-plan-Cc837NpF.js.map} +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-DpAGzSvV.js → logger-CmaW95DR.js} +2 -2
- package/dist/{logger-DpAGzSvV.js.map → logger-CmaW95DR.js.map} +1 -1
- package/dist/{neptune-provider-CJuYc8IB.js → neptune-provider-BkaMldJg.js} +7 -7
- package/dist/{neptune-provider-CJuYc8IB.js.map → neptune-provider-BkaMldJg.js.map} +1 -1
- package/dist/{program-CUCE3lAz.js → program-8-3OnhIJ.js} +16 -15
- package/dist/program-8-3OnhIJ.js.map +1 -0
- package/dist/{provider-classes-YUbciPtV.js → provider-classes-DcmiLT1V.js} +92 -65
- package/dist/provider-classes-DcmiLT1V.js.map +1 -0
- package/dist/{rds-provider-CbmVLapS.js → rds-provider-BWOEzXOQ.js} +10 -10
- package/dist/{rds-provider-CbmVLapS.js.map → rds-provider-BWOEzXOQ.js.map} +1 -1
- package/dist/{read-replica-BQ5dRRmm.js → read-replica-BQhsK5Fn.js} +3 -3
- package/dist/{read-replica-BQ5dRRmm.js.map → read-replica-BQhsK5Fn.js.map} +1 -1
- package/dist/{replacement-rules-DZphESoc.js → replacement-rules-DywtM6vS.js} +3 -3
- package/dist/{replacement-rules-DZphESoc.js.map → replacement-rules-DywtM6vS.js.map} +1 -1
- package/dist/{resource-deadline-_gEj2hxY.js → resource-deadline-C_l7cJ75.js} +4 -4
- package/dist/{resource-deadline-_gEj2hxY.js.map → resource-deadline-C_l7cJ75.js.map} +1 -1
- package/dist/{run-cli-bzXhjxpe.js → run-cli-lankPggb.js} +2 -2
- package/dist/{run-cli-bzXhjxpe.js.map → run-cli-lankPggb.js.map} +1 -1
- package/dist/{update-removal-DOUUID3B.js → update-removal-MnBAwEGA.js} +4 -4
- package/dist/{update-removal-DOUUID3B.js.map → update-removal-MnBAwEGA.js.map} +1 -1
- package/dist/{version-DTKcNNDa.js → version-7SpD1NBk.js} +2 -2
- package/dist/{version-DTKcNNDa.js.map → version-7SpD1NBk.js.map} +1 -1
- package/package.json +2 -2
- package/dist/deploy-engine-BZNCiQ-B.js.map +0 -1
- package/dist/program-CUCE3lAz.js.map +0 -1
- package/dist/provider-classes-YUbciPtV.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, 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-7SpD1NBk.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-CmaW95DR.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, 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-B6WnCkIH.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 describeJsonParseFailure, C as PhaseClock, E as recordPhase, M as parseFailureDebugDetail, N as parseJsonNamingNoBody, O as timePhase, P as utf8ByteLength, S as CREATE_ONLY_PATHS_SNAPSHOT, T as phaseTimingsEnabled, _ as hasNoRegistrySchema, a as reDisableInstanceApiTermination, b as IAM_PROPAGATION_MAX_DELAY_MS, c as unchangedBehindSecretReference, d as getCreateOnlyPropertyPaths, f as isIntrinsicShaped, g as describeTypeWithThrottleRetry, h as parseCreateOnlyPropertyPointers, i as observeThenDisableInstanceApiTermination, j as jsonParseFailureStandIn, k as timePhaseSync, l as cachedCreateOnlyPropertyPaths, m as templateResourceTypes, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as prefetchCreateOnlyPropertyPaths, r as isTerminationProtectionPropagationError, v as isAwsEmulatorRegistryMiss, w as phaseScopeForStack, x as withRetry, y as reportAwsEmulatorRegistryMiss } from "./ec2-termination-protection-
|
|
6
|
+
import { A as describeJsonParseFailure, C as PhaseClock, E as recordPhase, M as parseFailureDebugDetail, N as parseJsonNamingNoBody, O as timePhase, P as utf8ByteLength, S as CREATE_ONLY_PATHS_SNAPSHOT, T as phaseTimingsEnabled, _ as hasNoRegistrySchema, a as reDisableInstanceApiTermination, b as IAM_PROPAGATION_MAX_DELAY_MS, c as unchangedBehindSecretReference, d as getCreateOnlyPropertyPaths, f as isIntrinsicShaped, g as describeTypeWithThrottleRetry, h as parseCreateOnlyPropertyPointers, i as observeThenDisableInstanceApiTermination, j as jsonParseFailureStandIn, k as timePhaseSync, l as cachedCreateOnlyPropertyPaths, m as templateResourceTypes, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, p as prefetchCreateOnlyPropertyPaths, r as isTerminationProtectionPropagationError, v as isAwsEmulatorRegistryMiss, w as phaseScopeForStack, x as withRetry, y as reportAwsEmulatorRegistryMiss } from "./ec2-termination-protection-DEedWKNw.js";
|
|
7
7
|
import { i as sameRegion, n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
8
|
-
import { t as expectedOwnerParam } from "./expected-bucket-owner-
|
|
9
|
-
import { B as refusalTypeShown, Bt as RETRY_AUXILIARY_OWNER, Ct as isInterruptedWaitError, Dt as compositeIdSeparatorRefusal, Ft as createMaskedRetryLogger, G as isMarkedNotGone, H as resolveExplicitPhysicalId, It as isSecretDerivedValue, J as deleteWithProtectionCompensation, Jt as markAuxiliaryFailure, K as markNotGone, Kt as isAuxiliaryFailure, L as isQuotableImportValue, Lt as maskDeep, M as withoutServerErrorRetries, Mt as segmentAfterAnchor, Nt as stateOrphanRecordRemedy, Pt as createMaskedLogSinks, R as normalizeAwsTagsToCfn, Rt as maskerOrIdentity, Tt as canonicalizeRoute53QueryName, U as RESOURCE_NOT_FOUND, Ut as createdBeforeFailure, W as assertRegionMatch, Wt as createdResourceIdentityBeforeFailure, X as observeThenDisableProtection, Yt as markCreatedBeforeFailure, _t as pasteableAwsCommand, an as recoveryCommandFlags, c as clearCreatedReport, cn as DEFAULT_STATE_PREFIX, ct as protectionFlipKey, dt as ElapsedBudgetRegistry, f as retractCreatedResource, fn as producerRecordKey, ft as monotonicNowMs, hn as withPasteableAwsProfile, jt as resourceTypeShown, kt as logicalIdShown, l as collectCreatedResources, ln as injectiveKey, lt as runDeleteAttempt, n as prepareRemovalForUpdate, o as withoutInjectedRemovals, on as sanitizeRecoveryValue, ot as ProtectionFlipRegistry, pt as DELETION_PROTECTION_DOC_POINTER, q as compensateProtectionFlip, qt as isAuxiliaryMarkOf, r as removalWarning, s as CreatedResourceSink, sn as CUSTOM_RESOURCE_RESPONSE_PREFIX, st as isTerminalDeleteFailure, u as reportCreatedResource, ut as ElapsedBudget, vt as protectedReplacementAdvice, wt as startInterruptWatch, x as withUnchangedSecretPrincipalLists, z as quotedRemedyLogicalId, zt as withDerivedNameMasks } from "./update-removal-
|
|
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$5, 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, 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-
|
|
12
|
-
import { C as unsettledItemsField, D as withUnsettledItems, E as unsettledPropertiesOf, O as withUnsettledProperties, S as unsettledContextOf, T as unsettledItemsTopKey, c as refuseRestoreFromItself, f as planTagDiff, g as tagPlanWarning, i as withResourceDeadline, k as withoutUnsettledProperties, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, r as whileEnclosingDeadlinesPaused, t as enclosingDeadlineExpired, w as unsettledItemsOf, x as isUsableAttemptedName, y as definedAttributes } from "./resource-deadline-
|
|
8
|
+
import { t as expectedOwnerParam } from "./expected-bucket-owner-iywep2CV.js";
|
|
9
|
+
import { B as refusalTypeShown, Bt as RETRY_AUXILIARY_OWNER, Ct as isInterruptedWaitError, Dt as compositeIdSeparatorRefusal, Ft as createMaskedRetryLogger, G as isMarkedNotGone, H as resolveExplicitPhysicalId, It as isSecretDerivedValue, J as deleteWithProtectionCompensation, Jt as markAuxiliaryFailure, K as markNotGone, Kt as isAuxiliaryFailure, L as isQuotableImportValue, Lt as maskDeep, M as withoutServerErrorRetries, Mt as segmentAfterAnchor, Nt as stateOrphanRecordRemedy, Pt as createMaskedLogSinks, R as normalizeAwsTagsToCfn, Rt as maskerOrIdentity, Tt as canonicalizeRoute53QueryName, U as RESOURCE_NOT_FOUND, Ut as createdBeforeFailure, W as assertRegionMatch, Wt as createdResourceIdentityBeforeFailure, X as observeThenDisableProtection, Yt as markCreatedBeforeFailure, _t as pasteableAwsCommand, an as recoveryCommandFlags, c as clearCreatedReport, cn as DEFAULT_STATE_PREFIX, ct as protectionFlipKey, dt as ElapsedBudgetRegistry, f as retractCreatedResource, fn as producerRecordKey, ft as monotonicNowMs, hn as withPasteableAwsProfile, jt as resourceTypeShown, kt as logicalIdShown, l as collectCreatedResources, ln as injectiveKey, lt as runDeleteAttempt, n as prepareRemovalForUpdate, o as withoutInjectedRemovals, on as sanitizeRecoveryValue, ot as ProtectionFlipRegistry, pt as DELETION_PROTECTION_DOC_POINTER, q as compensateProtectionFlip, qt as isAuxiliaryMarkOf, r as removalWarning, s as CreatedResourceSink, sn as CUSTOM_RESOURCE_RESPONSE_PREFIX, st as isTerminalDeleteFailure, u as reportCreatedResource, ut as ElapsedBudget, vt as protectedReplacementAdvice, wt as startInterruptWatch, x as withUnchangedSecretPrincipalLists, z as quotedRemedyLogicalId, zt as withDerivedNameMasks } from "./update-removal-MnBAwEGA.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-B5fdSbyi.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$5, 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, 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-DywtM6vS.js";
|
|
12
|
+
import { C as unsettledItemsField, D as withUnsettledItems, E as unsettledPropertiesOf, O as withUnsettledProperties, S as unsettledContextOf, T as unsettledItemsTopKey, c as refuseRestoreFromItself, f as planTagDiff, g as tagPlanWarning, i as withResourceDeadline, k as withoutUnsettledProperties, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, r as whileEnclosingDeadlinesPaused, t as enclosingDeadlineExpired, w as unsettledItemsOf, x as isUsableAttemptedName, y as definedAttributes } from "./resource-deadline-C_l7cJ75.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, 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-iywep2CV.js").then((n) => n.n);
|
|
86
86
|
return (await client.send(new GetBucketLocationCommand({
|
|
87
87
|
Bucket: bucketName,
|
|
88
88
|
...await expectedOwnerParam(client)
|
|
@@ -8687,34 +8687,34 @@ function passedKey(passed) {
|
|
|
8687
8687
|
function isNestedStackRow(logicalId, walk) {
|
|
8688
8688
|
if (!Object.hasOwn(walk.resources, logicalId)) return false;
|
|
8689
8689
|
const definition = walk.resources[logicalId];
|
|
8690
|
-
return isPlainObject$
|
|
8690
|
+
return isPlainObject$9(definition) && definition["Type"] === "AWS::CloudFormation::Stack";
|
|
8691
8691
|
}
|
|
8692
8692
|
function getAttAttribute(operand, target) {
|
|
8693
8693
|
if (Array.isArray(operand)) return operand.length === 2 && typeof operand[1] === "string" ? operand[1] : void 0;
|
|
8694
8694
|
return typeof operand === "string" ? operand.slice(target.length + 1) : void 0;
|
|
8695
8695
|
}
|
|
8696
8696
|
function rowParameters(definition) {
|
|
8697
|
-
const properties = isPlainObject$
|
|
8697
|
+
const properties = isPlainObject$9(definition) ? definition["Properties"] : void 0;
|
|
8698
8698
|
if (properties === void 0) return {};
|
|
8699
|
-
if (!isPlainObject$
|
|
8699
|
+
if (!isPlainObject$9(properties)) return "unknown";
|
|
8700
8700
|
const parameters = properties["Parameters"];
|
|
8701
8701
|
if (parameters === void 0) return {};
|
|
8702
|
-
if (!isPlainObject$
|
|
8702
|
+
if (!isPlainObject$9(parameters) || intrinsicKey(parameters) !== void 0) return "unknown";
|
|
8703
8703
|
return parameters;
|
|
8704
8704
|
}
|
|
8705
8705
|
function childParameterInputs(template, passed) {
|
|
8706
|
-
const declared = isPlainObject$
|
|
8706
|
+
const declared = isPlainObject$9(template.Parameters) ? template.Parameters : {};
|
|
8707
8707
|
const inputs = /* @__PURE__ */ new Map();
|
|
8708
8708
|
for (const name of Object.keys(declared)) {
|
|
8709
8709
|
const definition = declared[name];
|
|
8710
|
-
if (isPlainObject$
|
|
8710
|
+
if (isPlainObject$9(definition) && declaresNoEcho(definition)) inputs.set(name, { kind: "secret" });
|
|
8711
8711
|
else if (passed.has(name)) {
|
|
8712
8712
|
const passedClass = passed.get(name);
|
|
8713
8713
|
inputs.set(name, passedClass === "clean" ? {
|
|
8714
8714
|
kind: "value",
|
|
8715
8715
|
value: void 0
|
|
8716
8716
|
} : passedClass === "unknown" ? { kind: "unknown" } : { kind: "secret" });
|
|
8717
|
-
} else if (isPlainObject$
|
|
8717
|
+
} else if (isPlainObject$9(definition) && Object.hasOwn(definition, "Default") && !carriesSecretValue(definition["Default"], [])) inputs.set(name, {
|
|
8718
8718
|
kind: "value",
|
|
8719
8719
|
value: definition["Default"]
|
|
8720
8720
|
});
|
|
@@ -8731,7 +8731,7 @@ function closureClass(closure) {
|
|
|
8731
8731
|
return closure.unread ? "unread" : "clean";
|
|
8732
8732
|
}
|
|
8733
8733
|
async function childOutputClass(loaded, outputName, passed, chain, shared) {
|
|
8734
|
-
if (loaded === void 0 || !isPlainObject$
|
|
8734
|
+
if (loaded === void 0 || !isPlainObject$9(loaded.template)) return "unknown";
|
|
8735
8735
|
const scopeKey = JSON.stringify([loaded.identity, passedKey(passed)]);
|
|
8736
8736
|
const memoKey = JSON.stringify([scopeKey, outputName]);
|
|
8737
8737
|
const memo = shared.outputs.get(memoKey);
|
|
@@ -8744,8 +8744,8 @@ async function classifyChildOutput(loaded, outputName, passed, chain, shared, sc
|
|
|
8744
8744
|
if (++shared.steps > MAX_NESTED_OUTPUT_STEPS) return "unknown";
|
|
8745
8745
|
if (chain.includes(loaded.identity) || chain.length >= MAX_NESTED_OUTPUT_DEPTH) return "unknown";
|
|
8746
8746
|
const template = loaded.template;
|
|
8747
|
-
const output = (isPlainObject$
|
|
8748
|
-
if (!isPlainObject$
|
|
8747
|
+
const output = (isPlainObject$9(template.Outputs) ? template.Outputs : {})[outputName];
|
|
8748
|
+
if (!isPlainObject$9(output) || !Object.hasOwn(output, "Value")) return "unknown";
|
|
8749
8749
|
const scope = {
|
|
8750
8750
|
walk: newWalk({
|
|
8751
8751
|
template,
|
|
@@ -8817,14 +8817,14 @@ async function expressionClass(value, scope) {
|
|
|
8817
8817
|
return result;
|
|
8818
8818
|
};
|
|
8819
8819
|
if (Array.isArray(value)) return all(value);
|
|
8820
|
-
if (!isPlainObject$
|
|
8820
|
+
if (!isPlainObject$9(value)) return "clean";
|
|
8821
8821
|
const key = intrinsicKey(value);
|
|
8822
8822
|
if (key === void 0) return all(Object.values(value));
|
|
8823
8823
|
const operand = value[key];
|
|
8824
8824
|
switch (key) {
|
|
8825
8825
|
case "Ref": return typeof operand === "string" ? nameClass(operand, scope) : "unknown";
|
|
8826
8826
|
case "Fn::GetAtt": {
|
|
8827
|
-
const target = getAttTarget(operand);
|
|
8827
|
+
const target = getAttTarget$1(operand);
|
|
8828
8828
|
if (target === void 0) return "secret";
|
|
8829
8829
|
const attribute = getAttAttribute(operand, target);
|
|
8830
8830
|
return worseOf(attribute === void 0 && Array.isArray(operand) ? await all(operand.slice(1)) : "clean", await attributeClass(target, attribute, scope));
|
|
@@ -8832,7 +8832,7 @@ async function expressionClass(value, scope) {
|
|
|
8832
8832
|
case "Fn::Sub": {
|
|
8833
8833
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
8834
8834
|
if (typeof text !== "string") return worseOf("unknown", await expressionClass(operand, scope));
|
|
8835
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
8835
|
+
const vars = Array.isArray(operand) && isPlainObject$9(operand[1]) ? operand[1] : {};
|
|
8836
8836
|
let result = text.includes("{{resolve:") ? "secret" : "clean";
|
|
8837
8837
|
result = worseOf(result, await all(Object.values(vars)));
|
|
8838
8838
|
for (const name of subPlaceholders(text)) {
|
|
@@ -8924,7 +8924,7 @@ async function classifyPassedParameters(parameters, sources) {
|
|
|
8924
8924
|
}
|
|
8925
8925
|
async function classifyPassed(parameters, sources, nested) {
|
|
8926
8926
|
const classes = /* @__PURE__ */ new Map();
|
|
8927
|
-
if (!isPlainObject$
|
|
8927
|
+
if (!isPlainObject$9(parameters)) return classes;
|
|
8928
8928
|
for (const [name, expression] of Object.entries(parameters)) {
|
|
8929
8929
|
let passedClass;
|
|
8930
8930
|
try {
|
|
@@ -8946,7 +8946,7 @@ function passedParameterClassesOf(bag) {
|
|
|
8946
8946
|
|
|
8947
8947
|
// src/deployment/masked-property-fingerprints/input-walk.ts
|
|
8948
8948
|
var UnknownInput = class extends Error {};
|
|
8949
|
-
function isPlainObject$
|
|
8949
|
+
function isPlainObject$9(value) {
|
|
8950
8950
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
8951
8951
|
}
|
|
8952
8952
|
const DYNAMIC_REFERENCE_OPEN = "{{resolve:";
|
|
@@ -8966,7 +8966,7 @@ function carriesSecretValue(value, corpora) {
|
|
|
8966
8966
|
return false;
|
|
8967
8967
|
}
|
|
8968
8968
|
function parameterInputsFor(args) {
|
|
8969
|
-
const declared = isPlainObject$
|
|
8969
|
+
const declared = isPlainObject$9(args.template.Parameters) ? args.template.Parameters : {};
|
|
8970
8970
|
const values = args.values ?? {};
|
|
8971
8971
|
const inputs = /* @__PURE__ */ new Map();
|
|
8972
8972
|
const bound = {};
|
|
@@ -8977,7 +8977,7 @@ function parameterInputsFor(args) {
|
|
|
8977
8977
|
continue;
|
|
8978
8978
|
}
|
|
8979
8979
|
const value = values[name];
|
|
8980
|
-
let secret = isPlainObject$
|
|
8980
|
+
let secret = isPlainObject$9(definition) && declaresNoEcho(definition) || carriesSecretValue(value, []);
|
|
8981
8981
|
if (!secret && args.nestedChild === true && args.supplied !== void 0) {
|
|
8982
8982
|
if (Object.hasOwn(args.supplied, name)) {
|
|
8983
8983
|
const passed = args.passedClasses?.get(name);
|
|
@@ -9037,10 +9037,10 @@ function intrinsicKey(value) {
|
|
|
9037
9037
|
const OPAQUE_ATTRIBUTE_TYPES = /* @__PURE__ */ new Set(["AWS::CloudFormation::CustomResource", NESTED_STACK_TYPE$5]);
|
|
9038
9038
|
function hasOpaqueAttributes(logicalId, walk) {
|
|
9039
9039
|
const definition = walk.resources[logicalId];
|
|
9040
|
-
const type = isPlainObject$
|
|
9040
|
+
const type = isPlainObject$9(definition) ? definition["Type"] : void 0;
|
|
9041
9041
|
return typeof type === "string" && (type.startsWith("Custom::") || OPAQUE_ATTRIBUTE_TYPES.has(type));
|
|
9042
9042
|
}
|
|
9043
|
-
function getAttTarget(operand) {
|
|
9043
|
+
function getAttTarget$1(operand) {
|
|
9044
9044
|
if (Array.isArray(operand) && typeof operand[0] === "string") return operand[0];
|
|
9045
9045
|
if (typeof operand === "string" && operand.includes(".")) return operand.split(".")[0];
|
|
9046
9046
|
}
|
|
@@ -9062,19 +9062,19 @@ function taintOf(logicalId, walk) {
|
|
|
9062
9062
|
const visit = (value) => {
|
|
9063
9063
|
if (typeof value === "string") return value.includes(DYNAMIC_REFERENCE_OPEN);
|
|
9064
9064
|
if (Array.isArray(value)) return value.some(visit);
|
|
9065
|
-
if (!isPlainObject$
|
|
9065
|
+
if (!isPlainObject$9(value)) return false;
|
|
9066
9066
|
const key = intrinsicKey(value);
|
|
9067
9067
|
const operand = key === void 0 ? void 0 : value[key];
|
|
9068
9068
|
let verdict = "clean";
|
|
9069
9069
|
if (key === "Ref" && typeof operand === "string") verdict = nameTaint(operand);
|
|
9070
9070
|
else if (key === "Fn::GetAtt") {
|
|
9071
|
-
const target = getAttTarget(operand);
|
|
9071
|
+
const target = getAttTarget$1(operand);
|
|
9072
9072
|
verdict = target === void 0 || Object.hasOwn(walk.resources, target) && hasOpaqueAttributes(target, walk) ? "tainted" : nameTaint(target);
|
|
9073
9073
|
} else if (key === "Fn::ImportValue" || key === "Fn::GetStackOutput") verdict = "tainted";
|
|
9074
9074
|
else if (key === "Fn::FindInMap" && mapReadClass(operand, walk.sources.template) !== "clean") verdict = "tainted";
|
|
9075
9075
|
else if (key === "Fn::Sub") {
|
|
9076
9076
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
9077
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
9077
|
+
const vars = Array.isArray(operand) && isPlainObject$9(operand[1]) ? operand[1] : {};
|
|
9078
9078
|
if (typeof text === "string") for (const name of subPlaceholders(text)) {
|
|
9079
9079
|
if (Object.hasOwn(vars, name)) continue;
|
|
9080
9080
|
const owner = name.includes(".") ? name.split(".")[0] : name;
|
|
@@ -9088,7 +9088,7 @@ function taintOf(logicalId, walk) {
|
|
|
9088
9088
|
return Object.values(value).some(visit);
|
|
9089
9089
|
};
|
|
9090
9090
|
const definition = walk.resources[logicalId];
|
|
9091
|
-
const result = visit(isPlainObject$
|
|
9091
|
+
const result = visit(isPlainObject$9(definition) ? definition["Properties"] : void 0) ? "tainted" : unknown ? "unknown" : "clean";
|
|
9092
9092
|
walk.inProgress.delete(logicalId);
|
|
9093
9093
|
walk.taint.set(logicalId, result);
|
|
9094
9094
|
return result;
|
|
@@ -9104,7 +9104,7 @@ function conditionInput(name, walk) {
|
|
|
9104
9104
|
return typeof verdict === "boolean" ? verdict : "unknown";
|
|
9105
9105
|
}
|
|
9106
9106
|
function conditionClosure(name, walk) {
|
|
9107
|
-
const definitions = isPlainObject$
|
|
9107
|
+
const definitions = isPlainObject$9(walk.sources.template.Conditions) ? walk.sources.template.Conditions : {};
|
|
9108
9108
|
let secret = false;
|
|
9109
9109
|
let unknown = false;
|
|
9110
9110
|
let unread = false;
|
|
@@ -9119,7 +9119,7 @@ function conditionClosure(name, walk) {
|
|
|
9119
9119
|
value.forEach(visit);
|
|
9120
9120
|
return;
|
|
9121
9121
|
}
|
|
9122
|
-
if (!isPlainObject$
|
|
9122
|
+
if (!isPlainObject$9(value)) return;
|
|
9123
9123
|
const keys = Object.keys(value);
|
|
9124
9124
|
if (keys.length === 1 && keys[0] === "Condition" && typeof value["Condition"] === "string") {
|
|
9125
9125
|
pending.push(value["Condition"]);
|
|
@@ -9152,7 +9152,7 @@ function conditionClosure(name, walk) {
|
|
|
9152
9152
|
if (key === "Fn::Sub") {
|
|
9153
9153
|
const operand = value["Fn::Sub"];
|
|
9154
9154
|
const text = Array.isArray(operand) ? operand[0] : operand;
|
|
9155
|
-
const vars = Array.isArray(operand) && isPlainObject$
|
|
9155
|
+
const vars = Array.isArray(operand) && isPlainObject$9(operand[1]) ? operand[1] : {};
|
|
9156
9156
|
if (typeof text === "string") for (const name of subPlaceholders(text)) {
|
|
9157
9157
|
if (Object.hasOwn(vars, name)) continue;
|
|
9158
9158
|
if (name.includes(".") && !name.startsWith("AWS::")) secret = true;
|
|
@@ -9181,8 +9181,8 @@ function mapReadClass(operand, template) {
|
|
|
9181
9181
|
const mapName = Array.isArray(operand) ? operand[0] : void 0;
|
|
9182
9182
|
if (typeof mapName !== "string") return "unknown";
|
|
9183
9183
|
const mappings = template.Mappings;
|
|
9184
|
-
const map = isPlainObject$
|
|
9185
|
-
if (!isPlainObject$
|
|
9184
|
+
const map = isPlainObject$9(mappings) && Object.hasOwn(mappings, mapName) ? mappings[mapName] : void 0;
|
|
9185
|
+
if (!isPlainObject$9(map)) return "unknown";
|
|
9186
9186
|
return carriesSecretValue(map, []) ? "secret" : "clean";
|
|
9187
9187
|
}
|
|
9188
9188
|
async function resolvedInput(node, walk) {
|
|
@@ -9260,7 +9260,7 @@ async function inputForm(value, walk) {
|
|
|
9260
9260
|
...proof(walk, () => parts.every(isProven))
|
|
9261
9261
|
};
|
|
9262
9262
|
}
|
|
9263
|
-
if (!isPlainObject$
|
|
9263
|
+
if (!isPlainObject$9(value)) return {
|
|
9264
9264
|
form: value,
|
|
9265
9265
|
concrete: true
|
|
9266
9266
|
};
|
|
@@ -9281,7 +9281,7 @@ async function inputForm(value, walk) {
|
|
|
9281
9281
|
concrete: false
|
|
9282
9282
|
};
|
|
9283
9283
|
case "Fn::GetAtt": {
|
|
9284
|
-
const target = getAttTarget(operand);
|
|
9284
|
+
const target = getAttTarget$1(operand);
|
|
9285
9285
|
if (target !== void 0 && isNestedStackRow(target, walk)) return nestedOutputInput(target, getAttAttribute(operand, target), value, walk);
|
|
9286
9286
|
if (target === void 0 || !Object.hasOwn(walk.resources, target) || hasOpaqueAttributes(target, walk)) return {
|
|
9287
9287
|
form: value,
|
|
@@ -9324,7 +9324,7 @@ async function inputForm(value, walk) {
|
|
|
9324
9324
|
concrete: false
|
|
9325
9325
|
};
|
|
9326
9326
|
}
|
|
9327
|
-
const explicit = Array.isArray(operand) && isPlainObject$
|
|
9327
|
+
const explicit = Array.isArray(operand) && isPlainObject$9(operand[1]) ? operand[1] : {};
|
|
9328
9328
|
const vars = await inputForm(explicit, walk);
|
|
9329
9329
|
const placeholders = [];
|
|
9330
9330
|
let concrete = vars.concrete && !text.includes("{{resolve:");
|
|
@@ -9382,8 +9382,8 @@ function newWalk(sources, nested = {
|
|
|
9382
9382
|
return {
|
|
9383
9383
|
...covered !== void 0 && { covered },
|
|
9384
9384
|
sources,
|
|
9385
|
-
resources: isPlainObject$
|
|
9386
|
-
parameters: isPlainObject$
|
|
9385
|
+
resources: isPlainObject$9(sources.template.Resources) ? sources.template.Resources : {},
|
|
9386
|
+
parameters: isPlainObject$9(sources.template.Parameters) ? sources.template.Parameters : {},
|
|
9387
9387
|
taint: /* @__PURE__ */ new Map(),
|
|
9388
9388
|
inProgress: /* @__PURE__ */ new Set(),
|
|
9389
9389
|
stackChain: nested.stackChain,
|
|
@@ -9419,7 +9419,7 @@ function possiblyMaskedKeys(resolvedProps, corpora) {
|
|
|
9419
9419
|
const wholeShortLeaf = (value) => {
|
|
9420
9420
|
if (typeof value === "string") return short.includes(value);
|
|
9421
9421
|
if (Array.isArray(value)) return value.some(wholeShortLeaf);
|
|
9422
|
-
if (isPlainObject$
|
|
9422
|
+
if (isPlainObject$9(value)) return Object.values(value).some(wholeShortLeaf);
|
|
9423
9423
|
return false;
|
|
9424
9424
|
};
|
|
9425
9425
|
return Object.keys(resolvedProps).filter((key) => {
|
|
@@ -9450,7 +9450,7 @@ function maskedPropertyFingerprintsOf(record) {
|
|
|
9450
9450
|
const read = /* @__PURE__ */ new Map();
|
|
9451
9451
|
if (record === null || typeof record !== "object") return read;
|
|
9452
9452
|
const field = record.maskedPropertyFingerprints;
|
|
9453
|
-
if (!isPlainObject$
|
|
9453
|
+
if (!isPlainObject$9(field)) return read;
|
|
9454
9454
|
for (const [key, value] of Object.entries(field)) if (typeof value === "string" && value.startsWith("sha256:")) read.set(key, value);
|
|
9455
9455
|
return read;
|
|
9456
9456
|
}
|
|
@@ -9458,7 +9458,7 @@ function maskedPropertyInputFingerprintsOf(record) {
|
|
|
9458
9458
|
const read = /* @__PURE__ */ new Map();
|
|
9459
9459
|
if (record === null || typeof record !== "object") return read;
|
|
9460
9460
|
const field = record.maskedPropertyInputFingerprints;
|
|
9461
|
-
if (!isPlainObject$
|
|
9461
|
+
if (!isPlainObject$9(field)) return read;
|
|
9462
9462
|
const text = maskedPropertyFingerprintsOf(record);
|
|
9463
9463
|
for (const [key, value] of Object.entries(field)) {
|
|
9464
9464
|
if (typeof value !== "string" || !value.startsWith("inputs-sha256:")) continue;
|
|
@@ -9505,7 +9505,7 @@ async function movedMaskedProperties(record, templateProps, fingerprinter, onReb
|
|
|
9505
9505
|
function withRebaselinedFingerprints(record, fingerprints) {
|
|
9506
9506
|
const text = maskedPropertyFingerprintsOf(record);
|
|
9507
9507
|
const field = record.maskedPropertyInputFingerprints;
|
|
9508
|
-
const next = isPlainObject$
|
|
9508
|
+
const next = isPlainObject$9(field) ? Object.entries(field) : [];
|
|
9509
9509
|
let changed = false;
|
|
9510
9510
|
for (const [key, value] of Object.entries(fingerprints)) {
|
|
9511
9511
|
if (text.get(key) !== splitInputFingerprint(value).text) continue;
|
|
@@ -9538,10 +9538,10 @@ function withMaskedPropertyFingerprints(scrubbed, writtenBag, templateProps, sec
|
|
|
9538
9538
|
fingerprints = maskedPropertyFingerprintsFor(scrubbed.properties, templateProps);
|
|
9539
9539
|
inputs = boundInputFingerprints(fingerprints, inputFingerprints);
|
|
9540
9540
|
} else {
|
|
9541
|
-
if (!isPlainObject$
|
|
9541
|
+
if (!isPlainObject$9(previous)) return scrubbed;
|
|
9542
9542
|
if (corpora.length === 0) return scrubbed;
|
|
9543
9543
|
fingerprints = { ...previous };
|
|
9544
|
-
inputs = isPlainObject$
|
|
9544
|
+
inputs = isPlainObject$9(previousInputs) ? { ...previousInputs } : void 0;
|
|
9545
9545
|
}
|
|
9546
9546
|
if (fingerprints !== void 0 && corpora.length > 0) {
|
|
9547
9547
|
const refused = Object.keys(fingerprints).filter((key) => Object.hasOwn(templateProps, key) && corpora.some((corpus) => templateCarriesNeedle(templateProps[key], corpus)));
|
|
@@ -11629,11 +11629,11 @@ function validReferenceRegion(region) {
|
|
|
11629
11629
|
if (typeof region !== "string") return void 0;
|
|
11630
11630
|
return canonicalizeRegion(region) === region && isClientSafeRegion(region) ? region : void 0;
|
|
11631
11631
|
}
|
|
11632
|
-
function isPlainObject$
|
|
11632
|
+
function isPlainObject$8(value) {
|
|
11633
11633
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
11634
11634
|
}
|
|
11635
11635
|
function validateReferenceProvenance(token, raw) {
|
|
11636
|
-
if (!isSingleDynamicReferenceToken(token) || !isPlainObject$
|
|
11636
|
+
if (!isSingleDynamicReferenceToken(token) || !isPlainObject$8(raw)) return void 0;
|
|
11637
11637
|
const versionsRaw = Object.hasOwn(raw, "versions") ? raw["versions"] : void 0;
|
|
11638
11638
|
const readRaw = Object.hasOwn(raw, "readVersions") ? raw["readVersions"] : void 0;
|
|
11639
11639
|
if (readRaw !== void 0) {
|
|
@@ -11651,11 +11651,11 @@ function validateReferenceProvenance(token, raw) {
|
|
|
11651
11651
|
return out;
|
|
11652
11652
|
}
|
|
11653
11653
|
function referenceProvenanceOf(record) {
|
|
11654
|
-
if (!isPlainObject$
|
|
11654
|
+
if (!isPlainObject$8(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
|
|
11655
11655
|
return validatedBag(record["referenceProvenance"]);
|
|
11656
11656
|
}
|
|
11657
11657
|
function validatedBag(field) {
|
|
11658
|
-
if (!isPlainObject$
|
|
11658
|
+
if (!isPlainObject$8(field)) return void 0;
|
|
11659
11659
|
const out = Object.create(null);
|
|
11660
11660
|
for (const [token, raw] of Object.entries(field)) {
|
|
11661
11661
|
const entry = validateReferenceProvenance(token, raw);
|
|
@@ -11664,9 +11664,9 @@ function validatedBag(field) {
|
|
|
11664
11664
|
return { ...out };
|
|
11665
11665
|
}
|
|
11666
11666
|
function recordedProvenanceOf(record, token) {
|
|
11667
|
-
if (!isPlainObject$
|
|
11667
|
+
if (!isPlainObject$8(record) || !Object.hasOwn(record, "referenceProvenance")) return void 0;
|
|
11668
11668
|
const field = record["referenceProvenance"];
|
|
11669
|
-
if (!isPlainObject$
|
|
11669
|
+
if (!isPlainObject$8(field) || !Object.hasOwn(field, token)) return void 0;
|
|
11670
11670
|
return validateReferenceProvenance(token, field[token]);
|
|
11671
11671
|
}
|
|
11672
11672
|
function recordedReferenceRegions(record) {
|
|
@@ -11688,7 +11688,7 @@ function regionsOf(field) {
|
|
|
11688
11688
|
function keepHeldTokenProvenance(record) {
|
|
11689
11689
|
if (!hasReferenceProvenanceField(record)) return record;
|
|
11690
11690
|
const field = record.referenceProvenance;
|
|
11691
|
-
if (!isPlainObject$
|
|
11691
|
+
if (!isPlainObject$8(field)) return record;
|
|
11692
11692
|
const held = recordReferenceTokens(record);
|
|
11693
11693
|
const keys = Object.keys(field);
|
|
11694
11694
|
if (keys.every((token) => held.has(token))) return record;
|
|
@@ -11700,12 +11700,12 @@ function keepHeldTokenProvenance(record) {
|
|
|
11700
11700
|
};
|
|
11701
11701
|
}
|
|
11702
11702
|
function hasReferenceProvenanceField(record) {
|
|
11703
|
-
return isPlainObject$
|
|
11703
|
+
return isPlainObject$8(record) && Object.hasOwn(record, "referenceProvenance") && record["referenceProvenance"] !== void 0;
|
|
11704
11704
|
}
|
|
11705
11705
|
function outputReferenceProvenanceOf(state, outputKey) {
|
|
11706
|
-
if (!isPlainObject$
|
|
11706
|
+
if (!isPlainObject$8(state) || !Object.hasOwn(state, "outputReferenceProvenance")) return;
|
|
11707
11707
|
const field = state["outputReferenceProvenance"];
|
|
11708
|
-
if (!isPlainObject$
|
|
11708
|
+
if (!isPlainObject$8(field) || !Object.hasOwn(field, outputKey)) return void 0;
|
|
11709
11709
|
return validatedBag(field[outputKey]);
|
|
11710
11710
|
}
|
|
11711
11711
|
function persistable(token, entry) {
|
|
@@ -11723,7 +11723,7 @@ function tokensUnderPaths(properties, paths) {
|
|
|
11723
11723
|
for (const item of value) descend(item, path, next);
|
|
11724
11724
|
return;
|
|
11725
11725
|
}
|
|
11726
|
-
if (isPlainObject$
|
|
11726
|
+
if (isPlainObject$8(value) && Object.hasOwn(value, path[at])) descend(value[path[at]], path, at + 1);
|
|
11727
11727
|
};
|
|
11728
11728
|
for (const path of paths) descend(properties, path, 0);
|
|
11729
11729
|
return out;
|
|
@@ -11766,7 +11766,7 @@ function unionWithPrevious(pass, before) {
|
|
|
11766
11766
|
}
|
|
11767
11767
|
function outputProvenanceForPersist(args) {
|
|
11768
11768
|
const { outputs, resolvedThisRun, carriedFrom, sinkOf } = args;
|
|
11769
|
-
if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$
|
|
11769
|
+
if (!resolvedThisRun) return carriedFrom !== void 0 && isPlainObject$8(carriedFrom.outputReferenceProvenance) ? carriedFrom.outputReferenceProvenance : void 0;
|
|
11770
11770
|
let out;
|
|
11771
11771
|
for (const [outputKey, value] of Object.entries(outputs)) {
|
|
11772
11772
|
const sink = sinkOf(outputKey);
|
|
@@ -12560,6 +12560,10 @@ const FLAT_OBJECT_MEMBERS = {
|
|
|
12560
12560
|
"AWS::RDS::DBCluster": {
|
|
12561
12561
|
Endpoint: { required: ["Address", "Port"] },
|
|
12562
12562
|
ReadEndpoint: { required: ["Address"] }
|
|
12563
|
+
},
|
|
12564
|
+
"AWS::ElastiCache::CacheCluster": {
|
|
12565
|
+
RedisEndpoint: { required: ["Address", "Port"] },
|
|
12566
|
+
ConfigurationEndpoint: { required: ["Address", "Port"] }
|
|
12563
12567
|
}
|
|
12564
12568
|
};
|
|
12565
12569
|
function shapeOf(resourceType, attributeName) {
|
|
@@ -12796,6 +12800,22 @@ function guardedPhysicalIdFallback(resolver, logicalId, attributeName, resourceT
|
|
|
12796
12800
|
resolver.logger.warn(`Unknown attribute ${displayMasked(resolver, attributeName, context)} for resource type ${loggedType}, returning physical ID${withheld}`);
|
|
12797
12801
|
return physicalId;
|
|
12798
12802
|
}
|
|
12803
|
+
function endpointTheEngineLacks(resource, attributeName) {
|
|
12804
|
+
if (resource.resourceType !== "AWS::ElastiCache::CacheCluster") return void 0;
|
|
12805
|
+
const engine = resource.properties?.["Engine"];
|
|
12806
|
+
if (typeof engine !== "string") return void 0;
|
|
12807
|
+
const top = attributeName.split(".")[0];
|
|
12808
|
+
const isMemcached = engine.toLowerCase() === "memcached";
|
|
12809
|
+
if (top === "RedisEndpoint" && isMemcached) return "RedisEndpoint";
|
|
12810
|
+
if (top === "ConfigurationEndpoint" && !isMemcached) return "ConfigurationEndpoint";
|
|
12811
|
+
}
|
|
12812
|
+
function refuseEndpointTheEngineLacks(resolver, resource, logicalId, attributeName, context) {
|
|
12813
|
+
const lacking = endpointTheEngineLacks(resource, attributeName);
|
|
12814
|
+
if (lacking === void 0) return;
|
|
12815
|
+
const engine = String(resource.properties?.["Engine"]);
|
|
12816
|
+
const other = lacking === "RedisEndpoint" ? "ConfigurationEndpoint" : "RedisEndpoint";
|
|
12817
|
+
throw markNonRetryable(new IntrinsicResolutionRefusalError(`Cannot resolve Fn::GetAtt [${displayMasked(resolver, logicalId, context)}, ${displayMasked(resolver, attributeName, context)}]: the cache cluster's engine is ${displayMasked(resolver, engine, context)}, which has no ${lacking}. CloudFormation answers an empty Address and Port for it; cdkd refuses instead of passing an empty endpoint on. Reference ${other} instead.`));
|
|
12818
|
+
}
|
|
12799
12819
|
|
|
12800
12820
|
// src/deployment/intrinsic-resolver/getatt-construct-core.ts
|
|
12801
12821
|
const NOT_CONSTRUCTED = Symbol("NOT_CONSTRUCTED");
|
|
@@ -14727,6 +14747,23 @@ async function constructAttributeForAppTypes(resolver, resource, attributeName,
|
|
|
14727
14747
|
why: "its ARN carries a group id cdkd cannot build from the group name"
|
|
14728
14748
|
});
|
|
14729
14749
|
}
|
|
14750
|
+
if (resourceType === "AWS::ElastiCache::CacheCluster") switch (attributeName) {
|
|
14751
|
+
case "RedisEndpoint":
|
|
14752
|
+
case "RedisEndpoint.Address":
|
|
14753
|
+
case "RedisEndpoint.Port":
|
|
14754
|
+
case "ConfigurationEndpoint":
|
|
14755
|
+
case "ConfigurationEndpoint.Address":
|
|
14756
|
+
case "ConfigurationEndpoint.Port":
|
|
14757
|
+
healBeforeConstructing(resolver, context);
|
|
14758
|
+
refuseUnconstructibleAttribute(resolver, {
|
|
14759
|
+
logicalId,
|
|
14760
|
+
attributeName,
|
|
14761
|
+
resourceType,
|
|
14762
|
+
context,
|
|
14763
|
+
why: "cdkd cannot build it from the cache cluster id",
|
|
14764
|
+
remedyWhenHealCompleted: "ElastiCache does not report it for the cluster yet (it may still be creating): deploy again once the cluster is available."
|
|
14765
|
+
});
|
|
14766
|
+
}
|
|
14730
14767
|
if (resourceType === "AWS::RDS::DBInstance" || resourceType === "AWS::DocDB::DBInstance" || resourceType === "AWS::Neptune::DBInstance") {
|
|
14731
14768
|
switch (attributeName) {
|
|
14732
14769
|
case "DBInstanceArn":
|
|
@@ -16095,6 +16132,7 @@ async function resolveGetAtt(resolver, getAtt, context) {
|
|
|
16095
16132
|
const resource = lookupResourceRecord(resolver, logicalId, "Fn::GetAtt", context);
|
|
16096
16133
|
if (!resource) throw markNonRetryable(/* @__PURE__ */ new Error(`Resource ${displayMasked(resolver, logicalId, context)} not found for Fn::GetAtt`));
|
|
16097
16134
|
recordSecretNamedRead(logicalId, void 0, context);
|
|
16135
|
+
refuseEndpointTheEngineLacks(resolver, resource, logicalId, attributeName, context);
|
|
16098
16136
|
if (!isAlwaysLiveAttribute(resource.resourceType, attributeName) && resource.attributes !== void 0) {
|
|
16099
16137
|
const storedValue = Object.hasOwn(resource.attributes, attributeName) ? resource.attributes[attributeName] : assembleFlatObjectAttribute(resource.resourceType, attributeName, resource.attributes);
|
|
16100
16138
|
const flatValue = isImpossibleEmptyStoredAttribute(resource.resourceType, attributeName, storedValue) ? void 0 : storedValue;
|
|
@@ -17712,7 +17750,7 @@ function apiGatewayV2DefinitionObject(location) {
|
|
|
17712
17750
|
}
|
|
17713
17751
|
|
|
17714
17752
|
// src/provisioning/cc-nested-create-only-patch.ts
|
|
17715
|
-
function isPlainObject$
|
|
17753
|
+
function isPlainObject$7(value) {
|
|
17716
17754
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
17717
17755
|
}
|
|
17718
17756
|
function topLevelKeyOf(op) {
|
|
@@ -17722,14 +17760,14 @@ function topLevelKeyOf(op) {
|
|
|
17722
17760
|
return pointer.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
17723
17761
|
}
|
|
17724
17762
|
function writesTopLevelObject(patch) {
|
|
17725
|
-
return patch.some((op) => topLevelKeyOf(op) !== void 0 && isPlainObject$
|
|
17763
|
+
return patch.some((op) => topLevelKeyOf(op) !== void 0 && isPlainObject$7(op.value));
|
|
17726
17764
|
}
|
|
17727
17765
|
function omitsThroughObjects(root, path) {
|
|
17728
17766
|
let node = root;
|
|
17729
17767
|
for (const segment of path) {
|
|
17730
17768
|
if (!Object.hasOwn(node, segment)) return true;
|
|
17731
17769
|
const next = node[segment];
|
|
17732
|
-
if (!isPlainObject$
|
|
17770
|
+
if (!isPlainObject$7(next)) return false;
|
|
17733
17771
|
node = next;
|
|
17734
17772
|
}
|
|
17735
17773
|
return false;
|
|
@@ -17737,7 +17775,7 @@ function omitsThroughObjects(root, path) {
|
|
|
17737
17775
|
function valueAt(root, path) {
|
|
17738
17776
|
let node = root;
|
|
17739
17777
|
for (const segment of path) {
|
|
17740
|
-
if (!isPlainObject$
|
|
17778
|
+
if (!isPlainObject$7(node) || !Object.hasOwn(node, segment)) return void 0;
|
|
17741
17779
|
node = node[segment];
|
|
17742
17780
|
}
|
|
17743
17781
|
return node;
|
|
@@ -17746,7 +17784,7 @@ function nestedCreateOnlyGaps(patch, createOnlyPaths) {
|
|
|
17746
17784
|
const gaps = [];
|
|
17747
17785
|
for (const op of patch) {
|
|
17748
17786
|
const key = topLevelKeyOf(op);
|
|
17749
|
-
if (key === void 0 || !isPlainObject$
|
|
17787
|
+
if (key === void 0 || !isPlainObject$7(op.value)) continue;
|
|
17750
17788
|
for (const path of createOnlyPaths) {
|
|
17751
17789
|
if (path.length < 2 || path[0] !== key) continue;
|
|
17752
17790
|
if (omitsThroughObjects(op.value, path.slice(1))) gaps.push([...path]);
|
|
@@ -17757,7 +17795,7 @@ function nestedCreateOnlyGaps(patch, createOnlyPaths) {
|
|
|
17757
17795
|
function withCarriedCreateOnlyMembers(patch, gaps, liveModel) {
|
|
17758
17796
|
return patch.map((op) => {
|
|
17759
17797
|
const key = topLevelKeyOf(op);
|
|
17760
|
-
if (key === void 0 || !isPlainObject$
|
|
17798
|
+
if (key === void 0 || !isPlainObject$7(op.value)) return op;
|
|
17761
17799
|
let value;
|
|
17762
17800
|
for (const path of gaps) {
|
|
17763
17801
|
if (path[0] !== key) continue;
|
|
@@ -17767,7 +17805,7 @@ function withCarriedCreateOnlyMembers(patch, gaps, liveModel) {
|
|
|
17767
17805
|
const rest = path.slice(1);
|
|
17768
17806
|
let parent = value;
|
|
17769
17807
|
for (const segment of rest.slice(0, -1)) {
|
|
17770
|
-
if (!isPlainObject$
|
|
17808
|
+
if (!isPlainObject$7(parent[segment])) parent[segment] = {};
|
|
17771
17809
|
parent = parent[segment];
|
|
17772
17810
|
}
|
|
17773
17811
|
parent[rest[rest.length - 1]] = live;
|
|
@@ -18934,7 +18972,7 @@ async function deleteInIdLogScope(logicalId, physicalId, resourceType, propertie
|
|
|
18934
18972
|
const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
|
|
18935
18973
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
18936
18974
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
18937
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
18975
|
+
const { ASGProvider } = await import("./asg-provider-Cvt28cjZ.js");
|
|
18938
18976
|
const delegateRegion = ambientRegion();
|
|
18939
18977
|
let asgProvider = this.asgDeleteDelegates.get(delegateRegion);
|
|
18940
18978
|
if (asgProvider === void 0) {
|
|
@@ -19088,7 +19126,7 @@ async function sdkDeleteDelegateInCcRegion(resourceType, logicalId, physicalId)
|
|
|
19088
19126
|
const family = SDK_DELETE_FAMILIES.get(resourceType);
|
|
19089
19127
|
const cached = this.sdkDeleteDelegates.get(family);
|
|
19090
19128
|
if (cached !== void 0 && cached.region === ccRegion) return cached.provider;
|
|
19091
|
-
const provider = family === "rds" ? new (await (import("./rds-provider-
|
|
19129
|
+
const provider = family === "rds" ? new (await (import("./rds-provider-BWOEzXOQ.js"))).RDSProvider({ region: ccRegion }) : new (await (import("./neptune-provider-BkaMldJg.js"))).NeptuneProvider({ region: ccRegion });
|
|
19092
19130
|
this.sdkDeleteDelegates.set(family, {
|
|
19093
19131
|
region: ccRegion,
|
|
19094
19132
|
provider
|
|
@@ -20682,7 +20720,7 @@ async function create$1(logicalId, resourceType, properties, context) {
|
|
|
20682
20720
|
ResourceType: resourceType,
|
|
20683
20721
|
LogicalResourceId: logicalId,
|
|
20684
20722
|
StackId: invocation.stackId,
|
|
20685
|
-
ResourceProperties: this.stringifyProperties(properties)
|
|
20723
|
+
ResourceProperties: this.stringifyProperties(properties, context?.typedPayloadLeaves)
|
|
20686
20724
|
}), maskerOrIdentity(context?.maskSecrets), { properties });
|
|
20687
20725
|
if (cfnResponse.Status === "FAILED") throw new Error(`Custom resource handler returned FAILED: ${cfnResponse.Reason || "Unknown reason"}`);
|
|
20688
20726
|
const physicalId = respondedPhysicalId(cfnResponse) ?? logicalId;
|
|
@@ -20715,8 +20753,8 @@ async function update$1(logicalId, physicalId, resourceType, properties, previou
|
|
|
20715
20753
|
LogicalResourceId: logicalId,
|
|
20716
20754
|
PhysicalResourceId: physicalId,
|
|
20717
20755
|
StackId: invocation.stackId,
|
|
20718
|
-
ResourceProperties: this.stringifyProperties(properties),
|
|
20719
|
-
OldResourceProperties: this.stringifyProperties(previousProperties)
|
|
20756
|
+
ResourceProperties: this.stringifyProperties(properties, context?.typedPayloadLeaves),
|
|
20757
|
+
OldResourceProperties: this.stringifyProperties(previousProperties, context?.previousTypedPayloadLeaves)
|
|
20720
20758
|
}), maskerOrIdentity(context?.maskSecrets), {
|
|
20721
20759
|
properties,
|
|
20722
20760
|
previousProperties
|
|
@@ -21222,7 +21260,7 @@ async function deleteImpl(logicalId, physicalId, resourceType, properties, conte
|
|
|
21222
21260
|
LogicalResourceId: logicalId,
|
|
21223
21261
|
PhysicalResourceId: physicalId,
|
|
21224
21262
|
StackId: invocation.stackId,
|
|
21225
|
-
ResourceProperties: this.stringifyProperties(payload)
|
|
21263
|
+
ResourceProperties: this.stringifyProperties(payload, context?.recordedTypedPayloadLeaves)
|
|
21226
21264
|
}), deleteMask);
|
|
21227
21265
|
if (cfnResponse.Status === "FAILED") {
|
|
21228
21266
|
this.logger.warn(show(`Custom resource delete handler returned FAILED for ${logicalId}: ${cfnResponse.Reason || "Unknown reason"}. The handler reported that it did NOT delete, so anything this custom resource manages is LEFT IN PLACE${handlerSkipRemedy(context, logicalId)}`));
|
|
@@ -21756,7 +21794,7 @@ async function publishToSns(topicArn, request) {
|
|
|
21756
21794
|
}
|
|
21757
21795
|
async function invokeLambda(serviceToken, request) {
|
|
21758
21796
|
if (localCustomResourceRuntimeActive()) {
|
|
21759
|
-
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-
|
|
21797
|
+
const { invokeCustomResourceFunctionLocally } = await import("./custom-resource-runtime-q-XZhmNY.js");
|
|
21760
21798
|
const local = await invokeCustomResourceFunctionLocally({
|
|
21761
21799
|
lambda: this.lambdaClient,
|
|
21762
21800
|
s3: this.s3Client
|
|
@@ -21772,6 +21810,167 @@ async function invokeLambda(serviceToken, request) {
|
|
|
21772
21810
|
}));
|
|
21773
21811
|
}
|
|
21774
21812
|
|
|
21813
|
+
// src/provisioning/custom-resource-payload-types.ts
|
|
21814
|
+
function isPlainObject$6(value) {
|
|
21815
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
21816
|
+
}
|
|
21817
|
+
function intrinsicKeyOf(node) {
|
|
21818
|
+
const keys = Object.keys(node);
|
|
21819
|
+
if (keys.length !== 1) return void 0;
|
|
21820
|
+
const key = keys[0];
|
|
21821
|
+
return key === "Ref" || key.startsWith("Fn::") ? key : void 0;
|
|
21822
|
+
}
|
|
21823
|
+
function literalIndex(index) {
|
|
21824
|
+
if (typeof index === "number" && Number.isInteger(index)) return index;
|
|
21825
|
+
if (typeof index === "string" && /^\d+$/.test(index)) return Number(index);
|
|
21826
|
+
}
|
|
21827
|
+
function isNoValue$1(node) {
|
|
21828
|
+
return isPlainObject$6(node) && intrinsicKeyOf(node) === "Ref" && node["Ref"] === "AWS::NoValue";
|
|
21829
|
+
}
|
|
21830
|
+
function servesScalarAttributesAsStrings(resourceType) {
|
|
21831
|
+
return resourceType !== void 0 && (resourceType.startsWith("Custom::") || resourceType === "AWS::CloudFormation::CustomResource" || resourceType === "AWS::CloudFormation::Stack");
|
|
21832
|
+
}
|
|
21833
|
+
function getAttTarget(argument) {
|
|
21834
|
+
if (typeof argument === "string") {
|
|
21835
|
+
const dot = argument.indexOf(".");
|
|
21836
|
+
return dot > 0 ? argument.slice(0, dot) : void 0;
|
|
21837
|
+
}
|
|
21838
|
+
if (Array.isArray(argument) && typeof argument[0] === "string") return argument[0];
|
|
21839
|
+
}
|
|
21840
|
+
function holdsNonString(value) {
|
|
21841
|
+
if (typeof value === "number" || typeof value === "boolean") return true;
|
|
21842
|
+
if (Array.isArray(value)) return value.some(holdsNonString);
|
|
21843
|
+
if (isPlainObject$6(value)) return Object.values(value).some(holdsNonString);
|
|
21844
|
+
return false;
|
|
21845
|
+
}
|
|
21846
|
+
function typedPayloadLeavesOf(template, resolved, sources) {
|
|
21847
|
+
const coordinates = [];
|
|
21848
|
+
const ancestors = /* @__PURE__ */ new Set();
|
|
21849
|
+
const push = (path, value) => {
|
|
21850
|
+
if (holdsNonString(value)) coordinates.push(path);
|
|
21851
|
+
};
|
|
21852
|
+
const pushGetAtt = (node, value, path) => {
|
|
21853
|
+
const target = getAttTarget(node["Fn::GetAtt"]);
|
|
21854
|
+
if ((value === null || typeof value !== "object") && servesScalarAttributesAsStrings(target && sources.resourceTypeOf(target))) return;
|
|
21855
|
+
push(path, value);
|
|
21856
|
+
};
|
|
21857
|
+
const walk = (source, value, path) => {
|
|
21858
|
+
if (value === void 0) return;
|
|
21859
|
+
if (source === null || typeof source !== "object") return;
|
|
21860
|
+
if (ancestors.has(source)) return;
|
|
21861
|
+
ancestors.add(source);
|
|
21862
|
+
try {
|
|
21863
|
+
if (Array.isArray(source)) {
|
|
21864
|
+
const kept = source.filter((item) => !isNoValue$1(item));
|
|
21865
|
+
if (Array.isArray(value) && value.length === kept.length) kept.forEach((item, index) => walk(item, value[index], [...path, index]));
|
|
21866
|
+
return;
|
|
21867
|
+
}
|
|
21868
|
+
const record = source;
|
|
21869
|
+
const intrinsic = intrinsicKeyOf(record);
|
|
21870
|
+
if (intrinsic === void 0) {
|
|
21871
|
+
if (!isPlainObject$6(value)) return;
|
|
21872
|
+
for (const [key, child] of Object.entries(record)) if (Object.hasOwn(value, key)) walk(child, value[key], [...path, key]);
|
|
21873
|
+
return;
|
|
21874
|
+
}
|
|
21875
|
+
if (intrinsic === "Fn::GetAtt") {
|
|
21876
|
+
pushGetAtt(record, value, path);
|
|
21877
|
+
return;
|
|
21878
|
+
}
|
|
21879
|
+
if (intrinsic === "Fn::If") {
|
|
21880
|
+
const argument = record["Fn::If"];
|
|
21881
|
+
if (Array.isArray(argument) && argument.length === 3 && typeof argument[0] === "string") {
|
|
21882
|
+
const conditions = sources.conditions;
|
|
21883
|
+
if (conditions !== void 0 && Object.hasOwn(conditions, argument[0])) walk(conditions[argument[0]] ? argument[1] : argument[2], value, path);
|
|
21884
|
+
}
|
|
21885
|
+
return;
|
|
21886
|
+
}
|
|
21887
|
+
if (intrinsic === "Fn::Select") {
|
|
21888
|
+
const argument = record["Fn::Select"];
|
|
21889
|
+
if (Array.isArray(argument) && argument.length === 2) {
|
|
21890
|
+
const index = literalIndex(argument[0]);
|
|
21891
|
+
const list = argument[1];
|
|
21892
|
+
if (index !== void 0 && Array.isArray(list) && index < list.length) walk(list[index], value, path);
|
|
21893
|
+
else if (isPlainObject$6(list) && intrinsicKeyOf(list) === "Fn::GetAtt") pushGetAtt(list, value, path);
|
|
21894
|
+
}
|
|
21895
|
+
return;
|
|
21896
|
+
}
|
|
21897
|
+
} finally {
|
|
21898
|
+
ancestors.delete(source);
|
|
21899
|
+
}
|
|
21900
|
+
};
|
|
21901
|
+
walk(template, resolved, []);
|
|
21902
|
+
return coordinates;
|
|
21903
|
+
}
|
|
21904
|
+
function segmentKey(segment) {
|
|
21905
|
+
return `${typeof segment === "number" ? "n" : "s"}:${segment}`;
|
|
21906
|
+
}
|
|
21907
|
+
function trieOf(coordinates) {
|
|
21908
|
+
const root = {
|
|
21909
|
+
typed: false,
|
|
21910
|
+
children: /* @__PURE__ */ new Map()
|
|
21911
|
+
};
|
|
21912
|
+
for (const coordinate of coordinates) {
|
|
21913
|
+
if (!Array.isArray(coordinate)) continue;
|
|
21914
|
+
let node = root;
|
|
21915
|
+
for (const segment of coordinate) {
|
|
21916
|
+
if (typeof segment !== "string" && typeof segment !== "number") break;
|
|
21917
|
+
const key = segmentKey(segment);
|
|
21918
|
+
let child = node.children.get(key);
|
|
21919
|
+
if (child === void 0) {
|
|
21920
|
+
child = {
|
|
21921
|
+
typed: false,
|
|
21922
|
+
children: /* @__PURE__ */ new Map()
|
|
21923
|
+
};
|
|
21924
|
+
node.children.set(key, child);
|
|
21925
|
+
}
|
|
21926
|
+
node = child;
|
|
21927
|
+
}
|
|
21928
|
+
node.typed = true;
|
|
21929
|
+
}
|
|
21930
|
+
return root;
|
|
21931
|
+
}
|
|
21932
|
+
function setOwn(target, key, value) {
|
|
21933
|
+
Object.defineProperty(target, key, {
|
|
21934
|
+
value,
|
|
21935
|
+
enumerable: true,
|
|
21936
|
+
writable: true,
|
|
21937
|
+
configurable: true
|
|
21938
|
+
});
|
|
21939
|
+
}
|
|
21940
|
+
function legacyStringify(properties) {
|
|
21941
|
+
const result = {};
|
|
21942
|
+
for (const [key, value] of Object.entries(properties)) if (typeof value === "boolean" || typeof value === "number") setOwn(result, key, String(value));
|
|
21943
|
+
else if (isPlainObject$6(value)) setOwn(result, key, legacyStringify(value));
|
|
21944
|
+
else setOwn(result, key, value);
|
|
21945
|
+
return result;
|
|
21946
|
+
}
|
|
21947
|
+
function serializeResourceProperties(properties, typedLeaves) {
|
|
21948
|
+
const leaves = recordedTypedPayloadLeavesOf({ typedPayloadLeaves: typedLeaves });
|
|
21949
|
+
if (leaves === void 0) return legacyStringify(properties);
|
|
21950
|
+
const walk = (value, node) => {
|
|
21951
|
+
if (node?.typed === true) return value;
|
|
21952
|
+
if (typeof value === "boolean" || typeof value === "number") return String(value);
|
|
21953
|
+
if (Array.isArray(value)) return value.map((item, index) => walk(item, node?.children.get(segmentKey(index))));
|
|
21954
|
+
if (isPlainObject$6(value)) {
|
|
21955
|
+
const result = {};
|
|
21956
|
+
for (const [key, child] of Object.entries(value)) setOwn(result, key, walk(child, node?.children.get(segmentKey(key))));
|
|
21957
|
+
return result;
|
|
21958
|
+
}
|
|
21959
|
+
return value;
|
|
21960
|
+
};
|
|
21961
|
+
return walk(properties, trieOf(leaves));
|
|
21962
|
+
}
|
|
21963
|
+
function recordedTypedPayloadLeavesOf(record) {
|
|
21964
|
+
const field = record.typedPayloadLeaves;
|
|
21965
|
+
if (!Array.isArray(field)) return void 0;
|
|
21966
|
+
const leaves = [];
|
|
21967
|
+
for (const coordinate of field) {
|
|
21968
|
+
if (!Array.isArray(coordinate) || !coordinate.every((segment) => typeof segment === "string" || typeof segment === "number")) return;
|
|
21969
|
+
leaves.push(coordinate);
|
|
21970
|
+
}
|
|
21971
|
+
return leaves;
|
|
21972
|
+
}
|
|
21973
|
+
|
|
21775
21974
|
// src/provisioning/providers/custom-resource/response.ts
|
|
21776
21975
|
async function getCustomResourceResponse(lambdaResponse, responseKey, logicalId, operation, mask) {
|
|
21777
21976
|
if (lambdaResponse.FunctionError) {
|
|
@@ -21895,13 +22094,8 @@ async function cleanupResponseObject(responseKey) {
|
|
|
21895
22094
|
objectDescription: CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION
|
|
21896
22095
|
});
|
|
21897
22096
|
}
|
|
21898
|
-
function stringifyProperties(properties) {
|
|
21899
|
-
|
|
21900
|
-
for (const [key, value] of Object.entries(properties)) if (typeof value === "boolean") result[key] = String(value);
|
|
21901
|
-
else if (typeof value === "number") result[key] = String(value);
|
|
21902
|
-
else if (typeof value === "object" && value !== null && !Array.isArray(value)) result[key] = this.stringifyProperties(value);
|
|
21903
|
-
else result[key] = value;
|
|
21904
|
-
return result;
|
|
22097
|
+
function stringifyProperties(properties, typedLeaves) {
|
|
22098
|
+
return serializeResourceProperties(properties, typedLeaves);
|
|
21905
22099
|
}
|
|
21906
22100
|
function sleep(ms) {
|
|
21907
22101
|
return customResourceRetryDelays.sleep(ms);
|
|
@@ -22067,8 +22261,8 @@ var CustomResourceProvider = class CustomResourceProvider {
|
|
|
22067
22261
|
cleanupResponseObject(responseKey) {
|
|
22068
22262
|
return cleanupResponseObject.call(this, responseKey);
|
|
22069
22263
|
}
|
|
22070
|
-
stringifyProperties(properties) {
|
|
22071
|
-
return stringifyProperties.call(this, properties);
|
|
22264
|
+
stringifyProperties(properties, typedLeaves) {
|
|
22265
|
+
return stringifyProperties.call(this, properties, typedLeaves);
|
|
22072
22266
|
}
|
|
22073
22267
|
sleep(ms) {
|
|
22074
22268
|
return sleep.call(this, ms);
|
|
@@ -24906,7 +25100,7 @@ async function ccRoutedInstanceTakesNoSnapshot(input) {
|
|
|
24906
25100
|
if (resourceType !== "AWS::RDS::DBInstance") return false;
|
|
24907
25101
|
if (region === void 0 || region === "") return false;
|
|
24908
25102
|
const mask = input.mask ?? ((text) => text);
|
|
24909
|
-
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-
|
|
25103
|
+
const { describeDBInstanceInRegion, isLiveReadReplica } = await import("./read-replica-BQhsK5Fn.js").then((n) => n.l);
|
|
24910
25104
|
let reason;
|
|
24911
25105
|
try {
|
|
24912
25106
|
const live = await describeDBInstanceInRegion(physicalId, region);
|
|
@@ -25050,10 +25244,11 @@ function recordRollbackDeleteGuards(result, logicalId, physicalId, scope) {
|
|
|
25050
25244
|
}
|
|
25051
25245
|
const SKIP_FINAL_SNAPSHOT_FLAG = "--skip-final-snapshot";
|
|
25052
25246
|
const REPLAYING_STATE_CREATE_CONTEXT = { replayingState: true };
|
|
25053
|
-
function replayingStateCreateContext(secrets) {
|
|
25247
|
+
function replayingStateCreateContext(secrets, typedPayloadLeaves) {
|
|
25054
25248
|
return {
|
|
25055
25249
|
...REPLAYING_STATE_CREATE_CONTEXT,
|
|
25056
|
-
maskSecrets: createSecretMasker(secrets)
|
|
25250
|
+
maskSecrets: createSecretMasker(secrets),
|
|
25251
|
+
...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
|
|
25057
25252
|
};
|
|
25058
25253
|
}
|
|
25059
25254
|
function maskedRollbackEventError(error, mask) {
|
|
@@ -26579,6 +26774,7 @@ async function replaceDeleteFirstAndRecreate(run, deps, logicalId, resourceType,
|
|
|
26579
26774
|
recordedAttributes: currentResource.attributes,
|
|
26580
26775
|
recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
|
|
26581
26776
|
recordedNoEchoLeaves: currentResource.noEchoLeaves,
|
|
26777
|
+
recordedTypedPayloadLeaves: currentResource.typedPayloadLeaves,
|
|
26582
26778
|
...noEchoDeleteValues !== void 0 && { noEchoDeleteValues },
|
|
26583
26779
|
maskSecrets: deleteMask
|
|
26584
26780
|
}));
|
|
@@ -26872,6 +27068,7 @@ async function deleteSupersededEntry(entry, input) {
|
|
|
26872
27068
|
recordedAttributes: record.attributes,
|
|
26873
27069
|
recordedCreateOnlyDrops: record.acceptedCreateOnlyDrops,
|
|
26874
27070
|
recordedNoEchoLeaves: record.noEchoLeaves,
|
|
27071
|
+
recordedTypedPayloadLeaves: record.typedPayloadLeaves,
|
|
26875
27072
|
maskSecrets: input.maskSecrets
|
|
26876
27073
|
});
|
|
26877
27074
|
result = input.once === true ? await send() : await retryWhileInUse(send, input.stop);
|
|
@@ -27003,6 +27200,7 @@ async function deleteReplacedAfterCreate(run, deps, logicalId, oldResourceType,
|
|
|
27003
27200
|
recordedAttributes: currentResource.attributes,
|
|
27004
27201
|
recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
|
|
27005
27202
|
recordedNoEchoLeaves: currentResource.noEchoLeaves,
|
|
27203
|
+
recordedTypedPayloadLeaves: currentResource.typedPayloadLeaves,
|
|
27006
27204
|
...noEchoDeleteValues !== void 0 && { noEchoDeleteValues },
|
|
27007
27205
|
...inlinePolicyClaimed && { inlinePolicyClaimed },
|
|
27008
27206
|
maskSecrets: createUnionSecretMasker([secrets, secretNameBagFor(deps.secretsRun(), logicalId)])
|
|
@@ -27087,7 +27285,10 @@ async function createFirstThenDeleteOld(run, deps, input) {
|
|
|
27087
27285
|
stackName: input.stackName,
|
|
27088
27286
|
createdVia: input.createdVia,
|
|
27089
27287
|
resolvedProps: input.resolvedProps
|
|
27090
|
-
}, () => deps.withRetry(() => withCurrentResourceSecrets(secrets, () => input.createProvider.create(logicalId, resourceType, input.createProps, {
|
|
27288
|
+
}, () => deps.withRetry(() => withCurrentResourceSecrets(secrets, () => input.createProvider.create(logicalId, resourceType, input.createProps, {
|
|
27289
|
+
maskSecrets: createSecretMasker(secrets),
|
|
27290
|
+
...input.typedPayloadLeaves !== void 0 && { typedPayloadLeaves: input.typedPayloadLeaves }
|
|
27291
|
+
})), logicalId, void 0, void 0, input.createProvider));
|
|
27091
27292
|
} catch (createError) {
|
|
27092
27293
|
if (!isNameCollisionErrorFrom(createError, logicalId)) throw createError;
|
|
27093
27294
|
const createFailure = describeAwsFailure(createError);
|
|
@@ -28561,6 +28762,7 @@ async function runMovedIdCleanups(queue, scope) {
|
|
|
28561
28762
|
recordedAttributes: sent.attributes,
|
|
28562
28763
|
recordedCreateOnlyDrops: sent.acceptedCreateOnlyDrops,
|
|
28563
28764
|
recordedNoEchoLeaves: sent.noEchoLeaves,
|
|
28765
|
+
recordedTypedPayloadLeaves: sent.typedPayloadLeaves,
|
|
28564
28766
|
maskSecrets: mask
|
|
28565
28767
|
}));
|
|
28566
28768
|
throwIfDeleteSkipped(outcome, logicalId, sent.physicalId, "while deleting the physical id the rollback moved off", {
|
|
@@ -29940,6 +30142,7 @@ async function replayDelete(s) {
|
|
|
29940
30142
|
recordedAttributes: stateResources[op.logicalId]?.attributes,
|
|
29941
30143
|
recordedCreateOnlyDrops: stateResources[op.logicalId]?.acceptedCreateOnlyDrops,
|
|
29942
30144
|
recordedNoEchoLeaves: stateResources[op.logicalId]?.noEchoLeaves,
|
|
30145
|
+
recordedTypedPayloadLeaves: stateResources[op.logicalId]?.typedPayloadLeaves,
|
|
29943
30146
|
maskSecrets: mask
|
|
29944
30147
|
}));
|
|
29945
30148
|
const createRollbackDelete = removeProtection ? await runDeleteAttempt(true, deleteCreated) : await deleteCreated();
|
|
@@ -30802,6 +31005,7 @@ async function replayReadopt(s, survivor) {
|
|
|
30802
31005
|
recordedAttributes: current.attributes,
|
|
30803
31006
|
recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
|
|
30804
31007
|
recordedNoEchoLeaves: current.noEchoLeaves,
|
|
31008
|
+
recordedTypedPayloadLeaves: current.typedPayloadLeaves,
|
|
30805
31009
|
maskSecrets: mask
|
|
30806
31010
|
}));
|
|
30807
31011
|
throwIfDeleteSkipped(readoptDelete, op.logicalId, current.physicalId, `while reversing its replacement (re-adopting the ${oldKind} old resource)`, {
|
|
@@ -30910,7 +31114,9 @@ async function replayRevert(s) {
|
|
|
30910
31114
|
recordedAttributes: current.attributes,
|
|
30911
31115
|
recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
|
|
30912
31116
|
...revertClaimed && { inlinePolicyClaimed: revertClaimed },
|
|
30913
|
-
...unsettledContextOf(current, previousState)
|
|
31117
|
+
...unsettledContextOf(current, previousState),
|
|
31118
|
+
typedPayloadLeaves: previousState.typedPayloadLeaves,
|
|
31119
|
+
previousTypedPayloadLeaves: current.typedPayloadLeaves
|
|
30914
31120
|
}
|
|
30915
31121
|
], op.logicalId, logger, isInterrupted, secrets, mask));
|
|
30916
31122
|
if (revertResult) recordNoEchoAttributeValues(revertResult, secrets, desiredProps);
|
|
@@ -31013,6 +31219,7 @@ async function recreateOldResource(s, r) {
|
|
|
31013
31219
|
recordedAttributes: current.attributes,
|
|
31014
31220
|
recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
|
|
31015
31221
|
recordedNoEchoLeaves: current.noEchoLeaves,
|
|
31222
|
+
recordedTypedPayloadLeaves: current.typedPayloadLeaves,
|
|
31016
31223
|
maskSecrets: mask
|
|
31017
31224
|
}));
|
|
31018
31225
|
throwIfDeleteSkipped(deleteNewFirst, op.logicalId, current.physicalId, purpose, newDeleteGuardScope(deleteNewFirstRoute.provisionedBy));
|
|
@@ -31025,7 +31232,7 @@ async function recreateOldResource(s, r) {
|
|
|
31025
31232
|
};
|
|
31026
31233
|
const recreateAfterNewDeleted = async () => {
|
|
31027
31234
|
try {
|
|
31028
|
-
return await createWithRollbackRetry(createProvider, () => inOriginalPrefix(() => withCurrentResourceSecrets(secrets, () => createProvider.create(op.logicalId, oldType, replayCreateProps(), replayingStateCreateContext(secrets)))), op.logicalId, logger, isInterrupted, mask, {
|
|
31235
|
+
return await createWithRollbackRetry(createProvider, () => inOriginalPrefix(() => withCurrentResourceSecrets(secrets, () => createProvider.create(op.logicalId, oldType, replayCreateProps(), replayingStateCreateContext(secrets, prev.typedPayloadLeaves)))), op.logicalId, logger, isInterrupted, mask, {
|
|
31029
31236
|
isRetryable: isRecreateRetryableError,
|
|
31030
31237
|
interruptedMessage: "Rollback interrupted while waiting for the new resource to release its name or slot"
|
|
31031
31238
|
});
|
|
@@ -31044,7 +31251,7 @@ async function recreateOldResource(s, r) {
|
|
|
31044
31251
|
deletedNewFirst = true;
|
|
31045
31252
|
createResult = await recreateAfterNewDeleted();
|
|
31046
31253
|
} else try {
|
|
31047
|
-
createResult = await createWithRollbackRetry(createProvider, () => inOriginalPrefix(() => withCurrentResourceSecrets(secrets, () => createProvider.create(op.logicalId, oldType, replayCreateProps(), replayingStateCreateContext(secrets)))), op.logicalId, logger, isInterrupted, mask, {
|
|
31254
|
+
createResult = await createWithRollbackRetry(createProvider, () => inOriginalPrefix(() => withCurrentResourceSecrets(secrets, () => createProvider.create(op.logicalId, oldType, replayCreateProps(), replayingStateCreateContext(secrets, prev.typedPayloadLeaves)))), op.logicalId, logger, isInterrupted, mask, {
|
|
31048
31255
|
isRetryable: isNameCooldownError,
|
|
31049
31256
|
interruptedMessage: "Rollback interrupted while waiting out the name cooldown"
|
|
31050
31257
|
});
|
|
@@ -31171,6 +31378,7 @@ async function finishReverseReplacement(s, r, createResult, deletedNewFirst) {
|
|
|
31171
31378
|
recordedAttributes: current.attributes,
|
|
31172
31379
|
recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
|
|
31173
31380
|
recordedNoEchoLeaves: current.noEchoLeaves,
|
|
31381
|
+
recordedTypedPayloadLeaves: current.typedPayloadLeaves,
|
|
31174
31382
|
maskSecrets: mask
|
|
31175
31383
|
}));
|
|
31176
31384
|
throwIfDeleteSkipped(deleteNewAfterRecreate, op.logicalId, current.physicalId, "while deleting the new resource after re-creating the old one", newDeleteGuardScope(deleteNewAfterRecreateRoute.provisionedBy));
|
|
@@ -31848,6 +32056,7 @@ async function replayFailedOperationsUnbound(failedOps, stateResources, stackNam
|
|
|
31848
32056
|
recordedAttributes: failedCreateRecord?.attributes,
|
|
31849
32057
|
recordedCreateOnlyDrops: failedCreateRecord?.acceptedCreateOnlyDrops,
|
|
31850
32058
|
recordedNoEchoLeaves: nonEmptyOrUndefined([...maskedLeafCoordinatesOf(op.attemptedProperties ?? {}), ...failedCreateRecord?.noEchoLeaves ?? []]),
|
|
32059
|
+
recordedTypedPayloadLeaves: failedCreateRecord?.typedPayloadLeaves,
|
|
31851
32060
|
...op.physicalIdRecoveredFromError === true && {
|
|
31852
32061
|
failedCreateOrphan: true,
|
|
31853
32062
|
resolveAttemptedProperties: () => resolveReplayProps(op.attemptedProperties, resolver, secrets, ctx, op.logicalId),
|
|
@@ -31965,7 +32174,8 @@ async function replayFailedOperationsUnbound(failedOps, stateResources, stackNam
|
|
|
31965
32174
|
recordedAttributes: current.attributes,
|
|
31966
32175
|
recordedCreateOnlyDrops: current.acceptedCreateOnlyDrops,
|
|
31967
32176
|
...revertFailedClaimed && { inlinePolicyClaimed: revertFailedClaimed },
|
|
31968
|
-
...revertUnsettled
|
|
32177
|
+
...revertUnsettled,
|
|
32178
|
+
typedPayloadLeaves: prev.typedPayloadLeaves
|
|
31969
32179
|
}
|
|
31970
32180
|
], op.logicalId, logger, options.isInterrupted, secrets, mask));
|
|
31971
32181
|
if (revertFailedResult) recordNoEchoAttributeValues(revertFailedResult, secrets, desiredProps);
|
|
@@ -36192,6 +36402,18 @@ var GeneratedNameGuard = class GeneratedNameGuard {
|
|
|
36192
36402
|
}
|
|
36193
36403
|
};
|
|
36194
36404
|
|
|
36405
|
+
// src/deployment/deploy-engine/custom-resource-payload-leaves.ts
|
|
36406
|
+
function customResourcePayloadLeaves(resourceType, templateProperties, resolvedProperties, template, conditions, stateResources) {
|
|
36407
|
+
if (!isCustomResourceType(resourceType) || templateProperties === void 0) return void 0;
|
|
36408
|
+
return typedPayloadLeavesOf(templateProperties, resolvedProperties, {
|
|
36409
|
+
conditions,
|
|
36410
|
+
resourceTypeOf: (id) => template?.Resources?.[id]?.Type ?? (Object.hasOwn(stateResources, id) ? stateResources[id]?.resourceType : void 0)
|
|
36411
|
+
}).map((coordinate) => [...coordinate]);
|
|
36412
|
+
}
|
|
36413
|
+
function customResourcePayloadLeavesField(leaves) {
|
|
36414
|
+
return leaves === void 0 ? {} : { typedPayloadLeaves: leaves };
|
|
36415
|
+
}
|
|
36416
|
+
|
|
36195
36417
|
// src/utils/resource-line.ts
|
|
36196
36418
|
function formatResourceLine(op, logicalId, resourceType, verbOverride) {
|
|
36197
36419
|
const body = `${bold(displaySafe(logicalId))} ${gray(`(${displaySafe(resourceType)})`)}`;
|
|
@@ -36503,6 +36725,7 @@ async function provisionCreate(engine, logicalId, change, stateResources, stackN
|
|
|
36503
36725
|
});
|
|
36504
36726
|
const createProvider = createDecision.provider;
|
|
36505
36727
|
const createProps = createDecision.provisionedBy === "cc-api" ? preparePropertiesForCcApi(engine.providerRegistry, resourceType, resolvedProps, logicalId) : resolvedProps;
|
|
36728
|
+
const typedPayloadLeaves = customResourcePayloadLeaves(resourceType, desiredProps, resolvedProps, template, conditions, stateResources);
|
|
36506
36729
|
const resumed = await resumeAbandonedCreate(engine, {
|
|
36507
36730
|
logicalId,
|
|
36508
36731
|
resourceType,
|
|
@@ -36537,7 +36760,10 @@ async function provisionCreate(engine, logicalId, change, stateResources, stackN
|
|
|
36537
36760
|
});
|
|
36538
36761
|
engine.generatedNameGuard?.noteSent(logicalId);
|
|
36539
36762
|
try {
|
|
36540
|
-
result = await engine.withRetry(() => withCurrentResourceSecrets(createSecrets, () => createProvider.create(logicalId, resourceType, createProps, {
|
|
36763
|
+
result = await engine.withRetry(() => withCurrentResourceSecrets(createSecrets, () => createProvider.create(logicalId, resourceType, createProps, {
|
|
36764
|
+
maskSecrets: createSecretMasker(createSecrets),
|
|
36765
|
+
...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
|
|
36766
|
+
})), logicalId, void 0, void 0, createProvider);
|
|
36541
36767
|
} catch (error) {
|
|
36542
36768
|
engine.generatedNameGuard?.noteFailed(logicalId, error);
|
|
36543
36769
|
throw error;
|
|
@@ -36558,7 +36784,8 @@ async function provisionCreate(engine, logicalId, change, stateResources, stackN
|
|
|
36558
36784
|
...secretNamedAttributesField(result),
|
|
36559
36785
|
...dependencies && dependencies.length > 0 && { dependencies },
|
|
36560
36786
|
...templateAttrs,
|
|
36561
|
-
provisionedBy: createDecision.provisionedBy
|
|
36787
|
+
provisionedBy: createDecision.provisionedBy,
|
|
36788
|
+
...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
|
|
36562
36789
|
};
|
|
36563
36790
|
clearCreatedReport();
|
|
36564
36791
|
engine.recordInlinePolicyWrite(logicalId, "create");
|
|
@@ -37163,6 +37390,7 @@ Drop the record with: ${dropCommand}`);
|
|
|
37163
37390
|
recordedAttributes: currentResource.attributes,
|
|
37164
37391
|
recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
|
|
37165
37392
|
recordedNoEchoLeaves: currentResource.noEchoLeaves,
|
|
37393
|
+
recordedTypedPayloadLeaves: currentResource.typedPayloadLeaves,
|
|
37166
37394
|
maskSecrets: createUnionSecretMasker([secretNameBagFor(deps.secretsRun(), logicalId)])
|
|
37167
37395
|
}), logicalId, 3, 5e3, deleteProvider);
|
|
37168
37396
|
} catch (deleteError) {
|
|
@@ -45102,7 +45330,7 @@ function refuseUnsafeReplacement(engine, { change, currentProps, currentResource
|
|
|
45102
45330
|
}
|
|
45103
45331
|
|
|
45104
45332
|
// src/deployment/deploy-engine/update-replace/recreate.ts
|
|
45105
|
-
async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, recreateViaCcApi }) {
|
|
45333
|
+
async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, recreateViaCcApi, typedPayloadLeaves }) {
|
|
45106
45334
|
let createResult;
|
|
45107
45335
|
refuseRestoreFromItself(resourceType, replaceProps, currentResource.physicalId, logicalId, {
|
|
45108
45336
|
region: engine.stackRegion,
|
|
@@ -45137,6 +45365,7 @@ async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSam
|
|
|
45137
45365
|
recordedAttributes: currentResource.attributes,
|
|
45138
45366
|
recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
|
|
45139
45367
|
recordedNoEchoLeaves: currentResource.noEchoLeaves,
|
|
45368
|
+
recordedTypedPayloadLeaves: currentResource.typedPayloadLeaves,
|
|
45140
45369
|
...noEchoDeleteValues !== void 0 && { noEchoDeleteValues },
|
|
45141
45370
|
maskSecrets: createUnionSecretMasker([updateSecrets, secretNameBagFor(engine.secretsRun, logicalId)])
|
|
45142
45371
|
}));
|
|
@@ -45169,7 +45398,10 @@ async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSam
|
|
|
45169
45398
|
stackName,
|
|
45170
45399
|
createdVia: replaceDecision.provisionedBy,
|
|
45171
45400
|
resolvedProps
|
|
45172
|
-
}, () => withRetry(() => engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => replaceProvider.create(logicalId, resourceType, replaceProps, {
|
|
45401
|
+
}, () => withRetry(() => engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => replaceProvider.create(logicalId, resourceType, replaceProps, {
|
|
45402
|
+
maskSecrets: createSecretMasker(updateSecrets),
|
|
45403
|
+
...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
|
|
45404
|
+
})), logicalId, void 0, void 0, replaceProvider, true), logicalId, {
|
|
45173
45405
|
maxRetries: 8,
|
|
45174
45406
|
initialDelayMs: 2e3,
|
|
45175
45407
|
maxDelayMs: 1e4,
|
|
@@ -45183,7 +45415,7 @@ async function recreateDestroyThenCreate(engine, { currentResource, equalIdIsSam
|
|
|
45183
45415
|
}
|
|
45184
45416
|
|
|
45185
45417
|
// src/deployment/deploy-engine/update-replace/create-first.ts
|
|
45186
|
-
async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, lostWithParent, nameChange }) {
|
|
45418
|
+
async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResource, logicalId, noEchoDeleteValues, oldDeleteProvider, oldDeleteRoute, oldResourceType, replaceDecision, replaceProps, replaceProvider, resolvedProps, resourceType, stackName, updateReplacePolicy, updateSecrets, typedPayloadLeaves, lostWithParent, nameChange }) {
|
|
45187
45419
|
let createResult;
|
|
45188
45420
|
engine.logger.info(safeMsg` Creating new ${logicalId}...`);
|
|
45189
45421
|
let deletedOldFirst = lostWithParent !== void 0;
|
|
@@ -45199,7 +45431,10 @@ async function replaceCreateFirst(engine, { currentResource, equalIdIsSameResour
|
|
|
45199
45431
|
createdVia: replaceDecision.provisionedBy,
|
|
45200
45432
|
resolvedProps,
|
|
45201
45433
|
keepsName: lostWithParent !== void 0
|
|
45202
|
-
}, () => engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => replaceProvider.create(logicalId, resourceType, replaceProps, {
|
|
45434
|
+
}, () => engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => replaceProvider.create(logicalId, resourceType, replaceProps, {
|
|
45435
|
+
maskSecrets: createSecretMasker(updateSecrets),
|
|
45436
|
+
...typedPayloadLeaves !== void 0 && { typedPayloadLeaves }
|
|
45437
|
+
})), logicalId, void 0, void 0, replaceProvider, lostWithParent !== void 0));
|
|
45203
45438
|
} catch (createError) {
|
|
45204
45439
|
const createFailure = describeAwsFailure(createError);
|
|
45205
45440
|
const createAwsMsg = displayAwsMessage(maskSecretsInText(createFailure.detail, updateSecrets));
|
|
@@ -45314,6 +45549,7 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
|
|
|
45314
45549
|
});
|
|
45315
45550
|
const replaceProvider = replaceDecision.provider;
|
|
45316
45551
|
const replaceProps = replaceDecision.provisionedBy === "cc-api" ? preparePropertiesForCcApi(engine.providerRegistry, resourceType, resolvedProps, logicalId) : resolvedProps;
|
|
45552
|
+
const typedPayloadLeaves = customResourcePayloadLeaves(resourceType, template?.Resources?.[logicalId]?.Properties, resolvedProps, template, engine.noEchoRun.noEchoConditions, stateResources);
|
|
45317
45553
|
const oldDeleteRoute = engine.providerRegistry.getProviderFor({
|
|
45318
45554
|
resourceType: oldResourceType,
|
|
45319
45555
|
provisionedBy: currentResource.provisionedBy
|
|
@@ -45363,6 +45599,7 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
|
|
|
45363
45599
|
deleteProvisionedBy: oldDeleteRoute.provisionedBy,
|
|
45364
45600
|
deleteProperties: currentResource.properties,
|
|
45365
45601
|
secrets: updateSecrets,
|
|
45602
|
+
typedPayloadLeaves,
|
|
45366
45603
|
change: nameChange,
|
|
45367
45604
|
equalIdIsSameResource,
|
|
45368
45605
|
snapshotPolicy: updateReplacePolicy,
|
|
@@ -45386,7 +45623,8 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
|
|
|
45386
45623
|
stackName,
|
|
45387
45624
|
updateReplacePolicy,
|
|
45388
45625
|
updateSecrets,
|
|
45389
|
-
recreateViaCcApi
|
|
45626
|
+
recreateViaCcApi,
|
|
45627
|
+
typedPayloadLeaves
|
|
45390
45628
|
});
|
|
45391
45629
|
else createResult = await replaceCreateFirst(engine, {
|
|
45392
45630
|
currentResource,
|
|
@@ -45405,6 +45643,7 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
|
|
|
45405
45643
|
updateReplacePolicy,
|
|
45406
45644
|
updateSecrets,
|
|
45407
45645
|
lostWithParent,
|
|
45646
|
+
typedPayloadLeaves,
|
|
45408
45647
|
nameChange
|
|
45409
45648
|
});
|
|
45410
45649
|
registerNoEchoAttributes(engine.secretsRun, engine.maskingDeps(), logicalId, createResult, updateSecrets, resolvedProps);
|
|
@@ -45420,7 +45659,8 @@ async function updateByReplacement(engine, { change, counts, currentProps, curre
|
|
|
45420
45659
|
...secretNamedAttributesField(createResult),
|
|
45421
45660
|
...dependencies && dependencies.length > 0 && { dependencies },
|
|
45422
45661
|
...extractTemplateAttributes(template, logicalId),
|
|
45423
|
-
provisionedBy: replaceDecision.provisionedBy
|
|
45662
|
+
provisionedBy: replaceDecision.provisionedBy,
|
|
45663
|
+
...customResourcePayloadLeavesField(typedPayloadLeaves)
|
|
45424
45664
|
};
|
|
45425
45665
|
clearCreatedReport();
|
|
45426
45666
|
engine.recordInlinePolicyWrite(logicalId, "create");
|
|
@@ -45454,6 +45694,36 @@ function ccAutoRouteUpdateFailureRemedy(logicalId, resourceType, autoRoutedPrope
|
|
|
45454
45694
|
return `\nThis update moved the resource from its SDK provider to Cloud Control API, because the SDK provider does not handle ${shown}. Cloud Control addresses it by the physical id the SDK provider recorded, and for some types that is not an identifier Cloud Control accepts. ` + (nestedChild ? `It is in a nested stack, which --recreate-via-cc-api cannot address: ${preferSdk}, or remove ${them} from the template.` : `Two ways through: re-create the resource on Cloud Control with --recreate-via-cc-api ${id} (destroys and re-creates it), or ${preferSdk}.`);
|
|
45455
45695
|
}
|
|
45456
45696
|
|
|
45697
|
+
// src/deployment/deploy-engine/update-in-place/unsettled-marks.ts
|
|
45698
|
+
function unsettledMarkSinks(engine, logicalId, resolvedProps, currentResource) {
|
|
45699
|
+
return {
|
|
45700
|
+
markUnsettled: (propertyName) => {
|
|
45701
|
+
if (typeof propertyName !== "string" || propertyName === "") return;
|
|
45702
|
+
if (!Object.hasOwn(resolvedProps, propertyName) && !Object.hasOwn(currentResource.properties ?? {}, propertyName)) {
|
|
45703
|
+
engine.logger.debug(safeMsg`${logicalId}: ignored an unsettled mark for ${propertyName}, which is not one of its properties`);
|
|
45704
|
+
return;
|
|
45705
|
+
}
|
|
45706
|
+
let marks = engine.unsettledMarks.get(logicalId);
|
|
45707
|
+
if (marks === void 0) {
|
|
45708
|
+
marks = /* @__PURE__ */ new Set();
|
|
45709
|
+
engine.unsettledMarks.set(logicalId, marks);
|
|
45710
|
+
}
|
|
45711
|
+
marks.add(propertyName);
|
|
45712
|
+
},
|
|
45713
|
+
markAttempted: (path, items) => {
|
|
45714
|
+
if (typeof path !== "string" || path === "") return;
|
|
45715
|
+
let byPath = engine.unsettledItemMarks.get(logicalId);
|
|
45716
|
+
if (byPath === void 0) {
|
|
45717
|
+
byPath = /* @__PURE__ */ new Map();
|
|
45718
|
+
engine.unsettledItemMarks.set(logicalId, byPath);
|
|
45719
|
+
}
|
|
45720
|
+
const names = byPath.get(path) ?? /* @__PURE__ */ new Set();
|
|
45721
|
+
for (const item of items) if (typeof item === "string" && item !== "") names.add(item);
|
|
45722
|
+
byPath.set(path, names);
|
|
45723
|
+
}
|
|
45724
|
+
};
|
|
45725
|
+
}
|
|
45726
|
+
|
|
45457
45727
|
// src/deployment/deploy-engine/replacement/cleanup-old-id.ts
|
|
45458
45728
|
async function deleteOldIdAfterDeploy(run, deps, input) {
|
|
45459
45729
|
const { logicalId, oldResource } = input;
|
|
@@ -45579,6 +45849,7 @@ async function replaceFallbackFor(engine, { currentProps, currentResource, logic
|
|
|
45579
45849
|
recordedAttributes: currentResource.attributes,
|
|
45580
45850
|
recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
|
|
45581
45851
|
recordedNoEchoLeaves: currentResource.noEchoLeaves,
|
|
45852
|
+
recordedTypedPayloadLeaves: currentResource.typedPayloadLeaves,
|
|
45582
45853
|
...noEchoDeleteValues !== void 0 && { noEchoDeleteValues },
|
|
45583
45854
|
maskSecrets: createUnionSecretMasker([updateSecrets, secretNameBagFor(engine.secretsRun, logicalId)])
|
|
45584
45855
|
}));
|
|
@@ -45781,6 +46052,7 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
|
|
|
45781
46052
|
let captureProvider = updateProvider;
|
|
45782
46053
|
let replacedAtGeneration;
|
|
45783
46054
|
const inlinePolicyClaimed = engine.inlinePolicyClaimedFor(resourceType, logicalId, stateResources);
|
|
46055
|
+
const typedPayloadLeaves = customResourcePayloadLeaves(resourceType, template?.Resources?.[logicalId]?.Properties, resolvedProps, template, conditions, stateResources);
|
|
45784
46056
|
try {
|
|
45785
46057
|
result = await engine.withRetry(() => withCurrentResourceSecrets(updateSecrets, () => updateProvider.update(logicalId, currentResource.physicalId, resourceType, removal.properties, previousSettled, {
|
|
45786
46058
|
maskSecrets: createSecretMasker(updateSecrets),
|
|
@@ -45788,33 +46060,14 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
|
|
|
45788
46060
|
recordedAttributes: currentResource.attributes,
|
|
45789
46061
|
recordedCreateOnlyDrops: currentResource.acceptedCreateOnlyDrops,
|
|
45790
46062
|
...inlinePolicyClaimed && { inlinePolicyClaimed },
|
|
46063
|
+
...typedPayloadLeaves !== void 0 && {
|
|
46064
|
+
typedPayloadLeaves,
|
|
46065
|
+
previousTypedPayloadLeaves: recordedTypedPayloadLeavesOf(currentResource)
|
|
46066
|
+
},
|
|
45791
46067
|
...removal.context,
|
|
45792
46068
|
changedProperties: changedForProvider,
|
|
45793
46069
|
...noEchoUpdateContext(engine, logicalId, noEchoOnlyForProvider, changedForProvider),
|
|
45794
|
-
|
|
45795
|
-
if (typeof propertyName !== "string" || propertyName === "") return;
|
|
45796
|
-
if (!Object.hasOwn(resolvedProps, propertyName) && !Object.hasOwn(currentResource.properties ?? {}, propertyName)) {
|
|
45797
|
-
engine.logger.debug(safeMsg`${logicalId}: ignored an unsettled mark for ${propertyName}, which is not one of its properties`);
|
|
45798
|
-
return;
|
|
45799
|
-
}
|
|
45800
|
-
let marks = engine.unsettledMarks.get(logicalId);
|
|
45801
|
-
if (marks === void 0) {
|
|
45802
|
-
marks = /* @__PURE__ */ new Set();
|
|
45803
|
-
engine.unsettledMarks.set(logicalId, marks);
|
|
45804
|
-
}
|
|
45805
|
-
marks.add(propertyName);
|
|
45806
|
-
},
|
|
45807
|
-
markAttempted: (path, items) => {
|
|
45808
|
-
if (typeof path !== "string" || path === "") return;
|
|
45809
|
-
let byPath = engine.unsettledItemMarks.get(logicalId);
|
|
45810
|
-
if (byPath === void 0) {
|
|
45811
|
-
byPath = /* @__PURE__ */ new Map();
|
|
45812
|
-
engine.unsettledItemMarks.set(logicalId, byPath);
|
|
45813
|
-
}
|
|
45814
|
-
const names = byPath.get(path) ?? /* @__PURE__ */ new Set();
|
|
45815
|
-
for (const item of items) if (typeof item === "string" && item !== "") names.add(item);
|
|
45816
|
-
byPath.set(path, names);
|
|
45817
|
-
},
|
|
46070
|
+
...unsettledMarkSinks(engine, logicalId, resolvedProps, currentResource),
|
|
45818
46071
|
...unsettled.size > 0 && { unsettledProperties: unsettled },
|
|
45819
46072
|
...unsettledItems.size > 0 && { unsettledItems }
|
|
45820
46073
|
})), logicalId, void 0, void 0, updateProvider);
|
|
@@ -45940,6 +46193,7 @@ async function updateInPlace(engine, { changedProperties, noEchoOnlyChangedPrope
|
|
|
45940
46193
|
...dependencies && dependencies.length > 0 && { dependencies },
|
|
45941
46194
|
...extractTemplateAttributes(template, logicalId),
|
|
45942
46195
|
provisionedBy: resultProvisionedBy,
|
|
46196
|
+
...typedPayloadLeaves !== void 0 && { typedPayloadLeaves },
|
|
45943
46197
|
...stillUnsettled.length > 0 && {
|
|
45944
46198
|
unsettledProperties: stillUnsettled,
|
|
45945
46199
|
...unsettledItemsField(currentResource, stillUnsettled)
|
|
@@ -49445,4 +49699,4 @@ var DeployEngine = class {
|
|
|
49445
49699
|
};
|
|
49446
49700
|
|
|
49447
49701
|
export { isTtlAlreadyDisabled as $, refuseUnreadableCdkCrossAccountRefs as $a, isAccessDenied$1 as $c, ccRoutedFinalSnapshotError as $i, resolveAssemblyPath as $l, replayFailedOperations as $n, isPlainReferenceTo as $o, secretBearing as $r, UNREADABLE_ORPHANS_CONTAINER_ROW as $s, lookupEachName as $t, refusePendingMovesOut as A, CloudControlProvider as Aa, displayLogicalId as Ac, green as Ai, resolveFileAssetSourcePath as Al, noEchoMacBinding as An, extractGetAttRefs as Ao, REDACTED_DELETE_ADDRESS_SKIP_REASON as Ar, unreadableOrphanRecords as As, maskedLogger as At, readProtection as B, isWaitAbandonedError as Ba, NO_CC_HANDLERS_REASON as Bc, journaledOrphanPrintingBag as Bi, rememberSynthesizedStacks as Bl, rollbackOrphanIds as Bn, isImpossibleEmptyStoredAttribute as Bo, retiredAfterRollback as Br, refuseMalformedResourceEntriesForImport as Bs, readRefactorMarkerOnce as Bt, isAbsoluteAssetPath as C, customResourcesFailedWithoutApp as Ca, refuseMalformedState as Cc, supersededHeldByOtherTypeWarning as Ci, validateAssetBucketName as Cl, makeForeignHolderScan as Cn, AWS_NO_VALUE as Co, recordUnderIdIsNotOwn as Cr, malformedOrphanRowsKeptWarning as Cs, deleteBudgetKey as Ct, hasPendingMovesOut as D, setLocalCustomResourceRuntimeEnabled as Da, withheldAccountClause as Dc, bold as Di, getDockerImageBySourceHash as Dl, DeploymentEventsStore as Dn, lacksRecordedRefArn as Do, resolveReplacementOldType as Dr, refuseMalformedOrphansForOrphan as Ds, INDEX_SETTLE_POLL_INTERVAL_MS as Dt, templateIdentity as E, localCustomResourceRuntimeActive as Ea, accountArgs as Ec, withoutSuperseded as Ei, AssetManifestLoader as El, DeploymentEventsReader as En, refStateLookupFromResource as Eo, computeImplicitDeleteEdges as Er, refuseMalformedOrphanRecordsForDestroy as Es, DELETE_INDEX_WAIT_PROCEED_NOTE as Et, recordedProtectionEvidence as F, UNSPECIFIED_SKIP_REASON as Fa, findSdkUnwiredProperties as Fc, noEchoExactEchoLeavesOf as Fi, isListParameterType as Fl, findDestructiveChanges as Fn, recordedProvenanceOf as Fo, removeProtectionTypeList as Fr, malformedScrubResourceEntriesRefusalMessage as Fs, hasCdkAutoDeleteTag as Ft, declaredStreamTagsMember as G, stackIdTailOf as Ga, isKnownTokenFreeState as Gc, secretNamePrintingBags as Gi, nullPrototypeRecord as Gl, differingRemedy as Gn, withSharedDrainBudget as Go, inheritProducerRegions as Gr, malformedDriftResourcePropertiesWarning as Gs, updateRefactorMarker as Gt, STREAM_POLICY_KEY as H, isSelectOutOfBounds as Ha, TemplateParser as Hc, namingSecretsWithRecordedNoEcho as Hi, defineOwnKey as Hl, changedReferenceInDiff as Hn, isNamelessDynamicReferenceError as Ho, retiredNameGenerationsLeaving as Hr, refuseMalformedResourceEntriesForOrphan as Hs, refactorMarkerRefusalMessage as Ht, recordedProtectionNote as I, deleteIndeterminateGuards as Ia, unwrittenCreateOnlyReplacement as Ic, noEchoParameterNamesOf as Ii, ssmResolvedValueType as Il, formatDestructiveChange as In, recordedReferenceRegions as Io, orphanNeedsIdentity as Ir, refuseMalformedResourceAttributesForOrphan as Is, isTruthyCfnBoolean as It, streamDeclaresPolicy as J, maskedSecretSegment as Ja, rebuildClientForBucketRegion as Jc, stateSecretNameNeedles as Ji, assemblyPathEscape as Jl, mappingPairs as Jn, containsIntrinsic as Jo, reachableDivergentParameters as Jr, refuseMalformedResourcePropertiesForDestroy as Js, getPriorAttempts as Jt, planStreamMemberOps as K, isSettledInstanceState as Ka, hasReasonlessBaselineRefusal as Kc, secretNamedAttributeNamesOf as Ki, ownValue as Kl, isPairableType as Kn, namesRecreatedParent as Ko, computeParameterTaint as Kr, malformedResourcePropertiesWarning as Ks, macWriteOnlyKeys as Kt, PROTECTION_PROPERTY_BY_TYPE as L, deleteLeftInPlace as La, withoutAcceptedSdkUnwiredProperties as Lc, withAttemptedItemsMasked as Li, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as Ll, findRefactorHints as Ln, referenceProvenanceOf as Lo, nameGenerationCarriedFrom as Lr, refuseMalformedResourceEntries as Ls, keptForRetainedRecord as Lt, findServiceTokenRefusals as M, resolvedResourceTimeoutMs as Ma, hasReadableResources as Mc, yellow as Mi, warnWholeAssemblyAsSource as Ml, noEchoMacVerdict as Mn, keepHeldTokenProvenance as Mo, redactedDeleteAddressFields as Mr, malformedLocalResourceEntriesWarning as Ms, waitForIndexesSettled as Mt, serviceTokenBlockingReason as N, setResolvedResourceTimeouts as Na, findActionableSdkUnwired as Nc, noEchoAttributeNamesOf as Ni, missingStateBucketRemedy as Nl, noEchoValueMacsOf as Nn, outputReferenceProvenanceOf as No, redactedDeleteAddressSkip as Nr, malformedLocalResourcesWarning as Ns, ECR_AUTO_DELETE_IMAGES_TAG as Nt, pendingMovesOutOf as O, withCustomResourceStack as Oa, STATE_RESOURCES_MALFORMED as Oc, cyan as Oi, isCfnTemplateAssetPath as Ol, NOECHO_MAC_KEY_ALIAS as On, lacksRecordedTableArn as Oo, withPreviousPolicies as Or, repairMalformedOrphanRecordsForReadOnly as Os, TABLE_INDEX_NOUN as Ot, diffSecurity as P, RollbackInlinePolicyWriters as Pa, findHandledUnwrittenCreateOnly as Pc, noEchoComparisonForTemplate as Pi, SSM_PARAMETER_VALUE_PREFIX as Pl, constructPathOf as Pn, recordedOutputReferenceRegions as Po, segmentCleanupOptions as Pr, malformedResourceEntriesWarning as Ps, S3_AUTO_DELETE_OBJECTS_TAG as Pt, streamTagsMatchDeclared as Q, producerLookupOver as Qa, crossPrefixDeniedWarning as Qc, PRE_DELETE_SNAPSHOT_TYPES as Qi, renderAssemblyPathEscape as Ql, referencedLogicalIds as Qn, findReplacedReadersOfRecreateTargets as Qo, exportAliasCollisionScrubWarning as Qr, repairMalformedResourcePropertiesForReadOnly as Qs, isAccessDeniedError as Qt, isProtectionValueActive as R, deleteSkipReason as Ra, withoutSdkUnwiredProperties as Rc, createReadOnlyAttributeHealerFactory as Ri, purgeNoncurrentKeyVersions as Rl, hintSidesOf as Rn, referenceTokensIn as Ro, nameGenerationHighWaterOf as Rr, refuseMalformedResourceEntriesForDeploy as Rs, recordRetainedForReadoption as Rt, findNestedTemplateTreeDefect as S, customResourceStackName as Sa, refuseMalformedResourcesForExport as Sc, supersededAfterRollback as Si, readBootstrapMarkerBody as Sl, sameJournaledOrphans as Sn, parameterTypeMayLoseSecretIdentity as So, recheckFailedPlan as Sr, malformedOrphanRecordsWarning as Ss, compensateRemovedDeletionProtection as St, renderNestedTemplateTreeDefect as T, localCustomResourceCommand as Ta, JSON_LISTING_HOLE_VALUE as Tc, supersededResourcesOf as Ti, BOOTSTRAP_MARKER_PREFIX as Tl, planOrphanAdoption as Tn, isStalePlaceholderArnAttribute as To, IMPLICIT_DELETE_DEPENDENCIES as Tr, refuseMalformedOrphanRecords as Ts, resolveDynamoDbDeleteBudgetMs as Tt, STREAM_TAGS_KEY as U, isAlwaysLiveAttribute as Ua, S3StateBackend as Uc, orphanRecordsPrintingBag as Ui, hasOwnKey as Ul, changedReferencePath as Un, carriesDynamicReference as Uo, withNameGenerationReached as Ur, repairMalformedResourceEntriesForReadOnly as Us, refuseRefactorMarker as Ut, DynamoDBGlobalTableProvider as V, IntrinsicFunctionResolver as Va, hasNoCloudControlHandlers as Vc, maskEventTextWithBoundBags as Vi, synthesizedStacks as Vl, withMovedTo as Vn, carriesFetchableDynamicReference as Vo, retiredNameGenerationsAfter as Vr, refuseMalformedResourceEntriesForImportSave as Vs, refactorMarkerMovesOf as Vt, declaredStreamPolicyMember as W, poisonRenderedSpellingsCollidingIn as Wa, splitImportedOps as Wc, secretNamePrintingBag as Wi, hasPlainPrototype as Wl, changedReferenceReason as Wn, keepsSecretReferenceToken as Wo, getCurrentProducerRegions as Wr, unreadableResourceEntries as Ws, sameMove as Wt, streamMemberRefusals as X, withSecretPhysicalIdsMaskedInState as Xa, CrossPrefixScanCache as Xc, extractDeploymentEventError as Xi, displayAssemblyPath as Xl, propertiesChangedReason as Xn, replacementSidesForLog as Xo, WITHHELD_NAME_DISPLAY as Xr, refuseMalformedResourcePropertiesForExport as Xs, formatResourceLine as Xt, streamDeclaresTags as Y, secretSegmentsOfState as Ya, CrossPrefixReadError as Yc, storedSecretNameNeedles as Yi, describeFileReadFailure as Yl, parseMappingFile as Yn, markNewValueKnownAfterDeploy as Yo, resourcesNamingDeclaredParameter as Yr, refuseMalformedResourcePropertiesForDrift as Ys, markRefusedBeforeApplying as Yt, streamPolicyMatchesDeclared as Z, resolveDynamicReferences as Za, applyCrossPrefixScan as Zc, ATOMIC_FINAL_SNAPSHOT_TYPES as Zi, namesTheSameDirectory as Zl, proposeRenames as Zn, siblingsOf as Zo, displayTextOrWithheld as Zr, refuseMalformedResourcePropertiesForOrphan as Zs, chunks as Zt, conditionFingerprint as _, readsNoEchoDeleteValues as _a, malformedRenderedContainersWarning as _c, withStackRecords as _i, buildDenyExternalAccessPolicy as _l, dropFailedCommands as _n, s3BucketDualStackDomainName as _o, seedsDeleteFirstGuard as _r, declaresNoEcho as _s, stripIndexContributorInsights as _t, scanActiveConsumers as a, createPreDeleteFinalSnapshot as aa, repairMalformedOrphansForReadOnly as ac, isWholeDynamicReferenceValue as ai, stringifyValue as al, displacedPhysicalIdShown as an, parseIamRoleArn as ao, calculateResourceDrift as ar, WARM_THROUGHPUT_MEMBERS as as, readbackVectorIndexes as at, readRecordedConditionVerdicts as b, withPrintingSecrets as ba, refuseMalformedResourcesForDeploy as bc, holdsSupersededResources as bi, getBootstrapMarkerKey as bl, journaledOrphanLines as bn, coerceParameterTypedValue as bo, isReplacementOrphan as br, isReadableOrphanRecord as bs, DYNAMODB_DELETE_POLL_COST_MS as bt, nestedSsmNameDeferredNote as c, ProviderRegistry as ca, malformedLocalOutputsWarning as cc, collectPublishedOutputNames as ci, flattenAssetPlaceholders as cl, nestedChildStackName as cn, applyCallerIdentityCredentials as co, undeclaredEmptyObservedKeys as cr, toCfnInteger as cs, vectorIndexesShapeDetail as ct, slashedSsmNameHealAdoptedNote as d, wouldReturnToSdkProvider as da, refuseMalformedNestedChildOutputs as dc, DEFAULT_RESOURCE_TIMEOUT_MS as di, loadPublishableAssetManifest as dl, revertedNestedRowIds as dn, classifyRecordedSecretRegion as do, earliestDefined as dr, inputFingerprinter as ds, indexDeclaresContributorInsights as dt, ccRoutedInstanceTakesNoSnapshot as ea, hasReadableOrphans as ec, secretBearingStateKeyWarning as ei, isNotImplemented as el, withApiLimit as en, applyRoleArnIfSet as eo, replayRollback as er, shownType as es, isTtlRateLimited as et, clearBucketRegionCache as eu, slashedSsmNameHealNote as f, CUSTOM_RESOURCE_RESPONSE_LIFECYCLE_RULE_ID as fa, refuseMalformedOutputs as fc, DEFAULT_RESOURCE_WARN_AFTER_MS as fi, redirectDockerAsset as fl, withNestedRevertRun as fn, classifyReplaySecretRegion as fo, ledgerForStack as fr, maskedPropertyFingerprintsOf as fs, planContributorInsightsOp as ft, makeCanonicalizePropertiesFn as g, TemplateNoEchoReresolver as ga, refuseDivergentRecordRegionForDestroy as gc, getStackRecords as gi, ensureAssetStorage as gl, deleteJournaledOrphans as gn, s3BucketDomainName as go, planRollback as gr, passedParameterClassesOf as gs, reverseMapTableContributorInsights as gt, inheritedProvenanceForChildDiff as h, responsePresignClient as ha, STATE_REGION_DIVERGED as hc, destroyStackRecordsView as hi, AssetModeResolver as hl, withNestedStackContext as hn, s3BucketArn as ho, acquireIdempotencyToken as hr, maskedInputProof as hs, reverseMapIndexContributorInsights as ht, mergeNoChangeOutputs as i, unsupportedFinalSnapshotError as ia, refuseMalformedOrphansForDestroy as ic, exportNameSecretExposure as ii, isSensitiveAttributeName as il, displacedOpClause as in, isIamRoleArn as io, withUnprovenUnsettled as ir, renderStatefulReason as is, planVectorIndexUpdates as it, deferredServiceTokenWarning as j, waitForGoneAfterDelete as ja, hasReadableOutputs as jc, red as ji, warnAbsoluteAssetPath as jl, noEchoMacParametersOf as jn, promoteInPlaceAttributeDependents as jo, isRedactedRecordedValue as jr, isReadableResourceEntry as js, relayedIndexBusyDelete as jt, pendingMovesRefusalMessage as k, waitForLambdaFunctionActive as ka, UNREADABLE_RESOURCES_MAP_ROW as kc, gray as ki, parseAssetManifestBody as kl, createNoEchoValueMacs as kn, parseWebACLArn as ko, findNestedStackTypeChanges as kr, unpreviewableOrphanRecords as ks, deleteTableWithIndexBusyRetry as kt, nestedSsmNameRowNote as l, ccBrokenReason as la, malformedOutputsRefusalMessage as lc, isExportAliasCollision as li, isDefaultBootstrapBucketName as ll, recordDisplacedSkips as ln, callerEnvCredentials as lo, updatePartialMessage as lr, toFiniteNumber as ls, CONTRIBUTOR_INSIGHTS_KEY as lt, crossStackOutputProvenanceSource as m, customResourceResponseExpirationWarning as ma, repairMalformedOutputsForReadOnly as mc, awaitInFlightSibling as mi, rewriteTemplateAssetReferences as ml, getCurrentNestedStackContext as mn, regionLessSecretName as mo, withCreateTokenLedger as mr, parameterInputsFor as ms, readContributorInsightsSpec as mt, isSecretBearingReferenceString as n, isFinalSnapshotError as na, malformedOrphansWarning as nc, carriedExportAliasExposure as ni, withStackInstanceIdWithheld as nl, resolvePendingCloudControlRequests as nn, assertSendableRoleArn as no, recordAfterRollbackUpdate as nr, isStatefulRecreateTargetForReplace as ns, readTtlSpec as nt, inRunStackKey as o, buildFinalSnapshotIdentifier as oa, malformedExportNamesWarning as oc, noEchoParameterValueSeed as oi, buildAssetRedirectMap as ol, dropSettledNestedJournals as on, sendableAssumeRoleCommand as oo, equalModuloMarkedMask as or, coerceWarmThroughput as os, vectorIndexesForCreate as ot, slashedSsmNameHealPendingNote as p, applyCustomResourceResponseExpiration as pa, refuseMalformedOutputsForDestroy as pc, maskingRetryLogger as pi, redirectFileAsset as pl, collectNestedChildUnaddressed as pn, producerRegionsFromState as po, reserveStackCreateToken as pr, movedMaskedProperties as ps, planIndexContributorInsightsOps as pt, reverseMapStreamPolicy as q, APPSYNC_APIKEY_ARN_RESOURCE_PATH as qa, hasUnverifiableParameterRefusal as qc, secretNamedRecordNeedles as qi, absoluteAssemblyPathEscape as ql, looselyEqual as qn, INTRINSIC_KEYS as qo, namesAnyDeclaredParameter as qr, refuseMalformedResourceProperties as qs, readsOnlyNoEchoParameters as qt, keptWholeReasonText as r, refusesFinalSnapshot as ra, refuseMalformedOrphans as rc, exportNameNoEchoParameters as ri, isSecretValuedAttribute as rl, NESTED_PENDING_PARENT_REASON as rn, explicitRoleArnOrThrow as ro, settleUnsettledPrevious as rr, isStatefulRecreateTargetSync as rs, sendTtlWaitingOutRateLimit as rt, checkNestedSsmNames as s, CC_BROKEN_REASON as sa, malformedExportSourceWarning as sc, collectDeclaredOutputNames as si, createAssetRedirectResolver as sl, getNestedRevertRun as sn, AWS_CREDENTIAL_ENV_KEYS as so, equalModuloMask as sr, isWarmThroughputDecrease as ss, vectorIndexesSettled as st, DeployEngine as t, effectiveDeletionPolicy as ta, malformedOrphansRefusalMessage as tc, secretSafeKeyDisplay as ti, stackInstanceIdOf as tl, pendingRequestCount as tn, assertFlagRoleArn as to, DELETED_RESOURCE_REMEDY as tr, MULTI_REGION_RECREATE_BLOCKED_TYPES as ts, planTimeToLive as tt, resolveBucketRegion as tu, healSlashedSsmParameterNames as u, isCustomResource as ua, malformedOutputsWarning as uc, bindingSkippedOutputs as ui, isDefaultBootstrapRepoName as ul, revertNestedChildFromJournal as un, envCredentialsAreAssumedRole as uo, updatePartialReason as ur, tryGetTopLevelWriteOnlyProperties as us, contributorInsightsRefusals as ut, conditionInputsFrom as v, isCustomResourceType as va, malformedResourcesWarning as vc, replacedDeleteFailureVerdict as vi, assertAssetBucketRegion as vl, dropFailedHint as vn, s3BucketRegionalDomainName as vo, demoteSupersededOrphans as vr, maskedPropertyFingerprint as vs, DYNAMODB_DELETE_DEADLINE_MARGIN_MS as vt, listNestedTemplateRows as w, customResourcesRunWithoutApp as wa, repairMalformedResourcesForReadOnly as wc, supersededHolderOf as wi, validateContainerRepoName as wl, makeSiblingClaimReader as wn, cfnRefValueFromPhysicalId as wo, replacementNeverSwapped as wr, previewableOrphanRecords as ws, resolveDynamoDbDeleteBudgetClock as wt, childTemplateLoader as x, NO_LOCAL_CUSTOM_RESOURCES_FLAG as xa, refuseMalformedResourcesForDestroy as xc, isSupersededResourceRecord as xi, parseBootstrapMarker as xl, loadJournaledOrphans as xn, isUnboundTemplateParameter as xo, planFailedOps as xr, malformedOrphanRecordsRefusalMessage as xs, beginDeleteWait as xt, parentSuppliedValues as y, getCurrentResourceSecrets as ya, malformedStateRefusalMessage as yc, deleteSupersededEntry as yi, isCrossRegionRedirect as yl, isHandledOrphan as yn, s3BucketWebsiteUrl as yo, isJournaledOrphan as yr, deployRefusesOrphanRowsReason as ys, DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS as yt, perType as z, withIndeterminateGuard as za, withoutUnwrittenSdkUnwiredProperties as zc, completedReplayEntries as zi, decodeListingKey as zl, movedToHint as zn, getAccountInfo as zo, nameScopeOf as zr, refuseMalformedResourceEntriesForDestroy as zs, readRefactorMarker as zt };
|
|
49448
|
-
//# sourceMappingURL=deploy-engine-
|
|
49702
|
+
//# sourceMappingURL=deploy-engine-BCutoRqN.js.map
|