@cdkd/cli 0.370.5 → 0.370.7
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-_gbXecg4.js → ambient-client-defaults-DqS6NWx5.js} +3 -3
- package/dist/{ambient-client-defaults-_gbXecg4.js.map → ambient-client-defaults-DqS6NWx5.js.map} +1 -1
- package/dist/{asg-provider-CjeG96E1.js → asg-provider-BMQeGpmF.js} +8 -8
- package/dist/{asg-provider-CjeG96E1.js.map → asg-provider-BMQeGpmF.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{created-resource-sink-C7boxhUv.js → created-resource-sink-DGvRiBLW.js} +4 -4
- package/dist/{created-resource-sink-C7boxhUv.js.map → created-resource-sink-DGvRiBLW.js.map} +1 -1
- package/dist/{custom-resource-runtime-cBX5VM9j.js → custom-resource-runtime-BJFVnN9S.js} +6 -6
- package/dist/{custom-resource-runtime-cBX5VM9j.js.map → custom-resource-runtime-BJFVnN9S.js.map} +1 -1
- package/dist/{db-associated-roles-cX92h3D3.js → db-associated-roles-ConAeY8g.js} +2 -2
- package/dist/{db-associated-roles-cX92h3D3.js.map → db-associated-roles-ConAeY8g.js.map} +1 -1
- package/dist/{delete-started-CiNcThIH.js → delete-started-Dya9H_gI.js} +4 -4
- package/dist/{delete-started-CiNcThIH.js.map → delete-started-Dya9H_gI.js.map} +1 -1
- package/dist/{deploy-engine-KvFzqr5K.js → deploy-engine-CpeBWcxG.js} +433 -66
- package/dist/deploy-engine-CpeBWcxG.js.map +1 -0
- package/dist/{ec2-termination-protection-b1731I7q.js → ec2-termination-protection-CVTp4mlC.js} +3 -3
- package/dist/{ec2-termination-protection-b1731I7q.js.map → ec2-termination-protection-CVTp4mlC.js.map} +1 -1
- package/dist/{ecr-uri-DUZFbM_U.js → ecr-uri-DwYinaAB.js} +2 -2
- package/dist/{ecr-uri-DUZFbM_U.js.map → ecr-uri-DwYinaAB.js.map} +1 -1
- package/dist/{emr-cluster-provider-CUcdSnHU.js → emr-cluster-provider-CR_OFsGZ.js} +10 -10
- package/dist/{emr-cluster-provider-CUcdSnHU.js.map → emr-cluster-provider-CR_OFsGZ.js.map} +1 -1
- package/dist/{expected-bucket-owner-BoaNqixA.js → expected-bucket-owner-BhnjZsLt.js} +2 -2
- package/dist/{expected-bucket-owner-BoaNqixA.js.map → expected-bucket-owner-BhnjZsLt.js.map} +1 -1
- package/dist/{iam-role-provider-TMidCxAo.js → iam-role-provider-CKIdrdu5.js} +12 -12
- package/dist/{iam-role-provider-TMidCxAo.js.map → iam-role-provider-CKIdrdu5.js.map} +1 -1
- package/dist/{identity-read-denied-BiQ1PmTI.js → identity-read-denied-V23l4pKK.js} +5 -5
- package/dist/{identity-read-denied-BiQ1PmTI.js.map → identity-read-denied-V23l4pKK.js.map} +1 -1
- package/dist/{image-plan-CiCgw-_z.js → image-plan-D62M_M30.js} +8 -8
- package/dist/{image-plan-CiCgw-_z.js.map → image-plan-D62M_M30.js.map} +1 -1
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-Cjqxcxk-.js → logger-CSLdt93b.js} +2 -2
- package/dist/{logger-Cjqxcxk-.js.map → logger-CSLdt93b.js.map} +1 -1
- package/dist/{neptune-provider-CgQ0L8DK.js → neptune-provider-BCXKNNXR.js} +9 -9
- package/dist/{neptune-provider-CgQ0L8DK.js.map → neptune-provider-BCXKNNXR.js.map} +1 -1
- package/dist/{program-NrkL-6ty.js → program-Lw5gWY1A.js} +176 -43
- package/dist/program-Lw5gWY1A.js.map +1 -0
- package/dist/{provider-classes-qAFZUcm_.js → provider-classes-DOrSeS2t.js} +295 -168
- package/dist/{provider-classes-qAFZUcm_.js.map → provider-classes-DOrSeS2t.js.map} +1 -1
- package/dist/{rds-provider-D6DGl9MF.js → rds-provider-CCpEJkcN.js} +13 -13
- package/dist/{rds-provider-D6DGl9MF.js.map → rds-provider-CCpEJkcN.js.map} +1 -1
- package/dist/{read-replica-BOG51Xwi.js → read-replica-Dkepeh8a.js} +3 -3
- package/dist/{read-replica-BOG51Xwi.js.map → read-replica-Dkepeh8a.js.map} +1 -1
- package/dist/{redacted-delete-address-CkhP6PGm.js → redacted-delete-address-BPwMWIOq.js} +4 -4
- package/dist/{redacted-delete-address-CkhP6PGm.js.map → redacted-delete-address-BPwMWIOq.js.map} +1 -1
- package/dist/{replacement-rules-C133K0Bf.js → replacement-rules-aKrUHcS2.js} +3 -3
- package/dist/{replacement-rules-C133K0Bf.js.map → replacement-rules-aKrUHcS2.js.map} +1 -1
- package/dist/{resource-deadline-DmY8KRLF.js → resource-deadline-DjIkTygT.js} +2 -2
- package/dist/{resource-deadline-DmY8KRLF.js.map → resource-deadline-DjIkTygT.js.map} +1 -1
- package/dist/{restore-source-guard-gJLarbaA.js → restore-source-guard-Bprs9w8d.js} +4 -4
- package/dist/{restore-source-guard-gJLarbaA.js.map → restore-source-guard-Bprs9w8d.js.map} +1 -1
- package/dist/{run-cli-BHRNcfiS.js → run-cli-BfDyKYOs.js} +2 -2
- package/dist/{run-cli-BHRNcfiS.js.map → run-cli-BfDyKYOs.js.map} +1 -1
- package/dist/{secret-reference-immutable-DBrHYI3L.js → secret-reference-immutable-DK77ST9u.js} +6 -6
- package/dist/{secret-reference-immutable-DBrHYI3L.js.map → secret-reference-immutable-DK77ST9u.js.map} +1 -1
- package/dist/{settle-own-write-members-D9k3sUDy.js → settle-own-write-members-DgrfaXCf.js} +13 -13
- package/dist/{settle-own-write-members-D9k3sUDy.js.map → settle-own-write-members-DgrfaXCf.js.map} +1 -1
- package/dist/{tag-list-KIeuaiQn.js → tag-list-B4_wJ9vt.js} +4 -4
- package/dist/{tag-list-KIeuaiQn.js.map → tag-list-B4_wJ9vt.js.map} +1 -1
- package/dist/{version-CdTuXY-x.js → version-3YWtwAiy.js} +2 -2
- package/dist/{version-CdTuXY-x.js.map → version-3YWtwAiy.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-KvFzqr5K.js.map +0 -1
- package/dist/program-NrkL-6ty.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-CKIdrdu5.js";
|
|
2
|
+
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-CSLdt93b.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as 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, Gt as isAuxiliaryFailure, H as userPoolProtectionSite, It as maskDeep, Jt as markCreatedBeforeFailure, K as isProceedDbStatus, L as deleteWithProtectionCompensation, Lt as maskerOrIdentity, M as remedyLogicalId, Mt as stateOrphanRecordRemedy, N as resolveExplicitPhysicalId, Nt as createMaskedLogSinks, O as normalizeAwsTagsToCfn, Ot as logicalIdShown, Pt as createMaskedRetryLogger, R as logGroupProtectionSite, 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, X as isTerminalDeleteFailure, Y as ProtectionFlipRegistry, Yt as markSupersedesEarlierCreate, Z as protectionFlipKey, _ as withoutServerErrorRetries, _t as recordedPrincipalsRepair, at as isAwsCliLiteral, b as assertRegionMatch, c as AmbiguousCreateLatch, ct as renderDisableCommand, d as ambiguousAttemptLead, dn as withPasteableAwsProfile, dt as SECRET_DERIVED_READ_LIVE, et as ElapsedBudgetRegistry, f as createAttemptKey, fn as injectiveKey, ft as diffPrincipalNames, g as setBounded, h as replayedSendWindow, ht as readPrincipalLists, i as reportCreatedResource, it as WITHHELD_AWS_COMMAND, j as refusalTypeShown, 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, pn as injectiveKeyPrefix, pt as holdsSecretDerivedEntry, q as isTerminalDbWaitStatus, qt as markAuxiliaryFailure, rt as UNNAMEABLE_ID_CLAUSE, s as AMBIGUOUS_LATCH_TTL_MS, st as protectedReplacementAdvice, u as RecentIdSet, v as DriftReadRefusedError, w as importRemedyCommand, 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 desiredIndexEntriesByName, $
|
|
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 { C as timePhase, g as withRetry, n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer } 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 { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-DqS6NWx5.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, Gt as isAuxiliaryFailure, H as userPoolProtectionSite, It as maskDeep, Jt as markCreatedBeforeFailure, K as isProceedDbStatus, L as deleteWithProtectionCompensation, Lt as maskerOrIdentity, M as remedyLogicalId, Mt as stateOrphanRecordRemedy, N as resolveExplicitPhysicalId, Nt as createMaskedLogSinks, O as normalizeAwsTagsToCfn, Ot as logicalIdShown, Pt as createMaskedRetryLogger, R as logGroupProtectionSite, 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, X as isTerminalDeleteFailure, Y as ProtectionFlipRegistry, Yt as markSupersedesEarlierCreate, Z as protectionFlipKey, _ as withoutServerErrorRetries, _t as recordedPrincipalsRepair, at as isAwsCliLiteral, b as assertRegionMatch, c as AmbiguousCreateLatch, ct as renderDisableCommand, d as ambiguousAttemptLead, dn as withPasteableAwsProfile, dt as SECRET_DERIVED_READ_LIVE, et as ElapsedBudgetRegistry, f as createAttemptKey, fn as injectiveKey, ft as diffPrincipalNames, g as setBounded, h as replayedSendWindow, ht as readPrincipalLists, i as reportCreatedResource, it as WITHHELD_AWS_COMMAND, j as refusalTypeShown, 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, pn as injectiveKeyPrefix, pt as holdsSecretDerivedEntry, q as isTerminalDbWaitStatus, qt as markAuxiliaryFailure, rt as UNNAMEABLE_ID_CLAUSE, s as AMBIGUOUS_LATCH_TTL_MS, st as protectedReplacementAdvice, u as RecentIdSet, v as DriftReadRefusedError, w as importRemedyCommand, wt as canonicalizeRoute53QueryName, x as holderRefusalMask, y as RESOURCE_NOT_FOUND, z as observeThenDisableProtection } from "./created-resource-sink-DGvRiBLW.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-3YWtwAiy.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-V23l4pKK.js";
|
|
8
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-Dya9H_gI.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-Lw5gWY1A.js";
|
|
10
|
+
import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-BPwMWIOq.js";
|
|
11
|
+
import { $ as desiredIndexEntriesByName, $r as recordedSgRuleId, $t as reverseMapTableContributorInsights, At as isDynamoDBTableArnIn, B as declaredStreamPolicyMember, Bc as LEGACY_HANDLE_ID_PREFIX, Bo as settleDeclaredMember, Bt as planVectorIndexUpdates, Ci as earliestDefined, Co as awaitInFlightSibling, Ct as sseSpecificationRefusal, Cu as withheldAccountClause, Dc as getAccountInfo, Di as acquireIdempotencyToken, Dt as TAGS_BASELINE_REREAD_DELAYS_MS, Et as tableNameReleaseWait, Fo as efsPolicyMatchesDeclared, Fs as connectInstanceIdOf, Ft as isTtlAlreadyDisabled, G as streamDeclaresPolicy, Gt as CONTRIBUTOR_INSIGHTS_KEY, H as planStreamMemberOps, Ho as verbatimEchoDriftKeys, Ht as vectorIndexesForCreate, Hu as normalizeRecordName, Io as lambdaPermissionMatchesDeclared, It as isTtlRateLimited, J as streamPolicyMatchesDeclared, Jr as siblingOwnedSgRuleIdentities, Jt as indexDeclaresContributorInsights, K as streamDeclaresTags, Kt as completeTableContributorInsightsBaseline, L as DynamoDBGlobalTableProvider, Lo as memberReadFailure, Lt as planTimeToLive, Mo as SNS_DEFAULT_POLICY_ID, Mt as settleWrittenTags, Nd as rewriteTemplateAssetReferences, Nn as childRowTags, No as declaredMemberDocument, Os as markWaitAbandoned, Ot as clearTagWrites, Pn as childStackTags, Po as declaredPolicyDocument, Ps as isSettledInstanceState, Pt as takeTagWrite, Pu as withoutSdkUnwiredProperties, Q as deletionProtectionRefusal, Qc as APPSYNC_APIKEY_ARN_RESOURCE_PATH, Qi as getCurrentProducerRegions, Qo as evaluateSignals, Qr as cfnIngressPortValue, Qt as reverseMapIndexContributorInsights, R as STREAM_POLICY_KEY, Rn as licensedNameHolder, Ro as policyDocumentMatchesDeclared, Rt as readTtlSpec, So as withoutSiblingOwned, St as readCapacityNumber, Su as accountArgs, Ti as reserveStackCreateToken, To as getStackRecords, Ts as withIndeterminateGuard, Tt as tableDeleteGoneWait, Uo as attemptedPolicyDocument, Ut as vectorIndexesSettled, Uu as planSubscriptionAttributes, V as declaredStreamTagsMember, Vc as isLegacyHandleId, Vo as warnUnsettledMember, Vt as readbackVectorIndexes, W as reverseMapStreamPolicy, Wo as policyContentKey, Wt as vectorIndexesShapeDetail, Wu as wireAttributeValue, X as canonicalizeStaleIndexDescription, Xc as toCfnInteger, Xn as revertNestedChildFromJournal, Xo as WaitConditionSignalStore, Xr as withoutSiblingOwnedSgRules, Xt as planIndexContributorInsightsOps, Y as streamTagsMatchDeclared, Yc as isWarmThroughputDecrease, Yt as planContributorInsightsOp, Z as declaresIndexList, Zc as toFiniteNumber, Zo as classifyHandleUrl, Zr as SG_RULE_ID_PATTERN, Zt as readContributorInsightsSpec, _n as hasCdkAutoDeleteTag, _o as collectGroupsAddedBySiblings, _s as waitForLambdaFunctionActive, _t as isPlainCapacityBlock, _u as refuseMalformedResourcesForDestroy, ac as s3BucketRegionalDomainName, an as deleteBudgetKey, at as coerceWarmThroughput, bc as outputReferenceProvenanceOf, bo as isStoredExpression, bt as maskLeafValue, cf as displayAssemblyPath, cn as DELETE_INDEX_WAIT_PROCEED_NOTE, ct as isRefusedWarmThroughput, dd as findNestedTemplateTreeDefect, df as resolveAssemblyPath, dn as deleteTableWithIndexBusyRetry, dt as trimUnsentWarmMembers, el as maskedSecretSegment, en as stripIndexContributorInsights, er as getCurrentNestedStackContext, et as gsiUnsendableChangeRefusal, fd as isAbsoluteAssetPath, fl as passedParameterClassesOf, fn as maskedLogger, ft as warmThroughputAlreadyMatches, gc as parseWebACLArn, gn as S3_AUTO_DELETE_OBJECTS_TAG, gt as hasUsableDeclaredCapacity, hi as calculateResourceDrift, hn as ECR_AUTO_DELETE_IMAGES_TAG, ht as deleteTableRetryDelays, ic as s3BucketDualStackDomainName, in as compensateRemovedDeletionProtection, it as sameJsonValue, ja as replacedDeleteFailureVerdict, jo as OWN_WRITE_REREAD_DELAYS_MS, jt as recordTagWrite, ju as findSdkUnwiredProperties, ko as KMS_DEFAULT_KEY_POLICY_ID, ld as stringifyValue, ln as INDEX_SETTLE_POLL_INTERVAL_MS, lt as readbackWarmThroughput, md as renderNestedTemplateTreeDefect, mn as waitForIndexesSettled, mt as KINESIS_DISABLE_PENDING_STATUSES, nc as s3BucketArn, ni as canonicalizeIpv6Cidr, nn as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, nt as projectIndexesOnto, oc as s3BucketWebsiteUrl, on as resolveDynamoDbDeleteBudgetClock, ot as declaresWarmThroughput, pd as listNestedTemplateRows, pn as relayedIndexBusyDelete, pt as KINESIS_DESTINATION_SETTLE_POLL_MS, q as streamMemberRefusals, qn as getNestedRevertRun, qt as contributorInsightsRefusals, rc as s3BucketDomainName, ri as canonicalizeIpv4Cidr, rn as beginDeleteWait, rt as reverseMapSecondaryIndex, sf as describeFileReadFailure, sn as resolveDynamoDbDeleteBudgetMs, ss as getCurrentResourceSecrets, st as desiredBagIsInformative, su as refuseMalformedNestedChildOutputs, t as DeployEngine, tc as dnsEntryStrings, ti as sgProtocolKey, tn as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, to as secretNamedAttributeNamesOf, tr as withNestedStackContext, tt as localSecondaryIndexesKey, uf as renderAssemblyPathEscape, un as TABLE_INDEX_NOUN, ut as sentWarmThroughputMembers, vn as isTruthyCfnBoolean, vo as collectManagedPolicyArnsAttachedBySiblings, vt as isTableName, ws as deleteSkipReason, wt as sseSpecificationToSend, xd as decodeListingKey, xo as withoutSiblingAttachedArns, xt as pointInTimeRecoveryRefusal, yo as collectPrincipalsAttachingPolicy, ys as waitForGoneAfterDelete, yt as mapSSESpecification, z as STREAM_TAGS_KEY, zo as reReadUntilSettled, zt as sendTtlWaitingOutRateLimit } from "./deploy-engine-CpeBWcxG.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-B4_wJ9vt.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-Bprs9w8d.js";
|
|
14
|
+
import { C as timePhase, g as withRetry, n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer } from "./secret-reference-immutable-DK77ST9u.js";
|
|
15
|
+
import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-DgrfaXCf.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 { $ as snapshotPassProvenance, C as passedNoEchoParametersOf, Ft as dynamicReferenceTokens, I as markSameGenerationBag, W as redactForState, Z as recordReferenceProvenanceEntry, _n as carriesSecretMask, c as parseLambdaFunctionAddress, cn as recoverMaskedOutput, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, jt as withoutPhysicalNameCopies, l as sameLambdaFunctionAddress, ln as physicalNameCopiesOf, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, s as lambdaFunctionNameForMask, un as recordAttributeIdCopy } 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-CVTp4mlC.js";
|
|
19
|
+
import { l as removedTemplateKeys, n as enclosingDeadlineRemainingMs, o as clearOnUpdateRemoval, t as enclosingDeadlineExpired, u as withRemovalDefaults } from "./resource-deadline-DjIkTygT.js";
|
|
20
|
+
import { $ as snapshotPassProvenance, C as passedNoEchoParametersOf, Ft as dynamicReferenceTokens, I as markSameGenerationBag, W as redactForState, Z as recordReferenceProvenanceEntry, _n as carriesSecretMask, c as parseLambdaFunctionAddress, cn as recoverMaskedOutput, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, jt as withoutPhysicalNameCopies, l as sameLambdaFunctionAddress, ln as physicalNameCopiesOf, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, s as lambdaFunctionNameForMask, un as recordAttributeIdCopy } from "./replacement-rules-aKrUHcS2.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-CR_OFsGZ.js";
|
|
22
|
+
import { RDSProvider } from "./rds-provider-CCpEJkcN.js";
|
|
23
|
+
import { NeptuneProvider } from "./neptune-provider-BCXKNNXR.js";
|
|
24
|
+
import { ASGProvider } from "./asg-provider-BMQeGpmF.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";
|
|
@@ -11103,7 +11103,8 @@ var LambdaFunctionProvider = class {
|
|
|
11103
11103
|
["FileSystemConfigs", []],
|
|
11104
11104
|
["ImageConfig", {}],
|
|
11105
11105
|
["SnapStart", { ApplyOn: "None" }],
|
|
11106
|
-
["LoggingConfig", { LogFormat: "Text" }]
|
|
11106
|
+
["LoggingConfig", { LogFormat: "Text" }],
|
|
11107
|
+
["RecursiveLoop", "Terminate"]
|
|
11107
11108
|
])]]);
|
|
11108
11109
|
removalHandledInUpdate = /* @__PURE__ */ new Map([["AWS::Lambda::Function", /* @__PURE__ */ new Set([
|
|
11109
11110
|
"Code",
|
|
@@ -12139,6 +12140,57 @@ async function applyTagDiff$17(arn, resourceType, logicalId, oldTagsRaw, newTags
|
|
|
12139
12140
|
}
|
|
12140
12141
|
|
|
12141
12142
|
// src/provisioning/providers/lambda-eventsource/delete.ts
|
|
12143
|
+
const TRANSITIONAL_STATES = /* @__PURE__ */ new Set([
|
|
12144
|
+
"Creating",
|
|
12145
|
+
"Updating",
|
|
12146
|
+
"Enabling",
|
|
12147
|
+
"Disabling",
|
|
12148
|
+
"Deleting"
|
|
12149
|
+
]);
|
|
12150
|
+
const IN_USE_SETTLE_BUDGET_MS = 3e5;
|
|
12151
|
+
const IN_USE_POLL_INTERVAL_MS = 3e3;
|
|
12152
|
+
function isInUse(error) {
|
|
12153
|
+
return error?.name === "ResourceInUseException";
|
|
12154
|
+
}
|
|
12155
|
+
async function deleteWhenSettled(logicalId, physicalId, resourceType) {
|
|
12156
|
+
const userTimeoutMs = resolvedResourceTimeoutMs(resourceType);
|
|
12157
|
+
const budgetMs = userTimeoutMs === void 0 ? IN_USE_SETTLE_BUDGET_MS : Math.min(IN_USE_SETTLE_BUDGET_MS, userTimeoutMs / 2);
|
|
12158
|
+
const deadline = Date.now() + budgetMs;
|
|
12159
|
+
for (;;) {
|
|
12160
|
+
try {
|
|
12161
|
+
await this.lambdaClient.send(new DeleteEventSourceMappingCommand({ UUID: physicalId }));
|
|
12162
|
+
return;
|
|
12163
|
+
} catch (error) {
|
|
12164
|
+
if (!isInUse(error)) throw error;
|
|
12165
|
+
let state;
|
|
12166
|
+
try {
|
|
12167
|
+
state = (await this.lambdaClient.send(new GetEventSourceMappingCommand({ UUID: physicalId }))).State;
|
|
12168
|
+
} catch (readError) {
|
|
12169
|
+
if (readError instanceof ResourceNotFoundException) throw readError;
|
|
12170
|
+
throw error;
|
|
12171
|
+
}
|
|
12172
|
+
if (!TRANSITIONAL_STATES.has(state ?? "") || Date.now() >= deadline) throw error;
|
|
12173
|
+
}
|
|
12174
|
+
this.logger.debug(safeMsg`Event source mapping ${logicalId} is still settling; waiting before retrying the delete`);
|
|
12175
|
+
const watch = startInterruptWatch(`event source mapping ${logicalId} delete wait`);
|
|
12176
|
+
try {
|
|
12177
|
+
for (;;) {
|
|
12178
|
+
await new Promise((resolve) => setTimeout(resolve, IN_USE_POLL_INTERVAL_MS));
|
|
12179
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
12180
|
+
let current;
|
|
12181
|
+
try {
|
|
12182
|
+
current = await this.lambdaClient.send(new GetEventSourceMappingCommand({ UUID: physicalId }));
|
|
12183
|
+
} catch (readError) {
|
|
12184
|
+
if (readError instanceof ResourceNotFoundException) throw readError;
|
|
12185
|
+
break;
|
|
12186
|
+
}
|
|
12187
|
+
if (!TRANSITIONAL_STATES.has(current.State ?? "") || Date.now() >= deadline) break;
|
|
12188
|
+
}
|
|
12189
|
+
} finally {
|
|
12190
|
+
watch.dispose();
|
|
12191
|
+
}
|
|
12192
|
+
}
|
|
12193
|
+
}
|
|
12142
12194
|
async function deleteImpl$32(logicalId, physicalId, resourceType, properties, context) {
|
|
12143
12195
|
this.logger.debug(`Deleting event source mapping ${logicalId}: ${physicalId}`);
|
|
12144
12196
|
try {
|
|
@@ -12153,7 +12205,7 @@ async function deleteImpl$32(logicalId, physicalId, resourceType, properties, co
|
|
|
12153
12205
|
}
|
|
12154
12206
|
throw error;
|
|
12155
12207
|
}
|
|
12156
|
-
await
|
|
12208
|
+
await deleteWhenSettled.call(this, logicalId, physicalId, resourceType);
|
|
12157
12209
|
this.logger.debug(`Successfully deleted event source mapping ${logicalId}`);
|
|
12158
12210
|
} catch (error) {
|
|
12159
12211
|
if (error instanceof ResourceNotFoundException) {
|
|
@@ -12162,6 +12214,7 @@ async function deleteImpl$32(logicalId, physicalId, resourceType, properties, co
|
|
|
12162
12214
|
this.logger.debug(`Event source mapping ${physicalId} does not exist, skipping deletion`);
|
|
12163
12215
|
return;
|
|
12164
12216
|
}
|
|
12217
|
+
if (isInterruptedWaitError(error)) throw error;
|
|
12165
12218
|
const cause = error instanceof Error ? error : void 0;
|
|
12166
12219
|
throw this.wrapMaskedError(this.operationSinks(context?.maskSecrets, properties ?? {}), error, (text) => new ProvisioningError(`Failed to delete event source mapping ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
12167
12220
|
}
|
|
@@ -15976,12 +16029,17 @@ function refuseIndexCeilingsUnderProvisioned(logicalId, physicalId, resourceType
|
|
|
15976
16029
|
}
|
|
15977
16030
|
|
|
15978
16031
|
// src/provisioning/providers/dynamodb-table/update-billing.ts
|
|
15979
|
-
async function applyBillingModeUpdate(logicalId, physicalId, properties, previousProperties, markUnsettled, maskSecrets, warn, normalizeTableClass, tableClassChanged, liveBillingMode, prevBillingMode, billingMode, billingOrThroughputChanged, liveIndexes, desiredIndexByName, preFlipDeletedIndexNames, gsiHandledByBillingFlip) {
|
|
15980
|
-
|
|
16032
|
+
async function applyBillingModeUpdate(logicalId, physicalId, properties, previousProperties, markUnsettled, maskSecrets, warn, normalizeTableClass, tableClassChanged, liveBillingMode, prevBillingMode, billingMode, billingOrThroughputChanged, liveIndexes, desiredIndexByName, preFlipDeletedIndexNames, gsiHandledByBillingFlip, liveTable) {
|
|
16033
|
+
const sendBilling = billingOrThroughputChanged && !billingChangeAlreadyLive(properties, billingMode, liveBillingMode, liveTable);
|
|
16034
|
+
const desiredTableClass = normalizeTableClass(properties["TableClass"]);
|
|
16035
|
+
const tableClassInput = tableClassChanged && !(liveTable !== void 0 && (liveTable.TableClassSummary?.TableClass ?? "STANDARD") === desiredTableClass) ? {
|
|
16036
|
+
TableName: physicalId,
|
|
16037
|
+
TableClass: desiredTableClass
|
|
16038
|
+
} : void 0;
|
|
16039
|
+
if (sendBilling || tableClassInput !== void 0) {
|
|
15981
16040
|
const updateInput = { TableName: physicalId };
|
|
15982
|
-
if (
|
|
15983
|
-
if (
|
|
15984
|
-
if (billingOrThroughputChanged && billingMode !== "PAY_PER_REQUEST" && properties["ProvisionedThroughput"]) {
|
|
16041
|
+
if (sendBilling) updateInput.BillingMode = billingMode;
|
|
16042
|
+
if (sendBilling && billingMode !== "PAY_PER_REQUEST" && properties["ProvisionedThroughput"]) {
|
|
15985
16043
|
const pt = properties["ProvisionedThroughput"];
|
|
15986
16044
|
const onUnusable = (member, raw) => this.warnUnusableProvisionedCapacity(`AWS::DynamoDB::Table ${logicalId}`, member, raw, maskSecrets);
|
|
15987
16045
|
updateInput.ProvisionedThroughput = {
|
|
@@ -15990,7 +16048,7 @@ async function applyBillingModeUpdate(logicalId, physicalId, properties, previou
|
|
|
15990
16048
|
};
|
|
15991
16049
|
}
|
|
15992
16050
|
const flipLiveIndexes = liveIndexes.filter((live) => typeof live.IndexName !== "string" || !preFlipDeletedIndexNames.has(live.IndexName));
|
|
15993
|
-
if (
|
|
16051
|
+
if (sendBilling && billingMode === "PROVISIONED" && liveBillingMode === "PAY_PER_REQUEST" && flipLiveIndexes.length > 0) {
|
|
15994
16052
|
const indexUpdates = [];
|
|
15995
16053
|
const unspecified = [];
|
|
15996
16054
|
for (const live of flipLiveIndexes) {
|
|
@@ -16017,14 +16075,32 @@ async function applyBillingModeUpdate(logicalId, physicalId, properties, previou
|
|
|
16017
16075
|
}
|
|
16018
16076
|
if (billingMode !== prevBillingMode) markUnsettled("BillingMode");
|
|
16019
16077
|
if (JSON.stringify(properties["ProvisionedThroughput"]) !== JSON.stringify(previousProperties["ProvisionedThroughput"])) markUnsettled("ProvisionedThroughput");
|
|
16020
|
-
if (tableClassChanged) markUnsettled("TableClass");
|
|
16021
16078
|
if (updateInput.GlobalSecondaryIndexUpdates !== void 0) markUnsettled("GlobalSecondaryIndexes");
|
|
16079
|
+
if (!sendBilling && tableClassInput !== void 0) {
|
|
16080
|
+
markUnsettled("TableClass");
|
|
16081
|
+
await this.dynamoDBClient.send(new UpdateTableCommand(tableClassInput));
|
|
16082
|
+
await this.waitForTableActiveAfterUpdate(physicalId, 60);
|
|
16083
|
+
return;
|
|
16084
|
+
}
|
|
16022
16085
|
await this.dynamoDBClient.send(new UpdateTableCommand(updateInput));
|
|
16023
16086
|
if (billingMode !== liveBillingMode) await this.waitForTableAndIndexesActive(physicalId, 600, { maskSecrets });
|
|
16024
16087
|
else await this.waitForTableActiveAfterUpdate(physicalId, 60);
|
|
16088
|
+
if (tableClassInput !== void 0) {
|
|
16089
|
+
markUnsettled("TableClass");
|
|
16090
|
+
await this.dynamoDBClient.send(new UpdateTableCommand(tableClassInput));
|
|
16091
|
+
await this.waitForTableActiveAfterUpdate(physicalId, 60);
|
|
16092
|
+
}
|
|
16025
16093
|
this.logger.debug(`Updated BillingMode/ProvisionedThroughput/TableClass on DynamoDB table ${physicalId}`);
|
|
16026
16094
|
}
|
|
16027
16095
|
}
|
|
16096
|
+
function billingChangeAlreadyLive(properties, billingMode, liveBillingMode, liveTable) {
|
|
16097
|
+
if (liveTable === void 0 || liveBillingMode !== billingMode) return false;
|
|
16098
|
+
if (billingMode === "PAY_PER_REQUEST") return true;
|
|
16099
|
+
const pt = properties["ProvisionedThroughput"];
|
|
16100
|
+
const read = readCapacityNumber(pt, "ReadCapacityUnits");
|
|
16101
|
+
const write = readCapacityNumber(pt, "WriteCapacityUnits");
|
|
16102
|
+
return read !== void 0 && write !== void 0 && read === liveTable.ProvisionedThroughput?.ReadCapacityUnits && write === liveTable.ProvisionedThroughput?.WriteCapacityUnits;
|
|
16103
|
+
}
|
|
16028
16104
|
async function applyThroughputUpdates(logicalId, physicalId, properties, previousProperties, markUnsettled, maskSecrets, debug, table, effectiveBillingMode) {
|
|
16029
16105
|
if (JSON.stringify(properties["OnDemandThroughput"]) !== JSON.stringify(previousProperties["OnDemandThroughput"])) {
|
|
16030
16106
|
const ceilingRemovals = onDemandCeilingRemovals(properties["OnDemandThroughput"], previousProperties["OnDemandThroughput"], table?.OnDemandThroughput, effectiveBillingMode === "PAY_PER_REQUEST");
|
|
@@ -16274,7 +16350,7 @@ async function update$33(logicalId, physicalId, resourceType, properties, previo
|
|
|
16274
16350
|
const currentLiveIndexByName = table ? new Map(liveIndexes.filter((live) => typeof live.IndexName === "string").filter((live) => !preFlipDeletedIndexNames.has(live.IndexName)).map((live) => [live.IndexName, live])) : void 0;
|
|
16275
16351
|
const liveCapacityComparable = liveBillingMode === "PROVISIONED";
|
|
16276
16352
|
const gsiHandledByBillingFlip = /* @__PURE__ */ new Set();
|
|
16277
|
-
await applyBillingModeUpdate.call(this, logicalId, physicalId, properties, previousProperties, markUnsettled, maskSecrets, warn, normalizeTableClass, tableClassChanged, liveBillingMode, prevBillingMode, billingMode, billingOrThroughputChanged, liveIndexes, desiredIndexByName, preFlipDeletedIndexNames, gsiHandledByBillingFlip);
|
|
16353
|
+
await applyBillingModeUpdate.call(this, logicalId, physicalId, properties, previousProperties, markUnsettled, maskSecrets, warn, normalizeTableClass, tableClassChanged, liveBillingMode, prevBillingMode, billingMode, billingOrThroughputChanged, liveIndexes, desiredIndexByName, preFlipDeletedIndexNames, gsiHandledByBillingFlip, table);
|
|
16278
16354
|
await applyThroughputUpdates.call(this, logicalId, physicalId, properties, previousProperties, markUnsettled, maskSecrets, debug, table, effectiveBillingMode);
|
|
16279
16355
|
await applySseAndDeletionProtectionUpdates.call(this, logicalId, physicalId, properties, previousProperties, markUnsettled, maskSecrets, warn, debug, deletionProtectionChanged, sseChanged, sseRefusal, table);
|
|
16280
16356
|
latestStreamArn = await applyStreamSpecificationUpdate.call(this, logicalId, physicalId, resourceType, properties, previousProperties, markUnsettled, maskSecrets, table, latestStreamArn);
|
|
@@ -18516,7 +18592,7 @@ var LightsailAlarmProvider = class {
|
|
|
18516
18592
|
}
|
|
18517
18593
|
return {
|
|
18518
18594
|
physicalId: alarmName,
|
|
18519
|
-
attributes: await this.readAttributesAfterWrite(alarmName, logicalId, mask)
|
|
18595
|
+
attributes: await this.readAttributesAfterWrite(alarmName, logicalId, mask, "create")
|
|
18520
18596
|
};
|
|
18521
18597
|
}
|
|
18522
18598
|
async update(logicalId, physicalId, resourceType, properties, _previousProperties, context) {
|
|
@@ -18530,10 +18606,11 @@ var LightsailAlarmProvider = class {
|
|
|
18530
18606
|
const cause = error instanceof Error ? error : void 0;
|
|
18531
18607
|
throw this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to update Lightsail alarm ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
18532
18608
|
}
|
|
18609
|
+
const attributes = await this.readAttributesAfterWrite(physicalId, logicalId, mask, "update");
|
|
18533
18610
|
return {
|
|
18534
18611
|
physicalId,
|
|
18535
18612
|
wasReplaced: false,
|
|
18536
|
-
attributes
|
|
18613
|
+
...Object.keys(attributes).length > 0 && { attributes }
|
|
18537
18614
|
};
|
|
18538
18615
|
}
|
|
18539
18616
|
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
@@ -18552,15 +18629,16 @@ var LightsailAlarmProvider = class {
|
|
|
18552
18629
|
throw error instanceof Error && error.name.includes("NotFound") ? markNotGone(thrown) : thrown;
|
|
18553
18630
|
}
|
|
18554
18631
|
}
|
|
18555
|
-
async readAttributesAfterWrite(alarmName, logicalId, mask) {
|
|
18632
|
+
async readAttributesAfterWrite(alarmName, logicalId, mask, operation) {
|
|
18556
18633
|
try {
|
|
18557
18634
|
const alarm = await this.getAlarm(alarmName, logicalId);
|
|
18635
|
+
if (alarm === void 0) this.logger.debug(mask(safeMsg`GetAlarms listed no Lightsail alarm ${alarmName} right after the ${operation}; no attributes read`));
|
|
18558
18636
|
return definedAttributes({
|
|
18559
18637
|
AlarmArn: alarm?.arn,
|
|
18560
18638
|
State: alarm?.state
|
|
18561
18639
|
});
|
|
18562
18640
|
} catch (error) {
|
|
18563
|
-
this.logger.warn(mask(safeMsg`Could not read Lightsail alarm ${alarmName} back after
|
|
18641
|
+
this.logger.warn(mask(operation === "create" ? safeMsg`Could not read Lightsail alarm ${alarmName} back after creating it (${describeAwsFailure(error).summary}); its AlarmArn and State are read again when needed` : safeMsg`Could not read Lightsail alarm ${alarmName} back after updating it (${describeAwsFailure(error).summary}); the recorded AlarmArn and State are kept, State as of the last read`));
|
|
18564
18642
|
return {};
|
|
18565
18643
|
}
|
|
18566
18644
|
}
|
|
@@ -20405,8 +20483,7 @@ var EventBridgeBusProvider = class {
|
|
|
20405
20483
|
}
|
|
20406
20484
|
return {
|
|
20407
20485
|
physicalId,
|
|
20408
|
-
wasReplaced: false
|
|
20409
|
-
attributes: {}
|
|
20486
|
+
wasReplaced: false
|
|
20410
20487
|
};
|
|
20411
20488
|
}
|
|
20412
20489
|
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
@@ -20536,10 +20613,13 @@ var EventBridgeBusProvider = class {
|
|
|
20536
20613
|
async import(input) {
|
|
20537
20614
|
const explicit = resolveExplicitPhysicalId(input, "Name");
|
|
20538
20615
|
if (explicit) try {
|
|
20539
|
-
await this.eventBridgeClient.send(new DescribeEventBusCommand({ Name: explicit }));
|
|
20616
|
+
const bus = await this.eventBridgeClient.send(new DescribeEventBusCommand({ Name: explicit }));
|
|
20540
20617
|
return {
|
|
20541
20618
|
physicalId: explicit,
|
|
20542
|
-
attributes: {
|
|
20619
|
+
attributes: definedAttributes({
|
|
20620
|
+
Arn: bus.Arn,
|
|
20621
|
+
Name: bus.Name ?? explicit
|
|
20622
|
+
})
|
|
20543
20623
|
};
|
|
20544
20624
|
} catch (err) {
|
|
20545
20625
|
if (err instanceof ResourceNotFoundException$2) return null;
|
|
@@ -20756,8 +20836,7 @@ var EventBridgeArchiveProvider = class {
|
|
|
20756
20836
|
const kmsChanged = properties["KmsKeyIdentifier"] !== previousProperties["KmsKeyIdentifier"];
|
|
20757
20837
|
if (!descChanged && !patternChanged && !retentionChanged && !kmsChanged) return {
|
|
20758
20838
|
physicalId,
|
|
20759
|
-
wasReplaced: false
|
|
20760
|
-
attributes: {}
|
|
20839
|
+
wasReplaced: false
|
|
20761
20840
|
};
|
|
20762
20841
|
this.logger.debug(mask(`Updating EventBridge archive ${logicalId}: ${physicalId}`));
|
|
20763
20842
|
const input = { ArchiveName: physicalId };
|
|
@@ -20772,7 +20851,7 @@ var EventBridgeArchiveProvider = class {
|
|
|
20772
20851
|
return {
|
|
20773
20852
|
physicalId,
|
|
20774
20853
|
wasReplaced: false,
|
|
20775
|
-
attributes:
|
|
20854
|
+
...arn ? { attributes: { Arn: arn } } : {}
|
|
20776
20855
|
};
|
|
20777
20856
|
} catch (error) {
|
|
20778
20857
|
if (error instanceof CdkdError || isInterruptedWaitError(error)) throw error;
|
|
@@ -21964,8 +22043,6 @@ async function updateVpc(logicalId, physicalId, resourceType, properties, previo
|
|
|
21964
22043
|
if (v === void 0) return void 0;
|
|
21965
22044
|
return v === true || v === "true";
|
|
21966
22045
|
};
|
|
21967
|
-
const declaredCidr = properties["CidrBlock"];
|
|
21968
|
-
const cidrBlock = typeof declaredCidr === "string" && declaredCidr !== "" ? declaredCidr : properties["Ipv4IpamPoolId"] !== void 0 ? (await this.ec2Client.send(new DescribeVpcsCommand({ VpcIds: [physicalId] })))?.Vpcs?.[0]?.CidrBlock : void 0;
|
|
21969
22046
|
const newDnsHostnames = asBool(properties["EnableDnsHostnames"]);
|
|
21970
22047
|
const oldDnsHostnames = asBool(previousProperties["EnableDnsHostnames"]);
|
|
21971
22048
|
if (newDnsHostnames !== void 0 && newDnsHostnames !== oldDnsHostnames) await this.ec2Client.send(new ModifyVpcAttributeCommand({
|
|
@@ -21986,11 +22063,7 @@ async function updateVpc(logicalId, physicalId, resourceType, properties, previo
|
|
|
21986
22063
|
this.logger.debug(`Successfully updated VPC ${logicalId}`);
|
|
21987
22064
|
return {
|
|
21988
22065
|
physicalId,
|
|
21989
|
-
wasReplaced: false
|
|
21990
|
-
attributes: definedAttributes({
|
|
21991
|
-
VpcId: physicalId,
|
|
21992
|
-
CidrBlock: cidrBlock
|
|
21993
|
-
})
|
|
22066
|
+
wasReplaced: false
|
|
21994
22067
|
};
|
|
21995
22068
|
} catch (error) {
|
|
21996
22069
|
if (error instanceof CdkdError) throw error;
|
|
@@ -23009,6 +23082,9 @@ const EC2_VPC_GATEWAY_ATTACHMENT_ID_FORMAT = {
|
|
|
23009
23082
|
segments: ["gatewayId", "vpcId"]
|
|
23010
23083
|
};
|
|
23011
23084
|
const VPN_GATEWAY_ATTACHMENT_WAIT_MS = 6e5;
|
|
23085
|
+
function vpcGatewayAttachmentAttributes(kind) {
|
|
23086
|
+
return { AttachmentType: kind === "igw" ? "IGW" : "VGW" };
|
|
23087
|
+
}
|
|
23012
23088
|
const VPN_DETACH_IN_PROGRESS_ERRORS = /* @__PURE__ */ new Set(["IncorrectState"]);
|
|
23013
23089
|
const EC2_ROUTE_ID_FORMAT = {
|
|
23014
23090
|
label: "Route",
|
|
@@ -23132,7 +23208,7 @@ async function createVpcGatewayAttachment(logicalId, resourceType, properties, c
|
|
|
23132
23208
|
this.logger.debug(`Successfully created VPCGatewayAttachment ${logicalId}: ${physicalId}`);
|
|
23133
23209
|
return {
|
|
23134
23210
|
physicalId,
|
|
23135
|
-
attributes:
|
|
23211
|
+
attributes: vpcGatewayAttachmentAttributes(kind)
|
|
23136
23212
|
};
|
|
23137
23213
|
} catch (error) {
|
|
23138
23214
|
const cause = error instanceof Error ? error : void 0;
|
|
@@ -23320,7 +23396,8 @@ async function updateVpcGatewayAttachment(logicalId, physicalId, resourceType, p
|
|
|
23320
23396
|
await this.attachVpcGateway(desired.kind, desired.gatewayId, vpcId, logicalId);
|
|
23321
23397
|
return {
|
|
23322
23398
|
physicalId: newPhysicalId,
|
|
23323
|
-
wasReplaced: false
|
|
23399
|
+
wasReplaced: false,
|
|
23400
|
+
attributes: vpcGatewayAttachmentAttributes(desired.kind)
|
|
23324
23401
|
};
|
|
23325
23402
|
}
|
|
23326
23403
|
const detachOld = async () => {
|
|
@@ -23362,7 +23439,8 @@ async function updateVpcGatewayAttachment(logicalId, physicalId, resourceType, p
|
|
|
23362
23439
|
this.logger.debug(safeMsg`Swapped VPCGatewayAttachment ${logicalId} in place: ${physicalId} -> ${newPhysicalId}`);
|
|
23363
23440
|
return {
|
|
23364
23441
|
physicalId: newPhysicalId,
|
|
23365
|
-
wasReplaced: false
|
|
23442
|
+
wasReplaced: false,
|
|
23443
|
+
attributes: vpcGatewayAttachmentAttributes(desired.kind)
|
|
23366
23444
|
};
|
|
23367
23445
|
} catch (error) {
|
|
23368
23446
|
if (error instanceof ProvisioningError) throw error;
|
|
@@ -27600,7 +27678,7 @@ async function verifyExplicit(logicalId, resourceType, physicalId, properties) {
|
|
|
27600
27678
|
}
|
|
27601
27679
|
return {
|
|
27602
27680
|
physicalId: packCompositeId(resourceType, logicalId, attachmentSegments),
|
|
27603
|
-
attributes:
|
|
27681
|
+
attributes: vpcGatewayAttachmentAttributes(isVpn ? "vgw" : "igw")
|
|
27604
27682
|
};
|
|
27605
27683
|
}
|
|
27606
27684
|
case "AWS::EC2::NetworkAclEntry": {
|
|
@@ -33902,16 +33980,23 @@ var AgentCoreRuntimeProvider = class {
|
|
|
33902
33980
|
debug: (message) => this.logger.debug(message)
|
|
33903
33981
|
};
|
|
33904
33982
|
}
|
|
33905
|
-
async settledStatus(agentRuntimeId, logicalId, resourceType, operation,
|
|
33983
|
+
async settledStatus(agentRuntimeId, logicalId, resourceType, operation, response, mask) {
|
|
33906
33984
|
if (process.env["CDKD_NO_WAIT"] === "true") {
|
|
33907
33985
|
this.logger.debug(safeMsg`Skipping the READY wait for BedrockAgentCore Runtime ${logicalId} after ${operation} (CDKD_NO_WAIT=true)`);
|
|
33908
33986
|
deferReadiness(logicalId, resourceType, agentRuntimeId, (signal) => waitForRuntimeReady({
|
|
33909
33987
|
...this.waitDeps(),
|
|
33910
33988
|
sleep: (ms) => abortableSleep((d) => this.sleep(d), ms, signal)
|
|
33911
33989
|
}, agentRuntimeId, logicalId, resourceType, operation, mask));
|
|
33912
|
-
return
|
|
33990
|
+
return {
|
|
33991
|
+
status: response.status,
|
|
33992
|
+
lastUpdatedAt: void 0
|
|
33993
|
+
};
|
|
33913
33994
|
}
|
|
33914
|
-
|
|
33995
|
+
const ready = await waitForRuntimeReady(this.waitDeps(), agentRuntimeId, logicalId, resourceType, operation, mask);
|
|
33996
|
+
return {
|
|
33997
|
+
status: ready.status,
|
|
33998
|
+
lastUpdatedAt: ready.lastUpdatedAt
|
|
33999
|
+
};
|
|
33915
34000
|
}
|
|
33916
34001
|
async sendCreateTagCall(send) {
|
|
33917
34002
|
for (let attempt = 0;; attempt++) try {
|
|
@@ -33987,13 +34072,13 @@ var AgentCoreRuntimeProvider = class {
|
|
|
33987
34072
|
createdRuntimeId = agentRuntimeId;
|
|
33988
34073
|
reportCreatedResource(logicalId, resourceType, agentRuntimeId);
|
|
33989
34074
|
this.logger.debug(`Created BedrockAgentCore Runtime: ${agentRuntimeId} (${agentRuntimeArn})`);
|
|
33990
|
-
const
|
|
34075
|
+
const settled = await this.settledStatus(agentRuntimeId, logicalId, resourceType, "create", response, maskerOrIdentity(context?.maskSecrets));
|
|
33991
34076
|
if (desiredTags.length > 0) await this.ensureCreateTags(agentRuntimeId, agentRuntimeArn, desiredTags);
|
|
33992
34077
|
return {
|
|
33993
34078
|
physicalId: agentRuntimeId,
|
|
33994
34079
|
attributes: this.buildAttributes({
|
|
33995
34080
|
...response,
|
|
33996
|
-
|
|
34081
|
+
...settled
|
|
33997
34082
|
}, agentRuntimeName)
|
|
33998
34083
|
};
|
|
33999
34084
|
} catch (error) {
|
|
@@ -34048,14 +34133,14 @@ var AgentCoreRuntimeProvider = class {
|
|
|
34048
34133
|
const response = await this.client.send(new UpdateAgentRuntimeCommand(input));
|
|
34049
34134
|
const agentRuntimeId = response.agentRuntimeId;
|
|
34050
34135
|
await this.syncTags(logicalId, resourceType, physicalId, response.agentRuntimeArn, previousProperties["Tags"], properties["Tags"], mask);
|
|
34051
|
-
const
|
|
34136
|
+
const settled = await this.settledStatus(agentRuntimeId, logicalId, resourceType, "update", response, mask);
|
|
34052
34137
|
this.logger.debug(`Successfully updated BedrockAgentCore Runtime ${logicalId}`);
|
|
34053
34138
|
return {
|
|
34054
34139
|
physicalId: agentRuntimeId,
|
|
34055
34140
|
wasReplaced: false,
|
|
34056
34141
|
attributes: this.buildAttributes({
|
|
34057
34142
|
...response,
|
|
34058
|
-
|
|
34143
|
+
...settled
|
|
34059
34144
|
}, properties["AgentRuntimeName"])
|
|
34060
34145
|
};
|
|
34061
34146
|
} catch (error) {
|
|
@@ -34124,6 +34209,7 @@ var AgentCoreRuntimeProvider = class {
|
|
|
34124
34209
|
if (response.agentRuntimeVersion !== void 0) attributes["AgentRuntimeVersion"] = response.agentRuntimeVersion;
|
|
34125
34210
|
if (response.status !== void 0) attributes["Status"] = response.status;
|
|
34126
34211
|
if (response.createdAt !== void 0) attributes["CreatedAt"] = response.createdAt.toISOString();
|
|
34212
|
+
if (response.lastUpdatedAt !== void 0) attributes["LastUpdatedAt"] = response.lastUpdatedAt.toISOString();
|
|
34127
34213
|
if (response.workloadIdentityDetails !== void 0) attributes["WorkloadIdentityDetails"] = camelToPascalCaseKeys(response.workloadIdentityDetails, SDK_MAP_KEYS);
|
|
34128
34214
|
return attributes;
|
|
34129
34215
|
}
|
|
@@ -34191,8 +34277,7 @@ var AgentCoreBrowserProvider = class {
|
|
|
34191
34277
|
this.logger.debug(`No-op update for default browser ${logicalId}`);
|
|
34192
34278
|
return {
|
|
34193
34279
|
physicalId,
|
|
34194
|
-
wasReplaced: false
|
|
34195
|
-
attributes: {}
|
|
34280
|
+
wasReplaced: false
|
|
34196
34281
|
};
|
|
34197
34282
|
}
|
|
34198
34283
|
async delete(logicalId, _physicalId, _resourceType) {
|
|
@@ -34264,8 +34349,7 @@ var AgentCoreCodeInterpreterProvider = class {
|
|
|
34264
34349
|
this.logger.debug(`No-op update for default code interpreter ${logicalId}`);
|
|
34265
34350
|
return {
|
|
34266
34351
|
physicalId,
|
|
34267
|
-
wasReplaced: false
|
|
34268
|
-
attributes: {}
|
|
34352
|
+
wasReplaced: false
|
|
34269
34353
|
};
|
|
34270
34354
|
}
|
|
34271
34355
|
async delete(logicalId, _physicalId, _resourceType) {
|
|
@@ -55004,7 +55088,7 @@ var KinesisStreamConsumerProvider = class {
|
|
|
55004
55088
|
});
|
|
55005
55089
|
if (!await unchanged("ConsumerName", newConsumerName, oldConsumerName, fromArn?.consumerName) || !await unchanged("StreamARN", newStreamArn, oldStreamArn, fromArn?.streamArn)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS::Kinesis::StreamConsumer ConsumerName / StreamARN are immutable on AWS — there is no UpdateStreamConsumer API; every change registers a new consumer (RegisterStreamConsumer). Re-deploy with ${deployReplaceCommand()}, or destroy + redeploy.`);
|
|
55006
55090
|
await this.applyTagDiff(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"], maskSecrets);
|
|
55007
|
-
let attrs
|
|
55091
|
+
let attrs;
|
|
55008
55092
|
try {
|
|
55009
55093
|
const desc = (await this.getClient().send(new DescribeStreamConsumerCommand({ ConsumerARN: physicalId }))).ConsumerDescription;
|
|
55010
55094
|
if (desc) attrs = {
|
|
@@ -55021,7 +55105,7 @@ var KinesisStreamConsumerProvider = class {
|
|
|
55021
55105
|
return {
|
|
55022
55106
|
physicalId,
|
|
55023
55107
|
wasReplaced: false,
|
|
55024
|
-
attributes: attrs
|
|
55108
|
+
...attrs !== void 0 && { attributes: attrs }
|
|
55025
55109
|
};
|
|
55026
55110
|
}
|
|
55027
55111
|
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
@@ -59032,6 +59116,27 @@ function mapExtendedS3DescriptionToCfn(desc) {
|
|
|
59032
59116
|
else out["S3BackupConfiguration"] = {};
|
|
59033
59117
|
return out;
|
|
59034
59118
|
}
|
|
59119
|
+
const DISABLED_BLOCK_FILLS = {
|
|
59120
|
+
ProcessingConfiguration: { Processors: [] },
|
|
59121
|
+
DataFormatConversionConfiguration: {},
|
|
59122
|
+
DynamicPartitioningConfiguration: { RetryOptions: { DurationInSeconds: 300 } }
|
|
59123
|
+
};
|
|
59124
|
+
function canonicalizeDisabledExtendedS3Blocks(properties) {
|
|
59125
|
+
const dest = properties["ExtendedS3DestinationConfiguration"];
|
|
59126
|
+
if (!isPlainRecord(dest)) return properties;
|
|
59127
|
+
let out;
|
|
59128
|
+
for (const [key, fills] of Object.entries(DISABLED_BLOCK_FILLS)) {
|
|
59129
|
+
const block = dest[key];
|
|
59130
|
+
if (!isPlainRecord(block) || block["Enabled"] !== false) continue;
|
|
59131
|
+
if (!Object.entries(block).every(([member, value]) => member === "Enabled" || Object.hasOwn(fills, member) && JSON.stringify(value) === JSON.stringify(fills[member]))) continue;
|
|
59132
|
+
out ??= { ...dest };
|
|
59133
|
+
out[key] = {};
|
|
59134
|
+
}
|
|
59135
|
+
return out ? {
|
|
59136
|
+
...properties,
|
|
59137
|
+
ExtendedS3DestinationConfiguration: out
|
|
59138
|
+
} : properties;
|
|
59139
|
+
}
|
|
59035
59140
|
function mapNonS3DestinationToCfn(desc) {
|
|
59036
59141
|
const cleaned = pickDefinedDeep(desc);
|
|
59037
59142
|
if (!cleaned) return {};
|
|
@@ -59317,6 +59422,121 @@ async function create$7(logicalId, resourceType, properties, context) {
|
|
|
59317
59422
|
}
|
|
59318
59423
|
}
|
|
59319
59424
|
|
|
59425
|
+
// src/provisioning/providers/firehose/s3-destination.ts
|
|
59426
|
+
function mapS3DestinationConfiguration(config) {
|
|
59427
|
+
const result = {
|
|
59428
|
+
BucketARN: config["BucketArn"] || config["BucketARN"],
|
|
59429
|
+
RoleARN: config["RoleArn"] || config["RoleARN"]
|
|
59430
|
+
};
|
|
59431
|
+
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59432
|
+
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59433
|
+
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59434
|
+
if (config["BufferingHints"] !== void 0) {
|
|
59435
|
+
const hints = config["BufferingHints"];
|
|
59436
|
+
result.BufferingHints = {
|
|
59437
|
+
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59438
|
+
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59439
|
+
};
|
|
59440
|
+
}
|
|
59441
|
+
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59442
|
+
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59443
|
+
return result;
|
|
59444
|
+
}
|
|
59445
|
+
function mapExtendedS3DestinationConfiguration(config) {
|
|
59446
|
+
const result = {
|
|
59447
|
+
BucketARN: config["BucketArn"] || config["BucketARN"],
|
|
59448
|
+
RoleARN: config["RoleArn"] || config["RoleARN"]
|
|
59449
|
+
};
|
|
59450
|
+
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59451
|
+
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59452
|
+
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59453
|
+
if (config["BufferingHints"] !== void 0) {
|
|
59454
|
+
const hints = config["BufferingHints"];
|
|
59455
|
+
result.BufferingHints = {
|
|
59456
|
+
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59457
|
+
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59458
|
+
};
|
|
59459
|
+
}
|
|
59460
|
+
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59461
|
+
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59462
|
+
if (config["ProcessingConfiguration"] !== void 0) result.ProcessingConfiguration = config["ProcessingConfiguration"];
|
|
59463
|
+
if (config["S3BackupMode"] !== void 0) result.S3BackupMode = config["S3BackupMode"];
|
|
59464
|
+
if (config["S3BackupConfiguration"] !== void 0) {
|
|
59465
|
+
const backupConfig = config["S3BackupConfiguration"];
|
|
59466
|
+
result.S3BackupConfiguration = this.mapS3DestinationConfiguration(backupConfig);
|
|
59467
|
+
}
|
|
59468
|
+
if (config["DataFormatConversionConfiguration"] !== void 0) result.DataFormatConversionConfiguration = config["DataFormatConversionConfiguration"];
|
|
59469
|
+
if (config["DynamicPartitioningConfiguration"] !== void 0) result.DynamicPartitioningConfiguration = config["DynamicPartitioningConfiguration"];
|
|
59470
|
+
if (config["FileExtension"] !== void 0) result.FileExtension = config["FileExtension"];
|
|
59471
|
+
if (config["CustomTimeZone"] !== void 0) result.CustomTimeZone = config["CustomTimeZone"];
|
|
59472
|
+
return result;
|
|
59473
|
+
}
|
|
59474
|
+
function mapExtendedS3ConfigToUpdate(config) {
|
|
59475
|
+
const result = {};
|
|
59476
|
+
const bucketArn = config["BucketArn"] ?? config["BucketARN"];
|
|
59477
|
+
if (bucketArn !== void 0) result.BucketARN = bucketArn;
|
|
59478
|
+
const roleArn = config["RoleArn"] ?? config["RoleARN"];
|
|
59479
|
+
if (roleArn !== void 0) result.RoleARN = roleArn;
|
|
59480
|
+
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59481
|
+
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59482
|
+
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59483
|
+
if (config["BufferingHints"] !== void 0) {
|
|
59484
|
+
const hints = config["BufferingHints"];
|
|
59485
|
+
result.BufferingHints = {
|
|
59486
|
+
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59487
|
+
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59488
|
+
};
|
|
59489
|
+
}
|
|
59490
|
+
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59491
|
+
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59492
|
+
if (config["ProcessingConfiguration"] !== void 0) result.ProcessingConfiguration = config["ProcessingConfiguration"];
|
|
59493
|
+
if (config["S3BackupMode"] !== void 0) result.S3BackupMode = config["S3BackupMode"];
|
|
59494
|
+
if (config["S3BackupConfiguration"] !== void 0) result.S3BackupUpdate = this.mapS3ConfigToUpdate(config["S3BackupConfiguration"]);
|
|
59495
|
+
if (config["DataFormatConversionConfiguration"] !== void 0) result.DataFormatConversionConfiguration = config["DataFormatConversionConfiguration"];
|
|
59496
|
+
if (config["DynamicPartitioningConfiguration"] !== void 0) result.DynamicPartitioningConfiguration = config["DynamicPartitioningConfiguration"];
|
|
59497
|
+
if (config["FileExtension"] !== void 0) result.FileExtension = config["FileExtension"];
|
|
59498
|
+
if (config["CustomTimeZone"] !== void 0) result.CustomTimeZone = config["CustomTimeZone"];
|
|
59499
|
+
return result;
|
|
59500
|
+
}
|
|
59501
|
+
function withEmptyBlocksAsNone(update, config, live) {
|
|
59502
|
+
const isEmpty = (key) => {
|
|
59503
|
+
const value = config[key];
|
|
59504
|
+
return isPlainRecord(value) && Object.keys(value).length === 0;
|
|
59505
|
+
};
|
|
59506
|
+
const result = { ...update };
|
|
59507
|
+
if (isEmpty("S3BackupConfiguration")) delete result.S3BackupUpdate;
|
|
59508
|
+
if (isEmpty("DynamicPartitioningConfiguration")) delete result.DynamicPartitioningConfiguration;
|
|
59509
|
+
if (isEmpty("ProcessingConfiguration")) {
|
|
59510
|
+
if (live?.ProcessingConfiguration?.Enabled === true) result.ProcessingConfiguration = { Enabled: false };
|
|
59511
|
+
else delete result.ProcessingConfiguration;
|
|
59512
|
+
}
|
|
59513
|
+
if (isEmpty("DataFormatConversionConfiguration")) {
|
|
59514
|
+
if (live?.DataFormatConversionConfiguration?.Enabled === true) result.DataFormatConversionConfiguration = { Enabled: false };
|
|
59515
|
+
else delete result.DataFormatConversionConfiguration;
|
|
59516
|
+
}
|
|
59517
|
+
return result;
|
|
59518
|
+
}
|
|
59519
|
+
function mapS3ConfigToUpdate(config) {
|
|
59520
|
+
const result = {};
|
|
59521
|
+
const bucketArn = config["BucketArn"] ?? config["BucketARN"];
|
|
59522
|
+
if (bucketArn !== void 0) result.BucketARN = bucketArn;
|
|
59523
|
+
const roleArn = config["RoleArn"] ?? config["RoleARN"];
|
|
59524
|
+
if (roleArn !== void 0) result.RoleARN = roleArn;
|
|
59525
|
+
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59526
|
+
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59527
|
+
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59528
|
+
if (config["BufferingHints"] !== void 0) {
|
|
59529
|
+
const hints = config["BufferingHints"];
|
|
59530
|
+
result.BufferingHints = {
|
|
59531
|
+
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59532
|
+
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59533
|
+
};
|
|
59534
|
+
}
|
|
59535
|
+
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59536
|
+
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59537
|
+
return result;
|
|
59538
|
+
}
|
|
59539
|
+
|
|
59320
59540
|
// src/provisioning/providers/firehose/update.ts
|
|
59321
59541
|
async function update$7(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
59322
59542
|
assertRegionMatch(context?.expectedRegion ? await this.getClient().config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
@@ -59407,7 +59627,7 @@ async function applyUpdate$1(logicalId, physicalId, resourceType, properties, pr
|
|
|
59407
59627
|
return {
|
|
59408
59628
|
physicalId,
|
|
59409
59629
|
wasReplaced: false,
|
|
59410
|
-
|
|
59630
|
+
...desc?.DeliveryStreamARN !== void 0 && { attributes: { Arn: desc.DeliveryStreamARN } },
|
|
59411
59631
|
...encryptionSkipped && { effectiveProperties: this.withRecordedEncryption(properties, previousProperties["DeliveryStreamEncryptionConfigurationInput"], desc?.DeliveryStreamEncryptionConfiguration) }
|
|
59412
59632
|
};
|
|
59413
59633
|
}
|
|
@@ -59432,13 +59652,14 @@ function withRecordedEncryption(properties, previous, live) {
|
|
|
59432
59652
|
async function applyExtendedS3DestinationUpdate(logicalId, physicalId, nextConfig) {
|
|
59433
59653
|
const desc = (await this.getClient().send(new DescribeDeliveryStreamCommand({ DeliveryStreamName: physicalId }))).DeliveryStreamDescription;
|
|
59434
59654
|
const currentVersionId = desc?.VersionId;
|
|
59435
|
-
const
|
|
59655
|
+
const currentDestination = desc?.Destinations?.[0];
|
|
59656
|
+
const destinationId = currentDestination?.DestinationId;
|
|
59436
59657
|
if (!currentVersionId || !destinationId) throw new ProvisioningError(`DescribeDeliveryStream for ${physicalId} did not return VersionId or DestinationId; UpdateDestination cannot proceed.`, "AWS::KinesisFirehose::DeliveryStream", logicalId, physicalId);
|
|
59437
59658
|
await this.getClient().send(new UpdateDestinationCommand({
|
|
59438
59659
|
DeliveryStreamName: physicalId,
|
|
59439
59660
|
CurrentDeliveryStreamVersionId: currentVersionId,
|
|
59440
59661
|
DestinationId: destinationId,
|
|
59441
|
-
ExtendedS3DestinationUpdate: this.mapExtendedS3ConfigToUpdate(nextConfig)
|
|
59662
|
+
ExtendedS3DestinationUpdate: withEmptyBlocksAsNone(this.mapExtendedS3ConfigToUpdate(nextConfig), nextConfig, currentDestination?.ExtendedS3DestinationDescription)
|
|
59442
59663
|
}));
|
|
59443
59664
|
}
|
|
59444
59665
|
async function applyS3DestinationUpdate(logicalId, physicalId, nextConfig) {
|
|
@@ -59603,103 +59824,6 @@ async function readDeliveryStreamStatusForDelete(streamName) {
|
|
|
59603
59824
|
}
|
|
59604
59825
|
}
|
|
59605
59826
|
|
|
59606
|
-
// src/provisioning/providers/firehose/s3-destination.ts
|
|
59607
|
-
function mapS3DestinationConfiguration(config) {
|
|
59608
|
-
const result = {
|
|
59609
|
-
BucketARN: config["BucketArn"] || config["BucketARN"],
|
|
59610
|
-
RoleARN: config["RoleArn"] || config["RoleARN"]
|
|
59611
|
-
};
|
|
59612
|
-
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59613
|
-
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59614
|
-
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59615
|
-
if (config["BufferingHints"] !== void 0) {
|
|
59616
|
-
const hints = config["BufferingHints"];
|
|
59617
|
-
result.BufferingHints = {
|
|
59618
|
-
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59619
|
-
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59620
|
-
};
|
|
59621
|
-
}
|
|
59622
|
-
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59623
|
-
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59624
|
-
return result;
|
|
59625
|
-
}
|
|
59626
|
-
function mapExtendedS3DestinationConfiguration(config) {
|
|
59627
|
-
const result = {
|
|
59628
|
-
BucketARN: config["BucketArn"] || config["BucketARN"],
|
|
59629
|
-
RoleARN: config["RoleArn"] || config["RoleARN"]
|
|
59630
|
-
};
|
|
59631
|
-
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59632
|
-
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59633
|
-
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59634
|
-
if (config["BufferingHints"] !== void 0) {
|
|
59635
|
-
const hints = config["BufferingHints"];
|
|
59636
|
-
result.BufferingHints = {
|
|
59637
|
-
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59638
|
-
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59639
|
-
};
|
|
59640
|
-
}
|
|
59641
|
-
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59642
|
-
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59643
|
-
if (config["ProcessingConfiguration"] !== void 0) result.ProcessingConfiguration = config["ProcessingConfiguration"];
|
|
59644
|
-
if (config["S3BackupMode"] !== void 0) result.S3BackupMode = config["S3BackupMode"];
|
|
59645
|
-
if (config["S3BackupConfiguration"] !== void 0) {
|
|
59646
|
-
const backupConfig = config["S3BackupConfiguration"];
|
|
59647
|
-
result.S3BackupConfiguration = this.mapS3DestinationConfiguration(backupConfig);
|
|
59648
|
-
}
|
|
59649
|
-
if (config["DataFormatConversionConfiguration"] !== void 0) result.DataFormatConversionConfiguration = config["DataFormatConversionConfiguration"];
|
|
59650
|
-
if (config["DynamicPartitioningConfiguration"] !== void 0) result.DynamicPartitioningConfiguration = config["DynamicPartitioningConfiguration"];
|
|
59651
|
-
if (config["FileExtension"] !== void 0) result.FileExtension = config["FileExtension"];
|
|
59652
|
-
if (config["CustomTimeZone"] !== void 0) result.CustomTimeZone = config["CustomTimeZone"];
|
|
59653
|
-
return result;
|
|
59654
|
-
}
|
|
59655
|
-
function mapExtendedS3ConfigToUpdate(config) {
|
|
59656
|
-
const result = {};
|
|
59657
|
-
const bucketArn = config["BucketArn"] ?? config["BucketARN"];
|
|
59658
|
-
if (bucketArn !== void 0) result.BucketARN = bucketArn;
|
|
59659
|
-
const roleArn = config["RoleArn"] ?? config["RoleARN"];
|
|
59660
|
-
if (roleArn !== void 0) result.RoleARN = roleArn;
|
|
59661
|
-
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59662
|
-
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59663
|
-
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59664
|
-
if (config["BufferingHints"] !== void 0) {
|
|
59665
|
-
const hints = config["BufferingHints"];
|
|
59666
|
-
result.BufferingHints = {
|
|
59667
|
-
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59668
|
-
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59669
|
-
};
|
|
59670
|
-
}
|
|
59671
|
-
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59672
|
-
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59673
|
-
if (config["ProcessingConfiguration"] !== void 0) result.ProcessingConfiguration = config["ProcessingConfiguration"];
|
|
59674
|
-
if (config["S3BackupMode"] !== void 0) result.S3BackupMode = config["S3BackupMode"];
|
|
59675
|
-
if (config["S3BackupConfiguration"] !== void 0) result.S3BackupUpdate = this.mapS3ConfigToUpdate(config["S3BackupConfiguration"]);
|
|
59676
|
-
if (config["DataFormatConversionConfiguration"] !== void 0) result.DataFormatConversionConfiguration = config["DataFormatConversionConfiguration"];
|
|
59677
|
-
if (config["DynamicPartitioningConfiguration"] !== void 0) result.DynamicPartitioningConfiguration = config["DynamicPartitioningConfiguration"];
|
|
59678
|
-
if (config["FileExtension"] !== void 0) result.FileExtension = config["FileExtension"];
|
|
59679
|
-
if (config["CustomTimeZone"] !== void 0) result.CustomTimeZone = config["CustomTimeZone"];
|
|
59680
|
-
return result;
|
|
59681
|
-
}
|
|
59682
|
-
function mapS3ConfigToUpdate(config) {
|
|
59683
|
-
const result = {};
|
|
59684
|
-
const bucketArn = config["BucketArn"] ?? config["BucketARN"];
|
|
59685
|
-
if (bucketArn !== void 0) result.BucketARN = bucketArn;
|
|
59686
|
-
const roleArn = config["RoleArn"] ?? config["RoleARN"];
|
|
59687
|
-
if (roleArn !== void 0) result.RoleARN = roleArn;
|
|
59688
|
-
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59689
|
-
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59690
|
-
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59691
|
-
if (config["BufferingHints"] !== void 0) {
|
|
59692
|
-
const hints = config["BufferingHints"];
|
|
59693
|
-
result.BufferingHints = {
|
|
59694
|
-
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59695
|
-
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59696
|
-
};
|
|
59697
|
-
}
|
|
59698
|
-
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59699
|
-
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59700
|
-
return result;
|
|
59701
|
-
}
|
|
59702
|
-
|
|
59703
59827
|
// src/provisioning/providers/firehose/destination-updates.ts
|
|
59704
59828
|
async function applyRedshiftDestinationUpdate(logicalId, physicalId, nextConfig) {
|
|
59705
59829
|
const desc = (await this.getClient().send(new DescribeDeliveryStreamCommand({ DeliveryStreamName: physicalId }))).DeliveryStreamDescription;
|
|
@@ -60166,6 +60290,9 @@ var FirehoseProvider = class {
|
|
|
60166
60290
|
getDriftUnknownPaths() {
|
|
60167
60291
|
return getDriftUnknownPaths.call(this);
|
|
60168
60292
|
}
|
|
60293
|
+
canonicalizeDriftProperties(_resourceType, properties) {
|
|
60294
|
+
return canonicalizeDisabledExtendedS3Blocks(properties);
|
|
60295
|
+
}
|
|
60169
60296
|
import(input) {
|
|
60170
60297
|
return importImpl$6.call(this, input);
|
|
60171
60298
|
}
|
|
@@ -62513,7 +62640,7 @@ var DLMLifecyclePolicyProvider = class {
|
|
|
62513
62640
|
return {
|
|
62514
62641
|
physicalId,
|
|
62515
62642
|
wasReplaced: false,
|
|
62516
|
-
|
|
62643
|
+
...arn ? { attributes: { Arn: arn } } : {}
|
|
62517
62644
|
};
|
|
62518
62645
|
} catch (error) {
|
|
62519
62646
|
if (error instanceof ResourceUpdateNotSupportedError) throw error;
|
|
@@ -66842,4 +66969,4 @@ var ACMCertificateProvider = class {
|
|
|
66842
66969
|
};
|
|
66843
66970
|
|
|
66844
66971
|
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 };
|
|
66845
|
-
//# sourceMappingURL=provider-classes-
|
|
66972
|
+
//# sourceMappingURL=provider-classes-DOrSeS2t.js.map
|