@cdkd/cli 0.356.2 → 0.357.1
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-CA9D0blo.js → ambient-client-defaults-BmYocuaY.js} +6 -3
- package/dist/ambient-client-defaults-BmYocuaY.js.map +1 -0
- package/dist/{asg-provider-DKK_ojhX.js → asg-provider-C8ugOx9N.js} +6 -6
- package/dist/{asg-provider-DKK_ojhX.js.map → asg-provider-C8ugOx9N.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-CeK8xyQR.js → custom-resource-runtime-C6zkfgAr.js} +6 -6
- package/dist/{custom-resource-runtime-CeK8xyQR.js.map → custom-resource-runtime-C6zkfgAr.js.map} +1 -1
- package/dist/{db-associated-roles-DgDc5wy0.js → db-associated-roles-r-T_AwP3.js} +2 -2
- package/dist/{db-associated-roles-DgDc5wy0.js.map → db-associated-roles-r-T_AwP3.js.map} +1 -1
- package/dist/{delete-started--vmpKHHp.js → delete-started-BgWxuhAh.js} +4 -4
- package/dist/{delete-started--vmpKHHp.js.map → delete-started-BgWxuhAh.js.map} +1 -1
- package/dist/{deploy-engine-Khkf436D.js → deploy-engine-B8flILP9.js} +216 -31
- package/dist/deploy-engine-B8flILP9.js.map +1 -0
- package/dist/{diff-calculator-FgirPchn.js → diff-calculator-Cgu7i4rr.js} +12 -12
- package/dist/{diff-calculator-FgirPchn.js.map → diff-calculator-Cgu7i4rr.js.map} +1 -1
- package/dist/{ec2-termination-protection-DSas--OD.js → ec2-termination-protection-j9sfrKAN.js} +15 -6
- package/dist/ec2-termination-protection-j9sfrKAN.js.map +1 -0
- package/dist/{ecr-uri-CNCeWz7V.js → ecr-uri-dpxS0tpG.js} +2 -2
- package/dist/{ecr-uri-CNCeWz7V.js.map → ecr-uri-dpxS0tpG.js.map} +1 -1
- package/dist/{expected-bucket-owner-OcuAToiT.js → expected-bucket-owner-Gnn0E0XU.js} +2 -2
- package/dist/{expected-bucket-owner-OcuAToiT.js.map → expected-bucket-owner-Gnn0E0XU.js.map} +1 -1
- package/dist/{iam-role-provider-D0O-zHMi.js → iam-role-provider-wmMy08Rc.js} +8 -8
- package/dist/{iam-role-provider-D0O-zHMi.js.map → iam-role-provider-wmMy08Rc.js.map} +1 -1
- package/dist/{image-plan-BUGUXaN0.js → image-plan-BAt-vvGL.js} +9 -9
- package/dist/{image-plan-BUGUXaN0.js.map → image-plan-BAt-vvGL.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-CUFsTxnP.js → logger-B8d1G4Ta.js} +8 -2
- package/dist/logger-B8d1G4Ta.js.map +1 -0
- package/dist/{neptune-provider-CACg-APp.js → neptune-provider-Bc7mjz32.js} +7 -7
- package/dist/{neptune-provider-CACg-APp.js.map → neptune-provider-Bc7mjz32.js.map} +1 -1
- package/dist/{program-Dzi4h57y.js → program-CIdzMBtq.js} +20 -16
- package/dist/program-CIdzMBtq.js.map +1 -0
- package/dist/{provider-classes-CxAMhRwb.js → provider-classes-CZtdRriA.js} +1220 -82
- package/dist/provider-classes-CZtdRriA.js.map +1 -0
- package/dist/{rds-provider-CvggdQtJ.js → rds-provider-DoYnZEQX.js} +10 -10
- package/dist/{rds-provider-CvggdQtJ.js.map → rds-provider-DoYnZEQX.js.map} +1 -1
- package/dist/{read-replica-cUM8un9s.js → read-replica-Ds4ky-H6.js} +3 -3
- package/dist/{read-replica-cUM8un9s.js.map → read-replica-Ds4ky-H6.js.map} +1 -1
- package/dist/{replacement-rules-DHfiJ4Ez.js → replacement-rules-B9j5cS9H.js} +17 -3
- package/dist/{replacement-rules-DHfiJ4Ez.js.map → replacement-rules-B9j5cS9H.js.map} +1 -1
- package/dist/{resource-deadline-D_yTCpOm.js → resource-deadline-DOssgHsO.js} +4 -4
- package/dist/{resource-deadline-D_yTCpOm.js.map → resource-deadline-DOssgHsO.js.map} +1 -1
- package/dist/{restore-source-guard-CnuS2SSM.js → restore-source-guard-5nhCX2ho.js} +4 -4
- package/dist/{restore-source-guard-CnuS2SSM.js.map → restore-source-guard-5nhCX2ho.js.map} +1 -1
- package/dist/{run-cli-BhIcSCGu.js → run-cli-CeaxHG2W.js} +2 -2
- package/dist/{run-cli-BhIcSCGu.js.map → run-cli-CeaxHG2W.js.map} +1 -1
- package/dist/{version-DGMI88l4.js → version-WsYrf5rH.js} +2 -2
- package/dist/{version-DGMI88l4.js.map → version-WsYrf5rH.js.map} +1 -1
- package/package.json +2 -2
- package/dist/ambient-client-defaults-CA9D0blo.js.map +0 -1
- package/dist/deploy-engine-Khkf436D.js.map +0 -1
- package/dist/ec2-termination-protection-DSas--OD.js.map +0 -1
- package/dist/logger-CUFsTxnP.js.map +0 -1
- package/dist/program-Dzi4h57y.js.map +0 -1
- package/dist/provider-classes-CxAMhRwb.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-
|
|
2
|
-
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-
|
|
1
|
+
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-wmMy08Rc.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-B8d1G4Ta.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as logGroupProtectionSite, $t as markCreatedBeforeFailure, A as ambiguousAttemptLead, At as compositeIdFormatMessage, B as isPlainImportValue, Bt as isSecretDerivedValue, Ct as renderDisableCommand, D as AmbiguousCreateLatch, Dt as isInterruptedWaitError, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, K as resolveExplicitPhysicalId, Kt as clearCreatedBeforeFailure, L as VALUE_NOT_SHOWN, Lt as stateOrphanRecordRemedy, M as isInsideWindow, Mt as compositeIdSkipResult, N as replayFollowedAmbiguousAttempt, Nt as logicalIdShown, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as startInterruptWatch, P as replayedSendWindow, Pt as packCompositeId, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, R as importRemedyCommand, Rt as createMaskedLogSinks, S as readPrincipalLists, St as protectedReplacementAdvice, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, X as markNotGone, Xt as isAuxiliaryFailure, _n as injectiveKeyPrefix, a as clearOnUpdateRemoval, at as deleteAfterProtectionFlipWithFinalSnapshot, b as holdsSecretDerivedEntry, bt as isAwsCliLiteral, c as removedTemplateKeys, ct as isTerminalDbWaitStatus, dt as isTerminalDeleteFailure, en as markSupersedesEarlierCreate, et as observeThenDisableProtection, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, it as PROTECTION_FLIP_RETRY_WAIT_MS, j as createAttemptKey, jt as compositeIdSeparatorRefusal, k as RecentIdSet, kt as canonicalizeRoute53QueryName, l as withRemovalDefaults, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, q as RESOURCE_NOT_FOUND, rt as userPoolProtectionSite, st as isProceedDbStatus, t as enclosingDeadlineExpired, tt as rdsFamilyProtectionSite, ut as ProtectionFlipRegistry, vt as UNNAMEABLE_ID_CLAUSE, w as recordedPrincipalsRepair, x as onlySecretDerived, xt as pasteableAwsCommand, y as SECRET_DERIVED_READ_LIVE, yt as WITHHELD_AWS_COMMAND, z as isPlainImportJson, zt as createMaskedRetryLogger } from "./resource-deadline-
|
|
6
|
-
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-
|
|
7
|
-
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started
|
|
8
|
-
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-
|
|
9
|
-
import { $ as planVectorIndexUpdates, At as hasCdkAutoDeleteTag, B as declaredStreamTagsMember, Ba as waitForGoneAfterDelete, Cc as refuseMalformedNestedChildOutputs, Cl as listNestedTemplateRows, Ct as TABLE_INDEX_NOUN, Do as s3BucketDualStackDomainName, Dt as waitForIndexesSettled, Eo as s3BucketDomainName, Et as relayedIndexBusyDelete, Fr as redactedDeleteAddressFields, G as streamMemberRefusals, Ga as deleteSkipReason, Gt as isAccessDeniedError, H as reverseMapStreamPolicy, I as DynamoDBGlobalTableProvider, Ir as redactedDeleteAddressSkip, J as isTtlAlreadyDisabled, K as streamPolicyMatchesDeclared, Ka as withIndeterminateGuard, Kt as lookupEachName, L as STREAM_POLICY_KEY, Nc as refuseMalformedResourcesForDestroy, Nr as REDACTED_DELETE_ADDRESS_SKIP_REASON, Oa as getCurrentResourceSecrets, Oo as s3BucketRegionalDomainName, Os as passedParameterClassesOf, Ot as ECR_AUTO_DELETE_IMAGES_TAG, Pr as isRedactedRecordedValue, Q as sendTtlWaitingOutRateLimit, Qn as canonicalizeIpProtocolValue, R as STREAM_TAGS_KEY, Ra as waitForLambdaFunctionActive, Rc as accountArgs, Sl as isAbsoluteAssetPath, St as INDEX_SETTLE_POLL_INTERVAL_MS, To as s3BucketArn, Tt as maskedLogger, U as streamDeclaresPolicy, Ul as rewriteTemplateAssetReferences, Uo as outputReferenceProvenanceOf, V as planStreamMemberOps, W as streamDeclaresTags, Wt as chunks, X as planTimeToLive, Xc as withoutSdkUnwiredProperties, Xn as cfnIngressPortValue, Y as isTtlRateLimited, Ya as markWaitAbandoned, Yi as secretNamedAttributeNamesOf, Yn as withoutSiblingOwnedSgRules, Yo as getAccountInfo, Z as readTtlSpec, Zn as sgProtocolKey, _i as awaitInFlightSibling, _s as isWarmThroughputDecrease, _t as compensateRemovedDeletionProtection, _u as describeFileReadFailure, at as contributorInsightsRefusals, bt as resolveDynamoDbDeleteBudgetMs, bu as renderAssemblyPathEscape, cn as withNestedStackContext, ct as planIndexContributorInsightsOps, da as collectManagedPolicyArnsAttachedBySiblings, dt as reverseMapTableContributorInsights, en as getNestedRevertRun, et as readbackVectorIndexes, fa as collectPrincipalsAttachingPolicy, ft as stripIndexContributorInsights, gr as reserveStackCreateToken, gs as coerceWarmThroughput$1, gt as beginDeleteWait, ha as withoutSiblingOwned, hs as WARM_THROUGHPUT_MEMBERS, ht as DYNAMODB_DELETE_POLL_COST_MS, it as CONTRIBUTOR_INSIGHTS_KEY, jl as decodeListingKey, jt as isTruthyCfnBoolean, ko as s3BucketWebsiteUrl, kt as S3_AUTO_DELETE_OBJECTS_TAG, lt as readContributorInsightsSpec, ma as withoutSiblingAttachedArns, mr as earliestDefined, mt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, no as APPSYNC_APIKEY_ARN_RESOURCE_PATH, nt as vectorIndexesSettled, ot as indexDeclaresContributorInsights, pt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, q as streamTagsMatchDeclared, qc as findSdkUnwiredProperties, qn as siblingOwnedSgRuleIdentities, qr as getCurrentProducerRegions, qt as withApiLimit, rn as revertNestedChildFromJournal, ro as maskedSecretSegment, rt as vectorIndexesShapeDetail, sn as getCurrentNestedStackContext, st as planContributorInsightsOp, t as DeployEngine, to as isSettledInstanceState, tt as vectorIndexesForCreate, ua as collectGroupsAddedBySiblings, ut as reverseMapIndexContributorInsights, vr as acquireIdempotencyToken, vs as toCfnInteger, vt as deleteBudgetKey, vu as displayAssemblyPath, wl as renderNestedTemplateTreeDefect, wt as deleteTableWithIndexBusyRetry, xi as replacedDeleteFailureVerdict, xl as findNestedTemplateTreeDefect, xt as DELETE_INDEX_WAIT_PROCEED_NOTE, xu as resolveAssemblyPath, yi as getStackRecords, yl as stringifyValue, ys as toFiniteNumber, yt as resolveDynamoDbDeleteBudgetClock, z as declaredStreamPolicyMember, zc as withheldAccountClause, zo as parseWebACLArn } from "./deploy-engine-
|
|
10
|
-
import { _ as isUsableAttemptedName, c as planTagDiff, d as tagMapAsList, f as tagPlanWarning, g as stringifyIfAssigned, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, m as modifyDbInstanceWhenAvailable, o as DBPROXY_TAGS_WHAT, p as isModifyNotAvailableRefusal, s as DBPROXY_TAG_OPTIONS, u as refuseMalformedDesiredTags } from "./restore-source-guard-
|
|
11
|
-
import { A as withRetry, U as timePhase, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, d as markRefusedBeforeApplying, g as onlySecretReferencesDiffer, i as observeThenDisableInstanceApiTermination, l as getPriorAttempts, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs } from "./ec2-termination-protection-
|
|
4
|
+
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-BmYocuaY.js";
|
|
5
|
+
import { $ as logGroupProtectionSite, $t as markCreatedBeforeFailure, A as ambiguousAttemptLead, At as compositeIdFormatMessage, B as isPlainImportValue, Bt as isSecretDerivedValue, Ct as renderDisableCommand, D as AmbiguousCreateLatch, Dt as isInterruptedWaitError, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, K as resolveExplicitPhysicalId, Kt as clearCreatedBeforeFailure, L as VALUE_NOT_SHOWN, Lt as stateOrphanRecordRemedy, M as isInsideWindow, Mt as compositeIdSkipResult, N as replayFollowedAmbiguousAttempt, Nt as logicalIdShown, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as startInterruptWatch, P as replayedSendWindow, Pt as packCompositeId, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, R as importRemedyCommand, Rt as createMaskedLogSinks, S as readPrincipalLists, St as protectedReplacementAdvice, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, X as markNotGone, Xt as isAuxiliaryFailure, _n as injectiveKeyPrefix, a as clearOnUpdateRemoval, at as deleteAfterProtectionFlipWithFinalSnapshot, b as holdsSecretDerivedEntry, bt as isAwsCliLiteral, c as removedTemplateKeys, ct as isTerminalDbWaitStatus, dt as isTerminalDeleteFailure, en as markSupersedesEarlierCreate, et as observeThenDisableProtection, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, it as PROTECTION_FLIP_RETRY_WAIT_MS, j as createAttemptKey, jt as compositeIdSeparatorRefusal, k as RecentIdSet, kt as canonicalizeRoute53QueryName, l as withRemovalDefaults, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, q as RESOURCE_NOT_FOUND, rt as userPoolProtectionSite, st as isProceedDbStatus, t as enclosingDeadlineExpired, tt as rdsFamilyProtectionSite, ut as ProtectionFlipRegistry, vt as UNNAMEABLE_ID_CLAUSE, w as recordedPrincipalsRepair, x as onlySecretDerived, xt as pasteableAwsCommand, y as SECRET_DERIVED_READ_LIVE, yt as WITHHELD_AWS_COMMAND, z as isPlainImportJson, zt as createMaskedRetryLogger } from "./resource-deadline-DOssgHsO.js";
|
|
6
|
+
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-WsYrf5rH.js";
|
|
7
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-BgWxuhAh.js";
|
|
8
|
+
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-CIdzMBtq.js";
|
|
9
|
+
import { $ as planVectorIndexUpdates, At as hasCdkAutoDeleteTag, B as declaredStreamTagsMember, Ba as waitForGoneAfterDelete, Cc as refuseMalformedNestedChildOutputs, Cl as listNestedTemplateRows, Ct as TABLE_INDEX_NOUN, Do as s3BucketDualStackDomainName, Dt as waitForIndexesSettled, Eo as s3BucketDomainName, Et as relayedIndexBusyDelete, Fr as redactedDeleteAddressFields, G as streamMemberRefusals, Ga as deleteSkipReason, Gt as isAccessDeniedError, H as reverseMapStreamPolicy, I as DynamoDBGlobalTableProvider, Ir as redactedDeleteAddressSkip, J as isTtlAlreadyDisabled, K as streamPolicyMatchesDeclared, Ka as withIndeterminateGuard, Kt as lookupEachName, L as STREAM_POLICY_KEY, Nc as refuseMalformedResourcesForDestroy, Nr as REDACTED_DELETE_ADDRESS_SKIP_REASON, Oa as getCurrentResourceSecrets, Oo as s3BucketRegionalDomainName, Os as passedParameterClassesOf, Ot as ECR_AUTO_DELETE_IMAGES_TAG, Pr as isRedactedRecordedValue, Q as sendTtlWaitingOutRateLimit, Qn as canonicalizeIpProtocolValue, R as STREAM_TAGS_KEY, Ra as waitForLambdaFunctionActive, Rc as accountArgs, Sl as isAbsoluteAssetPath, St as INDEX_SETTLE_POLL_INTERVAL_MS, To as s3BucketArn, Tt as maskedLogger, U as streamDeclaresPolicy, Ul as rewriteTemplateAssetReferences, Uo as outputReferenceProvenanceOf, V as planStreamMemberOps, W as streamDeclaresTags, Wt as chunks, X as planTimeToLive, Xc as withoutSdkUnwiredProperties, Xn as cfnIngressPortValue, Y as isTtlRateLimited, Ya as markWaitAbandoned, Yi as secretNamedAttributeNamesOf, Yn as withoutSiblingOwnedSgRules, Yo as getAccountInfo, Z as readTtlSpec, Zn as sgProtocolKey, _i as awaitInFlightSibling, _s as isWarmThroughputDecrease, _t as compensateRemovedDeletionProtection, _u as describeFileReadFailure, at as contributorInsightsRefusals, bt as resolveDynamoDbDeleteBudgetMs, bu as renderAssemblyPathEscape, cn as withNestedStackContext, ct as planIndexContributorInsightsOps, da as collectManagedPolicyArnsAttachedBySiblings, dt as reverseMapTableContributorInsights, en as getNestedRevertRun, et as readbackVectorIndexes, fa as collectPrincipalsAttachingPolicy, ft as stripIndexContributorInsights, gr as reserveStackCreateToken, gs as coerceWarmThroughput$1, gt as beginDeleteWait, ha as withoutSiblingOwned, hs as WARM_THROUGHPUT_MEMBERS, ht as DYNAMODB_DELETE_POLL_COST_MS, it as CONTRIBUTOR_INSIGHTS_KEY, jl as decodeListingKey, jt as isTruthyCfnBoolean, ko as s3BucketWebsiteUrl, kt as S3_AUTO_DELETE_OBJECTS_TAG, lt as readContributorInsightsSpec, ma as withoutSiblingAttachedArns, mr as earliestDefined, mt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, no as APPSYNC_APIKEY_ARN_RESOURCE_PATH, nt as vectorIndexesSettled, ot as indexDeclaresContributorInsights, pt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, q as streamTagsMatchDeclared, qc as findSdkUnwiredProperties, qn as siblingOwnedSgRuleIdentities, qr as getCurrentProducerRegions, qt as withApiLimit, rn as revertNestedChildFromJournal, ro as maskedSecretSegment, rt as vectorIndexesShapeDetail, sn as getCurrentNestedStackContext, st as planContributorInsightsOp, t as DeployEngine, to as isSettledInstanceState, tt as vectorIndexesForCreate, ua as collectGroupsAddedBySiblings, ut as reverseMapIndexContributorInsights, vr as acquireIdempotencyToken, vs as toCfnInteger, vt as deleteBudgetKey, vu as displayAssemblyPath, wl as renderNestedTemplateTreeDefect, wt as deleteTableWithIndexBusyRetry, xi as replacedDeleteFailureVerdict, xl as findNestedTemplateTreeDefect, xt as DELETE_INDEX_WAIT_PROCEED_NOTE, xu as resolveAssemblyPath, yi as getStackRecords, yl as stringifyValue, ys as toFiniteNumber, yt as resolveDynamoDbDeleteBudgetClock, z as declaredStreamPolicyMember, zc as withheldAccountClause, zo as parseWebACLArn } from "./deploy-engine-B8flILP9.js";
|
|
10
|
+
import { _ as isUsableAttemptedName, c as planTagDiff, d as tagMapAsList, f as tagPlanWarning, g as stringifyIfAssigned, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, m as modifyDbInstanceWhenAvailable, o as DBPROXY_TAGS_WHAT, p as isModifyNotAvailableRefusal, s as DBPROXY_TAG_OPTIONS, u as refuseMalformedDesiredTags } from "./restore-source-guard-5nhCX2ho.js";
|
|
11
|
+
import { A as withRetry, U as timePhase, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, d as markRefusedBeforeApplying, g as onlySecretReferencesDiffer, i as observeThenDisableInstanceApiTermination, l as getPriorAttempts, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs } from "./ec2-termination-protection-j9sfrKAN.js";
|
|
12
12
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
13
|
-
import { f as ambientRegion } from "./aws-client-defaults-DAebi99J.js";
|
|
14
|
-
import { n as planSubscriptionAttributes } from "./diff-calculator-
|
|
15
|
-
import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-
|
|
16
|
-
import { RDSProvider } from "./rds-provider-
|
|
17
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
18
|
-
import { ASGProvider } from "./asg-provider-
|
|
13
|
+
import { f as ambientRegion, r as awsEndpointOverrideActive } from "./aws-client-defaults-DAebi99J.js";
|
|
14
|
+
import { n as planSubscriptionAttributes } from "./diff-calculator-Cgu7i4rr.js";
|
|
15
|
+
import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-B9j5cS9H.js";
|
|
16
|
+
import { RDSProvider } from "./rds-provider-DoYnZEQX.js";
|
|
17
|
+
import { NeptuneProvider } from "./neptune-provider-Bc7mjz32.js";
|
|
18
|
+
import { ASGProvider } from "./asg-provider-C8ugOx9N.js";
|
|
19
19
|
import { createHash, randomUUID } from "node:crypto";
|
|
20
20
|
import { CreateBucketCommand, CreateBucketMetadataConfigurationCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetadataConfigurationCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAbacCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketMetadataConfigurationCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAbacCommand, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, UpdateBucketMetadataAnnotationTableConfigurationCommand, UpdateBucketMetadataInventoryTableConfigurationCommand, UpdateBucketMetadataJournalTableConfigurationCommand } from "@aws-sdk/client-s3";
|
|
21
21
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateAccessKeyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListPoliciesCommand, ListPolicyTagsCommand, ListPolicyVersionsCommand, ListUserPoliciesCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagPolicyCommand, TagUserCommand, UntagPolicyCommand, UntagUserCommand, UpdateAccessKeyCommand, UpdateGroupCommand, UpdateLoginProfileCommand, UpdateUserCommand } from "@aws-sdk/client-iam";
|
|
@@ -26,12 +26,12 @@ import { GetCallerIdentityCommand, STSClient } from "@aws-sdk/client-sts";
|
|
|
26
26
|
import { AllocateAddressCommand, AssociateAddressCommand, AssociateIamInstanceProfileCommand, AssociateNatGatewayAddressCommand, AssociateRouteTableCommand, AssociateSubnetCidrBlockCommand, AttachInternetGatewayCommand, AttachVolumeCommand, AttachVpnGatewayCommand, AuthorizeSecurityGroupEgressCommand, AuthorizeSecurityGroupIngressCommand, CreateInternetGatewayCommand, CreateNatGatewayCommand, CreateNetworkAclCommand, CreateNetworkAclEntryCommand, CreateRouteCommand, CreateRouteTableCommand, CreateSecurityGroupCommand, CreateSubnetCommand, CreateTagsCommand, CreateVpcCommand, DeleteInternetGatewayCommand, DeleteNatGatewayCommand, DeleteNetworkAclCommand, DeleteNetworkAclEntryCommand, DeleteNetworkInterfaceCommand, DeleteRouteCommand, DeleteRouteTableCommand, DeleteSecurityGroupCommand, DeleteSubnetCommand, DeleteTagsCommand, DeleteVpcCommand, DescribeAddressesCommand, DescribeAvailabilityZonesCommand, DescribeIamInstanceProfileAssociationsCommand, DescribeInstanceAttributeCommand, DescribeInstanceCreditSpecificationsCommand, DescribeInstancesCommand, DescribeInternetGatewaysCommand, DescribeNatGatewaysCommand, DescribeNetworkAclsCommand, DescribeNetworkInterfacesCommand, DescribeRouteTablesCommand, DescribeSecurityGroupRulesCommand, DescribeSecurityGroupsCommand, DescribeSubnetsCommand, DescribeVolumesCommand, DescribeVpcAttributeCommand, DescribeVpcsCommand, DescribeVpnGatewaysCommand, DetachInternetGatewayCommand, DetachVolumeCommand, DetachVpnGatewayCommand, DisassociateAddressCommand, DisassociateIamInstanceProfileCommand, DisassociateNatGatewayAddressCommand, DisassociateRouteTableCommand, DisassociateSubnetCidrBlockCommand, EC2Client, GetIpamPoolAllocationsCommand, ModifyInstanceAttributeCommand, ModifyInstanceCreditSpecificationCommand, ModifyInstanceMetadataOptionsCommand, ModifyInstancePlacementCommand, ModifyPrivateDnsNameOptionsCommand, ModifySubnetAttributeCommand, ModifyVpcAttributeCommand, ModifyVpcTenancyCommand, MonitorInstancesCommand, ReleaseAddressCommand, ReplaceIamInstanceProfileAssociationCommand, ReplaceNetworkAclAssociationCommand, ReplaceNetworkAclEntryCommand, ReplaceRouteCommand, RevokeSecurityGroupEgressCommand, RevokeSecurityGroupIngressCommand, RunInstancesCommand, StartInstancesCommand, StopInstancesCommand, TerminateInstancesCommand, UnmonitorInstancesCommand, UpdateSecurityGroupRuleDescriptionsEgressCommand, UpdateSecurityGroupRuleDescriptionsIngressCommand, waitUntilInstanceRunning, waitUntilInstanceTerminated, waitUntilNatGatewayAvailable, waitUntilNatGatewayDeleted } from "@aws-sdk/client-ec2";
|
|
27
27
|
import { CreateTableCommand, DeleteResourcePolicyCommand, DeleteTableCommand, DescribeContinuousBackupsCommand, DescribeContributorInsightsCommand, DescribeKinesisStreamingDestinationCommand, DescribeTableCommand, DescribeTimeToLiveCommand, DisableKinesisStreamingDestinationCommand, DynamoDBClient, EnableKinesisStreamingDestinationCommand, GetResourcePolicyCommand, ListTagsOfResourceCommand, PolicyNotFoundException, PutResourcePolicyCommand, ResourceNotFoundException as ResourceNotFoundException$1, TagResourceCommand as TagResourceCommand$2, UntagResourceCommand as UntagResourceCommand$2, UpdateContinuousBackupsCommand, UpdateContributorInsightsCommand, UpdateKinesisStreamingDestinationCommand, UpdateTableCommand, UpdateTimeToLiveCommand } from "@aws-sdk/client-dynamodb";
|
|
28
28
|
import { APIGatewayClient, CreateAuthorizerCommand, CreateDeploymentCommand, CreateResourceCommand, CreateRestApiCommand, CreateStageCommand, DeleteAuthorizerCommand, DeleteDeploymentCommand, DeleteIntegrationCommand, DeleteIntegrationResponseCommand, DeleteMethodCommand, DeleteMethodResponseCommand, DeleteResourceCommand, DeleteRestApiCommand, DeleteStageCommand, GetAccountCommand, GetAuthorizerCommand, GetAuthorizersCommand, GetDeploymentCommand, GetDeploymentsCommand, GetMethodCommand, GetResourceCommand, GetRestApiCommand, GetRestApisCommand, GetStageCommand, ImportRestApiCommand, NotFoundException as NotFoundException$1, PutIntegrationCommand, PutIntegrationResponseCommand, PutMethodCommand, PutMethodResponseCommand, PutRestApiCommand, TagResourceCommand as TagResourceCommand$3, UntagResourceCommand as UntagResourceCommand$3, UpdateAccountCommand, UpdateAuthorizerCommand, UpdateDeploymentCommand, UpdateMethodCommand, UpdateRestApiCommand, UpdateStageCommand } from "@aws-sdk/client-api-gateway";
|
|
29
|
-
import { CreateEventBusCommand, DeleteEventBusCommand, DeleteRuleCommand, DescribeEventBusCommand, DescribeRuleCommand, EventBridgeClient, ListRulesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$1, ListTargetsByRuleCommand, PutPermissionCommand, PutRuleCommand, PutTargetsCommand, RemoveTargetsCommand, ResourceNotFoundException as ResourceNotFoundException$2, TagResourceCommand as TagResourceCommand$4, UntagResourceCommand as UntagResourceCommand$4, UpdateEventBusCommand } from "@aws-sdk/client-eventbridge";
|
|
29
|
+
import { CreateArchiveCommand, CreateEventBusCommand, DeleteArchiveCommand, DeleteEventBusCommand, DeleteRuleCommand, DescribeArchiveCommand, DescribeEventBusCommand, DescribeRuleCommand, EventBridgeClient, ListRulesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$1, ListTargetsByRuleCommand, PutPermissionCommand, PutRuleCommand, PutTargetsCommand, RemoveTargetsCommand, ResourceNotFoundException as ResourceNotFoundException$2, TagResourceCommand as TagResourceCommand$4, UntagResourceCommand as UntagResourceCommand$4, UpdateArchiveCommand, UpdateEventBusCommand } from "@aws-sdk/client-eventbridge";
|
|
30
30
|
import { CreateSecretCommand, DeleteSecretCommand, DescribeSecretCommand, RemoveRegionsFromReplicationCommand, ReplicateSecretToRegionsCommand, ResourceNotFoundException as ResourceNotFoundException$3, SecretsManagerClient, TagResourceCommand as TagResourceCommand$5, UntagResourceCommand as UntagResourceCommand$5, UpdateSecretCommand } from "@aws-sdk/client-secrets-manager";
|
|
31
31
|
import { AddTagsToResourceCommand, CreateAssociationCommand, DeleteAssociationCommand, DeleteParameterCommand, DescribeAssociationCommand, DescribeParametersCommand, GetParameterCommand, ListAssociationsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$2, ParameterNotFound, PutParameterCommand, RemoveTagsFromResourceCommand, SSMClient } from "@aws-sdk/client-ssm";
|
|
32
32
|
import { CloudFrontClient, CreateCloudFrontOriginAccessIdentityCommand, CreateDistributionCommand, CreateDistributionWithTagsCommand, CreateOriginAccessControlCommand, DeleteCloudFrontOriginAccessIdentityCommand, DeleteDistributionCommand, DeleteOriginAccessControlCommand, DistributionAlreadyExists, GetCloudFrontOriginAccessIdentityCommand, GetDistributionCommand, GetDistributionConfigCommand, GetOriginAccessControlCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$3, NoSuchCloudFrontOriginAccessIdentity, NoSuchDistribution, NoSuchOriginAccessControl, TagResourceCommand as TagResourceCommand$6, UntagResourceCommand as UntagResourceCommand$6, UpdateCloudFrontOriginAccessIdentityCommand, UpdateDistributionCommand, UpdateOriginAccessControlCommand } from "@aws-sdk/client-cloudfront";
|
|
33
33
|
import { CloudWatchClient, DeleteAlarmsCommand, DeleteAnomalyDetectorCommand, DescribeAlarmsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$4, PutAnomalyDetectorCommand, PutMetricAlarmCommand, ResourceNotFoundException as ResourceNotFoundException$4, TagResourceCommand as TagResourceCommand$7, UntagResourceCommand as UntagResourceCommand$7 } from "@aws-sdk/client-cloudwatch";
|
|
34
|
-
import { AssociateKmsKeyCommand, CloudWatchLogsClient, CreateLogGroupCommand, DeleteDataProtectionPolicyCommand, DeleteIndexPolicyCommand, DeleteLogGroupCommand, DeleteRetentionPolicyCommand, DescribeIndexPoliciesCommand, DescribeLogGroupsCommand, DisassociateKmsKeyCommand, GetDataProtectionPolicyCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$5, PutBearerTokenAuthenticationCommand, PutDataProtectionPolicyCommand, PutIndexPolicyCommand, PutLogGroupDeletionProtectionCommand, PutRetentionPolicyCommand, ResourceAlreadyExistsException, ResourceNotFoundException as ResourceNotFoundException$5, TagResourceCommand as TagResourceCommand$8, UntagResourceCommand as UntagResourceCommand$8 } from "@aws-sdk/client-cloudwatch-logs";
|
|
34
|
+
import { AssociateKmsKeyCommand, CloudWatchLogsClient, CreateDeliveryCommand, CreateLogGroupCommand, DeleteDataProtectionPolicyCommand, DeleteDeliveryCommand, DeleteDeliveryDestinationCommand, DeleteDeliveryDestinationPolicyCommand, DeleteDeliverySourceCommand, DeleteIndexPolicyCommand, DeleteLogGroupCommand, DeleteRetentionPolicyCommand, DescribeDeliveriesCommand, DescribeIndexPoliciesCommand, DescribeLogGroupsCommand, DisassociateKmsKeyCommand, GetDataProtectionPolicyCommand, GetDeliveryCommand, GetDeliveryDestinationCommand, GetDeliveryDestinationPolicyCommand, GetDeliverySourceCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$5, PutBearerTokenAuthenticationCommand, PutDataProtectionPolicyCommand, PutDeliveryDestinationCommand, PutDeliveryDestinationPolicyCommand, PutDeliverySourceCommand, PutIndexPolicyCommand, PutLogGroupDeletionProtectionCommand, PutRetentionPolicyCommand, ResourceAlreadyExistsException, ResourceNotFoundException as ResourceNotFoundException$5, TagResourceCommand as TagResourceCommand$8, UntagResourceCommand as UntagResourceCommand$8, UpdateDeliveryConfigurationCommand } from "@aws-sdk/client-cloudwatch-logs";
|
|
35
35
|
import { BedrockAgentCoreControlClient, CreateAgentRuntimeCommand, CreateEvaluatorCommand, DeleteAgentRuntimeCommand, DeleteEvaluatorCommand, GetAgentRuntimeCommand, GetBrowserCommand, GetCodeInterpreterCommand, GetEvaluatorCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$6, ResourceNotFoundException as ResourceNotFoundException$6, TagResourceCommand as TagResourceCommand$9, UntagResourceCommand as UntagResourceCommand$9, UpdateAgentRuntimeCommand, UpdateEvaluatorCommand } from "@aws-sdk/client-bedrock-agentcore-control";
|
|
36
36
|
import { AddTagsToResourceCommand as AddTagsToResourceCommand$1, CreateCacheClusterCommand, CreateCacheSubnetGroupCommand, DeleteCacheClusterCommand, DeleteCacheSubnetGroupCommand, DescribeCacheClustersCommand, DescribeCacheSubnetGroupsCommand, ElastiCacheClient, ListTagsForResourceCommand as ListTagsForResourceCommand$7, ModifyCacheClusterCommand, ModifyCacheSubnetGroupCommand, RemoveTagsFromResourceCommand as RemoveTagsFromResourceCommand$1 } from "@aws-sdk/client-elasticache";
|
|
37
37
|
import { ACMClient, AddTagsToCertificateCommand, DeleteCertificateCommand, DescribeCertificateCommand, ListTagsForCertificateCommand, RemoveTagsFromCertificateCommand, RequestCertificateCommand, ResourceNotFoundException as ResourceNotFoundException$7, UpdateCertificateOptionsCommand } from "@aws-sdk/client-acm";
|
|
@@ -6288,7 +6288,7 @@ async function readPublicAccessBlock(bucket) {
|
|
|
6288
6288
|
throw err;
|
|
6289
6289
|
}
|
|
6290
6290
|
}
|
|
6291
|
-
async function readTags$
|
|
6291
|
+
async function readTags$2(bucket) {
|
|
6292
6292
|
try {
|
|
6293
6293
|
const resp = await this.s3Client.send(new GetBucketTaggingCommand({ Bucket: bucket }));
|
|
6294
6294
|
return normalizeAwsTagsToCfn(resp.TagSet);
|
|
@@ -6721,7 +6721,7 @@ var S3BucketProvider = class {
|
|
|
6721
6721
|
return readPublicAccessBlock.call(this, bucket);
|
|
6722
6722
|
}
|
|
6723
6723
|
readTags(bucket) {
|
|
6724
|
-
return readTags$
|
|
6724
|
+
return readTags$2.call(this, bucket);
|
|
6725
6725
|
}
|
|
6726
6726
|
readLifecycle(bucket) {
|
|
6727
6727
|
return readLifecycle$1.call(this, bucket);
|
|
@@ -6803,6 +6803,76 @@ var S3BucketProvider = class {
|
|
|
6803
6803
|
}
|
|
6804
6804
|
};
|
|
6805
6805
|
|
|
6806
|
+
// src/provisioning/emulator-secure-transport.ts
|
|
6807
|
+
function isFalseOnly(value) {
|
|
6808
|
+
const values = Array.isArray(value) ? value : [value];
|
|
6809
|
+
if (values.length !== 1) return false;
|
|
6810
|
+
const v = values[0];
|
|
6811
|
+
return v === false || typeof v === "string" && v.toLowerCase() === "false";
|
|
6812
|
+
}
|
|
6813
|
+
function isInsecureTransportDeny(statement) {
|
|
6814
|
+
if (statement === null || typeof statement !== "object" || Array.isArray(statement)) return false;
|
|
6815
|
+
const s = statement;
|
|
6816
|
+
if (s["Effect"] !== "Deny") return false;
|
|
6817
|
+
const condition = s["Condition"];
|
|
6818
|
+
if (condition === null || typeof condition !== "object" || Array.isArray(condition)) return false;
|
|
6819
|
+
for (const [operator, block] of Object.entries(condition)) {
|
|
6820
|
+
if (operator !== "Bool" && operator !== "BoolIfExists") continue;
|
|
6821
|
+
if (block === null || typeof block !== "object" || Array.isArray(block)) continue;
|
|
6822
|
+
for (const [key, value] of Object.entries(block)) if (key.toLowerCase() === "aws:securetransport" && isFalseOnly(value)) return true;
|
|
6823
|
+
}
|
|
6824
|
+
return false;
|
|
6825
|
+
}
|
|
6826
|
+
function withoutInsecureTransportDenies(document) {
|
|
6827
|
+
let parsed = document;
|
|
6828
|
+
if (typeof document === "string") try {
|
|
6829
|
+
parsed = JSON.parse(document);
|
|
6830
|
+
} catch {
|
|
6831
|
+
return {
|
|
6832
|
+
document,
|
|
6833
|
+
dropped: 0
|
|
6834
|
+
};
|
|
6835
|
+
}
|
|
6836
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) return {
|
|
6837
|
+
document,
|
|
6838
|
+
dropped: 0
|
|
6839
|
+
};
|
|
6840
|
+
const statements = parsed["Statement"];
|
|
6841
|
+
if (!Array.isArray(statements)) return {
|
|
6842
|
+
document,
|
|
6843
|
+
dropped: 0
|
|
6844
|
+
};
|
|
6845
|
+
const kept = statements.filter((statement) => !isInsecureTransportDeny(statement));
|
|
6846
|
+
const dropped = statements.length - kept.length;
|
|
6847
|
+
if (dropped === 0 || kept.length === 0) return {
|
|
6848
|
+
document,
|
|
6849
|
+
dropped: 0
|
|
6850
|
+
};
|
|
6851
|
+
return {
|
|
6852
|
+
document: {
|
|
6853
|
+
...parsed,
|
|
6854
|
+
Statement: kept
|
|
6855
|
+
},
|
|
6856
|
+
dropped
|
|
6857
|
+
};
|
|
6858
|
+
}
|
|
6859
|
+
function sentPolicyDocument(document) {
|
|
6860
|
+
if (!awsEndpointOverrideActive()) return document;
|
|
6861
|
+
return withoutInsecureTransportDenies(document).document;
|
|
6862
|
+
}
|
|
6863
|
+
function policyDocumentForEmulator(document, resourceType, logicalId) {
|
|
6864
|
+
if (!awsEndpointOverrideActive()) return document;
|
|
6865
|
+
const { document: sent, dropped } = withoutInsecureTransportDenies(document);
|
|
6866
|
+
if (dropped === 0) return document;
|
|
6867
|
+
const what = dropped === 1 ? "a Deny statement" : `${dropped} Deny statements`;
|
|
6868
|
+
getLogger().warn(safeMsg`--aws-emulator: left ${what} on aws:SecureTransport out of ${logicalId} (${resourceType}): AWS Emulator does not evaluate that key, so the statement would deny every request; on AWS it never matches an HTTPS request. The state record keeps the templated policy.`);
|
|
6869
|
+
return sent;
|
|
6870
|
+
}
|
|
6871
|
+
function serializeResourcePolicy(document, resourceType, logicalId) {
|
|
6872
|
+
const sent = policyDocumentForEmulator(document, resourceType, logicalId);
|
|
6873
|
+
return typeof sent === "string" ? sent : JSON.stringify(sent);
|
|
6874
|
+
}
|
|
6875
|
+
|
|
6806
6876
|
// src/provisioning/policy-document-content.ts
|
|
6807
6877
|
const MASK = "***";
|
|
6808
6878
|
const PERMANENT_CDKD_CODES = /* @__PURE__ */ new Set(["ROLLBACK_SECRET_TOKEN_SCAN_MISMATCH"]);
|
|
@@ -6985,7 +7055,7 @@ var S3BucketPolicyProvider = class {
|
|
|
6985
7055
|
if (!bucketName) throw new ProvisioningError(`Bucket is required for S3 bucket policy ${logicalId}`, resourceType, logicalId);
|
|
6986
7056
|
if (!policyDocument) throw new ProvisioningError(`PolicyDocument is required for S3 bucket policy ${logicalId}`, resourceType, logicalId);
|
|
6987
7057
|
const mask = context?.maskSecrets ?? ((t) => t);
|
|
6988
|
-
const policyDoc =
|
|
7058
|
+
const policyDoc = serializeResourcePolicy(policyDocument, resourceType, logicalId);
|
|
6989
7059
|
let existing;
|
|
6990
7060
|
try {
|
|
6991
7061
|
existing = await this.probeExistingPolicy(bucketName);
|
|
@@ -7016,7 +7086,7 @@ var S3BucketPolicyProvider = class {
|
|
|
7016
7086
|
if (!bucketName) throw new ProvisioningError(`Bucket is required for S3 bucket policy ${logicalId}`, resourceType, logicalId, physicalId);
|
|
7017
7087
|
if (!policyDocument) throw new ProvisioningError(`PolicyDocument is required for S3 bucket policy ${logicalId}`, resourceType, logicalId, physicalId);
|
|
7018
7088
|
try {
|
|
7019
|
-
const policyDoc =
|
|
7089
|
+
const policyDoc = serializeResourcePolicy(policyDocument, resourceType, logicalId);
|
|
7020
7090
|
await this.s3Client.send(new PutBucketPolicyCommand({
|
|
7021
7091
|
Bucket: bucketName,
|
|
7022
7092
|
Policy: policyDoc
|
|
@@ -7129,7 +7199,7 @@ var S3BucketPolicyProvider = class {
|
|
|
7129
7199
|
return false;
|
|
7130
7200
|
}
|
|
7131
7201
|
for (const bag of attempts) {
|
|
7132
|
-
const attempted = bag["PolicyDocument"];
|
|
7202
|
+
const attempted = sentPolicyDocument(bag["PolicyDocument"]);
|
|
7133
7203
|
if (bag["Bucket"] !== bucketName || attempted == null) continue;
|
|
7134
7204
|
if (await this.livePolicyKey(livePolicy, attempted) === policyContentKey(attempted)) {
|
|
7135
7205
|
this.logger.info(safeMsg`S3 bucket policy ${logicalId}: the policy on bucket ${bucketShown} is the one this stack's rollback journal shows an earlier deploy of it attempted; replacing it`);
|
|
@@ -7607,7 +7677,7 @@ var SQSQueuePolicyProvider = class {
|
|
|
7607
7677
|
if (!policyDocument) throw new ProvisioningError(`PolicyDocument is required for SQS queue policy ${logicalId}`, resourceType, logicalId);
|
|
7608
7678
|
const applied = [];
|
|
7609
7679
|
try {
|
|
7610
|
-
const policyDoc =
|
|
7680
|
+
const policyDoc = serializeResourcePolicy(policyDocument, resourceType, logicalId);
|
|
7611
7681
|
for (const queueUrl of queues) {
|
|
7612
7682
|
this.logger.debug(`Setting policy for queue: ${queueUrl}`);
|
|
7613
7683
|
await this.sqsClient.send(new SetQueueAttributesCommand({
|
|
@@ -7637,7 +7707,7 @@ var SQSQueuePolicyProvider = class {
|
|
|
7637
7707
|
const listedOnly = await this.queuesCarryingDocument(listedQueues(previousProperties).filter((url) => !written.includes(url) && !queues.includes(url)), previousProperties["PolicyDocument"], logicalId);
|
|
7638
7708
|
const removed = [...written.filter((url) => !queues.includes(url)), ...listedOnly];
|
|
7639
7709
|
try {
|
|
7640
|
-
const policyDoc =
|
|
7710
|
+
const policyDoc = serializeResourcePolicy(policyDocument, resourceType, logicalId);
|
|
7641
7711
|
for (const queueUrl of queues) {
|
|
7642
7712
|
this.logger.debug(`Updating policy for queue: ${queueUrl}`);
|
|
7643
7713
|
await this.sqsClient.send(new SetQueueAttributesCommand({
|
|
@@ -7692,7 +7762,7 @@ var SQSQueuePolicyProvider = class {
|
|
|
7692
7762
|
leftInPlace: QUEUE_POLICY_NOT_COMPARED_LEFT_REASON
|
|
7693
7763
|
};
|
|
7694
7764
|
}
|
|
7695
|
-
const reference = policyContentKey(attempted.document);
|
|
7765
|
+
const reference = policyContentKey(sentPolicyDocument(attempted.document));
|
|
7696
7766
|
const fresh = new Set((context.writtenThisRun ?? []).flatMap((r) => r.resourceType === resourceType && typeof r.physicalId === "string" ? [...recordedQueues(r.physicalId, r.attributes !== null && typeof r.attributes === "object" ? r.attributes : void 0), ...listedQueues(r.properties !== null && typeof r.properties === "object" ? r.properties : {})] : []));
|
|
7697
7767
|
let unreadable = false;
|
|
7698
7768
|
let mismatched = false;
|
|
@@ -7757,7 +7827,7 @@ var SQSQueuePolicyProvider = class {
|
|
|
7757
7827
|
async queuesCarryingDocument(candidates, document, logicalId) {
|
|
7758
7828
|
const carrying = [];
|
|
7759
7829
|
if (candidates.length === 0) return carrying;
|
|
7760
|
-
const reference = policyReference(document);
|
|
7830
|
+
const reference = policyReference(sentPolicyDocument(document));
|
|
7761
7831
|
if (reference === void 0) {
|
|
7762
7832
|
this.logger.warn(safeMsg`The queues ${candidates.join(", ")} listed by ${logicalId} were not checked (no policy document recorded to compare with) and may still carry its policy.`);
|
|
7763
7833
|
return carrying;
|
|
@@ -8740,7 +8810,7 @@ var SNSTopicPolicyProvider = class {
|
|
|
8740
8810
|
const policyDocument = properties["PolicyDocument"];
|
|
8741
8811
|
if (!topics || topics.length === 0) throw new ProvisioningError(`Topics is required for SNS topic policy ${logicalId}`, resourceType, logicalId);
|
|
8742
8812
|
if (!policyDocument) throw new ProvisioningError(`PolicyDocument is required for SNS topic policy ${logicalId}`, resourceType, logicalId);
|
|
8743
|
-
const policyDoc =
|
|
8813
|
+
const policyDoc = serializeResourcePolicy(policyDocument, resourceType, logicalId);
|
|
8744
8814
|
const applied = [];
|
|
8745
8815
|
try {
|
|
8746
8816
|
for (const topicArn of topics) {
|
|
@@ -8764,7 +8834,7 @@ var SNSTopicPolicyProvider = class {
|
|
|
8764
8834
|
const policyDocument = properties["PolicyDocument"];
|
|
8765
8835
|
if (!topics || topics.length === 0) throw new ProvisioningError(`Topics is required for SNS topic policy ${logicalId}`, resourceType, logicalId, physicalId);
|
|
8766
8836
|
if (!policyDocument) throw new ProvisioningError(`PolicyDocument is required for SNS topic policy ${logicalId}`, resourceType, logicalId, physicalId);
|
|
8767
|
-
const policyDoc =
|
|
8837
|
+
const policyDoc = serializeResourcePolicy(policyDocument, resourceType, logicalId);
|
|
8768
8838
|
const mask = context?.maskSecrets ?? ((t) => t);
|
|
8769
8839
|
const written = splitTopicArns(physicalId);
|
|
8770
8840
|
const listedOnly = await this.topicsCarryingDocument(listedTopics(previousProperties).filter((arn) => !written.includes(arn) && !topics.includes(arn)), previousProperties["PolicyDocument"], logicalId, mask);
|
|
@@ -8827,7 +8897,7 @@ var SNSTopicPolicyProvider = class {
|
|
|
8827
8897
|
};
|
|
8828
8898
|
}
|
|
8829
8899
|
const document = attempted.document;
|
|
8830
|
-
const reference = policyContentKey(document);
|
|
8900
|
+
const reference = policyContentKey(sentPolicyDocument(document));
|
|
8831
8901
|
const fresh = new Set((context.writtenThisRun ?? []).flatMap((r) => r.resourceType === resourceType && typeof r.physicalId === "string" ? [...splitTopicArns(r.physicalId), ...listedTopics(r.properties !== null && typeof r.properties === "object" ? r.properties : {})] : []));
|
|
8832
8902
|
let unreadable = false;
|
|
8833
8903
|
let mismatched = false;
|
|
@@ -8903,9 +8973,10 @@ var SNSTopicPolicyProvider = class {
|
|
|
8903
8973
|
}
|
|
8904
8974
|
async topicsCarryingDocument(candidates, document, logicalId, mask) {
|
|
8905
8975
|
if (candidates.length === 0) return [];
|
|
8976
|
+
const sent = sentPolicyDocument(document);
|
|
8906
8977
|
let reference;
|
|
8907
|
-
if (typeof
|
|
8908
|
-
else if (
|
|
8978
|
+
if (typeof sent === "string" && sent.length > 0) reference = canonicalPolicy(sent);
|
|
8979
|
+
else if (sent !== null && typeof sent === "object") reference = canonicalJson$1(sent);
|
|
8909
8980
|
if (reference === void 0) {
|
|
8910
8981
|
this.logger.warn(mask(safeMsg`The topics ${candidates.join(", ")} listed by ${logicalId} were not checked (no policy document recorded to compare with) and may still carry its policy.`));
|
|
8911
8982
|
return [];
|
|
@@ -12409,7 +12480,7 @@ function recordedFunctionNameSpelling(recorded, liveFunctionArn) {
|
|
|
12409
12480
|
return liveFunctionArn;
|
|
12410
12481
|
}
|
|
12411
12482
|
function projectOntoRecorded(recorded, live) {
|
|
12412
|
-
if (!isPlainRecord$
|
|
12483
|
+
if (!isPlainRecord$4(recorded) || !isPlainRecord$4(live)) return live;
|
|
12413
12484
|
const out = {};
|
|
12414
12485
|
for (const key of Object.keys(recorded)) {
|
|
12415
12486
|
if (!Object.prototype.hasOwnProperty.call(live, key)) continue;
|
|
@@ -12417,7 +12488,7 @@ function projectOntoRecorded(recorded, live) {
|
|
|
12417
12488
|
}
|
|
12418
12489
|
return out;
|
|
12419
12490
|
}
|
|
12420
|
-
function isPlainRecord$
|
|
12491
|
+
function isPlainRecord$4(value) {
|
|
12421
12492
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
12422
12493
|
}
|
|
12423
12494
|
const LAMBDA_WEB_MAX_POLL_ATTEMPTS = 1200;
|
|
@@ -12625,15 +12696,15 @@ var LambdaWebFunctionRevisionProvider = class {
|
|
|
12625
12696
|
const functionName = properties["FunctionName"];
|
|
12626
12697
|
if (typeof functionName !== "string" || functionName === "") fail("FunctionName must be a non-empty string");
|
|
12627
12698
|
const build = properties["BuildConfig"];
|
|
12628
|
-
if (!isPlainRecord$
|
|
12699
|
+
if (!isPlainRecord$4(build)) fail("BuildConfig must be an object");
|
|
12629
12700
|
const code = build["CodeConfig"];
|
|
12630
|
-
const s3 = isPlainRecord$
|
|
12631
|
-
if (!isPlainRecord$
|
|
12701
|
+
const s3 = isPlainRecord$4(code) ? code["S3Object"] : void 0;
|
|
12702
|
+
if (!isPlainRecord$4(s3) || typeof s3["Bucket"] !== "string" || typeof s3["Key"] !== "string") fail("BuildConfig.CodeConfig.S3Object.Bucket and .Key are required strings");
|
|
12632
12703
|
const runtimeConfig = build["RuntimeConfig"];
|
|
12633
|
-
const runtime = isPlainRecord$
|
|
12704
|
+
const runtime = isPlainRecord$4(runtimeConfig) ? runtimeConfig["Runtime"] : void 0;
|
|
12634
12705
|
if (typeof runtime !== "string") fail("BuildConfig.RuntimeConfig.Runtime is a required string");
|
|
12635
12706
|
const service = properties["ServiceConfig"];
|
|
12636
|
-
if (!isPlainRecord$
|
|
12707
|
+
if (!isPlainRecord$4(service) || typeof service["ExecutionRoleArn"] !== "string") fail("ServiceConfig.ExecutionRoleArn is a required string");
|
|
12637
12708
|
const s3Object = s3;
|
|
12638
12709
|
const input = {
|
|
12639
12710
|
functionName,
|
|
@@ -12672,15 +12743,15 @@ var LambdaWebFunctionRevisionProvider = class {
|
|
|
12672
12743
|
if (typeof service["EgressNetworkConnectorArn"] === "string") out.egressNetworkConnectorArn = service["EgressNetworkConnectorArn"];
|
|
12673
12744
|
const env = service["EnvironmentVariables"];
|
|
12674
12745
|
if (env !== void 0) {
|
|
12675
|
-
if (isPlainRecord$
|
|
12746
|
+
if (isPlainRecord$4(env) && Object.values(env).every((v) => typeof v === "string")) out.environmentVariables = { ...env };
|
|
12676
12747
|
else if (context?.replayingState) this.logger.warn(safeMsg`ServiceConfig.EnvironmentVariables must be an object of string values; omitting it while replaying a state record`);
|
|
12677
12748
|
else fail("ServiceConfig.EnvironmentVariables must be an object of string values");
|
|
12678
12749
|
}
|
|
12679
12750
|
const telemetry = service["TelemetryConfig"];
|
|
12680
|
-
if (isPlainRecord$
|
|
12751
|
+
if (isPlainRecord$4(telemetry)) {
|
|
12681
12752
|
const telemetryConfig = {};
|
|
12682
12753
|
const logging = telemetry["LoggingConfig"];
|
|
12683
|
-
if (isPlainRecord$
|
|
12754
|
+
if (isPlainRecord$4(logging)) {
|
|
12684
12755
|
const loggingConfig = {};
|
|
12685
12756
|
if (typeof logging["LogGroup"] === "string") loggingConfig.logGroup = logging["LogGroup"];
|
|
12686
12757
|
if (typeof logging["ApplicationLogLevel"] === "string") loggingConfig.applicationLogLevel = logging["ApplicationLogLevel"];
|
|
@@ -13012,7 +13083,7 @@ var LambdaWebFunctionEndpointProvider = class {
|
|
|
13012
13083
|
}
|
|
13013
13084
|
return fail(message);
|
|
13014
13085
|
};
|
|
13015
|
-
if (!isPlainRecord$
|
|
13086
|
+
if (!isPlainRecord$4(value)) return bad(`${blockKey} must be an object`);
|
|
13016
13087
|
if (value[memberKey] === void 0) return { present: false };
|
|
13017
13088
|
const n = coerceCfnInteger(value[memberKey]);
|
|
13018
13089
|
if (n === void 0) return bad(`${blockKey}.${memberKey} must be an integer`);
|
|
@@ -13081,7 +13152,7 @@ function readRevisionWeights(value, fail) {
|
|
|
13081
13152
|
if (value === void 0) return void 0;
|
|
13082
13153
|
if (!Array.isArray(value)) return fail("RevisionWeights must be a list");
|
|
13083
13154
|
return value.map((entry, i) => {
|
|
13084
|
-
if (!isPlainRecord$
|
|
13155
|
+
if (!isPlainRecord$4(entry) || typeof entry["RevisionId"] !== "string") return fail(`RevisionWeights[${i}].RevisionId must be a string`);
|
|
13085
13156
|
const weight = coerceCfnInteger(entry["Weight"]);
|
|
13086
13157
|
if (weight === void 0) return fail(`RevisionWeights[${i}].Weight must be an integer`);
|
|
13087
13158
|
return {
|
|
@@ -13179,11 +13250,7 @@ var LambdaNetworkConnectorProvider = class {
|
|
|
13179
13250
|
const tagList = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, void 0, "Tags", DBPROXY_TAGS_WHAT, DBPROXY_TAG_OPTIONS);
|
|
13180
13251
|
const name = typeof properties["Name"] === "string" && properties["Name"] !== "" ? properties["Name"] : generatedNameFor("AWS::Lambda::NetworkConnector", logicalId);
|
|
13181
13252
|
const vpc = this.readVpcEgress(properties, logicalId, resourceType, void 0);
|
|
13182
|
-
|
|
13183
|
-
const message = elasticIpRefusalMessage(logicalId, "create");
|
|
13184
|
-
if (context?.replayingState !== true) throw new ProvisioningError(message, resourceType, logicalId);
|
|
13185
|
-
this.logger.warn(safeMsg`${message} Proceeding without it: this create replays a cdkd state record.`);
|
|
13186
|
-
}
|
|
13253
|
+
const elasticIp = this.readElasticIp(properties, logicalId, resourceType, void 0, context);
|
|
13187
13254
|
const createToken = acquireIdempotencyToken({
|
|
13188
13255
|
scope: "CreateNetworkConnector",
|
|
13189
13256
|
logicalId
|
|
@@ -13194,7 +13261,8 @@ var LambdaNetworkConnectorProvider = class {
|
|
|
13194
13261
|
SubnetIds: vpc.SubnetIds,
|
|
13195
13262
|
SecurityGroupIds: vpc.SecurityGroupIds,
|
|
13196
13263
|
NetworkProtocol: vpc.NetworkProtocol,
|
|
13197
|
-
AssociatedComputeResourceTypes: vpc.AssociatedComputeResourceTypes
|
|
13264
|
+
AssociatedComputeResourceTypes: vpc.AssociatedComputeResourceTypes,
|
|
13265
|
+
...elasticIp !== void 0 ? { ElasticIpConfiguration: elasticIp } : {}
|
|
13198
13266
|
} },
|
|
13199
13267
|
ClientToken: createToken.value
|
|
13200
13268
|
};
|
|
@@ -13223,12 +13291,7 @@ var LambdaNetworkConnectorProvider = class {
|
|
|
13223
13291
|
assertRegionMatch(context?.expectedRegion ? await this.client.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
13224
13292
|
refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId, "Tags", DBPROXY_TAGS_WHAT, DBPROXY_TAG_OPTIONS);
|
|
13225
13293
|
const vpc = this.readVpcEgress(properties, logicalId, resourceType, physicalId);
|
|
13226
|
-
const
|
|
13227
|
-
if (desiredElasticIp !== void 0 && !isDeepStrictEqual(desiredElasticIp, declaredElasticIp(previousProperties))) {
|
|
13228
|
-
const message = elasticIpRefusalMessage(logicalId, "update");
|
|
13229
|
-
if (context?.replayingState !== true && context?.desiredFromAwsReadback !== true) throw new ProvisioningError(message, resourceType, logicalId, physicalId);
|
|
13230
|
-
this.logger.warn(safeMsg`${message} Proceeding without it: this update restores a recorded or read-back configuration.`);
|
|
13231
|
-
}
|
|
13294
|
+
const elasticIp = elasticIpForUpdate(this.readElasticIp(properties, logicalId, resourceType, physicalId, context), properties, previousProperties);
|
|
13232
13295
|
const updateRole = this.readOperatorRole(properties, logicalId, resourceType, physicalId, context);
|
|
13233
13296
|
if (typeof previousProperties["OperatorRole"] === "string" && properties["OperatorRole"] === void 0 && context?.replayingState !== true && context?.desiredFromAwsReadback !== true) throw new ProvisioningError(`OperatorRole cannot be removed in place for Lambda network connector ${logicalIdShown(logicalId)}: cdkd sends no role when the template declares none, so the current one would stay attached. Set it to another role, or replace the connector (change its Name).`, resourceType, logicalId, physicalId);
|
|
13234
13297
|
try {
|
|
@@ -13240,7 +13303,8 @@ var LambdaNetworkConnectorProvider = class {
|
|
|
13240
13303
|
SubnetIds: vpc.SubnetIds,
|
|
13241
13304
|
SecurityGroupIds: vpc.SecurityGroupIds,
|
|
13242
13305
|
NetworkProtocol: vpc.NetworkProtocol,
|
|
13243
|
-
AssociatedComputeResourceTypes: vpc.AssociatedComputeResourceTypes
|
|
13306
|
+
AssociatedComputeResourceTypes: vpc.AssociatedComputeResourceTypes,
|
|
13307
|
+
...elasticIp !== void 0 ? { ElasticIpConfiguration: elasticIp } : {}
|
|
13244
13308
|
} },
|
|
13245
13309
|
...updateRole !== void 0 ? { OperatorRole: updateRole } : {},
|
|
13246
13310
|
ClientToken: randomUUID()
|
|
@@ -13310,6 +13374,7 @@ var LambdaNetworkConnectorProvider = class {
|
|
|
13310
13374
|
if (vpc.SecurityGroupIds !== void 0) VpcEgressConfiguration["SecurityGroupIds"] = [...vpc.SecurityGroupIds];
|
|
13311
13375
|
if (vpc.NetworkProtocol !== void 0) VpcEgressConfiguration["NetworkProtocol"] = vpc.NetworkProtocol;
|
|
13312
13376
|
if (vpc.AssociatedComputeResourceTypes !== void 0) VpcEgressConfiguration["AssociatedComputeResourceTypes"] = [...vpc.AssociatedComputeResourceTypes];
|
|
13377
|
+
if (vpc.ElasticIpConfiguration?.Type !== void 0) VpcEgressConfiguration["ElasticIpConfiguration"] = { Type: vpc.ElasticIpConfiguration.Type };
|
|
13313
13378
|
result["Configuration"] = { VpcEgressConfiguration };
|
|
13314
13379
|
}
|
|
13315
13380
|
let tags;
|
|
@@ -13329,13 +13394,29 @@ var LambdaNetworkConnectorProvider = class {
|
|
|
13329
13394
|
"Configuration.VpcEgressConfiguration.AssociatedComputeResourceTypes"
|
|
13330
13395
|
];
|
|
13331
13396
|
}
|
|
13397
|
+
async canonicalizeDriftPair(_resourceType, baseline, aws) {
|
|
13398
|
+
const b = declaredElasticIp(baseline);
|
|
13399
|
+
const a = declaredElasticIp(aws);
|
|
13400
|
+
if (isNoneElasticIp(b) && a === void 0) return {
|
|
13401
|
+
baseline: withoutElasticIp(baseline),
|
|
13402
|
+
aws
|
|
13403
|
+
};
|
|
13404
|
+
if (isNoneElasticIp(a) && b === void 0) return {
|
|
13405
|
+
baseline,
|
|
13406
|
+
aws: withoutElasticIp(aws)
|
|
13407
|
+
};
|
|
13408
|
+
return {
|
|
13409
|
+
baseline,
|
|
13410
|
+
aws
|
|
13411
|
+
};
|
|
13412
|
+
}
|
|
13332
13413
|
readVpcEgress(properties, logicalId, resourceType, physicalId) {
|
|
13333
13414
|
const fail = (message) => {
|
|
13334
13415
|
throw new ProvisioningError(`${message} for Lambda network connector ${logicalIdShown(logicalId)}`, resourceType, logicalId, physicalId);
|
|
13335
13416
|
};
|
|
13336
13417
|
const config = properties["Configuration"];
|
|
13337
|
-
const vpc = isPlainRecord$
|
|
13338
|
-
if (!isPlainRecord$
|
|
13418
|
+
const vpc = isPlainRecord$4(config) ? config["VpcEgressConfiguration"] : void 0;
|
|
13419
|
+
if (!isPlainRecord$4(vpc)) return fail("Configuration.VpcEgressConfiguration must be an object");
|
|
13339
13420
|
const strings = (key) => {
|
|
13340
13421
|
const value = vpc[key];
|
|
13341
13422
|
if (value === void 0) return void 0;
|
|
@@ -13354,6 +13435,17 @@ var LambdaNetworkConnectorProvider = class {
|
|
|
13354
13435
|
AssociatedComputeResourceTypes: types
|
|
13355
13436
|
};
|
|
13356
13437
|
}
|
|
13438
|
+
readElasticIp(properties, logicalId, resourceType, physicalId, context) {
|
|
13439
|
+
const eip = declaredElasticIp(properties);
|
|
13440
|
+
if (eip === void 0) return void 0;
|
|
13441
|
+
if (isPlainRecord$4(eip) && typeof eip["Type"] === "string" && ELASTIC_IP_TYPES.has(eip["Type"])) return { Type: eip["Type"] };
|
|
13442
|
+
const message = `Configuration.VpcEgressConfiguration.${ELASTIC_IP_KEY} must be an object whose Type is ${[...ELASTIC_IP_TYPES].join(" or ")} for Lambda network connector ${logicalIdShown(logicalId)}`;
|
|
13443
|
+
if (context?.replayingState === true || context !== void 0 && "desiredFromAwsReadback" in context && context.desiredFromAwsReadback === true) {
|
|
13444
|
+
this.logger.warn(safeMsg`${message}; omitting it while applying a state-borne bag`);
|
|
13445
|
+
return;
|
|
13446
|
+
}
|
|
13447
|
+
throw new ProvisioningError(message, resourceType, logicalId, physicalId);
|
|
13448
|
+
}
|
|
13357
13449
|
readOperatorRole(properties, logicalId, resourceType, physicalId, context) {
|
|
13358
13450
|
const role = properties["OperatorRole"];
|
|
13359
13451
|
if (role === void 0 || typeof role === "string") return role;
|
|
@@ -13428,13 +13520,33 @@ var LambdaNetworkConnectorProvider = class {
|
|
|
13428
13520
|
}
|
|
13429
13521
|
};
|
|
13430
13522
|
const ELASTIC_IP_KEY = "ElasticIpConfiguration";
|
|
13523
|
+
const ELASTIC_IP_TYPES = /* @__PURE__ */ new Set(["None", "ServiceManaged"]);
|
|
13431
13524
|
function declaredElasticIp(properties) {
|
|
13432
13525
|
const config = properties["Configuration"];
|
|
13433
|
-
const vpc = isPlainRecord$
|
|
13434
|
-
return isPlainRecord$
|
|
13526
|
+
const vpc = isPlainRecord$4(config) ? config["VpcEgressConfiguration"] : void 0;
|
|
13527
|
+
return isPlainRecord$4(vpc) ? vpc[ELASTIC_IP_KEY] : void 0;
|
|
13528
|
+
}
|
|
13529
|
+
function isNoneElasticIp(value) {
|
|
13530
|
+
return isPlainRecord$4(value) && value["Type"] === "None";
|
|
13531
|
+
}
|
|
13532
|
+
function withoutElasticIp(properties) {
|
|
13533
|
+
const config = properties["Configuration"];
|
|
13534
|
+
const { [ELASTIC_IP_KEY]: _dropped, ...rest } = config["VpcEgressConfiguration"];
|
|
13535
|
+
const [configKey, vpcKey] = ["Configuration", "VpcEgressConfiguration"];
|
|
13536
|
+
return {
|
|
13537
|
+
...properties,
|
|
13538
|
+
[configKey]: {
|
|
13539
|
+
...config,
|
|
13540
|
+
[vpcKey]: rest
|
|
13541
|
+
}
|
|
13542
|
+
};
|
|
13435
13543
|
}
|
|
13436
|
-
function
|
|
13437
|
-
|
|
13544
|
+
function elasticIpForUpdate(fromDesired, properties, previousProperties) {
|
|
13545
|
+
if (fromDesired !== void 0 || declaredElasticIp(properties) !== void 0) return fromDesired;
|
|
13546
|
+
const previous = declaredElasticIp(previousProperties);
|
|
13547
|
+
if (previous === void 0) return void 0;
|
|
13548
|
+
if (isPlainRecord$4(previous) && previous["Type"] === "None") return void 0;
|
|
13549
|
+
return { Type: "None" };
|
|
13438
13550
|
}
|
|
13439
13551
|
var TerminalConnectorStateError = class extends Error {};
|
|
13440
13552
|
function buildAttributes$2(resp) {
|
|
@@ -13822,6 +13934,20 @@ function sameJsonValue(a, b) {
|
|
|
13822
13934
|
const toJson = (v) => v === void 0 ? void 0 : JSON.parse(JSON.stringify(v));
|
|
13823
13935
|
return isDeepStrictEqual(toJson(a), toJson(b));
|
|
13824
13936
|
}
|
|
13937
|
+
function gsiUnsendableChangeRefusal(previousGsis, desiredGsis, logicalId) {
|
|
13938
|
+
const asEntries = (value) => value === void 0 || value === null ? [] : Array.isArray(value) ? value.filter((entry) => typeof entry === "object" && entry !== null && Boolean(entry["IndexName"])) : void 0;
|
|
13939
|
+
const prev = asEntries(previousGsis);
|
|
13940
|
+
const desired = asEntries(desiredGsis);
|
|
13941
|
+
if (prev === void 0 || desired === void 0) return void 0;
|
|
13942
|
+
const prevByName = new Map(prev.map((g) => [String(g["IndexName"]), g]));
|
|
13943
|
+
for (const gsi of desired) {
|
|
13944
|
+
const name = String(gsi["IndexName"]);
|
|
13945
|
+
const before = prevByName.get(name);
|
|
13946
|
+
if (before === void 0) {
|
|
13947
|
+
if (!gsi["KeySchema"]) return `GlobalSecondaryIndex ${name} on DynamoDB table ${logicalId} is missing KeySchema`;
|
|
13948
|
+
} else if (!sameJsonValue(before["KeySchema"], gsi["KeySchema"]) || !sameJsonValue(before["Projection"], gsi["Projection"])) return `GlobalSecondaryIndex ${name} on DynamoDB table ${logicalId} changed its KeySchema or Projection, which DynamoDB cannot modify in place. Rename the index (so it is dropped and re-created) or replace the table.`;
|
|
13949
|
+
}
|
|
13950
|
+
}
|
|
13825
13951
|
function indexDeclares(desired, key, bagInformative) {
|
|
13826
13952
|
if (!bagInformative) return true;
|
|
13827
13953
|
const value = desired?.[key];
|
|
@@ -15301,6 +15427,11 @@ function refuseUnsendableUpdate(logicalId, physicalId, resourceType, properties,
|
|
|
15301
15427
|
const sseChanged = JSON.stringify(properties["SSESpecification"]) !== JSON.stringify(previousProperties["SSESpecification"]);
|
|
15302
15428
|
const sseRefusal = sseChanged ? sseSpecificationRefusal(properties["SSESpecification"], logicalId) : void 0;
|
|
15303
15429
|
if (sseRefusal !== void 0 && context?.replayingState !== true && context?.desiredFromAwsReadback !== true) throw new ProvisioningError(`${maskSecrets(sseRefusal)}. Nothing was applied to the table; fix the template value`, resourceType, logicalId, physicalId);
|
|
15430
|
+
if (JSON.stringify(properties["TimeToLiveSpecification"]) !== JSON.stringify(previousProperties["TimeToLiveSpecification"])) this.assertNoActiveTtlAttributeNameChange(logicalId, resourceType, physicalId, properties["TimeToLiveSpecification"], previousProperties["TimeToLiveSpecification"]);
|
|
15431
|
+
if (JSON.stringify(properties["GlobalSecondaryIndexes"]) !== JSON.stringify(previousProperties["GlobalSecondaryIndexes"])) {
|
|
15432
|
+
const gsiRefusal = gsiUnsendableChangeRefusal(previousProperties["GlobalSecondaryIndexes"], properties["GlobalSecondaryIndexes"], logicalId);
|
|
15433
|
+
if (gsiRefusal !== void 0) throw new ProvisioningError(`${maskSecrets(gsiRefusal)} Nothing was applied to the table.`, resourceType, logicalId, physicalId);
|
|
15434
|
+
}
|
|
15304
15435
|
return {
|
|
15305
15436
|
deletionProtectionChanged,
|
|
15306
15437
|
sseChanged,
|
|
@@ -15496,7 +15627,6 @@ async function applyIndexUpdates(logicalId, physicalId, resourceType, properties
|
|
|
15496
15627
|
await this.applyPointInTimeRecovery(physicalId, properties["PointInTimeRecoverySpecification"], previousProperties["PointInTimeRecoverySpecification"], maskSecrets);
|
|
15497
15628
|
}
|
|
15498
15629
|
if (JSON.stringify(properties["TimeToLiveSpecification"]) !== JSON.stringify(previousProperties["TimeToLiveSpecification"])) {
|
|
15499
|
-
this.assertNoActiveTtlAttributeNameChange(logicalId, resourceType, physicalId, properties["TimeToLiveSpecification"], previousProperties["TimeToLiveSpecification"]);
|
|
15500
15630
|
markUnsettled("TimeToLiveSpecification");
|
|
15501
15631
|
await this.applyTimeToLive(physicalId, properties["TimeToLiveSpecification"], previousProperties["TimeToLiveSpecification"], "update", {
|
|
15502
15632
|
logicalId,
|
|
@@ -15551,13 +15681,6 @@ async function update$35(logicalId, physicalId, resourceType, properties, previo
|
|
|
15551
15681
|
warn(`${vectorMessage}; that change was not applied`);
|
|
15552
15682
|
}
|
|
15553
15683
|
let latestStreamArn = table?.LatestStreamArn;
|
|
15554
|
-
if (table?.TableArn) await this.applyTagDiff(table.TableArn, resourceType, logicalId, previousProperties["Tags"], properties["Tags"], {
|
|
15555
|
-
forceUpsert: context?.unsettledProperties?.has("Tags") === true,
|
|
15556
|
-
beforeWrite: () => markUnsettled("Tags"),
|
|
15557
|
-
afterAdded: (keys) => {
|
|
15558
|
-
if (keys.length > 0) context?.markAttempted?.("Tags", keys);
|
|
15559
|
-
}
|
|
15560
|
-
});
|
|
15561
15684
|
const normalizeTableClass = (v) => typeof v === "string" && v.length > 0 ? v : "STANDARD";
|
|
15562
15685
|
const tableClassChanged = normalizeTableClass(properties["TableClass"]) !== normalizeTableClass(previousProperties["TableClass"]);
|
|
15563
15686
|
const liveBillingMode = table?.BillingModeSummary?.BillingMode ?? "PROVISIONED";
|
|
@@ -15578,6 +15701,13 @@ async function update$35(logicalId, physicalId, resourceType, properties, previo
|
|
|
15578
15701
|
}
|
|
15579
15702
|
const effectiveBillingMode = billingOrThroughputChanged ? billingMode : liveBillingMode;
|
|
15580
15703
|
refuseIndexCeilingsUnderProvisioned.call(this, logicalId, physicalId, resourceType, properties, context, maskSecrets, warn, billingOrThroughputChanged, effectiveBillingMode);
|
|
15704
|
+
if (table?.TableArn) await this.applyTagDiff(table.TableArn, resourceType, logicalId, previousProperties["Tags"], properties["Tags"], {
|
|
15705
|
+
forceUpsert: context?.unsettledProperties?.has("Tags") === true,
|
|
15706
|
+
beforeWrite: () => markUnsettled("Tags"),
|
|
15707
|
+
afterAdded: (keys) => {
|
|
15708
|
+
if (keys.length > 0) context?.markAttempted?.("Tags", keys);
|
|
15709
|
+
}
|
|
15710
|
+
});
|
|
15581
15711
|
const liveIndexes = table?.GlobalSecondaryIndexes ?? [];
|
|
15582
15712
|
const desiredIndexByName = /* @__PURE__ */ new Map();
|
|
15583
15713
|
for (const entry of Array.isArray(properties["GlobalSecondaryIndexes"]) ? properties["GlobalSecondaryIndexes"] : []) {
|
|
@@ -16547,6 +16677,656 @@ var LogsLogGroupProvider = class {
|
|
|
16547
16677
|
}
|
|
16548
16678
|
};
|
|
16549
16679
|
|
|
16680
|
+
// src/provisioning/providers/logs-delivery/shared.ts
|
|
16681
|
+
function isLogsNotFound(error) {
|
|
16682
|
+
return error instanceof Error && error.name === "ResourceNotFoundException";
|
|
16683
|
+
}
|
|
16684
|
+
function isPlainRecord$3(value) {
|
|
16685
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
16686
|
+
}
|
|
16687
|
+
function isStateBorne(context) {
|
|
16688
|
+
if (context?.replayingState === true) return true;
|
|
16689
|
+
return context !== void 0 && "desiredFromAwsReadback" in context && context.desiredFromAwsReadback === true;
|
|
16690
|
+
}
|
|
16691
|
+
var PropertyReader = class {
|
|
16692
|
+
properties;
|
|
16693
|
+
what;
|
|
16694
|
+
resourceType;
|
|
16695
|
+
logicalId;
|
|
16696
|
+
physicalId;
|
|
16697
|
+
logger;
|
|
16698
|
+
stateBorne;
|
|
16699
|
+
constructor(properties, what, resourceType, logicalId, physicalId, logger, stateBorne) {
|
|
16700
|
+
this.properties = properties;
|
|
16701
|
+
this.what = what;
|
|
16702
|
+
this.resourceType = resourceType;
|
|
16703
|
+
this.logicalId = logicalId;
|
|
16704
|
+
this.physicalId = physicalId;
|
|
16705
|
+
this.logger = logger;
|
|
16706
|
+
this.stateBorne = stateBorne;
|
|
16707
|
+
}
|
|
16708
|
+
refuse(message) {
|
|
16709
|
+
const text = `${message} for ${this.what} ${logicalIdShown(this.logicalId)}`;
|
|
16710
|
+
if (this.stateBorne) {
|
|
16711
|
+
this.logger.warn(safeMsg`${text}; omitting it while applying a state-borne bag`);
|
|
16712
|
+
return;
|
|
16713
|
+
}
|
|
16714
|
+
throw new ProvisioningError(text, this.resourceType, this.logicalId, this.physicalId);
|
|
16715
|
+
}
|
|
16716
|
+
requiredString(key) {
|
|
16717
|
+
const value = this.properties[key];
|
|
16718
|
+
if (typeof value === "string" && value !== "") return value;
|
|
16719
|
+
throw new ProvisioningError(`${key} must be a non-empty string for ${this.what} ${logicalIdShown(this.logicalId)}`, this.resourceType, this.logicalId, this.physicalId);
|
|
16720
|
+
}
|
|
16721
|
+
optionalString(key) {
|
|
16722
|
+
const value = this.properties[key];
|
|
16723
|
+
if (value === void 0 || typeof value === "string") return value;
|
|
16724
|
+
return this.refuse(`${key} must be a string`);
|
|
16725
|
+
}
|
|
16726
|
+
optionalStringList(key) {
|
|
16727
|
+
const value = this.properties[key];
|
|
16728
|
+
if (value === void 0) return void 0;
|
|
16729
|
+
if (Array.isArray(value) && value.every((v) => typeof v === "string")) return [...value];
|
|
16730
|
+
return this.refuse(`${key} must be a list of strings`);
|
|
16731
|
+
}
|
|
16732
|
+
optionalStringMap(key) {
|
|
16733
|
+
const value = this.properties[key];
|
|
16734
|
+
if (value === void 0) return void 0;
|
|
16735
|
+
if (isPlainRecord$3(value) && Object.values(value).every((v) => typeof v === "string")) return { ...value };
|
|
16736
|
+
return this.refuse(`${key} must be a map of string values`);
|
|
16737
|
+
}
|
|
16738
|
+
optionalBoolean(key) {
|
|
16739
|
+
const refusal = configBooleanRefusal(this.properties, key, "Properties");
|
|
16740
|
+
if (refusal !== void 0) return this.refuse(refusal);
|
|
16741
|
+
return coerceCfnBoolean(this.properties[key]);
|
|
16742
|
+
}
|
|
16743
|
+
tags() {
|
|
16744
|
+
return refuseMalformedDesiredTags(this.properties["Tags"], this.resourceType, this.logicalId, this.physicalId);
|
|
16745
|
+
}
|
|
16746
|
+
};
|
|
16747
|
+
function tagMap(tags) {
|
|
16748
|
+
return tags.length > 0 ? Object.fromEntries(tags.map((t) => [t.Key, t.Value])) : void 0;
|
|
16749
|
+
}
|
|
16750
|
+
async function reconcileTags(client, logger, arn, resourceType, logicalId, newTags, oldTags) {
|
|
16751
|
+
const plan = planTagDiff(oldTags, newTags);
|
|
16752
|
+
const warning = tagPlanWarning(plan, resourceType, logicalId);
|
|
16753
|
+
if (warning !== void 0) logger.warn(warning);
|
|
16754
|
+
if (plan.remove.length > 0) await client.send(new UntagResourceCommand$8({
|
|
16755
|
+
resourceArn: arn,
|
|
16756
|
+
tagKeys: plan.remove
|
|
16757
|
+
}));
|
|
16758
|
+
if (plan.set.size > 0) await client.send(new TagResourceCommand$8({
|
|
16759
|
+
resourceArn: arn,
|
|
16760
|
+
tags: Object.fromEntries(plan.set)
|
|
16761
|
+
}));
|
|
16762
|
+
}
|
|
16763
|
+
async function readTags$1(client, arn) {
|
|
16764
|
+
const resp = await client.send(new ListTagsForResourceCommand$5({ resourceArn: arn }));
|
|
16765
|
+
return normalizeAwsTagsToCfn(resp.tags);
|
|
16766
|
+
}
|
|
16767
|
+
function wrapLogsError(logger, what, operation, logicalId, resourceType, physicalId, error) {
|
|
16768
|
+
if (error instanceof ProvisioningError) return error;
|
|
16769
|
+
const cause = error instanceof Error ? error : void 0;
|
|
16770
|
+
const build = (text) => new ProvisioningError(`Failed to ${operation} ${what} ${logicalIdShown(logicalId)}: ${text}`, resourceType, logicalId, physicalId, cause);
|
|
16771
|
+
const failure = describeAwsFailure(error);
|
|
16772
|
+
if (!(error instanceof Error) || !failure.redacted) return build(failure.detail);
|
|
16773
|
+
logger.debug(build(failure.detail).message);
|
|
16774
|
+
const relay = isAuxiliaryFailure(error) ? "" : relayedNameCollision(failure.detail);
|
|
16775
|
+
return markRedactedCause(build(`${failure.summary}${relay}`));
|
|
16776
|
+
}
|
|
16777
|
+
|
|
16778
|
+
// src/provisioning/providers/logs-delivery-source-provider.ts
|
|
16779
|
+
const WHAT$2 = "CloudWatch Logs delivery source";
|
|
16780
|
+
var LogsDeliverySourceProvider = class {
|
|
16781
|
+
client;
|
|
16782
|
+
logger = getLogger().child("LogsDeliverySourceProvider");
|
|
16783
|
+
constructor() {
|
|
16784
|
+
this.client = getAwsClients().cloudWatchLogs;
|
|
16785
|
+
}
|
|
16786
|
+
handledProperties = /* @__PURE__ */ new Map([["AWS::Logs::DeliverySource", /* @__PURE__ */ new Set([
|
|
16787
|
+
"Name",
|
|
16788
|
+
"ResourceArn",
|
|
16789
|
+
"LogType",
|
|
16790
|
+
"Tags",
|
|
16791
|
+
"DeliverySourceConfiguration"
|
|
16792
|
+
])]]);
|
|
16793
|
+
unhandledByDesign = /* @__PURE__ */ new Map([["AWS::Logs::DeliverySource", /* @__PURE__ */ new Map([
|
|
16794
|
+
["Arn", "AWS-managed read-only attribute"],
|
|
16795
|
+
["ResourceArns", "AWS-managed read-only attribute (the ResourceArn sent, as a list)"],
|
|
16796
|
+
["Service", "AWS-managed read-only attribute"],
|
|
16797
|
+
["Status", "AWS-managed read-only attribute"],
|
|
16798
|
+
["StatusReason", "AWS-managed read-only attribute"]
|
|
16799
|
+
])]]);
|
|
16800
|
+
async create(logicalId, resourceType, properties, context) {
|
|
16801
|
+
this.logger.debug(safeMsg`Creating ${WHAT$2} ${logicalId}`);
|
|
16802
|
+
const reader = this.reader(properties, resourceType, logicalId, void 0, context);
|
|
16803
|
+
const name = reader.requiredString("Name");
|
|
16804
|
+
const input = this.putInput(reader, name);
|
|
16805
|
+
const tags = tagMap(reader.tags());
|
|
16806
|
+
let created = false;
|
|
16807
|
+
try {
|
|
16808
|
+
await this.refuseExisting(name, resourceType, logicalId);
|
|
16809
|
+
const resp = await this.client.send(new PutDeliverySourceCommand({
|
|
16810
|
+
...input,
|
|
16811
|
+
...tags && { tags }
|
|
16812
|
+
}));
|
|
16813
|
+
created = true;
|
|
16814
|
+
reportCreatedResource(logicalId, resourceType, name);
|
|
16815
|
+
return {
|
|
16816
|
+
physicalId: name,
|
|
16817
|
+
attributes: sourceAttributes(resp.deliverySource)
|
|
16818
|
+
};
|
|
16819
|
+
} catch (error) {
|
|
16820
|
+
const thrown = this.wrapError("create", logicalId, resourceType, name, error);
|
|
16821
|
+
if (created) markCreatedBeforeFailure(thrown, logicalId, resourceType, name);
|
|
16822
|
+
throw thrown;
|
|
16823
|
+
}
|
|
16824
|
+
}
|
|
16825
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
16826
|
+
assertRegionMatch(context?.expectedRegion ? await this.client.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
16827
|
+
const reader = this.reader(properties, resourceType, logicalId, physicalId, context);
|
|
16828
|
+
reader.tags();
|
|
16829
|
+
const input = [
|
|
16830
|
+
"ResourceArn",
|
|
16831
|
+
"LogType",
|
|
16832
|
+
"DeliverySourceConfiguration"
|
|
16833
|
+
].some((key) => !isDeepStrictEqual(properties[key], previousProperties[key])) ? this.putInput(reader, physicalId) : void 0;
|
|
16834
|
+
try {
|
|
16835
|
+
let source;
|
|
16836
|
+
if (input) source = (await this.client.send(new PutDeliverySourceCommand(input))).deliverySource;
|
|
16837
|
+
source ??= (await this.client.send(new GetDeliverySourceCommand({ name: physicalId }))).deliverySource;
|
|
16838
|
+
if (!source?.arn) throw new ProvisioningError(`${WHAT$2} ${logicalIdShown(logicalId)} returned no ARN`, resourceType, logicalId, physicalId);
|
|
16839
|
+
await reconcileTags(this.client, this.logger, source.arn, resourceType, logicalId, properties["Tags"], previousProperties["Tags"]);
|
|
16840
|
+
return {
|
|
16841
|
+
physicalId,
|
|
16842
|
+
wasReplaced: false,
|
|
16843
|
+
attributes: sourceAttributes(source)
|
|
16844
|
+
};
|
|
16845
|
+
} catch (error) {
|
|
16846
|
+
throw this.wrapError("update", logicalId, resourceType, physicalId, error);
|
|
16847
|
+
}
|
|
16848
|
+
}
|
|
16849
|
+
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
16850
|
+
this.logger.debug(safeMsg`Deleting ${WHAT$2} ${logicalId}`);
|
|
16851
|
+
try {
|
|
16852
|
+
await this.client.send(new DeleteDeliverySourceCommand({ name: physicalId }));
|
|
16853
|
+
} catch (error) {
|
|
16854
|
+
if (isLogsNotFound(error)) {
|
|
16855
|
+
assertRegionMatch(await this.client.config.region(), context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
16856
|
+
this.logger.debug(safeMsg`${WHAT$2} ${logicalId} does not exist, skipping deletion`);
|
|
16857
|
+
return;
|
|
16858
|
+
}
|
|
16859
|
+
throw this.wrapError("delete", logicalId, resourceType, physicalId, error);
|
|
16860
|
+
}
|
|
16861
|
+
}
|
|
16862
|
+
async getAttribute(physicalId, _resourceType, attributeName) {
|
|
16863
|
+
return sourceAttributes((await this.client.send(new GetDeliverySourceCommand({ name: physicalId }))).deliverySource)[attributeName];
|
|
16864
|
+
}
|
|
16865
|
+
async import(input) {
|
|
16866
|
+
const name = resolveExplicitPhysicalId(input, "Name");
|
|
16867
|
+
if (!name) return null;
|
|
16868
|
+
try {
|
|
16869
|
+
const resp = await this.client.send(new GetDeliverySourceCommand({ name }));
|
|
16870
|
+
if (!resp.deliverySource?.name) return null;
|
|
16871
|
+
return {
|
|
16872
|
+
physicalId: resp.deliverySource.name,
|
|
16873
|
+
attributes: sourceAttributes(resp.deliverySource)
|
|
16874
|
+
};
|
|
16875
|
+
} catch (error) {
|
|
16876
|
+
if (isLogsNotFound(error)) return null;
|
|
16877
|
+
throw error;
|
|
16878
|
+
}
|
|
16879
|
+
}
|
|
16880
|
+
async readCurrentState(physicalId, _logicalId, _resourceType, properties) {
|
|
16881
|
+
let source;
|
|
16882
|
+
try {
|
|
16883
|
+
source = (await this.client.send(new GetDeliverySourceCommand({ name: physicalId }))).deliverySource;
|
|
16884
|
+
} catch (error) {
|
|
16885
|
+
if (isLogsNotFound(error)) return RESOURCE_NOT_FOUND;
|
|
16886
|
+
throw error;
|
|
16887
|
+
}
|
|
16888
|
+
if (!source) return RESOURCE_NOT_FOUND;
|
|
16889
|
+
const result = {};
|
|
16890
|
+
if (source.name !== void 0) result["Name"] = source.name;
|
|
16891
|
+
if (source.resourceArns?.length === 1) result["ResourceArn"] = source.resourceArns[0];
|
|
16892
|
+
if (source.logType !== void 0) result["LogType"] = source.logType;
|
|
16893
|
+
const liveConfig = source.deliverySourceConfiguration;
|
|
16894
|
+
if (liveConfig !== void 0 && Object.keys(liveConfig).length > 0) {
|
|
16895
|
+
const declared = properties?.["DeliverySourceConfiguration"];
|
|
16896
|
+
result["DeliverySourceConfiguration"] = isPlainRecord$3(declared) ? Object.fromEntries(Object.entries(liveConfig).filter(([k]) => k in declared)) : { ...liveConfig };
|
|
16897
|
+
}
|
|
16898
|
+
if (source.arn) try {
|
|
16899
|
+
result["Tags"] = await readTags$1(this.client, source.arn);
|
|
16900
|
+
} catch (error) {
|
|
16901
|
+
if (isLogsNotFound(error)) return RESOURCE_NOT_FOUND;
|
|
16902
|
+
throw error;
|
|
16903
|
+
}
|
|
16904
|
+
return result;
|
|
16905
|
+
}
|
|
16906
|
+
wrapError(operation, logicalId, resourceType, physicalId, error) {
|
|
16907
|
+
if (error instanceof ProvisioningError) return error;
|
|
16908
|
+
return wrapLogsError(this.logger, WHAT$2, operation, logicalId, resourceType, physicalId, error);
|
|
16909
|
+
}
|
|
16910
|
+
reader(properties, resourceType, logicalId, physicalId, context) {
|
|
16911
|
+
return new PropertyReader(properties, WHAT$2, resourceType, logicalId, physicalId, this.logger, isStateBorne(context));
|
|
16912
|
+
}
|
|
16913
|
+
putInput(reader, name) {
|
|
16914
|
+
const resourceArn = reader.requiredString("ResourceArn");
|
|
16915
|
+
const logType = reader.requiredString("LogType");
|
|
16916
|
+
const config = reader.optionalStringMap("DeliverySourceConfiguration");
|
|
16917
|
+
return {
|
|
16918
|
+
name,
|
|
16919
|
+
resourceArn,
|
|
16920
|
+
logType,
|
|
16921
|
+
...config !== void 0 && { deliverySourceConfiguration: config }
|
|
16922
|
+
};
|
|
16923
|
+
}
|
|
16924
|
+
async refuseExisting(name, resourceType, logicalId) {
|
|
16925
|
+
try {
|
|
16926
|
+
await this.client.send(new GetDeliverySourceCommand({ name }));
|
|
16927
|
+
} catch (error) {
|
|
16928
|
+
if (isLogsNotFound(error)) return;
|
|
16929
|
+
throw error;
|
|
16930
|
+
}
|
|
16931
|
+
throw markNonRetryable(new ProvisioningError(`${WHAT$2} ${logicalIdShown(logicalId)} cannot be created: a delivery source with its Name already exists in this account and region. Delete it, choose another Name, or adopt it into this stack with an import.`, resourceType, logicalId));
|
|
16932
|
+
}
|
|
16933
|
+
};
|
|
16934
|
+
function sourceAttributes(source) {
|
|
16935
|
+
return definedAttributes({
|
|
16936
|
+
Arn: source?.arn,
|
|
16937
|
+
ResourceArns: source?.resourceArns ? [...source.resourceArns] : void 0,
|
|
16938
|
+
Service: source?.service,
|
|
16939
|
+
Status: source?.status,
|
|
16940
|
+
StatusReason: source?.statusReason
|
|
16941
|
+
});
|
|
16942
|
+
}
|
|
16943
|
+
|
|
16944
|
+
// src/provisioning/providers/logs-delivery-destination-provider.ts
|
|
16945
|
+
const WHAT$1 = "CloudWatch Logs delivery destination";
|
|
16946
|
+
var LogsDeliveryDestinationProvider = class {
|
|
16947
|
+
client;
|
|
16948
|
+
logger = getLogger().child("LogsDeliveryDestinationProvider");
|
|
16949
|
+
constructor() {
|
|
16950
|
+
this.client = getAwsClients().cloudWatchLogs;
|
|
16951
|
+
}
|
|
16952
|
+
handledProperties = /* @__PURE__ */ new Map([["AWS::Logs::DeliveryDestination", /* @__PURE__ */ new Set([
|
|
16953
|
+
"Name",
|
|
16954
|
+
"DestinationResourceArn",
|
|
16955
|
+
"DeliveryDestinationType",
|
|
16956
|
+
"OutputFormat",
|
|
16957
|
+
"DeliveryDestinationPolicy",
|
|
16958
|
+
"Tags"
|
|
16959
|
+
])]]);
|
|
16960
|
+
unhandledByDesign = /* @__PURE__ */ new Map([["AWS::Logs::DeliveryDestination", /* @__PURE__ */ new Map([["Arn", "AWS-managed read-only attribute"]])]]);
|
|
16961
|
+
async create(logicalId, resourceType, properties, context) {
|
|
16962
|
+
this.logger.debug(safeMsg`Creating ${WHAT$1} ${logicalId}`);
|
|
16963
|
+
const reader = this.reader(properties, resourceType, logicalId, void 0, context);
|
|
16964
|
+
const name = reader.requiredString("Name");
|
|
16965
|
+
const destinationArn = reader.optionalString("DestinationResourceArn");
|
|
16966
|
+
const destinationType = reader.optionalString("DeliveryDestinationType");
|
|
16967
|
+
const outputFormat = reader.optionalString("OutputFormat");
|
|
16968
|
+
const tags = tagMap(reader.tags());
|
|
16969
|
+
const policy = this.readPolicy(properties, name, resourceType, logicalId, void 0, context);
|
|
16970
|
+
let created = false;
|
|
16971
|
+
try {
|
|
16972
|
+
await this.refuseExisting(name, resourceType, logicalId);
|
|
16973
|
+
const resp = await this.client.send(new PutDeliveryDestinationCommand({
|
|
16974
|
+
name,
|
|
16975
|
+
...destinationArn !== void 0 && { deliveryDestinationConfiguration: { destinationResourceArn: destinationArn } },
|
|
16976
|
+
...destinationType !== void 0 && { deliveryDestinationType: destinationType },
|
|
16977
|
+
...outputFormat !== void 0 && { outputFormat },
|
|
16978
|
+
...tags && { tags }
|
|
16979
|
+
}));
|
|
16980
|
+
created = true;
|
|
16981
|
+
reportCreatedResource(logicalId, resourceType, name);
|
|
16982
|
+
getPriorAttempts(logicalId)?.notePossiblyLanded();
|
|
16983
|
+
if (policy !== void 0) await this.client.send(new PutDeliveryDestinationPolicyCommand({
|
|
16984
|
+
deliveryDestinationName: name,
|
|
16985
|
+
deliveryDestinationPolicy: policy
|
|
16986
|
+
}));
|
|
16987
|
+
return {
|
|
16988
|
+
physicalId: name,
|
|
16989
|
+
attributes: destinationAttributes(resp.deliveryDestination)
|
|
16990
|
+
};
|
|
16991
|
+
} catch (error) {
|
|
16992
|
+
if (created) markAuxiliaryFailure(error, logicalId);
|
|
16993
|
+
const thrown = this.wrapError("create", logicalId, resourceType, name, error);
|
|
16994
|
+
if (created) markCreatedBeforeFailure(thrown, logicalId, resourceType, name);
|
|
16995
|
+
throw thrown;
|
|
16996
|
+
}
|
|
16997
|
+
}
|
|
16998
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
16999
|
+
assertRegionMatch(context?.expectedRegion ? await this.client.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
17000
|
+
this.reader(properties, resourceType, logicalId, physicalId, context).tags();
|
|
17001
|
+
const policy = this.readPolicy(properties, physicalId, resourceType, logicalId, physicalId, context);
|
|
17002
|
+
const previousPolicy = policyDocument$1(previousProperties["DeliveryDestinationPolicy"]);
|
|
17003
|
+
try {
|
|
17004
|
+
const destination = (await this.client.send(new GetDeliveryDestinationCommand({ name: physicalId }))).deliveryDestination;
|
|
17005
|
+
if (!destination?.arn) throw new ProvisioningError(`${WHAT$1} ${logicalIdShown(logicalId)} returned no ARN`, resourceType, logicalId, physicalId);
|
|
17006
|
+
await reconcileTags(this.client, this.logger, destination.arn, resourceType, logicalId, properties["Tags"], previousProperties["Tags"]);
|
|
17007
|
+
if (policy !== void 0 && policy !== previousPolicy) await this.client.send(new PutDeliveryDestinationPolicyCommand({
|
|
17008
|
+
deliveryDestinationName: physicalId,
|
|
17009
|
+
deliveryDestinationPolicy: policy
|
|
17010
|
+
}));
|
|
17011
|
+
else if (properties["DeliveryDestinationPolicy"] === void 0 && previousProperties["DeliveryDestinationPolicy"] !== void 0) try {
|
|
17012
|
+
await this.client.send(new DeleteDeliveryDestinationPolicyCommand({ deliveryDestinationName: physicalId }));
|
|
17013
|
+
} catch (error) {
|
|
17014
|
+
if (!isLogsNotFound(error)) throw error;
|
|
17015
|
+
}
|
|
17016
|
+
return {
|
|
17017
|
+
physicalId,
|
|
17018
|
+
wasReplaced: false,
|
|
17019
|
+
attributes: destinationAttributes(destination)
|
|
17020
|
+
};
|
|
17021
|
+
} catch (error) {
|
|
17022
|
+
throw this.wrapError("update", logicalId, resourceType, physicalId, error);
|
|
17023
|
+
}
|
|
17024
|
+
}
|
|
17025
|
+
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
17026
|
+
this.logger.debug(safeMsg`Deleting ${WHAT$1} ${logicalId}`);
|
|
17027
|
+
try {
|
|
17028
|
+
await this.client.send(new DeleteDeliveryDestinationCommand({ name: physicalId }));
|
|
17029
|
+
} catch (error) {
|
|
17030
|
+
if (isLogsNotFound(error)) {
|
|
17031
|
+
assertRegionMatch(await this.client.config.region(), context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
17032
|
+
this.logger.debug(safeMsg`${WHAT$1} ${logicalId} does not exist, skipping deletion`);
|
|
17033
|
+
return;
|
|
17034
|
+
}
|
|
17035
|
+
throw this.wrapError("delete", logicalId, resourceType, physicalId, error);
|
|
17036
|
+
}
|
|
17037
|
+
}
|
|
17038
|
+
async getAttribute(physicalId, _resourceType, attributeName) {
|
|
17039
|
+
return destinationAttributes((await this.client.send(new GetDeliveryDestinationCommand({ name: physicalId }))).deliveryDestination)[attributeName];
|
|
17040
|
+
}
|
|
17041
|
+
async import(input) {
|
|
17042
|
+
const name = resolveExplicitPhysicalId(input, "Name");
|
|
17043
|
+
if (!name) return null;
|
|
17044
|
+
try {
|
|
17045
|
+
const resp = await this.client.send(new GetDeliveryDestinationCommand({ name }));
|
|
17046
|
+
if (!resp.deliveryDestination?.name) return null;
|
|
17047
|
+
return {
|
|
17048
|
+
physicalId: resp.deliveryDestination.name,
|
|
17049
|
+
attributes: destinationAttributes(resp.deliveryDestination)
|
|
17050
|
+
};
|
|
17051
|
+
} catch (error) {
|
|
17052
|
+
if (isLogsNotFound(error)) return null;
|
|
17053
|
+
throw error;
|
|
17054
|
+
}
|
|
17055
|
+
}
|
|
17056
|
+
async readCurrentState(physicalId, _logicalId, _resourceType, properties) {
|
|
17057
|
+
let destination;
|
|
17058
|
+
try {
|
|
17059
|
+
destination = (await this.client.send(new GetDeliveryDestinationCommand({ name: physicalId }))).deliveryDestination;
|
|
17060
|
+
} catch (error) {
|
|
17061
|
+
if (isLogsNotFound(error)) return RESOURCE_NOT_FOUND;
|
|
17062
|
+
throw error;
|
|
17063
|
+
}
|
|
17064
|
+
if (!destination) return RESOURCE_NOT_FOUND;
|
|
17065
|
+
const result = {};
|
|
17066
|
+
if (destination.name !== void 0) result["Name"] = destination.name;
|
|
17067
|
+
const destinationArn = destination.deliveryDestinationConfiguration?.destinationResourceArn;
|
|
17068
|
+
if (destinationArn !== void 0) result["DestinationResourceArn"] = destinationArn;
|
|
17069
|
+
if (destination.deliveryDestinationType !== void 0) result["DeliveryDestinationType"] = destination.deliveryDestinationType;
|
|
17070
|
+
if (destination.outputFormat !== void 0) result["OutputFormat"] = destination.outputFormat;
|
|
17071
|
+
let policy;
|
|
17072
|
+
try {
|
|
17073
|
+
policy = (await this.client.send(new GetDeliveryDestinationPolicyCommand({ deliveryDestinationName: physicalId }))).policy?.deliveryDestinationPolicy;
|
|
17074
|
+
} catch (error) {
|
|
17075
|
+
if (!isLogsNotFound(error)) throw error;
|
|
17076
|
+
}
|
|
17077
|
+
if (policy !== void 0 && policy !== "") {
|
|
17078
|
+
const declared = properties?.["DeliveryDestinationPolicy"];
|
|
17079
|
+
result["DeliveryDestinationPolicy"] = {
|
|
17080
|
+
...isPlainRecord$3(declared) && declared["DeliveryDestinationName"] !== void 0 && { DeliveryDestinationName: physicalId },
|
|
17081
|
+
DeliveryDestinationPolicy: parsePolicy(policy)
|
|
17082
|
+
};
|
|
17083
|
+
}
|
|
17084
|
+
try {
|
|
17085
|
+
if (destination.arn) result["Tags"] = await readTags$1(this.client, destination.arn);
|
|
17086
|
+
} catch (error) {
|
|
17087
|
+
if (isLogsNotFound(error)) return RESOURCE_NOT_FOUND;
|
|
17088
|
+
throw error;
|
|
17089
|
+
}
|
|
17090
|
+
return result;
|
|
17091
|
+
}
|
|
17092
|
+
wrapError(operation, logicalId, resourceType, physicalId, error) {
|
|
17093
|
+
if (error instanceof ProvisioningError) return error;
|
|
17094
|
+
return wrapLogsError(this.logger, WHAT$1, operation, logicalId, resourceType, physicalId, error);
|
|
17095
|
+
}
|
|
17096
|
+
reader(properties, resourceType, logicalId, physicalId, context) {
|
|
17097
|
+
return new PropertyReader(properties, WHAT$1, resourceType, logicalId, physicalId, this.logger, isStateBorne(context));
|
|
17098
|
+
}
|
|
17099
|
+
readPolicy(properties, name, resourceType, logicalId, physicalId, context) {
|
|
17100
|
+
const block = properties["DeliveryDestinationPolicy"];
|
|
17101
|
+
if (block === void 0) return void 0;
|
|
17102
|
+
let problem;
|
|
17103
|
+
const document = policyDocument$1(block);
|
|
17104
|
+
if (!isPlainRecord$3(block)) problem = "DeliveryDestinationPolicy must be an object";
|
|
17105
|
+
else if (block["DeliveryDestinationName"] !== void 0 && block["DeliveryDestinationName"] !== name) problem = "DeliveryDestinationPolicy.DeliveryDestinationName must equal the destination Name";
|
|
17106
|
+
else if (document === void 0) problem = "DeliveryDestinationPolicy.DeliveryDestinationPolicy must be a policy document object";
|
|
17107
|
+
if (problem === void 0) return document;
|
|
17108
|
+
const message = `${problem} for ${WHAT$1} ${logicalIdShown(logicalId)}`;
|
|
17109
|
+
if (isStateBorne(context)) {
|
|
17110
|
+
this.logger.warn(safeMsg`${message}; omitting it while applying a state-borne bag`);
|
|
17111
|
+
return;
|
|
17112
|
+
}
|
|
17113
|
+
throw new ProvisioningError(message, resourceType, logicalId, physicalId);
|
|
17114
|
+
}
|
|
17115
|
+
async refuseExisting(name, resourceType, logicalId) {
|
|
17116
|
+
if (getPriorAttempts(logicalId)?.possiblyLanded() === true) return;
|
|
17117
|
+
try {
|
|
17118
|
+
await this.client.send(new GetDeliveryDestinationCommand({ name }));
|
|
17119
|
+
} catch (error) {
|
|
17120
|
+
if (isLogsNotFound(error)) return;
|
|
17121
|
+
throw error;
|
|
17122
|
+
}
|
|
17123
|
+
throw markNonRetryable(new ProvisioningError(`${WHAT$1} ${logicalIdShown(logicalId)} cannot be created: a delivery destination with its Name already exists in this account and region. Delete it, choose another Name, or adopt it into this stack with an import.`, resourceType, logicalId));
|
|
17124
|
+
}
|
|
17125
|
+
};
|
|
17126
|
+
function policyDocument$1(block) {
|
|
17127
|
+
if (!isPlainRecord$3(block)) return void 0;
|
|
17128
|
+
const document = block["DeliveryDestinationPolicy"];
|
|
17129
|
+
if (isPlainRecord$3(document)) return JSON.stringify(document);
|
|
17130
|
+
}
|
|
17131
|
+
function parsePolicy(policy) {
|
|
17132
|
+
try {
|
|
17133
|
+
return JSON.parse(policy);
|
|
17134
|
+
} catch {
|
|
17135
|
+
return policy;
|
|
17136
|
+
}
|
|
17137
|
+
}
|
|
17138
|
+
function destinationAttributes(destination) {
|
|
17139
|
+
return definedAttributes({
|
|
17140
|
+
Arn: destination?.arn,
|
|
17141
|
+
DeliveryDestinationType: destination?.deliveryDestinationType
|
|
17142
|
+
});
|
|
17143
|
+
}
|
|
17144
|
+
|
|
17145
|
+
// src/provisioning/providers/logs-delivery-provider.ts
|
|
17146
|
+
const WHAT = "CloudWatch Logs delivery";
|
|
17147
|
+
const CONFIG_KEYS = [
|
|
17148
|
+
"RecordFields",
|
|
17149
|
+
"FieldDelimiter",
|
|
17150
|
+
"S3SuffixPath",
|
|
17151
|
+
"S3EnableHiveCompatiblePath"
|
|
17152
|
+
];
|
|
17153
|
+
var LogsDeliveryProvider = class {
|
|
17154
|
+
client;
|
|
17155
|
+
logger = getLogger().child("LogsDeliveryProvider");
|
|
17156
|
+
constructor() {
|
|
17157
|
+
this.client = getAwsClients().cloudWatchLogs;
|
|
17158
|
+
}
|
|
17159
|
+
handledProperties = /* @__PURE__ */ new Map([["AWS::Logs::Delivery", /* @__PURE__ */ new Set([
|
|
17160
|
+
"DeliverySourceName",
|
|
17161
|
+
"DeliveryDestinationArn",
|
|
17162
|
+
"RecordFields",
|
|
17163
|
+
"FieldDelimiter",
|
|
17164
|
+
"S3SuffixPath",
|
|
17165
|
+
"S3EnableHiveCompatiblePath",
|
|
17166
|
+
"Tags"
|
|
17167
|
+
])]]);
|
|
17168
|
+
unhandledByDesign = /* @__PURE__ */ new Map([["AWS::Logs::Delivery", /* @__PURE__ */ new Map([
|
|
17169
|
+
["DeliveryId", "AWS-managed read-only attribute (primaryIdentifier / physical id)"],
|
|
17170
|
+
["Arn", "AWS-managed read-only attribute"],
|
|
17171
|
+
["DeliveryDestinationType", "AWS-managed read-only attribute"]
|
|
17172
|
+
])]]);
|
|
17173
|
+
async create(logicalId, resourceType, properties, context) {
|
|
17174
|
+
this.logger.debug(safeMsg`Creating ${WHAT} ${logicalId}`);
|
|
17175
|
+
const reader = this.reader(properties, resourceType, logicalId, void 0, context);
|
|
17176
|
+
const deliverySourceName = reader.requiredString("DeliverySourceName");
|
|
17177
|
+
const deliveryDestinationArn = reader.requiredString("DeliveryDestinationArn");
|
|
17178
|
+
const config = readConfig$1(reader);
|
|
17179
|
+
const tags = tagMap(reader.tags());
|
|
17180
|
+
let createdId;
|
|
17181
|
+
try {
|
|
17182
|
+
const resp = await this.client.send(new CreateDeliveryCommand({
|
|
17183
|
+
deliverySourceName,
|
|
17184
|
+
deliveryDestinationArn,
|
|
17185
|
+
...config,
|
|
17186
|
+
...tags && { tags }
|
|
17187
|
+
}));
|
|
17188
|
+
createdId = resp.delivery?.id;
|
|
17189
|
+
if (!createdId) throw new ProvisioningError(`CreateDelivery succeeded but returned no delivery id for ${logicalIdShown(logicalId)}`, resourceType, logicalId);
|
|
17190
|
+
reportCreatedResource(logicalId, resourceType, createdId);
|
|
17191
|
+
return {
|
|
17192
|
+
physicalId: createdId,
|
|
17193
|
+
attributes: deliveryAttributes(resp.delivery)
|
|
17194
|
+
};
|
|
17195
|
+
} catch (error) {
|
|
17196
|
+
const thrown = this.wrapError("create", logicalId, resourceType, createdId, error);
|
|
17197
|
+
if (createdId) markCreatedBeforeFailure(thrown, logicalId, resourceType, createdId);
|
|
17198
|
+
throw thrown;
|
|
17199
|
+
}
|
|
17200
|
+
}
|
|
17201
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
17202
|
+
assertRegionMatch(context?.expectedRegion ? await this.client.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
17203
|
+
const reader = this.reader(properties, resourceType, logicalId, physicalId, context);
|
|
17204
|
+
reader.tags();
|
|
17205
|
+
const config = readConfig$1(reader);
|
|
17206
|
+
const changed = CONFIG_KEYS.filter((key) => !isDeepStrictEqual(properties[key], previousProperties[key]));
|
|
17207
|
+
const removed = changed.filter((key) => properties[key] === void 0);
|
|
17208
|
+
if (removed.length > 0) this.logger.warn(safeMsg`${WHAT} ${logicalId}: ${removed.join(", ")} removed from the template keeps its ` + "current value: UpdateDeliveryConfiguration cannot clear it. Replace the delivery to reset it.");
|
|
17209
|
+
const sendConfig = changed.length > removed.length;
|
|
17210
|
+
try {
|
|
17211
|
+
if (sendConfig) await this.client.send(new UpdateDeliveryConfigurationCommand({
|
|
17212
|
+
id: physicalId,
|
|
17213
|
+
...config
|
|
17214
|
+
}));
|
|
17215
|
+
const delivery = (await this.client.send(new GetDeliveryCommand({ id: physicalId }))).delivery;
|
|
17216
|
+
if (!delivery?.arn) throw new ProvisioningError(`${WHAT} ${logicalIdShown(logicalId)} returned no ARN`, resourceType, logicalId, physicalId);
|
|
17217
|
+
await reconcileTags(this.client, this.logger, delivery.arn, resourceType, logicalId, properties["Tags"], previousProperties["Tags"]);
|
|
17218
|
+
return {
|
|
17219
|
+
physicalId,
|
|
17220
|
+
wasReplaced: false,
|
|
17221
|
+
attributes: deliveryAttributes(delivery)
|
|
17222
|
+
};
|
|
17223
|
+
} catch (error) {
|
|
17224
|
+
throw this.wrapError("update", logicalId, resourceType, physicalId, error);
|
|
17225
|
+
}
|
|
17226
|
+
}
|
|
17227
|
+
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
17228
|
+
this.logger.debug(safeMsg`Deleting ${WHAT} ${logicalId}`);
|
|
17229
|
+
try {
|
|
17230
|
+
await this.client.send(new DeleteDeliveryCommand({ id: physicalId }));
|
|
17231
|
+
} catch (error) {
|
|
17232
|
+
if (isLogsNotFound(error)) {
|
|
17233
|
+
assertRegionMatch(await this.client.config.region(), context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
17234
|
+
this.logger.debug(safeMsg`${WHAT} ${logicalId} does not exist, skipping deletion`);
|
|
17235
|
+
return;
|
|
17236
|
+
}
|
|
17237
|
+
throw this.wrapError("delete", logicalId, resourceType, physicalId, error);
|
|
17238
|
+
}
|
|
17239
|
+
}
|
|
17240
|
+
async getAttribute(physicalId, _resourceType, attributeName) {
|
|
17241
|
+
if (attributeName === "DeliveryId") return physicalId;
|
|
17242
|
+
return deliveryAttributes((await this.client.send(new GetDeliveryCommand({ id: physicalId }))).delivery)[attributeName];
|
|
17243
|
+
}
|
|
17244
|
+
async import(input) {
|
|
17245
|
+
if (input.knownPhysicalId) try {
|
|
17246
|
+
const resp = await this.client.send(new GetDeliveryCommand({ id: input.knownPhysicalId }));
|
|
17247
|
+
if (!resp.delivery?.id) return null;
|
|
17248
|
+
return {
|
|
17249
|
+
physicalId: resp.delivery.id,
|
|
17250
|
+
attributes: deliveryAttributes(resp.delivery)
|
|
17251
|
+
};
|
|
17252
|
+
} catch (error) {
|
|
17253
|
+
if (isLogsNotFound(error)) return null;
|
|
17254
|
+
throw error;
|
|
17255
|
+
}
|
|
17256
|
+
const props = input.properties ?? {};
|
|
17257
|
+
const sourceName = props["DeliverySourceName"];
|
|
17258
|
+
const destinationArn = props["DeliveryDestinationArn"];
|
|
17259
|
+
if (typeof sourceName !== "string" || typeof destinationArn !== "string") return null;
|
|
17260
|
+
let nextToken;
|
|
17261
|
+
do {
|
|
17262
|
+
const page = await this.client.send(new DescribeDeliveriesCommand({
|
|
17263
|
+
deliverySourceNames: [sourceName],
|
|
17264
|
+
nextToken
|
|
17265
|
+
}));
|
|
17266
|
+
for (const delivery of page.deliveries ?? []) if (delivery.id && delivery.deliverySourceName === sourceName && delivery.deliveryDestinationArn === destinationArn) return {
|
|
17267
|
+
physicalId: delivery.id,
|
|
17268
|
+
attributes: deliveryAttributes(delivery)
|
|
17269
|
+
};
|
|
17270
|
+
nextToken = page.nextToken;
|
|
17271
|
+
} while (nextToken);
|
|
17272
|
+
return null;
|
|
17273
|
+
}
|
|
17274
|
+
async readCurrentState(physicalId, _logicalId, _resourceType) {
|
|
17275
|
+
let delivery;
|
|
17276
|
+
try {
|
|
17277
|
+
delivery = (await this.client.send(new GetDeliveryCommand({ id: physicalId }))).delivery;
|
|
17278
|
+
} catch (error) {
|
|
17279
|
+
if (isLogsNotFound(error)) return RESOURCE_NOT_FOUND;
|
|
17280
|
+
throw error;
|
|
17281
|
+
}
|
|
17282
|
+
if (!delivery) return RESOURCE_NOT_FOUND;
|
|
17283
|
+
const result = {};
|
|
17284
|
+
if (delivery.deliverySourceName !== void 0) result["DeliverySourceName"] = delivery.deliverySourceName;
|
|
17285
|
+
if (delivery.deliveryDestinationArn !== void 0) result["DeliveryDestinationArn"] = delivery.deliveryDestinationArn;
|
|
17286
|
+
if (delivery.recordFields !== void 0) result["RecordFields"] = [...delivery.recordFields];
|
|
17287
|
+
if (delivery.fieldDelimiter !== void 0) result["FieldDelimiter"] = delivery.fieldDelimiter;
|
|
17288
|
+
const s3 = delivery.s3DeliveryConfiguration;
|
|
17289
|
+
if (s3?.suffixPath !== void 0) result["S3SuffixPath"] = s3.suffixPath;
|
|
17290
|
+
if (s3?.enableHiveCompatiblePath !== void 0) result["S3EnableHiveCompatiblePath"] = s3.enableHiveCompatiblePath;
|
|
17291
|
+
if (delivery.arn) try {
|
|
17292
|
+
result["Tags"] = await readTags$1(this.client, delivery.arn);
|
|
17293
|
+
} catch (error) {
|
|
17294
|
+
if (isLogsNotFound(error)) return RESOURCE_NOT_FOUND;
|
|
17295
|
+
throw error;
|
|
17296
|
+
}
|
|
17297
|
+
return result;
|
|
17298
|
+
}
|
|
17299
|
+
wrapError(operation, logicalId, resourceType, physicalId, error) {
|
|
17300
|
+
if (error instanceof ProvisioningError) return error;
|
|
17301
|
+
return wrapLogsError(this.logger, WHAT, operation, logicalId, resourceType, physicalId, error);
|
|
17302
|
+
}
|
|
17303
|
+
reader(properties, resourceType, logicalId, physicalId, context) {
|
|
17304
|
+
return new PropertyReader(properties, WHAT, resourceType, logicalId, physicalId, this.logger, isStateBorne(context));
|
|
17305
|
+
}
|
|
17306
|
+
};
|
|
17307
|
+
function readConfig$1(reader) {
|
|
17308
|
+
const recordFields = reader.optionalStringList("RecordFields");
|
|
17309
|
+
const fieldDelimiter = reader.optionalString("FieldDelimiter");
|
|
17310
|
+
const suffixPath = reader.optionalString("S3SuffixPath");
|
|
17311
|
+
const hive = reader.optionalBoolean("S3EnableHiveCompatiblePath");
|
|
17312
|
+
const s3 = {
|
|
17313
|
+
...suffixPath !== void 0 && { suffixPath },
|
|
17314
|
+
...hive !== void 0 && { enableHiveCompatiblePath: hive }
|
|
17315
|
+
};
|
|
17316
|
+
return {
|
|
17317
|
+
...recordFields !== void 0 && { recordFields },
|
|
17318
|
+
...fieldDelimiter !== void 0 && { fieldDelimiter },
|
|
17319
|
+
...Object.keys(s3).length > 0 && { s3DeliveryConfiguration: s3 }
|
|
17320
|
+
};
|
|
17321
|
+
}
|
|
17322
|
+
function deliveryAttributes(delivery) {
|
|
17323
|
+
return definedAttributes({
|
|
17324
|
+
DeliveryId: delivery?.id,
|
|
17325
|
+
Arn: delivery?.arn,
|
|
17326
|
+
DeliveryDestinationType: delivery?.deliveryDestinationType
|
|
17327
|
+
});
|
|
17328
|
+
}
|
|
17329
|
+
|
|
16550
17330
|
// src/provisioning/providers/cloudwatch-alarm-provider.ts
|
|
16551
17331
|
function isDefaultEvaluationWindow(value) {
|
|
16552
17332
|
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
@@ -18355,16 +19135,16 @@ function policyKey(value) {
|
|
|
18355
19135
|
const doc = policyDocument(value);
|
|
18356
19136
|
if (doc === void 0) return void 0;
|
|
18357
19137
|
try {
|
|
18358
|
-
return JSON.stringify(sortKeys(JSON.parse(doc)));
|
|
19138
|
+
return JSON.stringify(sortKeys$1(JSON.parse(doc)));
|
|
18359
19139
|
} catch {
|
|
18360
19140
|
return doc;
|
|
18361
19141
|
}
|
|
18362
19142
|
}
|
|
18363
|
-
function sortKeys(value) {
|
|
18364
|
-
if (Array.isArray(value)) return value.map(sortKeys);
|
|
19143
|
+
function sortKeys$1(value) {
|
|
19144
|
+
if (Array.isArray(value)) return value.map(sortKeys$1);
|
|
18365
19145
|
if (typeof value !== "object" || value === null) return value;
|
|
18366
19146
|
const record = value;
|
|
18367
|
-
return Object.fromEntries(Object.keys(record).sort().map((key) => [key, sortKeys(record[key])]));
|
|
19147
|
+
return Object.fromEntries(Object.keys(record).sort().map((key) => [key, sortKeys$1(record[key])]));
|
|
18368
19148
|
}
|
|
18369
19149
|
var EventBridgeBusProvider = class {
|
|
18370
19150
|
eventBridgeClient;
|
|
@@ -18649,6 +19429,269 @@ function isBusHasRulesRefusal(error) {
|
|
|
18649
19429
|
return error instanceof Error && error.name === "ValidationException" && /has rules/i.test(error.message);
|
|
18650
19430
|
}
|
|
18651
19431
|
|
|
19432
|
+
// src/provisioning/providers/eventbridge-archive-provider.ts
|
|
19433
|
+
const RESOURCE_TYPE = "AWS::Events::Archive";
|
|
19434
|
+
function archiveEventPattern(value) {
|
|
19435
|
+
if (value === void 0 || value === null || value === "") return void 0;
|
|
19436
|
+
return typeof value === "string" ? value : JSON.stringify(value);
|
|
19437
|
+
}
|
|
19438
|
+
function eventPatternKey(value) {
|
|
19439
|
+
const doc = archiveEventPattern(value);
|
|
19440
|
+
if (doc === void 0) return void 0;
|
|
19441
|
+
try {
|
|
19442
|
+
return JSON.stringify(sortKeys(JSON.parse(doc)));
|
|
19443
|
+
} catch {
|
|
19444
|
+
return doc;
|
|
19445
|
+
}
|
|
19446
|
+
}
|
|
19447
|
+
function sortKeys(value) {
|
|
19448
|
+
if (Array.isArray(value)) return value.map(sortKeys);
|
|
19449
|
+
if (typeof value !== "object" || value === null) return value;
|
|
19450
|
+
const record = value;
|
|
19451
|
+
return Object.fromEntries(Object.keys(record).sort().map((key) => [key, sortKeys(record[key])]));
|
|
19452
|
+
}
|
|
19453
|
+
const SETTLED_STATES$1 = /* @__PURE__ */ new Set(["ENABLED", "DISABLED"]);
|
|
19454
|
+
const FAILED_STATES$2 = /* @__PURE__ */ new Set(["CREATE_FAILED", "UPDATE_FAILED"]);
|
|
19455
|
+
var EventBridgeArchiveProvider = class {
|
|
19456
|
+
eventBridgeClient;
|
|
19457
|
+
logger = getLogger().child("EventBridgeArchiveProvider");
|
|
19458
|
+
handledProperties = /* @__PURE__ */ new Map([["AWS::Events::Archive", /* @__PURE__ */ new Set([
|
|
19459
|
+
"ArchiveName",
|
|
19460
|
+
"SourceArn",
|
|
19461
|
+
"Description",
|
|
19462
|
+
"EventPattern",
|
|
19463
|
+
"RetentionDays",
|
|
19464
|
+
"KmsKeyIdentifier"
|
|
19465
|
+
])]]);
|
|
19466
|
+
removalHandledInUpdate = /* @__PURE__ */ new Map([["AWS::Events::Archive", /* @__PURE__ */ new Set(["ArchiveName", "SourceArn"])]]);
|
|
19467
|
+
stateWait = {
|
|
19468
|
+
pollIntervalMs: 2e3,
|
|
19469
|
+
timeoutMs: 3e5,
|
|
19470
|
+
sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
19471
|
+
};
|
|
19472
|
+
constructor() {
|
|
19473
|
+
this.eventBridgeClient = getAwsClients().eventBridge;
|
|
19474
|
+
}
|
|
19475
|
+
createClient;
|
|
19476
|
+
getCreateClient() {
|
|
19477
|
+
const shared = this.eventBridgeClient;
|
|
19478
|
+
if (!(shared instanceof EventBridgeClient)) return Promise.resolve(shared);
|
|
19479
|
+
this.createClient ??= shared.config.region().then((region) => withoutServerErrorRetries(new EventBridgeClient({
|
|
19480
|
+
...ambientClientDefaults(),
|
|
19481
|
+
region
|
|
19482
|
+
})), (error) => {
|
|
19483
|
+
this.createClient = void 0;
|
|
19484
|
+
throw error;
|
|
19485
|
+
});
|
|
19486
|
+
return this.createClient;
|
|
19487
|
+
}
|
|
19488
|
+
wrapMaskedError(mask, error, build) {
|
|
19489
|
+
const failure = describeAwsFailure(error);
|
|
19490
|
+
if (!(error instanceof Error)) return build(mask(failure.detail));
|
|
19491
|
+
if (!failure.redacted) return wrapMaskedAwsError(mask, error, build);
|
|
19492
|
+
this.logger.debug(mask(build(failure.detail).message));
|
|
19493
|
+
return markRedactedCause(build(`${mask(failure.summary)}${relayedNameCollision(failure.detail)}`));
|
|
19494
|
+
}
|
|
19495
|
+
retentionDays(properties, logicalId, physicalId) {
|
|
19496
|
+
const value = properties["RetentionDays"];
|
|
19497
|
+
if (value === void 0 || value === null) return void 0;
|
|
19498
|
+
const n = coerceCfnInteger(value);
|
|
19499
|
+
if (n !== void 0 && n >= 0) return n;
|
|
19500
|
+
throw markNonRetryable(new ProvisioningError(`RetentionDays of ${logicalId} must be an integer >= 0 (0 keeps events indefinitely)`, RESOURCE_TYPE, logicalId, physicalId));
|
|
19501
|
+
}
|
|
19502
|
+
async create(logicalId, resourceType, properties, context) {
|
|
19503
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
19504
|
+
const sourceArn = properties["SourceArn"];
|
|
19505
|
+
if (typeof sourceArn !== "string" || sourceArn === "") throw markNonRetryable(new ProvisioningError(`SourceArn is required for EventBridge archive ${logicalId}`, resourceType, logicalId));
|
|
19506
|
+
const declaredName = properties["ArchiveName"];
|
|
19507
|
+
if (declaredName !== void 0 && declaredName !== null && typeof declaredName !== "string") throw markNonRetryable(new ProvisioningError(`ArchiveName of EventBridge archive ${logicalId} must be a string`, resourceType, logicalId));
|
|
19508
|
+
const retentionDays = this.retentionDays(properties, logicalId);
|
|
19509
|
+
const name = properties["ArchiveName"] || generatedNameFor("AWS::Events::Archive", logicalId);
|
|
19510
|
+
this.logger.debug(mask(`Creating EventBridge archive ${logicalId}: ${name}`));
|
|
19511
|
+
let created = false;
|
|
19512
|
+
try {
|
|
19513
|
+
const input = {
|
|
19514
|
+
ArchiveName: name,
|
|
19515
|
+
EventSourceArn: sourceArn
|
|
19516
|
+
};
|
|
19517
|
+
if (properties["Description"] !== void 0 && properties["Description"] !== null) input.Description = properties["Description"];
|
|
19518
|
+
const pattern = archiveEventPattern(properties["EventPattern"]);
|
|
19519
|
+
if (pattern !== void 0) input.EventPattern = pattern;
|
|
19520
|
+
if (retentionDays !== void 0) input.RetentionDays = retentionDays;
|
|
19521
|
+
if (properties["KmsKeyIdentifier"]) input.KmsKeyIdentifier = properties["KmsKeyIdentifier"];
|
|
19522
|
+
const response = await (await this.getCreateClient()).send(new CreateArchiveCommand(input));
|
|
19523
|
+
created = true;
|
|
19524
|
+
reportCreatedResource(logicalId, resourceType, name);
|
|
19525
|
+
let arn = response.ArchiveArn;
|
|
19526
|
+
if (!SETTLED_STATES$1.has(response.State ?? "ENABLED")) arn = await this.waitForSettled(name, logicalId, "create", mask) ?? arn;
|
|
19527
|
+
return {
|
|
19528
|
+
physicalId: name,
|
|
19529
|
+
attributes: definedAttributes({ Arn: arn })
|
|
19530
|
+
};
|
|
19531
|
+
} catch (error) {
|
|
19532
|
+
if (isInterruptedWaitError(error)) throw error;
|
|
19533
|
+
const cause = error instanceof Error ? error : void 0;
|
|
19534
|
+
let thrown = this.wrapMaskedError(mask, error, (text) => new ProvisioningError(`Failed to create EventBridge archive ${logicalId}: ${text}`, resourceType, logicalId, created ? name : void 0, cause));
|
|
19535
|
+
if (created) thrown = await this.retireFailedCreate(thrown, logicalId, resourceType, name, mask);
|
|
19536
|
+
throw thrown;
|
|
19537
|
+
}
|
|
19538
|
+
}
|
|
19539
|
+
async retireFailedCreate(thrown, logicalId, resourceType, name, mask) {
|
|
19540
|
+
try {
|
|
19541
|
+
await this.eventBridgeClient.send(new DeleteArchiveCommand({ ArchiveName: name }));
|
|
19542
|
+
retractCreatedResource(logicalId, resourceType, name);
|
|
19543
|
+
return thrown;
|
|
19544
|
+
} catch (cleanupError) {
|
|
19545
|
+
if (cleanupError instanceof ResourceNotFoundException$2) {
|
|
19546
|
+
retractCreatedResource(logicalId, resourceType, name);
|
|
19547
|
+
return thrown;
|
|
19548
|
+
}
|
|
19549
|
+
const failure = describeAwsFailure(cleanupError);
|
|
19550
|
+
this.logger.debug(mask(`Failed to delete archive ${name} after its create failed: ${failure.detail}`));
|
|
19551
|
+
this.logger.warn(mask(safeMsg`EventBridge archive ${logicalId} (${name}) was created but its create failed, and deleting it failed too (${failure.summary}). Delete it before the next deploy: aws events delete-archive --archive-name ${name}`));
|
|
19552
|
+
return markCreatedBeforeFailure(thrown, logicalId, resourceType, name);
|
|
19553
|
+
}
|
|
19554
|
+
}
|
|
19555
|
+
async waitForSettled(name, logicalId, operation, mask) {
|
|
19556
|
+
if (process.env["CDKD_NO_WAIT"] === "true") {
|
|
19557
|
+
this.logger.debug(mask(`Skipping the ${operation} wait for EventBridge archive ${logicalId} (CDKD_NO_WAIT=true)`));
|
|
19558
|
+
return;
|
|
19559
|
+
}
|
|
19560
|
+
const { pollIntervalMs, sleep } = this.stateWait;
|
|
19561
|
+
const userTimeoutMs = resolvedResourceTimeoutMs(RESOURCE_TYPE);
|
|
19562
|
+
const timeoutMs = userTimeoutMs === void 0 ? this.stateWait.timeoutMs : Math.min(this.stateWait.timeoutMs, userTimeoutMs / 2);
|
|
19563
|
+
const deadline = Date.now() + timeoutMs;
|
|
19564
|
+
const watch = startInterruptWatch(`EventBridge archive ${logicalId} ${operation} wait`);
|
|
19565
|
+
try {
|
|
19566
|
+
for (;;) {
|
|
19567
|
+
let resp;
|
|
19568
|
+
try {
|
|
19569
|
+
resp = await this.describeArchive(name);
|
|
19570
|
+
} catch (error) {
|
|
19571
|
+
if (!isThrottlingError(error) && !isTransientServerError(error)) throw error;
|
|
19572
|
+
if (Date.now() >= deadline) throw error;
|
|
19573
|
+
this.logger.debug(mask(`EventBridge archive ${name}: state read failed transiently`));
|
|
19574
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
19575
|
+
await sleep(pollIntervalMs);
|
|
19576
|
+
continue;
|
|
19577
|
+
}
|
|
19578
|
+
const state = resp.State;
|
|
19579
|
+
if (state === void 0 || SETTLED_STATES$1.has(state)) return resp.ArchiveArn;
|
|
19580
|
+
if (FAILED_STATES$2.has(state)) {
|
|
19581
|
+
if (resp.StateReason) this.logger.debug(mask(`EventBridge archive ${logicalId} entered ${state}: ${resp.StateReason}`));
|
|
19582
|
+
throw markNonRetryable(new ProvisioningError(safeMsg`EventBridge archive ${logicalId} entered ${state}.` + verbosePointerTail(), RESOURCE_TYPE, logicalId, name));
|
|
19583
|
+
}
|
|
19584
|
+
if (Date.now() >= deadline) throw markNonRetryable(new ProvisioningError(`EventBridge archive ${logicalId} was still ${state} ${Math.round(timeoutMs / 1e3)}s after the ${operation} call`, RESOURCE_TYPE, logicalId, name));
|
|
19585
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
19586
|
+
this.logger.debug(mask(`EventBridge archive ${name} state: ${state}, waiting`));
|
|
19587
|
+
await sleep(pollIntervalMs);
|
|
19588
|
+
}
|
|
19589
|
+
} finally {
|
|
19590
|
+
watch.dispose();
|
|
19591
|
+
}
|
|
19592
|
+
}
|
|
19593
|
+
describeArchive(name) {
|
|
19594
|
+
return this.eventBridgeClient.send(new DescribeArchiveCommand({ ArchiveName: name }));
|
|
19595
|
+
}
|
|
19596
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
19597
|
+
assertRegionMatch(context?.expectedRegion ? await this.eventBridgeClient.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
19598
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
19599
|
+
let retentionDays;
|
|
19600
|
+
try {
|
|
19601
|
+
retentionDays = this.retentionDays(properties, logicalId, physicalId);
|
|
19602
|
+
} catch (error) {
|
|
19603
|
+
if (context?.replayingState !== true && context?.desiredFromAwsReadback !== true) throw error;
|
|
19604
|
+
this.logger.warn(safeMsg`${logicalId} (${resourceType}): RetentionDays is not an integer >= 0; the archive keeps its current retention.`);
|
|
19605
|
+
}
|
|
19606
|
+
try {
|
|
19607
|
+
const descChanged = properties["Description"] !== previousProperties["Description"];
|
|
19608
|
+
const patternChanged = eventPatternKey(properties["EventPattern"]) !== eventPatternKey(previousProperties["EventPattern"]);
|
|
19609
|
+
const retentionChanged = retentionDays !== void 0 && retentionDays !== coerceCfnInteger(previousProperties["RetentionDays"]);
|
|
19610
|
+
const kmsChanged = properties["KmsKeyIdentifier"] !== previousProperties["KmsKeyIdentifier"];
|
|
19611
|
+
if (!descChanged && !patternChanged && !retentionChanged && !kmsChanged) return {
|
|
19612
|
+
physicalId,
|
|
19613
|
+
wasReplaced: false,
|
|
19614
|
+
attributes: {}
|
|
19615
|
+
};
|
|
19616
|
+
this.logger.debug(mask(`Updating EventBridge archive ${logicalId}: ${physicalId}`));
|
|
19617
|
+
const input = { ArchiveName: physicalId };
|
|
19618
|
+
if (properties["Description"] !== void 0 && properties["Description"] !== null) input.Description = properties["Description"];
|
|
19619
|
+
const pattern = archiveEventPattern(properties["EventPattern"]);
|
|
19620
|
+
if (pattern !== void 0) input.EventPattern = pattern;
|
|
19621
|
+
if (retentionDays !== void 0) input.RetentionDays = retentionDays;
|
|
19622
|
+
if (properties["KmsKeyIdentifier"] !== void 0 && properties["KmsKeyIdentifier"] !== null) input.KmsKeyIdentifier = properties["KmsKeyIdentifier"];
|
|
19623
|
+
const response = await this.eventBridgeClient.send(new UpdateArchiveCommand(input));
|
|
19624
|
+
let arn = response.ArchiveArn;
|
|
19625
|
+
if (!SETTLED_STATES$1.has(response.State ?? "ENABLED")) arn = await this.waitForSettled(physicalId, logicalId, "update", mask) ?? arn;
|
|
19626
|
+
return {
|
|
19627
|
+
physicalId,
|
|
19628
|
+
wasReplaced: false,
|
|
19629
|
+
attributes: definedAttributes({ Arn: arn })
|
|
19630
|
+
};
|
|
19631
|
+
} catch (error) {
|
|
19632
|
+
if (error instanceof CdkdError || isInterruptedWaitError(error)) throw error;
|
|
19633
|
+
const cause = error instanceof Error ? error : void 0;
|
|
19634
|
+
throw this.wrapMaskedError(mask, error, (text) => new ProvisioningError(`Failed to update EventBridge archive ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
19635
|
+
}
|
|
19636
|
+
}
|
|
19637
|
+
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
19638
|
+
this.logger.debug(safeMsg`Deleting EventBridge archive ${logicalId}: ${physicalId}`);
|
|
19639
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
19640
|
+
assertRegionMatch(context?.expectedRegion ? await this.eventBridgeClient.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-delete");
|
|
19641
|
+
try {
|
|
19642
|
+
await this.eventBridgeClient.send(new DeleteArchiveCommand({ ArchiveName: physicalId }));
|
|
19643
|
+
} catch (error) {
|
|
19644
|
+
if (error instanceof ResourceNotFoundException$2) {
|
|
19645
|
+
const clientRegion = await this.eventBridgeClient.config.region();
|
|
19646
|
+
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
19647
|
+
this.logger.debug(safeMsg`EventBridge archive ${physicalId} does not exist, skipping`);
|
|
19648
|
+
return;
|
|
19649
|
+
}
|
|
19650
|
+
const cause = error instanceof Error ? error : void 0;
|
|
19651
|
+
const failure = this.wrapMaskedError(mask, error, (text) => new ProvisioningError(`Failed to delete EventBridge archive ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
19652
|
+
throw error instanceof Error && error.name.includes("NotFound") ? markNotGone(failure) : failure;
|
|
19653
|
+
}
|
|
19654
|
+
}
|
|
19655
|
+
async getAttribute(physicalId, _resourceType, attributeName) {
|
|
19656
|
+
if (attributeName !== "Arn") return void 0;
|
|
19657
|
+
return (await this.eventBridgeClient.send(new DescribeArchiveCommand({ ArchiveName: physicalId }))).ArchiveArn;
|
|
19658
|
+
}
|
|
19659
|
+
async readCurrentState(physicalId, _logicalId, _resourceType) {
|
|
19660
|
+
try {
|
|
19661
|
+
const resp = await this.eventBridgeClient.send(new DescribeArchiveCommand({ ArchiveName: physicalId }));
|
|
19662
|
+
const result = {};
|
|
19663
|
+
if (resp.ArchiveName !== void 0) result["ArchiveName"] = resp.ArchiveName;
|
|
19664
|
+
if (resp.EventSourceArn !== void 0) result["SourceArn"] = resp.EventSourceArn;
|
|
19665
|
+
result["Description"] = resp.Description ?? "";
|
|
19666
|
+
if (resp.EventPattern !== void 0 && resp.EventPattern !== "") try {
|
|
19667
|
+
result["EventPattern"] = JSON.parse(resp.EventPattern);
|
|
19668
|
+
} catch {
|
|
19669
|
+
result["EventPattern"] = resp.EventPattern;
|
|
19670
|
+
}
|
|
19671
|
+
result["RetentionDays"] = resp.RetentionDays ?? 0;
|
|
19672
|
+
result["KmsKeyIdentifier"] = resp.KmsKeyIdentifier ?? "";
|
|
19673
|
+
return result;
|
|
19674
|
+
} catch (err) {
|
|
19675
|
+
if (err instanceof ResourceNotFoundException$2) return RESOURCE_NOT_FOUND;
|
|
19676
|
+
throw err;
|
|
19677
|
+
}
|
|
19678
|
+
}
|
|
19679
|
+
async import(input) {
|
|
19680
|
+
const explicit = resolveExplicitPhysicalId(input, "ArchiveName");
|
|
19681
|
+
if (!explicit) return null;
|
|
19682
|
+
try {
|
|
19683
|
+
const resp = await this.eventBridgeClient.send(new DescribeArchiveCommand({ ArchiveName: explicit }));
|
|
19684
|
+
return {
|
|
19685
|
+
physicalId: explicit,
|
|
19686
|
+
attributes: definedAttributes({ Arn: resp.ArchiveArn })
|
|
19687
|
+
};
|
|
19688
|
+
} catch (err) {
|
|
19689
|
+
if (err instanceof ResourceNotFoundException$2) return null;
|
|
19690
|
+
throw err;
|
|
19691
|
+
}
|
|
19692
|
+
}
|
|
19693
|
+
};
|
|
19694
|
+
|
|
18652
19695
|
// src/provisioning/providers/ec2/sg-support.ts
|
|
18653
19696
|
const SG_INGRESS_IP_PROTOCOL_DEFAULT = "-1";
|
|
18654
19697
|
const SG_INGRESS_IP_PROTOCOL_PATH = "AWS::EC2::SecurityGroupIngress IpProtocol";
|
|
@@ -31985,6 +33028,100 @@ async function getAttribute$9(physicalId, resourceType, attributeName) {
|
|
|
31985
33028
|
}
|
|
31986
33029
|
}
|
|
31987
33030
|
|
|
33031
|
+
// src/provisioning/providers/ecs/cluster-attachments.ts
|
|
33032
|
+
const clusterAttachmentsWait = {
|
|
33033
|
+
sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms)),
|
|
33034
|
+
now: () => Date.now()
|
|
33035
|
+
};
|
|
33036
|
+
const CLUSTER_TYPE = "AWS::ECS::Cluster";
|
|
33037
|
+
const IN_PROGRESS = "UPDATE_IN_PROGRESS";
|
|
33038
|
+
const BUSY_ERROR_NAMES = /* @__PURE__ */ new Set(["UpdateInProgressException", "ServerException"]);
|
|
33039
|
+
function capacityProvidersChanged(properties, previousProperties) {
|
|
33040
|
+
return !isDeepStrictEqual(previousProperties["CapacityProviders"] ?? null, properties["CapacityProviders"] ?? null) || !isDeepStrictEqual(previousProperties["DefaultCapacityProviderStrategy"] ?? null, properties["DefaultCapacityProviderStrategy"] ?? null);
|
|
33041
|
+
}
|
|
33042
|
+
function heldCapacityProviders(previousProperties) {
|
|
33043
|
+
const held = (value) => Array.isArray(value) && value.length > 0;
|
|
33044
|
+
return held(previousProperties["CapacityProviders"]) || held(previousProperties["DefaultCapacityProviderStrategy"]);
|
|
33045
|
+
}
|
|
33046
|
+
async function describeAttachments(client, cluster) {
|
|
33047
|
+
return (await client.send(new DescribeClustersCommand({
|
|
33048
|
+
clusters: [cluster],
|
|
33049
|
+
include: ["ATTACHMENTS"]
|
|
33050
|
+
})))?.clusters?.[0];
|
|
33051
|
+
}
|
|
33052
|
+
async function attachmentsStatus(client, cluster) {
|
|
33053
|
+
return (await describeAttachments(client, cluster))?.attachmentsStatus;
|
|
33054
|
+
}
|
|
33055
|
+
async function waitForClusterAttachments(client, logicalId, cluster, log) {
|
|
33056
|
+
const maxWaitSeconds = Math.max(600, (resolvedResourceTimeoutMs(CLUSTER_TYPE) ?? 0) / 1e3);
|
|
33057
|
+
const deadline = clusterAttachmentsWait.now() + maxWaitSeconds * 1e3;
|
|
33058
|
+
const watch = startInterruptWatch(`ECS cluster ${logicalId} attachments wait`);
|
|
33059
|
+
let delay = 1e3;
|
|
33060
|
+
try {
|
|
33061
|
+
for (;;) {
|
|
33062
|
+
const described = await describeAttachments(client, cluster);
|
|
33063
|
+
if (described?.attachmentsStatus !== IN_PROGRESS) return described;
|
|
33064
|
+
if (clusterAttachmentsWait.now() >= deadline) throw markNonRetryable(new ProvisioningError(`ECS cluster ${logicalIdShown(logicalId)}'s capacity provider attachments were still ${IN_PROGRESS} after ${maxWaitSeconds}s. Re-run once they settle, or raise the limit with --resource-timeout ${CLUSTER_TYPE}=${commandHole("duration")}.`, CLUSTER_TYPE, logicalId, cluster));
|
|
33065
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
33066
|
+
log.debug(`ECS cluster ${log.value(cluster)} attachments ${IN_PROGRESS}; waiting ${delay}ms`);
|
|
33067
|
+
await clusterAttachmentsWait.sleep(delay);
|
|
33068
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
33069
|
+
delay = Math.min(delay * 2, 5e3);
|
|
33070
|
+
}
|
|
33071
|
+
} finally {
|
|
33072
|
+
watch.dispose();
|
|
33073
|
+
}
|
|
33074
|
+
}
|
|
33075
|
+
async function sendWhenAttachmentsSettle(client, logicalId, cluster, log, write) {
|
|
33076
|
+
for (let attempt = 1;; attempt++) try {
|
|
33077
|
+
return await write();
|
|
33078
|
+
} catch (error) {
|
|
33079
|
+
const name = error instanceof Error ? error.name : void 0;
|
|
33080
|
+
if (attempt >= 3 || name === void 0 || !BUSY_ERROR_NAMES.has(name)) throw error;
|
|
33081
|
+
if (await attachmentsStatus(client, cluster).catch(() => void 0) !== IN_PROGRESS) throw error;
|
|
33082
|
+
log.debug(`ECS cluster ${log.value(cluster)} refused a write with ${name} while its attachments update; waiting`);
|
|
33083
|
+
await waitForClusterAttachments(client, logicalId, cluster, log);
|
|
33084
|
+
}
|
|
33085
|
+
}
|
|
33086
|
+
const OWN_PUT_GRACE_READS = 3;
|
|
33087
|
+
const FAILED_ATTACHMENT = /^(CREATE|UPDATE|DELETE)_FAILED$|^FAILED$/;
|
|
33088
|
+
async function waitForOwnCapacityProviderPut(client, logicalId, cluster, log, putCluster) {
|
|
33089
|
+
let sawInProgress = putCluster?.attachmentsStatus === IN_PROGRESS;
|
|
33090
|
+
if (!sawInProgress) {
|
|
33091
|
+
const watch = startInterruptWatch(`ECS cluster ${logicalId} attachments wait`);
|
|
33092
|
+
try {
|
|
33093
|
+
for (let read = 0;; read++) {
|
|
33094
|
+
const status = await attachmentsStatus(client, cluster);
|
|
33095
|
+
if (status === IN_PROGRESS) {
|
|
33096
|
+
sawInProgress = true;
|
|
33097
|
+
break;
|
|
33098
|
+
}
|
|
33099
|
+
if (status !== "UPDATE_FAILED") return;
|
|
33100
|
+
if (read >= OWN_PUT_GRACE_READS) {
|
|
33101
|
+
log.warn(`ECS cluster ${log.value(cluster)} still reports UPDATE_FAILED attachments from before this update's PutClusterCapacityProviders, which never showed UPDATE_IN_PROGRESS; continuing`);
|
|
33102
|
+
return;
|
|
33103
|
+
}
|
|
33104
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
33105
|
+
await clusterAttachmentsWait.sleep(1e3);
|
|
33106
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
33107
|
+
}
|
|
33108
|
+
} finally {
|
|
33109
|
+
watch.dispose();
|
|
33110
|
+
}
|
|
33111
|
+
}
|
|
33112
|
+
const settled = await waitForClusterAttachments(client, logicalId, cluster, log);
|
|
33113
|
+
if (settled?.attachmentsStatus !== "UPDATE_FAILED") return;
|
|
33114
|
+
const touched = new Set((putCluster?.attachments ?? []).map((a) => a.id).filter((id) => Boolean(id)));
|
|
33115
|
+
const failedAll = (settled.attachments ?? []).filter((a) => FAILED_ATTACHMENT.test(a.status ?? ""));
|
|
33116
|
+
const failedTouched = failedAll.filter((a) => a.id !== void 0 && touched.has(a.id));
|
|
33117
|
+
const failed = (failedTouched.length > 0 ? failedTouched : failedAll).map((a) => {
|
|
33118
|
+
const details = (a.details ?? []).map((d) => `${d.name ?? "?"}=${d.value ?? ""}`).join(", ");
|
|
33119
|
+
return `${a.type ?? "attachment"} ${a.id ?? ""} ${a.status ?? ""}${details ? ` (${details})` : ""}`.trim();
|
|
33120
|
+
});
|
|
33121
|
+
const reason = failed.length > 0 ? `: ${log.mask(failed.join("; "))}` : "";
|
|
33122
|
+
throw markNonRetryable(new ProvisioningError(`ECS cluster ${logicalIdShown(logicalId)} (${log.value(cluster)}): PutClusterCapacityProviders ended with the capacity provider attachments UPDATE_FAILED${reason}. Check the capacity providers the template names (an Auto Scaling group provider needs its group and the ECS service-linked role), fix them, then re-run.`, CLUSTER_TYPE, logicalId, cluster));
|
|
33123
|
+
}
|
|
33124
|
+
|
|
31988
33125
|
// src/provisioning/providers/ecs/cluster-task-definition.ts
|
|
31989
33126
|
async function createCluster(logicalId, resourceType, properties, log) {
|
|
31990
33127
|
log.debug(`Creating ECS cluster ${logicalId}`);
|
|
@@ -32021,13 +33158,14 @@ async function updateCluster(logicalId, physicalId, resourceType, properties, pr
|
|
|
32021
33158
|
refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
|
|
32022
33159
|
const client = this.getClient();
|
|
32023
33160
|
try {
|
|
32024
|
-
if (properties["CapacityProviders"] || properties["DefaultCapacityProviderStrategy"]) {
|
|
32025
|
-
await client.send(new PutClusterCapacityProvidersCommand({
|
|
33161
|
+
if (Boolean(properties["CapacityProviders"] || properties["DefaultCapacityProviderStrategy"]) ? capacityProvidersChanged(properties, previousProperties) : heldCapacityProviders(previousProperties)) {
|
|
33162
|
+
const putResponse = await sendWhenAttachmentsSettle(client, logicalId, physicalId, log, () => client.send(new PutClusterCapacityProvidersCommand({
|
|
32026
33163
|
cluster: physicalId,
|
|
32027
33164
|
capacityProviders: properties["CapacityProviders"] || [],
|
|
32028
33165
|
defaultCapacityProviderStrategy: this.convertCapacityProviderStrategy(properties["DefaultCapacityProviderStrategy"]) || []
|
|
32029
|
-
}));
|
|
33166
|
+
})));
|
|
32030
33167
|
log.debug(`Updated capacity providers for ECS cluster ${shownCluster}`);
|
|
33168
|
+
await waitForOwnCapacityProviderPut(client, logicalId, physicalId, log, putResponse?.cluster);
|
|
32031
33169
|
}
|
|
32032
33170
|
const settingsChanged = JSON.stringify(previousProperties["ClusterSettings"] ?? null) !== JSON.stringify(properties["ClusterSettings"] ?? null);
|
|
32033
33171
|
const configChanged = JSON.stringify(previousProperties["Configuration"] ?? null) !== JSON.stringify(properties["Configuration"] ?? null);
|
|
@@ -32038,12 +33176,12 @@ async function updateCluster(logicalId, physicalId, resourceType, properties, pr
|
|
|
32038
33176
|
value: (s["Value"] || s["value"]) ?? void 0
|
|
32039
33177
|
})) : void 0;
|
|
32040
33178
|
const svcConnectInput = svcConnectChanged ? properties["ServiceConnectDefaults"] ? { namespace: properties["ServiceConnectDefaults"]["Namespace"] } : { namespace: "" } : void 0;
|
|
32041
|
-
await client.send(new UpdateClusterCommand({
|
|
33179
|
+
await sendWhenAttachmentsSettle(client, logicalId, physicalId, log, () => client.send(new UpdateClusterCommand({
|
|
32042
33180
|
cluster: physicalId,
|
|
32043
33181
|
...settingsChanged && { settings: settingsInput },
|
|
32044
33182
|
...configChanged && { configuration: this.convertClusterConfiguration(properties["Configuration"]) },
|
|
32045
33183
|
...svcConnectChanged && { serviceConnectDefaults: svcConnectInput }
|
|
32046
|
-
}));
|
|
33184
|
+
})));
|
|
32047
33185
|
log.debug(`Updated ECS cluster ${shownCluster} (settings=${settingsChanged}, config=${configChanged}, svcConnect=${svcConnectChanged})`);
|
|
32048
33186
|
}
|
|
32049
33187
|
const cluster = (await client.send(new DescribeClustersCommand({ clusters: [physicalId] }))).clusters?.[0];
|
|
@@ -64363,5 +65501,5 @@ var ACMCertificateProvider = class {
|
|
|
64363
65501
|
}
|
|
64364
65502
|
};
|
|
64365
65503
|
|
|
64366
|
-
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, 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, 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 };
|
|
64367
|
-
//# sourceMappingURL=provider-classes-
|
|
65504
|
+
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeArchiveProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, LogsDeliverySourceProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider };
|
|
65505
|
+
//# sourceMappingURL=provider-classes-CZtdRriA.js.map
|