@cdkd/cli 0.367.0 → 0.368.0
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-BCK5URbU.js → ambient-client-defaults-sDf76v3S.js} +3 -3
- package/dist/{ambient-client-defaults-BCK5URbU.js.map → ambient-client-defaults-sDf76v3S.js.map} +1 -1
- package/dist/{asg-provider-B3z2ERTV.js → asg-provider-D0P2oc54.js} +6 -6
- package/dist/{asg-provider-B3z2ERTV.js.map → asg-provider-D0P2oc54.js.map} +1 -1
- package/dist/cli.js +5 -4
- package/dist/cli.js.map +1 -1
- package/dist/{custom-resource-runtime-C84Dk_m9.js → custom-resource-runtime-DYjojUID.js} +6 -6
- package/dist/{custom-resource-runtime-C84Dk_m9.js.map → custom-resource-runtime-DYjojUID.js.map} +1 -1
- package/dist/{db-associated-roles-BPNxy41_.js → db-associated-roles-Dzy8cj2v.js} +2 -2
- package/dist/{db-associated-roles-BPNxy41_.js.map → db-associated-roles-Dzy8cj2v.js.map} +1 -1
- package/dist/{delete-started-B4voN73N.js → delete-started-CsP3MTbA.js} +10 -6
- package/dist/delete-started-CsP3MTbA.js.map +1 -0
- package/dist/{deploy-engine-Ckkutmgf.js → deploy-engine-CSe_egmn.js} +898 -66
- package/dist/deploy-engine-CSe_egmn.js.map +1 -0
- package/dist/{ec2-termination-protection-DWE3uPU3.js → ec2-termination-protection-CmWOst0b.js} +12 -7
- package/dist/ec2-termination-protection-CmWOst0b.js.map +1 -0
- package/dist/{ecr-uri-7yeldNkK.js → ecr-uri-D60GcgZh.js} +2 -2
- package/dist/{ecr-uri-7yeldNkK.js.map → ecr-uri-D60GcgZh.js.map} +1 -1
- package/dist/{expected-bucket-owner-CikFL35f.js → expected-bucket-owner-Y8rVebnr.js} +2 -2
- package/dist/{expected-bucket-owner-CikFL35f.js.map → expected-bucket-owner-Y8rVebnr.js.map} +1 -1
- package/dist/{iam-role-provider-Cya7v6M0.js → iam-role-provider-eIsyKbXN.js} +9 -9
- package/dist/{iam-role-provider-Cya7v6M0.js.map → iam-role-provider-eIsyKbXN.js.map} +1 -1
- package/dist/{image-plan-BCMBW3N9.js → image-plan-D-tX8hxm.js} +14 -11
- package/dist/image-plan-D-tX8hxm.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-CDeQnUi0.js → logger-c-SNKnID.js} +2 -2
- package/dist/{logger-CDeQnUi0.js.map → logger-c-SNKnID.js.map} +1 -1
- package/dist/{neptune-provider-DJmwti6E.js → neptune-provider-DjLlFfkQ.js} +7 -7
- package/dist/{neptune-provider-DJmwti6E.js.map → neptune-provider-DjLlFfkQ.js.map} +1 -1
- package/dist/{program-BqTL728g.js → program-Bq6COj9L.js} +278 -46
- package/dist/program-Bq6COj9L.js.map +1 -0
- package/dist/{provider-classes-DkZXDD7E.js → provider-classes-BfmqRWw8.js} +626 -148
- package/dist/provider-classes-BfmqRWw8.js.map +1 -0
- package/dist/{rds-provider-BFrNNNhR.js → rds-provider-DtwBQKQa.js} +10 -10
- package/dist/{rds-provider-BFrNNNhR.js.map → rds-provider-DtwBQKQa.js.map} +1 -1
- package/dist/{read-replica-Bt5-man4.js → read-replica-wnmC5O6i.js} +3 -3
- package/dist/{read-replica-Bt5-man4.js.map → read-replica-wnmC5O6i.js.map} +1 -1
- package/dist/{replacement-rules-CLBkCiI5.js → replacement-rules-FVwMQOyO.js} +65 -4
- package/dist/replacement-rules-FVwMQOyO.js.map +1 -0
- package/dist/{resource-deadline-C2PStI4s.js → resource-deadline-CKhiQ5jv.js} +5 -5
- package/dist/{resource-deadline-C2PStI4s.js.map → resource-deadline-CKhiQ5jv.js.map} +1 -1
- package/dist/{restore-source-guard-Dl_sbZyl.js → restore-source-guard-B-V5B42P.js} +4 -4
- package/dist/{restore-source-guard-Dl_sbZyl.js.map → restore-source-guard-B-V5B42P.js.map} +1 -1
- package/dist/{run-cli-CJBGJ3Bv.js → run-cli-DI5DQMk-.js} +2 -2
- package/dist/{run-cli-CJBGJ3Bv.js.map → run-cli-DI5DQMk-.js.map} +1 -1
- package/dist/{settle-own-write-members-C5Bz98EG.js → settle-own-write-members-X3fAZHTr.js} +19 -12
- package/dist/settle-own-write-members-X3fAZHTr.js.map +1 -0
- package/dist/{version-D9jxvvqR.js → version-CpD8EJXa.js} +2 -2
- package/dist/{version-D9jxvvqR.js.map → version-CpD8EJXa.js.map} +1 -1
- package/package.json +3 -2
- package/dist/delete-started-B4voN73N.js.map +0 -1
- package/dist/deploy-engine-Ckkutmgf.js.map +0 -1
- package/dist/ec2-termination-protection-DWE3uPU3.js.map +0 -1
- package/dist/image-plan-BCMBW3N9.js.map +0 -1
- package/dist/program-BqTL728g.js.map +0 -1
- package/dist/provider-classes-DkZXDD7E.js.map +0 -1
- package/dist/replacement-rules-CLBkCiI5.js.map +0 -1
- package/dist/settle-own-write-members-C5Bz98EG.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { _ as verifyOwnIdentityBeforeUpdate, a as stackOwnHolders, b as IamCreateClientCache, c as clearOwnWriteRemovals, d as takeOwnWriteRemovals, f as InlinePolicyPrincipalMismatchError, g as verifyInlinePolicyPrincipals, h as compareMembershipWrites, i as isStackOwnHolder, l as recordOwnWriteRemoval, m as assertInlinePolicyAttachTargets, n as collectInlinePolicyNamesManagedBySiblings, o as planInlinePolicyNames, p as MANAGED_POLICY_OWNER, r as heldText, s as sameInlinePolicyName, t as IAMRoleProvider, u as restoreOwnWriteRemovals, v as iamEntityLeftByThisCreate, y as isEntityAlreadyExists } from "./iam-role-provider-
|
|
2
|
-
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-
|
|
1
|
+
import { _ as verifyOwnIdentityBeforeUpdate, a as stackOwnHolders, b as IamCreateClientCache, c as clearOwnWriteRemovals, d as takeOwnWriteRemovals, f as InlinePolicyPrincipalMismatchError, g as verifyInlinePolicyPrincipals, h as compareMembershipWrites, i as isStackOwnHolder, l as recordOwnWriteRemoval, m as assertInlinePolicyAttachTargets, n as collectInlinePolicyNamesManagedBySiblings, o as planInlinePolicyNames, p as MANAGED_POLICY_OWNER, r as heldText, s as sameInlinePolicyName, t as IAMRoleProvider, u as restoreOwnWriteRemovals, v as iamEntityLeftByThisCreate, y as isEntityAlreadyExists } from "./iam-role-provider-eIsyKbXN.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-c-SNKnID.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as
|
|
6
|
-
import { A as displayStackName, L as truncateCodePoints, 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 { Ct as RecordedIdentityMismatchError, Mt as identityTimestamp, Ot as recordedIdentityId, Rt as isoTimestampAttribute, St as RecordedIdentityError, _t as isPermissionDenial, bt as lookupEachName, gt as deniedIdentityReadRefusal, kt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted, vt as chunks, wt as assertRecordedIdentity, xt as withApiLimit, yt as isAccessDeniedError } from "./delete-started-
|
|
8
|
-
import { $ as effectiveInventoryItem, A as withRecordedCidrSpelling, B as LIFECYCLE_DEFAULT_STATUS, C as securityGroupReadbackDelays, D as stackIngressRuleHolder, E as singleSecurityGroupRuleId, F as clearLifecycleWritesOf, G as canonicalizeItemList, H as LIFECYCLE_RULE_PATH, I as lifecycleSettleTarget, J as lifecycleUsesFilterForm, K as effectiveLifecycleConfiguration, L as recordLifecycleWrite, M as sgRemovalRuleKey, N as sgRuleListMember, O as survivingRecordOfRuleId, P as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, Q as effectiveIntelligentTieringItem, R as settleLifecycleRead, S as reconcileSgRules, T as sgRuleKey, U as LIFECYCLE_TAG_FILTERS_PATH, V as LIFECYCLE_FILTER_PATH, W as canonicalizeBlock, X as EVENTBRIDGE_CONFIG_PATH, Y as parseCfnTimestamp, Z as effectiveAnalyticsItem, _ as ingressRuleIdentity, a as refuseRevertRevokingSiblingRules, at as declaresBucketObjectLock, b as isResendableSocketFailure, c as siblingIdOwnedSgRules, ct as isPlainObject$6, d as authorizeDefinitelyNotApplied, dt as shownLifecycleRuleId, et as effectiveNotificationConfiguration, f as canonicalizeSgInlineRuleProtocols, g as flattenIpPermissions, h as descriptionKey, i as resolveSecretDerivedPrincipals, it as configItemId, j as markCopiesAgreed, k as tagListsMatch, l as SG_READBACK_RETRY_DELAY_MS, lt as manualBucketDeletionClause, m as comparableIngressIdentity, n as holdsUnprovenSecretPrincipalToken, nt as caughtErrorName, o as sgRuleDiffKey, ot as declaresNestedObjectLock, p as canonicalizeSgRuleProtocol, q as lifecycleRuleScope, r as isResolvableSecretPrincipalList, rt as coerceCfnNumber, s as readSgIngressById, st as describeValue$1, t as runDestroyForStack, tt as eventBridgeEnabledOf, u as SG_RULE_PAGE_SIZE, ut as mergeLegacySingular, v as isConnectTimeout, w as securityGroupRuleMatchesCfnIngress, x as narrowIngressIpProtocol, y as isDefaultEgressRule, z as takeLifecycleWrite } from "./program-
|
|
9
|
-
import { $ as
|
|
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 {
|
|
12
|
-
import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-
|
|
4
|
+
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-sDf76v3S.js";
|
|
5
|
+
import { $ as PROTECTION_FLIP_RETRY_WAIT_MS, A as assertRegionMatch, At as readPrincipalLists, B as readNameProperty, C as isInsideWindow, Cn as injectiveKeyPrefix, Ct as startInterruptWatch, D as withoutServerErrorRetries, Dt as diffPrincipalNames, E as setBounded, Et as SECRET_DERIVED_READ_LIVE, F as isPlainImportJson, Ft as compositeIdFormatMessage, G as markNotGone, Gt as isSecretDerivedValue, H as remedyLogicalId, Ht as stateOrphanRecordRemedy, I as isPlainImportValue, It as compositeIdSeparatorRefusal, J as logGroupProtectionSite, Jt as withDerivedNameMasks, Kt as maskDeep, L as isQuotableImportValue, Lt as compositeIdSkipResult, M as holderRefusalRun, Mt as recordedPrincipalsRepair, N as VALUE_NOT_SHOWN, O as DriftReadRefusedError, Ot as holdsSecretDerivedEntry, P as importRemedyCommand, Pt as canonicalizeRoute53QueryName, Q as userPoolProtectionSite, R as normalizeAwsTagsToCfn, Rt as logicalIdShown, S as createAttemptKey, Sn as injectiveKey, St as isInterruptedWaitError, T as replayedSendWindow, U as resolveExplicitPhysicalId, Ut as createMaskedLogSinks, V as refusalTypeShown, Vt as segmentAfterAnchor, Wt as createMaskedRetryLogger, X as rdsFamilyProtectionSite, Y as observeThenDisableProtection, Zt as clearCreatedBeforeFailure, _ as AMBIGUOUS_LATCH_TTL_MS, _t as protectedReplacementAdvice, a as clearOnUpdateRemoval, an as markSupersedesEarlierCreate, at as ProtectionFlipRegistry, b as RecentIdSet, c as removedTemplateKeys, et as deleteAfterProtectionFlipWithFinalSnapshot, g as retractCreatedResource, gt as pasteableAwsCommand, ht as isAwsCliLiteral, in as markCreatedBeforeFailure, j as holderRefusalMask, k as RESOURCE_NOT_FOUND, kt as onlySecretDerived, l as withRemovalDefaults, lt as ElapsedBudget, m as reportCreatedResource, mt as WITHHELD_AWS_COMMAND, n as enclosingDeadlineRemainingMs, nt as isProceedDbStatus, ot as isTerminalDeleteFailure, pt as UNNAMEABLE_ID_CLAUSE, q as deleteWithProtectionCompensation, qt as maskerOrIdentity, rn as markAuxiliaryFailure, rt as isTerminalDbWaitStatus, st as protectionFlipKey, t as enclosingDeadlineExpired, tn as isAuxiliaryFailure, ut as ElapsedBudgetRegistry, v as AmbiguousCreateLatch, vt as renderDisableCommand, w as replayFollowedAmbiguousAttempt, x as ambiguousAttemptLead, xn as withPasteableAwsProfile, y as CREATION_DATE_SKEW_MARGIN_MS, z as quotedRemedyLogicalId, zt as packCompositeId } from "./resource-deadline-CKhiQ5jv.js";
|
|
6
|
+
import { A as displayStackName, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, 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-CpD8EJXa.js";
|
|
7
|
+
import { Ct as RecordedIdentityMismatchError, Mt as identityTimestamp, Ot as recordedIdentityId, Rt as isoTimestampAttribute, St as RecordedIdentityError, _t as isPermissionDenial, bt as lookupEachName, gt as deniedIdentityReadRefusal, kt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted, vt as chunks, wt as assertRecordedIdentity, xt as withApiLimit, yt as isAccessDeniedError } from "./delete-started-CsP3MTbA.js";
|
|
8
|
+
import { $ as effectiveInventoryItem, A as withRecordedCidrSpelling, B as LIFECYCLE_DEFAULT_STATUS, C as securityGroupReadbackDelays, D as stackIngressRuleHolder, E as singleSecurityGroupRuleId, F as clearLifecycleWritesOf, G as canonicalizeItemList, H as LIFECYCLE_RULE_PATH, I as lifecycleSettleTarget, J as lifecycleUsesFilterForm, K as effectiveLifecycleConfiguration, L as recordLifecycleWrite, M as sgRemovalRuleKey, N as sgRuleListMember, O as survivingRecordOfRuleId, P as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, Q as effectiveIntelligentTieringItem, R as settleLifecycleRead, S as reconcileSgRules, T as sgRuleKey, U as LIFECYCLE_TAG_FILTERS_PATH, V as LIFECYCLE_FILTER_PATH, W as canonicalizeBlock, X as EVENTBRIDGE_CONFIG_PATH, Y as parseCfnTimestamp, Z as effectiveAnalyticsItem, _ as ingressRuleIdentity, a as refuseRevertRevokingSiblingRules, at as declaresBucketObjectLock, b as isResendableSocketFailure, c as siblingIdOwnedSgRules, ct as isPlainObject$6, d as authorizeDefinitelyNotApplied, dt as shownLifecycleRuleId, et as effectiveNotificationConfiguration, f as canonicalizeSgInlineRuleProtocols, g as flattenIpPermissions, h as descriptionKey, i as resolveSecretDerivedPrincipals, it as configItemId, j as markCopiesAgreed, k as tagListsMatch, l as SG_READBACK_RETRY_DELAY_MS, lt as manualBucketDeletionClause, m as comparableIngressIdentity, n as holdsUnprovenSecretPrincipalToken, nt as caughtErrorName, o as sgRuleDiffKey, ot as declaresNestedObjectLock, p as canonicalizeSgRuleProtocol, q as lifecycleRuleScope, r as isResolvableSecretPrincipalList, rt as coerceCfnNumber, s as readSgIngressById, st as describeValue$1, t as runDestroyForStack, tt as eventBridgeEnabledOf, u as SG_RULE_PAGE_SIZE, ut as mergeLegacySingular, v as isConnectTimeout, w as securityGroupRuleMatchesCfnIngress, x as narrowIngressIpProtocol, y as isDefaultEgressRule, z as takeLifecycleWrite } from "./program-Bq6COj9L.js";
|
|
9
|
+
import { $ as desiredIndexEntriesByName, $i as getCurrentProducerRegions, $n as getCurrentNestedStackContext, $o as evaluateSignals, $r as canonicalizeIpv6Cidr, $t as reverseMapTableContributorInsights, Ao as KMS_DEFAULT_KEY_POLICY_ID, At as isDynamoDBTableArnIn, B as declaredStreamPolicyMember, Bc as LEGACY_HANDLE_ID_PREFIX, Bi as redactedDeleteAddressFields, Bo as reReadUntilSettled, Bt as planVectorIndexUpdates, Co as withoutSiblingOwned, Ct as sseSpecificationRefusal, Cu as withheldAccountClause, Dc as getAccountInfo, Dt as TAGS_BASELINE_REREAD_DELAYS_MS, Eo as getStackRecords, Es as withIndeterminateGuard, Et as tableNameReleaseWait, Fo as declaredPolicyDocument, Fs as isSettledInstanceState, Ft as isTtlAlreadyDisabled, G as streamDeclaresPolicy, Go as policyContentKey, Gr as siblingOwnedSgRuleIdentities, Gt as CONTRIBUTOR_INSIGHTS_KEY, H as planStreamMemberOps, Ho as warnUnsettledMember, Ht as vectorIndexesForCreate, Hu as normalizeRecordName, Io as efsPolicyMatchesDeclared, Is as connectInstanceIdOf, It as isTtlRateLimited, J as streamPolicyMatchesDeclared, Jr as SG_RULE_ID_PATTERN, Jt as indexDeclaresContributorInsights, K as streamDeclaresTags, Kn as getNestedRevertRun, Kt as completeTableContributorInsightsBaseline, L as DynamoDBGlobalTableProvider, Ln as licensedNameHolder, Lo as lambdaPermissionMatchesDeclared, Lt as planTimeToLive, Ma as replacedDeleteFailureVerdict, Mn as childRowTags, Mo as OWN_WRITE_REREAD_DELAYS_MS, Mt as settleWrittenTags, Nd as rewriteTemplateAssetReferences, Nn as childStackTags, No as SNS_DEFAULT_POLICY_ID, Ot as clearTagWrites, Po as declaredMemberDocument, Pt as takeTagWrite, Pu as withoutSdkUnwiredProperties, Q as deletionProtectionRefusal, Qc as APPSYNC_APIKEY_ARN_RESOURCE_PATH, Qo as classifyHandleUrl, Qr as sgProtocolKey, Qt as reverseMapIndexContributorInsights, R as STREAM_POLICY_KEY, Ri as REDACTED_DELETE_ADDRESS_SKIP_REASON, Ro as memberReadFailure, Rt as readTtlSpec, Si as reserveStackCreateToken, So as withoutSiblingAttachedArns, St as readCapacityNumber, Su as accountArgs, Ts as deleteSkipReason, Tt as tableDeleteGoneWait, Uo as verbatimEchoDriftKeys, Ut as vectorIndexesSettled, Uu as planSubscriptionAttributes, V as declaredStreamTagsMember, Vc as isLegacyHandleId, Vi as redactedDeleteAddressSkip, Vo as settleDeclaredMember, Vt as readbackVectorIndexes, W as reverseMapStreamPolicy, Wo as attemptedPolicyDocument, Wt as vectorIndexesShapeDetail, Wu as wireAttributeValue, X as canonicalizeStaleIndexDescription, Xc as toCfnInteger, Xr as recordedSgRuleId, Xt as planIndexContributorInsightsOps, Y as streamTagsMatchDeclared, Yc as isWarmThroughputDecrease, Yn as revertNestedChildFromJournal, Yr as cfnIngressPortValue, Yt as planContributorInsightsOp, Z as declaresIndexList, Zc as toFiniteNumber, Zo as WaitConditionSignalStore, Zt as readContributorInsightsSpec, _n as hasCdkAutoDeleteTag, _t as isPlainCapacityBlock, _u as refuseMalformedResourcesForDestroy, ac as s3BucketRegionalDomainName, an as deleteBudgetKey, at as coerceWarmThroughput, bc as outputReferenceProvenanceOf, bi as earliestDefined, bo as collectPrincipalsAttachingPolicy, bs as waitForGoneAfterDelete, bt as maskLeafValue, cf as displayAssemblyPath, cn as DELETE_INDEX_WAIT_PROCEED_NOTE, cs as getCurrentResourceSecrets, ct as isRefusedWarmThroughput, dd as findNestedTemplateTreeDefect, df as resolveAssemblyPath, dn as deleteTableWithIndexBusyRetry, dt as trimUnsentWarmMembers, ei as canonicalizeIpv4Cidr, el as maskedSecretSegment, en as stripIndexContributorInsights, er as withNestedStackContext, et as gsiUnsendableChangeRefusal, fd as isAbsoluteAssetPath, fi as calculateResourceDrift, fl as passedParameterClassesOf, fn as maskedLogger, ft as warmThroughputAlreadyMatches, gc as parseWebACLArn, gn as S3_AUTO_DELETE_OBJECTS_TAG, gt as hasUsableDeclaredCapacity, hn as ECR_AUTO_DELETE_IMAGES_TAG, ht as deleteTableRetryDelays, ic as s3BucketDualStackDomainName, in as compensateRemovedDeletionProtection, it as sameJsonValue, jt as recordTagWrite, ju as findSdkUnwiredProperties, ks as markWaitAbandoned, ld as stringifyValue, ln as INDEX_SETTLE_POLL_INTERVAL_MS, lt as readbackWarmThroughput, md as renderNestedTemplateTreeDefect, mn as waitForIndexesSettled, mt as KINESIS_DISABLE_PENDING_STATUSES, nc as s3BucketArn, nn as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, no as secretNamedAttributeNamesOf, nt as projectIndexesOnto, oc as s3BucketWebsiteUrl, on as resolveDynamoDbDeleteBudgetClock, ot as declaresWarmThroughput, pd as listNestedTemplateRows, pn as relayedIndexBusyDelete, pt as KINESIS_DESTINATION_SETTLE_POLL_MS, q as streamMemberRefusals, qr as withoutSiblingOwnedSgRules, qt as contributorInsightsRefusals, rc as s3BucketDomainName, rn as beginDeleteWait, rt as reverseMapSecondaryIndex, sf as describeFileReadFailure, sn as resolveDynamoDbDeleteBudgetMs, st as desiredBagIsInformative, su as refuseMalformedNestedChildOutputs, t as DeployEngine, tn as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, tt as localSecondaryIndexesKey, uf as renderAssemblyPathEscape, un as TABLE_INDEX_NOUN, ut as sentWarmThroughputMembers, vn as isTruthyCfnBoolean, vo as collectGroupsAddedBySiblings, vs as waitForLambdaFunctionActive, vt as isTableName, wi as acquireIdempotencyToken, wo as awaitInFlightSibling, wt as sseSpecificationToSend, xd as decodeListingKey, xo as isStoredExpression, xt as pointInTimeRecoveryRefusal, yo as collectManagedPolicyArnsAttachedBySiblings, yt as mapSSESpecification, z as STREAM_TAGS_KEY, zi as isRedactedRecordedValue, zo as policyDocumentMatchesDeclared, zt as sendTtlWaitingOutRateLimit } from "./deploy-engine-CSe_egmn.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-B-V5B42P.js";
|
|
11
|
+
import { G as timePhase, M as withRetry, _ as onlySecretReferencesDiffer, a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, f as markRefusedBeforeApplying, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedPerTypeResourceTimeoutMs, u as getPriorAttempts, v as unchangedBehindSecretReference } from "./ec2-termination-protection-CmWOst0b.js";
|
|
12
|
+
import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-X3fAZHTr.js";
|
|
13
13
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
14
14
|
import { f as ambientRegion, r as awsEndpointOverrideActive } from "./aws-client-defaults-DAebi99J.js";
|
|
15
|
-
import { $ as snapshotPassProvenance,
|
|
16
|
-
import { RDSProvider } from "./rds-provider-
|
|
17
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
18
|
-
import { ASGProvider } from "./asg-provider-
|
|
15
|
+
import { $ as snapshotPassProvenance, C as passedNoEchoParametersOf, Ft as dynamicReferenceTokens, I as markSameGenerationBag, W as redactForState, Z as recordReferenceProvenanceEntry, _n as carriesSecretMask, a as emrClusterInstancesReplaced, c as parseLambdaFunctionAddress, cn as recoverMaskedOutput, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, jt as withoutPhysicalNameCopies, l as sameLambdaFunctionAddress, ln as physicalNameCopiesOf, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, s as lambdaFunctionNameForMask, un as recordAttributeIdCopy } from "./replacement-rules-FVwMQOyO.js";
|
|
16
|
+
import { RDSProvider } from "./rds-provider-DtwBQKQa.js";
|
|
17
|
+
import { NeptuneProvider } from "./neptune-provider-DjLlFfkQ.js";
|
|
18
|
+
import { ASGProvider } from "./asg-provider-D0P2oc54.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, DeleteConflictException, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetLoginProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListPoliciesCommand, ListPolicyTagsCommand, ListPolicyVersionsCommand, ListUserPoliciesCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagPolicyCommand, TagUserCommand, UntagPolicyCommand, UntagUserCommand, UpdateAccessKeyCommand, UpdateGroupCommand, UpdateLoginProfileCommand, UpdateUserCommand } from "@aws-sdk/client-iam";
|
|
@@ -49,30 +49,31 @@ import { AddTagsToResourceCommand as AddTagsToResourceCommand$2, CreateDBProxyCo
|
|
|
49
49
|
import { ListTagsForResourceCommand as ListTagsForResourceCommand$11, S3ControlClient, TagResourceCommand as TagResourceCommand$13, UntagResourceCommand as UntagResourceCommand$13 } from "@aws-sdk/client-s3-control";
|
|
50
50
|
import * as zlib from "node:zlib";
|
|
51
51
|
import { DeleteAlarmCommand, GetAlarmsCommand, LightsailClient, PutAlarmCommand } from "@aws-sdk/client-lightsail";
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
52
|
+
import { ConnectClient, CreateInstanceCommand, DeleteInstanceCommand, DescribeInstanceAttributeCommand as DescribeInstanceAttributeCommand$1, DescribeInstanceCommand, InvalidRequestException, ListInstanceAttributesCommand, ListInstancesCommand, ResourceNotFoundException as ResourceNotFoundException$11, TagResourceCommand as TagResourceCommand$14, UntagResourceCommand as UntagResourceCommand$14, UpdateInstanceAttributeCommand } from "@aws-sdk/client-connect";
|
|
53
|
+
import { ApiGatewayV2Client, CreateApiCommand, CreateAuthorizerCommand as CreateAuthorizerCommand$1, CreateIntegrationCommand, CreateRouteCommand as CreateRouteCommand$1, CreateStageCommand as CreateStageCommand$1, DeleteAccessLogSettingsCommand, DeleteApiCommand, DeleteAuthorizerCommand as DeleteAuthorizerCommand$1, DeleteCorsConfigurationCommand, DeleteIntegrationCommand as DeleteIntegrationCommand$1, DeleteRouteCommand as DeleteRouteCommand$1, DeleteRouteRequestParameterCommand, DeleteRouteSettingsCommand, DeleteStageCommand as DeleteStageCommand$1, GetApiCommand, GetApisCommand, GetAuthorizerCommand as GetAuthorizerCommand$1, GetAuthorizersCommand as GetAuthorizersCommand$1, GetIntegrationCommand, GetIntegrationsCommand, GetRouteCommand, GetStageCommand as GetStageCommand$1, NotFoundException as NotFoundException$3, TagResourceCommand as TagResourceCommand$15, UntagResourceCommand as UntagResourceCommand$15, UpdateApiCommand, UpdateAuthorizerCommand as UpdateAuthorizerCommand$1, UpdateIntegrationCommand, UpdateRouteCommand, UpdateStageCommand as UpdateStageCommand$1 } from "@aws-sdk/client-apigatewayv2";
|
|
54
|
+
import { CreateStateMachineCommand, DeleteStateMachineCommand, DescribeStateMachineCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$12, SFNClient, StateMachineDoesNotExist, TagResourceCommand as TagResourceCommand$16, UntagResourceCommand as UntagResourceCommand$16, UpdateStateMachineCommand } from "@aws-sdk/client-sfn";
|
|
55
|
+
import { CreateClusterCommand, CreateServiceCommand, DeleteClusterCommand, DeleteServiceCommand, DeregisterTaskDefinitionCommand, DescribeClustersCommand, DescribeServicesCommand, DescribeTaskDefinitionCommand, ECSClient, ListTaskDefinitionsCommand, PutClusterCapacityProvidersCommand, RegisterTaskDefinitionCommand, TagResourceCommand as TagResourceCommand$17, UntagResourceCommand as UntagResourceCommand$17, UpdateClusterCommand, UpdateServiceCommand, waitUntilServicesStable } from "@aws-sdk/client-ecs";
|
|
55
56
|
import { AddTagsToResourceCommand as AddTagsToResourceCommand$3, CreateDBClusterCommand as CreateDBClusterCommand$1, CreateDBInstanceCommand as CreateDBInstanceCommand$1, CreateDBSubnetGroupCommand as CreateDBSubnetGroupCommand$1, DeleteDBClusterCommand as DeleteDBClusterCommand$1, DeleteDBInstanceCommand as DeleteDBInstanceCommand$1, DeleteDBSubnetGroupCommand as DeleteDBSubnetGroupCommand$1, DescribeDBClusterSnapshotsCommand as DescribeDBClusterSnapshotsCommand$1, DescribeDBClustersCommand as DescribeDBClustersCommand$1, DescribeDBInstancesCommand as DescribeDBInstancesCommand$1, DescribeDBSubnetGroupsCommand as DescribeDBSubnetGroupsCommand$1, DescribeGlobalClustersCommand as DescribeGlobalClustersCommand$1, DocDBClient, ListTagsForResourceCommand as ListTagsForResourceCommand$13, ModifyDBClusterCommand as ModifyDBClusterCommand$1, ModifyDBInstanceCommand as ModifyDBInstanceCommand$1, ModifyDBSubnetGroupCommand as ModifyDBSubnetGroupCommand$1, RemoveFromGlobalClusterCommand as RemoveFromGlobalClusterCommand$1, RemoveTagsFromResourceCommand as RemoveTagsFromResourceCommand$3, RestoreDBClusterFromSnapshotCommand as RestoreDBClusterFromSnapshotCommand$1, RestoreDBClusterToPointInTimeCommand as RestoreDBClusterToPointInTimeCommand$1 } from "@aws-sdk/client-docdb";
|
|
56
|
-
import { AppConfigClient, CreateEnvironmentCommand, DeleteEnvironmentCommand, GetEnvironmentCommand, TagResourceCommand as TagResourceCommand$
|
|
57
|
-
import { CreateWebACLCommand, DeleteWebACLCommand, GetWebACLCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$14, TagResourceCommand as TagResourceCommand$
|
|
58
|
-
import { AddCustomAttributesCommand, CognitoIdentityProviderClient, CreateUserPoolCommand, DeleteUserPoolCommand, DescribeUserPoolCommand, GetUserPoolMfaConfigCommand, ListUserPoolsCommand, ResourceNotFoundException as ResourceNotFoundException$
|
|
59
|
-
import { CreateHttpNamespaceCommand, CreatePrivateDnsNamespaceCommand, CreatePublicDnsNamespaceCommand, CreateServiceCommand as CreateServiceCommand$1, DeleteNamespaceCommand, DeleteServiceAttributesCommand, DeleteServiceCommand as DeleteServiceCommand$1, GetNamespaceCommand, GetOperationCommand, GetServiceAttributesCommand, GetServiceCommand, ListNamespacesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$15, NamespaceNotFound, ResourceInUse, ResourceNotFoundException as ResourceNotFoundException$
|
|
60
|
-
import { AppSyncClient, CreateApiKeyCommand, CreateDataSourceCommand, CreateGraphqlApiCommand, CreateResolverCommand, DeleteApiKeyCommand, DeleteDataSourceCommand, DeleteGraphqlApiCommand, DeleteResolverCommand, GetDataSourceCommand, GetGraphqlApiCommand, GetGraphqlApiEnvironmentVariablesCommand, GetIntrospectionSchemaCommand, GetResolverCommand, ListApiKeysCommand, ListGraphqlApisCommand, NotFoundException as NotFoundException$4, PutGraphqlApiEnvironmentVariablesCommand, StartSchemaCreationCommand, TagResourceCommand as TagResourceCommand$
|
|
61
|
-
import { ConcurrentModificationException, CrawlerRunningException, CreateConnectionCommand, CreateCrawlerCommand, CreateDatabaseCommand, CreateJobCommand, CreateSecurityConfigurationCommand, CreateTableCommand as CreateTableCommand$1, CreateTriggerCommand, CreateWorkflowCommand, DeleteConnectionCommand, DeleteCrawlerCommand, DeleteDatabaseCommand, DeleteJobCommand, DeleteSecurityConfigurationCommand, DeleteTableCommand as DeleteTableCommand$1, DeleteTriggerCommand, DeleteWorkflowCommand, EntityNotFoundException, GetConnectionCommand, GetCrawlerCommand, GetDatabaseCommand, GetJobCommand, GetSecurityConfigurationCommand, GetTableCommand, GetTagsCommand, GetTriggerCommand, GetWorkflowCommand, GlueClient, StartCrawlerScheduleCommand, StartTriggerCommand, StopCrawlerCommand, StopCrawlerScheduleCommand, StopTriggerCommand, TagResourceCommand as TagResourceCommand$
|
|
62
|
-
import { BudgetsClient, CreateBudgetCommand, CreateNotificationCommand, CreateSubscriberCommand, DeleteBudgetCommand, DeleteNotificationCommand, DeleteSubscriberCommand, DescribeBudgetCommand, DescribeNotificationsForBudgetCommand, DescribeSubscribersForNotificationCommand, DuplicateRecordException, ListTagsForResourceCommand as ListTagsForResourceCommand$16, NotFoundException as NotFoundException$5, TagResourceCommand as TagResourceCommand$
|
|
63
|
-
import { AddTagsToStreamCommand, CreateStreamCommand, DecreaseStreamRetentionPeriodCommand, DeleteStreamCommand, DeregisterStreamConsumerCommand, DescribeStreamCommand, DescribeStreamConsumerCommand, DescribeStreamSummaryCommand, DisableEnhancedMonitoringCommand, EnableEnhancedMonitoringCommand, IncreaseStreamRetentionPeriodCommand, KinesisClient, ListTagsForResourceCommand as ListTagsForResourceCommand$17, ListTagsForStreamCommand, RegisterStreamConsumerCommand, RemoveTagsFromStreamCommand, ResourceNotFoundException as ResourceNotFoundException$
|
|
64
|
-
import { CreateScheduleCommand, DeleteScheduleCommand, GetScheduleCommand, ListSchedulesCommand, ResourceNotFoundException as ResourceNotFoundException$
|
|
65
|
-
import { CreatePipeCommand, DeletePipeCommand, DescribePipeCommand, NotFoundException as NotFoundException$6, PipesClient, TagResourceCommand as TagResourceCommand$
|
|
66
|
-
import { AccessPointAlreadyExists, AccessPointNotFound, CreateAccessPointCommand, CreateFileSystemCommand, CreateMountTargetCommand, DeleteAccessPointCommand, DeleteFileSystemCommand, DeleteFileSystemPolicyCommand, DeleteMountTargetCommand, DeleteReplicationConfigurationCommand, DescribeAccessPointsCommand, DescribeBackupPolicyCommand, DescribeFileSystemPolicyCommand, DescribeFileSystemsCommand, DescribeLifecycleConfigurationCommand, DescribeMountTargetSecurityGroupsCommand, DescribeMountTargetsCommand, DescribeReplicationConfigurationsCommand, EFSClient, FileSystemAlreadyExists, FileSystemNotFound, ModifyMountTargetSecurityGroupsCommand, MountTargetNotFound, PutBackupPolicyCommand, PutFileSystemPolicyCommand, PutLifecycleConfigurationCommand, TagResourceCommand as TagResourceCommand$
|
|
67
|
-
import { AssociateFileSystemAliasesCommand, CreateFileSystemCommand as CreateFileSystemCommand$1, CreateFileSystemFromBackupCommand, DeleteFileSystemCommand as DeleteFileSystemCommand$1, DescribeFileSystemAliasesCommand, DescribeFileSystemsCommand as DescribeFileSystemsCommand$1, DisassociateFileSystemAliasesCommand, FSxClient, FileSystemNotFound as FileSystemNotFound$1, TagResourceCommand as TagResourceCommand$
|
|
68
|
-
import { AddInstanceFleetCommand, AddInstanceGroupsCommand, AddTagsCommand as AddTagsCommand$1, DescribeClusterCommand, EMRClient, GetAutoTerminationPolicyCommand, GetManagedScalingPolicyCommand, InvalidRequestException, ListClustersCommand, ListInstanceFleetsCommand, ListInstanceGroupsCommand, ModifyClusterCommand, ModifyInstanceFleetCommand, ModifyInstanceGroupsCommand, PutAutoScalingPolicyCommand, PutAutoTerminationPolicyCommand, PutManagedScalingPolicyCommand, RemoveAutoScalingPolicyCommand, RemoveAutoTerminationPolicyCommand, RemoveManagedScalingPolicyCommand, RemoveTagsCommand as RemoveTagsCommand$1, RunJobFlowCommand, SetTerminationProtectionCommand, SetUnhealthyNodeReplacementCommand, SetVisibleToAllUsersCommand, TerminateJobFlowsCommand } from "@aws-sdk/client-emr";
|
|
69
|
-
import { CreateDeliveryStreamCommand, DeleteDeliveryStreamCommand, DescribeDeliveryStreamCommand, FirehoseClient, ListTagsForDeliveryStreamCommand, ResourceNotFoundException as ResourceNotFoundException$
|
|
70
|
-
import { AddTagsCommand as AddTagsCommand$2, CloudTrailClient, CreateTrailCommand, DeleteTrailCommand, GetEventConfigurationCommand, GetEventSelectorsCommand, GetInsightSelectorsCommand, GetTrailCommand, GetTrailStatusCommand, InsightNotEnabledException, ListTagsCommand as ListTagsCommand$2, PutEventConfigurationCommand, PutEventSelectorsCommand, PutInsightSelectorsCommand, RemoveTagsCommand as RemoveTagsCommand$2, ResourceNotFoundException as ResourceNotFoundException$
|
|
71
|
-
import { BatchGetProjectsCommand, CodeBuildClient, CreateProjectCommand, CreateWebhookCommand, DeleteProjectCommand, DeleteWebhookCommand, ResourceNotFoundException as ResourceNotFoundException$
|
|
72
|
-
import { CodeCommitClient, CreateCommitCommand, CreateRepositoryCommand as CreateRepositoryCommand$1, DeleteRepositoryCommand as DeleteRepositoryCommand$1, GetRepositoryCommand, GetRepositoryTriggersCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$18, PutRepositoryTriggersCommand, RepositoryDoesNotExistException, TagResourceCommand as TagResourceCommand$
|
|
73
|
-
import { CreateLifecyclePolicyCommand, DLMClient, DeleteLifecyclePolicyCommand as DeleteLifecyclePolicyCommand$1, GetLifecyclePoliciesCommand, GetLifecyclePolicyCommand as GetLifecyclePolicyCommand$1, ResourceNotFoundException as ResourceNotFoundException$
|
|
74
|
-
import { CreateVectorBucketCommand, DeleteIndexCommand, DeleteVectorBucketCommand, GetVectorBucketCommand, ListIndexesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$19, S3VectorsClient, TagResourceCommand as TagResourceCommand$
|
|
75
|
-
import { CreateNamespaceCommand, CreateTableBucketCommand, CreateTableCommand as CreateTableCommand$2, DeleteNamespaceCommand as DeleteNamespaceCommand$1, DeleteTableBucketCommand, DeleteTableBucketMetricsConfigurationCommand, DeleteTableBucketReplicationCommand, DeleteTableCommand as DeleteTableCommand$2, GetNamespaceCommand as GetNamespaceCommand$1, GetTableBucketCommand, GetTableBucketEncryptionCommand, GetTableBucketLoggingCommand, GetTableBucketMaintenanceConfigurationCommand, GetTableBucketMetricsConfigurationCommand, GetTableBucketReplicationCommand, GetTableBucketStorageClassCommand, GetTableCommand as GetTableCommand$1, GetTableMaintenanceConfigurationCommand, ListNamespacesCommand as ListNamespacesCommand$1, ListTableBucketsCommand, ListTablesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$20, NotFoundException as NotFoundException$7, PutTableBucketEncryptionCommand, PutTableBucketLoggingCommand, PutTableBucketMaintenanceConfigurationCommand, PutTableBucketMetricsConfigurationCommand, PutTableBucketReplicationCommand, PutTableBucketStorageClassCommand, PutTableMaintenanceConfigurationCommand, RenameTableCommand, S3TablesClient, TagResourceCommand as TagResourceCommand$
|
|
57
|
+
import { AppConfigClient, CreateEnvironmentCommand, DeleteEnvironmentCommand, GetEnvironmentCommand, TagResourceCommand as TagResourceCommand$18, UntagResourceCommand as UntagResourceCommand$18, UpdateEnvironmentCommand } from "@aws-sdk/client-appconfig";
|
|
58
|
+
import { CreateWebACLCommand, DeleteWebACLCommand, GetWebACLCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$14, TagResourceCommand as TagResourceCommand$19, UntagResourceCommand as UntagResourceCommand$19, UpdateWebACLCommand, WAFNonexistentItemException, WAFV2Client } from "@aws-sdk/client-wafv2";
|
|
59
|
+
import { AddCustomAttributesCommand, CognitoIdentityProviderClient, CreateUserPoolCommand, DeleteUserPoolCommand, DescribeUserPoolCommand, GetUserPoolMfaConfigCommand, ListUserPoolsCommand, ResourceNotFoundException as ResourceNotFoundException$12, SetUserPoolMfaConfigCommand, UntagResourceCommand as UntagResourceCommand$20, UpdateUserPoolCommand } from "@aws-sdk/client-cognito-identity-provider";
|
|
60
|
+
import { CreateHttpNamespaceCommand, CreatePrivateDnsNamespaceCommand, CreatePublicDnsNamespaceCommand, CreateServiceCommand as CreateServiceCommand$1, DeleteNamespaceCommand, DeleteServiceAttributesCommand, DeleteServiceCommand as DeleteServiceCommand$1, GetNamespaceCommand, GetOperationCommand, GetServiceAttributesCommand, GetServiceCommand, ListNamespacesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$15, NamespaceNotFound, ResourceInUse, ResourceNotFoundException as ResourceNotFoundException$13, ServiceDiscoveryClient, ServiceNotFound, TagResourceCommand as TagResourceCommand$20, UntagResourceCommand as UntagResourceCommand$21, UpdateHttpNamespaceCommand, UpdatePrivateDnsNamespaceCommand, UpdatePublicDnsNamespaceCommand, UpdateServiceAttributesCommand, UpdateServiceCommand as UpdateServiceCommand$1 } from "@aws-sdk/client-servicediscovery";
|
|
61
|
+
import { AppSyncClient, CreateApiKeyCommand, CreateDataSourceCommand, CreateGraphqlApiCommand, CreateResolverCommand, DeleteApiKeyCommand, DeleteDataSourceCommand, DeleteGraphqlApiCommand, DeleteResolverCommand, GetDataSourceCommand, GetGraphqlApiCommand, GetGraphqlApiEnvironmentVariablesCommand, GetIntrospectionSchemaCommand, GetResolverCommand, ListApiKeysCommand, ListGraphqlApisCommand, NotFoundException as NotFoundException$4, PutGraphqlApiEnvironmentVariablesCommand, StartSchemaCreationCommand, TagResourceCommand as TagResourceCommand$21, UntagResourceCommand as UntagResourceCommand$22, UpdateApiKeyCommand, UpdateDataSourceCommand, UpdateGraphqlApiCommand, UpdateResolverCommand } from "@aws-sdk/client-appsync";
|
|
62
|
+
import { ConcurrentModificationException, CrawlerRunningException, CreateConnectionCommand, CreateCrawlerCommand, CreateDatabaseCommand, CreateJobCommand, CreateSecurityConfigurationCommand, CreateTableCommand as CreateTableCommand$1, CreateTriggerCommand, CreateWorkflowCommand, DeleteConnectionCommand, DeleteCrawlerCommand, DeleteDatabaseCommand, DeleteJobCommand, DeleteSecurityConfigurationCommand, DeleteTableCommand as DeleteTableCommand$1, DeleteTriggerCommand, DeleteWorkflowCommand, EntityNotFoundException, GetConnectionCommand, GetCrawlerCommand, GetDatabaseCommand, GetJobCommand, GetSecurityConfigurationCommand, GetTableCommand, GetTagsCommand, GetTriggerCommand, GetWorkflowCommand, GlueClient, StartCrawlerScheduleCommand, StartTriggerCommand, StopCrawlerCommand, StopCrawlerScheduleCommand, StopTriggerCommand, TagResourceCommand as TagResourceCommand$22, UntagResourceCommand as UntagResourceCommand$23, UpdateConnectionCommand, UpdateCrawlerCommand, UpdateDatabaseCommand, UpdateJobCommand, UpdateTableCommand as UpdateTableCommand$1, UpdateTriggerCommand, UpdateWorkflowCommand } from "@aws-sdk/client-glue";
|
|
63
|
+
import { BudgetsClient, CreateBudgetCommand, CreateNotificationCommand, CreateSubscriberCommand, DeleteBudgetCommand, DeleteNotificationCommand, DeleteSubscriberCommand, DescribeBudgetCommand, DescribeNotificationsForBudgetCommand, DescribeSubscribersForNotificationCommand, DuplicateRecordException, ListTagsForResourceCommand as ListTagsForResourceCommand$16, NotFoundException as NotFoundException$5, TagResourceCommand as TagResourceCommand$23, UntagResourceCommand as UntagResourceCommand$24, UpdateBudgetCommand } from "@aws-sdk/client-budgets";
|
|
64
|
+
import { AddTagsToStreamCommand, CreateStreamCommand, DecreaseStreamRetentionPeriodCommand, DeleteStreamCommand, DeregisterStreamConsumerCommand, DescribeStreamCommand, DescribeStreamConsumerCommand, DescribeStreamSummaryCommand, DisableEnhancedMonitoringCommand, EnableEnhancedMonitoringCommand, IncreaseStreamRetentionPeriodCommand, KinesisClient, ListTagsForResourceCommand as ListTagsForResourceCommand$17, ListTagsForStreamCommand, RegisterStreamConsumerCommand, RemoveTagsFromStreamCommand, ResourceNotFoundException as ResourceNotFoundException$14, StartStreamEncryptionCommand, StopStreamEncryptionCommand, TagResourceCommand as TagResourceCommand$24, UntagResourceCommand as UntagResourceCommand$25, UpdateMaxRecordSizeCommand, UpdateShardCountCommand, UpdateStreamModeCommand, UpdateStreamRecordDistributionStrategyCommand } from "@aws-sdk/client-kinesis";
|
|
65
|
+
import { CreateScheduleCommand, DeleteScheduleCommand, GetScheduleCommand, ListSchedulesCommand, ResourceNotFoundException as ResourceNotFoundException$15, SchedulerClient, UpdateScheduleCommand } from "@aws-sdk/client-scheduler";
|
|
66
|
+
import { CreatePipeCommand, DeletePipeCommand, DescribePipeCommand, NotFoundException as NotFoundException$6, PipesClient, TagResourceCommand as TagResourceCommand$25, UntagResourceCommand as UntagResourceCommand$26, UpdatePipeCommand } from "@aws-sdk/client-pipes";
|
|
67
|
+
import { AccessPointAlreadyExists, AccessPointNotFound, CreateAccessPointCommand, CreateFileSystemCommand, CreateMountTargetCommand, DeleteAccessPointCommand, DeleteFileSystemCommand, DeleteFileSystemPolicyCommand, DeleteMountTargetCommand, DeleteReplicationConfigurationCommand, DescribeAccessPointsCommand, DescribeBackupPolicyCommand, DescribeFileSystemPolicyCommand, DescribeFileSystemsCommand, DescribeLifecycleConfigurationCommand, DescribeMountTargetSecurityGroupsCommand, DescribeMountTargetsCommand, DescribeReplicationConfigurationsCommand, EFSClient, FileSystemAlreadyExists, FileSystemNotFound, ModifyMountTargetSecurityGroupsCommand, MountTargetNotFound, PutBackupPolicyCommand, PutFileSystemPolicyCommand, PutLifecycleConfigurationCommand, TagResourceCommand as TagResourceCommand$26, UntagResourceCommand as UntagResourceCommand$27, UpdateFileSystemCommand, UpdateFileSystemProtectionCommand } from "@aws-sdk/client-efs";
|
|
68
|
+
import { AssociateFileSystemAliasesCommand, CreateFileSystemCommand as CreateFileSystemCommand$1, CreateFileSystemFromBackupCommand, DeleteFileSystemCommand as DeleteFileSystemCommand$1, DescribeFileSystemAliasesCommand, DescribeFileSystemsCommand as DescribeFileSystemsCommand$1, DisassociateFileSystemAliasesCommand, FSxClient, FileSystemNotFound as FileSystemNotFound$1, TagResourceCommand as TagResourceCommand$27, UntagResourceCommand as UntagResourceCommand$28, UpdateFileSystemCommand as UpdateFileSystemCommand$1 } from "@aws-sdk/client-fsx";
|
|
69
|
+
import { AddInstanceFleetCommand, AddInstanceGroupsCommand, AddTagsCommand as AddTagsCommand$1, DescribeClusterCommand, EMRClient, GetAutoTerminationPolicyCommand, GetManagedScalingPolicyCommand, InvalidRequestException as InvalidRequestException$1, ListClustersCommand, ListInstanceFleetsCommand, ListInstanceGroupsCommand, ModifyClusterCommand, ModifyInstanceFleetCommand, ModifyInstanceGroupsCommand, PutAutoScalingPolicyCommand, PutAutoTerminationPolicyCommand, PutManagedScalingPolicyCommand, RemoveAutoScalingPolicyCommand, RemoveAutoTerminationPolicyCommand, RemoveManagedScalingPolicyCommand, RemoveTagsCommand as RemoveTagsCommand$1, RunJobFlowCommand, SetTerminationProtectionCommand, SetUnhealthyNodeReplacementCommand, SetVisibleToAllUsersCommand, TerminateJobFlowsCommand } from "@aws-sdk/client-emr";
|
|
70
|
+
import { CreateDeliveryStreamCommand, DeleteDeliveryStreamCommand, DescribeDeliveryStreamCommand, FirehoseClient, ListTagsForDeliveryStreamCommand, ResourceNotFoundException as ResourceNotFoundException$16, StartDeliveryStreamEncryptionCommand, StopDeliveryStreamEncryptionCommand, TagDeliveryStreamCommand, UntagDeliveryStreamCommand, UpdateDestinationCommand } from "@aws-sdk/client-firehose";
|
|
71
|
+
import { AddTagsCommand as AddTagsCommand$2, CloudTrailClient, CreateTrailCommand, DeleteTrailCommand, GetEventConfigurationCommand, GetEventSelectorsCommand, GetInsightSelectorsCommand, GetTrailCommand, GetTrailStatusCommand, InsightNotEnabledException, ListTagsCommand as ListTagsCommand$2, PutEventConfigurationCommand, PutEventSelectorsCommand, PutInsightSelectorsCommand, RemoveTagsCommand as RemoveTagsCommand$2, ResourceNotFoundException as ResourceNotFoundException$17, StartLoggingCommand, StopLoggingCommand, TrailNotFoundException, UpdateTrailCommand } from "@aws-sdk/client-cloudtrail";
|
|
72
|
+
import { BatchGetProjectsCommand, CodeBuildClient, CreateProjectCommand, CreateWebhookCommand, DeleteProjectCommand, DeleteWebhookCommand, ResourceNotFoundException as ResourceNotFoundException$18, UpdateProjectCommand, UpdateProjectVisibilityCommand, UpdateWebhookCommand } from "@aws-sdk/client-codebuild";
|
|
73
|
+
import { CodeCommitClient, CreateCommitCommand, CreateRepositoryCommand as CreateRepositoryCommand$1, DeleteRepositoryCommand as DeleteRepositoryCommand$1, GetRepositoryCommand, GetRepositoryTriggersCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$18, PutRepositoryTriggersCommand, RepositoryDoesNotExistException, TagResourceCommand as TagResourceCommand$28, UntagResourceCommand as UntagResourceCommand$29, UpdateRepositoryDescriptionCommand, UpdateRepositoryEncryptionKeyCommand, UpdateRepositoryNameCommand } from "@aws-sdk/client-codecommit";
|
|
74
|
+
import { CreateLifecyclePolicyCommand, DLMClient, DeleteLifecyclePolicyCommand as DeleteLifecyclePolicyCommand$1, GetLifecyclePoliciesCommand, GetLifecyclePolicyCommand as GetLifecyclePolicyCommand$1, ResourceNotFoundException as ResourceNotFoundException$19, TagResourceCommand as TagResourceCommand$29, UntagResourceCommand as UntagResourceCommand$30, UpdateLifecyclePolicyCommand } from "@aws-sdk/client-dlm";
|
|
75
|
+
import { CreateVectorBucketCommand, DeleteIndexCommand, DeleteVectorBucketCommand, GetVectorBucketCommand, ListIndexesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$19, S3VectorsClient, TagResourceCommand as TagResourceCommand$30, UntagResourceCommand as UntagResourceCommand$31 } from "@aws-sdk/client-s3vectors";
|
|
76
|
+
import { CreateNamespaceCommand, CreateTableBucketCommand, CreateTableCommand as CreateTableCommand$2, DeleteNamespaceCommand as DeleteNamespaceCommand$1, DeleteTableBucketCommand, DeleteTableBucketMetricsConfigurationCommand, DeleteTableBucketReplicationCommand, DeleteTableCommand as DeleteTableCommand$2, GetNamespaceCommand as GetNamespaceCommand$1, GetTableBucketCommand, GetTableBucketEncryptionCommand, GetTableBucketLoggingCommand, GetTableBucketMaintenanceConfigurationCommand, GetTableBucketMetricsConfigurationCommand, GetTableBucketReplicationCommand, GetTableBucketStorageClassCommand, GetTableCommand as GetTableCommand$1, GetTableMaintenanceConfigurationCommand, ListNamespacesCommand as ListNamespacesCommand$1, ListTableBucketsCommand, ListTablesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$20, NotFoundException as NotFoundException$7, PutTableBucketEncryptionCommand, PutTableBucketLoggingCommand, PutTableBucketMaintenanceConfigurationCommand, PutTableBucketMetricsConfigurationCommand, PutTableBucketReplicationCommand, PutTableBucketStorageClassCommand, PutTableMaintenanceConfigurationCommand, RenameTableCommand, S3TablesClient, TagResourceCommand as TagResourceCommand$31, UntagResourceCommand as UntagResourceCommand$32 } from "@aws-sdk/client-s3tables";
|
|
76
77
|
|
|
77
78
|
// src/provisioning/providers/iam-policy/shared.ts
|
|
78
79
|
const POLICY_NAME_SKIP_REASON = "no policy name in state — no delete issued";
|
|
@@ -20614,7 +20615,7 @@ function declaredStatementsRead(value, declared) {
|
|
|
20614
20615
|
}
|
|
20615
20616
|
|
|
20616
20617
|
// src/provisioning/providers/eventbridge-archive-provider.ts
|
|
20617
|
-
const RESOURCE_TYPE = "AWS::Events::Archive";
|
|
20618
|
+
const RESOURCE_TYPE$1 = "AWS::Events::Archive";
|
|
20618
20619
|
function archiveEventPattern(value) {
|
|
20619
20620
|
if (value === void 0 || value === null || value === "") return void 0;
|
|
20620
20621
|
return typeof value === "string" ? value : JSON.stringify(value);
|
|
@@ -20681,7 +20682,7 @@ var EventBridgeArchiveProvider = class {
|
|
|
20681
20682
|
if (value === void 0 || value === null) return void 0;
|
|
20682
20683
|
const n = coerceCfnInteger(value);
|
|
20683
20684
|
if (n !== void 0 && n >= 0) return n;
|
|
20684
|
-
throw markNonRetryable(new ProvisioningError(`RetentionDays of ${logicalId} must be an integer >= 0 (0 keeps events indefinitely)`, RESOURCE_TYPE, logicalId, physicalId));
|
|
20685
|
+
throw markNonRetryable(new ProvisioningError(`RetentionDays of ${logicalId} must be an integer >= 0 (0 keeps events indefinitely)`, RESOURCE_TYPE$1, logicalId, physicalId));
|
|
20685
20686
|
}
|
|
20686
20687
|
async create(logicalId, resourceType, properties, context) {
|
|
20687
20688
|
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
@@ -20742,7 +20743,7 @@ var EventBridgeArchiveProvider = class {
|
|
|
20742
20743
|
return;
|
|
20743
20744
|
}
|
|
20744
20745
|
const { pollIntervalMs, sleep } = this.stateWait;
|
|
20745
|
-
const userTimeoutMs = resolvedResourceTimeoutMs(RESOURCE_TYPE);
|
|
20746
|
+
const userTimeoutMs = resolvedResourceTimeoutMs(RESOURCE_TYPE$1);
|
|
20746
20747
|
const timeoutMs = userTimeoutMs === void 0 ? this.stateWait.timeoutMs : Math.min(this.stateWait.timeoutMs, userTimeoutMs / 2);
|
|
20747
20748
|
const deadline = Date.now() + timeoutMs;
|
|
20748
20749
|
const watch = startInterruptWatch(`EventBridge archive ${logicalId} ${operation} wait`);
|
|
@@ -20763,9 +20764,9 @@ var EventBridgeArchiveProvider = class {
|
|
|
20763
20764
|
if (state === void 0 || SETTLED_STATES$1.has(state)) return resp.ArchiveArn;
|
|
20764
20765
|
if (FAILED_STATES$2.has(state)) {
|
|
20765
20766
|
if (resp.StateReason) this.logger.debug(mask(`EventBridge archive ${logicalId} entered ${state}: ${resp.StateReason}`));
|
|
20766
|
-
throw markNonRetryable(new ProvisioningError(safeMsg`EventBridge archive ${logicalId} entered ${state}.` + verbosePointerTail(), RESOURCE_TYPE, logicalId, name));
|
|
20767
|
+
throw markNonRetryable(new ProvisioningError(safeMsg`EventBridge archive ${logicalId} entered ${state}.` + verbosePointerTail(), RESOURCE_TYPE$1, logicalId, name));
|
|
20767
20768
|
}
|
|
20768
|
-
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));
|
|
20769
|
+
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$1, logicalId, name));
|
|
20769
20770
|
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
20770
20771
|
this.logger.debug(mask(`EventBridge archive ${name} state: ${state}, waiting`));
|
|
20771
20772
|
await sleep(pollIntervalMs);
|
|
@@ -20876,6 +20877,467 @@ var EventBridgeArchiveProvider = class {
|
|
|
20876
20877
|
}
|
|
20877
20878
|
};
|
|
20878
20879
|
|
|
20880
|
+
// src/provisioning/providers/connect-instance-provider.ts
|
|
20881
|
+
const RESOURCE_TYPE = "AWS::Connect::Instance";
|
|
20882
|
+
const CONNECT_INSTANCE_ATTRIBUTE_TYPES = {
|
|
20883
|
+
InboundCalls: "INBOUND_CALLS",
|
|
20884
|
+
OutboundCalls: "OUTBOUND_CALLS",
|
|
20885
|
+
ContactflowLogs: "CONTACTFLOW_LOGS",
|
|
20886
|
+
ContactLens: "CONTACT_LENS",
|
|
20887
|
+
AutoResolveBestVoices: "AUTO_RESOLVE_BEST_VOICES",
|
|
20888
|
+
UseCustomTTSVoices: "USE_CUSTOM_TTS_VOICES",
|
|
20889
|
+
EarlyMedia: "EARLY_MEDIA",
|
|
20890
|
+
MultiPartyConference: "MULTI_PARTY_CONFERENCE",
|
|
20891
|
+
HighVolumeOutBound: "HIGH_VOLUME_OUTBOUND",
|
|
20892
|
+
EnhancedContactMonitoring: "ENHANCED_CONTACT_MONITORING",
|
|
20893
|
+
EnhancedChatMonitoring: "ENHANCED_CHAT_MONITORING",
|
|
20894
|
+
MultiPartyChatConference: "MULTI_PARTY_CHAT_CONFERENCE",
|
|
20895
|
+
MessageStreaming: "MESSAGE_STREAMING",
|
|
20896
|
+
AutoMuteAgentOnHold: "AUTO_MUTE_AGENT_ON_HOLD"
|
|
20897
|
+
};
|
|
20898
|
+
const CONNECT_INSTANCE_ASYNC_DEFAULTS = [
|
|
20899
|
+
"MESSAGE_STREAMING",
|
|
20900
|
+
"MULTI_PARTY_CHAT_CONFERENCE",
|
|
20901
|
+
"MULTI_PARTY_CONFERENCE",
|
|
20902
|
+
"AUTO_RESOLVE_BEST_VOICES",
|
|
20903
|
+
"CONTACT_LENS",
|
|
20904
|
+
"EARLY_MEDIA",
|
|
20905
|
+
"ENHANCED_CHAT_MONITORING",
|
|
20906
|
+
"ENHANCED_CONTACT_MONITORING"
|
|
20907
|
+
];
|
|
20908
|
+
const CREATE_CALL_ATTRIBUTES = /* @__PURE__ */ new Set(["InboundCalls", "OutboundCalls"]);
|
|
20909
|
+
function arnRegionOf(physicalId) {
|
|
20910
|
+
if (!physicalId.startsWith("arn:")) return void 0;
|
|
20911
|
+
const region = physicalId.split(":")[3];
|
|
20912
|
+
return region ? region : void 0;
|
|
20913
|
+
}
|
|
20914
|
+
function readAttributes(value) {
|
|
20915
|
+
const read = {
|
|
20916
|
+
values: /* @__PURE__ */ new Map(),
|
|
20917
|
+
malformed: [],
|
|
20918
|
+
unknown: [],
|
|
20919
|
+
container: "object"
|
|
20920
|
+
};
|
|
20921
|
+
if (value === void 0 || value === null) return {
|
|
20922
|
+
...read,
|
|
20923
|
+
container: "absent"
|
|
20924
|
+
};
|
|
20925
|
+
if (typeof value !== "object" || Array.isArray(value)) return {
|
|
20926
|
+
...read,
|
|
20927
|
+
container: "malformed"
|
|
20928
|
+
};
|
|
20929
|
+
for (const [key, member] of Object.entries(value)) {
|
|
20930
|
+
if (!Object.hasOwn(CONNECT_INSTANCE_ATTRIBUTE_TYPES, key)) {
|
|
20931
|
+
read.unknown.push(key);
|
|
20932
|
+
continue;
|
|
20933
|
+
}
|
|
20934
|
+
if (member === void 0 || member === null) continue;
|
|
20935
|
+
const flag = coerceCfnBoolean(member);
|
|
20936
|
+
if (flag === void 0) read.malformed.push(key);
|
|
20937
|
+
else read.values.set(key, flag);
|
|
20938
|
+
}
|
|
20939
|
+
return read;
|
|
20940
|
+
}
|
|
20941
|
+
function attributesFromList(list) {
|
|
20942
|
+
const byType = new Map(list.map((a) => [a.AttributeType, a.Value]));
|
|
20943
|
+
const out = {};
|
|
20944
|
+
for (const [key, type] of Object.entries(CONNECT_INSTANCE_ATTRIBUTE_TYPES)) {
|
|
20945
|
+
const flag = coerceCfnBoolean(byType.get(type));
|
|
20946
|
+
if (flag !== void 0) out[key] = flag;
|
|
20947
|
+
}
|
|
20948
|
+
return out;
|
|
20949
|
+
}
|
|
20950
|
+
function attributesOf(instance, withoutStatus = false) {
|
|
20951
|
+
return definedAttributes({
|
|
20952
|
+
Id: instance?.Id,
|
|
20953
|
+
Arn: instance?.Arn,
|
|
20954
|
+
ServiceRole: instance?.ServiceRole,
|
|
20955
|
+
CreatedTime: instance?.CreatedTime?.toISOString(),
|
|
20956
|
+
InstanceStatus: withoutStatus ? void 0 : instance?.InstanceStatus
|
|
20957
|
+
});
|
|
20958
|
+
}
|
|
20959
|
+
function isTransientRead(error) {
|
|
20960
|
+
return isThrottlingError(error) || isTransientServerError(error);
|
|
20961
|
+
}
|
|
20962
|
+
var ConnectInstanceProvider = class {
|
|
20963
|
+
client;
|
|
20964
|
+
providerRegion = ambientRegion();
|
|
20965
|
+
logger = getLogger().child("ConnectInstanceProvider");
|
|
20966
|
+
handledProperties = /* @__PURE__ */ new Map([["AWS::Connect::Instance", /* @__PURE__ */ new Set([
|
|
20967
|
+
"IdentityManagementType",
|
|
20968
|
+
"InstanceAlias",
|
|
20969
|
+
"DirectoryId",
|
|
20970
|
+
"Attributes",
|
|
20971
|
+
"Tags"
|
|
20972
|
+
])]]);
|
|
20973
|
+
removalHandledInUpdate = /* @__PURE__ */ new Map([["AWS::Connect::Instance", /* @__PURE__ */ new Set([
|
|
20974
|
+
"IdentityManagementType",
|
|
20975
|
+
"InstanceAlias",
|
|
20976
|
+
"DirectoryId",
|
|
20977
|
+
"Tags"
|
|
20978
|
+
])]]);
|
|
20979
|
+
instanceWait = {
|
|
20980
|
+
pollIntervalMs: 3e3,
|
|
20981
|
+
timeoutMs: 9e5,
|
|
20982
|
+
sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
20983
|
+
};
|
|
20984
|
+
getClient() {
|
|
20985
|
+
this.client ??= new ConnectClient({
|
|
20986
|
+
...ambientClientDefaults(),
|
|
20987
|
+
...this.providerRegion ? { region: this.providerRegion } : {}
|
|
20988
|
+
});
|
|
20989
|
+
return this.client;
|
|
20990
|
+
}
|
|
20991
|
+
wrapMaskedError(mask, error, build) {
|
|
20992
|
+
const failure = describeAwsFailure(error);
|
|
20993
|
+
if (!(error instanceof Error)) return build(mask(failure.detail));
|
|
20994
|
+
if (!failure.redacted) return wrapMaskedAwsError(mask, error, build);
|
|
20995
|
+
this.logger.debug(mask(build(failure.detail).message));
|
|
20996
|
+
return markRedactedCause(build(mask(failure.summary)));
|
|
20997
|
+
}
|
|
20998
|
+
desiredAttributes(properties, logicalId, physicalId) {
|
|
20999
|
+
const read = readAttributes(properties["Attributes"]);
|
|
21000
|
+
const refuse = (what) => {
|
|
21001
|
+
throw markNonRetryable(new ProvisioningError(safeMsg`Attributes of Connect instance ${logicalId} ${what}` + ` — the instance was not ${physicalId === void 0 ? "created" : "updated"}`, RESOURCE_TYPE, logicalId, physicalId));
|
|
21002
|
+
};
|
|
21003
|
+
if (read.container === "absent") refuse("is required");
|
|
21004
|
+
if (read.container === "malformed") refuse("must be an object");
|
|
21005
|
+
if (read.unknown.length > 0) refuse(safeMsg`names members the type does not have: ${read.unknown.join(", ")}`);
|
|
21006
|
+
if (read.malformed.length > 0) refuse(safeMsg`must hold booleans, but ${read.malformed.join(", ")} does not`);
|
|
21007
|
+
for (const key of CREATE_CALL_ATTRIBUTES) if (!read.values.has(key)) refuse(safeMsg`must declare ${key}`);
|
|
21008
|
+
return read.values;
|
|
21009
|
+
}
|
|
21010
|
+
async create(logicalId, resourceType, properties, context) {
|
|
21011
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
21012
|
+
const identityType = properties["IdentityManagementType"];
|
|
21013
|
+
if (typeof identityType !== "string" || identityType === "") throw markNonRetryable(new ProvisioningError(safeMsg`IdentityManagementType is required for Connect instance ${logicalId}`, resourceType, logicalId));
|
|
21014
|
+
const attributes = this.desiredAttributes(properties, logicalId);
|
|
21015
|
+
const tags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId);
|
|
21016
|
+
const input = {
|
|
21017
|
+
IdentityManagementType: identityType,
|
|
21018
|
+
InboundCallsEnabled: attributes.get("InboundCalls") === true,
|
|
21019
|
+
OutboundCallsEnabled: attributes.get("OutboundCalls") === true
|
|
21020
|
+
};
|
|
21021
|
+
const alias = readNameProperty({ properties }, "InstanceAlias");
|
|
21022
|
+
if (alias !== void 0) input.InstanceAlias = alias;
|
|
21023
|
+
if (typeof properties["DirectoryId"] === "string" && properties["DirectoryId"] !== "") input.DirectoryId = properties["DirectoryId"];
|
|
21024
|
+
if (tags.length > 0) input.Tags = Object.fromEntries(tags.map((t) => [t.Key, t.Value]));
|
|
21025
|
+
const createToken = acquireIdempotencyToken({
|
|
21026
|
+
scope: "CreateInstance",
|
|
21027
|
+
logicalId
|
|
21028
|
+
});
|
|
21029
|
+
input.ClientToken = createToken.value;
|
|
21030
|
+
this.logger.debug(mask(`Creating Connect instance ${logicalId}: ${alias ?? "(no alias)"}`));
|
|
21031
|
+
let arn;
|
|
21032
|
+
try {
|
|
21033
|
+
const response = await this.createInstance(input, alias, logicalId, mask);
|
|
21034
|
+
arn = response.Arn;
|
|
21035
|
+
if (!arn) throw new ProvisioningError(safeMsg`CreateInstance returned no Arn for Connect instance ${logicalId}`, resourceType, logicalId);
|
|
21036
|
+
reportCreatedResource(logicalId, resourceType, arn);
|
|
21037
|
+
const instanceId = response.Id ?? connectInstanceIdOf(arn);
|
|
21038
|
+
const deadline = this.deadline();
|
|
21039
|
+
const written = [...attributes].filter(([key]) => !CREATE_CALL_ATTRIBUTES.has(key));
|
|
21040
|
+
let instance = await this.waitForInstance(instanceId, logicalId, written.length > 0 ? "settled" : "ready", deadline, mask);
|
|
21041
|
+
for (const [key, flag] of written) await this.updateAttribute(instanceId, key, flag, deadline, logicalId, mask);
|
|
21042
|
+
const noWait = process.env["CDKD_NO_WAIT"] === "true";
|
|
21043
|
+
if (noWait) this.logger.debug(mask(`Skipping the ACTIVE wait for Connect instance ${logicalId} (CDKD_NO_WAIT=true)`));
|
|
21044
|
+
else {
|
|
21045
|
+
instance = await this.waitForInstance(instanceId, logicalId, "active", deadline, mask);
|
|
21046
|
+
if (written.length > 0) {
|
|
21047
|
+
const live = attributesFromList(await this.listAttributes(instanceId));
|
|
21048
|
+
for (const [key, flag] of written) {
|
|
21049
|
+
if (live[key] === void 0 || live[key] === flag) continue;
|
|
21050
|
+
this.logger.debug(mask(`Connect instance ${logicalId}: ${key} reverted, writing it again`));
|
|
21051
|
+
await this.updateAttribute(instanceId, key, flag, deadline, logicalId, mask);
|
|
21052
|
+
}
|
|
21053
|
+
}
|
|
21054
|
+
}
|
|
21055
|
+
createToken.release();
|
|
21056
|
+
return {
|
|
21057
|
+
physicalId: arn,
|
|
21058
|
+
attributes: {
|
|
21059
|
+
...attributesOf(instance, noWait),
|
|
21060
|
+
Id: instanceId,
|
|
21061
|
+
Arn: arn
|
|
21062
|
+
}
|
|
21063
|
+
};
|
|
21064
|
+
} catch (error) {
|
|
21065
|
+
if (isInterruptedWaitError(error)) throw error;
|
|
21066
|
+
const cause = error instanceof Error ? error : void 0;
|
|
21067
|
+
let thrown = error instanceof CdkdError && error instanceof ProvisioningError ? error : this.wrapMaskedError(mask, error, (text) => new ProvisioningError(`Failed to create Connect instance ${logicalId}: ${text}`, resourceType, logicalId, arn, cause));
|
|
21068
|
+
if (arn !== void 0) thrown = await this.retireFailedCreate(thrown, logicalId, resourceType, arn, mask, () => createToken.release());
|
|
21069
|
+
throw thrown;
|
|
21070
|
+
}
|
|
21071
|
+
}
|
|
21072
|
+
async createInstance(input, alias, logicalId, mask) {
|
|
21073
|
+
const releaseDeadline = Date.now() + this.aliasReleaseWaitMs;
|
|
21074
|
+
const watch = startInterruptWatch(`Connect instance ${logicalId} alias release wait`);
|
|
21075
|
+
try {
|
|
21076
|
+
for (;;) try {
|
|
21077
|
+
return await this.getClient().send(new CreateInstanceCommand(input));
|
|
21078
|
+
} catch (error) {
|
|
21079
|
+
if (alias === void 0 || !(error instanceof InvalidRequestException) || !/alias is already used/i.test(error.message) || Date.now() >= releaseDeadline || await this.aliasIsListed(alias, mask)) throw error;
|
|
21080
|
+
this.logger.debug(mask(`Connect instance ${logicalId}: alias ${alias} still being released, retrying`));
|
|
21081
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
21082
|
+
await this.instanceWait.sleep(this.instanceWait.pollIntervalMs);
|
|
21083
|
+
}
|
|
21084
|
+
} finally {
|
|
21085
|
+
watch.dispose();
|
|
21086
|
+
}
|
|
21087
|
+
}
|
|
21088
|
+
aliasReleaseWaitMs = 18e4;
|
|
21089
|
+
async aliasIsListed(alias, mask) {
|
|
21090
|
+
try {
|
|
21091
|
+
let nextToken;
|
|
21092
|
+
do {
|
|
21093
|
+
const page = await this.getClient().send(new ListInstancesCommand({ NextToken: nextToken }));
|
|
21094
|
+
if (page.InstanceSummaryList?.some((s) => s.InstanceAlias === alias)) return true;
|
|
21095
|
+
nextToken = page.NextToken;
|
|
21096
|
+
} while (nextToken);
|
|
21097
|
+
return false;
|
|
21098
|
+
} catch (error) {
|
|
21099
|
+
this.logger.debug(mask(`ListInstances failed while checking alias ${alias}: ${describeAwsFailure(error).detail}`));
|
|
21100
|
+
return true;
|
|
21101
|
+
}
|
|
21102
|
+
}
|
|
21103
|
+
async deleteInstanceConfirmed(instanceId) {
|
|
21104
|
+
const deadline = this.deadline();
|
|
21105
|
+
const watch = startInterruptWatch(`Connect instance ${instanceId} delete`);
|
|
21106
|
+
try {
|
|
21107
|
+
for (;;) try {
|
|
21108
|
+
await this.getClient().send(new DeleteInstanceCommand({ InstanceId: instanceId }));
|
|
21109
|
+
return "deleted";
|
|
21110
|
+
} catch (error) {
|
|
21111
|
+
if (!(error instanceof ResourceNotFoundException$11)) throw error;
|
|
21112
|
+
try {
|
|
21113
|
+
await this.getClient().send(new DescribeInstanceCommand({ InstanceId: instanceId }));
|
|
21114
|
+
} catch (describeError) {
|
|
21115
|
+
if (describeError instanceof ResourceNotFoundException$11) return "gone";
|
|
21116
|
+
throw describeError;
|
|
21117
|
+
}
|
|
21118
|
+
if (Date.now() >= deadline) throw error;
|
|
21119
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
21120
|
+
await this.instanceWait.sleep(this.instanceWait.pollIntervalMs);
|
|
21121
|
+
}
|
|
21122
|
+
} finally {
|
|
21123
|
+
watch.dispose();
|
|
21124
|
+
}
|
|
21125
|
+
}
|
|
21126
|
+
deadline() {
|
|
21127
|
+
const userTimeoutMs = resolvedResourceTimeoutMs(RESOURCE_TYPE);
|
|
21128
|
+
const timeoutMs = userTimeoutMs === void 0 ? this.instanceWait.timeoutMs : Math.min(this.instanceWait.timeoutMs, userTimeoutMs / 2);
|
|
21129
|
+
return Date.now() + timeoutMs;
|
|
21130
|
+
}
|
|
21131
|
+
async retireFailedCreate(thrown, logicalId, resourceType, arn, mask, onGone) {
|
|
21132
|
+
try {
|
|
21133
|
+
await this.deleteInstanceConfirmed(connectInstanceIdOf(arn));
|
|
21134
|
+
retractCreatedResource(logicalId, resourceType, arn);
|
|
21135
|
+
onGone();
|
|
21136
|
+
return thrown;
|
|
21137
|
+
} catch (cleanupError) {
|
|
21138
|
+
const failure = describeAwsFailure(cleanupError);
|
|
21139
|
+
this.logger.debug(mask(`Failed to delete Connect instance ${arn} after its create failed: ${failure.detail}`));
|
|
21140
|
+
this.logger.warn(mask(safeMsg`Connect instance ${logicalId} (${arn}) was created but its create failed, and deleting it failed too (${failure.summary}). Delete it before the next deploy: aws connect delete-instance --instance-id ${connectInstanceIdOf(arn)}`));
|
|
21141
|
+
return markCreatedBeforeFailure(thrown, logicalId, resourceType, arn);
|
|
21142
|
+
}
|
|
21143
|
+
}
|
|
21144
|
+
async waitForInstance(instanceId, logicalId, until, deadline, mask) {
|
|
21145
|
+
const { pollIntervalMs, sleep } = this.instanceWait;
|
|
21146
|
+
const watch = startInterruptWatch(`Connect instance ${logicalId} ${until} wait`);
|
|
21147
|
+
let instance;
|
|
21148
|
+
try {
|
|
21149
|
+
for (;;) {
|
|
21150
|
+
let ready = false;
|
|
21151
|
+
try {
|
|
21152
|
+
instance = (await this.getClient().send(new DescribeInstanceCommand({ InstanceId: instanceId }))).Instance;
|
|
21153
|
+
const status = instance?.InstanceStatus;
|
|
21154
|
+
if (status === "CREATION_FAILED") {
|
|
21155
|
+
const reason = instance?.StatusReason?.Message;
|
|
21156
|
+
if (reason) this.logger.debug(mask(`Connect instance ${logicalId} entered CREATION_FAILED: ${reason}`));
|
|
21157
|
+
throw markNonRetryable(new ProvisioningError(safeMsg`Connect instance ${logicalId} entered CREATION_FAILED.` + verbosePointerTail(), RESOURCE_TYPE, logicalId, instance?.Arn));
|
|
21158
|
+
}
|
|
21159
|
+
if (status === "ACTIVE") return instance;
|
|
21160
|
+
if (until === "ready") {
|
|
21161
|
+
await this.getClient().send(new DescribeInstanceAttributeCommand$1({
|
|
21162
|
+
InstanceId: instanceId,
|
|
21163
|
+
AttributeType: "INBOUND_CALLS"
|
|
21164
|
+
}));
|
|
21165
|
+
ready = true;
|
|
21166
|
+
} else if (until === "settled") {
|
|
21167
|
+
const live = new Map((await this.listAttributes(instanceId)).map((a) => [a.AttributeType, a.Value]));
|
|
21168
|
+
ready = CONNECT_INSTANCE_ASYNC_DEFAULTS.every((type) => live.get(type) === "true");
|
|
21169
|
+
}
|
|
21170
|
+
} catch (error) {
|
|
21171
|
+
if (error instanceof ProvisioningError) throw error;
|
|
21172
|
+
if (!(error instanceof ResourceNotFoundException$11) && !isTransientRead(error)) throw error;
|
|
21173
|
+
if (Date.now() >= deadline) throw error;
|
|
21174
|
+
this.logger.debug(mask(`Connect instance ${instanceId}: not readable yet (${describeAwsFailure(error).summary})`));
|
|
21175
|
+
}
|
|
21176
|
+
if (ready) return instance;
|
|
21177
|
+
if (Date.now() >= deadline) throw markNonRetryable(new ProvisioningError(safeMsg`Connect instance ${logicalId} was still ${instance?.InstanceStatus ?? "unreadable"} when its ${until === "active" ? "ACTIVE" : "readiness"} wait ran out`, RESOURCE_TYPE, logicalId, instance?.Arn));
|
|
21178
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
21179
|
+
await sleep(pollIntervalMs);
|
|
21180
|
+
}
|
|
21181
|
+
} finally {
|
|
21182
|
+
watch.dispose();
|
|
21183
|
+
}
|
|
21184
|
+
}
|
|
21185
|
+
async updateAttribute(instanceId, key, flag, deadline, logicalId, mask) {
|
|
21186
|
+
const attributeType = CONNECT_INSTANCE_ATTRIBUTE_TYPES[key];
|
|
21187
|
+
for (;;) try {
|
|
21188
|
+
await this.getClient().send(new UpdateInstanceAttributeCommand({
|
|
21189
|
+
InstanceId: instanceId,
|
|
21190
|
+
AttributeType: attributeType,
|
|
21191
|
+
Value: String(flag)
|
|
21192
|
+
}));
|
|
21193
|
+
return;
|
|
21194
|
+
} catch (error) {
|
|
21195
|
+
if (!(error instanceof ResourceNotFoundException$11) && !isTransientRead(error)) throw error;
|
|
21196
|
+
if (Date.now() >= deadline) throw error;
|
|
21197
|
+
this.logger.debug(mask(`Connect instance ${logicalId}: ${key} not writable yet, retrying`));
|
|
21198
|
+
await this.instanceWait.sleep(this.instanceWait.pollIntervalMs);
|
|
21199
|
+
}
|
|
21200
|
+
}
|
|
21201
|
+
async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
21202
|
+
assertRegionMatch(context?.expectedRegion ? await this.getClient().config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
21203
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
21204
|
+
const stateBorne = context?.replayingState === true || context?.desiredFromAwsReadback === true;
|
|
21205
|
+
let desired;
|
|
21206
|
+
try {
|
|
21207
|
+
desired = this.desiredAttributes(properties, logicalId, physicalId);
|
|
21208
|
+
} catch (error) {
|
|
21209
|
+
if (!stateBorne) throw error;
|
|
21210
|
+
desired = readAttributes(properties["Attributes"]).values;
|
|
21211
|
+
this.logger.warn(safeMsg`${logicalId} (${resourceType}): Attributes is not a block of booleans; only its usable members are applied.`);
|
|
21212
|
+
}
|
|
21213
|
+
const previous = readAttributes(previousProperties["Attributes"]).values;
|
|
21214
|
+
const changed = [...desired].filter(([key, flag]) => previous.get(key) !== flag);
|
|
21215
|
+
const toWrite = context?.unsettledProperties?.has("Attributes") === true ? [...desired] : changed;
|
|
21216
|
+
const removed = [...previous.keys()].filter((key) => !desired.has(key));
|
|
21217
|
+
if (removed.length > 0) this.logger.warn(safeMsg`${logicalId} (${resourceType}): Attributes no longer declares ${removed.join(", ")}; the instance keeps the current value.`);
|
|
21218
|
+
const desiredTags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
|
|
21219
|
+
const recordedPlan = planTagDiff(previousProperties["Tags"], desiredTags);
|
|
21220
|
+
const plan = context?.unsettledProperties?.has("Tags") === true ? {
|
|
21221
|
+
...recordedPlan,
|
|
21222
|
+
set: planTagDiff([], desiredTags).set
|
|
21223
|
+
} : recordedPlan;
|
|
21224
|
+
const warning = tagPlanWarning(plan, resourceType, logicalId);
|
|
21225
|
+
if (warning) this.logger.warn(warning);
|
|
21226
|
+
const instanceId = connectInstanceIdOf(physicalId);
|
|
21227
|
+
try {
|
|
21228
|
+
if (toWrite.length > 0) {
|
|
21229
|
+
context?.markUnsettled?.("Attributes");
|
|
21230
|
+
this.logger.debug(mask(`Updating Connect instance ${logicalId} attributes: ${physicalId}`));
|
|
21231
|
+
for (const [key, flag] of toWrite) await this.updateAttribute(instanceId, key, flag, Date.now(), logicalId, mask);
|
|
21232
|
+
}
|
|
21233
|
+
if (plan.remove.length > 0 || plan.set.size > 0) {
|
|
21234
|
+
context?.markUnsettled?.("Tags");
|
|
21235
|
+
if (plan.remove.length > 0) await this.getClient().send(new UntagResourceCommand$14({
|
|
21236
|
+
resourceArn: physicalId,
|
|
21237
|
+
tagKeys: plan.remove
|
|
21238
|
+
}));
|
|
21239
|
+
if (plan.set.size > 0) await this.getClient().send(new TagResourceCommand$14({
|
|
21240
|
+
resourceArn: physicalId,
|
|
21241
|
+
tags: Object.fromEntries(plan.set)
|
|
21242
|
+
}));
|
|
21243
|
+
}
|
|
21244
|
+
return {
|
|
21245
|
+
physicalId,
|
|
21246
|
+
wasReplaced: false
|
|
21247
|
+
};
|
|
21248
|
+
} catch (error) {
|
|
21249
|
+
if (error instanceof CdkdError || isInterruptedWaitError(error)) throw error;
|
|
21250
|
+
if (error instanceof ResourceNotFoundException$11) assertRegionMatch(await this.getClient().config.region(), context?.expectedRegion ?? arnRegionOf(physicalId), resourceType, logicalId, physicalId);
|
|
21251
|
+
const cause = error instanceof Error ? error : void 0;
|
|
21252
|
+
throw this.wrapMaskedError(mask, error, (text) => new ProvisioningError(`Failed to update Connect instance ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
21253
|
+
}
|
|
21254
|
+
}
|
|
21255
|
+
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
21256
|
+
this.logger.debug(safeMsg`Deleting Connect instance ${logicalId}: ${physicalId}`);
|
|
21257
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
21258
|
+
let outcome;
|
|
21259
|
+
try {
|
|
21260
|
+
outcome = await this.deleteInstanceConfirmed(connectInstanceIdOf(physicalId));
|
|
21261
|
+
} catch (error) {
|
|
21262
|
+
if (isInterruptedWaitError(error)) throw error;
|
|
21263
|
+
const cause = error instanceof Error ? error : void 0;
|
|
21264
|
+
const failure = this.wrapMaskedError(mask, error, (text) => new ProvisioningError(`Failed to delete Connect instance ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
21265
|
+
throw error instanceof Error && error.name.includes("NotFound") ? markNotGone(failure) : failure;
|
|
21266
|
+
}
|
|
21267
|
+
if (outcome === "gone") {
|
|
21268
|
+
assertRegionMatch(await this.getClient().config.region(), context?.expectedRegion ?? arnRegionOf(physicalId), resourceType, logicalId, physicalId);
|
|
21269
|
+
this.logger.debug(safeMsg`Connect instance ${physicalId} does not exist, skipping`);
|
|
21270
|
+
}
|
|
21271
|
+
}
|
|
21272
|
+
async listAttributes(instanceId) {
|
|
21273
|
+
const list = [];
|
|
21274
|
+
let nextToken;
|
|
21275
|
+
do {
|
|
21276
|
+
const page = await this.getClient().send(new ListInstanceAttributesCommand({
|
|
21277
|
+
InstanceId: instanceId,
|
|
21278
|
+
NextToken: nextToken
|
|
21279
|
+
}));
|
|
21280
|
+
list.push(...page.Attributes ?? []);
|
|
21281
|
+
nextToken = page.NextToken;
|
|
21282
|
+
} while (nextToken);
|
|
21283
|
+
return list;
|
|
21284
|
+
}
|
|
21285
|
+
async getAttribute(physicalId, _resourceType, attributeName) {
|
|
21286
|
+
if (attributeName === "Arn") return physicalId;
|
|
21287
|
+
if (attributeName === "Id") return connectInstanceIdOf(physicalId);
|
|
21288
|
+
return attributesOf((await this.getClient().send(new DescribeInstanceCommand({ InstanceId: connectInstanceIdOf(physicalId) }))).Instance)[attributeName];
|
|
21289
|
+
}
|
|
21290
|
+
async readCurrentState(physicalId, _logicalId, _resourceType) {
|
|
21291
|
+
const instanceId = connectInstanceIdOf(physicalId);
|
|
21292
|
+
try {
|
|
21293
|
+
const instance = (await this.getClient().send(new DescribeInstanceCommand({ InstanceId: instanceId }))).Instance;
|
|
21294
|
+
if (!instance) return RESOURCE_NOT_FOUND;
|
|
21295
|
+
const list = await this.listAttributes(instanceId);
|
|
21296
|
+
const result = {};
|
|
21297
|
+
if (instance.IdentityManagementType !== void 0) result["IdentityManagementType"] = instance.IdentityManagementType;
|
|
21298
|
+
if (instance.InstanceAlias !== void 0) result["InstanceAlias"] = instance.InstanceAlias;
|
|
21299
|
+
result["Attributes"] = attributesFromList(list);
|
|
21300
|
+
result["Tags"] = normalizeAwsTagsToCfn(instance.Tags);
|
|
21301
|
+
return result;
|
|
21302
|
+
} catch (err) {
|
|
21303
|
+
if (err instanceof ResourceNotFoundException$11) return RESOURCE_NOT_FOUND;
|
|
21304
|
+
throw err;
|
|
21305
|
+
}
|
|
21306
|
+
}
|
|
21307
|
+
async import(input) {
|
|
21308
|
+
if (input.knownPhysicalId) try {
|
|
21309
|
+
const instance = (await this.getClient().send(new DescribeInstanceCommand({ InstanceId: connectInstanceIdOf(input.knownPhysicalId) }))).Instance;
|
|
21310
|
+
if (!instance?.Arn) return null;
|
|
21311
|
+
return {
|
|
21312
|
+
physicalId: instance.Arn,
|
|
21313
|
+
attributes: attributesOf(instance)
|
|
21314
|
+
};
|
|
21315
|
+
} catch (err) {
|
|
21316
|
+
if (err instanceof ResourceNotFoundException$11) return null;
|
|
21317
|
+
throw err;
|
|
21318
|
+
}
|
|
21319
|
+
const alias = readNameProperty(input, "InstanceAlias");
|
|
21320
|
+
if (alias === void 0) return null;
|
|
21321
|
+
let nextToken;
|
|
21322
|
+
do {
|
|
21323
|
+
const page = await this.getClient().send(new ListInstancesCommand({ NextToken: nextToken }));
|
|
21324
|
+
const match = page.InstanceSummaryList?.find((s) => s.InstanceAlias === alias);
|
|
21325
|
+
if (match?.Arn) return {
|
|
21326
|
+
physicalId: match.Arn,
|
|
21327
|
+
attributes: definedAttributes({
|
|
21328
|
+
Id: match.Id,
|
|
21329
|
+
Arn: match.Arn,
|
|
21330
|
+
ServiceRole: match.ServiceRole,
|
|
21331
|
+
CreatedTime: match.CreatedTime?.toISOString(),
|
|
21332
|
+
InstanceStatus: match.InstanceStatus
|
|
21333
|
+
})
|
|
21334
|
+
};
|
|
21335
|
+
nextToken = page.NextToken;
|
|
21336
|
+
} while (nextToken);
|
|
21337
|
+
return null;
|
|
21338
|
+
}
|
|
21339
|
+
};
|
|
21340
|
+
|
|
20879
21341
|
// src/provisioning/providers/ec2/common.ts
|
|
20880
21342
|
function isEc2NotFoundCode(error) {
|
|
20881
21343
|
const name = error?.name;
|
|
@@ -31172,11 +31634,11 @@ async function applyTagDiff$14(path, change) {
|
|
|
31172
31634
|
const region = await this.getClient().config.region();
|
|
31173
31635
|
const { partition } = derivePartitionAndUrlSuffix(region);
|
|
31174
31636
|
const resourceArn = `arn:${partition}:apigateway:${canonicalizeRegion(region)}::${path}`;
|
|
31175
|
-
if (change.remove.length > 0) await this.getClient().send(new UntagResourceCommand$
|
|
31637
|
+
if (change.remove.length > 0) await this.getClient().send(new UntagResourceCommand$15({
|
|
31176
31638
|
ResourceArn: resourceArn,
|
|
31177
31639
|
TagKeys: change.remove
|
|
31178
31640
|
}));
|
|
31179
|
-
if (Object.keys(change.set).length > 0) await this.getClient().send(new TagResourceCommand$
|
|
31641
|
+
if (Object.keys(change.set).length > 0) await this.getClient().send(new TagResourceCommand$15({
|
|
31180
31642
|
ResourceArn: resourceArn,
|
|
31181
31643
|
Tags: change.set
|
|
31182
31644
|
}));
|
|
@@ -33617,14 +34079,14 @@ async function applyTagDiff$12(stateMachineArn, resourceType, logicalId, oldTags
|
|
|
33617
34079
|
}));
|
|
33618
34080
|
const tagsToRemove = plan.remove;
|
|
33619
34081
|
if (tagsToRemove.length > 0) {
|
|
33620
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
34082
|
+
await this.getClient().send(new UntagResourceCommand$16({
|
|
33621
34083
|
resourceArn: stateMachineArn,
|
|
33622
34084
|
tagKeys: tagsToRemove
|
|
33623
34085
|
}));
|
|
33624
34086
|
this.logger.debug(`Removed ${tagsToRemove.length} tag(s) from SFN state machine ${stateMachineArn}`);
|
|
33625
34087
|
}
|
|
33626
34088
|
if (tagsToAdd.length > 0) {
|
|
33627
|
-
await this.getClient().send(new TagResourceCommand$
|
|
34089
|
+
await this.getClient().send(new TagResourceCommand$16({
|
|
33628
34090
|
resourceArn: stateMachineArn,
|
|
33629
34091
|
tags: tagsToAdd
|
|
33630
34092
|
}));
|
|
@@ -35076,14 +35538,14 @@ async function applyTagDiff$11(resourceArn, resourceType, logicalId, oldTagsRaw,
|
|
|
35076
35538
|
}));
|
|
35077
35539
|
const tagsToRemove = plan.remove;
|
|
35078
35540
|
if (tagsToRemove.length > 0) {
|
|
35079
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
35541
|
+
await this.getClient().send(new UntagResourceCommand$17({
|
|
35080
35542
|
resourceArn,
|
|
35081
35543
|
tagKeys: tagsToRemove
|
|
35082
35544
|
}));
|
|
35083
35545
|
log.debug(`Removed ${tagsToRemove.length} tag(s) from ECS resource ${resourceArn}`);
|
|
35084
35546
|
}
|
|
35085
35547
|
if (tagsToAdd.length > 0) {
|
|
35086
|
-
await this.getClient().send(new TagResourceCommand$
|
|
35548
|
+
await this.getClient().send(new TagResourceCommand$17({
|
|
35087
35549
|
resourceArn,
|
|
35088
35550
|
tags: tagsToAdd
|
|
35089
35551
|
}));
|
|
@@ -41205,11 +41667,11 @@ var AppConfigEnvironmentProvider = class {
|
|
|
41205
41667
|
if (warning) this.logger.warn(warning);
|
|
41206
41668
|
if (plan.set.size > 0 || plan.remove.length > 0) {
|
|
41207
41669
|
const arn = await this.environmentArn(applicationId, environmentId);
|
|
41208
|
-
if (plan.remove.length > 0) await this.getClient().send(new UntagResourceCommand$
|
|
41670
|
+
if (plan.remove.length > 0) await this.getClient().send(new UntagResourceCommand$18({
|
|
41209
41671
|
ResourceArn: arn,
|
|
41210
41672
|
TagKeys: plan.remove
|
|
41211
41673
|
}));
|
|
41212
|
-
if (plan.set.size > 0) await this.getClient().send(new TagResourceCommand$
|
|
41674
|
+
if (plan.set.size > 0) await this.getClient().send(new TagResourceCommand$18({
|
|
41213
41675
|
ResourceArn: arn,
|
|
41214
41676
|
Tags: Object.fromEntries(plan.set)
|
|
41215
41677
|
}));
|
|
@@ -43547,7 +44009,8 @@ async function create$20(logicalId, resourceType, properties, context) {
|
|
|
43547
44009
|
DataProtectionConfig: properties["DataProtectionConfig"],
|
|
43548
44010
|
OnSourceDDoSProtectionConfig: properties["OnSourceDDoSProtectionConfig"],
|
|
43549
44011
|
ApplicationConfig: properties["ApplicationConfig"],
|
|
43550
|
-
MonetizationConfig: properties["MonetizationConfig"]
|
|
44012
|
+
MonetizationConfig: properties["MonetizationConfig"],
|
|
44013
|
+
AnalyticsConfig: properties["AnalyticsConfig"]
|
|
43551
44014
|
}))).Summary;
|
|
43552
44015
|
if (!summary?.ARN || !summary?.Id) throw new Error("CreateWebACL did not return Summary with ARN and Id");
|
|
43553
44016
|
this.logger.debug(`Successfully created WAFv2 WebACL ${logicalId}: ${summary.ARN}`);
|
|
@@ -43603,7 +44066,8 @@ async function update$20(logicalId, physicalId, resourceType, properties, previo
|
|
|
43603
44066
|
DataProtectionConfig: properties["DataProtectionConfig"],
|
|
43604
44067
|
OnSourceDDoSProtectionConfig: properties["OnSourceDDoSProtectionConfig"],
|
|
43605
44068
|
ApplicationConfig: applicationConfigForUpdate(properties["ApplicationConfig"], previousProperties["ApplicationConfig"]),
|
|
43606
|
-
MonetizationConfig: properties["MonetizationConfig"]
|
|
44069
|
+
MonetizationConfig: properties["MonetizationConfig"],
|
|
44070
|
+
AnalyticsConfig: properties["AnalyticsConfig"]
|
|
43607
44071
|
}));
|
|
43608
44072
|
await this.applyTagDiff(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"]);
|
|
43609
44073
|
this.logger.debug(`Successfully updated WAFv2 WebACL ${logicalId}`);
|
|
@@ -43639,14 +44103,14 @@ async function applyTagDiff$8(arn, resourceType, logicalId, oldTagsRaw, newTagsR
|
|
|
43639
44103
|
}));
|
|
43640
44104
|
const tagsToRemove = plan.remove;
|
|
43641
44105
|
if (tagsToRemove.length > 0) {
|
|
43642
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
44106
|
+
await this.getClient().send(new UntagResourceCommand$19({
|
|
43643
44107
|
ResourceARN: arn,
|
|
43644
44108
|
TagKeys: tagsToRemove
|
|
43645
44109
|
}));
|
|
43646
44110
|
this.logger.debug(`Removed ${tagsToRemove.length} tag(s) from WAFv2 WebACL ${arn}`);
|
|
43647
44111
|
}
|
|
43648
44112
|
if (tagsToAdd.length > 0) {
|
|
43649
|
-
await this.getClient().send(new TagResourceCommand$
|
|
44113
|
+
await this.getClient().send(new TagResourceCommand$19({
|
|
43650
44114
|
ResourceARN: arn,
|
|
43651
44115
|
Tags: tagsToAdd
|
|
43652
44116
|
}));
|
|
@@ -43718,6 +44182,7 @@ async function readCurrentState$20(physicalId, _logicalId, _resourceType, proper
|
|
|
43718
44182
|
if (webACL.OnSourceDDoSProtectionConfig) result["OnSourceDDoSProtectionConfig"] = webACL.OnSourceDDoSProtectionConfig;
|
|
43719
44183
|
if (webACL.ApplicationConfig) result["ApplicationConfig"] = webACL.ApplicationConfig;
|
|
43720
44184
|
if (webACL.MonetizationConfig) result["MonetizationConfig"] = webACL.MonetizationConfig;
|
|
44185
|
+
if (webACL.AnalyticsConfig) result["AnalyticsConfig"] = webACL.AnalyticsConfig;
|
|
43721
44186
|
try {
|
|
43722
44187
|
const tagsResp = await this.getClient().send(new ListTagsForResourceCommand$14({ ResourceARN: physicalId }));
|
|
43723
44188
|
result["Tags"] = normalizeAwsTagsToCfn(tagsResp.TagInfoForResource?.TagList);
|
|
@@ -43776,7 +44241,8 @@ var WAFv2WebACLProvider = class {
|
|
|
43776
44241
|
"DataProtectionConfig",
|
|
43777
44242
|
"OnSourceDDoSProtectionConfig",
|
|
43778
44243
|
"ApplicationConfig",
|
|
43779
|
-
"MonetizationConfig"
|
|
44244
|
+
"MonetizationConfig",
|
|
44245
|
+
"AnalyticsConfig"
|
|
43780
44246
|
])]]);
|
|
43781
44247
|
getClient() {
|
|
43782
44248
|
if (!this.wafv2Client) {
|
|
@@ -44086,7 +44552,7 @@ async function readCurrentState$19(physicalId, _logicalId, resourceType) {
|
|
|
44086
44552
|
try {
|
|
44087
44553
|
resp = await this.getClient().send(new DescribeUserPoolCommand({ UserPoolId: physicalId }));
|
|
44088
44554
|
} catch (err) {
|
|
44089
|
-
if (err instanceof ResourceNotFoundException$
|
|
44555
|
+
if (err instanceof ResourceNotFoundException$12) return RESOURCE_NOT_FOUND;
|
|
44090
44556
|
throw err;
|
|
44091
44557
|
}
|
|
44092
44558
|
const pool = resp.UserPool;
|
|
@@ -44136,7 +44602,7 @@ async function readCurrentState$19(physicalId, _logicalId, resourceType) {
|
|
|
44136
44602
|
result["WebAuthnUserVerification"] = mfa.WebAuthnConfiguration?.UserVerification ?? "";
|
|
44137
44603
|
result["WebAuthnFactorConfiguration"] = mfa.WebAuthnConfiguration?.FactorConfiguration ?? "";
|
|
44138
44604
|
} catch (mfaErr) {
|
|
44139
|
-
if (!(mfaErr instanceof ResourceNotFoundException$
|
|
44605
|
+
if (!(mfaErr instanceof ResourceNotFoundException$12)) throw mfaErr;
|
|
44140
44606
|
this.logger.debug(`GetUserPoolMfaConfig failed for ${physicalId}, skipping MFA-derived drift keys: ${describeAwsFailure(mfaErr).detail}`);
|
|
44141
44607
|
}
|
|
44142
44608
|
return result;
|
|
@@ -44159,7 +44625,7 @@ async function importImpl$18(input) {
|
|
|
44159
44625
|
attributes: await this.userPoolAttributes(input.knownPhysicalId, resp.UserPool?.Arn)
|
|
44160
44626
|
};
|
|
44161
44627
|
} catch (err) {
|
|
44162
|
-
if (err instanceof ResourceNotFoundException$
|
|
44628
|
+
if (err instanceof ResourceNotFoundException$12) return null;
|
|
44163
44629
|
throw err;
|
|
44164
44630
|
}
|
|
44165
44631
|
const desiredName = typeof input.properties?.["UserPoolName"] === "string" ? input.properties["UserPoolName"] : void 0;
|
|
@@ -44175,7 +44641,7 @@ async function importImpl$18(input) {
|
|
|
44175
44641
|
try {
|
|
44176
44642
|
resp = await this.getClient().send(new DescribeUserPoolCommand({ UserPoolId: pool.Id }));
|
|
44177
44643
|
} catch (err) {
|
|
44178
|
-
if (err instanceof ResourceNotFoundException$
|
|
44644
|
+
if (err instanceof ResourceNotFoundException$12) return null;
|
|
44179
44645
|
throw err;
|
|
44180
44646
|
}
|
|
44181
44647
|
return {
|
|
@@ -44667,7 +45133,7 @@ async function untagRemovedUserPoolTags(logicalId, physicalId, resourceType, poo
|
|
|
44667
45133
|
this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): the template no longer declares ` + safeMsg`${removed.length} UserPoolTags key(s), but DescribeUserPool returned no ARN to ` + safeMsg`untag them with, so they stay on the pool. Remove them with ` + safeMsg`aws cognito-idp untag-resource.`);
|
|
44668
45134
|
return;
|
|
44669
45135
|
}
|
|
44670
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
45136
|
+
await this.getClient().send(new UntagResourceCommand$20({
|
|
44671
45137
|
ResourceArn: poolArn,
|
|
44672
45138
|
TagKeys: removed
|
|
44673
45139
|
}));
|
|
@@ -44778,7 +45244,7 @@ async function deleteImpl$19(logicalId, physicalId, resourceType, _properties, c
|
|
|
44778
45244
|
} catch (bareError) {
|
|
44779
45245
|
failure = bareError;
|
|
44780
45246
|
}
|
|
44781
|
-
if (readOn && !(failure instanceof ResourceNotFoundException$
|
|
45247
|
+
if (readOn && !(failure instanceof ResourceNotFoundException$12)) {
|
|
44782
45248
|
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
44783
45249
|
this.logger.debug(mask(safeMsg`Writing DeletionProtection back on ${mask(physicalId)} failed: ${mask(describeAwsFailure(failure).detail)}`));
|
|
44784
45250
|
return "read-on-write-failed";
|
|
@@ -44840,7 +45306,7 @@ async function deleteOnce$1(logicalId, physicalId, resourceType, context, flip)
|
|
|
44840
45306
|
return;
|
|
44841
45307
|
}
|
|
44842
45308
|
if (!observedPool) {
|
|
44843
|
-
if (observeError instanceof ResourceNotFoundException$
|
|
45309
|
+
if (observeError instanceof ResourceNotFoundException$12) return;
|
|
44844
45310
|
if (observeError !== void 0 && isTransientCognitoFailure(observeError)) {
|
|
44845
45311
|
transientReadError = observeError;
|
|
44846
45312
|
return;
|
|
@@ -44863,7 +45329,7 @@ async function deleteOnce$1(logicalId, physicalId, resourceType, context, flip)
|
|
|
44863
45329
|
flip.deleteAccepted = true;
|
|
44864
45330
|
this.logger.debug(`Successfully deleted Cognito User Pool ${logicalId}`);
|
|
44865
45331
|
} catch (error) {
|
|
44866
|
-
if (error instanceof ResourceNotFoundException$
|
|
45332
|
+
if (error instanceof ResourceNotFoundException$12) {
|
|
44867
45333
|
const clientRegion = await this.getClient().config.region();
|
|
44868
45334
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
44869
45335
|
this.logger.debug(`Cognito User Pool ${physicalId} does not exist, skipping deletion`);
|
|
@@ -44920,7 +45386,7 @@ async function disableUserPoolDeletionProtection(physicalId, pool, flip, mask) {
|
|
|
44920
45386
|
if (earlier) earlier.echoedSince = true;
|
|
44921
45387
|
return;
|
|
44922
45388
|
} catch (echoError) {
|
|
44923
|
-
if (echoError instanceof ResourceNotFoundException$
|
|
45389
|
+
if (echoError instanceof ResourceNotFoundException$12) throw echoError;
|
|
44924
45390
|
if (typeof echoError === "object" && echoError !== null && sentWithoutEmail.has(echoError) && isAmbiguousWriteFailure(echoError) && !this.emailOmittedFlips.has(flip)) this.emailOmittedFlips.set(flip, "ambiguous");
|
|
44925
45391
|
if (observedOn && isAmbiguousWriteFailure(echoError)) flip.flippedOffByThisRun = true;
|
|
44926
45392
|
if (isTransientCognitoFailure(echoError)) throw echoError;
|
|
@@ -44934,7 +45400,7 @@ async function disableUserPoolDeletionProtection(physicalId, pool, flip, mask) {
|
|
|
44934
45400
|
DeletionProtection: "INACTIVE"
|
|
44935
45401
|
}));
|
|
44936
45402
|
} catch (bareError) {
|
|
44937
|
-
if (bareError instanceof ResourceNotFoundException$
|
|
45403
|
+
if (bareError instanceof ResourceNotFoundException$12) throw bareError;
|
|
44938
45404
|
if (isAmbiguousWriteFailure(bareError)) {
|
|
44939
45405
|
if (observedOn) flip.flippedOffByThisRun = true;
|
|
44940
45406
|
if (!this.preFlipPools.has(flip)) this.preFlipPools.set(flip, {
|
|
@@ -46011,11 +46477,11 @@ async function syncNamespaceTags(logicalId, physicalId, resourceType, properties
|
|
|
46011
46477
|
const hasAdds = tagsToAdd.length > 0;
|
|
46012
46478
|
if (removedKeys.length === 0 && !hasAdds) return;
|
|
46013
46479
|
const arn = await this.resolveNamespaceArn(physicalId);
|
|
46014
|
-
if (removedKeys.length > 0) await this.getClient().send(new UntagResourceCommand$
|
|
46480
|
+
if (removedKeys.length > 0) await this.getClient().send(new UntagResourceCommand$21({
|
|
46015
46481
|
ResourceARN: arn,
|
|
46016
46482
|
TagKeys: removedKeys
|
|
46017
46483
|
}));
|
|
46018
|
-
if (hasAdds) await this.getClient().send(new TagResourceCommand$
|
|
46484
|
+
if (hasAdds) await this.getClient().send(new TagResourceCommand$20({
|
|
46019
46485
|
ResourceARN: arn,
|
|
46020
46486
|
Tags: tagsToAdd
|
|
46021
46487
|
}));
|
|
@@ -46496,11 +46962,11 @@ async function updateService(logicalId, physicalId, resourceType, properties, pr
|
|
|
46496
46962
|
if (hasTagChange) {
|
|
46497
46963
|
const arn = knownArn ?? (await client.send(new GetServiceCommand({ Id: physicalId }))).Service?.Arn;
|
|
46498
46964
|
if (!arn) throw new ProvisioningError(safeMsg`Could not resolve the ARN of service discovery service ${logicalId}; its Tags were not updated`, resourceType, logicalId, physicalId);
|
|
46499
|
-
if (tagPlan.remove.length > 0) await client.send(new UntagResourceCommand$
|
|
46965
|
+
if (tagPlan.remove.length > 0) await client.send(new UntagResourceCommand$21({
|
|
46500
46966
|
ResourceARN: arn,
|
|
46501
46967
|
TagKeys: tagPlan.remove
|
|
46502
46968
|
}));
|
|
46503
|
-
if (tagPlan.set.size > 0) await client.send(new TagResourceCommand$
|
|
46969
|
+
if (tagPlan.set.size > 0) await client.send(new TagResourceCommand$20({
|
|
46504
46970
|
ResourceARN: arn,
|
|
46505
46971
|
Tags: [...tagPlan.set].map(([Key, Value]) => ({
|
|
46506
46972
|
Key,
|
|
@@ -46760,7 +47226,7 @@ async function attachTags(result, arn) {
|
|
|
46760
47226
|
const tagsResp = await this.getClient().send(new ListTagsForResourceCommand$15({ ResourceARN: arn }));
|
|
46761
47227
|
result["Tags"] = normalizeAwsTagsToCfn(tagsResp.Tags);
|
|
46762
47228
|
} catch (err) {
|
|
46763
|
-
if (!(err instanceof ResourceNotFoundException$
|
|
47229
|
+
if (!(err instanceof ResourceNotFoundException$13)) throw err;
|
|
46764
47230
|
this.logger.debug(`ServiceDiscovery ListTagsForResource(${arn}) failed: ${describeAwsFailure(err).detail}`);
|
|
46765
47231
|
}
|
|
46766
47232
|
}
|
|
@@ -47486,7 +47952,7 @@ async function applyTagDiff$6(apiId, resourceType, logicalId, oldTagsRaw, newTag
|
|
|
47486
47952
|
const tagKeysToRemove = plan.remove;
|
|
47487
47953
|
const tagsToAdd = Object.fromEntries(plan.set);
|
|
47488
47954
|
if (tagKeysToRemove.length > 0) try {
|
|
47489
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
47955
|
+
await this.getClient().send(new UntagResourceCommand$22({
|
|
47490
47956
|
resourceArn: arn,
|
|
47491
47957
|
tagKeys: tagKeysToRemove
|
|
47492
47958
|
}));
|
|
@@ -47494,7 +47960,7 @@ async function applyTagDiff$6(apiId, resourceType, logicalId, oldTagsRaw, newTag
|
|
|
47494
47960
|
throw this.wrapUpdateError(error, resourceType, logicalId, apiId, "GraphqlApi (untag)", mask);
|
|
47495
47961
|
}
|
|
47496
47962
|
if (Object.keys(tagsToAdd).length > 0) try {
|
|
47497
|
-
await this.getClient().send(new TagResourceCommand$
|
|
47963
|
+
await this.getClient().send(new TagResourceCommand$21({
|
|
47498
47964
|
resourceArn: arn,
|
|
47499
47965
|
tags: tagsToAdd
|
|
47500
47966
|
}));
|
|
@@ -49180,11 +49646,11 @@ async function applyGlueTagDiff(client, resourceArn, recorded, desired, resource
|
|
|
49180
49646
|
if (toSet.size === 0 && plan.remove.length === 0) return;
|
|
49181
49647
|
unsettled.beforeWrite();
|
|
49182
49648
|
const arn = await resourceArn();
|
|
49183
|
-
if (toSet.size > 0) await client.send(new TagResourceCommand$
|
|
49649
|
+
if (toSet.size > 0) await client.send(new TagResourceCommand$22({
|
|
49184
49650
|
ResourceArn: arn,
|
|
49185
49651
|
TagsToAdd: Object.fromEntries(toSet)
|
|
49186
49652
|
}));
|
|
49187
|
-
if (plan.remove.length > 0) await client.send(new UntagResourceCommand$
|
|
49653
|
+
if (plan.remove.length > 0) await client.send(new UntagResourceCommand$23({
|
|
49188
49654
|
ResourceArn: arn,
|
|
49189
49655
|
TagsToRemove: plan.remove
|
|
49190
49656
|
}));
|
|
@@ -52526,7 +52992,7 @@ async function update$15(logicalId, physicalId, resourceType, properties, previo
|
|
|
52526
52992
|
const newTags = this.toSdkResourceTags(next.ResourceTags);
|
|
52527
52993
|
if (prevTags.kind === "list") await this.reconcileResourceTags(accountId, physicalId, this.toSdkResourceTags(removableRecorded("ResourceTags", prevTags.items)), newTags);
|
|
52528
52994
|
else {
|
|
52529
|
-
if (newTags.length > 0) await this.getClient().send(new TagResourceCommand$
|
|
52995
|
+
if (newTags.length > 0) await this.getClient().send(new TagResourceCommand$23({
|
|
52530
52996
|
ResourceARN: await this.budgetArn(accountId, physicalId),
|
|
52531
52997
|
ResourceTags: newTags
|
|
52532
52998
|
}));
|
|
@@ -52670,11 +53136,11 @@ async function reconcileResourceTags(accountId, budgetName, oldTags, newTags) {
|
|
|
52670
53136
|
const removedKeys = oldTags.map((t) => t.Key).filter((k) => {
|
|
52671
53137
|
return typeof k === "string" && !newKeys.has(k);
|
|
52672
53138
|
});
|
|
52673
|
-
if (removedKeys.length > 0) await this.getClient().send(new UntagResourceCommand$
|
|
53139
|
+
if (removedKeys.length > 0) await this.getClient().send(new UntagResourceCommand$24({
|
|
52674
53140
|
ResourceARN: arn,
|
|
52675
53141
|
ResourceTagKeys: removedKeys
|
|
52676
53142
|
}));
|
|
52677
|
-
if (newTags.length > 0) await this.getClient().send(new TagResourceCommand$
|
|
53143
|
+
if (newTags.length > 0) await this.getClient().send(new TagResourceCommand$23({
|
|
52678
53144
|
ResourceARN: arn,
|
|
52679
53145
|
ResourceTags: newTags
|
|
52680
53146
|
}));
|
|
@@ -53120,7 +53586,7 @@ async function readStreamArnIfExists(streamName) {
|
|
|
53120
53586
|
try {
|
|
53121
53587
|
response = await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: streamName }));
|
|
53122
53588
|
} catch (error) {
|
|
53123
|
-
if (error instanceof ResourceNotFoundException$
|
|
53589
|
+
if (error instanceof ResourceNotFoundException$14) return void 0;
|
|
53124
53590
|
throw error;
|
|
53125
53591
|
}
|
|
53126
53592
|
const arn = response.StreamDescriptionSummary?.StreamARN;
|
|
@@ -53131,7 +53597,7 @@ async function readStreamStatusForDelete(streamName) {
|
|
|
53131
53597
|
try {
|
|
53132
53598
|
return (await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: streamName }))).StreamDescriptionSummary?.StreamStatus ?? "UNKNOWN";
|
|
53133
53599
|
} catch (error) {
|
|
53134
|
-
if (error instanceof ResourceNotFoundException$
|
|
53600
|
+
if (error instanceof ResourceNotFoundException$14) return void 0;
|
|
53135
53601
|
throw error;
|
|
53136
53602
|
}
|
|
53137
53603
|
}
|
|
@@ -53614,7 +54080,7 @@ async function deleteImpl$14(logicalId, physicalId, resourceType, _properties, c
|
|
|
53614
54080
|
EnforceConsumerDeletion: true
|
|
53615
54081
|
}));
|
|
53616
54082
|
} catch (error) {
|
|
53617
|
-
if (error instanceof ResourceNotFoundException$
|
|
54083
|
+
if (error instanceof ResourceNotFoundException$14) {
|
|
53618
54084
|
const clientRegion = await this.getClient().config.region();
|
|
53619
54085
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
53620
54086
|
if (context?.failedCreateOrphan === true) this.logger.info(safeMsg` Kinesis stream ${physicalId} (${logicalId}), which a failed deploy created, is already gone; nothing to delete`);
|
|
@@ -53654,7 +54120,7 @@ async function resourceIdentity$1(physicalId, _resourceType, context) {
|
|
|
53654
54120
|
try {
|
|
53655
54121
|
response = await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: physicalId }));
|
|
53656
54122
|
} catch (error) {
|
|
53657
|
-
if (error instanceof ResourceNotFoundException$
|
|
54123
|
+
if (error instanceof ResourceNotFoundException$14) return RESOURCE_NOT_FOUND;
|
|
53658
54124
|
throw error;
|
|
53659
54125
|
}
|
|
53660
54126
|
const arn = response.StreamDescriptionSummary?.StreamARN;
|
|
@@ -53713,7 +54179,7 @@ async function readCurrentState$14(physicalId, _logicalId, resourceType, _proper
|
|
|
53713
54179
|
try {
|
|
53714
54180
|
stream = (await this.getClient().send(new DescribeStreamCommand({ StreamName: physicalId }))).StreamDescription;
|
|
53715
54181
|
} catch (err) {
|
|
53716
|
-
if (err instanceof ResourceNotFoundException$
|
|
54182
|
+
if (err instanceof ResourceNotFoundException$14) return RESOURCE_NOT_FOUND;
|
|
53717
54183
|
throw err;
|
|
53718
54184
|
}
|
|
53719
54185
|
if (!stream) return void 0;
|
|
@@ -53736,14 +54202,14 @@ async function readCurrentState$14(physicalId, _logicalId, resourceType, _proper
|
|
|
53736
54202
|
const strategy = summaryResp.StreamDescriptionSummary?.RecordDistributionStrategy;
|
|
53737
54203
|
if (strategy !== void 0) result["RecordDistributionStrategy"] = strategy;
|
|
53738
54204
|
} catch (err) {
|
|
53739
|
-
if (err instanceof ResourceNotFoundException$
|
|
54205
|
+
if (err instanceof ResourceNotFoundException$14) return RESOURCE_NOT_FOUND;
|
|
53740
54206
|
throw err;
|
|
53741
54207
|
}
|
|
53742
54208
|
try {
|
|
53743
54209
|
const tagsResp = await this.getClient().send(new ListTagsForStreamCommand({ StreamName: physicalId }));
|
|
53744
54210
|
result["Tags"] = normalizeAwsTagsToCfn(tagsResp.Tags);
|
|
53745
54211
|
} catch (err) {
|
|
53746
|
-
if (err instanceof ResourceNotFoundException$
|
|
54212
|
+
if (err instanceof ResourceNotFoundException$14) return RESOURCE_NOT_FOUND;
|
|
53747
54213
|
throw err;
|
|
53748
54214
|
}
|
|
53749
54215
|
return result;
|
|
@@ -53759,7 +54225,7 @@ async function importImpl$12(input) {
|
|
|
53759
54225
|
attributes: streamAttributes(response.StreamDescriptionSummary)
|
|
53760
54226
|
};
|
|
53761
54227
|
} catch (err) {
|
|
53762
|
-
if (err instanceof ResourceNotFoundException$
|
|
54228
|
+
if (err instanceof ResourceNotFoundException$14) return null;
|
|
53763
54229
|
throw err;
|
|
53764
54230
|
}
|
|
53765
54231
|
return null;
|
|
@@ -53991,7 +54457,7 @@ var KinesisStreamConsumerProvider = class {
|
|
|
53991
54457
|
await this.getClient().send(new DeregisterStreamConsumerCommand({ ConsumerARN: physicalId }));
|
|
53992
54458
|
this.logger.debug(`Successfully deregistered Kinesis stream consumer ${logicalId}`);
|
|
53993
54459
|
} catch (error) {
|
|
53994
|
-
if (error instanceof ResourceNotFoundException$
|
|
54460
|
+
if (error instanceof ResourceNotFoundException$14) {
|
|
53995
54461
|
const clientRegion = await this.getClient().config.region();
|
|
53996
54462
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
53997
54463
|
this.logger.debug(`Kinesis stream consumer ${physicalId} not found, skipping`);
|
|
@@ -54020,7 +54486,7 @@ var KinesisStreamConsumerProvider = class {
|
|
|
54020
54486
|
try {
|
|
54021
54487
|
desc = (await this.getClient().send(new DescribeStreamConsumerCommand({ ConsumerARN: physicalId }))).ConsumerDescription;
|
|
54022
54488
|
} catch (err) {
|
|
54023
|
-
if (err instanceof ResourceNotFoundException$
|
|
54489
|
+
if (err instanceof ResourceNotFoundException$14) return RESOURCE_NOT_FOUND;
|
|
54024
54490
|
throw err;
|
|
54025
54491
|
}
|
|
54026
54492
|
if (!desc) return void 0;
|
|
@@ -54031,7 +54497,7 @@ var KinesisStreamConsumerProvider = class {
|
|
|
54031
54497
|
const tagsResp = await this.getClient().send(new ListTagsForResourceCommand$17({ ResourceARN: physicalId }));
|
|
54032
54498
|
result["Tags"] = normalizeAwsTagsToCfn(tagsResp.Tags);
|
|
54033
54499
|
} catch (err) {
|
|
54034
|
-
if (err instanceof ResourceNotFoundException$
|
|
54500
|
+
if (err instanceof ResourceNotFoundException$14) return RESOURCE_NOT_FOUND;
|
|
54035
54501
|
throw err;
|
|
54036
54502
|
}
|
|
54037
54503
|
return result;
|
|
@@ -54044,14 +54510,14 @@ var KinesisStreamConsumerProvider = class {
|
|
|
54044
54510
|
const tagsToAdd = Object.fromEntries(plan.set);
|
|
54045
54511
|
const tagsToRemove = plan.remove;
|
|
54046
54512
|
if (tagsToRemove.length > 0) {
|
|
54047
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
54513
|
+
await this.getClient().send(new UntagResourceCommand$25({
|
|
54048
54514
|
ResourceARN: consumerArn,
|
|
54049
54515
|
TagKeys: tagsToRemove
|
|
54050
54516
|
}));
|
|
54051
54517
|
this.logger.debug(mask(`Removed ${tagsToRemove.length} tag(s) from Kinesis stream consumer ${consumerArn}`));
|
|
54052
54518
|
}
|
|
54053
54519
|
if (Object.keys(tagsToAdd).length > 0) {
|
|
54054
|
-
await this.getClient().send(new TagResourceCommand$
|
|
54520
|
+
await this.getClient().send(new TagResourceCommand$24({
|
|
54055
54521
|
ResourceARN: consumerArn,
|
|
54056
54522
|
Tags: tagsToAdd
|
|
54057
54523
|
}));
|
|
@@ -54201,7 +54667,7 @@ async function creationDateBestEffort(logicalId, name, groupName) {
|
|
|
54201
54667
|
for (let attempt = 0;; attempt++) try {
|
|
54202
54668
|
return (await this.readIdentity(name, groupName)).creation;
|
|
54203
54669
|
} catch (error) {
|
|
54204
|
-
const transient = error instanceof ResourceNotFoundException$
|
|
54670
|
+
const transient = error instanceof ResourceNotFoundException$15 || isThrottlingError(error);
|
|
54205
54671
|
const delay = this.readBackDelaysMs[attempt];
|
|
54206
54672
|
if (transient && delay !== void 0) {
|
|
54207
54673
|
await this.sleep(delay);
|
|
@@ -54252,7 +54718,7 @@ async function confirmRecordedSchedule(logicalId, physicalId, resourceType, grou
|
|
|
54252
54718
|
try {
|
|
54253
54719
|
live = await this.readIdentity(physicalId, groupName);
|
|
54254
54720
|
} catch (error) {
|
|
54255
|
-
if (error instanceof ResourceNotFoundException$
|
|
54721
|
+
if (error instanceof ResourceNotFoundException$15) return "absent";
|
|
54256
54722
|
throw this.wrapUnconfirmedGroupError(logicalId, physicalId, resourceType, error, mask);
|
|
54257
54723
|
}
|
|
54258
54724
|
if (sameRecordedDate(live, recorded) && !sameRecordedIdentity(live, recorded)) this.refuseUnconfirmed(logicalId, physicalId, resourceType, "holds a schedule of this name that carries the recorded creation date but not the recorded target or role (edited outside cdkd?)", false, `restore them, or drop the record with ${pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command} and deploy again`);
|
|
@@ -54349,7 +54815,7 @@ async function deleteByRecordedIdentity(logicalId, physicalId, resourceType, rec
|
|
|
54349
54815
|
try {
|
|
54350
54816
|
live = await this.readIdentity(physicalId, group);
|
|
54351
54817
|
} catch (error) {
|
|
54352
|
-
if (error instanceof ResourceNotFoundException$
|
|
54818
|
+
if (error instanceof ResourceNotFoundException$15) continue;
|
|
54353
54819
|
throw wrapDeleteError("reading a schedule of its name", error);
|
|
54354
54820
|
}
|
|
54355
54821
|
if (sameRecordedIdentity(live, recorded)) matches.push(group);
|
|
@@ -54385,7 +54851,7 @@ async function deleteByRecordedIdentity(logicalId, physicalId, resourceType, rec
|
|
|
54385
54851
|
}));
|
|
54386
54852
|
this.logger.debug(safeMsg`Deleted Schedule ${logicalId} (found by its recorded creation date)`);
|
|
54387
54853
|
} catch (error) {
|
|
54388
|
-
if (error instanceof ResourceNotFoundException$
|
|
54854
|
+
if (error instanceof ResourceNotFoundException$15) return;
|
|
54389
54855
|
throw wrapDeleteError("the delete", error);
|
|
54390
54856
|
}
|
|
54391
54857
|
}
|
|
@@ -54415,7 +54881,7 @@ async function deleteImpl$13(logicalId, physicalId, resourceType, properties, co
|
|
|
54415
54881
|
}));
|
|
54416
54882
|
this.logger.debug(`Deleted Schedule ${logicalId}`);
|
|
54417
54883
|
} catch (error) {
|
|
54418
|
-
if (error instanceof ResourceNotFoundException$
|
|
54884
|
+
if (error instanceof ResourceNotFoundException$15) {
|
|
54419
54885
|
const clientRegion = await this.getClient().config.region();
|
|
54420
54886
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
54421
54887
|
this.logger.debug(`Schedule ${logicalId} already deleted (not found), treating as success`);
|
|
@@ -54433,7 +54899,7 @@ async function getAttribute$4(physicalId, resourceType, attributeName, logicalId
|
|
|
54433
54899
|
return (await this.getClient().send(new GetScheduleCommand({ Name: physicalId }))).Arn;
|
|
54434
54900
|
} catch (error) {
|
|
54435
54901
|
const cause = error instanceof Error ? error : void 0;
|
|
54436
|
-
const customGroupHint = error instanceof ResourceNotFoundException$
|
|
54902
|
+
const customGroupHint = error instanceof ResourceNotFoundException$15 ? " Schedules in a custom group cannot be looked up by bare name; the Arn is normally served from cdkd state attributes." : "";
|
|
54437
54903
|
throw this.wrapCaughtError(void 0, error, (text) => new ProvisioningError(`Failed to resolve Arn for Schedule ${physicalId}: ${text}${text.endsWith(".") ? "" : "."}${customGroupHint}`, resourceType, logicalId, physicalId, cause));
|
|
54438
54904
|
}
|
|
54439
54905
|
}
|
|
@@ -54459,7 +54925,7 @@ async function readCurrentState$13(physicalId, _logicalId, _resourceType, proper
|
|
|
54459
54925
|
...response.Target !== void 0 && { Target: this.toCfnTarget(response.Target) }
|
|
54460
54926
|
};
|
|
54461
54927
|
} catch (error) {
|
|
54462
|
-
if (error instanceof ResourceNotFoundException$
|
|
54928
|
+
if (error instanceof ResourceNotFoundException$15) return RESOURCE_NOT_FOUND;
|
|
54463
54929
|
throw error;
|
|
54464
54930
|
}
|
|
54465
54931
|
}
|
|
@@ -54480,7 +54946,7 @@ async function importImpl$11(input) {
|
|
|
54480
54946
|
}
|
|
54481
54947
|
};
|
|
54482
54948
|
} catch (error) {
|
|
54483
|
-
if (error instanceof ResourceNotFoundException$
|
|
54949
|
+
if (error instanceof ResourceNotFoundException$15) return null;
|
|
54484
54950
|
throw error;
|
|
54485
54951
|
}
|
|
54486
54952
|
}
|
|
@@ -54991,11 +55457,11 @@ async function update$12(logicalId, physicalId, resourceType, properties, previo
|
|
|
54991
55457
|
settled ??= await this.describe(physicalId);
|
|
54992
55458
|
const arn = settled.Arn;
|
|
54993
55459
|
if (!arn) throw new Error("DescribePipe returned no Arn, which tagging needs");
|
|
54994
|
-
if (plan.remove.length > 0) await this.getClient().send(new UntagResourceCommand$
|
|
55460
|
+
if (plan.remove.length > 0) await this.getClient().send(new UntagResourceCommand$26({
|
|
54995
55461
|
resourceArn: arn,
|
|
54996
55462
|
tagKeys: plan.remove
|
|
54997
55463
|
}));
|
|
54998
|
-
if (plan.set.size > 0) await this.getClient().send(new TagResourceCommand$
|
|
55464
|
+
if (plan.set.size > 0) await this.getClient().send(new TagResourceCommand$25({
|
|
54999
55465
|
resourceArn: arn,
|
|
55000
55466
|
tags: Object.fromEntries(plan.set)
|
|
55001
55467
|
}));
|
|
@@ -55343,11 +55809,11 @@ async function applyTagDiff$3(resourceId, resourceType, logicalId, recorded, des
|
|
|
55343
55809
|
const plan = planTagDiff(recorded, desired);
|
|
55344
55810
|
const warning = tagPlanWarning(plan, resourceType, logicalId);
|
|
55345
55811
|
if (warning !== void 0) log.warn(warning);
|
|
55346
|
-
if (plan.remove.length > 0) await this.retryOnTransientControlPlane(() => this.getClient().send(new UntagResourceCommand$
|
|
55812
|
+
if (plan.remove.length > 0) await this.retryOnTransientControlPlane(() => this.getClient().send(new UntagResourceCommand$27({
|
|
55347
55813
|
ResourceId: resourceId,
|
|
55348
55814
|
TagKeys: plan.remove
|
|
55349
55815
|
})), `UntagResource ${resourceId}`, log);
|
|
55350
|
-
if (plan.set.size > 0) await this.retryOnTransientControlPlane(() => this.getClient().send(new TagResourceCommand$
|
|
55816
|
+
if (plan.set.size > 0) await this.retryOnTransientControlPlane(() => this.getClient().send(new TagResourceCommand$26({
|
|
55351
55817
|
ResourceId: resourceId,
|
|
55352
55818
|
Tags: [...plan.set].map(([Key, Value]) => ({
|
|
55353
55819
|
Key,
|
|
@@ -57212,11 +57678,11 @@ async function applyTagDiff$2(physicalId, resourceType, logicalId, nextTags, pre
|
|
|
57212
57678
|
Value
|
|
57213
57679
|
}));
|
|
57214
57680
|
const toRemove = plan.remove;
|
|
57215
|
-
if (toSet.length > 0) await this.getClient().send(new TagResourceCommand$
|
|
57681
|
+
if (toSet.length > 0) await this.getClient().send(new TagResourceCommand$27({
|
|
57216
57682
|
ResourceARN: arn,
|
|
57217
57683
|
Tags: toSet
|
|
57218
57684
|
}));
|
|
57219
|
-
if (toRemove.length > 0) await this.getClient().send(new UntagResourceCommand$
|
|
57685
|
+
if (toRemove.length > 0) await this.getClient().send(new UntagResourceCommand$28({
|
|
57220
57686
|
ResourceARN: arn,
|
|
57221
57687
|
TagKeys: toRemove
|
|
57222
57688
|
}));
|
|
@@ -58348,7 +58814,7 @@ async function readCurrentState$9(physicalId, resourceType, properties) {
|
|
|
58348
58814
|
marker = group === void 0 ? resp.Marker : void 0;
|
|
58349
58815
|
} while (marker);
|
|
58350
58816
|
} catch (error) {
|
|
58351
|
-
if (error instanceof InvalidRequestException) return void 0;
|
|
58817
|
+
if (error instanceof InvalidRequestException$1) return void 0;
|
|
58352
58818
|
throw error;
|
|
58353
58819
|
}
|
|
58354
58820
|
const state = group?.Status?.State;
|
|
@@ -58708,7 +59174,7 @@ var EMRInstanceGroupConfigProvider = class {
|
|
|
58708
59174
|
if (properties?.["AutoScalingPolicy"] !== void 0) try {
|
|
58709
59175
|
await removeScalingPolicyForDelete(this.getClient(), jobFlowId, physicalId);
|
|
58710
59176
|
} catch (error) {
|
|
58711
|
-
if (error instanceof InvalidRequestException) this.logger.debug(safeMsg`EMR instance group ${physicalId} policy removal skipped (cluster/group gone)`);
|
|
59177
|
+
if (error instanceof InvalidRequestException$1) this.logger.debug(safeMsg`EMR instance group ${physicalId} policy removal skipped (cluster/group gone)`);
|
|
58712
59178
|
else {
|
|
58713
59179
|
const head = safeMsg`Removing the automatic scaling policy of EMR instance group ${physicalId} failed: `;
|
|
58714
59180
|
const text = this.cleanupFailureText(head, error, context?.maskSecrets);
|
|
@@ -58725,7 +59191,7 @@ var EMRInstanceGroupConfigProvider = class {
|
|
|
58725
59191
|
}));
|
|
58726
59192
|
this.logger.debug(`Scaled EMR TASK instance group ${physicalId} to 0 to release its instances (no standalone delete API exists)`);
|
|
58727
59193
|
} catch (error) {
|
|
58728
|
-
if (error instanceof InvalidRequestException) {
|
|
59194
|
+
if (error instanceof InvalidRequestException$1) {
|
|
58729
59195
|
const clientRegion = await this.getClient().config.region();
|
|
58730
59196
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
58731
59197
|
this.logger.debug(`EMR instance group ${physicalId} scale-to-0 skipped (cluster/group gone): ${error.message}`);
|
|
@@ -58997,7 +59463,7 @@ async function deleteImpl$9(logicalId, physicalId, resourceType, properties, con
|
|
|
58997
59463
|
}));
|
|
58998
59464
|
this.logger.debug(`Scaled EMR TASK instance fleet ${physicalId} to 0 to release its instances (no standalone delete API exists)`);
|
|
58999
59465
|
} catch (error) {
|
|
59000
|
-
if (error instanceof InvalidRequestException) {
|
|
59466
|
+
if (error instanceof InvalidRequestException$1) {
|
|
59001
59467
|
const clientRegion = await this.getClient().config.region();
|
|
59002
59468
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
59003
59469
|
this.logger.debug(`EMR instance fleet ${physicalId} scale-to-0 skipped (cluster/fleet gone): ${error.message}`);
|
|
@@ -59029,7 +59495,7 @@ async function readCurrentState$8(physicalId, _logicalId, resourceType, properti
|
|
|
59029
59495
|
marker = fleet === void 0 ? resp.Marker : void 0;
|
|
59030
59496
|
} while (marker);
|
|
59031
59497
|
} catch (error) {
|
|
59032
|
-
if (error instanceof InvalidRequestException) return void 0;
|
|
59498
|
+
if (error instanceof InvalidRequestException$1) return void 0;
|
|
59033
59499
|
throw error;
|
|
59034
59500
|
}
|
|
59035
59501
|
if (fleet === void 0 || fleet.Status?.State === "TERMINATED") return RESOURCE_NOT_FOUND;
|
|
@@ -59557,7 +60023,7 @@ async function deleteOnce(logicalId, physicalId, resourceType, context, flip) {
|
|
|
59557
60023
|
try {
|
|
59558
60024
|
current = (await this.getClient().send(new DescribeClusterCommand({ ClusterId: physicalId }))).Cluster;
|
|
59559
60025
|
} catch (error) {
|
|
59560
|
-
if (error instanceof InvalidRequestException) {
|
|
60026
|
+
if (error instanceof InvalidRequestException$1) {
|
|
59561
60027
|
const clientRegion = await this.getClient().config.region();
|
|
59562
60028
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
59563
60029
|
if (context?.failedCreateOrphan === true) this.logger.info(safeMsg` EMR cluster ${physicalId} (${logicalId}), which a failed deploy created, is already gone; nothing to delete`);
|
|
@@ -59643,7 +60109,7 @@ async function waitForClusterTerminated(clusterId, logicalId, resourceType, mask
|
|
|
59643
60109
|
try {
|
|
59644
60110
|
cluster = await this.describeForPoll(clusterId, transientState);
|
|
59645
60111
|
} catch (error) {
|
|
59646
|
-
if (error instanceof InvalidRequestException) return;
|
|
60112
|
+
if (error instanceof InvalidRequestException$1) return;
|
|
59647
60113
|
const cause = error instanceof Error ? error : void 0;
|
|
59648
60114
|
throw this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to poll EMR Cluster ${clusterId} termination: ${text}`, resourceType, logicalId, clusterId, cause));
|
|
59649
60115
|
}
|
|
@@ -59698,7 +60164,7 @@ async function readClusterIdentity(clusterId) {
|
|
|
59698
60164
|
try {
|
|
59699
60165
|
response = await this.getClient().send(new DescribeClusterCommand({ ClusterId: clusterId }));
|
|
59700
60166
|
} catch (error) {
|
|
59701
|
-
if (error instanceof InvalidRequestException) return void 0;
|
|
60167
|
+
if (error instanceof InvalidRequestException$1) return void 0;
|
|
59702
60168
|
throw error;
|
|
59703
60169
|
}
|
|
59704
60170
|
const id = response.Cluster?.Id;
|
|
@@ -59721,7 +60187,7 @@ async function describeClusterOrUndefined(clusterId) {
|
|
|
59721
60187
|
try {
|
|
59722
60188
|
return (await this.getClient().send(new DescribeClusterCommand({ ClusterId: clusterId }))).Cluster;
|
|
59723
60189
|
} catch (err) {
|
|
59724
|
-
if (err instanceof InvalidRequestException) return void 0;
|
|
60190
|
+
if (err instanceof InvalidRequestException$1) return void 0;
|
|
59725
60191
|
throw err;
|
|
59726
60192
|
}
|
|
59727
60193
|
}
|
|
@@ -59743,7 +60209,7 @@ async function readCurrentState$7(physicalId, _logicalId, _resourceType, propert
|
|
|
59743
60209
|
managedScaling: declares("ManagedScalingPolicy")
|
|
59744
60210
|
})]);
|
|
59745
60211
|
} catch (err) {
|
|
59746
|
-
if (err instanceof InvalidRequestException) return void 0;
|
|
60212
|
+
if (err instanceof InvalidRequestException$1) return void 0;
|
|
59747
60213
|
throw err;
|
|
59748
60214
|
}
|
|
59749
60215
|
const out = {
|
|
@@ -59796,7 +60262,7 @@ async function readUnsettled$1(physicalId, logicalId, resourceType, names, recor
|
|
|
59796
60262
|
}
|
|
59797
60263
|
async function readDeclaredPolicies(clusterId, wanted) {
|
|
59798
60264
|
const readOne = (key, action, send) => send().then((value) => ({ value }), (err) => {
|
|
59799
|
-
if (err instanceof InvalidRequestException) throw err;
|
|
60265
|
+
if (err instanceof InvalidRequestException$1) throw err;
|
|
59800
60266
|
const name = err?.name;
|
|
59801
60267
|
const errorClass = typeof name === "string" && /^[A-Za-z0-9]{1,64}$/.test(name) ? name : "an error";
|
|
59802
60268
|
const hint = isPermissionDenial(err) ? `; allow elasticmapreduce:${action}` : "";
|
|
@@ -60831,7 +61297,7 @@ async function deleteImpl$7(logicalId, physicalId, resourceType, _properties, co
|
|
|
60831
61297
|
try {
|
|
60832
61298
|
await this.getClient().send(new DeleteDeliveryStreamCommand({ DeliveryStreamName: physicalId }));
|
|
60833
61299
|
} catch (error) {
|
|
60834
|
-
if (error instanceof ResourceNotFoundException$
|
|
61300
|
+
if (error instanceof ResourceNotFoundException$16) {
|
|
60835
61301
|
const clientRegion = await this.getClient().config.region();
|
|
60836
61302
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
60837
61303
|
this.logger.debug(`Firehose delivery stream ${physicalId} does not exist, skipping deletion`);
|
|
@@ -60856,7 +61322,7 @@ async function readDeliveryStreamStatusForDelete(streamName) {
|
|
|
60856
61322
|
try {
|
|
60857
61323
|
return (await this.getClient().send(new DescribeDeliveryStreamCommand({ DeliveryStreamName: streamName }))).DeliveryStreamDescription?.DeliveryStreamStatus ?? "UNKNOWN";
|
|
60858
61324
|
} catch (error) {
|
|
60859
|
-
if (error instanceof ResourceNotFoundException$
|
|
61325
|
+
if (error instanceof ResourceNotFoundException$16) return void 0;
|
|
60860
61326
|
throw error;
|
|
60861
61327
|
}
|
|
60862
61328
|
}
|
|
@@ -61217,7 +61683,7 @@ async function readCurrentState$6(physicalId, _logicalId, _resourceType, propert
|
|
|
61217
61683
|
try {
|
|
61218
61684
|
desc = (await this.getClient().send(new DescribeDeliveryStreamCommand({ DeliveryStreamName: physicalId }))).DeliveryStreamDescription;
|
|
61219
61685
|
} catch (err) {
|
|
61220
|
-
if (err instanceof ResourceNotFoundException$
|
|
61686
|
+
if (err instanceof ResourceNotFoundException$16) return RESOURCE_NOT_FOUND;
|
|
61221
61687
|
throw err;
|
|
61222
61688
|
}
|
|
61223
61689
|
if (!desc) return void 0;
|
|
@@ -61250,7 +61716,7 @@ async function readCurrentState$6(physicalId, _logicalId, _resourceType, propert
|
|
|
61250
61716
|
const tagsResp = await this.getClient().send(new ListTagsForDeliveryStreamCommand({ DeliveryStreamName: physicalId }));
|
|
61251
61717
|
result["Tags"] = normalizeAwsTagsToCfn(tagsResp.Tags);
|
|
61252
61718
|
} catch (err) {
|
|
61253
|
-
if (err instanceof ResourceNotFoundException$
|
|
61719
|
+
if (err instanceof ResourceNotFoundException$16) return RESOURCE_NOT_FOUND;
|
|
61254
61720
|
throw err;
|
|
61255
61721
|
}
|
|
61256
61722
|
return result;
|
|
@@ -61267,7 +61733,7 @@ async function importImpl$6(input) {
|
|
|
61267
61733
|
attributes: {}
|
|
61268
61734
|
};
|
|
61269
61735
|
} catch (err) {
|
|
61270
|
-
if (err instanceof ResourceNotFoundException$
|
|
61736
|
+
if (err instanceof ResourceNotFoundException$16) return null;
|
|
61271
61737
|
throw err;
|
|
61272
61738
|
}
|
|
61273
61739
|
return null;
|
|
@@ -61919,7 +62385,7 @@ async function readCurrentState$5(physicalId, _logicalId, _resourceType) {
|
|
|
61919
62385
|
const tagsResp = await this.getClient().send(new ListTagsCommand$2({ ResourceIdList: [trail.TrailARN] }));
|
|
61920
62386
|
tags = normalizeAwsTagsToCfn(tagsResp.ResourceTagList?.[0]?.TagsList);
|
|
61921
62387
|
} catch (err) {
|
|
61922
|
-
if (!(err instanceof ResourceNotFoundException$
|
|
62388
|
+
if (!(err instanceof ResourceNotFoundException$17)) throw err;
|
|
61923
62389
|
}
|
|
61924
62390
|
result["Tags"] = tags;
|
|
61925
62391
|
await readAggregationBlock.call(this, physicalId, result);
|
|
@@ -62489,7 +62955,7 @@ async function deleteImpl$5(logicalId, physicalId, resourceType, _properties, co
|
|
|
62489
62955
|
await this.getClient().send(new DeleteProjectCommand({ name: physicalId }));
|
|
62490
62956
|
this.logger.debug(`Successfully deleted CodeBuild Project ${logicalId}`);
|
|
62491
62957
|
} catch (error) {
|
|
62492
|
-
if (error instanceof ResourceNotFoundException$
|
|
62958
|
+
if (error instanceof ResourceNotFoundException$18) {
|
|
62493
62959
|
const clientRegion = await this.getClient().config.region();
|
|
62494
62960
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
62495
62961
|
this.logger.debug(`CodeBuild Project ${physicalId} does not exist, skipping deletion`);
|
|
@@ -62515,7 +62981,7 @@ async function readProject(physicalId) {
|
|
|
62515
62981
|
try {
|
|
62516
62982
|
project = (await this.getClient().send(new BatchGetProjectsCommand({ names: [physicalId] }))).projects?.[0];
|
|
62517
62983
|
} catch (err) {
|
|
62518
|
-
if (err instanceof ResourceNotFoundException$
|
|
62984
|
+
if (err instanceof ResourceNotFoundException$18) return RESOURCE_NOT_FOUND;
|
|
62519
62985
|
throw err;
|
|
62520
62986
|
}
|
|
62521
62987
|
if (!project) return RESOURCE_NOT_FOUND;
|
|
@@ -62690,7 +63156,7 @@ async function importImpl$4(input) {
|
|
|
62690
63156
|
attributes: {}
|
|
62691
63157
|
} : null;
|
|
62692
63158
|
} catch (err) {
|
|
62693
|
-
if (err instanceof ResourceNotFoundException$
|
|
63159
|
+
if (err instanceof ResourceNotFoundException$18) return null;
|
|
62694
63160
|
throw err;
|
|
62695
63161
|
}
|
|
62696
63162
|
return null;
|
|
@@ -63145,11 +63611,11 @@ async function update$4(logicalId, physicalId, resourceType, properties, previou
|
|
|
63145
63611
|
const repoArn = metadata?.Arn;
|
|
63146
63612
|
if (repoArn) {
|
|
63147
63613
|
const removedKeys = Object.keys(oldTagMap).filter((k) => !Object.hasOwn(newTagMap, k));
|
|
63148
|
-
if (removedKeys.length > 0) await this.getClient().send(new UntagResourceCommand$
|
|
63614
|
+
if (removedKeys.length > 0) await this.getClient().send(new UntagResourceCommand$29({
|
|
63149
63615
|
resourceArn: repoArn,
|
|
63150
63616
|
tagKeys: removedKeys
|
|
63151
63617
|
}));
|
|
63152
|
-
if (Object.keys(newTagMap).length > 0) await this.getClient().send(new TagResourceCommand$
|
|
63618
|
+
if (Object.keys(newTagMap).length > 0) await this.getClient().send(new TagResourceCommand$28({
|
|
63153
63619
|
resourceArn: repoArn,
|
|
63154
63620
|
tags: newTagMap
|
|
63155
63621
|
}));
|
|
@@ -63656,7 +64122,7 @@ var DLMLifecyclePolicyProvider = class {
|
|
|
63656
64122
|
created = detail.Policy?.DateCreated;
|
|
63657
64123
|
defaultType = detail.Policy?.PolicyDetails?.ResourceType;
|
|
63658
64124
|
} catch (error) {
|
|
63659
|
-
if (error instanceof ResourceNotFoundException$
|
|
64125
|
+
if (error instanceof ResourceNotFoundException$19) continue;
|
|
63660
64126
|
throw error;
|
|
63661
64127
|
}
|
|
63662
64128
|
if (isDefault && defaultType !== void 0 && defaultType !== input.DefaultPolicy) continue;
|
|
@@ -63754,7 +64220,7 @@ var DLMLifecyclePolicyProvider = class {
|
|
|
63754
64220
|
if (tagsChanged && arn) {
|
|
63755
64221
|
const removedKeys = plan.remove;
|
|
63756
64222
|
if (removedKeys.length > 0) {
|
|
63757
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
64223
|
+
await this.getClient().send(new UntagResourceCommand$30({
|
|
63758
64224
|
ResourceArn: arn,
|
|
63759
64225
|
TagKeys: removedKeys
|
|
63760
64226
|
}));
|
|
@@ -63762,7 +64228,7 @@ var DLMLifecyclePolicyProvider = class {
|
|
|
63762
64228
|
}
|
|
63763
64229
|
const tagsToAdd = Object.fromEntries(plan.set);
|
|
63764
64230
|
if (Object.keys(tagsToAdd).length > 0) {
|
|
63765
|
-
await this.getClient().send(new TagResourceCommand$
|
|
64231
|
+
await this.getClient().send(new TagResourceCommand$29({
|
|
63766
64232
|
ResourceArn: arn,
|
|
63767
64233
|
Tags: tagsToAdd
|
|
63768
64234
|
}));
|
|
@@ -63786,7 +64252,7 @@ var DLMLifecyclePolicyProvider = class {
|
|
|
63786
64252
|
await this.getClient().send(new DeleteLifecyclePolicyCommand$1({ PolicyId: physicalId }));
|
|
63787
64253
|
this.logger.debug(`Successfully deleted DLM Lifecycle Policy ${logicalId}`);
|
|
63788
64254
|
} catch (error) {
|
|
63789
|
-
if (error instanceof ResourceNotFoundException$
|
|
64255
|
+
if (error instanceof ResourceNotFoundException$19) {
|
|
63790
64256
|
const clientRegion = await this.getClient().config.region();
|
|
63791
64257
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
63792
64258
|
this.logger.debug(`DLM Lifecycle Policy ${physicalId} does not exist, skipping deletion`);
|
|
@@ -63827,7 +64293,7 @@ var DLMLifecyclePolicyProvider = class {
|
|
|
63827
64293
|
Tags: normalizeAwsTagsToCfn(policy.Tags)
|
|
63828
64294
|
};
|
|
63829
64295
|
} catch (error) {
|
|
63830
|
-
if (error instanceof ResourceNotFoundException$
|
|
64296
|
+
if (error instanceof ResourceNotFoundException$19) return RESOURCE_NOT_FOUND;
|
|
63831
64297
|
throw error;
|
|
63832
64298
|
}
|
|
63833
64299
|
}
|
|
@@ -63854,7 +64320,7 @@ var DLMLifecyclePolicyProvider = class {
|
|
|
63854
64320
|
attributes: response.Policy.PolicyArn ? { Arn: response.Policy.PolicyArn } : {}
|
|
63855
64321
|
} : null;
|
|
63856
64322
|
} catch (err) {
|
|
63857
|
-
if (err instanceof ResourceNotFoundException$
|
|
64323
|
+
if (err instanceof ResourceNotFoundException$19) return null;
|
|
63858
64324
|
throw err;
|
|
63859
64325
|
}
|
|
63860
64326
|
return null;
|
|
@@ -63943,11 +64409,11 @@ var S3VectorsProvider = class S3VectorsProvider {
|
|
|
63943
64409
|
}
|
|
63944
64410
|
if (!resourceArn) throw new ProvisioningError(`Could not resolve ARN for S3 VectorBucket ${logicalId} (${mask(physicalId)}); cannot apply tag update.`, resourceType, logicalId, physicalId);
|
|
63945
64411
|
try {
|
|
63946
|
-
if (Object.keys(toSet).length > 0) await this.getClient().send(new TagResourceCommand$
|
|
64412
|
+
if (Object.keys(toSet).length > 0) await this.getClient().send(new TagResourceCommand$30({
|
|
63947
64413
|
resourceArn,
|
|
63948
64414
|
tags: toSet
|
|
63949
64415
|
}));
|
|
63950
|
-
if (toRemove.length > 0) await this.getClient().send(new UntagResourceCommand$
|
|
64416
|
+
if (toRemove.length > 0) await this.getClient().send(new UntagResourceCommand$31({
|
|
63951
64417
|
resourceArn,
|
|
63952
64418
|
tagKeys: toRemove
|
|
63953
64419
|
}));
|
|
@@ -66333,7 +66799,7 @@ async function applyTableTagsDiff(logicalId, physicalId, resourceType, previousT
|
|
|
66333
66799
|
const resourceArn = await this.lookupTableArn(tableBucketARN, namespace, name);
|
|
66334
66800
|
if (!resourceArn) throw new ProvisioningError(safeMsg`applyTableTagsDiff: GetTable returned no tableARN for ${physicalId} — table is gone ` + `or state is out-of-sync. Refusing to silently drop the tag update. If the table was deleted out-of-band, drop just this resource's record with the command below, filling in the construct path the CDK app gave this resource — its aws:cdk:path Metadata entry in the synthesized template.\nClean up with: ${pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command}`, resourceType, logicalId, physicalId);
|
|
66335
66801
|
if (removedKeys.length > 0) try {
|
|
66336
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
66802
|
+
await this.getClient().send(new UntagResourceCommand$32({
|
|
66337
66803
|
resourceArn,
|
|
66338
66804
|
tagKeys: removedKeys
|
|
66339
66805
|
}));
|
|
@@ -66342,7 +66808,7 @@ async function applyTableTagsDiff(logicalId, physicalId, resourceType, previousT
|
|
|
66342
66808
|
throw this.wrapCaughtError(mask, err, (text) => new ProvisioningError(`applyTableTagsDiff: UntagResource failed for ${resourceArn} (keys: ${removedKeys.join(", ")}): ${sentence(text)} State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause));
|
|
66343
66809
|
}
|
|
66344
66810
|
if (Object.keys(upserts).length > 0) try {
|
|
66345
|
-
await this.getClient().send(new TagResourceCommand$
|
|
66811
|
+
await this.getClient().send(new TagResourceCommand$31({
|
|
66346
66812
|
resourceArn,
|
|
66347
66813
|
tags: upserts
|
|
66348
66814
|
}));
|
|
@@ -66360,7 +66826,7 @@ async function applyTableBucketTagsDiff(logicalId, physicalId, resourceType, pre
|
|
|
66360
66826
|
if (removedKeys.length === 0 && Object.keys(upserts).length === 0) return;
|
|
66361
66827
|
const resourceArn = physicalId;
|
|
66362
66828
|
if (removedKeys.length > 0) try {
|
|
66363
|
-
await this.getClient().send(new UntagResourceCommand$
|
|
66829
|
+
await this.getClient().send(new UntagResourceCommand$32({
|
|
66364
66830
|
resourceArn,
|
|
66365
66831
|
tagKeys: removedKeys
|
|
66366
66832
|
}));
|
|
@@ -66369,7 +66835,7 @@ async function applyTableBucketTagsDiff(logicalId, physicalId, resourceType, pre
|
|
|
66369
66835
|
throw this.wrapCaughtError(mask, err, (text) => new ProvisioningError(`applyTableBucketTagsDiff: UntagResource failed for ${resourceArn} (keys: ${removedKeys.join(", ")}): ${sentence(text)} State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause));
|
|
66370
66836
|
}
|
|
66371
66837
|
if (Object.keys(upserts).length > 0) try {
|
|
66372
|
-
await this.getClient().send(new TagResourceCommand$
|
|
66838
|
+
await this.getClient().send(new TagResourceCommand$31({
|
|
66373
66839
|
resourceArn,
|
|
66374
66840
|
tags: upserts
|
|
66375
66841
|
}));
|
|
@@ -66999,7 +67465,7 @@ async function create$1(logicalId, resourceType, properties, context) {
|
|
|
66999
67465
|
this.logger.info(`Deploying nested stack ${displaySafe(childStackName)} (logicalId=${displaySafe(logicalId)}, ${resourceCount} resource(s))`);
|
|
67000
67466
|
let pendingChildDeletes;
|
|
67001
67467
|
try {
|
|
67002
|
-
pendingChildDeletes = await this.runChildDeploy(ctx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates);
|
|
67468
|
+
pendingChildDeletes = await this.runChildDeploy(ctx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates, properties["Tags"]);
|
|
67003
67469
|
} catch (error) {
|
|
67004
67470
|
clearCreatedBeforeFailure(error);
|
|
67005
67471
|
throw error;
|
|
@@ -67033,7 +67499,7 @@ async function update$1(logicalId, physicalId, _resourceType, properties, _previ
|
|
|
67033
67499
|
const childParameters = this.extractParameters(properties);
|
|
67034
67500
|
const resourceCount = Object.keys(childTemplate.Resources ?? {}).length;
|
|
67035
67501
|
this.logger.info(`Updating nested stack ${displaySafe(childStackName)} (logicalId=${displaySafe(logicalId)}, ${resourceCount} resource(s))`);
|
|
67036
|
-
const pendingChildDeletes = await this.runChildDeploy(ctx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates);
|
|
67502
|
+
const pendingChildDeletes = await this.runChildDeploy(ctx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates, properties["Tags"]);
|
|
67037
67503
|
const pendingRecord = recordWithPendingChildDeletes(properties, pendingChildDeletes);
|
|
67038
67504
|
const updatedOutputs = await this.readChildOutputsAsAttributes(ctx, childStackName, childRegion);
|
|
67039
67505
|
return {
|
|
@@ -67171,7 +67637,11 @@ async function deleteImpl$1(logicalId, _physicalId, _resourceType, _properties,
|
|
|
67171
67637
|
}
|
|
67172
67638
|
|
|
67173
67639
|
// src/provisioning/providers/nested-stack/child-deploy.ts
|
|
67174
|
-
async function runChildDeploy(parentCtx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates) {
|
|
67640
|
+
async function runChildDeploy(parentCtx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates, rowTags) {
|
|
67641
|
+
const rowOwn = childRowTags(rowTags, getCurrentResourceSecrets());
|
|
67642
|
+
if (rowOwn.tags === void 0) this.logger.warn(safeMsg`Nested stack ${displayIdent(logicalId)}: its Tags are not a list of string Key/Value pairs, so only the parent stack's tags are applied to its resources.`);
|
|
67643
|
+
for (const key of rowOwn.withheld) this.logger.warn(safeMsg`Nested stack ${displayIdent(logicalId)}: its tag ${key} is not applied to the nested stack's resources: its value holds a secret (a NoEcho value, or a secret cdkd cannot pass down as its {{resolve:...}} reference), which cdkd does not write to state.`);
|
|
67644
|
+
const stackTags = childStackTags(parentCtx.options?.stackTags, rowOwn.tags);
|
|
67175
67645
|
const inheritedSecrets = getCurrentResourceSecrets();
|
|
67176
67646
|
const passedClasses = passedParameterClassesOf(inheritedSecrets);
|
|
67177
67647
|
const childEngine = new DeployEngine(parentCtx.stateBackend, parentCtx.lockManager, parentCtx.dagBuilder, parentCtx.diffCalculator, parentCtx.providerRegistry, {
|
|
@@ -67184,6 +67654,7 @@ async function runChildDeploy(parentCtx, logicalId, childStackName, childRegion,
|
|
|
67184
67654
|
...passedClasses && { passedParameterClasses: passedClasses },
|
|
67185
67655
|
passedNoEchoParameters: passedNoEchoParametersOf(inheritedSecrets),
|
|
67186
67656
|
inheritedProducerRegions: getCurrentProducerRegions(),
|
|
67657
|
+
stackTags,
|
|
67187
67658
|
parentStackInfo: {
|
|
67188
67659
|
parentStack: parentCtx.parentStackName,
|
|
67189
67660
|
parentLogicalId: logicalId,
|
|
@@ -67195,6 +67666,10 @@ async function runChildDeploy(parentCtx, logicalId, childStackName, childRegion,
|
|
|
67195
67666
|
parentStackName: childStackName,
|
|
67196
67667
|
parentRegion: childRegion,
|
|
67197
67668
|
nestedTemplates: grandchildTemplates,
|
|
67669
|
+
options: {
|
|
67670
|
+
...parentCtx.options ?? {},
|
|
67671
|
+
stackTags
|
|
67672
|
+
},
|
|
67198
67673
|
childUnaddressed: void 0
|
|
67199
67674
|
};
|
|
67200
67675
|
const childResult = await withNestedStackContext(childCtx, () => childEngine.deploy(childStackName, childTemplate));
|
|
@@ -67324,7 +67799,11 @@ var NestedStackProvider = class {
|
|
|
67324
67799
|
logger = getLogger().child("NestedStackProvider");
|
|
67325
67800
|
disableOuterRetry = true;
|
|
67326
67801
|
disableCcApiFallback = true;
|
|
67327
|
-
handledProperties = /* @__PURE__ */ new Map([["AWS::CloudFormation::Stack", /* @__PURE__ */ new Set([
|
|
67802
|
+
handledProperties = /* @__PURE__ */ new Map([["AWS::CloudFormation::Stack", /* @__PURE__ */ new Set([
|
|
67803
|
+
"TemplateURL",
|
|
67804
|
+
"Parameters",
|
|
67805
|
+
"Tags"
|
|
67806
|
+
])]]);
|
|
67328
67807
|
unhandledByDesign = /* @__PURE__ */ new Map([["AWS::CloudFormation::Stack", /* @__PURE__ */ new Map([
|
|
67329
67808
|
["TemplateBody", "CFn-only inline template — cdkd reads the child template from the synth output via Metadata['aws:asset:path'] instead of accepting it inline"],
|
|
67330
67809
|
["Capabilities", "CFn-only IAM capability declaration — cdkd does not go through CloudFormation so capabilities have no equivalent"],
|
|
@@ -67337,7 +67816,6 @@ var NestedStackProvider = class {
|
|
|
67337
67816
|
["StackPolicyBody", "CFn-only stack-update policy — cdkd has no equivalent (per-resource diff replaces stack-level policy)"],
|
|
67338
67817
|
["StackPolicyURL", "CFn-only stack-update policy URL — cdkd has no equivalent"],
|
|
67339
67818
|
["StackStatusReason", "CFn-only read-only output — never a real input property"],
|
|
67340
|
-
["Tags", "CFn-only — cdkd does not tag the synthesized \"stack\" (the parent's synthesized ARN is a cdkd-local placeholder, not a real AWS resource)"],
|
|
67341
67819
|
["TimeoutInMinutes", "CFn-only stack-create deadline — cdkd uses per-resource --resource-timeout instead"]
|
|
67342
67820
|
])]]);
|
|
67343
67821
|
create(logicalId, resourceType, properties, context) {
|
|
@@ -67355,8 +67833,8 @@ var NestedStackProvider = class {
|
|
|
67355
67833
|
getAttribute(_physicalId, _resourceType, attributeName) {
|
|
67356
67834
|
return getAttribute.call(this, _physicalId, _resourceType, attributeName);
|
|
67357
67835
|
}
|
|
67358
|
-
runChildDeploy(parentCtx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates) {
|
|
67359
|
-
return runChildDeploy.call(this, parentCtx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates);
|
|
67836
|
+
runChildDeploy(parentCtx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates, rowTags) {
|
|
67837
|
+
return runChildDeploy.call(this, parentCtx, logicalId, childStackName, childRegion, childTemplate, childParameters, grandchildTemplates, rowTags);
|
|
67360
67838
|
}
|
|
67361
67839
|
readChildOutputsAsAttributes(ctx, childStackName, childRegion) {
|
|
67362
67840
|
return readChildOutputsAsAttributes.call(this, ctx, childStackName, childRegion);
|
|
@@ -68072,5 +68550,5 @@ var ACMCertificateProvider = class {
|
|
|
68072
68550
|
}
|
|
68073
68551
|
};
|
|
68074
68552
|
|
|
68075
|
-
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, LightsailAlarmProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, LogsDeliverySourceProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider, WaitConditionProvider };
|
|
68076
|
-
//# sourceMappingURL=provider-classes-
|
|
68553
|
+
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, ConnectInstanceProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeArchiveProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LightsailAlarmProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, LogsDeliverySourceProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider, WaitConditionProvider };
|
|
68554
|
+
//# sourceMappingURL=provider-classes-BfmqRWw8.js.map
|