@cdkd/cli 0.365.0 → 0.366.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-AnEvWPy0.js → ambient-client-defaults-DGlgLkLA.js} +15 -3
- package/dist/ambient-client-defaults-DGlgLkLA.js.map +1 -0
- package/dist/{asg-provider-BzCU3XtA.js → asg-provider-BYDJF4aP.js} +6 -6
- package/dist/{asg-provider-BzCU3XtA.js.map → asg-provider-BYDJF4aP.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-SB_NsQMH.js → custom-resource-runtime-Dwdx83HD.js} +6 -6
- package/dist/{custom-resource-runtime-SB_NsQMH.js.map → custom-resource-runtime-Dwdx83HD.js.map} +1 -1
- package/dist/{db-associated-roles-D1wmFO_Y.js → db-associated-roles-CHCg0hfT.js} +2 -2
- package/dist/{db-associated-roles-D1wmFO_Y.js.map → db-associated-roles-CHCg0hfT.js.map} +1 -1
- package/dist/{delete-started-BJNrzLUk.js → delete-started-B1pjTEWL.js} +6 -6
- package/dist/{delete-started-BJNrzLUk.js.map → delete-started-B1pjTEWL.js.map} +1 -1
- package/dist/{deploy-engine-BSqVfcSN.js → deploy-engine-C1OMmZo7.js} +134 -63
- package/dist/deploy-engine-C1OMmZo7.js.map +1 -0
- package/dist/{ec2-termination-protection-ekOvhSp9.js → ec2-termination-protection-ndoL1mf5.js} +11 -6
- package/dist/ec2-termination-protection-ndoL1mf5.js.map +1 -0
- package/dist/{ecr-uri-VpDi19pi.js → ecr-uri-B8gIqzvr.js} +2 -2
- package/dist/{ecr-uri-VpDi19pi.js.map → ecr-uri-B8gIqzvr.js.map} +1 -1
- package/dist/{expected-bucket-owner-CmPtCsrQ.js → expected-bucket-owner-DqlNitge.js} +2 -2
- package/dist/{expected-bucket-owner-CmPtCsrQ.js.map → expected-bucket-owner-DqlNitge.js.map} +1 -1
- package/dist/{iam-role-provider-Ct6UbKFo.js → iam-role-provider-Y-OvXXLi.js} +11 -10
- package/dist/iam-role-provider-Y-OvXXLi.js.map +1 -0
- package/dist/{image-plan-gTOaUUbI.js → image-plan-QGSDHbZb.js} +8 -8
- package/dist/{image-plan-gTOaUUbI.js.map → image-plan-QGSDHbZb.js.map} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-IBUeRw1z.js → logger-DtNR12g9.js} +6 -2
- package/dist/logger-DtNR12g9.js.map +1 -0
- package/dist/{neptune-provider-QgaV_sKy.js → neptune-provider-DkqUzNAQ.js} +7 -7
- package/dist/{neptune-provider-QgaV_sKy.js.map → neptune-provider-DkqUzNAQ.js.map} +1 -1
- package/dist/{program-tHhew1Z5.js → program-CnVw8I_o.js} +43 -31
- package/dist/program-CnVw8I_o.js.map +1 -0
- package/dist/{provider-classes-DTMnDVMz.js → provider-classes-p7pdWDAx.js} +261 -20
- package/dist/provider-classes-p7pdWDAx.js.map +1 -0
- package/dist/{rds-provider-D2dkhl8m.js → rds-provider-DINaS0eX.js} +10 -10
- package/dist/{rds-provider-D2dkhl8m.js.map → rds-provider-DINaS0eX.js.map} +1 -1
- package/dist/{read-replica-CfbVMoYV.js → read-replica-CsBlH9Uj.js} +3 -3
- package/dist/{read-replica-CfbVMoYV.js.map → read-replica-CsBlH9Uj.js.map} +1 -1
- package/dist/{replacement-rules-BiIOJMA-.js → replacement-rules-BfJA0Tv-.js} +3 -3
- package/dist/{replacement-rules-BiIOJMA-.js.map → replacement-rules-BfJA0Tv-.js.map} +1 -1
- package/dist/{resource-deadline-BSpNiiNd.js → resource-deadline-Bi1vjvil.js} +9 -5
- package/dist/{resource-deadline-BSpNiiNd.js.map → resource-deadline-Bi1vjvil.js.map} +1 -1
- package/dist/{restore-source-guard-Be6A_rNB.js → restore-source-guard-yKdDVYcc.js} +4 -4
- package/dist/{restore-source-guard-Be6A_rNB.js.map → restore-source-guard-yKdDVYcc.js.map} +1 -1
- package/dist/{run-cli-BkrNHPD5.js → run-cli-B7LQ5-nX.js} +2 -2
- package/dist/{run-cli-BkrNHPD5.js.map → run-cli-B7LQ5-nX.js.map} +1 -1
- package/dist/{settle-own-write-members-BqAKt1e7.js → settle-own-write-members-CX9PE0nB.js} +12 -12
- package/dist/{settle-own-write-members-BqAKt1e7.js.map → settle-own-write-members-CX9PE0nB.js.map} +1 -1
- package/dist/{version-0AMFL2lR.js → version-vwWFWlIH.js} +2 -2
- package/dist/{version-0AMFL2lR.js.map → version-vwWFWlIH.js.map} +1 -1
- package/package.json +2 -1
- package/dist/ambient-client-defaults-AnEvWPy0.js.map +0 -1
- package/dist/deploy-engine-BSqVfcSN.js.map +0 -1
- package/dist/ec2-termination-protection-ekOvhSp9.js.map +0 -1
- package/dist/iam-role-provider-Ct6UbKFo.js.map +0 -1
- package/dist/logger-IBUeRw1z.js.map +0 -1
- package/dist/program-tHhew1Z5.js.map +0 -1
- package/dist/provider-classes-DTMnDVMz.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { _ as isEntityAlreadyExists, a as stackOwnHolders, c as restoreOwnWriteRemovals, d as MANAGED_POLICY_OWNER, f as assertInlinePolicyAttachTargets, g as iamEntityLeftByThisCreate, h as verifyOwnIdentityBeforeUpdate, i as isStackOwnHolder, l as takeOwnWriteRemovals, m as verifyInlinePolicyPrincipals, n as collectInlinePolicyNamesManagedBySiblings, o as clearOwnWriteRemovals, p as compareMembershipWrites, r as heldText, s as recordOwnWriteRemoval, t as IAMRoleProvider, u as InlinePolicyPrincipalMismatchError, v as IamCreateClientCache } 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 isEntityAlreadyExists, a as stackOwnHolders, c as restoreOwnWriteRemovals, d as MANAGED_POLICY_OWNER, f as assertInlinePolicyAttachTargets, g as iamEntityLeftByThisCreate, h as verifyOwnIdentityBeforeUpdate, i as isStackOwnHolder, l as takeOwnWriteRemovals, m as verifyInlinePolicyPrincipals, n as collectInlinePolicyNamesManagedBySiblings, o as clearOwnWriteRemovals, p as compareMembershipWrites, r as heldText, s as recordOwnWriteRemoval, t as IAMRoleProvider, u as InlinePolicyPrincipalMismatchError, v as IamCreateClientCache } from "./iam-role-provider-Y-OvXXLi.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-DtNR12g9.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 { $
|
|
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, 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 tagListsMatch, B as LIFECYCLE_DEFAULT_STATUS, C as reconcileSgRules, D as singleSecurityGroupRuleId, E as sgRuleKey, 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 stackIngressRuleHolder, P as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, Q as effectiveIntelligentTieringItem, R as settleLifecycleRead, S as narrowIngressIpProtocol, T as securityGroupRuleMatchesCfnIngress, 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 flattenIpPermissions, a as resolveSecretDerivedPrincipals, at as declaresBucketObjectLock, b as isDefaultEgressRule, c as readSgIngressById, ct as isPlainObject$5, d as SG_RULE_PAGE_SIZE, dt as shownLifecycleRuleId, et as effectiveNotificationConfiguration, f as authorizeDefinitelyNotApplied, g as descriptionKey, h as comparableIngressIdentity, i as isResolvableSecretPrincipalList, it as configItemId, j as markCopiesAgreed, k as survivingRecordOfRuleId, l as siblingIdOwnedSgRules, lt as manualBucketDeletionClause, m as canonicalizeSgRuleProtocol, n as runDestroyForStack, nt as caughtErrorName, o as refuseRevertRevokingSiblingRules, ot as declaresNestedObjectLock, p as canonicalizeSgInlineRuleProtocols, q as lifecycleRuleScope, r as holdsUnprovenSecretPrincipalToken, rt as coerceCfnNumber, s as sgRuleDiffKey, st as describeValue$1, t as canonicalizeIpv4Cidr, tt as eventBridgeEnabledOf, u as SG_READBACK_RETRY_DELAY_MS, ut as mergeLegacySingular, v as ingressRuleIdentity, w as securityGroupReadbackDelays, x as isResendableSocketFailure, y as isConnectTimeout, z as takeLifecycleWrite } from "./program-
|
|
9
|
-
import { $ as recordTagWrite, $a 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 { W as timePhase, _ as onlySecretReferencesDiffer, a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, f as markRefusedBeforeApplying, i as observeThenDisableInstanceApiTermination, j as withRetry, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedPerTypeResourceTimeoutMs, u as getPriorAttempts, v as unchangedBehindSecretReference } from "./ec2-termination-protection-
|
|
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-DGlgLkLA.js";
|
|
5
|
+
import { $ as deleteAfterProtectionFlipWithFinalSnapshot, A as assertRegionMatch, B as refusalTypeShown, Bt as segmentAfterAnchor, C as isInsideWindow, D as withoutServerErrorRetries, Dt as holdsSecretDerivedEntry, E as setBounded, Et as diffPrincipalNames, F as isPlainImportJson, Ft as compositeIdSeparatorRefusal, Gt as maskDeep, H as resolveExplicitPhysicalId, Ht as createMaskedLogSinks, I as isPlainImportValue, It as compositeIdSkipResult, J as observeThenDisableProtection, K as deleteWithProtectionCompensation, Kt as maskerOrIdentity, L as isQuotableImportValue, Lt as logicalIdShown, M as holderRefusalRun, N as VALUE_NOT_SHOWN, Nt as canonicalizeRoute53QueryName, O as DriftReadRefusedError, Ot as onlySecretDerived, P as importRemedyCommand, Pt as compositeIdFormatMessage, Q as PROTECTION_FLIP_RETRY_WAIT_MS, R as normalizeAwsTagsToCfn, Rt as packCompositeId, S as createAttemptKey, Sn as injectiveKeyPrefix, St as startInterruptWatch, T as replayedSendWindow, Tt as SECRET_DERIVED_READ_LIVE, Ut as createMaskedRetryLogger, V as remedyLogicalId, Vt as stateOrphanRecordRemedy, W as markNotGone, Wt as isSecretDerivedValue, Xt as clearCreatedBeforeFailure, Y as rdsFamilyProtectionSite, Z as userPoolProtectionSite, _ as AMBIGUOUS_LATCH_TTL_MS, _t as renderDisableCommand, a as clearOnUpdateRemoval, at as isTerminalDeleteFailure, b as RecentIdSet, bn as withPasteableAwsProfile, c as removedTemplateKeys, ct as ElapsedBudget, en as isAuxiliaryFailure, ft as UNNAMEABLE_ID_CLAUSE, g as retractCreatedResource, gt as protectedReplacementAdvice, ht as pasteableAwsCommand, in as markSupersedesEarlierCreate, it as ProtectionFlipRegistry, j as holderRefusalMask, jt as recordedPrincipalsRepair, k as RESOURCE_NOT_FOUND, kt as readPrincipalLists, l as withRemovalDefaults, lt as ElapsedBudgetRegistry, m as reportCreatedResource, mt as isAwsCliLiteral, n as enclosingDeadlineRemainingMs, nn as markAuxiliaryFailure, nt as isTerminalDbWaitStatus, ot as protectionFlipKey, pt as WITHHELD_AWS_COMMAND, q as logGroupProtectionSite, qt as withDerivedNameMasks, rn as markCreatedBeforeFailure, t as enclosingDeadlineExpired, tt as isProceedDbStatus, v as AmbiguousCreateLatch, w as replayFollowedAmbiguousAttempt, x as ambiguousAttemptLead, xn as injectiveKey, xt as isInterruptedWaitError, y as CREATION_DATE_SKEW_MARGIN_MS, z as quotedRemedyLogicalId } from "./resource-deadline-Bi1vjvil.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-vwWFWlIH.js";
|
|
7
|
+
import { Ct as RecordedIdentityMismatchError, Mt as identityTimestamp, Ot as recordedIdentityId, Rt as isoTimestampAttribute, St as RecordedIdentityError, 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-B1pjTEWL.js";
|
|
8
|
+
import { $ as effectiveInventoryItem, A as tagListsMatch, B as LIFECYCLE_DEFAULT_STATUS, C as reconcileSgRules, D as singleSecurityGroupRuleId, E as sgRuleKey, 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 stackIngressRuleHolder, P as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, Q as effectiveIntelligentTieringItem, R as settleLifecycleRead, S as narrowIngressIpProtocol, T as securityGroupRuleMatchesCfnIngress, 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 flattenIpPermissions, a as resolveSecretDerivedPrincipals, at as declaresBucketObjectLock, b as isDefaultEgressRule, c as readSgIngressById, ct as isPlainObject$5, d as SG_RULE_PAGE_SIZE, dt as shownLifecycleRuleId, et as effectiveNotificationConfiguration, f as authorizeDefinitelyNotApplied, g as descriptionKey, h as comparableIngressIdentity, i as isResolvableSecretPrincipalList, it as configItemId, j as markCopiesAgreed, k as survivingRecordOfRuleId, l as siblingIdOwnedSgRules, lt as manualBucketDeletionClause, m as canonicalizeSgRuleProtocol, n as runDestroyForStack, nt as caughtErrorName, o as refuseRevertRevokingSiblingRules, ot as declaresNestedObjectLock, p as canonicalizeSgInlineRuleProtocols, q as lifecycleRuleScope, r as holdsUnprovenSecretPrincipalToken, rt as coerceCfnNumber, s as sgRuleDiffKey, st as describeValue$1, t as canonicalizeIpv4Cidr, tt as eventBridgeEnabledOf, u as SG_READBACK_RETRY_DELAY_MS, ut as mergeLegacySingular, v as ingressRuleIdentity, w as securityGroupReadbackDelays, x as isResendableSocketFailure, y as isConnectTimeout, z as takeLifecycleWrite } from "./program-CnVw8I_o.js";
|
|
9
|
+
import { $ as recordTagWrite, $a as policyDocumentMatchesDeclared, $r as REDACTED_DELETE_ADDRESS_SKIP_REASON, $s as isLegacyHandleId, At as resolveDynamoDbDeleteBudgetMs, B as declaredStreamTagsMember, Ba as getStackRecords, Bo as withIndeterminateGuard, Bt as hasCdkAutoDeleteTag, Cd as renderAssemblyPathEscape, Ct as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, Dr as calculateResourceDrift, Dt as compensateRemovedDeletionProtection, Du as renderNestedTemplateTreeDefect, Ec as passedParameterClassesOf, Et as beginDeleteWait, Eu as listNestedTemplateRows, Fa as isStoredExpression, Fr as earliestDefined, Ft as maskedLogger, G as streamDeclaresTags, Gl as findSdkUnwiredProperties, I as DynamoDBGlobalTableProvider, Ia as withoutSiblingAttachedArns, Il as accountArgs, It as relayedIndexBusyDelete, J as streamTagsMatchDeclared, Ja as declaredMemberDocument, Jl as withoutSdkUnwiredProperties, K as streamMemberRefusals, Ka as OWN_WRITE_REREAD_DELAYS_MS, Ki as replacedDeleteFailureVerdict, Ku as rewriteTemplateAssetReferences, L as STREAM_POLICY_KEY, La as withoutSiblingOwned, Ll as withheldAccountClause, Lr as reserveStackCreateToken, Lt as waitForIndexesSettled, Ma as collectGroupsAddedBySiblings, Mo as waitForLambdaFunctionActive, Mt as INDEX_SETTLE_POLL_INTERVAL_MS, Na as collectManagedPolicyArnsAttachedBySiblings, Ns as outputReferenceProvenanceOf, Nt as TABLE_INDEX_NOUN, Ot as deleteBudgetKey, Pa as collectPrincipalsAttachingPolicy, Po as waitForGoneAfterDelete, Pt as deleteTableWithIndexBusyRetry, Pu as decodeListingKey, Q as isDynamoDBTableArnIn, Qa as memberReadFailure, Qs as LEGACY_HANDLE_ID_PREFIX, R as STREAM_TAGS_KEY, Ra as awaitInFlightSibling, Rt as ECR_AUTO_DELETE_IMAGES_TAG, So as getCurrentResourceSecrets, St as stripIndexContributorInsights, Su as stringifyValue, Tt as DYNAMODB_DELETE_POLL_COST_MS, Tu as isAbsoluteAssetPath, U as reverseMapStreamPolicy, Uo as markWaitAbandoned, V as planStreamMemberOps, Vt as isTruthyCfnBoolean, W as streamDeclaresPolicy, Wa as KMS_DEFAULT_KEY_POLICY_ID, X as clearTagWrites, Xa as efsPolicyMatchesDeclared, Y as TAGS_BASELINE_REREAD_DELAYS_MS, Ya as declaredPolicyDocument, Yo as isSettledInstanceState, Za as lambdaPermissionMatchesDeclared, _n as getCurrentNestedStackContext, _s as s3BucketDualStackDomainName, _t as planContributorInsightsOp, ao as policyContentKey, at as planTimeToLive, bd as describeFileReadFailure, bt as reverseMapIndexContributorInsights, cc as coerceWarmThroughput$1, ct as planVectorIndexUpdates, dc as toFiniteNumber, do as WaitConditionSignalStore, dr as withoutSiblingOwnedSgRules, dt as vectorIndexesSettled, ei as isRedactedRecordedValue, eo as reReadUntilSettled, et as settleWrittenTags, fc as APPSYNC_APIKEY_ARN_RESOURCE_PATH, fo as classifyHandleUrl, fr as SG_RULE_ID_PATTERN, ft as vectorIndexesShapeDetail, ga as secretNamedAttributeNamesOf, gs as s3BucketDomainName, gt as indexDeclaresContributorInsights, hr as sgProtocolKey, hs as s3BucketArn, ht as contributorInsightsRefusals, io as attemptedPolicyDocument, it as isTtlRateLimited, jl as refuseMalformedResourcesForDestroy, jt as DELETE_INDEX_WAIT_PROCEED_NOTE, ks as parseWebACLArn, kt as resolveDynamoDbDeleteBudgetClock, lc as isWarmThroughputDecrease, lr as siblingOwnedSgRuleIdentities, lt as readbackVectorIndexes, mc as maskedSecretSegment, mr as recordedSgRuleId, mt as completeTableContributorInsightsBaseline, ni as redactedDeleteAddressSkip, nn as licensedNameHolder, no as warnUnsettledMember, nt as takeTagWrite, nu as normalizeRecordName, ot as readTtlSpec, pi as getCurrentProducerRegions, pn as revertNestedChildFromJournal, po as evaluateSignals, pr as cfnIngressPortValue, pt as CONTRIBUTOR_INSIGHTS_KEY, q as streamPolicyMatchesDeclared, qa as SNS_DEFAULT_POLICY_ID, ro as verbatimEchoDriftKeys, rt as isTtlAlreadyDisabled, ru as planSubscriptionAttributes, sc as WARM_THROUGHPUT_MEMBERS, st as sendTtlWaitingOutRateLimit, t as DeployEngine, ti as redactedDeleteAddressFields, to as settleDeclaredMember, uc as toCfnInteger, un as getNestedRevertRun, ut as vectorIndexesForCreate, vn as withNestedStackContext, vs as s3BucketRegionalDomainName, vt as planIndexContributorInsightsOps, wd as resolveAssemblyPath, wt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, wu as findNestedTemplateTreeDefect, xd as displayAssemblyPath, xl as refuseMalformedNestedChildOutputs, xt as reverseMapTableContributorInsights, ys as s3BucketWebsiteUrl, yt as readContributorInsightsSpec, z as declaredStreamPolicyMember, zo as deleteSkipReason, zr as acquireIdempotencyToken, zs as getAccountInfo, zt as S3_AUTO_DELETE_OBJECTS_TAG } from "./deploy-engine-C1OMmZo7.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-yKdDVYcc.js";
|
|
11
|
+
import { W as timePhase, _ as onlySecretReferencesDiffer, a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, f as markRefusedBeforeApplying, i as observeThenDisableInstanceApiTermination, j as withRetry, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedPerTypeResourceTimeoutMs, u as getPriorAttempts, v as unchangedBehindSecretReference } from "./ec2-termination-protection-ndoL1mf5.js";
|
|
12
|
+
import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-CX9PE0nB.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, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-
|
|
16
|
-
import { RDSProvider } from "./rds-provider-
|
|
17
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
18
|
-
import { ASGProvider } from "./asg-provider-
|
|
15
|
+
import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-BfJA0Tv-.js";
|
|
16
|
+
import { RDSProvider } from "./rds-provider-DINaS0eX.js";
|
|
17
|
+
import { NeptuneProvider } from "./neptune-provider-DkqUzNAQ.js";
|
|
18
|
+
import { ASGProvider } from "./asg-provider-BYDJF4aP.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,6 +49,7 @@ import { AddTagsToResourceCommand as AddTagsToResourceCommand$2, CreateDBProxyCo
|
|
|
49
49
|
import { isIPv6 } from "node:net";
|
|
50
50
|
import { ListTagsForResourceCommand as ListTagsForResourceCommand$11, S3ControlClient, TagResourceCommand as TagResourceCommand$13, UntagResourceCommand as UntagResourceCommand$13 } from "@aws-sdk/client-s3-control";
|
|
51
51
|
import * as zlib from "node:zlib";
|
|
52
|
+
import { DeleteAlarmCommand, GetAlarmsCommand, LightsailClient, PutAlarmCommand } from "@aws-sdk/client-lightsail";
|
|
52
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$14, UntagResourceCommand as UntagResourceCommand$14, UpdateApiCommand, UpdateAuthorizerCommand as UpdateAuthorizerCommand$1, UpdateIntegrationCommand, UpdateRouteCommand, UpdateStageCommand as UpdateStageCommand$1 } from "@aws-sdk/client-apigatewayv2";
|
|
53
54
|
import { CreateStateMachineCommand, DeleteStateMachineCommand, DescribeStateMachineCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$12, SFNClient, StateMachineDoesNotExist, TagResourceCommand as TagResourceCommand$15, UntagResourceCommand as UntagResourceCommand$15, UpdateStateMachineCommand } from "@aws-sdk/client-sfn";
|
|
54
55
|
import { CreateClusterCommand, CreateServiceCommand, DeleteClusterCommand, DeleteServiceCommand, DeregisterTaskDefinitionCommand, DescribeClustersCommand, DescribeServicesCommand, DescribeTaskDefinitionCommand, ECSClient, ListTaskDefinitionsCommand, PutClusterCapacityProvidersCommand, RegisterTaskDefinitionCommand, TagResourceCommand as TagResourceCommand$16, UntagResourceCommand as UntagResourceCommand$16, UpdateClusterCommand, UpdateServiceCommand, waitUntilServicesStable } from "@aws-sdk/client-ecs";
|
|
@@ -3240,7 +3241,7 @@ async function deleteGroup(logicalId, physicalId, resourceType, context) {
|
|
|
3240
3241
|
};
|
|
3241
3242
|
const refuseHeld = (held, cause) => {
|
|
3242
3243
|
const run = holderRefusalRun(context);
|
|
3243
|
-
const refusal = markNonRetryable(new ProvisioningError(log.mask(`Failed to delete IAM group ${logicalId}: group ${physicalId} still has user(s) ${heldText(held)}, whose membership this ${run.noun} did not remove (a user added outside the stack, one retained by a DeletionPolicy, or a stack user whose own delete has not finished yet). Matching CloudFormation (DeleteConflict), cdkd does not remove them from the group. If a named user is one of this stack's users, ${run.rerun} once its delete finishes. Otherwise, if they no longer need the group, remove them (aws iam remove-user-from-group --group-name <group> --user-name <user>), then ${run.again}.`), resourceType, logicalId, physicalId, cause));
|
|
3244
|
+
const refusal = markNonRetryable(new ProvisioningError(holderRefusalMask(context, log.mask)(`Failed to delete IAM group ${logicalId}: group ${physicalId} still has user(s) ${heldText(held)}, whose membership this ${run.noun} did not remove (a user added outside the stack, one retained by a DeletionPolicy, or a stack user whose own delete has not finished yet). Matching CloudFormation (DeleteConflict), cdkd does not remove them from the group. If a named user is one of this stack's users, ${run.rerun} once its delete finishes. Otherwise, if they no longer need the group, remove them (aws iam remove-user-from-group --group-name <group> --user-name <user>), then ${run.again}.`), resourceType, logicalId, physicalId, cause));
|
|
3244
3245
|
MEMBER_REFUSALS.add(refusal);
|
|
3245
3246
|
throw refusal;
|
|
3246
3247
|
};
|
|
@@ -18538,6 +18539,246 @@ var CloudWatchAlarmProvider = class {
|
|
|
18538
18539
|
}
|
|
18539
18540
|
};
|
|
18540
18541
|
|
|
18542
|
+
// src/provisioning/providers/lightsail-alarm-provider.ts
|
|
18543
|
+
const AWS_BUCKETS = {
|
|
18544
|
+
PutAlarm: {
|
|
18545
|
+
size: 3,
|
|
18546
|
+
refillPerSecond: 1
|
|
18547
|
+
},
|
|
18548
|
+
DeleteAlarm: {
|
|
18549
|
+
size: 3,
|
|
18550
|
+
refillPerSecond: 1
|
|
18551
|
+
},
|
|
18552
|
+
GetAlarms: {
|
|
18553
|
+
size: 5,
|
|
18554
|
+
refillPerSecond: 1
|
|
18555
|
+
}
|
|
18556
|
+
};
|
|
18557
|
+
var LightsailTokenBucket = class {
|
|
18558
|
+
tokens;
|
|
18559
|
+
last;
|
|
18560
|
+
size;
|
|
18561
|
+
refillPerSecond;
|
|
18562
|
+
now;
|
|
18563
|
+
sleep;
|
|
18564
|
+
constructor(size, refillPerSecond, now = () => Date.now(), sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))) {
|
|
18565
|
+
this.size = size;
|
|
18566
|
+
this.refillPerSecond = refillPerSecond;
|
|
18567
|
+
this.now = now;
|
|
18568
|
+
this.sleep = sleep;
|
|
18569
|
+
this.tokens = size;
|
|
18570
|
+
this.last = now();
|
|
18571
|
+
}
|
|
18572
|
+
async take() {
|
|
18573
|
+
for (;;) {
|
|
18574
|
+
const now = this.now();
|
|
18575
|
+
this.tokens = Math.min(this.size, this.tokens + (now - this.last) / 1e3 * this.refillPerSecond);
|
|
18576
|
+
this.last = now;
|
|
18577
|
+
if (this.tokens >= 1) {
|
|
18578
|
+
this.tokens -= 1;
|
|
18579
|
+
return;
|
|
18580
|
+
}
|
|
18581
|
+
await this.sleep(Math.ceil((1 - this.tokens) / this.refillPerSecond * 1e3));
|
|
18582
|
+
}
|
|
18583
|
+
}
|
|
18584
|
+
};
|
|
18585
|
+
const buckets = /* @__PURE__ */ new Map();
|
|
18586
|
+
function bucketFor(region, api) {
|
|
18587
|
+
const key = injectiveKey(region, api);
|
|
18588
|
+
let bucket = buckets.get(key);
|
|
18589
|
+
if (bucket === void 0) {
|
|
18590
|
+
const aws = AWS_BUCKETS[api];
|
|
18591
|
+
bucket = new LightsailTokenBucket(Math.max(1, aws.size - 1), aws.refillPerSecond * .9);
|
|
18592
|
+
buckets.set(key, bucket);
|
|
18593
|
+
}
|
|
18594
|
+
return bucket;
|
|
18595
|
+
}
|
|
18596
|
+
var LightsailAlarmProvider = class {
|
|
18597
|
+
client;
|
|
18598
|
+
providerRegion = ambientRegion();
|
|
18599
|
+
logger = getLogger().child("LightsailAlarmProvider");
|
|
18600
|
+
handledProperties = /* @__PURE__ */ new Map([["AWS::Lightsail::Alarm", /* @__PURE__ */ new Set([
|
|
18601
|
+
"AlarmName",
|
|
18602
|
+
"MonitoredResourceName",
|
|
18603
|
+
"MetricName",
|
|
18604
|
+
"ComparisonOperator",
|
|
18605
|
+
"EvaluationPeriods",
|
|
18606
|
+
"Threshold",
|
|
18607
|
+
"DatapointsToAlarm",
|
|
18608
|
+
"TreatMissingData",
|
|
18609
|
+
"ContactProtocols",
|
|
18610
|
+
"NotificationTriggers",
|
|
18611
|
+
"NotificationEnabled"
|
|
18612
|
+
])]]);
|
|
18613
|
+
throttleDelaysMs = [
|
|
18614
|
+
1e3,
|
|
18615
|
+
2e3,
|
|
18616
|
+
4e3,
|
|
18617
|
+
8e3,
|
|
18618
|
+
16e3,
|
|
18619
|
+
2e4
|
|
18620
|
+
];
|
|
18621
|
+
throttleJitter = () => Math.random();
|
|
18622
|
+
throttleSleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
18623
|
+
takeToken = (region, api) => bucketFor(region, api).take();
|
|
18624
|
+
getClient() {
|
|
18625
|
+
this.client ??= new LightsailClient({
|
|
18626
|
+
...ambientClientDefaults(),
|
|
18627
|
+
...this.providerRegion ? { region: this.providerRegion } : {},
|
|
18628
|
+
maxAttempts: 1
|
|
18629
|
+
});
|
|
18630
|
+
return this.client;
|
|
18631
|
+
}
|
|
18632
|
+
async send(api, logicalId, call) {
|
|
18633
|
+
const client = this.getClient();
|
|
18634
|
+
const region = await client.config.region();
|
|
18635
|
+
for (let retry = 0;; retry++) {
|
|
18636
|
+
await this.takeToken(region, api);
|
|
18637
|
+
try {
|
|
18638
|
+
return await call(client);
|
|
18639
|
+
} catch (error) {
|
|
18640
|
+
const ceiling = this.throttleDelaysMs[retry];
|
|
18641
|
+
if (ceiling === void 0 || !isThrottlingError(error)) throw error;
|
|
18642
|
+
const delay = Math.round(ceiling / 2 + this.throttleJitter() * ceiling / 2);
|
|
18643
|
+
this.logger.debug(safeMsg`${api} for ${logicalId} was throttled; retrying in ${delay}ms (retry ${retry + 1}/${this.throttleDelaysMs.length})`);
|
|
18644
|
+
await this.throttleSleep(delay);
|
|
18645
|
+
}
|
|
18646
|
+
}
|
|
18647
|
+
}
|
|
18648
|
+
wrapCaughtError(mask, error, build) {
|
|
18649
|
+
const failure = describeAwsFailure(error);
|
|
18650
|
+
if (!failure.redacted) return wrapMaskedAwsError(mask, error, build);
|
|
18651
|
+
this.logger.debug(mask(build(mask(failure.detail)).message));
|
|
18652
|
+
const wrapped = build(`${mask(failure.summary)}${relayedNameCollision(failure.detail)}`);
|
|
18653
|
+
return error instanceof Error ? markRedactedCause(wrapped) : wrapped;
|
|
18654
|
+
}
|
|
18655
|
+
async create(logicalId, resourceType, properties, context) {
|
|
18656
|
+
this.logger.debug(safeMsg`Creating Lightsail alarm ${logicalId}`);
|
|
18657
|
+
const alarmName = properties["AlarmName"] || this.generatedCreateName(resourceType, logicalId, properties);
|
|
18658
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
18659
|
+
const input = this.buildPutAlarmInput(logicalId, alarmName, properties);
|
|
18660
|
+
try {
|
|
18661
|
+
await this.send("PutAlarm", logicalId, (client) => client.send(new PutAlarmCommand(input)));
|
|
18662
|
+
} catch (error) {
|
|
18663
|
+
const cause = error instanceof Error ? error : void 0;
|
|
18664
|
+
throw this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to create Lightsail alarm ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
18665
|
+
}
|
|
18666
|
+
return {
|
|
18667
|
+
physicalId: alarmName,
|
|
18668
|
+
attributes: await this.readAttributesAfterWrite(alarmName, logicalId, mask)
|
|
18669
|
+
};
|
|
18670
|
+
}
|
|
18671
|
+
async update(logicalId, physicalId, resourceType, properties, _previousProperties, context) {
|
|
18672
|
+
this.logger.debug(safeMsg`Updating Lightsail alarm ${logicalId}: ${physicalId}`);
|
|
18673
|
+
assertRegionMatch(context?.expectedRegion ? await this.getClient().config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
18674
|
+
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
18675
|
+
const input = this.buildPutAlarmInput(logicalId, physicalId, properties);
|
|
18676
|
+
try {
|
|
18677
|
+
await this.send("PutAlarm", logicalId, (client) => client.send(new PutAlarmCommand(input)));
|
|
18678
|
+
} catch (error) {
|
|
18679
|
+
const cause = error instanceof Error ? error : void 0;
|
|
18680
|
+
throw this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to update Lightsail alarm ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
18681
|
+
}
|
|
18682
|
+
return {
|
|
18683
|
+
physicalId,
|
|
18684
|
+
wasReplaced: false,
|
|
18685
|
+
attributes: await this.readAttributesAfterWrite(physicalId, logicalId, mask)
|
|
18686
|
+
};
|
|
18687
|
+
}
|
|
18688
|
+
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
18689
|
+
this.logger.debug(safeMsg`Deleting Lightsail alarm ${logicalId}: ${physicalId}`);
|
|
18690
|
+
assertRegionMatch(context?.expectedRegion ? await this.getClient().config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-delete");
|
|
18691
|
+
try {
|
|
18692
|
+
await this.send("DeleteAlarm", logicalId, (client) => client.send(new DeleteAlarmCommand({ alarmName: physicalId })));
|
|
18693
|
+
} catch (error) {
|
|
18694
|
+
if (this.isNotFound(error)) {
|
|
18695
|
+
assertRegionMatch(await this.getClient().config.region(), context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
18696
|
+
this.logger.debug(safeMsg`Lightsail alarm ${physicalId} does not exist, skipping deletion`);
|
|
18697
|
+
return;
|
|
18698
|
+
}
|
|
18699
|
+
const cause = error instanceof Error ? error : void 0;
|
|
18700
|
+
const thrown = this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete Lightsail alarm ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
18701
|
+
throw error instanceof Error && error.name.includes("NotFound") ? markNotGone(thrown) : thrown;
|
|
18702
|
+
}
|
|
18703
|
+
}
|
|
18704
|
+
async readAttributesAfterWrite(alarmName, logicalId, mask) {
|
|
18705
|
+
try {
|
|
18706
|
+
const alarm = await this.getAlarm(alarmName, logicalId);
|
|
18707
|
+
return definedAttributes({
|
|
18708
|
+
AlarmArn: alarm?.arn,
|
|
18709
|
+
State: alarm?.state
|
|
18710
|
+
});
|
|
18711
|
+
} catch (error) {
|
|
18712
|
+
this.logger.warn(mask(safeMsg`Could not read Lightsail alarm ${alarmName} back after writing it (${describeAwsFailure(error).summary}); its AlarmArn and State are read again when needed`));
|
|
18713
|
+
return {};
|
|
18714
|
+
}
|
|
18715
|
+
}
|
|
18716
|
+
async getAlarm(alarmName, logicalId) {
|
|
18717
|
+
try {
|
|
18718
|
+
return (await this.send("GetAlarms", logicalId, (client) => client.send(new GetAlarmsCommand({ alarmName })))).alarms?.find((alarm) => alarm.name === alarmName);
|
|
18719
|
+
} catch (error) {
|
|
18720
|
+
if (this.isNotFound(error)) return void 0;
|
|
18721
|
+
throw error;
|
|
18722
|
+
}
|
|
18723
|
+
}
|
|
18724
|
+
buildPutAlarmInput(logicalId, alarmName, properties) {
|
|
18725
|
+
const input = {
|
|
18726
|
+
alarmName,
|
|
18727
|
+
metricName: properties["MetricName"],
|
|
18728
|
+
monitoredResourceName: properties["MonitoredResourceName"],
|
|
18729
|
+
comparisonOperator: properties["ComparisonOperator"],
|
|
18730
|
+
threshold: Number(properties["Threshold"]),
|
|
18731
|
+
evaluationPeriods: Number(properties["EvaluationPeriods"])
|
|
18732
|
+
};
|
|
18733
|
+
if (properties["DatapointsToAlarm"] != null) input.datapointsToAlarm = Number(properties["DatapointsToAlarm"]);
|
|
18734
|
+
if (properties["TreatMissingData"] != null) input.treatMissingData = properties["TreatMissingData"];
|
|
18735
|
+
if (properties["ContactProtocols"] != null) input.contactProtocols = properties["ContactProtocols"];
|
|
18736
|
+
if (properties["NotificationTriggers"] != null) input.notificationTriggers = properties["NotificationTriggers"];
|
|
18737
|
+
if (properties["NotificationEnabled"] != null) {
|
|
18738
|
+
const enabled = coerceCfnBoolean(properties["NotificationEnabled"]);
|
|
18739
|
+
if (enabled === void 0) throw markNonRetryable(new ProvisioningError(`Lightsail alarm ${logicalId}: NotificationEnabled must be true or false`, "AWS::Lightsail::Alarm", logicalId));
|
|
18740
|
+
input.notificationEnabled = enabled;
|
|
18741
|
+
}
|
|
18742
|
+
return input;
|
|
18743
|
+
}
|
|
18744
|
+
async readCurrentState(physicalId, logicalId, _resourceType) {
|
|
18745
|
+
const alarm = await this.getAlarm(physicalId, logicalId);
|
|
18746
|
+
if (!alarm) return RESOURCE_NOT_FOUND;
|
|
18747
|
+
const result = {};
|
|
18748
|
+
if (alarm.name !== void 0) result["AlarmName"] = alarm.name;
|
|
18749
|
+
if (alarm.monitoredResourceInfo?.name !== void 0) result["MonitoredResourceName"] = alarm.monitoredResourceInfo.name;
|
|
18750
|
+
if (alarm.metricName !== void 0) result["MetricName"] = alarm.metricName;
|
|
18751
|
+
if (alarm.comparisonOperator !== void 0) result["ComparisonOperator"] = alarm.comparisonOperator;
|
|
18752
|
+
if (alarm.evaluationPeriods !== void 0) result["EvaluationPeriods"] = alarm.evaluationPeriods;
|
|
18753
|
+
if (alarm.threshold !== void 0) result["Threshold"] = alarm.threshold;
|
|
18754
|
+
if (alarm.datapointsToAlarm !== void 0) result["DatapointsToAlarm"] = alarm.datapointsToAlarm;
|
|
18755
|
+
if (alarm.treatMissingData !== void 0) result["TreatMissingData"] = alarm.treatMissingData;
|
|
18756
|
+
if (alarm.contactProtocols !== void 0) result["ContactProtocols"] = [...alarm.contactProtocols];
|
|
18757
|
+
if (alarm.notificationTriggers !== void 0) result["NotificationTriggers"] = [...alarm.notificationTriggers];
|
|
18758
|
+
if (alarm.notificationEnabled !== void 0) result["NotificationEnabled"] = alarm.notificationEnabled;
|
|
18759
|
+
return result;
|
|
18760
|
+
}
|
|
18761
|
+
generatedCreateName(_resourceType, logicalId, properties) {
|
|
18762
|
+
if (properties["AlarmName"]) return void 0;
|
|
18763
|
+
return generatedNameFor("AWS::Lightsail::Alarm", logicalId);
|
|
18764
|
+
}
|
|
18765
|
+
async import(input) {
|
|
18766
|
+
const explicit = resolveExplicitPhysicalId(input, "AlarmName");
|
|
18767
|
+
if (!explicit) return null;
|
|
18768
|
+
const alarm = await this.getAlarm(explicit, input.logicalId);
|
|
18769
|
+
return alarm ? {
|
|
18770
|
+
physicalId: explicit,
|
|
18771
|
+
attributes: definedAttributes({
|
|
18772
|
+
AlarmArn: alarm.arn,
|
|
18773
|
+
State: alarm.state
|
|
18774
|
+
})
|
|
18775
|
+
} : null;
|
|
18776
|
+
}
|
|
18777
|
+
isNotFound(err) {
|
|
18778
|
+
return err instanceof Error && err.name === "NotFoundException";
|
|
18779
|
+
}
|
|
18780
|
+
};
|
|
18781
|
+
|
|
18541
18782
|
// src/provisioning/providers/cloudwatch-anomaly-detector-provider.ts
|
|
18542
18783
|
const ID_ATTRIBUTES = ["AnomalyDetectorId", "Id"];
|
|
18543
18784
|
var CloudWatchAnomalyDetectorProvider = class {
|
|
@@ -63613,7 +63854,7 @@ var S3VectorsProvider = class S3VectorsProvider {
|
|
|
63613
63854
|
this.logger.debug(safeMsg`Could not list S3 VectorBucket ${logicalId}'s indexes after its delete failed: ${listError instanceof Error ? listError.name : typeof listError}`);
|
|
63614
63855
|
});
|
|
63615
63856
|
if (held === "empty") continue;
|
|
63616
|
-
if (held !== void 0) throw markNonRetryable(new ProvisioningError(maskerOrIdentity(context?.maskSecrets)(`Failed to delete S3 VectorBucket ${logicalId}: vector bucket ${physicalId} is not empty: it holds vector index(es) ${held.names.join(", ")}${held.truncated ? ", and more" : ""}. This operation did not delete them: they were created outside the stack, or retained by a DeletionPolicy. Matching CloudFormation, cdkd does not delete them. Delete them first (aws s3vectors delete-index) and retry the operation; a replacement deletes them only under --force-stateful-recreation.`), resourceType, logicalId, physicalId, error instanceof Error ? error : void 0));
|
|
63857
|
+
if (held !== void 0) throw markNonRetryable(new ProvisioningError(holderRefusalMask(context, maskerOrIdentity(context?.maskSecrets))(`Failed to delete S3 VectorBucket ${logicalId}: vector bucket ${physicalId} is not empty: it holds vector index(es) ${held.names.join(", ")}${held.truncated ? ", and more" : ""}. This operation did not delete them: they were created outside the stack, or retained by a DeletionPolicy. Matching CloudFormation, cdkd does not delete them. Delete them first (aws s3vectors delete-index) and retry the operation; a replacement deletes them only under --force-stateful-recreation.`), resourceType, logicalId, physicalId, error instanceof Error ? error : void 0));
|
|
63617
63858
|
return this.failVectorBucketDelete(logicalId, physicalId, resourceType, error, context);
|
|
63618
63859
|
}
|
|
63619
63860
|
}
|
|
@@ -65122,7 +65363,7 @@ async function deleteTableBucket(logicalId, physicalId, resourceType, context) {
|
|
|
65122
65363
|
});
|
|
65123
65364
|
if (held === "empty") continue;
|
|
65124
65365
|
if (held !== void 0) {
|
|
65125
|
-
const mask = context?.maskSecrets ?? ((text) => text);
|
|
65366
|
+
const mask = holderRefusalMask(context, context?.maskSecrets ?? ((text) => text));
|
|
65126
65367
|
throw markNonRetryable(new ProvisioningError(mask(`Failed to delete S3 Table Bucket ${logicalId}: table bucket ${physicalId} is not empty: it holds ${describeTableBucketContents(held)}. This operation did not delete them: they were created outside the stack, or retained by a DeletionPolicy. Matching CloudFormation, cdkd does not delete them. Delete them first (aws s3tables delete-table, then aws s3tables delete-namespace) and retry the operation; a replacement deletes them only under --force-stateful-recreation.`), resourceType, logicalId, physicalId, error instanceof Error ? error : void 0));
|
|
65127
65368
|
}
|
|
65128
65369
|
return failTableBucketDelete.call(this, logicalId, physicalId, resourceType, error, context);
|
|
@@ -67668,5 +67909,5 @@ var ACMCertificateProvider = class {
|
|
|
67668
67909
|
}
|
|
67669
67910
|
};
|
|
67670
67911
|
|
|
67671
|
-
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeArchiveProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, LogsDeliverySourceProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider, WaitConditionProvider };
|
|
67672
|
-
//# sourceMappingURL=provider-classes-
|
|
67912
|
+
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 };
|
|
67913
|
+
//# sourceMappingURL=provider-classes-p7pdWDAx.js.map
|