@cdkd/cli 0.370.6 → 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-znFaZS6t.js → ambient-client-defaults-DqS6NWx5.js} +3 -3
- package/dist/{ambient-client-defaults-znFaZS6t.js.map → ambient-client-defaults-DqS6NWx5.js.map} +1 -1
- package/dist/{asg-provider-CxUpkiE0.js → asg-provider-BMQeGpmF.js} +8 -8
- package/dist/{asg-provider-CxUpkiE0.js.map → asg-provider-BMQeGpmF.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{created-resource-sink-_8-H2n_W.js → created-resource-sink-DGvRiBLW.js} +4 -4
- package/dist/{created-resource-sink-_8-H2n_W.js.map → created-resource-sink-DGvRiBLW.js.map} +1 -1
- package/dist/{custom-resource-runtime-8odRXut6.js → custom-resource-runtime-BJFVnN9S.js} +6 -6
- package/dist/{custom-resource-runtime-8odRXut6.js.map → custom-resource-runtime-BJFVnN9S.js.map} +1 -1
- package/dist/{db-associated-roles-D5lu-Ecp.js → db-associated-roles-ConAeY8g.js} +2 -2
- package/dist/{db-associated-roles-D5lu-Ecp.js.map → db-associated-roles-ConAeY8g.js.map} +1 -1
- package/dist/{delete-started-DU0_uilB.js → delete-started-Dya9H_gI.js} +4 -4
- package/dist/{delete-started-DU0_uilB.js.map → delete-started-Dya9H_gI.js.map} +1 -1
- package/dist/{deploy-engine-BfiEN_b4.js → deploy-engine-CpeBWcxG.js} +390 -64
- package/dist/deploy-engine-CpeBWcxG.js.map +1 -0
- package/dist/{ec2-termination-protection-dlIgSfnA.js → ec2-termination-protection-CVTp4mlC.js} +3 -3
- package/dist/{ec2-termination-protection-dlIgSfnA.js.map → ec2-termination-protection-CVTp4mlC.js.map} +1 -1
- package/dist/{ecr-uri-VJbNjmEC.js → ecr-uri-DwYinaAB.js} +2 -2
- package/dist/{ecr-uri-VJbNjmEC.js.map → ecr-uri-DwYinaAB.js.map} +1 -1
- package/dist/{emr-cluster-provider-B_wdviQS.js → emr-cluster-provider-CR_OFsGZ.js} +10 -10
- package/dist/{emr-cluster-provider-B_wdviQS.js.map → emr-cluster-provider-CR_OFsGZ.js.map} +1 -1
- package/dist/{expected-bucket-owner-DYvaQ-Zz.js → expected-bucket-owner-BhnjZsLt.js} +2 -2
- package/dist/{expected-bucket-owner-DYvaQ-Zz.js.map → expected-bucket-owner-BhnjZsLt.js.map} +1 -1
- package/dist/{iam-role-provider-NKcMOq1q.js → iam-role-provider-CKIdrdu5.js} +12 -12
- package/dist/{iam-role-provider-NKcMOq1q.js.map → iam-role-provider-CKIdrdu5.js.map} +1 -1
- package/dist/{identity-read-denied-HjFJxXlW.js → identity-read-denied-V23l4pKK.js} +5 -5
- package/dist/{identity-read-denied-HjFJxXlW.js.map → identity-read-denied-V23l4pKK.js.map} +1 -1
- package/dist/{image-plan-DiN9kLKu.js → image-plan-D62M_M30.js} +8 -8
- package/dist/{image-plan-DiN9kLKu.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-DUAQ_JOi.js → logger-CSLdt93b.js} +2 -2
- package/dist/{logger-DUAQ_JOi.js.map → logger-CSLdt93b.js.map} +1 -1
- package/dist/{neptune-provider-rkdfjnF9.js → neptune-provider-BCXKNNXR.js} +9 -9
- package/dist/{neptune-provider-rkdfjnF9.js.map → neptune-provider-BCXKNNXR.js.map} +1 -1
- package/dist/{program-Bad-xRVI.js → program-Lw5gWY1A.js} +176 -43
- package/dist/program-Lw5gWY1A.js.map +1 -0
- package/dist/{provider-classes-DAF9XM-4.js → provider-classes-DOrSeS2t.js} +262 -159
- package/dist/provider-classes-DOrSeS2t.js.map +1 -0
- package/dist/{rds-provider-DlFaFEyf.js → rds-provider-CCpEJkcN.js} +13 -13
- package/dist/{rds-provider-DlFaFEyf.js.map → rds-provider-CCpEJkcN.js.map} +1 -1
- package/dist/{read-replica-BZjPCmIl.js → read-replica-Dkepeh8a.js} +3 -3
- package/dist/{read-replica-BZjPCmIl.js.map → read-replica-Dkepeh8a.js.map} +1 -1
- package/dist/{redacted-delete-address-CRTZ9dGr.js → redacted-delete-address-BPwMWIOq.js} +4 -4
- package/dist/{redacted-delete-address-CRTZ9dGr.js.map → redacted-delete-address-BPwMWIOq.js.map} +1 -1
- package/dist/{replacement-rules-BYsfga8b.js → replacement-rules-aKrUHcS2.js} +3 -3
- package/dist/{replacement-rules-BYsfga8b.js.map → replacement-rules-aKrUHcS2.js.map} +1 -1
- package/dist/{resource-deadline-Ke4EXyCI.js → resource-deadline-DjIkTygT.js} +2 -2
- package/dist/{resource-deadline-Ke4EXyCI.js.map → resource-deadline-DjIkTygT.js.map} +1 -1
- package/dist/{restore-source-guard-DijUNuPT.js → restore-source-guard-Bprs9w8d.js} +4 -4
- package/dist/{restore-source-guard-DijUNuPT.js.map → restore-source-guard-Bprs9w8d.js.map} +1 -1
- package/dist/{run-cli-CuKwf0wJ.js → run-cli-BfDyKYOs.js} +2 -2
- package/dist/{run-cli-CuKwf0wJ.js.map → run-cli-BfDyKYOs.js.map} +1 -1
- package/dist/{secret-reference-immutable-C0y2leSj.js → secret-reference-immutable-DK77ST9u.js} +6 -6
- package/dist/{secret-reference-immutable-C0y2leSj.js.map → secret-reference-immutable-DK77ST9u.js.map} +1 -1
- package/dist/{settle-own-write-members-BeMLFzws.js → settle-own-write-members-DgrfaXCf.js} +13 -13
- package/dist/{settle-own-write-members-BeMLFzws.js.map → settle-own-write-members-DgrfaXCf.js.map} +1 -1
- package/dist/{tag-list-k_7QY2-3.js → tag-list-B4_wJ9vt.js} +4 -4
- package/dist/{tag-list-k_7QY2-3.js.map → tag-list-B4_wJ9vt.js.map} +1 -1
- package/dist/{version-BrLstCqx.js → version-3YWtwAiy.js} +2 -2
- package/dist/{version-BrLstCqx.js.map → version-3YWtwAiy.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-BfiEN_b4.js.map +0 -1
- package/dist/program-Bad-xRVI.js.map +0 -1
- package/dist/provider-classes-DAF9XM-4.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";
|
|
@@ -12140,6 +12140,57 @@ async function applyTagDiff$17(arn, resourceType, logicalId, oldTagsRaw, newTags
|
|
|
12140
12140
|
}
|
|
12141
12141
|
|
|
12142
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
|
+
}
|
|
12143
12194
|
async function deleteImpl$32(logicalId, physicalId, resourceType, properties, context) {
|
|
12144
12195
|
this.logger.debug(`Deleting event source mapping ${logicalId}: ${physicalId}`);
|
|
12145
12196
|
try {
|
|
@@ -12154,7 +12205,7 @@ async function deleteImpl$32(logicalId, physicalId, resourceType, properties, co
|
|
|
12154
12205
|
}
|
|
12155
12206
|
throw error;
|
|
12156
12207
|
}
|
|
12157
|
-
await
|
|
12208
|
+
await deleteWhenSettled.call(this, logicalId, physicalId, resourceType);
|
|
12158
12209
|
this.logger.debug(`Successfully deleted event source mapping ${logicalId}`);
|
|
12159
12210
|
} catch (error) {
|
|
12160
12211
|
if (error instanceof ResourceNotFoundException) {
|
|
@@ -12163,6 +12214,7 @@ async function deleteImpl$32(logicalId, physicalId, resourceType, properties, co
|
|
|
12163
12214
|
this.logger.debug(`Event source mapping ${physicalId} does not exist, skipping deletion`);
|
|
12164
12215
|
return;
|
|
12165
12216
|
}
|
|
12217
|
+
if (isInterruptedWaitError(error)) throw error;
|
|
12166
12218
|
const cause = error instanceof Error ? error : void 0;
|
|
12167
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));
|
|
12168
12220
|
}
|
|
@@ -18540,7 +18592,7 @@ var LightsailAlarmProvider = class {
|
|
|
18540
18592
|
}
|
|
18541
18593
|
return {
|
|
18542
18594
|
physicalId: alarmName,
|
|
18543
|
-
attributes: await this.readAttributesAfterWrite(alarmName, logicalId, mask)
|
|
18595
|
+
attributes: await this.readAttributesAfterWrite(alarmName, logicalId, mask, "create")
|
|
18544
18596
|
};
|
|
18545
18597
|
}
|
|
18546
18598
|
async update(logicalId, physicalId, resourceType, properties, _previousProperties, context) {
|
|
@@ -18554,10 +18606,11 @@ var LightsailAlarmProvider = class {
|
|
|
18554
18606
|
const cause = error instanceof Error ? error : void 0;
|
|
18555
18607
|
throw this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to update Lightsail alarm ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
18556
18608
|
}
|
|
18609
|
+
const attributes = await this.readAttributesAfterWrite(physicalId, logicalId, mask, "update");
|
|
18557
18610
|
return {
|
|
18558
18611
|
physicalId,
|
|
18559
18612
|
wasReplaced: false,
|
|
18560
|
-
attributes
|
|
18613
|
+
...Object.keys(attributes).length > 0 && { attributes }
|
|
18561
18614
|
};
|
|
18562
18615
|
}
|
|
18563
18616
|
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
@@ -18576,15 +18629,16 @@ var LightsailAlarmProvider = class {
|
|
|
18576
18629
|
throw error instanceof Error && error.name.includes("NotFound") ? markNotGone(thrown) : thrown;
|
|
18577
18630
|
}
|
|
18578
18631
|
}
|
|
18579
|
-
async readAttributesAfterWrite(alarmName, logicalId, mask) {
|
|
18632
|
+
async readAttributesAfterWrite(alarmName, logicalId, mask, operation) {
|
|
18580
18633
|
try {
|
|
18581
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`));
|
|
18582
18636
|
return definedAttributes({
|
|
18583
18637
|
AlarmArn: alarm?.arn,
|
|
18584
18638
|
State: alarm?.state
|
|
18585
18639
|
});
|
|
18586
18640
|
} catch (error) {
|
|
18587
|
-
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`));
|
|
18588
18642
|
return {};
|
|
18589
18643
|
}
|
|
18590
18644
|
}
|
|
@@ -20429,8 +20483,7 @@ var EventBridgeBusProvider = class {
|
|
|
20429
20483
|
}
|
|
20430
20484
|
return {
|
|
20431
20485
|
physicalId,
|
|
20432
|
-
wasReplaced: false
|
|
20433
|
-
attributes: {}
|
|
20486
|
+
wasReplaced: false
|
|
20434
20487
|
};
|
|
20435
20488
|
}
|
|
20436
20489
|
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
@@ -20560,10 +20613,13 @@ var EventBridgeBusProvider = class {
|
|
|
20560
20613
|
async import(input) {
|
|
20561
20614
|
const explicit = resolveExplicitPhysicalId(input, "Name");
|
|
20562
20615
|
if (explicit) try {
|
|
20563
|
-
await this.eventBridgeClient.send(new DescribeEventBusCommand({ Name: explicit }));
|
|
20616
|
+
const bus = await this.eventBridgeClient.send(new DescribeEventBusCommand({ Name: explicit }));
|
|
20564
20617
|
return {
|
|
20565
20618
|
physicalId: explicit,
|
|
20566
|
-
attributes: {
|
|
20619
|
+
attributes: definedAttributes({
|
|
20620
|
+
Arn: bus.Arn,
|
|
20621
|
+
Name: bus.Name ?? explicit
|
|
20622
|
+
})
|
|
20567
20623
|
};
|
|
20568
20624
|
} catch (err) {
|
|
20569
20625
|
if (err instanceof ResourceNotFoundException$2) return null;
|
|
@@ -20780,8 +20836,7 @@ var EventBridgeArchiveProvider = class {
|
|
|
20780
20836
|
const kmsChanged = properties["KmsKeyIdentifier"] !== previousProperties["KmsKeyIdentifier"];
|
|
20781
20837
|
if (!descChanged && !patternChanged && !retentionChanged && !kmsChanged) return {
|
|
20782
20838
|
physicalId,
|
|
20783
|
-
wasReplaced: false
|
|
20784
|
-
attributes: {}
|
|
20839
|
+
wasReplaced: false
|
|
20785
20840
|
};
|
|
20786
20841
|
this.logger.debug(mask(`Updating EventBridge archive ${logicalId}: ${physicalId}`));
|
|
20787
20842
|
const input = { ArchiveName: physicalId };
|
|
@@ -20796,7 +20851,7 @@ var EventBridgeArchiveProvider = class {
|
|
|
20796
20851
|
return {
|
|
20797
20852
|
physicalId,
|
|
20798
20853
|
wasReplaced: false,
|
|
20799
|
-
attributes:
|
|
20854
|
+
...arn ? { attributes: { Arn: arn } } : {}
|
|
20800
20855
|
};
|
|
20801
20856
|
} catch (error) {
|
|
20802
20857
|
if (error instanceof CdkdError || isInterruptedWaitError(error)) throw error;
|
|
@@ -21988,8 +22043,6 @@ async function updateVpc(logicalId, physicalId, resourceType, properties, previo
|
|
|
21988
22043
|
if (v === void 0) return void 0;
|
|
21989
22044
|
return v === true || v === "true";
|
|
21990
22045
|
};
|
|
21991
|
-
const declaredCidr = properties["CidrBlock"];
|
|
21992
|
-
const cidrBlock = typeof declaredCidr === "string" && declaredCidr !== "" ? declaredCidr : properties["Ipv4IpamPoolId"] !== void 0 ? (await this.ec2Client.send(new DescribeVpcsCommand({ VpcIds: [physicalId] })))?.Vpcs?.[0]?.CidrBlock : void 0;
|
|
21993
22046
|
const newDnsHostnames = asBool(properties["EnableDnsHostnames"]);
|
|
21994
22047
|
const oldDnsHostnames = asBool(previousProperties["EnableDnsHostnames"]);
|
|
21995
22048
|
if (newDnsHostnames !== void 0 && newDnsHostnames !== oldDnsHostnames) await this.ec2Client.send(new ModifyVpcAttributeCommand({
|
|
@@ -22010,11 +22063,7 @@ async function updateVpc(logicalId, physicalId, resourceType, properties, previo
|
|
|
22010
22063
|
this.logger.debug(`Successfully updated VPC ${logicalId}`);
|
|
22011
22064
|
return {
|
|
22012
22065
|
physicalId,
|
|
22013
|
-
wasReplaced: false
|
|
22014
|
-
attributes: definedAttributes({
|
|
22015
|
-
VpcId: physicalId,
|
|
22016
|
-
CidrBlock: cidrBlock
|
|
22017
|
-
})
|
|
22066
|
+
wasReplaced: false
|
|
22018
22067
|
};
|
|
22019
22068
|
} catch (error) {
|
|
22020
22069
|
if (error instanceof CdkdError) throw error;
|
|
@@ -23033,6 +23082,9 @@ const EC2_VPC_GATEWAY_ATTACHMENT_ID_FORMAT = {
|
|
|
23033
23082
|
segments: ["gatewayId", "vpcId"]
|
|
23034
23083
|
};
|
|
23035
23084
|
const VPN_GATEWAY_ATTACHMENT_WAIT_MS = 6e5;
|
|
23085
|
+
function vpcGatewayAttachmentAttributes(kind) {
|
|
23086
|
+
return { AttachmentType: kind === "igw" ? "IGW" : "VGW" };
|
|
23087
|
+
}
|
|
23036
23088
|
const VPN_DETACH_IN_PROGRESS_ERRORS = /* @__PURE__ */ new Set(["IncorrectState"]);
|
|
23037
23089
|
const EC2_ROUTE_ID_FORMAT = {
|
|
23038
23090
|
label: "Route",
|
|
@@ -23156,7 +23208,7 @@ async function createVpcGatewayAttachment(logicalId, resourceType, properties, c
|
|
|
23156
23208
|
this.logger.debug(`Successfully created VPCGatewayAttachment ${logicalId}: ${physicalId}`);
|
|
23157
23209
|
return {
|
|
23158
23210
|
physicalId,
|
|
23159
|
-
attributes:
|
|
23211
|
+
attributes: vpcGatewayAttachmentAttributes(kind)
|
|
23160
23212
|
};
|
|
23161
23213
|
} catch (error) {
|
|
23162
23214
|
const cause = error instanceof Error ? error : void 0;
|
|
@@ -23344,7 +23396,8 @@ async function updateVpcGatewayAttachment(logicalId, physicalId, resourceType, p
|
|
|
23344
23396
|
await this.attachVpcGateway(desired.kind, desired.gatewayId, vpcId, logicalId);
|
|
23345
23397
|
return {
|
|
23346
23398
|
physicalId: newPhysicalId,
|
|
23347
|
-
wasReplaced: false
|
|
23399
|
+
wasReplaced: false,
|
|
23400
|
+
attributes: vpcGatewayAttachmentAttributes(desired.kind)
|
|
23348
23401
|
};
|
|
23349
23402
|
}
|
|
23350
23403
|
const detachOld = async () => {
|
|
@@ -23386,7 +23439,8 @@ async function updateVpcGatewayAttachment(logicalId, physicalId, resourceType, p
|
|
|
23386
23439
|
this.logger.debug(safeMsg`Swapped VPCGatewayAttachment ${logicalId} in place: ${physicalId} -> ${newPhysicalId}`);
|
|
23387
23440
|
return {
|
|
23388
23441
|
physicalId: newPhysicalId,
|
|
23389
|
-
wasReplaced: false
|
|
23442
|
+
wasReplaced: false,
|
|
23443
|
+
attributes: vpcGatewayAttachmentAttributes(desired.kind)
|
|
23390
23444
|
};
|
|
23391
23445
|
} catch (error) {
|
|
23392
23446
|
if (error instanceof ProvisioningError) throw error;
|
|
@@ -27624,7 +27678,7 @@ async function verifyExplicit(logicalId, resourceType, physicalId, properties) {
|
|
|
27624
27678
|
}
|
|
27625
27679
|
return {
|
|
27626
27680
|
physicalId: packCompositeId(resourceType, logicalId, attachmentSegments),
|
|
27627
|
-
attributes:
|
|
27681
|
+
attributes: vpcGatewayAttachmentAttributes(isVpn ? "vgw" : "igw")
|
|
27628
27682
|
};
|
|
27629
27683
|
}
|
|
27630
27684
|
case "AWS::EC2::NetworkAclEntry": {
|
|
@@ -33926,16 +33980,23 @@ var AgentCoreRuntimeProvider = class {
|
|
|
33926
33980
|
debug: (message) => this.logger.debug(message)
|
|
33927
33981
|
};
|
|
33928
33982
|
}
|
|
33929
|
-
async settledStatus(agentRuntimeId, logicalId, resourceType, operation,
|
|
33983
|
+
async settledStatus(agentRuntimeId, logicalId, resourceType, operation, response, mask) {
|
|
33930
33984
|
if (process.env["CDKD_NO_WAIT"] === "true") {
|
|
33931
33985
|
this.logger.debug(safeMsg`Skipping the READY wait for BedrockAgentCore Runtime ${logicalId} after ${operation} (CDKD_NO_WAIT=true)`);
|
|
33932
33986
|
deferReadiness(logicalId, resourceType, agentRuntimeId, (signal) => waitForRuntimeReady({
|
|
33933
33987
|
...this.waitDeps(),
|
|
33934
33988
|
sleep: (ms) => abortableSleep((d) => this.sleep(d), ms, signal)
|
|
33935
33989
|
}, agentRuntimeId, logicalId, resourceType, operation, mask));
|
|
33936
|
-
return
|
|
33990
|
+
return {
|
|
33991
|
+
status: response.status,
|
|
33992
|
+
lastUpdatedAt: void 0
|
|
33993
|
+
};
|
|
33937
33994
|
}
|
|
33938
|
-
|
|
33995
|
+
const ready = await waitForRuntimeReady(this.waitDeps(), agentRuntimeId, logicalId, resourceType, operation, mask);
|
|
33996
|
+
return {
|
|
33997
|
+
status: ready.status,
|
|
33998
|
+
lastUpdatedAt: ready.lastUpdatedAt
|
|
33999
|
+
};
|
|
33939
34000
|
}
|
|
33940
34001
|
async sendCreateTagCall(send) {
|
|
33941
34002
|
for (let attempt = 0;; attempt++) try {
|
|
@@ -34011,13 +34072,13 @@ var AgentCoreRuntimeProvider = class {
|
|
|
34011
34072
|
createdRuntimeId = agentRuntimeId;
|
|
34012
34073
|
reportCreatedResource(logicalId, resourceType, agentRuntimeId);
|
|
34013
34074
|
this.logger.debug(`Created BedrockAgentCore Runtime: ${agentRuntimeId} (${agentRuntimeArn})`);
|
|
34014
|
-
const
|
|
34075
|
+
const settled = await this.settledStatus(agentRuntimeId, logicalId, resourceType, "create", response, maskerOrIdentity(context?.maskSecrets));
|
|
34015
34076
|
if (desiredTags.length > 0) await this.ensureCreateTags(agentRuntimeId, agentRuntimeArn, desiredTags);
|
|
34016
34077
|
return {
|
|
34017
34078
|
physicalId: agentRuntimeId,
|
|
34018
34079
|
attributes: this.buildAttributes({
|
|
34019
34080
|
...response,
|
|
34020
|
-
|
|
34081
|
+
...settled
|
|
34021
34082
|
}, agentRuntimeName)
|
|
34022
34083
|
};
|
|
34023
34084
|
} catch (error) {
|
|
@@ -34072,14 +34133,14 @@ var AgentCoreRuntimeProvider = class {
|
|
|
34072
34133
|
const response = await this.client.send(new UpdateAgentRuntimeCommand(input));
|
|
34073
34134
|
const agentRuntimeId = response.agentRuntimeId;
|
|
34074
34135
|
await this.syncTags(logicalId, resourceType, physicalId, response.agentRuntimeArn, previousProperties["Tags"], properties["Tags"], mask);
|
|
34075
|
-
const
|
|
34136
|
+
const settled = await this.settledStatus(agentRuntimeId, logicalId, resourceType, "update", response, mask);
|
|
34076
34137
|
this.logger.debug(`Successfully updated BedrockAgentCore Runtime ${logicalId}`);
|
|
34077
34138
|
return {
|
|
34078
34139
|
physicalId: agentRuntimeId,
|
|
34079
34140
|
wasReplaced: false,
|
|
34080
34141
|
attributes: this.buildAttributes({
|
|
34081
34142
|
...response,
|
|
34082
|
-
|
|
34143
|
+
...settled
|
|
34083
34144
|
}, properties["AgentRuntimeName"])
|
|
34084
34145
|
};
|
|
34085
34146
|
} catch (error) {
|
|
@@ -34148,6 +34209,7 @@ var AgentCoreRuntimeProvider = class {
|
|
|
34148
34209
|
if (response.agentRuntimeVersion !== void 0) attributes["AgentRuntimeVersion"] = response.agentRuntimeVersion;
|
|
34149
34210
|
if (response.status !== void 0) attributes["Status"] = response.status;
|
|
34150
34211
|
if (response.createdAt !== void 0) attributes["CreatedAt"] = response.createdAt.toISOString();
|
|
34212
|
+
if (response.lastUpdatedAt !== void 0) attributes["LastUpdatedAt"] = response.lastUpdatedAt.toISOString();
|
|
34151
34213
|
if (response.workloadIdentityDetails !== void 0) attributes["WorkloadIdentityDetails"] = camelToPascalCaseKeys(response.workloadIdentityDetails, SDK_MAP_KEYS);
|
|
34152
34214
|
return attributes;
|
|
34153
34215
|
}
|
|
@@ -34215,8 +34277,7 @@ var AgentCoreBrowserProvider = class {
|
|
|
34215
34277
|
this.logger.debug(`No-op update for default browser ${logicalId}`);
|
|
34216
34278
|
return {
|
|
34217
34279
|
physicalId,
|
|
34218
|
-
wasReplaced: false
|
|
34219
|
-
attributes: {}
|
|
34280
|
+
wasReplaced: false
|
|
34220
34281
|
};
|
|
34221
34282
|
}
|
|
34222
34283
|
async delete(logicalId, _physicalId, _resourceType) {
|
|
@@ -34288,8 +34349,7 @@ var AgentCoreCodeInterpreterProvider = class {
|
|
|
34288
34349
|
this.logger.debug(`No-op update for default code interpreter ${logicalId}`);
|
|
34289
34350
|
return {
|
|
34290
34351
|
physicalId,
|
|
34291
|
-
wasReplaced: false
|
|
34292
|
-
attributes: {}
|
|
34352
|
+
wasReplaced: false
|
|
34293
34353
|
};
|
|
34294
34354
|
}
|
|
34295
34355
|
async delete(logicalId, _physicalId, _resourceType) {
|
|
@@ -55028,7 +55088,7 @@ var KinesisStreamConsumerProvider = class {
|
|
|
55028
55088
|
});
|
|
55029
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.`);
|
|
55030
55090
|
await this.applyTagDiff(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"], maskSecrets);
|
|
55031
|
-
let attrs
|
|
55091
|
+
let attrs;
|
|
55032
55092
|
try {
|
|
55033
55093
|
const desc = (await this.getClient().send(new DescribeStreamConsumerCommand({ ConsumerARN: physicalId }))).ConsumerDescription;
|
|
55034
55094
|
if (desc) attrs = {
|
|
@@ -55045,7 +55105,7 @@ var KinesisStreamConsumerProvider = class {
|
|
|
55045
55105
|
return {
|
|
55046
55106
|
physicalId,
|
|
55047
55107
|
wasReplaced: false,
|
|
55048
|
-
attributes: attrs
|
|
55108
|
+
...attrs !== void 0 && { attributes: attrs }
|
|
55049
55109
|
};
|
|
55050
55110
|
}
|
|
55051
55111
|
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
@@ -59056,6 +59116,27 @@ function mapExtendedS3DescriptionToCfn(desc) {
|
|
|
59056
59116
|
else out["S3BackupConfiguration"] = {};
|
|
59057
59117
|
return out;
|
|
59058
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
|
+
}
|
|
59059
59140
|
function mapNonS3DestinationToCfn(desc) {
|
|
59060
59141
|
const cleaned = pickDefinedDeep(desc);
|
|
59061
59142
|
if (!cleaned) return {};
|
|
@@ -59341,6 +59422,121 @@ async function create$7(logicalId, resourceType, properties, context) {
|
|
|
59341
59422
|
}
|
|
59342
59423
|
}
|
|
59343
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
|
+
|
|
59344
59540
|
// src/provisioning/providers/firehose/update.ts
|
|
59345
59541
|
async function update$7(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
59346
59542
|
assertRegionMatch(context?.expectedRegion ? await this.getClient().config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
@@ -59431,7 +59627,7 @@ async function applyUpdate$1(logicalId, physicalId, resourceType, properties, pr
|
|
|
59431
59627
|
return {
|
|
59432
59628
|
physicalId,
|
|
59433
59629
|
wasReplaced: false,
|
|
59434
|
-
|
|
59630
|
+
...desc?.DeliveryStreamARN !== void 0 && { attributes: { Arn: desc.DeliveryStreamARN } },
|
|
59435
59631
|
...encryptionSkipped && { effectiveProperties: this.withRecordedEncryption(properties, previousProperties["DeliveryStreamEncryptionConfigurationInput"], desc?.DeliveryStreamEncryptionConfiguration) }
|
|
59436
59632
|
};
|
|
59437
59633
|
}
|
|
@@ -59456,13 +59652,14 @@ function withRecordedEncryption(properties, previous, live) {
|
|
|
59456
59652
|
async function applyExtendedS3DestinationUpdate(logicalId, physicalId, nextConfig) {
|
|
59457
59653
|
const desc = (await this.getClient().send(new DescribeDeliveryStreamCommand({ DeliveryStreamName: physicalId }))).DeliveryStreamDescription;
|
|
59458
59654
|
const currentVersionId = desc?.VersionId;
|
|
59459
|
-
const
|
|
59655
|
+
const currentDestination = desc?.Destinations?.[0];
|
|
59656
|
+
const destinationId = currentDestination?.DestinationId;
|
|
59460
59657
|
if (!currentVersionId || !destinationId) throw new ProvisioningError(`DescribeDeliveryStream for ${physicalId} did not return VersionId or DestinationId; UpdateDestination cannot proceed.`, "AWS::KinesisFirehose::DeliveryStream", logicalId, physicalId);
|
|
59461
59658
|
await this.getClient().send(new UpdateDestinationCommand({
|
|
59462
59659
|
DeliveryStreamName: physicalId,
|
|
59463
59660
|
CurrentDeliveryStreamVersionId: currentVersionId,
|
|
59464
59661
|
DestinationId: destinationId,
|
|
59465
|
-
ExtendedS3DestinationUpdate: this.mapExtendedS3ConfigToUpdate(nextConfig)
|
|
59662
|
+
ExtendedS3DestinationUpdate: withEmptyBlocksAsNone(this.mapExtendedS3ConfigToUpdate(nextConfig), nextConfig, currentDestination?.ExtendedS3DestinationDescription)
|
|
59466
59663
|
}));
|
|
59467
59664
|
}
|
|
59468
59665
|
async function applyS3DestinationUpdate(logicalId, physicalId, nextConfig) {
|
|
@@ -59627,103 +59824,6 @@ async function readDeliveryStreamStatusForDelete(streamName) {
|
|
|
59627
59824
|
}
|
|
59628
59825
|
}
|
|
59629
59826
|
|
|
59630
|
-
// src/provisioning/providers/firehose/s3-destination.ts
|
|
59631
|
-
function mapS3DestinationConfiguration(config) {
|
|
59632
|
-
const result = {
|
|
59633
|
-
BucketARN: config["BucketArn"] || config["BucketARN"],
|
|
59634
|
-
RoleARN: config["RoleArn"] || config["RoleARN"]
|
|
59635
|
-
};
|
|
59636
|
-
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59637
|
-
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59638
|
-
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59639
|
-
if (config["BufferingHints"] !== void 0) {
|
|
59640
|
-
const hints = config["BufferingHints"];
|
|
59641
|
-
result.BufferingHints = {
|
|
59642
|
-
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59643
|
-
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59644
|
-
};
|
|
59645
|
-
}
|
|
59646
|
-
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59647
|
-
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59648
|
-
return result;
|
|
59649
|
-
}
|
|
59650
|
-
function mapExtendedS3DestinationConfiguration(config) {
|
|
59651
|
-
const result = {
|
|
59652
|
-
BucketARN: config["BucketArn"] || config["BucketARN"],
|
|
59653
|
-
RoleARN: config["RoleArn"] || config["RoleARN"]
|
|
59654
|
-
};
|
|
59655
|
-
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59656
|
-
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59657
|
-
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59658
|
-
if (config["BufferingHints"] !== void 0) {
|
|
59659
|
-
const hints = config["BufferingHints"];
|
|
59660
|
-
result.BufferingHints = {
|
|
59661
|
-
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59662
|
-
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59663
|
-
};
|
|
59664
|
-
}
|
|
59665
|
-
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59666
|
-
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59667
|
-
if (config["ProcessingConfiguration"] !== void 0) result.ProcessingConfiguration = config["ProcessingConfiguration"];
|
|
59668
|
-
if (config["S3BackupMode"] !== void 0) result.S3BackupMode = config["S3BackupMode"];
|
|
59669
|
-
if (config["S3BackupConfiguration"] !== void 0) {
|
|
59670
|
-
const backupConfig = config["S3BackupConfiguration"];
|
|
59671
|
-
result.S3BackupConfiguration = this.mapS3DestinationConfiguration(backupConfig);
|
|
59672
|
-
}
|
|
59673
|
-
if (config["DataFormatConversionConfiguration"] !== void 0) result.DataFormatConversionConfiguration = config["DataFormatConversionConfiguration"];
|
|
59674
|
-
if (config["DynamicPartitioningConfiguration"] !== void 0) result.DynamicPartitioningConfiguration = config["DynamicPartitioningConfiguration"];
|
|
59675
|
-
if (config["FileExtension"] !== void 0) result.FileExtension = config["FileExtension"];
|
|
59676
|
-
if (config["CustomTimeZone"] !== void 0) result.CustomTimeZone = config["CustomTimeZone"];
|
|
59677
|
-
return result;
|
|
59678
|
-
}
|
|
59679
|
-
function mapExtendedS3ConfigToUpdate(config) {
|
|
59680
|
-
const result = {};
|
|
59681
|
-
const bucketArn = config["BucketArn"] ?? config["BucketARN"];
|
|
59682
|
-
if (bucketArn !== void 0) result.BucketARN = bucketArn;
|
|
59683
|
-
const roleArn = config["RoleArn"] ?? config["RoleARN"];
|
|
59684
|
-
if (roleArn !== void 0) result.RoleARN = roleArn;
|
|
59685
|
-
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59686
|
-
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59687
|
-
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59688
|
-
if (config["BufferingHints"] !== void 0) {
|
|
59689
|
-
const hints = config["BufferingHints"];
|
|
59690
|
-
result.BufferingHints = {
|
|
59691
|
-
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59692
|
-
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59693
|
-
};
|
|
59694
|
-
}
|
|
59695
|
-
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59696
|
-
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59697
|
-
if (config["ProcessingConfiguration"] !== void 0) result.ProcessingConfiguration = config["ProcessingConfiguration"];
|
|
59698
|
-
if (config["S3BackupMode"] !== void 0) result.S3BackupMode = config["S3BackupMode"];
|
|
59699
|
-
if (config["S3BackupConfiguration"] !== void 0) result.S3BackupUpdate = this.mapS3ConfigToUpdate(config["S3BackupConfiguration"]);
|
|
59700
|
-
if (config["DataFormatConversionConfiguration"] !== void 0) result.DataFormatConversionConfiguration = config["DataFormatConversionConfiguration"];
|
|
59701
|
-
if (config["DynamicPartitioningConfiguration"] !== void 0) result.DynamicPartitioningConfiguration = config["DynamicPartitioningConfiguration"];
|
|
59702
|
-
if (config["FileExtension"] !== void 0) result.FileExtension = config["FileExtension"];
|
|
59703
|
-
if (config["CustomTimeZone"] !== void 0) result.CustomTimeZone = config["CustomTimeZone"];
|
|
59704
|
-
return result;
|
|
59705
|
-
}
|
|
59706
|
-
function mapS3ConfigToUpdate(config) {
|
|
59707
|
-
const result = {};
|
|
59708
|
-
const bucketArn = config["BucketArn"] ?? config["BucketARN"];
|
|
59709
|
-
if (bucketArn !== void 0) result.BucketARN = bucketArn;
|
|
59710
|
-
const roleArn = config["RoleArn"] ?? config["RoleARN"];
|
|
59711
|
-
if (roleArn !== void 0) result.RoleARN = roleArn;
|
|
59712
|
-
if (config["Prefix"] !== void 0) result.Prefix = config["Prefix"];
|
|
59713
|
-
if (config["ErrorOutputPrefix"] !== void 0) result.ErrorOutputPrefix = config["ErrorOutputPrefix"];
|
|
59714
|
-
if (config["CompressionFormat"] !== void 0) result.CompressionFormat = config["CompressionFormat"];
|
|
59715
|
-
if (config["BufferingHints"] !== void 0) {
|
|
59716
|
-
const hints = config["BufferingHints"];
|
|
59717
|
-
result.BufferingHints = {
|
|
59718
|
-
...hints["SizeInMBs"] !== void 0 && { SizeInMBs: hints["SizeInMBs"] },
|
|
59719
|
-
...hints["IntervalInSeconds"] !== void 0 && { IntervalInSeconds: hints["IntervalInSeconds"] }
|
|
59720
|
-
};
|
|
59721
|
-
}
|
|
59722
|
-
if (config["EncryptionConfiguration"] !== void 0) result.EncryptionConfiguration = config["EncryptionConfiguration"];
|
|
59723
|
-
if (config["CloudWatchLoggingOptions"] !== void 0) result.CloudWatchLoggingOptions = config["CloudWatchLoggingOptions"];
|
|
59724
|
-
return result;
|
|
59725
|
-
}
|
|
59726
|
-
|
|
59727
59827
|
// src/provisioning/providers/firehose/destination-updates.ts
|
|
59728
59828
|
async function applyRedshiftDestinationUpdate(logicalId, physicalId, nextConfig) {
|
|
59729
59829
|
const desc = (await this.getClient().send(new DescribeDeliveryStreamCommand({ DeliveryStreamName: physicalId }))).DeliveryStreamDescription;
|
|
@@ -60190,6 +60290,9 @@ var FirehoseProvider = class {
|
|
|
60190
60290
|
getDriftUnknownPaths() {
|
|
60191
60291
|
return getDriftUnknownPaths.call(this);
|
|
60192
60292
|
}
|
|
60293
|
+
canonicalizeDriftProperties(_resourceType, properties) {
|
|
60294
|
+
return canonicalizeDisabledExtendedS3Blocks(properties);
|
|
60295
|
+
}
|
|
60193
60296
|
import(input) {
|
|
60194
60297
|
return importImpl$6.call(this, input);
|
|
60195
60298
|
}
|
|
@@ -62537,7 +62640,7 @@ var DLMLifecyclePolicyProvider = class {
|
|
|
62537
62640
|
return {
|
|
62538
62641
|
physicalId,
|
|
62539
62642
|
wasReplaced: false,
|
|
62540
|
-
|
|
62643
|
+
...arn ? { attributes: { Arn: arn } } : {}
|
|
62541
62644
|
};
|
|
62542
62645
|
} catch (error) {
|
|
62543
62646
|
if (error instanceof ResourceUpdateNotSupportedError) throw error;
|
|
@@ -66866,4 +66969,4 @@ var ACMCertificateProvider = class {
|
|
|
66866
66969
|
};
|
|
66867
66970
|
|
|
66868
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 };
|
|
66869
|
-
//# sourceMappingURL=provider-classes-
|
|
66972
|
+
//# sourceMappingURL=provider-classes-DOrSeS2t.js.map
|