@cdkd/cli 0.351.0 → 0.351.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-BdOY70NL.js → ambient-client-defaults-B6WnCkIH.js} +3 -3
- package/dist/{ambient-client-defaults-BdOY70NL.js.map → ambient-client-defaults-B6WnCkIH.js.map} +1 -1
- package/dist/{asg-provider-BhktjcGM.js → asg-provider-Cvt28cjZ.js} +6 -6
- package/dist/{asg-provider-BhktjcGM.js.map → asg-provider-Cvt28cjZ.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-BkEa9HAa.js → custom-resource-runtime-q-XZhmNY.js} +6 -6
- package/dist/{custom-resource-runtime-BkEa9HAa.js.map → custom-resource-runtime-q-XZhmNY.js.map} +1 -1
- package/dist/{db-associated-roles-DZ1mRuUA.js → db-associated-roles-C4lSFcA4.js} +2 -2
- package/dist/{db-associated-roles-DZ1mRuUA.js.map → db-associated-roles-C4lSFcA4.js.map} +1 -1
- package/dist/{delete-started-ByP_GmQ7.js → delete-started-B5fdSbyi.js} +4 -4
- package/dist/{delete-started-ByP_GmQ7.js.map → delete-started-B5fdSbyi.js.map} +1 -1
- package/dist/{deploy-engine-BZNCiQ-B.js → deploy-engine-BCutoRqN.js} +379 -125
- package/dist/deploy-engine-BCutoRqN.js.map +1 -0
- package/dist/{diff-calculator-vaWjL6sQ.js → diff-calculator-Dpy3mtdK.js} +12 -12
- package/dist/{diff-calculator-vaWjL6sQ.js.map → diff-calculator-Dpy3mtdK.js.map} +1 -1
- package/dist/{ec2-termination-protection-DpNlPDar.js → ec2-termination-protection-DEedWKNw.js} +6 -6
- package/dist/{ec2-termination-protection-DpNlPDar.js.map → ec2-termination-protection-DEedWKNw.js.map} +1 -1
- package/dist/{ecr-uri-Cd_x_ldh.js → ecr-uri-BdY53T_-.js} +2 -2
- package/dist/{ecr-uri-Cd_x_ldh.js.map → ecr-uri-BdY53T_-.js.map} +1 -1
- package/dist/{expected-bucket-owner-Ba9LshiP.js → expected-bucket-owner-iywep2CV.js} +2 -2
- package/dist/{expected-bucket-owner-Ba9LshiP.js.map → expected-bucket-owner-iywep2CV.js.map} +1 -1
- package/dist/{iam-role-provider-CL-dMrn4.js → iam-role-provider-BQAmYWyO.js} +7 -7
- package/dist/{iam-role-provider-CL-dMrn4.js.map → iam-role-provider-BQAmYWyO.js.map} +1 -1
- package/dist/{image-plan-C0B05bHS.js → image-plan-Cc837NpF.js} +8 -8
- package/dist/{image-plan-C0B05bHS.js.map → image-plan-Cc837NpF.js.map} +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-DpAGzSvV.js → logger-CmaW95DR.js} +2 -2
- package/dist/{logger-DpAGzSvV.js.map → logger-CmaW95DR.js.map} +1 -1
- package/dist/{neptune-provider-CJuYc8IB.js → neptune-provider-BkaMldJg.js} +7 -7
- package/dist/{neptune-provider-CJuYc8IB.js.map → neptune-provider-BkaMldJg.js.map} +1 -1
- package/dist/{program-CUCE3lAz.js → program-8-3OnhIJ.js} +16 -15
- package/dist/program-8-3OnhIJ.js.map +1 -0
- package/dist/{provider-classes-YUbciPtV.js → provider-classes-DcmiLT1V.js} +92 -65
- package/dist/provider-classes-DcmiLT1V.js.map +1 -0
- package/dist/{rds-provider-CbmVLapS.js → rds-provider-BWOEzXOQ.js} +10 -10
- package/dist/{rds-provider-CbmVLapS.js.map → rds-provider-BWOEzXOQ.js.map} +1 -1
- package/dist/{read-replica-BQ5dRRmm.js → read-replica-BQhsK5Fn.js} +3 -3
- package/dist/{read-replica-BQ5dRRmm.js.map → read-replica-BQhsK5Fn.js.map} +1 -1
- package/dist/{replacement-rules-DZphESoc.js → replacement-rules-DywtM6vS.js} +3 -3
- package/dist/{replacement-rules-DZphESoc.js.map → replacement-rules-DywtM6vS.js.map} +1 -1
- package/dist/{resource-deadline-_gEj2hxY.js → resource-deadline-C_l7cJ75.js} +4 -4
- package/dist/{resource-deadline-_gEj2hxY.js.map → resource-deadline-C_l7cJ75.js.map} +1 -1
- package/dist/{run-cli-bzXhjxpe.js → run-cli-lankPggb.js} +2 -2
- package/dist/{run-cli-bzXhjxpe.js.map → run-cli-lankPggb.js.map} +1 -1
- package/dist/{update-removal-DOUUID3B.js → update-removal-MnBAwEGA.js} +4 -4
- package/dist/{update-removal-DOUUID3B.js.map → update-removal-MnBAwEGA.js.map} +1 -1
- package/dist/{version-DTKcNNDa.js → version-7SpD1NBk.js} +2 -2
- package/dist/{version-DTKcNNDa.js.map → version-7SpD1NBk.js.map} +1 -1
- package/package.json +2 -2
- package/dist/deploy-engine-BZNCiQ-B.js.map +0 -1
- package/dist/program-CUCE3lAz.js.map +0 -1
- package/dist/provider-classes-YUbciPtV.js.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-
|
|
2
|
-
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-
|
|
1
|
+
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-BQAmYWyO.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-CmaW95DR.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as userPoolProtectionSite, A as replayedSendWindow, At as packCompositeId, B as refusalTypeShown, C as AmbiguousCreateLatch, Ct as isInterruptedWaitError, D as createAttemptKey, Dt as compositeIdSeparatorRefusal, E as ambiguousAttemptLead, Et as compositeIdFormatMessage, F as isPlainImportJson, Ft as createMaskedRetryLogger, H as resolveExplicitPhysicalId, Ht as clearCreatedBeforeFailure, I as isPlainImportValue, It as isSecretDerivedValue, J as deleteWithProtectionCompensation, Jt as markAuxiliaryFailure, K as markNotGone, Kt as isAuxiliaryFailure, L as isQuotableImportValue, Lt as maskDeep, M as withoutServerErrorRetries, Mt as segmentAfterAnchor, N as VALUE_NOT_SHOWN, Nt as stateOrphanRecordRemedy, O as isInsideWindow, Ot as compositeIdSkipResult, P as importRemedyCommand, Pt as createMaskedLogSinks, R as normalizeAwsTagsToCfn, Rt as maskerOrIdentity, S as AMBIGUOUS_LATCH_TTL_MS, T as RecentIdSet, Tt as canonicalizeRoute53QueryName, U as RESOURCE_NOT_FOUND, V as remedyLogicalId, W as assertRegionMatch, X as observeThenDisableProtection, Xt as markSupersedesEarlierCreate, Y as logGroupProtectionSite, Yt as markCreatedBeforeFailure, Z as rdsFamilyProtectionSite, _ as onlySecretDerived, _t as pasteableAwsCommand, a as withRemovalDefaults, b as recordedPrincipalsRepair, ct as protectionFlipKey, dt as ElapsedBudgetRegistry, et as PROTECTION_FLIP_RETRY_WAIT_MS, f as retractCreatedResource, g as holdsSecretDerivedEntry, gt as isAwsCliLiteral, h as SECRET_DERIVED_READ_LIVE, hn as withPasteableAwsProfile, ht as WITHHELD_AWS_COMMAND, i as removedTemplateKeys, it as isTerminalDbWaitStatus, j as setBounded, k as replayFollowedAmbiguousAttempt, kt as logicalIdShown, ln as injectiveKey, mt as UNNAMEABLE_ID_CLAUSE, ot as ProtectionFlipRegistry, rt as isProceedDbStatus, st as isTerminalDeleteFailure, t as clearOnUpdateRemoval, tt as deleteAfterProtectionFlipWithFinalSnapshot, u as reportCreatedResource, un as injectiveKeyPrefix, ut as ElapsedBudget, v as readPrincipalLists, vt as protectedReplacementAdvice, w as CREATION_DATE_SKEW_MARGIN_MS, wt as startInterruptWatch, yt as renderDisableCommand, z as quotedRemedyLogicalId, zt as withDerivedNameMasks } from "./update-removal-
|
|
6
|
-
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-
|
|
7
|
-
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-
|
|
8
|
-
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-
|
|
9
|
-
import { $ as isTtlAlreadyDisabled, $l as resolveAssemblyPath, $t as lookupEachName, Ar as REDACTED_DELETE_ADDRESS_SKIP_REASON, At as maskedLogger, C as isAbsoluteAssetPath, Ct as deleteBudgetKey, Dc as withheldAccountClause, Dt as INDEX_SETTLE_POLL_INTERVAL_MS, Ec as accountArgs, Et as DELETE_INDEX_WAIT_PROCEED_NOTE, Fc as findSdkUnwiredProperties, Ft as hasCdkAutoDeleteTag, G as declaredStreamTagsMember, H as STREAM_POLICY_KEY, It as isTruthyCfnBoolean, J as streamDeclaresPolicy, Ja as maskedSecretSegment, Jt as getPriorAttempts, K as planStreamMemberOps, Ka as isSettledInstanceState, Ki as secretNamedAttributeNamesOf, Ma as resolvedResourceTimeoutMs, Mr as redactedDeleteAddressFields, Mt as waitForIndexesSettled, No as outputReferenceProvenanceOf, Nr as redactedDeleteAddressSkip, Nt as ECR_AUTO_DELETE_IMAGES_TAG, Ot as TABLE_INDEX_NOUN, Pt as S3_AUTO_DELETE_OBJECTS_TAG, Q as streamTagsMatchDeclared, Ql as renderAssemblyPathEscape, Qt as isAccessDeniedError, Ra as deleteSkipReason, Rc as withoutSdkUnwiredProperties, S as findNestedTemplateTreeDefect, St as compensateRemovedDeletionProtection, T as renderNestedTemplateTreeDefect, Tt as resolveDynamoDbDeleteBudgetMs, U as STREAM_TAGS_KEY, V as DynamoDBGlobalTableProvider, W as declaredStreamPolicyMember, Wr as getCurrentProducerRegions, X as streamMemberRefusals, Xl as displayAssemblyPath, Y as streamDeclaresTags, Yl as describeFileReadFailure, Yt as markRefusedBeforeApplying, Z as streamPolicyMatchesDeclared, Zt as chunks, _o as s3BucketDualStackDomainName, _t as stripIndexContributorInsights, al as stringifyValue, as as WARM_THROUGHPUT_MEMBERS, at as readbackVectorIndexes, bt as DYNAMODB_DELETE_POLL_COST_MS, cs as toCfnInteger, ct as vectorIndexesShapeDetail, dc as refuseMalformedNestedChildOutputs, dr as earliestDefined, dt as indexDeclaresContributorInsights, en as withApiLimit, et as isTtlRateLimited, ft as planContributorInsightsOp, gi as getStackRecords, go as s3BucketDomainName, gs as passedParameterClassesOf, gt as reverseMapTableContributorInsights, hn as withNestedStackContext, ho as s3BucketArn, hr as acquireIdempotencyToken, ht as reverseMapIndexContributorInsights, it as planVectorIndexUpdates, ja as waitForGoneAfterDelete, jr as isRedactedRecordedValue, jt as relayedIndexBusyDelete, ka as waitForLambdaFunctionActive, ko as parseWebACLArn, kt as deleteTableWithIndexBusyRetry, ls as toFiniteNumber, lt as CONTRIBUTOR_INSIGHTS_KEY, mi as awaitInFlightSibling, ml as rewriteTemplateAssetReferences, mn as getCurrentNestedStackContext, mt as readContributorInsightsSpec, nt as readTtlSpec, os as coerceWarmThroughput$1, ot as vectorIndexesForCreate, pr as reserveStackCreateToken, pt as planIndexContributorInsightsOps, q as reverseMapStreamPolicy, qa as APPSYNC_APIKEY_ARN_RESOURCE_PATH, rt as sendTtlWaitingOutRateLimit, sn as getNestedRevertRun, ss as isWarmThroughputDecrease, st as vectorIndexesSettled, t as DeployEngine, tt as planTimeToLive, un as revertNestedChildFromJournal, ut as contributorInsightsRefusals, vi as replacedDeleteFailureVerdict, vo as s3BucketRegionalDomainName, vt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, w as listNestedTemplateRows, wt as resolveDynamoDbDeleteBudgetClock, xc as refuseMalformedResourcesForDestroy, xt as beginDeleteWait, ya as getCurrentResourceSecrets, yo as s3BucketWebsiteUrl, yt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, za as withIndeterminateGuard, zl as decodeListingKey, zo as getAccountInfo } from "./deploy-engine-
|
|
10
|
-
import { _ as isModifyNotAvailableRefusal, b as stringifyIfAssigned, c as refuseRestoreFromItself, d as DBPROXY_TAG_OPTIONS, f as planTagDiff, g as tagPlanWarning, h as tagMapAsList, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, t as enclosingDeadlineExpired, u as DBPROXY_TAGS_WHAT, v as modifyDbInstanceWhenAvailable, x as isUsableAttemptedName, y as definedAttributes } from "./resource-deadline-
|
|
11
|
-
import { O as timePhase, a as reDisableInstanceApiTermination, c as unchangedBehindSecretReference, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as onlySecretReferencesDiffer, x as withRetry } from "./ec2-termination-protection-
|
|
4
|
+
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, z as isTransientServerError } from "./ambient-client-defaults-B6WnCkIH.js";
|
|
5
|
+
import { $ as userPoolProtectionSite, A as replayedSendWindow, At as packCompositeId, B as refusalTypeShown, C as AmbiguousCreateLatch, Ct as isInterruptedWaitError, D as createAttemptKey, Dt as compositeIdSeparatorRefusal, E as ambiguousAttemptLead, Et as compositeIdFormatMessage, F as isPlainImportJson, Ft as createMaskedRetryLogger, H as resolveExplicitPhysicalId, Ht as clearCreatedBeforeFailure, I as isPlainImportValue, It as isSecretDerivedValue, J as deleteWithProtectionCompensation, Jt as markAuxiliaryFailure, K as markNotGone, Kt as isAuxiliaryFailure, L as isQuotableImportValue, Lt as maskDeep, M as withoutServerErrorRetries, Mt as segmentAfterAnchor, N as VALUE_NOT_SHOWN, Nt as stateOrphanRecordRemedy, O as isInsideWindow, Ot as compositeIdSkipResult, P as importRemedyCommand, Pt as createMaskedLogSinks, R as normalizeAwsTagsToCfn, Rt as maskerOrIdentity, S as AMBIGUOUS_LATCH_TTL_MS, T as RecentIdSet, Tt as canonicalizeRoute53QueryName, U as RESOURCE_NOT_FOUND, V as remedyLogicalId, W as assertRegionMatch, X as observeThenDisableProtection, Xt as markSupersedesEarlierCreate, Y as logGroupProtectionSite, Yt as markCreatedBeforeFailure, Z as rdsFamilyProtectionSite, _ as onlySecretDerived, _t as pasteableAwsCommand, a as withRemovalDefaults, b as recordedPrincipalsRepair, ct as protectionFlipKey, dt as ElapsedBudgetRegistry, et as PROTECTION_FLIP_RETRY_WAIT_MS, f as retractCreatedResource, g as holdsSecretDerivedEntry, gt as isAwsCliLiteral, h as SECRET_DERIVED_READ_LIVE, hn as withPasteableAwsProfile, ht as WITHHELD_AWS_COMMAND, i as removedTemplateKeys, it as isTerminalDbWaitStatus, j as setBounded, k as replayFollowedAmbiguousAttempt, kt as logicalIdShown, ln as injectiveKey, mt as UNNAMEABLE_ID_CLAUSE, ot as ProtectionFlipRegistry, rt as isProceedDbStatus, st as isTerminalDeleteFailure, t as clearOnUpdateRemoval, tt as deleteAfterProtectionFlipWithFinalSnapshot, u as reportCreatedResource, un as injectiveKeyPrefix, ut as ElapsedBudget, v as readPrincipalLists, vt as protectedReplacementAdvice, w as CREATION_DATE_SKEW_MARGIN_MS, wt as startInterruptWatch, yt as renderDisableCommand, z as quotedRemedyLogicalId, zt as withDerivedNameMasks } from "./update-removal-MnBAwEGA.js";
|
|
6
|
+
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-7SpD1NBk.js";
|
|
7
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-B5fdSbyi.js";
|
|
8
|
+
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-8-3OnhIJ.js";
|
|
9
|
+
import { $ as isTtlAlreadyDisabled, $l as resolveAssemblyPath, $t as lookupEachName, Ar as REDACTED_DELETE_ADDRESS_SKIP_REASON, At as maskedLogger, C as isAbsoluteAssetPath, Ct as deleteBudgetKey, Dc as withheldAccountClause, Dt as INDEX_SETTLE_POLL_INTERVAL_MS, Ec as accountArgs, Et as DELETE_INDEX_WAIT_PROCEED_NOTE, Fc as findSdkUnwiredProperties, Ft as hasCdkAutoDeleteTag, G as declaredStreamTagsMember, H as STREAM_POLICY_KEY, It as isTruthyCfnBoolean, J as streamDeclaresPolicy, Ja as maskedSecretSegment, Jt as getPriorAttempts, K as planStreamMemberOps, Ka as isSettledInstanceState, Ki as secretNamedAttributeNamesOf, Ma as resolvedResourceTimeoutMs, Mr as redactedDeleteAddressFields, Mt as waitForIndexesSettled, No as outputReferenceProvenanceOf, Nr as redactedDeleteAddressSkip, Nt as ECR_AUTO_DELETE_IMAGES_TAG, Ot as TABLE_INDEX_NOUN, Pt as S3_AUTO_DELETE_OBJECTS_TAG, Q as streamTagsMatchDeclared, Ql as renderAssemblyPathEscape, Qt as isAccessDeniedError, Ra as deleteSkipReason, Rc as withoutSdkUnwiredProperties, S as findNestedTemplateTreeDefect, St as compensateRemovedDeletionProtection, T as renderNestedTemplateTreeDefect, Tt as resolveDynamoDbDeleteBudgetMs, U as STREAM_TAGS_KEY, V as DynamoDBGlobalTableProvider, W as declaredStreamPolicyMember, Wr as getCurrentProducerRegions, X as streamMemberRefusals, Xl as displayAssemblyPath, Y as streamDeclaresTags, Yl as describeFileReadFailure, Yt as markRefusedBeforeApplying, Z as streamPolicyMatchesDeclared, Zt as chunks, _o as s3BucketDualStackDomainName, _t as stripIndexContributorInsights, al as stringifyValue, as as WARM_THROUGHPUT_MEMBERS, at as readbackVectorIndexes, bt as DYNAMODB_DELETE_POLL_COST_MS, cs as toCfnInteger, ct as vectorIndexesShapeDetail, dc as refuseMalformedNestedChildOutputs, dr as earliestDefined, dt as indexDeclaresContributorInsights, en as withApiLimit, et as isTtlRateLimited, ft as planContributorInsightsOp, gi as getStackRecords, go as s3BucketDomainName, gs as passedParameterClassesOf, gt as reverseMapTableContributorInsights, hn as withNestedStackContext, ho as s3BucketArn, hr as acquireIdempotencyToken, ht as reverseMapIndexContributorInsights, it as planVectorIndexUpdates, ja as waitForGoneAfterDelete, jr as isRedactedRecordedValue, jt as relayedIndexBusyDelete, ka as waitForLambdaFunctionActive, ko as parseWebACLArn, kt as deleteTableWithIndexBusyRetry, ls as toFiniteNumber, lt as CONTRIBUTOR_INSIGHTS_KEY, mi as awaitInFlightSibling, ml as rewriteTemplateAssetReferences, mn as getCurrentNestedStackContext, mt as readContributorInsightsSpec, nt as readTtlSpec, os as coerceWarmThroughput$1, ot as vectorIndexesForCreate, pr as reserveStackCreateToken, pt as planIndexContributorInsightsOps, q as reverseMapStreamPolicy, qa as APPSYNC_APIKEY_ARN_RESOURCE_PATH, rt as sendTtlWaitingOutRateLimit, sn as getNestedRevertRun, ss as isWarmThroughputDecrease, st as vectorIndexesSettled, t as DeployEngine, tt as planTimeToLive, un as revertNestedChildFromJournal, ut as contributorInsightsRefusals, vi as replacedDeleteFailureVerdict, vo as s3BucketRegionalDomainName, vt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, w as listNestedTemplateRows, wt as resolveDynamoDbDeleteBudgetClock, xc as refuseMalformedResourcesForDestroy, xt as beginDeleteWait, ya as getCurrentResourceSecrets, yo as s3BucketWebsiteUrl, yt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, za as withIndeterminateGuard, zl as decodeListingKey, zo as getAccountInfo } from "./deploy-engine-BCutoRqN.js";
|
|
10
|
+
import { _ as isModifyNotAvailableRefusal, b as stringifyIfAssigned, c as refuseRestoreFromItself, d as DBPROXY_TAG_OPTIONS, f as planTagDiff, g as tagPlanWarning, h as tagMapAsList, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, t as enclosingDeadlineExpired, u as DBPROXY_TAGS_WHAT, v as modifyDbInstanceWhenAvailable, x as isUsableAttemptedName, y as definedAttributes } from "./resource-deadline-C_l7cJ75.js";
|
|
11
|
+
import { O as timePhase, a as reDisableInstanceApiTermination, c as unchangedBehindSecretReference, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as onlySecretReferencesDiffer, x as withRetry } from "./ec2-termination-protection-DEedWKNw.js";
|
|
12
12
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
13
13
|
import { f as ambientRegion } from "./aws-client-defaults-DAebi99J.js";
|
|
14
|
-
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-
|
|
15
|
-
import { RDSProvider } from "./rds-provider-
|
|
16
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
17
|
-
import { ASGProvider } from "./asg-provider-
|
|
14
|
+
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-DywtM6vS.js";
|
|
15
|
+
import { RDSProvider } from "./rds-provider-BWOEzXOQ.js";
|
|
16
|
+
import { NeptuneProvider } from "./neptune-provider-BkaMldJg.js";
|
|
17
|
+
import { ASGProvider } from "./asg-provider-Cvt28cjZ.js";
|
|
18
18
|
import { createHash, randomUUID } from "node:crypto";
|
|
19
19
|
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";
|
|
20
20
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateAccessKeyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListPoliciesCommand, ListPolicyTagsCommand, ListPolicyVersionsCommand, ListUserPoliciesCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagPolicyCommand, TagUserCommand, UntagPolicyCommand, UntagUserCommand, UpdateAccessKeyCommand, UpdateGroupCommand, UpdateLoginProfileCommand, UpdateUserCommand } from "@aws-sdk/client-iam";
|
|
@@ -9110,6 +9110,20 @@ var LambdaCreateClientCache = class {
|
|
|
9110
9110
|
}
|
|
9111
9111
|
};
|
|
9112
9112
|
|
|
9113
|
+
// src/provisioning/providers/lambda-function/attributes.ts
|
|
9114
|
+
function functionAttributes(configuration) {
|
|
9115
|
+
const snapStart = configuration?.SnapStart;
|
|
9116
|
+
const snapStartResponse = snapStart === void 0 ? void 0 : definedAttributes({
|
|
9117
|
+
ApplyOn: snapStart.ApplyOn,
|
|
9118
|
+
OptimizationStatus: snapStart.OptimizationStatus
|
|
9119
|
+
});
|
|
9120
|
+
return definedAttributes({
|
|
9121
|
+
Arn: configuration?.FunctionArn,
|
|
9122
|
+
FunctionName: configuration?.FunctionName,
|
|
9123
|
+
SnapStartResponse: snapStartResponse && Object.keys(snapStartResponse).length > 0 ? snapStartResponse : void 0
|
|
9124
|
+
});
|
|
9125
|
+
}
|
|
9126
|
+
|
|
9113
9127
|
// src/provisioning/providers/lambda-function/shared.ts
|
|
9114
9128
|
function isFunctionName(id) {
|
|
9115
9129
|
return /^[A-Za-z0-9_-]{1,64}$/.test(id);
|
|
@@ -9431,10 +9445,7 @@ async function create$36(logicalId, resourceType, properties, context) {
|
|
|
9431
9445
|
log.debug(`Successfully created Lambda function ${logicalId}: ${log.value(functionName)}`);
|
|
9432
9446
|
return {
|
|
9433
9447
|
physicalId: response.FunctionName || functionName,
|
|
9434
|
-
attributes:
|
|
9435
|
-
Arn: response.FunctionArn,
|
|
9436
|
-
FunctionName: response.FunctionName
|
|
9437
|
-
}
|
|
9448
|
+
attributes: functionAttributes(response)
|
|
9438
9449
|
};
|
|
9439
9450
|
} catch (error) {
|
|
9440
9451
|
if (functionCreated) markAuxiliaryFailure(error, logicalId);
|
|
@@ -9720,10 +9731,7 @@ async function update$37(logicalId, physicalId, resourceType, properties, previo
|
|
|
9720
9731
|
return {
|
|
9721
9732
|
physicalId,
|
|
9722
9733
|
wasReplaced: false,
|
|
9723
|
-
attributes:
|
|
9724
|
-
Arn: functionArn,
|
|
9725
|
-
FunctionName: getResponse.Configuration?.FunctionName
|
|
9726
|
-
}
|
|
9734
|
+
attributes: functionAttributes(getResponse.Configuration)
|
|
9727
9735
|
};
|
|
9728
9736
|
} catch (error) {
|
|
9729
9737
|
if (error instanceof ProvisioningError) throw error;
|
|
@@ -10087,10 +10095,10 @@ async function getAttribute$15(physicalId, _resourceType, attributeName) {
|
|
|
10087
10095
|
async function importImpl$35(input) {
|
|
10088
10096
|
const explicit = resolveExplicitPhysicalId(input, "FunctionName");
|
|
10089
10097
|
if (explicit) try {
|
|
10090
|
-
await this.lambdaClient.send(new GetFunctionCommand({ FunctionName: explicit }));
|
|
10098
|
+
const resp = await this.lambdaClient.send(new GetFunctionCommand({ FunctionName: explicit }));
|
|
10091
10099
|
return {
|
|
10092
10100
|
physicalId: explicit,
|
|
10093
|
-
attributes:
|
|
10101
|
+
attributes: functionAttributes(resp.Configuration)
|
|
10094
10102
|
};
|
|
10095
10103
|
} catch (err) {
|
|
10096
10104
|
if (err instanceof ResourceNotFoundException) return null;
|
|
@@ -22163,9 +22171,18 @@ function sameStringSet(a, b) {
|
|
|
22163
22171
|
const sb = new Set(b.map(String));
|
|
22164
22172
|
return sa.size === sb.size && [...sa].every((x) => sb.has(x));
|
|
22165
22173
|
}
|
|
22166
|
-
|
|
22174
|
+
const TRANSITIONAL_INSTANCE_STATES = /* @__PURE__ */ new Set([
|
|
22175
|
+
"pending",
|
|
22176
|
+
"stopping",
|
|
22177
|
+
"shutting-down"
|
|
22178
|
+
]);
|
|
22179
|
+
function describedInstanceAttributes(instanceId, instance, options = {}) {
|
|
22167
22180
|
const stateName = instance?.State?.Name;
|
|
22168
22181
|
const settled = isSettledInstanceState(stateName);
|
|
22182
|
+
const state = settled && stateName !== void 0 && options.waited !== false && !TRANSITIONAL_INSTANCE_STATES.has(stateName) && instance?.State?.Code !== void 0 ? {
|
|
22183
|
+
Code: String(instance.State.Code),
|
|
22184
|
+
Name: stateName
|
|
22185
|
+
} : void 0;
|
|
22169
22186
|
const publicMember = (value) => settled ? value ?? "" : value || void 0;
|
|
22170
22187
|
return definedAttributes({
|
|
22171
22188
|
InstanceId: instanceId,
|
|
@@ -22173,7 +22190,8 @@ function describedInstanceAttributes(instanceId, instance) {
|
|
|
22173
22190
|
PublicIp: publicMember(instance?.PublicIpAddress),
|
|
22174
22191
|
PrivateDnsName: instance?.PrivateDnsName,
|
|
22175
22192
|
PublicDnsName: publicMember(instance?.PublicDnsName),
|
|
22176
|
-
AvailabilityZone: instance?.Placement?.AvailabilityZone
|
|
22193
|
+
AvailabilityZone: instance?.Placement?.AvailabilityZone,
|
|
22194
|
+
State: state
|
|
22177
22195
|
});
|
|
22178
22196
|
}
|
|
22179
22197
|
const INSTANCE_CREATE_ONLY_SENT = [
|
|
@@ -22489,7 +22507,7 @@ async function createInstance(logicalId, resourceType, properties, context) {
|
|
|
22489
22507
|
if (volumeIds.length === 0) this.logger.warn(safeMsg`${logicalId}: PropagateTagsToVolumeOnCreation is set, but the launch went out without tags (the tagged RunInstances was refused) and DescribeInstances reported no attached volume for ${instanceId} yet (under --no-wait the instance may still be pending), so its volumes were not tagged. Tag them with ec2:CreateTags once they are attached.`);
|
|
22490
22508
|
for (const volumeId of volumeIds) await this.applyTags(volumeId, desiredTags, logicalId, maskerOrIdentity(context?.maskSecrets));
|
|
22491
22509
|
}
|
|
22492
|
-
const attributes = describedInstanceAttributes(instanceId, runningInstance);
|
|
22510
|
+
const attributes = describedInstanceAttributes(instanceId, runningInstance, { waited: waitsForRunning });
|
|
22493
22511
|
this.logger.debug(`Successfully created EC2 Instance ${logicalId}: ${instanceId}`);
|
|
22494
22512
|
runInstancesToken.release();
|
|
22495
22513
|
if (skippedSsmAssociations) {
|
|
@@ -41791,6 +41809,18 @@ const removalWarnings = (logicalId, kept, placement, caller) => {
|
|
|
41791
41809
|
return lines;
|
|
41792
41810
|
};
|
|
41793
41811
|
|
|
41812
|
+
// src/provisioning/providers/elasticache/cache-cluster-attributes.ts
|
|
41813
|
+
function cacheClusterAttributes(cluster) {
|
|
41814
|
+
const node = cluster?.Engine?.toLowerCase() === "memcached" ? void 0 : cluster?.CacheNodes?.[0]?.Endpoint;
|
|
41815
|
+
const configuration = cluster?.ConfigurationEndpoint;
|
|
41816
|
+
return definedAttributes({
|
|
41817
|
+
"RedisEndpoint.Address": node?.Address,
|
|
41818
|
+
"RedisEndpoint.Port": stringifyIfAssigned(node?.Port),
|
|
41819
|
+
"ConfigurationEndpoint.Address": configuration?.Address,
|
|
41820
|
+
"ConfigurationEndpoint.Port": stringifyIfAssigned(configuration?.Port)
|
|
41821
|
+
});
|
|
41822
|
+
}
|
|
41823
|
+
|
|
41794
41824
|
// src/provisioning/providers/elasticache/cache-cluster.ts
|
|
41795
41825
|
async function createCacheCluster(logicalId, resourceType, properties, mask) {
|
|
41796
41826
|
this.logger.debug(`Creating CacheCluster ${logicalId}`);
|
|
@@ -41829,20 +41859,9 @@ async function createCacheCluster(logicalId, resourceType, properties, mask) {
|
|
|
41829
41859
|
this.logger.debug(`Successfully created CacheCluster ${logicalId}: ${cacheClusterId}`);
|
|
41830
41860
|
if (process.env["CDKD_NO_WAIT"] !== "true") await this.waitForClusterAvailable(cacheClusterId);
|
|
41831
41861
|
const described = await this.describeCacheCluster(cacheClusterId);
|
|
41832
|
-
const attributes = {};
|
|
41833
|
-
if (described?.CacheNodes?.[0]?.Endpoint) {
|
|
41834
|
-
const endpoint = described.CacheNodes[0].Endpoint;
|
|
41835
|
-
if (endpoint.Address !== void 0) attributes["RedisEndpoint.Address"] = endpoint.Address;
|
|
41836
|
-
if (endpoint.Port !== void 0) attributes["RedisEndpoint.Port"] = String(endpoint.Port);
|
|
41837
|
-
}
|
|
41838
|
-
if (described?.ConfigurationEndpoint) {
|
|
41839
|
-
const configurationEndpoint = described.ConfigurationEndpoint;
|
|
41840
|
-
if (configurationEndpoint.Address !== void 0) attributes["ConfigurationEndpoint.Address"] = configurationEndpoint.Address;
|
|
41841
|
-
if (configurationEndpoint.Port !== void 0) attributes["ConfigurationEndpoint.Port"] = String(configurationEndpoint.Port);
|
|
41842
|
-
}
|
|
41843
41862
|
return {
|
|
41844
41863
|
physicalId: cacheClusterId,
|
|
41845
|
-
attributes
|
|
41864
|
+
attributes: cacheClusterAttributes(described)
|
|
41846
41865
|
};
|
|
41847
41866
|
} catch (error) {
|
|
41848
41867
|
const thrown = error instanceof ProvisioningError ? error : this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to create CacheCluster ${logicalId}: ${text}`, resourceType, logicalId, cacheClusterId, error instanceof Error ? error : void 0));
|
|
@@ -41961,21 +41980,10 @@ async function updateCacheCluster(logicalId, physicalId, resourceType, propertie
|
|
|
41961
41980
|
this.warnTransitEncryptionNotApplied(logicalId, properties, previousProperties, described?.TransitEncryptionEnabled);
|
|
41962
41981
|
if (described?.ARN) await this.applyTagDiff(described.ARN, resourceType, logicalId, previousProperties["Tags"], properties["Tags"]);
|
|
41963
41982
|
this.warnRemovalsLeftInPlace(logicalId, properties, previousProperties, context);
|
|
41964
|
-
const attributes = {};
|
|
41965
|
-
if (described?.CacheNodes?.[0]?.Endpoint) {
|
|
41966
|
-
const endpoint = described.CacheNodes[0].Endpoint;
|
|
41967
|
-
if (endpoint.Address !== void 0) attributes["RedisEndpoint.Address"] = endpoint.Address;
|
|
41968
|
-
if (endpoint.Port !== void 0) attributes["RedisEndpoint.Port"] = String(endpoint.Port);
|
|
41969
|
-
}
|
|
41970
|
-
if (described?.ConfigurationEndpoint) {
|
|
41971
|
-
const configurationEndpoint = described.ConfigurationEndpoint;
|
|
41972
|
-
if (configurationEndpoint.Address !== void 0) attributes["ConfigurationEndpoint.Address"] = configurationEndpoint.Address;
|
|
41973
|
-
if (configurationEndpoint.Port !== void 0) attributes["ConfigurationEndpoint.Port"] = String(configurationEndpoint.Port);
|
|
41974
|
-
}
|
|
41975
41983
|
return {
|
|
41976
41984
|
physicalId,
|
|
41977
41985
|
wasReplaced: false,
|
|
41978
|
-
attributes
|
|
41986
|
+
attributes: cacheClusterAttributes(described)
|
|
41979
41987
|
};
|
|
41980
41988
|
} catch (error) {
|
|
41981
41989
|
if (error instanceof ProvisioningError) throw error;
|
|
@@ -42159,10 +42167,13 @@ async function importImpl$17(input) {
|
|
|
42159
42167
|
async function importCacheCluster(input) {
|
|
42160
42168
|
const explicit = resolveExplicitPhysicalId(input, "ClusterName");
|
|
42161
42169
|
if (explicit) try {
|
|
42162
|
-
const c = (await this.getClient().send(new DescribeCacheClustersCommand({
|
|
42170
|
+
const c = (await this.getClient().send(new DescribeCacheClustersCommand({
|
|
42171
|
+
CacheClusterId: explicit,
|
|
42172
|
+
ShowCacheNodeInfo: true
|
|
42173
|
+
}))).CacheClusters?.[0];
|
|
42163
42174
|
return c?.CacheClusterId ? {
|
|
42164
42175
|
physicalId: c.CacheClusterId,
|
|
42165
|
-
attributes:
|
|
42176
|
+
attributes: cacheClusterAttributes(c)
|
|
42166
42177
|
} : null;
|
|
42167
42178
|
} catch (err) {
|
|
42168
42179
|
if (this.isNotFoundError(err, "CacheClusterNotFoundFault")) return null;
|
|
@@ -49497,10 +49508,13 @@ async function readStreamStatusForDelete(streamName) {
|
|
|
49497
49508
|
}
|
|
49498
49509
|
async function waitForStreamActive(streamName, maxAttempts = 30) {
|
|
49499
49510
|
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
49500
|
-
const response = await this.getClient().send(new
|
|
49501
|
-
const status = response.
|
|
49511
|
+
const response = await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: streamName }));
|
|
49512
|
+
const status = response.StreamDescriptionSummary?.StreamStatus;
|
|
49502
49513
|
this.logger.debug(`Stream ${streamName} status: ${status} (attempt ${attempt}/${maxAttempts})`);
|
|
49503
|
-
if (status === "ACTIVE") return {
|
|
49514
|
+
if (status === "ACTIVE") return {
|
|
49515
|
+
streamArn: response.StreamDescriptionSummary?.StreamARN,
|
|
49516
|
+
summary: response.StreamDescriptionSummary
|
|
49517
|
+
};
|
|
49504
49518
|
if (status !== "CREATING" && status !== "UPDATING") throw new Error(`Unexpected stream status: ${status}`);
|
|
49505
49519
|
await new Promise((resolve) => setTimeout(resolve, 2e3));
|
|
49506
49520
|
}
|
|
@@ -49516,6 +49530,18 @@ async function getOpenShardCount(streamName) {
|
|
|
49516
49530
|
return Number(response.StreamDescriptionSummary?.OpenShardCount ?? 1);
|
|
49517
49531
|
}
|
|
49518
49532
|
|
|
49533
|
+
// src/provisioning/providers/kinesis/attributes.ts
|
|
49534
|
+
function streamAttributes(summary) {
|
|
49535
|
+
const warm = summary?.WarmThroughput;
|
|
49536
|
+
return definedAttributes({
|
|
49537
|
+
Arn: summary?.StreamARN,
|
|
49538
|
+
WarmThroughputObject: summary === void 0 ? void 0 : {
|
|
49539
|
+
TargetMiBps: warm?.TargetMiBps ?? 0,
|
|
49540
|
+
CurrentMiBps: warm?.CurrentMiBps ?? 0
|
|
49541
|
+
}
|
|
49542
|
+
});
|
|
49543
|
+
}
|
|
49544
|
+
|
|
49519
49545
|
// src/provisioning/providers/kinesis/shared.ts
|
|
49520
49546
|
function isKmsEncryption(value) {
|
|
49521
49547
|
if (!value) return false;
|
|
@@ -49677,7 +49703,7 @@ async function create$14(logicalId, resourceType, properties, context) {
|
|
|
49677
49703
|
streamCreated = true;
|
|
49678
49704
|
reportCreatedResource(logicalId, resourceType, streamName);
|
|
49679
49705
|
this.logger.debug(`CreateStream initiated for ${streamName}, waiting for ACTIVE status`);
|
|
49680
|
-
|
|
49706
|
+
let settled = await this.waitForStreamActive(streamName);
|
|
49681
49707
|
const retentionPeriodHours = retentionRead.kind === "usable" ? retentionRead.hours : void 0;
|
|
49682
49708
|
if (retentionPeriodHours !== void 0 && retentionPeriodHours !== 24) {
|
|
49683
49709
|
this.logger.debug(`Setting retention period to ${retentionPeriodHours} hours for ${streamName}`);
|
|
@@ -49689,7 +49715,7 @@ async function create$14(logicalId, resourceType, properties, context) {
|
|
|
49689
49715
|
StreamName: streamName,
|
|
49690
49716
|
RetentionPeriodHours: retentionPeriodHours
|
|
49691
49717
|
}));
|
|
49692
|
-
await this.waitForStreamActive(streamName);
|
|
49718
|
+
settled = await this.waitForStreamActive(streamName);
|
|
49693
49719
|
}
|
|
49694
49720
|
const streamEncryption = properties["StreamEncryption"];
|
|
49695
49721
|
if (isKmsEncryption(streamEncryption)) {
|
|
@@ -49700,7 +49726,7 @@ async function create$14(logicalId, resourceType, properties, context) {
|
|
|
49700
49726
|
EncryptionType: "KMS",
|
|
49701
49727
|
KeyId: keyId
|
|
49702
49728
|
}));
|
|
49703
|
-
await this.waitForStreamActive(streamName);
|
|
49729
|
+
settled = await this.waitForStreamActive(streamName);
|
|
49704
49730
|
}
|
|
49705
49731
|
const desiredMetrics = desiredRead.kind === "usable" ? desiredRead.expanded : void 0;
|
|
49706
49732
|
const metricsToEnable = desiredRead.kind === "usable" ? desiredRead.metrics : [];
|
|
@@ -49710,12 +49736,12 @@ async function create$14(logicalId, resourceType, properties, context) {
|
|
|
49710
49736
|
StreamName: streamName,
|
|
49711
49737
|
ShardLevelMetrics: metricsToEnable
|
|
49712
49738
|
}));
|
|
49713
|
-
await this.waitForStreamActive(streamName);
|
|
49739
|
+
settled = await this.waitForStreamActive(streamName);
|
|
49714
49740
|
}
|
|
49715
49741
|
this.logger.debug(`Successfully created Kinesis stream ${logicalId}: ${streamName}`);
|
|
49716
49742
|
return {
|
|
49717
49743
|
physicalId: streamName,
|
|
49718
|
-
attributes: {
|
|
49744
|
+
attributes: { ...streamAttributes(settled.summary) },
|
|
49719
49745
|
...this.effectiveMetricsProperties(properties, desiredMetrics)
|
|
49720
49746
|
};
|
|
49721
49747
|
} catch (error) {
|
|
@@ -49859,10 +49885,11 @@ async function update$14(logicalId, physicalId, resourceType, properties, previo
|
|
|
49859
49885
|
await this.waitForStreamActive(physicalId);
|
|
49860
49886
|
}
|
|
49861
49887
|
}
|
|
49888
|
+
const response = await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: physicalId }));
|
|
49862
49889
|
return {
|
|
49863
49890
|
physicalId,
|
|
49864
49891
|
wasReplaced: false,
|
|
49865
|
-
attributes:
|
|
49892
|
+
attributes: streamAttributes(response.StreamDescriptionSummary),
|
|
49866
49893
|
...this.effectiveMetricsProperties(properties, desiredMetrics)
|
|
49867
49894
|
};
|
|
49868
49895
|
} catch (error) {
|
|
@@ -50097,10 +50124,10 @@ async function readCurrentState$11(physicalId, _logicalId, resourceType, _proper
|
|
|
50097
50124
|
async function importImpl$12(input) {
|
|
50098
50125
|
const explicit = resolveExplicitPhysicalId(input, "Name");
|
|
50099
50126
|
if (explicit) try {
|
|
50100
|
-
await this.getClient().send(new
|
|
50127
|
+
const response = await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: explicit }));
|
|
50101
50128
|
return {
|
|
50102
50129
|
physicalId: explicit,
|
|
50103
|
-
attributes:
|
|
50130
|
+
attributes: streamAttributes(response.StreamDescriptionSummary)
|
|
50104
50131
|
};
|
|
50105
50132
|
} catch (err) {
|
|
50106
50133
|
if (err instanceof ResourceNotFoundException$12) return null;
|
|
@@ -63321,4 +63348,4 @@ var ACMCertificateProvider = class {
|
|
|
63321
63348
|
};
|
|
63322
63349
|
|
|
63323
63350
|
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider };
|
|
63324
|
-
//# sourceMappingURL=provider-classes-
|
|
63351
|
+
//# sourceMappingURL=provider-classes-DcmiLT1V.js.map
|