@cdkd/cli 0.373.2 → 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-CruQnpD7.js → ambient-client-defaults-DtG0A5aG.js} +3 -3
- package/dist/{ambient-client-defaults-CruQnpD7.js.map → ambient-client-defaults-DtG0A5aG.js.map} +1 -1
- package/dist/{asg-provider-C76YNNe3.js → asg-provider-BmCui3zx.js} +8 -8
- package/dist/{asg-provider-C76YNNe3.js.map → asg-provider-BmCui3zx.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{created-resource-sink-Bf6U_kyO.js → created-resource-sink-DVzNDZ-N.js} +4 -4
- package/dist/{created-resource-sink-Bf6U_kyO.js.map → created-resource-sink-DVzNDZ-N.js.map} +1 -1
- package/dist/{custom-resource-runtime-DNWvFAcJ.js → custom-resource-runtime-pm6t9jBv.js} +6 -6
- package/dist/{custom-resource-runtime-DNWvFAcJ.js.map → custom-resource-runtime-pm6t9jBv.js.map} +1 -1
- package/dist/{db-associated-roles-ChxC2pWo.js → db-associated-roles-C607MnbC.js} +2 -2
- package/dist/{db-associated-roles-ChxC2pWo.js.map → db-associated-roles-C607MnbC.js.map} +1 -1
- package/dist/{delete-started-DCNzpczG.js → delete-started-C_hilY_A.js} +4 -4
- package/dist/{delete-started-DCNzpczG.js.map → delete-started-C_hilY_A.js.map} +1 -1
- package/dist/{deploy-engine-DkJ03QT5.js → deploy-engine-BEzzfllj.js} +177 -51
- package/dist/deploy-engine-BEzzfllj.js.map +1 -0
- package/dist/{ec2-termination-protection-CmMB_KbJ.js → ec2-termination-protection-BeYoGs66.js} +3 -3
- package/dist/{ec2-termination-protection-CmMB_KbJ.js.map → ec2-termination-protection-BeYoGs66.js.map} +1 -1
- package/dist/{ecr-uri-DH03qkk2.js → ecr-uri-DcNB-WSe.js} +2 -2
- package/dist/{ecr-uri-DH03qkk2.js.map → ecr-uri-DcNB-WSe.js.map} +1 -1
- package/dist/{emr-cluster-provider-BdJs64i8.js → emr-cluster-provider-TaiGpHEX.js} +10 -10
- package/dist/{emr-cluster-provider-BdJs64i8.js.map → emr-cluster-provider-TaiGpHEX.js.map} +1 -1
- package/dist/{expected-bucket-owner-D0nm7Szq.js → expected-bucket-owner-DASdeJRs.js} +2 -2
- package/dist/{expected-bucket-owner-D0nm7Szq.js.map → expected-bucket-owner-DASdeJRs.js.map} +1 -1
- package/dist/{iam-role-provider-BSj01gWD.js → iam-role-provider-ob3lrDNI.js} +12 -12
- package/dist/{iam-role-provider-BSj01gWD.js.map → iam-role-provider-ob3lrDNI.js.map} +1 -1
- package/dist/{identity-read-denied-CwSWOLvl.js → identity-read-denied-CGR1hIyA.js} +4 -4
- package/dist/{identity-read-denied-CwSWOLvl.js.map → identity-read-denied-CGR1hIyA.js.map} +1 -1
- package/dist/{image-plan-D7hoLiS-.js → image-plan-BWFMyIRS.js} +9 -9
- package/dist/{image-plan-D7hoLiS-.js.map → image-plan-BWFMyIRS.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-BTKRoxiD.js → logger-8a4raAC-.js} +2 -2
- package/dist/{logger-BTKRoxiD.js.map → logger-8a4raAC-.js.map} +1 -1
- package/dist/{neptune-provider-BNvxobyO.js → neptune-provider-C8fiHA_U.js} +9 -9
- package/dist/{neptune-provider-BNvxobyO.js.map → neptune-provider-C8fiHA_U.js.map} +1 -1
- package/dist/{program-BjmeRD9o.js → program-BCit4cJS.js} +257 -150
- package/dist/program-BCit4cJS.js.map +1 -0
- package/dist/{provider-classes-Bn4iaev8.js → provider-classes-BydpQUFi.js} +257 -43
- package/dist/provider-classes-BydpQUFi.js.map +1 -0
- package/dist/{rds-provider-CNEA-pHZ.js → rds-provider-Dv0lcb0m.js} +13 -13
- package/dist/{rds-provider-CNEA-pHZ.js.map → rds-provider-Dv0lcb0m.js.map} +1 -1
- package/dist/{read-replica-0-l8YLR9.js → read-replica-BQ87f_Oe.js} +3 -3
- package/dist/{read-replica-0-l8YLR9.js.map → read-replica-BQ87f_Oe.js.map} +1 -1
- package/dist/{redacted-delete-address-Cq-qhxug.js → redacted-delete-address-BrPnoyD9.js} +4 -4
- package/dist/{redacted-delete-address-Cq-qhxug.js.map → redacted-delete-address-BrPnoyD9.js.map} +1 -1
- package/dist/{replacement-rules-BRQEsmYu.js → replacement-rules-HtPsWZIV.js} +147 -35
- package/dist/replacement-rules-HtPsWZIV.js.map +1 -0
- package/dist/{resource-deadline-B6k_qtRx.js → resource-deadline-nSheE7zd.js} +2 -2
- package/dist/{resource-deadline-B6k_qtRx.js.map → resource-deadline-nSheE7zd.js.map} +1 -1
- package/dist/{restore-source-guard-Dlh_1tru.js → restore-source-guard-BIaZBr57.js} +4 -4
- package/dist/{restore-source-guard-Dlh_1tru.js.map → restore-source-guard-BIaZBr57.js.map} +1 -1
- package/dist/{run-cli-fBTOa8id.js → run-cli-OPPhPXxz.js} +2 -2
- package/dist/{run-cli-fBTOa8id.js.map → run-cli-OPPhPXxz.js.map} +1 -1
- package/dist/{secret-reference-immutable-DSSUW_aD.js → secret-reference-immutable-OIvSuvpM.js} +6 -6
- package/dist/{secret-reference-immutable-DSSUW_aD.js.map → secret-reference-immutable-OIvSuvpM.js.map} +1 -1
- package/dist/{settle-own-write-members-7riYzUx1.js → settle-own-write-members-fY5JNYhA.js} +10 -10
- package/dist/{settle-own-write-members-7riYzUx1.js.map → settle-own-write-members-fY5JNYhA.js.map} +1 -1
- package/dist/{tag-list-lOyb6hiQ.js → tag-list-CmpwQ18R.js} +4 -4
- package/dist/{tag-list-lOyb6hiQ.js.map → tag-list-CmpwQ18R.js.map} +1 -1
- package/dist/{version-BO9jLQis.js → version-DwQIlsjN.js} +2 -2
- package/dist/{version-BO9jLQis.js.map → version-DwQIlsjN.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-DkJ03QT5.js.map +0 -1
- package/dist/program-BjmeRD9o.js.map +0 -1
- package/dist/provider-classes-Bn4iaev8.js.map +0 -1
- package/dist/replacement-rules-BRQEsmYu.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 {
|
|
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}`);
|
|
@@ -12317,7 +12388,7 @@ async function readCurrentState$34(physicalId, _logicalId, _resourceType, proper
|
|
|
12317
12388
|
result["Tags"] = tags;
|
|
12318
12389
|
return result;
|
|
12319
12390
|
}
|
|
12320
|
-
async function canonicalizeDriftPair$
|
|
12391
|
+
async function canonicalizeDriftPair$8(_resourceType, baseline, aws, properties) {
|
|
12321
12392
|
const key = "SelfManagedKafkaEventSourceConfig";
|
|
12322
12393
|
const block = baseline[key];
|
|
12323
12394
|
if (typeof block !== "object" || block === null || Array.isArray(block) || "ConsumptionMode" in block || consumptionModeOf(aws) !== "Stream" || consumptionModeOf(properties ?? {}) !== "Stream" || aws[key]?.["ConsumptionMode"] === void 0) return {
|
|
@@ -12469,7 +12540,7 @@ var LambdaEventSourceMappingProvider = class {
|
|
|
12469
12540
|
return readCurrentState$34.call(this, physicalId, logicalId, resourceType, properties);
|
|
12470
12541
|
}
|
|
12471
12542
|
canonicalizeDriftPair(resourceType, baseline, aws, properties) {
|
|
12472
|
-
return canonicalizeDriftPair$
|
|
12543
|
+
return canonicalizeDriftPair$8.call(this, resourceType, baseline, aws, properties);
|
|
12473
12544
|
}
|
|
12474
12545
|
import(input) {
|
|
12475
12546
|
return importImpl$33.call(this, input);
|
|
@@ -14931,7 +15002,7 @@ function canonicalizeDriftProperties$4(resourceType, properties) {
|
|
|
14931
15002
|
}
|
|
14932
15003
|
return result;
|
|
14933
15004
|
}
|
|
14934
|
-
async function canonicalizeDriftPair$
|
|
15005
|
+
async function canonicalizeDriftPair$7(resourceType, baseline, aws, properties) {
|
|
14935
15006
|
if (resourceType !== "AWS::DynamoDB::Table") return {
|
|
14936
15007
|
baseline,
|
|
14937
15008
|
aws
|
|
@@ -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
|
|
@@ -16701,7 +16781,7 @@ var DynamoDBTableProvider = class {
|
|
|
16701
16781
|
return canonicalizeDriftProperties$4.call(this, resourceType, properties);
|
|
16702
16782
|
}
|
|
16703
16783
|
async canonicalizeDriftPair(resourceType, baseline, aws, properties) {
|
|
16704
|
-
return canonicalizeDriftPair$
|
|
16784
|
+
return canonicalizeDriftPair$7.call(this, resourceType, baseline, aws, properties);
|
|
16705
16785
|
}
|
|
16706
16786
|
async readUnsettled(physicalId, logicalId, resourceType, names, recordedProperties, desiredProperties, attemptedItems) {
|
|
16707
16787
|
return readUnsettled$6.call(this, physicalId, logicalId, resourceType, names, recordedProperties, desiredProperties, attemptedItems);
|
|
@@ -26982,7 +27062,7 @@ async function readUnsettled$5(physicalId, logicalId, resourceType, names, recor
|
|
|
26982
27062
|
if (resourceType === "AWS::EC2::Subnet") return this.readSubnetCurrentState(physicalId, names, recordedProperties);
|
|
26983
27063
|
return this.readCurrentState(physicalId, logicalId, resourceType, recordedProperties);
|
|
26984
27064
|
}
|
|
26985
|
-
async function canonicalizeDriftPair$
|
|
27065
|
+
async function canonicalizeDriftPair$6(resourceType, baseline, aws, properties) {
|
|
26986
27066
|
if (resourceType === "AWS::EC2::Instance") {
|
|
26987
27067
|
const declared = declaredBlockDeviceNames(properties);
|
|
26988
27068
|
const recorded = baseline["BlockDeviceMappings"];
|
|
@@ -27159,7 +27239,7 @@ const driftMethods = {
|
|
|
27159
27239
|
subnetIpv6InTransition,
|
|
27160
27240
|
unsettledInTransition: unsettledInTransition$4,
|
|
27161
27241
|
readUnsettled: readUnsettled$5,
|
|
27162
|
-
canonicalizeDriftPair: canonicalizeDriftPair$
|
|
27242
|
+
canonicalizeDriftPair: canonicalizeDriftPair$6,
|
|
27163
27243
|
canonicalizeUnsettledProperties: canonicalizeUnsettledProperties$1,
|
|
27164
27244
|
readCurrentState: readCurrentState$29,
|
|
27165
27245
|
readCurrentStateOnce,
|
|
@@ -31169,7 +31249,7 @@ function getDriftUnknownPaths$8(resourceType, properties) {
|
|
|
31169
31249
|
if (resourceType === "AWS::ApiGatewayV2::Integration" && properties !== void 0 && Object.keys(properties).length > 0 && properties["ConnectionType"] !== "VPC_LINK") return ["TlsConfig"];
|
|
31170
31250
|
return [];
|
|
31171
31251
|
}
|
|
31172
|
-
async function canonicalizeDriftPair$
|
|
31252
|
+
async function canonicalizeDriftPair$5(resourceType, baseline, aws, properties = {}) {
|
|
31173
31253
|
if (resourceType !== "AWS::ApiGatewayV2::Api" && resourceType !== "AWS::ApiGatewayV2::Stage") return {
|
|
31174
31254
|
baseline,
|
|
31175
31255
|
aws
|
|
@@ -32614,7 +32694,7 @@ var ApiGatewayV2Provider = class {
|
|
|
32614
32694
|
return getDriftUnknownPaths$8.call(this, resourceType, properties);
|
|
32615
32695
|
}
|
|
32616
32696
|
canonicalizeDriftPair(resourceType, baseline, aws, properties = {}) {
|
|
32617
|
-
return canonicalizeDriftPair$
|
|
32697
|
+
return canonicalizeDriftPair$5.call(this, resourceType, baseline, aws, properties);
|
|
32618
32698
|
}
|
|
32619
32699
|
readCurrentState(physicalId, _logicalId, resourceType, properties) {
|
|
32620
32700
|
return readCurrentState$27.call(this, physicalId, _logicalId, resourceType, properties);
|
|
@@ -38653,7 +38733,7 @@ function getDriftUnorderedPaths$4(resourceType) {
|
|
|
38653
38733
|
if (resourceType !== "AWS::ElasticLoadBalancingV2::TargetGroup") return [];
|
|
38654
38734
|
return ["Targets"];
|
|
38655
38735
|
}
|
|
38656
|
-
async function canonicalizeDriftPair$
|
|
38736
|
+
async function canonicalizeDriftPair$4(resourceType, baseline, aws, properties) {
|
|
38657
38737
|
const unchanged = {
|
|
38658
38738
|
baseline,
|
|
38659
38739
|
aws
|
|
@@ -39057,7 +39137,7 @@ var ELBv2Provider = class {
|
|
|
39057
39137
|
return getDriftUnorderedPaths$4.call(this, resourceType);
|
|
39058
39138
|
}
|
|
39059
39139
|
canonicalizeDriftPair(resourceType, baseline, aws, properties) {
|
|
39060
|
-
return canonicalizeDriftPair$
|
|
39140
|
+
return canonicalizeDriftPair$4.call(this, resourceType, baseline, aws, properties);
|
|
39061
39141
|
}
|
|
39062
39142
|
readListener(physicalId) {
|
|
39063
39143
|
return readListener.call(this, physicalId);
|
|
@@ -45121,6 +45201,33 @@ 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
|
+
}
|
|
45226
|
+
function clearsRemovedMfaConfig(properties, previousProperties, declaredMfaConfiguration) {
|
|
45227
|
+
const resolvesOff = declaredMfaConfiguration === "OFF" || classifyDeclaredMfaConfiguration(properties["MfaConfiguration"]) === "absent";
|
|
45228
|
+
const previousDeclaresFactor = readEnabledMfas(previousProperties).declaresFactor || !!previousProperties["EmailAuthenticationMessage"] || !!previousProperties["EmailAuthenticationSubject"];
|
|
45229
|
+
return resolvesOff && !hasMfaConfigProps(properties) && previousDeclaresFactor;
|
|
45230
|
+
}
|
|
45124
45231
|
function buildMfaConfigRequest(physicalId, properties, logger, declaredMfaConfiguration = "", maskSecrets = (text) => text) {
|
|
45125
45232
|
const { factors: enabledMfas, declaresFactor, malformed: enabledMfasMalformed, blank: enabledMfasBlank } = readEnabledMfas(properties);
|
|
45126
45233
|
const warn = (message) => logger?.warn(maskSecrets(message));
|
|
@@ -45330,11 +45437,34 @@ async function retryOnTransientControlPlane$1(fn, label, maxAttempts = 3) {
|
|
|
45330
45437
|
}
|
|
45331
45438
|
}
|
|
45332
45439
|
async function turnOffRemovedMfa(logicalId, physicalId, previousMfaConfiguration) {
|
|
45440
|
+
await this.resetMfaConfigOff(logicalId, physicalId, "bare");
|
|
45441
|
+
this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): the template no longer declares ` + safeMsg`MfaConfiguration or an MFA factor, so cdkd turned MFA OFF (it was ` + safeMsg`${previousMfaConfiguration}), as CloudFormation does on the same edit. Declare ` + safeMsg`MfaConfiguration and EnabledMfas to keep MFA on.`);
|
|
45442
|
+
}
|
|
45443
|
+
async function resetMfaConfigOff(logicalId, physicalId, onReadFailure) {
|
|
45444
|
+
let webAuthn;
|
|
45445
|
+
try {
|
|
45446
|
+
webAuthn = (await this.retryOnTransientControlPlane(() => this.getClient().send(new GetUserPoolMfaConfigCommand({ UserPoolId: physicalId })), `GetUserPoolMfaConfig(${physicalId}) before the MFA reset`)).WebAuthnConfiguration;
|
|
45447
|
+
} catch (error) {
|
|
45448
|
+
this.logger.debug(safeMsg`GetUserPoolMfaConfig failed for UserPool ${physicalId} before the MFA reset ` + safeMsg`(${error instanceof Error ? error.name : typeof error}): ` + safeMsg`${describeAwsFailure(error).detail}`);
|
|
45449
|
+
const aws = pasteableAwsCommand();
|
|
45450
|
+
const region = await this.regionArg(aws);
|
|
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()}.`);
|
|
45452
|
+
else {
|
|
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()}.`);
|
|
45454
|
+
return false;
|
|
45455
|
+
}
|
|
45456
|
+
}
|
|
45457
|
+
const carriedFields = webAuthn === void 0 ? {} : {
|
|
45458
|
+
...webAuthn.RelyingPartyId !== void 0 && { RelyingPartyId: webAuthn.RelyingPartyId },
|
|
45459
|
+
...webAuthn.UserVerification !== void 0 && { UserVerification: webAuthn.UserVerification },
|
|
45460
|
+
...webAuthn.FactorConfiguration !== void 0 && { FactorConfiguration: webAuthn.FactorConfiguration }
|
|
45461
|
+
};
|
|
45333
45462
|
await this.retryOnTransientControlPlane(() => this.getClient().send(new SetUserPoolMfaConfigCommand({
|
|
45334
45463
|
UserPoolId: physicalId,
|
|
45335
|
-
MfaConfiguration: "OFF"
|
|
45464
|
+
MfaConfiguration: "OFF",
|
|
45465
|
+
...Object.keys(carriedFields).length > 0 && { WebAuthnConfiguration: carriedFields }
|
|
45336
45466
|
})), `SetUserPoolMfaConfig(${physicalId})`);
|
|
45337
|
-
|
|
45467
|
+
return true;
|
|
45338
45468
|
}
|
|
45339
45469
|
|
|
45340
45470
|
// src/provisioning/providers/cognito/read-state.ts
|
|
@@ -45342,6 +45472,33 @@ function canonicalizeDesiredProperties$1(resourceType, properties) {
|
|
|
45342
45472
|
if (resourceType !== "AWS::Cognito::UserPool") return properties;
|
|
45343
45473
|
return narrowMfaConfiguration(properties);
|
|
45344
45474
|
}
|
|
45475
|
+
function canonicalizeDriftPair$3(resourceType, baseline, aws, properties = {}) {
|
|
45476
|
+
const unchanged = Promise.resolve({
|
|
45477
|
+
baseline,
|
|
45478
|
+
aws
|
|
45479
|
+
});
|
|
45480
|
+
if (resourceType !== "AWS::Cognito::UserPool") return unchanged;
|
|
45481
|
+
const declared = properties["MfaConfiguration"];
|
|
45482
|
+
if (declared !== void 0 && declared !== "OFF") return unchanged;
|
|
45483
|
+
if (readEnabledMfas(properties).declaresFactor || !!properties["EmailAuthenticationMessage"] || !!properties["EmailAuthenticationSubject"]) return unchanged;
|
|
45484
|
+
if (baseline["MfaConfiguration"] !== "OFF") return unchanged;
|
|
45485
|
+
const recorded = baseline["EnabledMfas"];
|
|
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
|
+
}
|
|
45497
|
+
return Promise.resolve({
|
|
45498
|
+
baseline: next,
|
|
45499
|
+
aws
|
|
45500
|
+
});
|
|
45501
|
+
}
|
|
45345
45502
|
async function readCurrentState$16(physicalId, _logicalId, resourceType) {
|
|
45346
45503
|
if (resourceType !== "AWS::Cognito::UserPool") return void 0;
|
|
45347
45504
|
let resp;
|
|
@@ -45616,7 +45773,7 @@ function sendsKeptMember(member, value) {
|
|
|
45616
45773
|
function previousMfaOn(previous) {
|
|
45617
45774
|
const declared = previous["MfaConfiguration"];
|
|
45618
45775
|
if (declared === "ON" || declared === "OPTIONAL") return declared;
|
|
45619
|
-
if ((declared === void 0 || declared === null || declared === "") && readEnabledMfas(previous).declaresFactor) return "OPTIONAL";
|
|
45776
|
+
if ((declared === void 0 || declared === null || declared === "") && (readEnabledMfas(previous).declaresFactor || !!previous["EmailAuthenticationMessage"] || !!previous["EmailAuthenticationSubject"])) return "OPTIONAL";
|
|
45620
45777
|
return "";
|
|
45621
45778
|
}
|
|
45622
45779
|
|
|
@@ -45793,19 +45950,36 @@ function warnOnUnremovablePoliciesSubKeys(physicalId, properties, previousProper
|
|
|
45793
45950
|
function sendsMessageMember(value) {
|
|
45794
45951
|
return value !== void 0 && value !== "";
|
|
45795
45952
|
}
|
|
45796
|
-
function warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties) {
|
|
45953
|
+
function warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties, previousIsLiveReadback = false) {
|
|
45797
45954
|
for (const [member, unset] of Object.entries(KEPT_ON_REMOVAL_MEMBERS)) {
|
|
45798
45955
|
if (!declaresMember(previousProperties[member], unset)) continue;
|
|
45799
45956
|
if (sendsKeptMember(member, properties[member])) continue;
|
|
45800
45957
|
this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): the template no longer declares ` + safeMsg`${member}, and UpdateUserPool keeps a member it omits, so the pool keeps its ` + safeMsg`current ${member}. CloudFormation keeps it on the same edit too, so cdkd sends ` + safeMsg`no reset. To change it, declare ${member} with the value you want.`);
|
|
45801
45958
|
}
|
|
45959
|
+
if (previousIsLiveReadback || hasMfaConfigProps(properties)) return;
|
|
45960
|
+
const keptWebAuthn = WEB_AUTHN_PROPERTIES.filter((key) => !!previousProperties[key]);
|
|
45961
|
+
if (keptWebAuthn.length === 0) return;
|
|
45962
|
+
const kept = keptWebAuthn.join(", ");
|
|
45963
|
+
this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): the template no longer declares ` + safeMsg`${kept}, and with no MFA property left cdkd sends no WebAuthn change, so the pool ` + safeMsg`keeps its current WebAuthn configuration. To change it, declare the WebAuthn ` + safeMsg`properties with the values you want.`);
|
|
45802
45964
|
}
|
|
45965
|
+
const WEB_AUTHN_PROPERTIES = [
|
|
45966
|
+
"WebAuthnRelyingPartyID",
|
|
45967
|
+
"WebAuthnUserVerification",
|
|
45968
|
+
"WebAuthnFactorConfiguration"
|
|
45969
|
+
];
|
|
45803
45970
|
function dcrConfigurationUpdate(properties, previousProperties) {
|
|
45804
45971
|
if (properties["DcrConfiguration"]) return properties["DcrConfiguration"];
|
|
45805
45972
|
if (previousProperties["DcrConfiguration"]) return { EnableStatus: "Disabled" };
|
|
45806
45973
|
}
|
|
45807
45974
|
async function update$17(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
45808
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
|
+
}
|
|
45809
45983
|
const stateBorneDesired = context?.replayingState === true || context?.desiredFromAwsReadback === true;
|
|
45810
45984
|
let mfaConfiguration;
|
|
45811
45985
|
try {
|
|
@@ -45834,8 +46008,9 @@ async function update$17(logicalId, physicalId, resourceType, properties, previo
|
|
|
45834
46008
|
}
|
|
45835
46009
|
const liveMfa = mfaConfiguration === "" && hasMfaConfigProps(properties) ? await this.readLiveMfaConfiguration(physicalId) : void 0;
|
|
45836
46010
|
this.warnOnUnremovablePoliciesSubKeys(physicalId, properties, previousProperties);
|
|
45837
|
-
this.warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties);
|
|
46011
|
+
this.warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties, context?.desiredFromAwsReadback === true);
|
|
45838
46012
|
const removedMfa = classifyDeclaredMfaConfiguration(properties["MfaConfiguration"]) === "absent" && !hasMfaConfigProps(properties) ? previousMfaOn(previousProperties) : "";
|
|
46013
|
+
const clearRemovedMfa = clearsRemovedMfaConfig(properties, previousProperties, mfaConfiguration);
|
|
45839
46014
|
const mfaFirstPrior = mfaMayNeedToPrecedeUpdateUserPool(properties, mfaConfiguration) ? await this.readMfaFirstPrior(physicalId) : void 0;
|
|
45840
46015
|
try {
|
|
45841
46016
|
const updateParams = { UserPoolId: physicalId };
|
|
@@ -45886,12 +46061,15 @@ async function update$17(logicalId, physicalId, resourceType, properties, previo
|
|
|
45886
46061
|
const userPool = (await this.getClient().send(new DescribeUserPoolCommand({ UserPoolId: physicalId }))).UserPool;
|
|
45887
46062
|
await this.untagRemovedUserPoolTags(logicalId, physicalId, resourceType, userPool?.Arn, properties["UserPoolTags"], previousProperties["UserPoolTags"]);
|
|
45888
46063
|
if (removedMfa !== "") await this.turnOffRemovedMfa(logicalId, physicalId, removedMfa);
|
|
46064
|
+
else if (clearRemovedMfa) {
|
|
46065
|
+
if (!await this.resetMfaConfigOff(logicalId, physicalId, "skip")) recordedProperties = receivedProperties;
|
|
46066
|
+
}
|
|
45889
46067
|
this.logger.debug(`Successfully updated Cognito User Pool ${logicalId}`);
|
|
45890
46068
|
const region = await this.getClient().config.region();
|
|
45891
46069
|
const { urlSuffix } = derivePartitionAndUrlSuffix(region);
|
|
45892
46070
|
const providerName = `cognito-idp.${region}.${urlSuffix}/${physicalId}`;
|
|
45893
46071
|
const providerUrl = `https://cognito-idp.${region}.${urlSuffix}/${physicalId}`;
|
|
45894
|
-
const narrowed = withPreviousCreateTimeOnly(narrowMfaConfiguration(
|
|
46072
|
+
const narrowed = withPreviousCreateTimeOnly(narrowMfaConfiguration(recordedProperties), previousProperties, keptCreateTimeOnly);
|
|
45895
46073
|
const effectiveProperties = keptSchema === void 0 ? narrowed : {
|
|
45896
46074
|
...narrowed,
|
|
45897
46075
|
Schema: keptSchema
|
|
@@ -45905,7 +46083,7 @@ async function update$17(logicalId, physicalId, resourceType, properties, previo
|
|
|
45905
46083
|
ProviderURL: providerUrl,
|
|
45906
46084
|
UserPoolId: physicalId
|
|
45907
46085
|
},
|
|
45908
|
-
...effectiveProperties !==
|
|
46086
|
+
...effectiveProperties !== receivedProperties ? { effectiveProperties } : {}
|
|
45909
46087
|
};
|
|
45910
46088
|
} catch (error) {
|
|
45911
46089
|
if (error instanceof ResourceUpdateNotSupportedError || error instanceof ProvisioningError) throw error;
|
|
@@ -46296,6 +46474,9 @@ var CognitoUserPoolProvider = class {
|
|
|
46296
46474
|
canonicalizeDesiredProperties(resourceType, properties) {
|
|
46297
46475
|
return canonicalizeDesiredProperties$1.call(this, resourceType, properties);
|
|
46298
46476
|
}
|
|
46477
|
+
canonicalizeDriftPair(resourceType, baseline, aws, properties) {
|
|
46478
|
+
return canonicalizeDriftPair$3.call(this, resourceType, baseline, aws, properties);
|
|
46479
|
+
}
|
|
46299
46480
|
getClient() {
|
|
46300
46481
|
if (!this.cognitoClient) this.cognitoClient = new CognitoIdentityProviderClient({
|
|
46301
46482
|
...ambientClientDefaults(),
|
|
@@ -46346,12 +46527,15 @@ var CognitoUserPoolProvider = class {
|
|
|
46346
46527
|
warnOnUnremovablePoliciesSubKeys(physicalId, properties, previousProperties) {
|
|
46347
46528
|
return warnOnUnremovablePoliciesSubKeys.call(this, physicalId, properties, previousProperties);
|
|
46348
46529
|
}
|
|
46349
|
-
warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties) {
|
|
46350
|
-
return warnOnKeptRemovedMembers.call(this, logicalId, physicalId, properties, previousProperties);
|
|
46530
|
+
warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties, previousIsLiveReadback = false) {
|
|
46531
|
+
return warnOnKeptRemovedMembers.call(this, logicalId, physicalId, properties, previousProperties, previousIsLiveReadback);
|
|
46351
46532
|
}
|
|
46352
46533
|
turnOffRemovedMfa(logicalId, physicalId, previousMfaConfiguration) {
|
|
46353
46534
|
return turnOffRemovedMfa.call(this, logicalId, physicalId, previousMfaConfiguration);
|
|
46354
46535
|
}
|
|
46536
|
+
resetMfaConfigOff(logicalId, physicalId, onReadFailure) {
|
|
46537
|
+
return resetMfaConfigOff.call(this, logicalId, physicalId, onReadFailure);
|
|
46538
|
+
}
|
|
46355
46539
|
update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
46356
46540
|
return update$17.call(this, logicalId, physicalId, resourceType, properties, previousProperties, context);
|
|
46357
46541
|
}
|
|
@@ -49681,6 +49865,33 @@ async function readGraphQLSchema(physicalId, properties) {
|
|
|
49681
49865
|
Definition: definitionToReturn
|
|
49682
49866
|
};
|
|
49683
49867
|
}
|
|
49868
|
+
async function canonicalizeDriftPair$2(resourceType, baseline, aws, properties) {
|
|
49869
|
+
const unchanged = {
|
|
49870
|
+
baseline,
|
|
49871
|
+
aws
|
|
49872
|
+
};
|
|
49873
|
+
if (resourceType !== "AWS::AppSync::GraphQLSchema" || properties === void 0) return unchanged;
|
|
49874
|
+
const location = properties["DefinitionS3Location"];
|
|
49875
|
+
const recorded = baseline["Definition"];
|
|
49876
|
+
const live = aws["Definition"];
|
|
49877
|
+
if (properties["Definition"] !== void 0 || typeof location !== "string" || location === "" || typeof recorded !== "string" || typeof live !== "string" || live === "" || recorded === live) return unchanged;
|
|
49878
|
+
let body;
|
|
49879
|
+
try {
|
|
49880
|
+
body = await this.fetchS3LocationBody(location, resourceType, "(drift baseline heal)", "DefinitionS3Location");
|
|
49881
|
+
} catch (err) {
|
|
49882
|
+
const cause = err instanceof Error && err.cause instanceof Error ? err.cause : err;
|
|
49883
|
+
this.logger.debug(safeMsg`Could not read the declared GraphQL schema object (${cause instanceof Error ? cause.name : "unknown error"}); comparing Definition against the recorded baseline`);
|
|
49884
|
+
return unchanged;
|
|
49885
|
+
}
|
|
49886
|
+
const [declared, current] = await Promise.all([this.canonicalizeSdl(body, "state"), this.canonicalizeSdl(live, "aws")]);
|
|
49887
|
+
return declared === current ? {
|
|
49888
|
+
baseline: {
|
|
49889
|
+
...baseline,
|
|
49890
|
+
Definition: live
|
|
49891
|
+
},
|
|
49892
|
+
aws
|
|
49893
|
+
} : unchanged;
|
|
49894
|
+
}
|
|
49684
49895
|
async function readGraphQLApi(physicalId) {
|
|
49685
49896
|
let api;
|
|
49686
49897
|
try {
|
|
@@ -50264,6 +50475,9 @@ var AppSyncProvider = class {
|
|
|
50264
50475
|
canonicalizeSdl(sdl, source) {
|
|
50265
50476
|
return canonicalizeSdl.call(this, sdl, source);
|
|
50266
50477
|
}
|
|
50478
|
+
canonicalizeDriftPair(resourceType, baseline, aws, properties) {
|
|
50479
|
+
return canonicalizeDriftPair$2.call(this, resourceType, baseline, aws, properties);
|
|
50480
|
+
}
|
|
50267
50481
|
waitForSchemaCreation(apiId, logicalId, resourceType, phase, mask, startStatus) {
|
|
50268
50482
|
return waitForSchemaCreation.call(this, apiId, logicalId, resourceType, phase, mask, startStatus);
|
|
50269
50483
|
}
|
|
@@ -67245,4 +67459,4 @@ var ACMCertificateProvider = class {
|
|
|
67245
67459
|
};
|
|
67246
67460
|
|
|
67247
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 };
|
|
67248
|
-
//# sourceMappingURL=provider-classes-
|
|
67462
|
+
//# sourceMappingURL=provider-classes-BydpQUFi.js.map
|