@cdkd/cli 0.358.2 → 0.358.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-ov4YgebP.js → ambient-client-defaults-BN4tRwp9.js} +4 -3
- package/dist/ambient-client-defaults-BN4tRwp9.js.map +1 -0
- package/dist/{asg-provider-B3SM2Pb6.js → asg-provider-DHkF4o0Q.js} +6 -6
- package/dist/{asg-provider-B3SM2Pb6.js.map → asg-provider-DHkF4o0Q.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-C2L70Uvt.js → custom-resource-runtime-KEMII41H.js} +6 -6
- package/dist/{custom-resource-runtime-C2L70Uvt.js.map → custom-resource-runtime-KEMII41H.js.map} +1 -1
- package/dist/{db-associated-roles-BtFMDSS8.js → db-associated-roles-0r3NPm7U.js} +2 -2
- package/dist/{db-associated-roles-BtFMDSS8.js.map → db-associated-roles-0r3NPm7U.js.map} +1 -1
- package/dist/{delete-started-D6-EOWNl.js → delete-started-xsYgmgVh.js} +4 -4
- package/dist/{delete-started-D6-EOWNl.js.map → delete-started-xsYgmgVh.js.map} +1 -1
- package/dist/{deploy-engine-C7WHVVa_.js → deploy-engine-2R2hbP5Y.js} +72 -42
- package/dist/{deploy-engine-C7WHVVa_.js.map → deploy-engine-2R2hbP5Y.js.map} +1 -1
- package/dist/{diff-calculator-CfIvxdWW.js → diff-calculator-CIuzHmBn.js} +12 -12
- package/dist/{diff-calculator-CfIvxdWW.js.map → diff-calculator-CIuzHmBn.js.map} +1 -1
- package/dist/{ec2-termination-protection-BftAVRVj.js → ec2-termination-protection-DIdBlUyw.js} +6 -6
- package/dist/{ec2-termination-protection-BftAVRVj.js.map → ec2-termination-protection-DIdBlUyw.js.map} +1 -1
- package/dist/{ecr-uri-BcxKuVtg.js → ecr-uri-DD3r4tU6.js} +2 -2
- package/dist/{ecr-uri-BcxKuVtg.js.map → ecr-uri-DD3r4tU6.js.map} +1 -1
- package/dist/{expected-bucket-owner-DF9akR1A.js → expected-bucket-owner-Cm4q0WEG.js} +2 -2
- package/dist/{expected-bucket-owner-DF9akR1A.js.map → expected-bucket-owner-Cm4q0WEG.js.map} +1 -1
- package/dist/{iam-role-provider-D83igvxU.js → iam-role-provider-DiB7B6vR.js} +8 -8
- package/dist/{iam-role-provider-D83igvxU.js.map → iam-role-provider-DiB7B6vR.js.map} +1 -1
- package/dist/{image-plan-CX0jARAo.js → image-plan-VU9zHTjW.js} +8 -8
- package/dist/{image-plan-CX0jARAo.js.map → image-plan-VU9zHTjW.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-BOyzi_bp.js → logger-C4kIC51Z.js} +2 -2
- package/dist/{logger-BOyzi_bp.js.map → logger-C4kIC51Z.js.map} +1 -1
- package/dist/{neptune-provider-LICtrjZA.js → neptune-provider-CVtiI39K.js} +7 -7
- package/dist/{neptune-provider-LICtrjZA.js.map → neptune-provider-CVtiI39K.js.map} +1 -1
- package/dist/{program-CNXtBZfo.js → program-BOR4WbUs.js} +100 -31
- package/dist/program-BOR4WbUs.js.map +1 -0
- package/dist/{provider-classes-DTrcboTq.js → provider-classes-CwFJ4uJU.js} +102 -43
- package/dist/provider-classes-CwFJ4uJU.js.map +1 -0
- package/dist/{rds-provider-CBmrdoyi.js → rds-provider-CYCp7gwi.js} +10 -10
- package/dist/{rds-provider-CBmrdoyi.js.map → rds-provider-CYCp7gwi.js.map} +1 -1
- package/dist/{read-replica-BCcgBJRn.js → read-replica-DBLr287T.js} +3 -3
- package/dist/{read-replica-BCcgBJRn.js.map → read-replica-DBLr287T.js.map} +1 -1
- package/dist/{replacement-rules-BfJK4-AO.js → replacement-rules-DLJ-yZz-.js} +3 -3
- package/dist/{replacement-rules-BfJK4-AO.js.map → replacement-rules-DLJ-yZz-.js.map} +1 -1
- package/dist/{resource-deadline-C8ZUmToQ.js → resource-deadline-j2gItrpv.js} +4 -4
- package/dist/{resource-deadline-C8ZUmToQ.js.map → resource-deadline-j2gItrpv.js.map} +1 -1
- package/dist/{restore-source-guard-VsAsPwf6.js → restore-source-guard-BZ5CE9r9.js} +4 -4
- package/dist/{restore-source-guard-VsAsPwf6.js.map → restore-source-guard-BZ5CE9r9.js.map} +1 -1
- package/dist/{run-cli-Cauimq5Y.js → run-cli-CWVdMkku.js} +2 -2
- package/dist/{run-cli-Cauimq5Y.js.map → run-cli-CWVdMkku.js.map} +1 -1
- package/dist/{version-DWD1DsuN.js → version-D4vZ_aE6.js} +2 -2
- package/dist/{version-DWD1DsuN.js.map → version-D4vZ_aE6.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ambient-client-defaults-ov4YgebP.js.map +0 -1
- package/dist/program-CNXtBZfo.js.map +0 -1
- package/dist/provider-classes-DTrcboTq.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-
|
|
2
|
-
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-
|
|
1
|
+
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-DiB7B6vR.js";
|
|
2
|
+
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-C4kIC51Z.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as logGroupProtectionSite, $t as markCreatedBeforeFailure, A as ambiguousAttemptLead, At as compositeIdFormatMessage, B as isPlainImportValue, Bt as isSecretDerivedValue, Ct as renderDisableCommand, D as AmbiguousCreateLatch, Dt as isInterruptedWaitError, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, K as resolveExplicitPhysicalId, Kt as clearCreatedBeforeFailure, L as VALUE_NOT_SHOWN, Lt as stateOrphanRecordRemedy, M as isInsideWindow, Mt as compositeIdSkipResult, N as replayFollowedAmbiguousAttempt, Nt as logicalIdShown, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as startInterruptWatch, P as replayedSendWindow, Pt as packCompositeId, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, R as importRemedyCommand, Rt as createMaskedLogSinks, S as readPrincipalLists, St as protectedReplacementAdvice, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, X as markNotGone, Xt as isAuxiliaryFailure, _n as injectiveKeyPrefix, a as clearOnUpdateRemoval, at as deleteAfterProtectionFlipWithFinalSnapshot, b as holdsSecretDerivedEntry, bt as isAwsCliLiteral, c as removedTemplateKeys, ct as isTerminalDbWaitStatus, dt as isTerminalDeleteFailure, en as markSupersedesEarlierCreate, et as observeThenDisableProtection, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, it as PROTECTION_FLIP_RETRY_WAIT_MS, j as createAttemptKey, jt as compositeIdSeparatorRefusal, k as RecentIdSet, kt as canonicalizeRoute53QueryName, l as withRemovalDefaults, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, q as RESOURCE_NOT_FOUND, rt as userPoolProtectionSite, st as isProceedDbStatus, t as enclosingDeadlineExpired, tt as rdsFamilyProtectionSite, ut as ProtectionFlipRegistry, vt as UNNAMEABLE_ID_CLAUSE, w as recordedPrincipalsRepair, x as onlySecretDerived, xt as pasteableAwsCommand, y as SECRET_DERIVED_READ_LIVE, yt as WITHHELD_AWS_COMMAND, z as isPlainImportJson, zt as createMaskedRetryLogger } from "./resource-deadline-
|
|
6
|
-
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-
|
|
7
|
-
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-
|
|
8
|
-
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-
|
|
9
|
-
import { $ as
|
|
10
|
-
import { _ as isUsableAttemptedName, c as planTagDiff, d as tagMapAsList, f as tagPlanWarning, g as stringifyIfAssigned, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, m as modifyDbInstanceWhenAvailable, o as DBPROXY_TAGS_WHAT, p as isModifyNotAvailableRefusal, s as DBPROXY_TAG_OPTIONS, u as refuseMalformedDesiredTags } from "./restore-source-guard-
|
|
11
|
-
import { A as withRetry, U as timePhase, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, d as markRefusedBeforeApplying, g as onlySecretReferencesDiffer, i as observeThenDisableInstanceApiTermination, l as getPriorAttempts, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs } from "./ec2-termination-protection-
|
|
4
|
+
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-BN4tRwp9.js";
|
|
5
|
+
import { $ as logGroupProtectionSite, $t as markCreatedBeforeFailure, A as ambiguousAttemptLead, At as compositeIdFormatMessage, B as isPlainImportValue, Bt as isSecretDerivedValue, Ct as renderDisableCommand, D as AmbiguousCreateLatch, Dt as isInterruptedWaitError, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, K as resolveExplicitPhysicalId, Kt as clearCreatedBeforeFailure, L as VALUE_NOT_SHOWN, Lt as stateOrphanRecordRemedy, M as isInsideWindow, Mt as compositeIdSkipResult, N as replayFollowedAmbiguousAttempt, Nt as logicalIdShown, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as startInterruptWatch, P as replayedSendWindow, Pt as packCompositeId, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, R as importRemedyCommand, Rt as createMaskedLogSinks, S as readPrincipalLists, St as protectedReplacementAdvice, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, X as markNotGone, Xt as isAuxiliaryFailure, _n as injectiveKeyPrefix, a as clearOnUpdateRemoval, at as deleteAfterProtectionFlipWithFinalSnapshot, b as holdsSecretDerivedEntry, bt as isAwsCliLiteral, c as removedTemplateKeys, ct as isTerminalDbWaitStatus, dt as isTerminalDeleteFailure, en as markSupersedesEarlierCreate, et as observeThenDisableProtection, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, it as PROTECTION_FLIP_RETRY_WAIT_MS, j as createAttemptKey, jt as compositeIdSeparatorRefusal, k as RecentIdSet, kt as canonicalizeRoute53QueryName, l as withRemovalDefaults, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, q as RESOURCE_NOT_FOUND, rt as userPoolProtectionSite, st as isProceedDbStatus, t as enclosingDeadlineExpired, tt as rdsFamilyProtectionSite, ut as ProtectionFlipRegistry, vt as UNNAMEABLE_ID_CLAUSE, w as recordedPrincipalsRepair, x as onlySecretDerived, xt as pasteableAwsCommand, y as SECRET_DERIVED_READ_LIVE, yt as WITHHELD_AWS_COMMAND, z as isPlainImportJson, zt as createMaskedRetryLogger } from "./resource-deadline-j2gItrpv.js";
|
|
6
|
+
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-D4vZ_aE6.js";
|
|
7
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-xsYgmgVh.js";
|
|
8
|
+
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-BOR4WbUs.js";
|
|
9
|
+
import { $ as sendTtlWaitingOutRateLimit, $c as withoutSdkUnwiredProperties, $n as canonicalizeIpProtocolValue, Ao as s3BucketDualStackDomainName, At as S3_AUTO_DELETE_OBJECTS_TAG, B as declaredStreamTagsMember, Ct as INDEX_SETTLE_POLL_INTERVAL_MS, Cu as renderAssemblyPathEscape, Dl as renderNestedTemplateTreeDefect, Dt as relayedIndexBusyDelete, Ec as refuseMalformedNestedChildOutputs, El as listNestedTemplateRows, Et as maskedLogger, G as streamDeclaresTags, Gt as chunks, Hc as withheldAccountClause, Ho as parseWebACLArn, I as DynamoDBGlobalTableProvider, Ic as refuseMalformedResourcesForDestroy, Ir as REDACTED_DELETE_ADDRESS_SKIP_REASON, J as streamTagsMatchDeclared, Ja as deleteSkipReason, Jn as siblingOwnedSgRuleIdentities, Jt as withApiLimit, K as streamMemberRefusals, Kl as rewriteTemplateAssetReferences, Ko as outputReferenceProvenanceOf, Kt as isAccessDeniedError, L as STREAM_POLICY_KEY, Lr as isRedactedRecordedValue, Mo as s3BucketWebsiteUrl, Mt as isTruthyCfnBoolean, Oo as s3BucketArn, Ot as waitForIndexesSettled, Pl as decodeListingKey, Q as readTtlSpec, Qa as markWaitAbandoned, Qi as secretNamedAttributeNamesOf, Qn as sgProtocolKey, Qo as getAccountInfo, R as STREAM_TAGS_KEY, Rr as redactedDeleteAddressFields, Si as getStackRecords, Sl as stringifyValue, Ss as toFiniteNumber, St as DELETE_INDEX_WAIT_PROCEED_NOTE, Tl as isAbsoluteAssetPath, Tt as deleteTableWithIndexBusyRetry, U as reverseMapStreamPolicy, Ua as waitForGoneAfterDelete, V as planStreamMemberOps, Va as waitForLambdaFunctionActive, Vc as accountArgs, W as streamDeclaresPolicy, X as isTtlRateLimited, Xc as findSdkUnwiredProperties, Xn as withoutSiblingOwnedSgRules, Xr as getCurrentProducerRegions, Y as isTtlAlreadyDisabled, Ya as withIndeterminateGuard, Z as planTimeToLive, Zn as cfnIngressPortValue, _a as withoutSiblingAttachedArns, _r as reserveStackCreateToken, _t as beginDeleteWait, ao as APPSYNC_APIKEY_ARN_RESOURCE_PATH, at as CONTRIBUTOR_INSIGHTS_KEY, bi as awaitInFlightSibling, bs as isWarmThroughputDecrease, bt as resolveDynamoDbDeleteBudgetClock, bu as describeFileReadFailure, cn as getCurrentNestedStackContext, ct as planContributorInsightsOp, dt as reverseMapIndexContributorInsights, et as planVectorIndexUpdates, ft as reverseMapTableContributorInsights, gt as DYNAMODB_DELETE_POLL_COST_MS, ha as collectPrincipalsAttachingPolicy, hr as earliestDefined, ht as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, in as revertNestedChildFromJournal, io as isSettledInstanceState, it as vectorIndexesShapeDetail, ja as getCurrentResourceSecrets, jo as s3BucketRegionalDomainName, js as passedParameterClassesOf, jt as hasCdkAutoDeleteTag, ko as s3BucketDomainName, kt as ECR_AUTO_DELETE_IMAGES_TAG, ln as withNestedStackContext, lt as planIndexContributorInsightsOps, ma as collectManagedPolicyArnsAttachedBySiblings, mt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, nt as vectorIndexesForCreate, oo as maskedSecretSegment, ot as contributorInsightsRefusals, pa as collectGroupsAddedBySiblings, pt as stripIndexContributorInsights, q as streamPolicyMatchesDeclared, qt as lookupEachName, rt as vectorIndexesSettled, st as indexDeclaresContributorInsights, t as DeployEngine, tn as getNestedRevertRun, tt as readbackVectorIndexes, ut as readContributorInsightsSpec, va as withoutSiblingOwned, vs as WARM_THROUGHPUT_MEMBERS, vt as compensateRemovedDeletionProtection, wi as replacedDeleteFailureVerdict, wl as findNestedTemplateTreeDefect, wt as TABLE_INDEX_NOUN, wu as resolveAssemblyPath, xs as toCfnInteger, xt as resolveDynamoDbDeleteBudgetMs, xu as displayAssemblyPath, yr as acquireIdempotencyToken, ys as coerceWarmThroughput$1, yt as deleteBudgetKey, z as declaredStreamPolicyMember, zr as redactedDeleteAddressSkip } from "./deploy-engine-2R2hbP5Y.js";
|
|
10
|
+
import { _ as isUsableAttemptedName, c as planTagDiff, d as tagMapAsList, f as tagPlanWarning, g as stringifyIfAssigned, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, m as modifyDbInstanceWhenAvailable, o as DBPROXY_TAGS_WHAT, p as isModifyNotAvailableRefusal, s as DBPROXY_TAG_OPTIONS, u as refuseMalformedDesiredTags } from "./restore-source-guard-BZ5CE9r9.js";
|
|
11
|
+
import { A as withRetry, U as timePhase, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, d as markRefusedBeforeApplying, g as onlySecretReferencesDiffer, i as observeThenDisableInstanceApiTermination, l as getPriorAttempts, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs } from "./ec2-termination-protection-DIdBlUyw.js";
|
|
12
12
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
13
13
|
import { f as ambientRegion, r as awsEndpointOverrideActive } from "./aws-client-defaults-DAebi99J.js";
|
|
14
|
-
import { n as planSubscriptionAttributes } from "./diff-calculator-
|
|
15
|
-
import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-
|
|
16
|
-
import { RDSProvider } from "./rds-provider-
|
|
17
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
18
|
-
import { ASGProvider } from "./asg-provider-
|
|
14
|
+
import { n as planSubscriptionAttributes } from "./diff-calculator-CIuzHmBn.js";
|
|
15
|
+
import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-DLJ-yZz-.js";
|
|
16
|
+
import { RDSProvider } from "./rds-provider-CYCp7gwi.js";
|
|
17
|
+
import { NeptuneProvider } from "./neptune-provider-CVtiI39K.js";
|
|
18
|
+
import { ASGProvider } from "./asg-provider-DHkF4o0Q.js";
|
|
19
19
|
import { createHash, randomUUID } from "node:crypto";
|
|
20
20
|
import { CreateBucketCommand, CreateBucketMetadataConfigurationCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetadataConfigurationCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAbacCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketMetadataConfigurationCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAbacCommand, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, UpdateBucketMetadataAnnotationTableConfigurationCommand, UpdateBucketMetadataInventoryTableConfigurationCommand, UpdateBucketMetadataJournalTableConfigurationCommand } from "@aws-sdk/client-s3";
|
|
21
21
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateAccessKeyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListPoliciesCommand, ListPolicyTagsCommand, ListPolicyVersionsCommand, ListUserPoliciesCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagPolicyCommand, TagUserCommand, UntagPolicyCommand, UntagUserCommand, UpdateAccessKeyCommand, UpdateGroupCommand, UpdateLoginProfileCommand, UpdateUserCommand } from "@aws-sdk/client-iam";
|
|
@@ -9603,6 +9603,21 @@ async function update$37(logicalId, physicalId, resourceType, properties, previo
|
|
|
9603
9603
|
const liveManaged = desiredCapacity !== void 0 || recordedCapacity !== void 0 ? (await this.lambdaClient.send(new GetFunctionCommand({ FunctionName: physicalId }))).Configuration?.CapacityProviderConfig !== void 0 : false;
|
|
9604
9604
|
if (liveManaged && desiredCapacity === void 0) throw markNonRetryable(new ProvisioningError(`Lambda function ${logicalId} cannot lose its CapacityProviderConfig: AWS does not support removing it from a function. Keep the property, or replace the function under a new logical id.`, resourceType, logicalId, physicalId));
|
|
9605
9605
|
const capacityNeverApplied = !liveManaged && desiredCapacity !== void 0 && recordedCapacity !== void 0;
|
|
9606
|
+
let waitedForActive = false;
|
|
9607
|
+
const sendOnceActive = async (send) => {
|
|
9608
|
+
try {
|
|
9609
|
+
return await send();
|
|
9610
|
+
} catch (error) {
|
|
9611
|
+
if (waitedForActive || liveManaged || !isLambdaPendingRefusal(error)) throw error;
|
|
9612
|
+
waitedForActive = true;
|
|
9613
|
+
const budgetMs = Math.min(this.functionUpdateMaxWaitSeconds * 1e3, enclosingDeadlineRemainingMs() - this.latestPublishedDeadlineMarginMs);
|
|
9614
|
+
if (budgetMs < 1e3) throw error;
|
|
9615
|
+
log.debug(`Lambda function ${log.value(physicalId)} is still Pending; waiting for it to be Active`);
|
|
9616
|
+
await this.waitForFunctionActive(logicalId, resourceType, physicalId, log, Math.floor(budgetMs / 1e3));
|
|
9617
|
+
if (enclosingDeadlineExpired()) throw error;
|
|
9618
|
+
return await send();
|
|
9619
|
+
}
|
|
9620
|
+
};
|
|
9606
9621
|
if (capacityNeverApplied) log.warn(`Lambda function ${logicalId} is not a Managed Instances function on AWS, so its CapacityProviderConfig and FunctionScalingConfig are not applied. Replace the function to apply them.`);
|
|
9607
9622
|
const configFields = [
|
|
9608
9623
|
"Role",
|
|
@@ -9656,7 +9671,7 @@ async function update$37(logicalId, physicalId, resourceType, properties, previo
|
|
|
9656
9671
|
RuntimeConfig: properties["RuntimeConfig"]
|
|
9657
9672
|
};
|
|
9658
9673
|
for (const field of changedConfigFields) markUnsettled(field);
|
|
9659
|
-
await this.lambdaClient.send(new UpdateFunctionConfigurationCommand(configParams));
|
|
9674
|
+
await sendOnceActive(() => this.lambdaClient.send(new UpdateFunctionConfigurationCommand(configParams)));
|
|
9660
9675
|
log.debug(`Updated configuration for Lambda function ${log.value(physicalId)}`);
|
|
9661
9676
|
await this.waitForFunctionUpdated(logicalId, resourceType, physicalId, log);
|
|
9662
9677
|
}
|
|
@@ -9664,7 +9679,7 @@ async function update$37(logicalId, physicalId, resourceType, properties, previo
|
|
|
9664
9679
|
const codeSigningChanged = newCodeSigningConfigArn !== previousProperties["CodeSigningConfigArn"];
|
|
9665
9680
|
if (codeSigningChanged && newCodeSigningConfigArn === void 0) {
|
|
9666
9681
|
markUnsettled("CodeSigningConfigArn");
|
|
9667
|
-
await this.lambdaClient.send(new DeleteFunctionCodeSigningConfigCommand({ FunctionName: physicalId }));
|
|
9682
|
+
await sendOnceActive(() => this.lambdaClient.send(new DeleteFunctionCodeSigningConfigCommand({ FunctionName: physicalId })));
|
|
9668
9683
|
log.debug(`Detached CodeSigningConfigArn from Lambda function ${log.value(physicalId)} (template removed the property)`);
|
|
9669
9684
|
}
|
|
9670
9685
|
const newCode = properties["Code"];
|
|
@@ -9686,7 +9701,7 @@ async function update$37(logicalId, physicalId, resourceType, properties, previo
|
|
|
9686
9701
|
};
|
|
9687
9702
|
markUnsettled("Code");
|
|
9688
9703
|
if (architecturesChanged) markUnsettled("Architectures");
|
|
9689
|
-
await this.lambdaClient.send(new UpdateFunctionCodeCommand(codeParams));
|
|
9704
|
+
await sendOnceActive(() => this.lambdaClient.send(new UpdateFunctionCodeCommand(codeParams)));
|
|
9690
9705
|
log.debug(`Updated code for Lambda function ${log.value(physicalId)}`);
|
|
9691
9706
|
await this.waitForFunctionUpdated(logicalId, resourceType, physicalId, log);
|
|
9692
9707
|
}
|
|
@@ -9694,39 +9709,39 @@ async function update$37(logicalId, physicalId, resourceType, properties, previo
|
|
|
9694
9709
|
const prevRecursiveLoop = previousProperties["RecursiveLoop"];
|
|
9695
9710
|
if (newRecursiveLoop !== void 0 && newRecursiveLoop !== prevRecursiveLoop) {
|
|
9696
9711
|
markUnsettled("RecursiveLoop");
|
|
9697
|
-
await this.lambdaClient.send(new PutFunctionRecursionConfigCommand({
|
|
9712
|
+
await sendOnceActive(() => this.lambdaClient.send(new PutFunctionRecursionConfigCommand({
|
|
9698
9713
|
FunctionName: physicalId,
|
|
9699
9714
|
RecursiveLoop: newRecursiveLoop
|
|
9700
|
-
}));
|
|
9715
|
+
})));
|
|
9701
9716
|
log.debug(`Updated RecursiveLoop for Lambda function ${log.value(physicalId)} to '${log.value(newRecursiveLoop)}'`);
|
|
9702
9717
|
}
|
|
9703
9718
|
const newReservedConcurrentExecutions = properties["ReservedConcurrentExecutions"];
|
|
9704
9719
|
if (newReservedConcurrentExecutions !== previousProperties["ReservedConcurrentExecutions"]) {
|
|
9705
9720
|
markUnsettled("ReservedConcurrentExecutions");
|
|
9706
9721
|
if (newReservedConcurrentExecutions === void 0) {
|
|
9707
|
-
await this.lambdaClient.send(new DeleteFunctionConcurrencyCommand({ FunctionName: physicalId }));
|
|
9722
|
+
await sendOnceActive(() => this.lambdaClient.send(new DeleteFunctionConcurrencyCommand({ FunctionName: physicalId })));
|
|
9708
9723
|
log.debug(`Cleared ReservedConcurrentExecutions for Lambda function ${log.value(physicalId)} (template removed the property)`);
|
|
9709
9724
|
} else {
|
|
9710
|
-
await this.lambdaClient.send(new PutFunctionConcurrencyCommand({
|
|
9725
|
+
await sendOnceActive(() => this.lambdaClient.send(new PutFunctionConcurrencyCommand({
|
|
9711
9726
|
FunctionName: physicalId,
|
|
9712
9727
|
ReservedConcurrentExecutions: newReservedConcurrentExecutions
|
|
9713
|
-
}));
|
|
9728
|
+
})));
|
|
9714
9729
|
log.debug(`Updated ReservedConcurrentExecutions for Lambda function ${log.value(physicalId)} to ${log.value(newReservedConcurrentExecutions)}`);
|
|
9715
9730
|
}
|
|
9716
9731
|
}
|
|
9717
9732
|
if (codeSigningChanged && newCodeSigningConfigArn !== void 0) {
|
|
9718
9733
|
markUnsettled("CodeSigningConfigArn");
|
|
9719
|
-
await this.lambdaClient.send(new PutFunctionCodeSigningConfigCommand({
|
|
9734
|
+
await sendOnceActive(() => this.lambdaClient.send(new PutFunctionCodeSigningConfigCommand({
|
|
9720
9735
|
FunctionName: physicalId,
|
|
9721
9736
|
CodeSigningConfigArn: newCodeSigningConfigArn
|
|
9722
|
-
}));
|
|
9737
|
+
})));
|
|
9723
9738
|
log.debug(`Updated CodeSigningConfigArn for Lambda function ${log.value(physicalId)} to ${log.value(newCodeSigningConfigArn)}`);
|
|
9724
9739
|
}
|
|
9725
9740
|
const newRuntimeManagementConfig = properties["RuntimeManagementConfig"];
|
|
9726
9741
|
const prevRuntimeManagementConfig = previousProperties["RuntimeManagementConfig"];
|
|
9727
9742
|
if (newRuntimeManagementConfig?.["UpdateRuntimeOn"] !== prevRuntimeManagementConfig?.["UpdateRuntimeOn"] || newRuntimeManagementConfig?.["RuntimeVersionArn"] !== prevRuntimeManagementConfig?.["RuntimeVersionArn"]) {
|
|
9728
9743
|
markUnsettled("RuntimeManagementConfig");
|
|
9729
|
-
await this.putRuntimeManagementConfig(physicalId, newRuntimeManagementConfig ?? { UpdateRuntimeOn: "Auto" });
|
|
9744
|
+
await sendOnceActive(() => this.putRuntimeManagementConfig(physicalId, newRuntimeManagementConfig ?? { UpdateRuntimeOn: "Auto" }));
|
|
9730
9745
|
log.debug(`Updated RuntimeManagementConfig for Lambda function ${log.value(physicalId)} to ${JSON.stringify(maskDeep(newRuntimeManagementConfig ?? { UpdateRuntimeOn: "Auto" }, operationMask))}`);
|
|
9731
9746
|
}
|
|
9732
9747
|
if (liveManaged && desiredCapacity !== void 0) {
|
|
@@ -9758,7 +9773,8 @@ async function update$37(logicalId, physicalId, resourceType, properties, previo
|
|
|
9758
9773
|
const functionArn = getResponse.Configuration?.FunctionArn;
|
|
9759
9774
|
await this.applyTagDiff(functionArn, physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"], log, {
|
|
9760
9775
|
forceUpsert: context?.unsettledProperties?.has("Tags") === true,
|
|
9761
|
-
beforeWrite: () => markUnsettled("Tags")
|
|
9776
|
+
beforeWrite: () => markUnsettled("Tags"),
|
|
9777
|
+
send: sendOnceActive
|
|
9762
9778
|
});
|
|
9763
9779
|
return {
|
|
9764
9780
|
physicalId,
|
|
@@ -9776,6 +9792,7 @@ async function applyTagDiff$19(functionArn, functionName, resourceType, logicalI
|
|
|
9776
9792
|
beforeWrite: () => void 0
|
|
9777
9793
|
}) {
|
|
9778
9794
|
if (!functionArn) return;
|
|
9795
|
+
const send = unsettled.send ?? ((call) => call());
|
|
9779
9796
|
const plan = planTagDiff(oldTagsRaw, newTagsRaw);
|
|
9780
9797
|
const tagWarning = tagPlanWarning(plan, resourceType, logicalId);
|
|
9781
9798
|
if (tagWarning !== void 0) log.warn(tagWarning);
|
|
@@ -9783,17 +9800,17 @@ async function applyTagDiff$19(functionArn, functionName, resourceType, logicalI
|
|
|
9783
9800
|
const tagsToRemove = plan.remove;
|
|
9784
9801
|
if (tagsToRemove.length > 0 || Object.keys(tagsToAdd).length > 0) unsettled.beforeWrite();
|
|
9785
9802
|
if (tagsToRemove.length > 0) {
|
|
9786
|
-
await this.lambdaClient.send(new UntagResourceCommand$1({
|
|
9803
|
+
await send(() => this.lambdaClient.send(new UntagResourceCommand$1({
|
|
9787
9804
|
Resource: functionArn,
|
|
9788
9805
|
TagKeys: tagsToRemove
|
|
9789
|
-
}));
|
|
9806
|
+
})));
|
|
9790
9807
|
log.debug(`Removed ${tagsToRemove.length} tag(s) from Lambda function ${log.value(functionName)}`);
|
|
9791
9808
|
}
|
|
9792
9809
|
if (Object.keys(tagsToAdd).length > 0) {
|
|
9793
|
-
await this.lambdaClient.send(new TagResourceCommand$1({
|
|
9810
|
+
await send(() => this.lambdaClient.send(new TagResourceCommand$1({
|
|
9794
9811
|
Resource: functionArn,
|
|
9795
9812
|
Tags: tagsToAdd
|
|
9796
|
-
}));
|
|
9813
|
+
})));
|
|
9797
9814
|
log.debug(`Added/updated ${Object.keys(tagsToAdd).length} tag(s) on Lambda function ${log.value(functionName)}`);
|
|
9798
9815
|
}
|
|
9799
9816
|
}
|
|
@@ -9810,6 +9827,23 @@ async function waitForFunctionUpdated(logicalId, resourceType, functionName, log
|
|
|
9810
9827
|
throw this.wrapMaskedError(log, error, (text) => new ProvisioningError(`Lambda function ${logicalId} update did not complete: ${text}`, resourceType, logicalId, functionName, cause ?? new Error(safeStringify(error))));
|
|
9811
9828
|
}
|
|
9812
9829
|
}
|
|
9830
|
+
const LAMBDA_PENDING_REFUSAL = /currently in the following state: '?Pending\b/;
|
|
9831
|
+
function isLambdaPendingRefusal(error) {
|
|
9832
|
+
return LAMBDA_PENDING_REFUSAL.test(describeAwsFailure(error).detail);
|
|
9833
|
+
}
|
|
9834
|
+
async function waitForFunctionActive(logicalId, resourceType, functionName, log, maxWaitSeconds) {
|
|
9835
|
+
try {
|
|
9836
|
+
await waitUntilFunctionActiveV2({
|
|
9837
|
+
client: this.lambdaClient,
|
|
9838
|
+
maxWaitTime: maxWaitSeconds,
|
|
9839
|
+
minDelay: 1,
|
|
9840
|
+
maxDelay: 5
|
|
9841
|
+
}, { FunctionName: functionName });
|
|
9842
|
+
} catch (error) {
|
|
9843
|
+
const cause = error instanceof Error ? error : void 0;
|
|
9844
|
+
throw this.wrapMaskedError(log, error, (text) => new ProvisioningError(`Lambda function ${logicalId} did not become Active: ${text}`, resourceType, logicalId, functionName, cause ?? new Error(safeStringify(error))));
|
|
9845
|
+
}
|
|
9846
|
+
}
|
|
9813
9847
|
async function waitForLambdaUpdateCompleted(functionName) {
|
|
9814
9848
|
const start = Date.now();
|
|
9815
9849
|
let delay = this.eniWaitInitialDelayMs;
|
|
@@ -10434,6 +10468,9 @@ var LambdaFunctionProvider = class {
|
|
|
10434
10468
|
waitForFunctionUpdated(logicalId, resourceType, functionName, log) {
|
|
10435
10469
|
return waitForFunctionUpdated.call(this, logicalId, resourceType, functionName, log);
|
|
10436
10470
|
}
|
|
10471
|
+
waitForFunctionActive(logicalId, resourceType, functionName, log, maxWaitSeconds) {
|
|
10472
|
+
return waitForFunctionActive.call(this, logicalId, resourceType, functionName, log, maxWaitSeconds);
|
|
10473
|
+
}
|
|
10437
10474
|
waitForLambdaUpdateCompleted(functionName) {
|
|
10438
10475
|
return waitForLambdaUpdateCompleted.call(this, functionName);
|
|
10439
10476
|
}
|
|
@@ -14986,7 +15023,10 @@ async function readCurrentState$33(physicalId, _logicalId, _resourceType, proper
|
|
|
14986
15023
|
tableArn ? this.readTableTags(tableArn) : Promise.resolve(void 0),
|
|
14987
15024
|
this.readPointInTimeRecovery(physicalId),
|
|
14988
15025
|
this.readTimeToLive(physicalId),
|
|
14989
|
-
tableArn ? this.readTableResourcePolicy(physicalId, tableArn
|
|
15026
|
+
tableArn ? this.readTableResourcePolicy(physicalId, tableArn, false, properties !== void 0 && bagInformative ? {
|
|
15027
|
+
desired: properties,
|
|
15028
|
+
afterOwnWrite: context?.afterOwnWrite === true
|
|
15029
|
+
} : void 0) : Promise.resolve(void 0),
|
|
14990
15030
|
this.readKinesisStreamSpecification(physicalId),
|
|
14991
15031
|
this.readTableContributorInsights(physicalId),
|
|
14992
15032
|
this.readIndexContributorInsights(physicalId, result, properties, bagInformative),
|
|
@@ -15042,16 +15082,36 @@ async function readTimeToLive(physicalId, strict = false) {
|
|
|
15042
15082
|
return;
|
|
15043
15083
|
}
|
|
15044
15084
|
}
|
|
15045
|
-
async function readTableResourcePolicy(physicalId, tableArn, strict = false) {
|
|
15085
|
+
async function readTableResourcePolicy(physicalId, tableArn, strict = false, settle) {
|
|
15086
|
+
const declared = settle !== void 0 && streamDeclaresPolicy(settle.desired);
|
|
15087
|
+
const afterOwnWrite = settle?.afterOwnWrite === true;
|
|
15088
|
+
let lastPolicy;
|
|
15046
15089
|
try {
|
|
15047
|
-
const
|
|
15048
|
-
|
|
15049
|
-
|
|
15090
|
+
const readOnce = async () => {
|
|
15091
|
+
try {
|
|
15092
|
+
lastPolicy = (await this.dynamoDBClient.send(new GetResourcePolicyCommand({ ResourceArn: tableArn }))).Policy;
|
|
15093
|
+
} catch (err) {
|
|
15094
|
+
if (settle === void 0 || !(err instanceof PolicyNotFoundException)) throw err;
|
|
15095
|
+
lastPolicy = void 0;
|
|
15096
|
+
}
|
|
15097
|
+
return lastPolicy;
|
|
15098
|
+
};
|
|
15099
|
+
const livePolicy = settle === void 0 || !declared && !afterOwnWrite ? await readOnce() : await this.reAskUntilSettled(readOnce, (answer) => declared ? streamPolicyMatchesDeclared(answer, settle.desired) : answer === void 0 || answer === "");
|
|
15100
|
+
const keepDeclared = afterOwnWrite && declared;
|
|
15101
|
+
if (!livePolicy) return keepDeclared ? declaredStreamPolicyMember(settle?.desired) : void 0;
|
|
15102
|
+
if (settle !== void 0) return keepDeclared && !streamPolicyMatchesDeclared(livePolicy, settle.desired) ? declaredStreamPolicyMember(settle.desired) : reverseMapStreamPolicy(livePolicy, settle.desired);
|
|
15103
|
+
let doc = livePolicy;
|
|
15050
15104
|
try {
|
|
15051
|
-
doc = JSON.parse(
|
|
15105
|
+
doc = JSON.parse(livePolicy);
|
|
15052
15106
|
} catch {}
|
|
15053
15107
|
return { PolicyDocument: doc };
|
|
15054
15108
|
} catch (err) {
|
|
15109
|
+
const answered = lastPolicy !== void 0 && lastPolicy !== "";
|
|
15110
|
+
if (declared && afterOwnWrite && (answered || isTransientStreamReadFailure(err))) {
|
|
15111
|
+
this.logger.debug(safeMsg`Kept the declared ResourcePolicy of ${physicalId} in the baseline captured after its write: the read failed before it settled`);
|
|
15112
|
+
return declaredStreamPolicyMember(settle?.desired);
|
|
15113
|
+
}
|
|
15114
|
+
if (declared && answered) return reverseMapStreamPolicy(lastPolicy, settle?.desired);
|
|
15055
15115
|
if (strict && !(err instanceof ResourceNotFoundException$1) && !(err instanceof PolicyNotFoundException)) throw err;
|
|
15056
15116
|
if (!(err instanceof ResourceNotFoundException$1)) this.logger.debug(`Could not read ResourcePolicy for ${physicalId}: ${describeAwsFailure(err).detail}`);
|
|
15057
15117
|
return;
|
|
@@ -15131,16 +15191,15 @@ async function readStreamMembers(tableName, streamArn, desiredBlock, streamBlock
|
|
|
15131
15191
|
return lastPolicy;
|
|
15132
15192
|
}, (answer) => streamPolicyMatchesDeclared(answer, desiredBlock));
|
|
15133
15193
|
if (afterOwnWrite && (livePolicy === void 0 || livePolicy === "")) keepDeclared(STREAM_POLICY_KEY, "the read still found no policy");
|
|
15194
|
+
else if (afterOwnWrite && !streamPolicyMatchesDeclared(livePolicy, desiredBlock)) keepDeclared(STREAM_POLICY_KEY, "the read still found another policy");
|
|
15134
15195
|
else {
|
|
15135
15196
|
const member = reverseMapStreamPolicy(livePolicy, desiredBlock);
|
|
15136
15197
|
if (member !== void 0) streamBlock[STREAM_POLICY_KEY] = member;
|
|
15137
15198
|
}
|
|
15138
15199
|
} catch (err) {
|
|
15139
15200
|
this.logger.debug(`Could not read the stream ResourcePolicy for ${tableName}: ${describeAwsFailure(err).detail}`);
|
|
15140
|
-
if (afterOwnWrite &&
|
|
15141
|
-
|
|
15142
|
-
if (member !== void 0) streamBlock[STREAM_POLICY_KEY] = member;
|
|
15143
|
-
} else if (afterOwnWrite && isTransientStreamReadFailure(err)) keepDeclared(STREAM_POLICY_KEY, "the read failed transiently");
|
|
15201
|
+
if (afterOwnWrite && isTransientStreamReadFailure(err)) keepDeclared(STREAM_POLICY_KEY, "the read failed transiently");
|
|
15202
|
+
else if (afterOwnWrite && lastPolicy !== void 0 && lastPolicy !== "") keepDeclared(STREAM_POLICY_KEY, "the read failed after an unsettled answer");
|
|
15144
15203
|
}
|
|
15145
15204
|
}
|
|
15146
15205
|
if (streamDeclaresTags(desiredBlock)) {
|
|
@@ -25097,7 +25156,7 @@ async function withDependencyViolationRetry(operation, opts) {
|
|
|
25097
25156
|
} catch (error) {
|
|
25098
25157
|
if (!this.isDependencyViolationError(error)) throw error;
|
|
25099
25158
|
const elapsed = Date.now() - startedAt;
|
|
25100
|
-
if (elapsed >= totalBudgetMs) throw error;
|
|
25159
|
+
if (elapsed >= totalBudgetMs) throw markNonRetryable(error);
|
|
25101
25160
|
attempt += 1;
|
|
25102
25161
|
const sleepMs = Math.min(delay, totalBudgetMs - elapsed);
|
|
25103
25162
|
const message = describeAwsFailure(error).detail;
|
|
@@ -65502,4 +65561,4 @@ var ACMCertificateProvider = class {
|
|
|
65502
65561
|
};
|
|
65503
65562
|
|
|
65504
65563
|
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeArchiveProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, LogsDeliverySourceProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider };
|
|
65505
|
-
//# sourceMappingURL=provider-classes-
|
|
65564
|
+
//# sourceMappingURL=provider-classes-CwFJ4uJU.js.map
|