@cdkd/cli 0.373.3 → 0.373.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-ChOenyD2.js → ambient-client-defaults-DtG0A5aG.js} +3 -3
- package/dist/{ambient-client-defaults-ChOenyD2.js.map → ambient-client-defaults-DtG0A5aG.js.map} +1 -1
- package/dist/{asg-provider-Bfinx42n.js → asg-provider-BmCui3zx.js} +8 -8
- package/dist/{asg-provider-Bfinx42n.js.map → asg-provider-BmCui3zx.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{created-resource-sink-D7iM5jwM.js → created-resource-sink-DVzNDZ-N.js} +4 -4
- package/dist/{created-resource-sink-D7iM5jwM.js.map → created-resource-sink-DVzNDZ-N.js.map} +1 -1
- package/dist/{custom-resource-runtime-9fjsDVrs.js → custom-resource-runtime-pm6t9jBv.js} +6 -6
- package/dist/{custom-resource-runtime-9fjsDVrs.js.map → custom-resource-runtime-pm6t9jBv.js.map} +1 -1
- package/dist/{db-associated-roles-Bn8HCQ2r.js → db-associated-roles-C607MnbC.js} +2 -2
- package/dist/{db-associated-roles-Bn8HCQ2r.js.map → db-associated-roles-C607MnbC.js.map} +1 -1
- package/dist/{delete-started-CiTP5c3_.js → delete-started-C_hilY_A.js} +4 -4
- package/dist/{delete-started-CiTP5c3_.js.map → delete-started-C_hilY_A.js.map} +1 -1
- package/dist/{deploy-engine-D7Iv9v8e.js → deploy-engine-BEzzfllj.js} +172 -50
- package/dist/deploy-engine-BEzzfllj.js.map +1 -0
- package/dist/{ec2-termination-protection-BXy91mrW.js → ec2-termination-protection-BeYoGs66.js} +3 -3
- package/dist/{ec2-termination-protection-BXy91mrW.js.map → ec2-termination-protection-BeYoGs66.js.map} +1 -1
- package/dist/{ecr-uri-DUDwEekn.js → ecr-uri-DcNB-WSe.js} +2 -2
- package/dist/{ecr-uri-DUDwEekn.js.map → ecr-uri-DcNB-WSe.js.map} +1 -1
- package/dist/{emr-cluster-provider-MokUAEGh.js → emr-cluster-provider-TaiGpHEX.js} +10 -10
- package/dist/{emr-cluster-provider-MokUAEGh.js.map → emr-cluster-provider-TaiGpHEX.js.map} +1 -1
- package/dist/{expected-bucket-owner-BrzB1C4p.js → expected-bucket-owner-DASdeJRs.js} +2 -2
- package/dist/{expected-bucket-owner-BrzB1C4p.js.map → expected-bucket-owner-DASdeJRs.js.map} +1 -1
- package/dist/{iam-role-provider-CB--BYVm.js → iam-role-provider-ob3lrDNI.js} +12 -12
- package/dist/{iam-role-provider-CB--BYVm.js.map → iam-role-provider-ob3lrDNI.js.map} +1 -1
- package/dist/{identity-read-denied-CoeMBkCz.js → identity-read-denied-CGR1hIyA.js} +4 -4
- package/dist/{identity-read-denied-CoeMBkCz.js.map → identity-read-denied-CGR1hIyA.js.map} +1 -1
- package/dist/{image-plan-RNp8hqc4.js → image-plan-BWFMyIRS.js} +9 -9
- package/dist/{image-plan-RNp8hqc4.js.map → image-plan-BWFMyIRS.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-Bfz63gW5.js → logger-8a4raAC-.js} +2 -2
- package/dist/{logger-Bfz63gW5.js.map → logger-8a4raAC-.js.map} +1 -1
- package/dist/{neptune-provider-BFwovty1.js → neptune-provider-C8fiHA_U.js} +9 -9
- package/dist/{neptune-provider-BFwovty1.js.map → neptune-provider-C8fiHA_U.js.map} +1 -1
- package/dist/{program-DR3X8-7x.js → program-BCit4cJS.js} +156 -102
- package/dist/program-BCit4cJS.js.map +1 -0
- package/dist/{provider-classes-BNZGFwNO.js → provider-classes-BydpQUFi.js} +153 -34
- package/dist/provider-classes-BydpQUFi.js.map +1 -0
- package/dist/{rds-provider-evebINWq.js → rds-provider-Dv0lcb0m.js} +13 -13
- package/dist/{rds-provider-evebINWq.js.map → rds-provider-Dv0lcb0m.js.map} +1 -1
- package/dist/{read-replica-BGoRAh10.js → read-replica-BQ87f_Oe.js} +3 -3
- package/dist/{read-replica-BGoRAh10.js.map → read-replica-BQ87f_Oe.js.map} +1 -1
- package/dist/{redacted-delete-address-rTL8ikg4.js → redacted-delete-address-BrPnoyD9.js} +4 -4
- package/dist/{redacted-delete-address-rTL8ikg4.js.map → redacted-delete-address-BrPnoyD9.js.map} +1 -1
- package/dist/{replacement-rules-roVU6gYR.js → replacement-rules-HtPsWZIV.js} +31 -19
- package/dist/replacement-rules-HtPsWZIV.js.map +1 -0
- package/dist/{resource-deadline-B4Rp-3f7.js → resource-deadline-nSheE7zd.js} +2 -2
- package/dist/{resource-deadline-B4Rp-3f7.js.map → resource-deadline-nSheE7zd.js.map} +1 -1
- package/dist/{restore-source-guard-Dz_vQPiM.js → restore-source-guard-BIaZBr57.js} +4 -4
- package/dist/{restore-source-guard-Dz_vQPiM.js.map → restore-source-guard-BIaZBr57.js.map} +1 -1
- package/dist/{run-cli-vKsR6JeT.js → run-cli-OPPhPXxz.js} +2 -2
- package/dist/{run-cli-vKsR6JeT.js.map → run-cli-OPPhPXxz.js.map} +1 -1
- package/dist/{secret-reference-immutable-BF02Wobz.js → secret-reference-immutable-OIvSuvpM.js} +6 -6
- package/dist/{secret-reference-immutable-BF02Wobz.js.map → secret-reference-immutable-OIvSuvpM.js.map} +1 -1
- package/dist/{settle-own-write-members-CF-RPYMD.js → settle-own-write-members-fY5JNYhA.js} +10 -10
- package/dist/{settle-own-write-members-CF-RPYMD.js.map → settle-own-write-members-fY5JNYhA.js.map} +1 -1
- package/dist/{tag-list-DbmXev9Z.js → tag-list-CmpwQ18R.js} +4 -4
- package/dist/{tag-list-DbmXev9Z.js.map → tag-list-CmpwQ18R.js.map} +1 -1
- package/dist/{version-CP9RYTCy.js → version-DwQIlsjN.js} +2 -2
- package/dist/{version-CP9RYTCy.js.map → version-DwQIlsjN.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-D7Iv9v8e.js.map +0 -1
- package/dist/program-DR3X8-7x.js.map +0 -1
- package/dist/provider-classes-BNZGFwNO.js.map +0 -1
- package/dist/replacement-rules-roVU6gYR.js.map +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { _ as verifyOwnIdentityBeforeUpdate, a as stackOwnHolders, b as isEntityAlreadyExists, c as clearOwnWriteRemovals, d as takeOwnWriteRemovals, f as InlinePolicyPrincipalMismatchError, g as verifyInlinePolicyPrincipals, h as compareMembershipWrites, i as isStackOwnHolder, l as recordOwnWriteRemoval, m as assertInlinePolicyAttachTargets, n as collectInlinePolicyNamesManagedBySiblings, o as planInlinePolicyNames, p as MANAGED_POLICY_OWNER, r as heldText, s as sameInlinePolicyName, t as IAMRoleProvider, u as restoreOwnWriteRemovals, v as deferIamPropagationSettle, x as IamCreateClientCache, y as iamEntityLeftByThisCreate } 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 { _ as verifyOwnIdentityBeforeUpdate, a as stackOwnHolders, b as isEntityAlreadyExists, c as clearOwnWriteRemovals, d as takeOwnWriteRemovals, f as InlinePolicyPrincipalMismatchError, g as verifyInlinePolicyPrincipals, h as compareMembershipWrites, i as isStackOwnHolder, l as recordOwnWriteRemoval, m as assertInlinePolicyAttachTargets, n as collectInlinePolicyNamesManagedBySiblings, o as planInlinePolicyNames, p as MANAGED_POLICY_OWNER, r as heldText, s as sameInlinePolicyName, t as IAMRoleProvider, u as restoreOwnWriteRemovals, v as deferIamPropagationSettle, x as IamCreateClientCache, y as iamEntityLeftByThisCreate } from "./iam-role-provider-ob3lrDNI.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, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-8a4raAC-.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { $ as AccountIdUnavailableError, B as isTransientServerError, D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markNonRetryable, K as markRedactedCause, L as isExplicitDenyError, M as explicitDenyPolicyKind, O as relayedNameCollision, W as isThrottlingError, _ as ResourceUpdateNotSupportedError, i as credentialFingerprint, n as ambientCredentialConfig, ot as ProvisioningError, q as wrapMaskedAwsError, r as clientDefaultsFor, t as ambientClientDefaults, tt as CdkdError, x as hasReplayMayCollide, z as isRetryableTransientError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as ElapsedBudget, A as readNameProperty, B as rdsFamilyProtectionSite, C as VALUE_NOT_SHOWN, Ct as startInterruptWatch, D as isQuotableImportValue, Dt as compositeIdSkipResult, E as isPlainImportValue, Et as compositeIdSeparatorRefusal, F as markNotGone, Ft as isSecretDerivedValue, Gi as withPasteableAwsProfile, Gr as recordAttributeIdCopy, Gt as isAuxiliaryFailure, H as userPoolProtectionSite, Ir as recoverMaskedOutput, It as maskDeep, Jt as markCreatedBeforeFailure, K as isProceedDbStatus, Ki as injectiveKey, L as deleteWithProtectionCompensation, Lt as maskerOrIdentity, M as remedyLogicalId, Mt as stateOrphanRecordRemedy, N as resolveExplicitPhysicalId, Nn as snapshotPassProvenance, Nt as createMaskedLogSinks, O as normalizeAwsTagsToCfn, Ot as logicalIdShown, Pt as createMaskedRetryLogger, R as logGroupProtectionSite, Rn as hasMaskableValues, Rt as withDerivedNameMasks, S as holderRefusalRun, St as isInterruptedWaitError, T as isPlainImportJson, Tt as compositeIdFormatMessage, U as PROTECTION_FLIP_RETRY_WAIT_MS, Vt as clearCreatedBeforeFailure, W as deleteAfterProtectionFlipWithFinalSnapshot, Wr as physicalNameCopiesOf, X as isTerminalDeleteFailure, Xr as dynamicReferenceTokens, Y as ProtectionFlipRegistry, Yt as markSupersedesEarlierCreate, Z as protectionFlipKey, _ as withoutServerErrorRetries, _t as recordedPrincipalsRepair, at as isAwsCliLiteral, b as assertRegionMatch, c as AmbiguousCreateLatch, cn as recordedSecrecyOf, ct as renderDisableCommand, d as ambiguousAttemptLead, dr as withoutPhysicalNameCopies, dt as SECRET_DERIVED_READ_LIVE, en as holdsMaskLeaf, et as ElapsedBudgetRegistry, f as createAttemptKey, ft as diffPrincipalNames, g as setBounded, h as replayedSendWindow, hn as markSameGenerationBag, ht as readPrincipalLists, i as reportCreatedResource, ii as carriesSecretMask, it as WITHHELD_AWS_COMMAND, j as refusalTypeShown, jn as recordReferenceProvenanceEntry, jt as segmentAfterAnchor, k as quotedRemedyLogicalId, kt as packCompositeId, l as CREATION_DATE_SKEW_MARGIN_MS, m as replayFollowedAmbiguousAttempt, mt as onlySecretDerived, o as retractCreatedResource, ot as pasteableAwsCommand, p as isInsideWindow, pt as holdsSecretDerivedEntry, q as isTerminalDbWaitStatus, qi as injectiveKeyPrefix, qt as markAuxiliaryFailure, rn as mentionsDynamicReference, rt as UNNAMEABLE_ID_CLAUSE, s as AMBIGUOUS_LATCH_TTL_MS, st as protectedReplacementAdvice, u as RecentIdSet, v as DriftReadRefusedError, w as importRemedyCommand, wn as redactForState, wt as canonicalizeRoute53QueryName, x as holderRefusalMask, y as RESOURCE_NOT_FOUND, z as observeThenDisableProtection } from "./created-resource-sink-
|
|
6
|
-
import { A as displayStackName, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, _ 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 { S as isoTimestampAttribute, a as lookupEachName, c as RecordedIdentityMismatchError, g as identityTimestamp, i as isAccessDeniedError, l as assertRecordedIdentity, n as isPermissionDenial, o as withApiLimit, p as recordedIdentityId, r as chunks, s as RecordedIdentityError, t as deniedIdentityReadRefusal } from "./identity-read-denied-
|
|
8
|
-
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-
|
|
9
|
-
import { $ as effectiveInventoryItem, A as withRecordedCidrSpelling, B as LIFECYCLE_DEFAULT_STATUS, C as securityGroupReadbackDelays, D as stackIngressRuleHolder, E as singleSecurityGroupRuleId, F as clearLifecycleWritesOf, G as canonicalizeItemList, H as LIFECYCLE_RULE_PATH, I as lifecycleSettleTarget, J as lifecycleUsesFilterForm, K as effectiveLifecycleConfiguration, L as recordLifecycleWrite, M as sgRemovalRuleKey, N as sgRuleListMember, O as survivingRecordOfRuleId, P as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, Q as effectiveIntelligentTieringItem, R as settleLifecycleRead, S as reconcileSgRules, T as sgRuleKey, U as LIFECYCLE_TAG_FILTERS_PATH, V as LIFECYCLE_FILTER_PATH, W as canonicalizeBlock, X as EVENTBRIDGE_CONFIG_PATH, Y as parseCfnTimestamp, Z as effectiveAnalyticsItem, _ as ingressRuleIdentity, a as refuseRevertRevokingSiblingRules, at as declaresBucketObjectLock, b as isResendableSocketFailure, c as siblingIdOwnedSgRules, ct as isPlainObject$4, d as authorizeDefinitelyNotApplied, dt as shownLifecycleRuleId, et as effectiveNotificationConfiguration, f as canonicalizeSgInlineRuleProtocols, g as flattenIpPermissions, h as descriptionKey, i as resolveSecretDerivedPrincipals, it as configItemId, j as markCopiesAgreed, k as tagListsMatch, l as SG_READBACK_RETRY_DELAY_MS, lt as manualBucketDeletionClause, m as comparableIngressIdentity, n as holdsUnprovenSecretPrincipalToken, nt as caughtErrorName, o as sgRuleDiffKey, ot as declaresNestedObjectLock, p as canonicalizeSgRuleProtocol, q as lifecycleRuleScope, r as isResolvableSecretPrincipalList, rt as coerceCfnNumber, s as readSgIngressById, st as describeValue$1, t as runDestroyForStack, tt as eventBridgeEnabledOf, u as SG_RULE_PAGE_SIZE, ut as mergeLegacySingular, v as isConnectTimeout, w as securityGroupRuleMatchesCfnIngress, x as narrowIngressIpProtocol, y as isDefaultEgressRule, z as takeLifecycleWrite } from "./program-
|
|
10
|
-
import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-
|
|
11
|
-
import { $ as streamTagsMatchDeclared, $
|
|
12
|
-
import { a as refuseMalformedDesiredTags, i as readTagList, n as DBPROXY_TAG_OPTIONS, o as tagMapAsList, r as planTagDiff, s as tagPlanWarning, t as DBPROXY_TAGS_WHAT } from "./tag-list-
|
|
13
|
-
import { _ as isUsableAttemptedName, c as definedAttributes, d as awaitDeferredResource, h as throwIfReadinessAborted, i as refuseRestoreFromItself, l as stringifyIfAssigned, m as deferReadiness, o as isModifyNotAvailableRefusal, s as modifyDbInstanceWhenAvailable, u as abortableSleep } from "./restore-source-guard-
|
|
14
|
-
import { T as timePhase, n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer, v as withRetry } from "./secret-reference-immutable-
|
|
15
|
-
import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-
|
|
4
|
+
import { $ as AccountIdUnavailableError, B as isTransientServerError, D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markNonRetryable, K as markRedactedCause, L as isExplicitDenyError, M as explicitDenyPolicyKind, O as relayedNameCollision, W as isThrottlingError, _ as ResourceUpdateNotSupportedError, i as credentialFingerprint, n as ambientCredentialConfig, ot as ProvisioningError, q as wrapMaskedAwsError, r as clientDefaultsFor, t as ambientClientDefaults, tt as CdkdError, x as hasReplayMayCollide, z as isRetryableTransientError } from "./ambient-client-defaults-DtG0A5aG.js";
|
|
5
|
+
import { $ as ElapsedBudget, A as readNameProperty, B as rdsFamilyProtectionSite, C as VALUE_NOT_SHOWN, Ct as startInterruptWatch, D as isQuotableImportValue, Dt as compositeIdSkipResult, E as isPlainImportValue, Et as compositeIdSeparatorRefusal, F as markNotGone, Ft as isSecretDerivedValue, Gi as withPasteableAwsProfile, Gr as recordAttributeIdCopy, Gt as isAuxiliaryFailure, H as userPoolProtectionSite, Ir as recoverMaskedOutput, It as maskDeep, Jt as markCreatedBeforeFailure, K as isProceedDbStatus, Ki as injectiveKey, L as deleteWithProtectionCompensation, Lt as maskerOrIdentity, M as remedyLogicalId, Mt as stateOrphanRecordRemedy, N as resolveExplicitPhysicalId, Nn as snapshotPassProvenance, Nt as createMaskedLogSinks, O as normalizeAwsTagsToCfn, Ot as logicalIdShown, Pt as createMaskedRetryLogger, R as logGroupProtectionSite, Rn as hasMaskableValues, Rt as withDerivedNameMasks, S as holderRefusalRun, St as isInterruptedWaitError, T as isPlainImportJson, Tt as compositeIdFormatMessage, U as PROTECTION_FLIP_RETRY_WAIT_MS, Vt as clearCreatedBeforeFailure, W as deleteAfterProtectionFlipWithFinalSnapshot, Wr as physicalNameCopiesOf, X as isTerminalDeleteFailure, Xr as dynamicReferenceTokens, Y as ProtectionFlipRegistry, Yt as markSupersedesEarlierCreate, Z as protectionFlipKey, _ as withoutServerErrorRetries, _t as recordedPrincipalsRepair, at as isAwsCliLiteral, b as assertRegionMatch, c as AmbiguousCreateLatch, cn as recordedSecrecyOf, ct as renderDisableCommand, d as ambiguousAttemptLead, dr as withoutPhysicalNameCopies, dt as SECRET_DERIVED_READ_LIVE, en as holdsMaskLeaf, et as ElapsedBudgetRegistry, f as createAttemptKey, ft as diffPrincipalNames, g as setBounded, h as replayedSendWindow, hn as markSameGenerationBag, ht as readPrincipalLists, i as reportCreatedResource, ii as carriesSecretMask, it as WITHHELD_AWS_COMMAND, j as refusalTypeShown, jn as recordReferenceProvenanceEntry, jt as segmentAfterAnchor, k as quotedRemedyLogicalId, kt as packCompositeId, l as CREATION_DATE_SKEW_MARGIN_MS, m as replayFollowedAmbiguousAttempt, mt as onlySecretDerived, o as retractCreatedResource, ot as pasteableAwsCommand, p as isInsideWindow, pt as holdsSecretDerivedEntry, q as isTerminalDbWaitStatus, qi as injectiveKeyPrefix, qt as markAuxiliaryFailure, rn as mentionsDynamicReference, rt as UNNAMEABLE_ID_CLAUSE, s as AMBIGUOUS_LATCH_TTL_MS, st as protectedReplacementAdvice, u as RecentIdSet, v as DriftReadRefusedError, w as importRemedyCommand, wn as redactForState, wt as canonicalizeRoute53QueryName, x as holderRefusalMask, y as RESOURCE_NOT_FOUND, z as observeThenDisableProtection } from "./created-resource-sink-DVzNDZ-N.js";
|
|
6
|
+
import { A as displayStackName, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, _ 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-DwQIlsjN.js";
|
|
7
|
+
import { S as isoTimestampAttribute, a as lookupEachName, c as RecordedIdentityMismatchError, g as identityTimestamp, i as isAccessDeniedError, l as assertRecordedIdentity, n as isPermissionDenial, o as withApiLimit, p as recordedIdentityId, r as chunks, s as RecordedIdentityError, t as deniedIdentityReadRefusal } from "./identity-read-denied-CGR1hIyA.js";
|
|
8
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-C_hilY_A.js";
|
|
9
|
+
import { $ as effectiveInventoryItem, A as withRecordedCidrSpelling, B as LIFECYCLE_DEFAULT_STATUS, C as securityGroupReadbackDelays, D as stackIngressRuleHolder, E as singleSecurityGroupRuleId, F as clearLifecycleWritesOf, G as canonicalizeItemList, H as LIFECYCLE_RULE_PATH, I as lifecycleSettleTarget, J as lifecycleUsesFilterForm, K as effectiveLifecycleConfiguration, L as recordLifecycleWrite, M as sgRemovalRuleKey, N as sgRuleListMember, O as survivingRecordOfRuleId, P as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, Q as effectiveIntelligentTieringItem, R as settleLifecycleRead, S as reconcileSgRules, T as sgRuleKey, U as LIFECYCLE_TAG_FILTERS_PATH, V as LIFECYCLE_FILTER_PATH, W as canonicalizeBlock, X as EVENTBRIDGE_CONFIG_PATH, Y as parseCfnTimestamp, Z as effectiveAnalyticsItem, _ as ingressRuleIdentity, a as refuseRevertRevokingSiblingRules, at as declaresBucketObjectLock, b as isResendableSocketFailure, c as siblingIdOwnedSgRules, ct as isPlainObject$4, d as authorizeDefinitelyNotApplied, dt as shownLifecycleRuleId, et as effectiveNotificationConfiguration, f as canonicalizeSgInlineRuleProtocols, g as flattenIpPermissions, h as descriptionKey, i as resolveSecretDerivedPrincipals, it as configItemId, j as markCopiesAgreed, k as tagListsMatch, l as SG_READBACK_RETRY_DELAY_MS, lt as manualBucketDeletionClause, m as comparableIngressIdentity, n as holdsUnprovenSecretPrincipalToken, nt as caughtErrorName, o as sgRuleDiffKey, ot as declaresNestedObjectLock, p as canonicalizeSgRuleProtocol, q as lifecycleRuleScope, r as isResolvableSecretPrincipalList, rt as coerceCfnNumber, s as readSgIngressById, st as describeValue$1, t as runDestroyForStack, tt as eventBridgeEnabledOf, u as SG_RULE_PAGE_SIZE, ut as mergeLegacySingular, v as isConnectTimeout, w as securityGroupRuleMatchesCfnIngress, x as narrowIngressIpProtocol, y as isDefaultEgressRule, z as takeLifecycleWrite } from "./program-BCit4cJS.js";
|
|
10
|
+
import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-BrPnoyD9.js";
|
|
11
|
+
import { $ as streamTagsMatchDeclared, $i as getCurrentProducerRegions, $o as WaitConditionSignalStore, $t as contributorInsightsRefusals, Al as maskedSecretSegment, At as tableNameReleaseWait, Bo as memberReadFailure, Bt as waitForKinesisEnableActive, Ci as earliestDefined, Cn as hasCdkAutoDeleteTag, Co as isStoredExpression, Ct as mapSSESpecification, Di as acquireIdempotencyToken, Dl as toFiniteNumber, Dt as sseSpecificationRefusal, El as toCfnInteger, Eo as awaitInFlightSibling, Es as withIndeterminateGuard, Et as readCapacityNumber, Fd as isAbsoluteAssetPath, Ff as displayAssemblyPath, Fo as SNS_DEFAULT_POLICY_ID, Ft as recordTagWrite, Fu as refuseMalformedNestedChildOutputs, G as declaredStreamTagsMember, Go as verbatimEchoDriftKeys, Gt as sendTtlWaitingOutRateLimit, Gu as refuseMalformedResourcesForDestroy, H as STREAM_POLICY_KEY, Ha as canonicalizeIpv6Cidr, Hn as childStackTags, Ho as reReadUntilSettled, Ht as isTtlRateLimited, Id as listNestedTemplateRows, Io as declaredMemberDocument, Is as isSettledInstanceState, It as settleWrittenTags, J as reverseMapStreamPolicy, Jd as decodeListingKey, Jt as vectorIndexesForCreate, K as planStreamMemberOps, Kn as licensedNameHolder, Ko as attemptedPolicyDocument, Kt as planVectorIndexUpdates, La as SG_RULE_ID_PATTERN, Ld as renderNestedTemplateTreeDefect, Lf as renderAssemblyPathEscape, Lo as declaredPolicyDocument, Ls as connectInstanceIdOf, Ma as replacedDeleteFailureVerdict, Md as stringifyValue, Mo as KMS_DEFAULT_KEY_POLICY_ID, Mt as clearTagWrites, Ol as APPSYNC_APIKEY_ARN_RESOURCE_PATH, Oo as getStackRecords, Ot as sseSpecificationToSend, Pd as findNestedTemplateTreeDefect, Pf as describeFileReadFailure, Po as OWN_WRITE_REREAD_DELAYS_MS, Pt as isDynamoDBTableArnIn, Q as streamPolicyMatchesDeclared, Qt as completeTableContributorInsightsBaseline, Ra as cfnIngressPortValue, Rf as resolveAssemblyPath, Ro as efsPolicyMatchesDeclared, Rt as takeTagWrite, Sn as S3_AUTO_DELETE_OBJECTS_TAG, So as collectPrincipalsAttachingPolicy, St as isTableName, Ti as reserveStackCreateToken, Tl as isWarmThroughputDecrease, To as withoutSiblingOwned, Ts as deleteSkipReason, Tt as pointInTimeRecoveryRefusal, U as STREAM_TAGS_KEY, Ua as canonicalizeIpv4Cidr, Uo as settleDeclaredMember, Ut as planTimeToLive, V as DynamoDBGlobalTableProvider, Va as sgProtocolKey, Vl as passedParameterClassesOf, Vn as childRowTags, Vo as policyDocumentMatchesDeclared, Vt as isTtlAlreadyDisabled, W as declaredStreamPolicyMember, Wo as warnUnsettledMember, Wt as readTtlSpec, X as streamDeclaresTags, Xt as vectorIndexesShapeDetail, Xu as accountArgs, Y as streamDeclaresPolicy, Yt as vectorIndexesSettled, Z as streamMemberRefusals, Zt as CONTRIBUTOR_INSIGHTS_KEY, Zu as withheldAccountClause, _l as isLegacyHandleId, _n as deleteTableWithIndexBusyRetry, _t as KINESIS_DESTINATION_SETTLE_POLL_MS, ac as s3BucketArn, ad as findSdkUnwiredProperties, an as reverseMapTableContributorInsights, at as localSecondaryIndexesKey, bn as waitForIndexesSettled, bo as collectGroupsAddedBySiblings, bs as waitForGoneAfterDelete, bt as hasUsableDeclaredCapacity, cc as s3BucketRegionalDomainName, cn as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, ct as sameJsonValue, dn as deleteBudgetKey, dr as withNestedStackContext, dt as desiredBagIsInformative, el as getCurrentResourceSecrets, en as indexDeclaresContributorInsights, es as classifyHandleUrl, et as canonicalizeStaleIndexDescription, fd as normalizeRecordName, fn as resolveDynamoDbDeleteBudgetClock, ft as isRefusedWarmThroughput, gl as LEGACY_HANDLE_ID_PREFIX, gn as TABLE_INDEX_NOUN, gt as warmThroughputAlreadyMatches, hi as calculateResourceDrift, hn as INDEX_SETTLE_POLL_INTERVAL_MS, ht as trimUnsentWarmMembers, ic as dnsEntryStrings, ii as withoutSiblingOwnedSgRules, in as reverseMapIndexContributorInsights, io as secretNamedAttributeNamesOf, it as gsiUnsendableChangeRefusal, jt as TAGS_BASELINE_REREAD_DELAYS_MS, ks as markWaitAbandoned, kt as tableDeleteGoneWait, lc as s3BucketWebsiteUrl, ln as beginDeleteWait, lt as coerceWarmThroughput, md as wireAttributeValue, mn as DELETE_INDEX_WAIT_PROCEED_NOTE, mt as sentWarmThroughputMembers, ni as siblingOwnedSgRuleIdentities, nn as planIndexContributorInsightsOps, nt as deletionProtectionRefusal, oc as s3BucketDomainName, of as rewriteTemplateAssetReferences, on as stripIndexContributorInsights, or as revertNestedChildFromJournal, ot as projectIndexesOnto, pd as planSubscriptionAttributes, pn as resolveDynamoDbDeleteBudgetMs, pt as readbackWarmThroughput, qo as policyContentKey, qt as readbackVectorIndexes, rl as outputReferenceProvenanceOf, rn as readContributorInsightsSpec, rr as getNestedRevertRun, rt as desiredIndexEntriesByName, sc as s3BucketDualStackDomainName, sd as withoutSdkUnwiredProperties, sl as getAccountInfo, sn as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, st as reverseMapSecondaryIndex, t as DeployEngine, tn as planContributorInsightsOp, ts as evaluateSignals, tt as declaresIndexList, un as compensateRemovedDeletionProtection, ur as getCurrentNestedStackContext, ut as declaresWarmThroughput, vn as maskedLogger, vs as waitForLambdaFunctionActive, vt as KINESIS_DISABLE_PENDING_STATUSES, wn as isTruthyCfnBoolean, wo as withoutSiblingAttachedArns, wt as maskLeafValue, xn as ECR_AUTO_DELETE_IMAGES_TAG, xo as collectManagedPolicyArnsAttachedBySiblings, xt as isPlainCapacityBlock, yc as parseWebACLArn, yn as relayedIndexBusyDelete, yt as deleteTableRetryDelays, za as recordedSgRuleId, zo as lambdaPermissionMatchesDeclared, zt as waitForContributorInsightsSettled } from "./deploy-engine-BEzzfllj.js";
|
|
12
|
+
import { a as refuseMalformedDesiredTags, i as readTagList, n as DBPROXY_TAG_OPTIONS, o as tagMapAsList, r as planTagDiff, s as tagPlanWarning, t as DBPROXY_TAGS_WHAT } from "./tag-list-CmpwQ18R.js";
|
|
13
|
+
import { _ as isUsableAttemptedName, c as definedAttributes, d as awaitDeferredResource, h as throwIfReadinessAborted, i as refuseRestoreFromItself, l as stringifyIfAssigned, m as deferReadiness, o as isModifyNotAvailableRefusal, s as modifyDbInstanceWhenAvailable, u as abortableSleep } from "./restore-source-guard-BIaZBr57.js";
|
|
14
|
+
import { T as timePhase, n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer, v as withRetry } from "./secret-reference-immutable-OIvSuvpM.js";
|
|
15
|
+
import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-fY5JNYhA.js";
|
|
16
16
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
17
17
|
import { f as ambientRegion, r as awsEndpointOverrideActive } from "./aws-client-defaults-DAebi99J.js";
|
|
18
|
-
import { a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, f as markRefusedBeforeApplying, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedPerTypeResourceTimeoutMs, u as getPriorAttempts } from "./ec2-termination-protection-
|
|
19
|
-
import { l as removedTemplateKeys, n as enclosingDeadlineRemainingMs, o as clearOnUpdateRemoval, t as enclosingDeadlineExpired, u as withRemovalDefaults } from "./resource-deadline-
|
|
20
|
-
import { R as passedNoEchoParametersOf, c as blockDeviceMappingsDifferOnlyInDeleteOnTermination, f as canonicalLambdaFunctionName, h as sameLambdaFunctionAddress, m as parseLambdaFunctionAddress, p as lambdaFunctionNameForMask, u as ecsServiceLaunchTypeSetOrChanged } from "./replacement-rules-
|
|
21
|
-
import { EMRClusterProvider, a as undeclaredDriftKeys, c as reportPossibleOrphans, i as projectDeclaredDriftPair, n as EMRInstanceGroupConfigProvider, o as collectOrphanIds, r as filledDefaultsFrom, s as orphanCommandRegionArg$2, t as EMRInstanceFleetConfigProvider } from "./emr-cluster-provider-
|
|
22
|
-
import { RDSProvider } from "./rds-provider-
|
|
23
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
24
|
-
import { ASGProvider } from "./asg-provider-
|
|
18
|
+
import { a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, f as markRefusedBeforeApplying, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedPerTypeResourceTimeoutMs, u as getPriorAttempts } from "./ec2-termination-protection-BeYoGs66.js";
|
|
19
|
+
import { l as removedTemplateKeys, n as enclosingDeadlineRemainingMs, o as clearOnUpdateRemoval, t as enclosingDeadlineExpired, u as withRemovalDefaults } from "./resource-deadline-nSheE7zd.js";
|
|
20
|
+
import { R as passedNoEchoParametersOf, c as blockDeviceMappingsDifferOnlyInDeleteOnTermination, f as canonicalLambdaFunctionName, h as sameLambdaFunctionAddress, m as parseLambdaFunctionAddress, p as lambdaFunctionNameForMask, u as ecsServiceLaunchTypeSetOrChanged } from "./replacement-rules-HtPsWZIV.js";
|
|
21
|
+
import { EMRClusterProvider, a as undeclaredDriftKeys, c as reportPossibleOrphans, i as projectDeclaredDriftPair, n as EMRInstanceGroupConfigProvider, o as collectOrphanIds, r as filledDefaultsFrom, s as orphanCommandRegionArg$2, t as EMRInstanceFleetConfigProvider } from "./emr-cluster-provider-TaiGpHEX.js";
|
|
22
|
+
import { RDSProvider } from "./rds-provider-Dv0lcb0m.js";
|
|
23
|
+
import { NeptuneProvider } from "./neptune-provider-C8fiHA_U.js";
|
|
24
|
+
import { ASGProvider } from "./asg-provider-BmCui3zx.js";
|
|
25
25
|
import { createHash, randomUUID } from "node:crypto";
|
|
26
26
|
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";
|
|
27
27
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateAccessKeyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteConflictException, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetLoginProfileCommand, 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";
|
|
@@ -11900,6 +11900,67 @@ const DEFAULT_BATCH_SIZE_BY_KIND = /* @__PURE__ */ new Map([
|
|
|
11900
11900
|
["documentdb", 100]
|
|
11901
11901
|
]);
|
|
11902
11902
|
|
|
11903
|
+
// src/provisioning/providers/lambda-eventsource/settle-wait.ts
|
|
11904
|
+
const SETTLING_STATES = /* @__PURE__ */ new Set([
|
|
11905
|
+
"Creating",
|
|
11906
|
+
"Updating",
|
|
11907
|
+
"Enabling",
|
|
11908
|
+
"Disabling"
|
|
11909
|
+
]);
|
|
11910
|
+
const MAPPING_SETTLE_POLL_MS = 1e3;
|
|
11911
|
+
const MAPPING_SETTLE_POLLS = 1800;
|
|
11912
|
+
const MAPPING_STALE_READ_GRACE_POLLS = 5;
|
|
11913
|
+
async function waitForMappingSettled(client, logicalId, uuid, expectedEnabled, log, opts = {}) {
|
|
11914
|
+
const pollMs = opts.pollMs ?? 1e3;
|
|
11915
|
+
const maxPolls = opts.maxPolls ?? 1800;
|
|
11916
|
+
const gracePolls = opts.staleReadGracePolls ?? 5;
|
|
11917
|
+
const notFoundGracePolls = opts.notFoundGracePolls ?? 0;
|
|
11918
|
+
let seenSettling = opts.answeredState === void 0 || !SETTLING_STATES.has(opts.answeredState);
|
|
11919
|
+
const expected = expectedEnabled === void 0 ? void 0 : expectedEnabled ? "Enabled" : "Disabled";
|
|
11920
|
+
const what = `event source mapping ${logicalId} to settle`;
|
|
11921
|
+
if (process.env["CDKD_NO_WAIT"] === "true") {
|
|
11922
|
+
log.debug(`Skipping the wait for ${what} (CDKD_NO_WAIT=true)`);
|
|
11923
|
+
return;
|
|
11924
|
+
}
|
|
11925
|
+
const watch = startInterruptWatch(log.mask(what));
|
|
11926
|
+
let last;
|
|
11927
|
+
try {
|
|
11928
|
+
for (let poll = 1; poll <= maxPolls; poll++) {
|
|
11929
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
11930
|
+
if (enclosingDeadlineRemainingMs() <= 0) throw markNonRetryable(new Error(log.mask(`The resource timeout expired while waiting for ${what} (last state: ${last ?? "none read"}); the change is not confirmed`)));
|
|
11931
|
+
let mapping;
|
|
11932
|
+
try {
|
|
11933
|
+
mapping = await client.send(new GetEventSourceMappingCommand({ UUID: uuid }));
|
|
11934
|
+
} catch (error) {
|
|
11935
|
+
const notYetVisible = error instanceof ResourceNotFoundException && poll <= notFoundGracePolls;
|
|
11936
|
+
if (!(notYetVisible || isThrottlingError(error) || isTransientServerError(error))) throw error;
|
|
11937
|
+
log.debug(`A read while waiting for ${what} failed (${notYetVisible ? "not yet visible" : "throttled or server-side"}); reading again`);
|
|
11938
|
+
}
|
|
11939
|
+
const settled = (state) => state === "Enabled" || state === "Disabled";
|
|
11940
|
+
if (mapping === void 0) {} else if (SETTLING_STATES.has(last = mapping.State ?? "unknown")) seenSettling = true;
|
|
11941
|
+
else if (settled(last) && !seenSettling && poll <= gracePolls) {} else if (settled(last) && (expected === void 0 || last === expected)) return;
|
|
11942
|
+
else if (settled(last)) {
|
|
11943
|
+
if (poll <= gracePolls) {} else {
|
|
11944
|
+
const reason = describeAwsStatusReason({ message: mapping.StateTransitionReason }, "");
|
|
11945
|
+
if (reason.redacted) log.debug(`Event source mapping ${logicalId} settled ${last}: ${reason.detail}`);
|
|
11946
|
+
log.warn(`Event source mapping ${logicalId} settled ${last}, but the template asks for ${expected}; ` + verboseAwareText("re-run with --verbose for Lambda's reason", "Lambda's reason is in the debug output above"));
|
|
11947
|
+
return;
|
|
11948
|
+
}
|
|
11949
|
+
} else {
|
|
11950
|
+
const head = `Event source mapping ${logicalId} settled as ${last}` + (expected !== void 0 ? `, expected ${expected}` : "");
|
|
11951
|
+
const reason = describeAwsStatusReason({ message: mapping.StateTransitionReason }, "");
|
|
11952
|
+
if (reason.redacted) log.debug(`${head}: ${reason.detail}`);
|
|
11953
|
+
throw markNonRetryable(new Error(log.mask(reason.redacted ? `${head}. ${reason.summary}` : head)));
|
|
11954
|
+
}
|
|
11955
|
+
if (poll === maxPolls) break;
|
|
11956
|
+
await new Promise((resolve) => setTimeout(resolve, Math.max(0, Math.min(pollMs, enclosingDeadlineRemainingMs()))));
|
|
11957
|
+
}
|
|
11958
|
+
} finally {
|
|
11959
|
+
watch.dispose();
|
|
11960
|
+
}
|
|
11961
|
+
throw markNonRetryable(new Error(log.mask(`Timed out waiting for ${what}: still ${last ?? "none read"} after ${maxPolls * pollMs / 1e3} seconds; the change is not confirmed`)));
|
|
11962
|
+
}
|
|
11963
|
+
|
|
11903
11964
|
// src/provisioning/providers/lambda-eventsource/create.ts
|
|
11904
11965
|
async function create$33(logicalId, resourceType, properties, context) {
|
|
11905
11966
|
const log = this.operationSinks(context?.maskSecrets, properties);
|
|
@@ -11907,6 +11968,7 @@ async function create$33(logicalId, resourceType, properties, context) {
|
|
|
11907
11968
|
const desiredTags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, void 0, "Tags", DBPROXY_TAGS_WHAT, DBPROXY_TAG_OPTIONS);
|
|
11908
11969
|
const functionName = properties["FunctionName"];
|
|
11909
11970
|
if (!functionName) throw new ProvisioningError(`FunctionName is required for event source mapping ${logicalId}`, resourceType, logicalId);
|
|
11971
|
+
let createdUuid;
|
|
11910
11972
|
try {
|
|
11911
11973
|
const params = { FunctionName: functionName };
|
|
11912
11974
|
if (properties["EventSourceArn"]) params.EventSourceArn = properties["EventSourceArn"];
|
|
@@ -11960,6 +12022,12 @@ async function create$33(logicalId, resourceType, properties, context) {
|
|
|
11960
12022
|
mappingsCreatedByThisProcess.add(uuid);
|
|
11961
12023
|
const replayWindow = replayedSendWindow(response, attemptStartMs);
|
|
11962
12024
|
if (replayWindow !== void 0) await this.reportPossibleMappingOrphans(logicalId, replayWindow, log, functionName, params.EventSourceArn);
|
|
12025
|
+
createdUuid = uuid;
|
|
12026
|
+
reportCreatedResource(logicalId, resourceType, uuid);
|
|
12027
|
+
await waitForMappingSettled(this.lambdaClient, logicalId, uuid, coerceCfnBoolean(properties["Enabled"]) ?? true, log, {
|
|
12028
|
+
staleReadGracePolls: 0,
|
|
12029
|
+
notFoundGracePolls: 5
|
|
12030
|
+
});
|
|
11963
12031
|
log.debug(`Successfully created event source mapping ${logicalId}: ${uuid}`);
|
|
11964
12032
|
return {
|
|
11965
12033
|
physicalId: uuid,
|
|
@@ -11974,7 +12042,9 @@ async function create$33(logicalId, resourceType, properties, context) {
|
|
|
11974
12042
|
};
|
|
11975
12043
|
} catch (error) {
|
|
11976
12044
|
const cause = error instanceof Error ? error : void 0;
|
|
11977
|
-
|
|
12045
|
+
const thrown = this.wrapMaskedError(log, error, (text) => new ProvisioningError(`Failed to create event source mapping ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
12046
|
+
if (createdUuid === void 0) throw thrown;
|
|
12047
|
+
throw markNonRetryable(markCreatedBeforeFailure(thrown, logicalId, resourceType, createdUuid));
|
|
11978
12048
|
}
|
|
11979
12049
|
}
|
|
11980
12050
|
async function reportPossibleMappingOrphans(logicalId, window, log, functionName, sourceArn) {
|
|
@@ -12135,6 +12205,7 @@ async function applyUpdate$5(logicalId, physicalId, resourceType, properties, pr
|
|
|
12135
12205
|
}
|
|
12136
12206
|
if (wasSet("DocumentDBEventSourceConfig")) log.warn(safeMsg`${logicalId} (${resourceType}): DocumentDBEventSourceConfig ${removed()}; the mapping keeps its current DocumentDB settings, as CloudFormation keeps them. Declare the block with the values you want instead.`);
|
|
12137
12207
|
const updateResp = await this.lambdaClient.send(new UpdateEventSourceMappingCommand(updateParams));
|
|
12208
|
+
await waitForMappingSettled(this.lambdaClient, logicalId, physicalId, coerceCfnBoolean(updateParams.Enabled), log, { ...updateResp.State !== void 0 && { answeredState: updateResp.State } });
|
|
12138
12209
|
const eventSourceMappingArn = updateResp.EventSourceMappingArn;
|
|
12139
12210
|
if (eventSourceMappingArn) await this.applyTagDiff(eventSourceMappingArn, resourceType, logicalId, previousProperties["Tags"], properties["Tags"], log);
|
|
12140
12211
|
log.debug(`Successfully updated event source mapping ${logicalId}`);
|
|
@@ -15426,6 +15497,10 @@ async function applyKinesisStreamingDestination(tableName, spec, previousSpec, m
|
|
|
15426
15497
|
...precision ? { EnableKinesisStreamingConfiguration: { ApproximateCreationDateTimePrecision: precision } } : {}
|
|
15427
15498
|
})), `enable Kinesis streaming on ${tableName}`, void 0, { maskSecrets });
|
|
15428
15499
|
this.logger.debug(maskSecrets(`Enabled Kinesis streaming destination ${newArn} on DynamoDB table ${tableName}`));
|
|
15500
|
+
await waitForKinesisEnableActive(this.dynamoDBClient, tableName, newArn, `DynamoDB table ${tableName}`, {
|
|
15501
|
+
maskSecrets,
|
|
15502
|
+
debug: (message) => this.logger.debug(message)
|
|
15503
|
+
});
|
|
15429
15504
|
}
|
|
15430
15505
|
}
|
|
15431
15506
|
async function waitForKinesisDisableSettled(tableName, streamArn, maskSecrets) {
|
|
@@ -15858,13 +15933,18 @@ async function applyIndexContributorInsights(tableName, desiredIndexes, previous
|
|
|
15858
15933
|
async function sendContributorInsightsOp(tableName, op, maskSecrets) {
|
|
15859
15934
|
const debug = (message) => this.logger.debug(maskSecrets(message));
|
|
15860
15935
|
const target = op.indexName === void 0 ? `DynamoDB table ${tableName}` : this.indexScopeAt(op.indexName, tableName, maskSecrets);
|
|
15861
|
-
await this.retryOnTransientControlPlane(() => this.dynamoDBClient.send(new UpdateContributorInsightsCommand({
|
|
15936
|
+
const answered = await this.retryOnTransientControlPlane(() => this.dynamoDBClient.send(new UpdateContributorInsightsCommand({
|
|
15862
15937
|
TableName: tableName,
|
|
15863
15938
|
...op.indexName !== void 0 ? { IndexName: op.indexName } : {},
|
|
15864
15939
|
ContributorInsightsAction: op.action,
|
|
15865
15940
|
...op.mode !== void 0 ? { ContributorInsightsMode: op.mode } : {}
|
|
15866
15941
|
})), `set ContributorInsights on ${target}`);
|
|
15867
15942
|
debug(`Set ContributorInsightsAction=${op.action}${op.mode !== void 0 ? ` Mode=${op.mode}` : ""} on ${target}`);
|
|
15943
|
+
await waitForContributorInsightsSettled(this.dynamoDBClient, tableName, op.indexName, op.action, target, {
|
|
15944
|
+
maskSecrets,
|
|
15945
|
+
debug,
|
|
15946
|
+
...answered?.ContributorInsightsStatus !== void 0 && { answeredStatus: answered.ContributorInsightsStatus }
|
|
15947
|
+
});
|
|
15868
15948
|
}
|
|
15869
15949
|
|
|
15870
15950
|
// src/provisioning/providers/dynamodb-table/table-settings.ts
|
|
@@ -45121,6 +45201,28 @@ function readEnabledMfas(properties) {
|
|
|
45121
45201
|
function hasMfaConfigProps(properties) {
|
|
45122
45202
|
return readEnabledMfas(properties).declaresFactor || !!properties["EmailAuthenticationMessage"] || !!properties["EmailAuthenticationSubject"] || !!properties["WebAuthnRelyingPartyID"] || !!properties["WebAuthnUserVerification"] || !!properties["WebAuthnFactorConfiguration"];
|
|
45123
45203
|
}
|
|
45204
|
+
const EMAIL_OTP_MESSAGE_KEYS = ["EmailAuthenticationMessage", "EmailAuthenticationSubject"];
|
|
45205
|
+
function withoutOffFactorEchoes(properties, { keepEmailOtp = false } = {}) {
|
|
45206
|
+
if (properties["MfaConfiguration"] !== "OFF") return properties;
|
|
45207
|
+
const enabled = properties["EnabledMfas"];
|
|
45208
|
+
const isEcho = (factor) => factor === "SMS_MFA" || !keepEmailOtp && factor === "EMAIL_OTP";
|
|
45209
|
+
const dropsFactor = Array.isArray(enabled) && enabled.some(isEcho);
|
|
45210
|
+
const dropsMessage = !keepEmailOtp && EMAIL_OTP_MESSAGE_KEYS.some((key) => !!properties[key]);
|
|
45211
|
+
if (!dropsFactor && !dropsMessage) return properties;
|
|
45212
|
+
const kept = Object.fromEntries(Object.entries(properties).filter(([key]) => keepEmailOtp || !EMAIL_OTP_MESSAGE_KEYS.includes(key)));
|
|
45213
|
+
if (dropsFactor) kept["EnabledMfas"] = enabled.filter((f) => !isEcho(f));
|
|
45214
|
+
return kept;
|
|
45215
|
+
}
|
|
45216
|
+
function withOffEmailOtpCleared(properties) {
|
|
45217
|
+
if (properties["MfaConfiguration"] !== "OFF") return properties;
|
|
45218
|
+
const enabled = properties["EnabledMfas"];
|
|
45219
|
+
const listsEmail = Array.isArray(enabled) && enabled.includes("EMAIL_OTP");
|
|
45220
|
+
if (!listsEmail && !EMAIL_OTP_MESSAGE_KEYS.some((key) => !!properties[key])) return properties;
|
|
45221
|
+
const cleared = { ...properties };
|
|
45222
|
+
if (listsEmail) cleared["EnabledMfas"] = enabled.filter((f) => f !== MFA_FACTOR_EMAIL_OTP);
|
|
45223
|
+
for (const key of EMAIL_OTP_MESSAGE_KEYS) if (key in cleared) cleared[key] = "";
|
|
45224
|
+
return cleared;
|
|
45225
|
+
}
|
|
45124
45226
|
function clearsRemovedMfaConfig(properties, previousProperties, declaredMfaConfiguration) {
|
|
45125
45227
|
const resolvesOff = declaredMfaConfiguration === "OFF" || classifyDeclaredMfaConfiguration(properties["MfaConfiguration"]) === "absent";
|
|
45126
45228
|
const previousDeclaresFactor = readEnabledMfas(previousProperties).declaresFactor || !!previousProperties["EmailAuthenticationMessage"] || !!previousProperties["EmailAuthenticationSubject"];
|
|
@@ -45349,7 +45451,7 @@ async function resetMfaConfigOff(logicalId, physicalId, onReadFailure) {
|
|
|
45349
45451
|
if (onReadFailure === "bare") this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): cdkd could not read the pool's ` + safeMsg`MFA configuration, so turning MFA OFF could not carry a WebAuthn (passkey) ` + safeMsg`configuration the pool may hold; check it with ${aws`aws cognito-idp get-user-pool-mfa-config --user-pool-id ${physicalId}${region}`.render()}.`);
|
|
45350
45452
|
else {
|
|
45351
45453
|
this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): cdkd could not read the pool's ` + safeMsg`MFA configuration, so it did not reset the removed MFA factors (the reset would ` + safeMsg`also drop a WebAuthn configuration it could not see). A removed factor such as ` + safeMsg`the software token may still be enabled; check it with ${aws`aws cognito-idp get-user-pool-mfa-config --user-pool-id ${physicalId}${region}`.render()}.`);
|
|
45352
|
-
return;
|
|
45454
|
+
return false;
|
|
45353
45455
|
}
|
|
45354
45456
|
}
|
|
45355
45457
|
const carriedFields = webAuthn === void 0 ? {} : {
|
|
@@ -45362,6 +45464,7 @@ async function resetMfaConfigOff(logicalId, physicalId, onReadFailure) {
|
|
|
45362
45464
|
MfaConfiguration: "OFF",
|
|
45363
45465
|
...Object.keys(carriedFields).length > 0 && { WebAuthnConfiguration: carriedFields }
|
|
45364
45466
|
})), `SetUserPoolMfaConfig(${physicalId})`);
|
|
45467
|
+
return true;
|
|
45365
45468
|
}
|
|
45366
45469
|
|
|
45367
45470
|
// src/provisioning/providers/cognito/read-state.ts
|
|
@@ -45377,15 +45480,22 @@ function canonicalizeDriftPair$3(resourceType, baseline, aws, properties = {}) {
|
|
|
45377
45480
|
if (resourceType !== "AWS::Cognito::UserPool") return unchanged;
|
|
45378
45481
|
const declared = properties["MfaConfiguration"];
|
|
45379
45482
|
if (declared !== void 0 && declared !== "OFF") return unchanged;
|
|
45380
|
-
if (
|
|
45483
|
+
if (readEnabledMfas(properties).declaresFactor || !!properties["EmailAuthenticationMessage"] || !!properties["EmailAuthenticationSubject"]) return unchanged;
|
|
45381
45484
|
if (baseline["MfaConfiguration"] !== "OFF") return unchanged;
|
|
45382
45485
|
const recorded = baseline["EnabledMfas"];
|
|
45383
|
-
if (!Array.isArray(recorded)
|
|
45486
|
+
if (!Array.isArray(recorded)) return unchanged;
|
|
45487
|
+
const remaining = recorded.filter((factor) => factor !== "SOFTWARE_TOKEN_MFA" && factor !== "EMAIL_OTP");
|
|
45488
|
+
if (remaining.length === recorded.length) return unchanged;
|
|
45489
|
+
if (remaining.some((factor) => factor !== "SMS_MFA")) return unchanged;
|
|
45490
|
+
const next = {
|
|
45491
|
+
...baseline,
|
|
45492
|
+
EnabledMfas: remaining
|
|
45493
|
+
};
|
|
45494
|
+
if (recorded.includes("EMAIL_OTP")) {
|
|
45495
|
+
for (const key of ["EmailAuthenticationMessage", "EmailAuthenticationSubject"]) if (key in baseline) next[key] = "";
|
|
45496
|
+
}
|
|
45384
45497
|
return Promise.resolve({
|
|
45385
|
-
baseline:
|
|
45386
|
-
...baseline,
|
|
45387
|
-
EnabledMfas: []
|
|
45388
|
-
},
|
|
45498
|
+
baseline: next,
|
|
45389
45499
|
aws
|
|
45390
45500
|
});
|
|
45391
45501
|
}
|
|
@@ -45863,6 +45973,13 @@ function dcrConfigurationUpdate(properties, previousProperties) {
|
|
|
45863
45973
|
}
|
|
45864
45974
|
async function update$17(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
45865
45975
|
this.logger.debug(`Updating Cognito User Pool ${logicalId}: ${physicalId}`);
|
|
45976
|
+
const receivedProperties = properties;
|
|
45977
|
+
let recordedProperties = properties;
|
|
45978
|
+
if (context?.desiredFromAwsReadback === true) {
|
|
45979
|
+
recordedProperties = withOffEmailOtpCleared(properties);
|
|
45980
|
+
properties = withoutOffFactorEchoes(properties);
|
|
45981
|
+
previousProperties = withoutOffFactorEchoes(previousProperties, { keepEmailOtp: true });
|
|
45982
|
+
}
|
|
45866
45983
|
const stateBorneDesired = context?.replayingState === true || context?.desiredFromAwsReadback === true;
|
|
45867
45984
|
let mfaConfiguration;
|
|
45868
45985
|
try {
|
|
@@ -45944,13 +46061,15 @@ async function update$17(logicalId, physicalId, resourceType, properties, previo
|
|
|
45944
46061
|
const userPool = (await this.getClient().send(new DescribeUserPoolCommand({ UserPoolId: physicalId }))).UserPool;
|
|
45945
46062
|
await this.untagRemovedUserPoolTags(logicalId, physicalId, resourceType, userPool?.Arn, properties["UserPoolTags"], previousProperties["UserPoolTags"]);
|
|
45946
46063
|
if (removedMfa !== "") await this.turnOffRemovedMfa(logicalId, physicalId, removedMfa);
|
|
45947
|
-
else if (clearRemovedMfa)
|
|
46064
|
+
else if (clearRemovedMfa) {
|
|
46065
|
+
if (!await this.resetMfaConfigOff(logicalId, physicalId, "skip")) recordedProperties = receivedProperties;
|
|
46066
|
+
}
|
|
45948
46067
|
this.logger.debug(`Successfully updated Cognito User Pool ${logicalId}`);
|
|
45949
46068
|
const region = await this.getClient().config.region();
|
|
45950
46069
|
const { urlSuffix } = derivePartitionAndUrlSuffix(region);
|
|
45951
46070
|
const providerName = `cognito-idp.${region}.${urlSuffix}/${physicalId}`;
|
|
45952
46071
|
const providerUrl = `https://cognito-idp.${region}.${urlSuffix}/${physicalId}`;
|
|
45953
|
-
const narrowed = withPreviousCreateTimeOnly(narrowMfaConfiguration(
|
|
46072
|
+
const narrowed = withPreviousCreateTimeOnly(narrowMfaConfiguration(recordedProperties), previousProperties, keptCreateTimeOnly);
|
|
45954
46073
|
const effectiveProperties = keptSchema === void 0 ? narrowed : {
|
|
45955
46074
|
...narrowed,
|
|
45956
46075
|
Schema: keptSchema
|
|
@@ -45964,7 +46083,7 @@ async function update$17(logicalId, physicalId, resourceType, properties, previo
|
|
|
45964
46083
|
ProviderURL: providerUrl,
|
|
45965
46084
|
UserPoolId: physicalId
|
|
45966
46085
|
},
|
|
45967
|
-
...effectiveProperties !==
|
|
46086
|
+
...effectiveProperties !== receivedProperties ? { effectiveProperties } : {}
|
|
45968
46087
|
};
|
|
45969
46088
|
} catch (error) {
|
|
45970
46089
|
if (error instanceof ResourceUpdateNotSupportedError || error instanceof ProvisioningError) throw error;
|
|
@@ -67340,4 +67459,4 @@ var ACMCertificateProvider = class {
|
|
|
67340
67459
|
};
|
|
67341
67460
|
|
|
67342
67461
|
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, ConnectInstanceProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, EC2VPCEndpointProvider, 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, LightsailAlarmProvider, 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, WaitConditionProvider };
|
|
67343
|
-
//# sourceMappingURL=provider-classes-
|
|
67462
|
+
//# sourceMappingURL=provider-classes-BydpQUFi.js.map
|