@go-to-k/cdkd 0.319.0 → 0.320.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/{asg-provider-T9K-NVi8.js → asg-provider-B4XVfH0S.js} +3 -3
- package/dist/{asg-provider-T9K-NVi8.js.map → asg-provider-B4XVfH0S.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{created-resource-sink-BpB3iPvn.js → created-resource-sink-CmrPwGge.js} +4 -2
- package/dist/created-resource-sink-CmrPwGge.js.map +1 -0
- package/dist/{db-instance-modify-retry-CspmK57I.js → db-instance-modify-retry-DCLA_p9I.js} +2 -2
- package/dist/{db-instance-modify-retry-CspmK57I.js.map → db-instance-modify-retry-DCLA_p9I.js.map} +1 -1
- package/dist/{deploy-engine-CVYhHEgq.js → deploy-engine-BiJyU4j1.js} +12 -13
- package/dist/deploy-engine-BiJyU4j1.js.map +1 -0
- package/dist/{iam-role-provider-qTIqSmlf.js → iam-role-provider-FsEgUieT.js} +3 -3
- package/dist/{iam-role-provider-qTIqSmlf.js.map → iam-role-provider-FsEgUieT.js.map} +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/{neptune-provider-BsA7jGiV.js → neptune-provider-DjjNodrS.js} +4 -4
- package/dist/{neptune-provider-BsA7jGiV.js.map → neptune-provider-DjjNodrS.js.map} +1 -1
- package/dist/{program-DyYTFxF-.js → program-Dm0hn2Sn.js} +45 -7
- package/dist/program-Dm0hn2Sn.js.map +1 -0
- package/dist/{provider-classes-DOr3JVGp.js → provider-classes-BTOXS3cs.js} +141 -28
- package/dist/provider-classes-BTOXS3cs.js.map +1 -0
- package/dist/{rds-provider-CIjO2Do5.js → rds-provider-C_r5q9NM.js} +4 -4
- package/dist/{rds-provider-CIjO2Do5.js.map → rds-provider-C_r5q9NM.js.map} +1 -1
- package/dist/{version-C3yhae4b.js → version-CrtjwYuX.js} +2 -2
- package/dist/{version-C3yhae4b.js.map → version-CrtjwYuX.js.map} +1 -1
- package/package.json +1 -1
- package/dist/created-resource-sink-BpB3iPvn.js.map +0 -1
- package/dist/deploy-engine-CVYhHEgq.js.map +0 -1
- package/dist/program-DyYTFxF-.js.map +0 -1
- package/dist/provider-classes-DOr3JVGp.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as getAwsClients, s as withApiGatewayPacing } from "./aws-clients-DWpHZk2l.js";
|
|
2
2
|
import { $ as safeMsg, A as isBeforeStateRead, E as generatedNameFor, J as displaySafe, N as recordedGeneratedNameKept, O as getCurrentStackInstanceId, Q as plainIdentOr, T as generateResourceNameWithFallback, V as SECRET_REF_MAX_CODE_POINTS, X as isPasteableIdent, Y as displayStackName, a as safeStringify, i as isAwsAuthoredFailure, n as describeAwsFailure, q as displayIdent, r as describeAwsStatusReason, s as getLogger, t as VERBOSE_POINTER, w as generateResourceName } from "./aws-failure-text-DiHodi76.js";
|
|
3
|
-
import { $ as isTerminalDeleteFailure, A as setBounded, Ar as isThrottlingError, At as stateOrphanRecordRemedy, B as normalizeAwsTagsToCfn, C as AmbiguousCreateLatch, Cr as isExplicitDenyError, Ct as compositeIdFormatMessage, D as isInsideWindow, Dt as packCompositeId, E as createAttemptKey, Er as isTransientServerError, Et as logicalIdShown, F as assertRegionMatch, Fn as ResourceUpdateNotSupportedError, Ft as maskerOrIdentity, Gt as markAuxiliaryFailure, H as refusalTypeShown, I as VALUE_NOT_SHOWN, It as withDerivedNameMasks, J as deleteAfterProtectionFlipWithFinalSnapshot, K as ProtectionFlipRegistry, Kt as markCreatedBeforeFailure, L as isPlainImportJson, M as RESOURCE_NOT_FOUND, Mr as markRedactedCause, Mt as createMaskedRetryLogger, Nn as ProvisioningError, Nr as wrapMaskedAwsError, Nt as isSecretDerivedValue, O as replayFollowedAmbiguousAttempt, Or as THROTTLING_ERROR_NAMES, P as markNotGone, Pt as maskDeep, Q as isTerminalDbWaitStatus, Qn as pasteableCommand, R as isPlainImportValue, S as AMBIGUOUS_LATCH_TTL_MS, Sr as isAmbiguousOutcomeError, St as canonicalizeRoute53QueryName, T as ambiguousAttemptLead, Tr as isRetryableTransientError, Tt as compositeIdSkipResult, U as remedyLogicalId, Ut as isAuxiliaryFailure, V as quotedRemedyLogicalId, W as resolveExplicitPhysicalId, Xn as hasClauseBreak, Y as deleteWithProtectionCompensation, Yn as commandHole, Z as isProceedDbStatus, Zn as isInertUnquoted, b as withRemovalDefaults, bt as isInterruptedWaitError, ct as UNNAMEABLE_ID_CLAUSE, d as onlySecretDerived, dn as withPasteableAwsProfile, dt as pasteableAwsCommand, er as plainOrDescribed, et as logGroupProtectionSite, f as readPrincipalLists, fn as ambientClientDefaults, ft as protectedReplacementAdvice, g as clearOnUpdateRemoval, gn as AccountIdUnavailableError, hn as credentialFingerprint, hr as relayedNameCollision, ht as ElapsedBudgetRegistry, i as reportCreatedResource, ir as withheldTargetClause, j as withoutServerErrorRetries, jr as markNonRetryable, jt as createMaskedLogSinks, k as replayedSendWindow, kr as isMarkedNonRetryable, kt as segmentAfterAnchor, l as SECRET_DERIVED_READ_LIVE, lt as WITHHELD_AWS_COMMAND, m as recordedPrincipalsRepair, mn as clientDefaultsFor, mr as markReplayMayCollide, mt as ElapsedBudget, nt as protectionFlipKey, o as retractCreatedResource, on as injectiveKey, ot as userPoolProtectionSite, pn as ambientCredentialConfig, pr as markNameCollision, pt as renderDisableCommand, qt as markSupersedesEarlierCreate, rr as shellQuote, rt as rdsFamilyProtectionSite, sn as injectiveKeyPrefix, tt as observeThenDisableProtection, u as holdsSecretDerivedEntry, ut as isAwsCliLiteral, vn as CdkdError, w as RecentIdSet, wt as compositeIdSeparatorRefusal, xt as startInterruptWatch, y as removedTemplateKeys, yr as explicitDenyPolicyKind, z as isQuotableImportValue, zt as clearCreatedBeforeFailure } from "./created-resource-sink-
|
|
3
|
+
import { $ as isTerminalDeleteFailure, A as setBounded, Ar as isThrottlingError, At as stateOrphanRecordRemedy, B as normalizeAwsTagsToCfn, C as AmbiguousCreateLatch, Cr as isExplicitDenyError, Ct as compositeIdFormatMessage, D as isInsideWindow, Dt as packCompositeId, E as createAttemptKey, Er as isTransientServerError, Et as logicalIdShown, F as assertRegionMatch, Fn as ResourceUpdateNotSupportedError, Ft as maskerOrIdentity, Gt as markAuxiliaryFailure, H as refusalTypeShown, I as VALUE_NOT_SHOWN, It as withDerivedNameMasks, J as deleteAfterProtectionFlipWithFinalSnapshot, K as ProtectionFlipRegistry, Kt as markCreatedBeforeFailure, L as isPlainImportJson, M as RESOURCE_NOT_FOUND, Mr as markRedactedCause, Mt as createMaskedRetryLogger, Nn as ProvisioningError, Nr as wrapMaskedAwsError, Nt as isSecretDerivedValue, O as replayFollowedAmbiguousAttempt, Or as THROTTLING_ERROR_NAMES, P as markNotGone, Pt as maskDeep, Q as isTerminalDbWaitStatus, Qn as pasteableCommand, R as isPlainImportValue, S as AMBIGUOUS_LATCH_TTL_MS, Sr as isAmbiguousOutcomeError, St as canonicalizeRoute53QueryName, T as ambiguousAttemptLead, Tr as isRetryableTransientError, Tt as compositeIdSkipResult, U as remedyLogicalId, Ut as isAuxiliaryFailure, V as quotedRemedyLogicalId, W as resolveExplicitPhysicalId, Xn as hasClauseBreak, Y as deleteWithProtectionCompensation, Yn as commandHole, Z as isProceedDbStatus, Zn as isInertUnquoted, b as withRemovalDefaults, bt as isInterruptedWaitError, ct as UNNAMEABLE_ID_CLAUSE, d as onlySecretDerived, dn as withPasteableAwsProfile, dt as pasteableAwsCommand, er as plainOrDescribed, et as logGroupProtectionSite, f as readPrincipalLists, fn as ambientClientDefaults, ft as protectedReplacementAdvice, g as clearOnUpdateRemoval, gn as AccountIdUnavailableError, hn as credentialFingerprint, hr as relayedNameCollision, ht as ElapsedBudgetRegistry, i as reportCreatedResource, ir as withheldTargetClause, j as withoutServerErrorRetries, jr as markNonRetryable, jt as createMaskedLogSinks, k as replayedSendWindow, kr as isMarkedNonRetryable, kt as segmentAfterAnchor, l as SECRET_DERIVED_READ_LIVE, lt as WITHHELD_AWS_COMMAND, m as recordedPrincipalsRepair, mn as clientDefaultsFor, mr as markReplayMayCollide, mt as ElapsedBudget, nt as protectionFlipKey, o as retractCreatedResource, on as injectiveKey, ot as userPoolProtectionSite, pn as ambientCredentialConfig, pr as markNameCollision, pt as renderDisableCommand, qt as markSupersedesEarlierCreate, rr as shellQuote, rt as rdsFamilyProtectionSite, sn as injectiveKeyPrefix, tt as observeThenDisableProtection, u as holdsSecretDerivedEntry, ut as isAwsCliLiteral, vn as CdkdError, w as RecentIdSet, wt as compositeIdSeparatorRefusal, xt as startInterruptWatch, y as removedTemplateKeys, yr as explicitDenyPolicyKind, z as isQuotableImportValue, zt as clearCreatedBeforeFailure } from "./created-resource-sink-CmrPwGge.js";
|
|
4
4
|
import { c as ambientRegion } from "./aws-client-defaults-BLXFsfMa.js";
|
|
5
|
-
import { $ as sendTtlWaitingOutRateLimit, A as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, B as deleteTableWithIndexBusyRetry, Ba as s3BucketArn, Bc as passedNoEchoParametersOf, Bi as isRefusedByName, C as planContributorInsightsOp, Cl as recordAttributeIdCopy, Ct as enclosingDeadlineExpired, D as reverseMapTableContributorInsights, Da as reDisableInstanceApiTermination, Dc as lambdaFunctionNameForMask, E as reverseMapIndexContributorInsights, Ea as observeThenDisableInstanceApiTermination, Ec as canonicalLambdaFunctionName, El as carriesSecretMask, Eo as parseWebACLArn, F as resolveDynamoDbDeleteBudgetClock, Fd as displayAssemblyPath, G as readbackVectorIndexes, Gi as readTagList, Gn as isRedactedRecordedValue, H as relayedIndexBusyDelete, Ha as s3BucketDualStackDomainName, Hi as DBPROXY_TAGS_WHAT, Hn as getCurrentProducerRegions, I as resolveDynamoDbDeleteBudgetMs, Id as renderAssemblyPathEscape, Ii as acquireIdempotencyToken, Io as accountArgs, J as vectorIndexesShapeDetail, Jc as recordReferenceProvenanceEntry, Ji as tagPlanWarning, Js as withoutSilentDropProperties, Jt as getCurrentNestedStackContext, K as vectorIndexesForCreate, Kc as markSameGenerationBag, Ki as refuseMalformedDesiredTags, Kn as redactedDeleteAddressFields, Ks as findSilentDropProperties, L as DELETE_INDEX_WAIT_PROCEED_NOTE, Ld as resolveAssemblyPath, M as beginDeleteWait, Mi as earliestDefined, N as compensateRemovedDeletionProtection, O as stripIndexContributorInsights, Oa as reEnableInstanceApiTermination, Oc as sameLambdaFunctionAddress, P as deleteBudgetKey, Pd as describeFileReadFailure, Pi as reserveStackCreateToken, Q as readTtlSpec, Qc as hasMaskableValues, R as INDEX_SETTLE_POLL_INTERVAL_MS, S as indexDeclaresContributorInsights, Sa as markWaitAbandoned, Sc as blockDeviceMappingsDifferOnlyInDeleteOnTermination, Sl as physicalNameCopiesOf, T as readContributorInsightsSpec, Ta as isTerminationProtectionPropagationError, Tc as emrClusterInstancesReplaced, U as waitForIndexesSettled, Ua as s3BucketRegionalDomainName, Ui as DBPROXY_TAG_OPTIONS, Ur as replacedDeleteFailureVerdict, Us as withheldAccountClause, V as maskedLogger, Va as s3BucketDomainName, Vi as markDeleteStarted, Vr as getStackRecords, Vt as getNestedRevertRun, W as planVectorIndexUpdates, Wa as s3BucketWebsiteUrl, Wi as planTagDiff, Wn as REDACTED_DELETE_ADDRESS_SKIP_REASON, Wt as revertNestedChildFromJournal, X as isTtlRateLimited, Xi as stringifyIfAssigned, Y as isTtlAlreadyDisabled, Ya as outputReferenceProvenanceOf, Yc as snapshotPassProvenance, Yi as definedAttributes, Yt as withNestedStackContext, Z as planTimeToLive, _ as streamMemberRefusals, _c as requireConfigString, _d as decodeListingKey, _t as renderNestedTemplateTreeDefect, ac as isWarmThroughputDecrease, an as chunks, at as markRefusedBeforeApplying, b as CONTRIBUTOR_INSIGHTS_KEY, ba as withIndeterminateGuard, bd as canonicalizeRegion, c as DynamoDBGlobalTableProvider, cc as coerceCfnBoolean, cn as withApiLimit, d as declaredStreamPolicyMember, dc as configIntegerRefusal, ds as refuseMalformedNestedChildOutputs, et as ECR_AUTO_DELETE_IMAGES_TAG, f as declaredStreamTagsMember, fa as slowCcOperationTimeoutMs, fc as configStringRefusal, fl as withoutPhysicalNameCopies, g as streamDeclaresTags, gc as requireConfigObject, gt as listNestedTemplateRows, h as streamDeclaresPolicy, hc as requireConfigArray, ho as getAccountInfo, ht as isAbsoluteAssetPath, ic as coerceWarmThroughput$1, it as getPriorAttempts, j as DYNAMODB_DELETE_POLL_COST_MS, ja as isUsableAttemptedName, js as refuseMalformedResourcesForDestroy, k as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, ko as passedParameterClassesOf, l as STREAM_POLICY_KEY, lc as coerceCfnInteger, m as reverseMapStreamPolicy, ma as unchangedBehindSecretReference, mc as replayWarn, ml as dynamicReferenceTokens, mt as findNestedTemplateTreeDefect, na as waitForLambdaFunctionActive, nt as hasCdkAutoDeleteTag, oa as getCurrentResourceSecrets, oc as toCfnInteger, on as isAccessDeniedError, p as planStreamMemberOps, pa as onlySecretReferencesDiffer, pc as readConfigString, pu as stringifyValue, q as vectorIndexesSettled, qc as redactForState, qi as tagMapAsList, qn as redactedDeleteAddressSkip, rc as WARM_THROUGHPUT_MEMBERS, rt as isTruthyCfnBoolean, sc as toFiniteNumber, sn as lookupEachName, t as DeployEngine, tt as S3_AUTO_DELETE_OBJECTS_TAG, u as STREAM_TAGS_KEY, uc as configBooleanRefusal, uu as timePhase, v as streamPolicyMatchesDeclared, vu as rewriteTemplateAssetReferences, w as planIndexContributorInsightsOps, wa as ec2InstanceProtectionSite, wc as ecsServiceLaunchTypeSetOrChanged, wt as enclosingDeadlineRemainingMs, x as contributorInsightsRefusals, xa as isWaitAbandonedError, xc as withRetry, xd as derivePartitionAndUrlSuffix, xl as recoverMaskedOutput, y as streamTagsMatchDeclared, ya as deleteSkipReason, yi as secretNamedAttributeNamesOf, z as TABLE_INDEX_NOUN, za as isSettledInstanceState, zr as awaitInFlightSibling } from "./deploy-engine-
|
|
6
|
-
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-
|
|
7
|
-
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, s as resolvedResourceTimeoutMs, t as canonicalizeIpv4Cidr } from "./program-
|
|
8
|
-
import { n as modifyDbInstanceWhenAvailable } from "./db-instance-modify-retry-
|
|
9
|
-
import { RDSProvider } from "./rds-provider-
|
|
10
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
11
|
-
import { ASGProvider } from "./asg-provider-
|
|
5
|
+
import { $ as sendTtlWaitingOutRateLimit, A as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, B as deleteTableWithIndexBusyRetry, Ba as s3BucketArn, Bc as passedNoEchoParametersOf, Bi as isRefusedByName, C as planContributorInsightsOp, Cl as recordAttributeIdCopy, Ct as enclosingDeadlineExpired, D as reverseMapTableContributorInsights, Da as reDisableInstanceApiTermination, Dc as lambdaFunctionNameForMask, E as reverseMapIndexContributorInsights, Ea as observeThenDisableInstanceApiTermination, Ec as canonicalLambdaFunctionName, El as carriesSecretMask, Eo as parseWebACLArn, F as resolveDynamoDbDeleteBudgetClock, Fd as displayAssemblyPath, G as readbackVectorIndexes, Gi as readTagList, Gn as isRedactedRecordedValue, H as relayedIndexBusyDelete, Ha as s3BucketDualStackDomainName, Hi as DBPROXY_TAGS_WHAT, Hn as getCurrentProducerRegions, I as resolveDynamoDbDeleteBudgetMs, Id as renderAssemblyPathEscape, Ii as acquireIdempotencyToken, Io as accountArgs, J as vectorIndexesShapeDetail, Jc as recordReferenceProvenanceEntry, Ji as tagPlanWarning, Js as withoutSilentDropProperties, Jt as getCurrentNestedStackContext, K as vectorIndexesForCreate, Kc as markSameGenerationBag, Ki as refuseMalformedDesiredTags, Kn as redactedDeleteAddressFields, Ks as findSilentDropProperties, L as DELETE_INDEX_WAIT_PROCEED_NOTE, Ld as resolveAssemblyPath, M as beginDeleteWait, Mi as earliestDefined, N as compensateRemovedDeletionProtection, O as stripIndexContributorInsights, Oa as reEnableInstanceApiTermination, Oc as sameLambdaFunctionAddress, P as deleteBudgetKey, Pd as describeFileReadFailure, Pi as reserveStackCreateToken, Q as readTtlSpec, Qc as hasMaskableValues, R as INDEX_SETTLE_POLL_INTERVAL_MS, S as indexDeclaresContributorInsights, Sa as markWaitAbandoned, Sc as blockDeviceMappingsDifferOnlyInDeleteOnTermination, Sl as physicalNameCopiesOf, T as readContributorInsightsSpec, Ta as isTerminationProtectionPropagationError, Tc as emrClusterInstancesReplaced, U as waitForIndexesSettled, Ua as s3BucketRegionalDomainName, Ui as DBPROXY_TAG_OPTIONS, Ur as replacedDeleteFailureVerdict, Us as withheldAccountClause, V as maskedLogger, Va as s3BucketDomainName, Vi as markDeleteStarted, Vr as getStackRecords, Vt as getNestedRevertRun, W as planVectorIndexUpdates, Wa as s3BucketWebsiteUrl, Wi as planTagDiff, Wn as REDACTED_DELETE_ADDRESS_SKIP_REASON, Wt as revertNestedChildFromJournal, X as isTtlRateLimited, Xi as stringifyIfAssigned, Y as isTtlAlreadyDisabled, Ya as outputReferenceProvenanceOf, Yc as snapshotPassProvenance, Yi as definedAttributes, Yt as withNestedStackContext, Z as planTimeToLive, _ as streamMemberRefusals, _c as requireConfigString, _d as decodeListingKey, _t as renderNestedTemplateTreeDefect, ac as isWarmThroughputDecrease, an as chunks, at as markRefusedBeforeApplying, b as CONTRIBUTOR_INSIGHTS_KEY, ba as withIndeterminateGuard, bd as canonicalizeRegion, c as DynamoDBGlobalTableProvider, cc as coerceCfnBoolean, cn as withApiLimit, d as declaredStreamPolicyMember, dc as configIntegerRefusal, ds as refuseMalformedNestedChildOutputs, et as ECR_AUTO_DELETE_IMAGES_TAG, f as declaredStreamTagsMember, fa as slowCcOperationTimeoutMs, fc as configStringRefusal, fl as withoutPhysicalNameCopies, g as streamDeclaresTags, gc as requireConfigObject, gt as listNestedTemplateRows, h as streamDeclaresPolicy, hc as requireConfigArray, ho as getAccountInfo, ht as isAbsoluteAssetPath, ic as coerceWarmThroughput$1, it as getPriorAttempts, j as DYNAMODB_DELETE_POLL_COST_MS, ja as isUsableAttemptedName, js as refuseMalformedResourcesForDestroy, k as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, ko as passedParameterClassesOf, l as STREAM_POLICY_KEY, lc as coerceCfnInteger, m as reverseMapStreamPolicy, ma as unchangedBehindSecretReference, mc as replayWarn, ml as dynamicReferenceTokens, mt as findNestedTemplateTreeDefect, na as waitForLambdaFunctionActive, nt as hasCdkAutoDeleteTag, oa as getCurrentResourceSecrets, oc as toCfnInteger, on as isAccessDeniedError, p as planStreamMemberOps, pa as onlySecretReferencesDiffer, pc as readConfigString, pu as stringifyValue, q as vectorIndexesSettled, qc as redactForState, qi as tagMapAsList, qn as redactedDeleteAddressSkip, rc as WARM_THROUGHPUT_MEMBERS, rt as isTruthyCfnBoolean, sc as toFiniteNumber, sn as lookupEachName, t as DeployEngine, tt as S3_AUTO_DELETE_OBJECTS_TAG, u as STREAM_TAGS_KEY, uc as configBooleanRefusal, uu as timePhase, v as streamPolicyMatchesDeclared, vu as rewriteTemplateAssetReferences, w as planIndexContributorInsightsOps, wa as ec2InstanceProtectionSite, wc as ecsServiceLaunchTypeSetOrChanged, wt as enclosingDeadlineRemainingMs, x as contributorInsightsRefusals, xa as isWaitAbandonedError, xc as withRetry, xd as derivePartitionAndUrlSuffix, xl as recoverMaskedOutput, y as streamTagsMatchDeclared, ya as deleteSkipReason, yi as secretNamedAttributeNamesOf, z as TABLE_INDEX_NOUN, za as isSettledInstanceState, zr as awaitInFlightSibling } from "./deploy-engine-BiJyU4j1.js";
|
|
6
|
+
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-FsEgUieT.js";
|
|
7
|
+
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, s as resolvedResourceTimeoutMs, t as canonicalizeIpv4Cidr } from "./program-Dm0hn2Sn.js";
|
|
8
|
+
import { n as modifyDbInstanceWhenAvailable } from "./db-instance-modify-retry-DCLA_p9I.js";
|
|
9
|
+
import { RDSProvider } from "./rds-provider-C_r5q9NM.js";
|
|
10
|
+
import { NeptuneProvider } from "./neptune-provider-DjjNodrS.js";
|
|
11
|
+
import { ASGProvider } from "./asg-provider-B4XVfH0S.js";
|
|
12
12
|
import { createHash, randomUUID } from "node:crypto";
|
|
13
13
|
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";
|
|
14
14
|
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";
|
|
@@ -17402,6 +17402,7 @@ function routeTargetParams(properties) {
|
|
|
17402
17402
|
EgressOnlyInternetGatewayId: properties["EgressOnlyInternetGatewayId"] ?? void 0,
|
|
17403
17403
|
InstanceId: properties["InstanceId"] ?? void 0,
|
|
17404
17404
|
NetworkInterfaceId: properties["NetworkInterfaceId"] ?? void 0,
|
|
17405
|
+
OdbNetworkArn: properties["OdbNetworkArn"] ?? void 0,
|
|
17405
17406
|
TransitGatewayId: properties["TransitGatewayId"] ?? void 0,
|
|
17406
17407
|
VpcEndpointId: properties["VpcEndpointId"] ?? void 0,
|
|
17407
17408
|
VpcPeeringConnectionId: properties["VpcPeeringConnectionId"] ?? void 0
|
|
@@ -17723,6 +17724,7 @@ var EC2Provider = class {
|
|
|
17723
17724
|
"EgressOnlyInternetGatewayId",
|
|
17724
17725
|
"InstanceId",
|
|
17725
17726
|
"NetworkInterfaceId",
|
|
17727
|
+
"OdbNetworkArn",
|
|
17726
17728
|
"TransitGatewayId",
|
|
17727
17729
|
"VpcEndpointId",
|
|
17728
17730
|
"VpcPeeringConnectionId"
|
|
@@ -21428,6 +21430,7 @@ var EC2Provider = class {
|
|
|
21428
21430
|
if (route.LocalGatewayId !== void 0) result["LocalGatewayId"] = route.LocalGatewayId;
|
|
21429
21431
|
if (route.CarrierGatewayId !== void 0) result["CarrierGatewayId"] = route.CarrierGatewayId;
|
|
21430
21432
|
if (route.CoreNetworkArn !== void 0) result["CoreNetworkArn"] = route.CoreNetworkArn;
|
|
21433
|
+
if (route.OdbNetworkArn !== void 0) result["OdbNetworkArn"] = route.OdbNetworkArn;
|
|
21431
21434
|
return result;
|
|
21432
21435
|
}
|
|
21433
21436
|
async readSubnetRouteTableAssociationCurrentState(physicalId) {
|
|
@@ -27226,6 +27229,10 @@ function isEcsErrorNamed(error, names) {
|
|
|
27226
27229
|
return typeof name === "string" && names.includes(name);
|
|
27227
27230
|
}
|
|
27228
27231
|
const settleRolloutDelays = { sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms)) };
|
|
27232
|
+
const serviceInactiveWait = {
|
|
27233
|
+
sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms)),
|
|
27234
|
+
now: () => Date.now()
|
|
27235
|
+
};
|
|
27229
27236
|
function requestedRolloutOf(service) {
|
|
27230
27237
|
if (!service) return void 0;
|
|
27231
27238
|
const primary = service.deployments?.find((d) => d.status === "PRIMARY");
|
|
@@ -27283,6 +27290,23 @@ function rolloutSupersededBy(requested, settled) {
|
|
|
27283
27290
|
function markNotGoneOnNotFoundClass$1(error, wrapped) {
|
|
27284
27291
|
return error instanceof Error && error.name.includes("NotFound") ? markNotGone(wrapped) : wrapped;
|
|
27285
27292
|
}
|
|
27293
|
+
function gatewayConnectorsGateKey(value) {
|
|
27294
|
+
if (!Array.isArray(value)) return JSON.stringify(value ?? null);
|
|
27295
|
+
return JSON.stringify(value.map((connector) => {
|
|
27296
|
+
if (typeof connector !== "object" || connector === null || Array.isArray(connector)) return connector;
|
|
27297
|
+
const filters = connector["Filters"];
|
|
27298
|
+
if (typeof filters !== "object" || filters === null || Array.isArray(filters)) return connector;
|
|
27299
|
+
const accessTypes = filters["AccessTypes"];
|
|
27300
|
+
if (!Array.isArray(accessTypes)) return connector;
|
|
27301
|
+
return {
|
|
27302
|
+
...connector,
|
|
27303
|
+
Filters: {
|
|
27304
|
+
...filters,
|
|
27305
|
+
AccessTypes: accessTypes.map((v) => JSON.stringify(v) ?? "undefined").sort()
|
|
27306
|
+
}
|
|
27307
|
+
};
|
|
27308
|
+
}));
|
|
27309
|
+
}
|
|
27286
27310
|
var ECSProvider = class {
|
|
27287
27311
|
ecsClient;
|
|
27288
27312
|
taskDefinitionCreateClient;
|
|
@@ -27345,7 +27369,8 @@ var ECSProvider = class {
|
|
|
27345
27369
|
"Role",
|
|
27346
27370
|
"ServiceConnectConfiguration",
|
|
27347
27371
|
"VolumeConfigurations",
|
|
27348
|
-
"VpcLatticeConfigurations"
|
|
27372
|
+
"VpcLatticeConfigurations",
|
|
27373
|
+
"GatewayConnectors"
|
|
27349
27374
|
])]
|
|
27350
27375
|
]);
|
|
27351
27376
|
unhandledByDesign = /* @__PURE__ */ new Map([["AWS::ECS::TaskDefinition", /* @__PURE__ */ new Map([["InferenceAccelerators", "AWS Elastic Inference end-of-life 2024-04; use AWS Inferentia / Trainium accelerator instance families instead"]])]]);
|
|
@@ -27701,7 +27726,8 @@ var ECSProvider = class {
|
|
|
27701
27726
|
serviceConnectConfiguration: this.convertServiceConnectConfiguration(properties["ServiceConnectConfiguration"]),
|
|
27702
27727
|
volumeConfigurations: this.convertServiceVolumeConfigurations(properties["VolumeConfigurations"]),
|
|
27703
27728
|
vpcLatticeConfigurations: this.convertVpcLatticeConfigurations(properties["VpcLatticeConfigurations"]),
|
|
27704
|
-
monitoring: this.convertMonitoringConfiguration(properties["Monitoring"])
|
|
27729
|
+
monitoring: this.convertMonitoringConfiguration(properties["Monitoring"]),
|
|
27730
|
+
gatewayConnectors: this.convertGatewayConnectors(properties["GatewayConnectors"])
|
|
27705
27731
|
}))).service;
|
|
27706
27732
|
if (!service || !service.serviceArn) throw new Error("CreateService did not return service ARN");
|
|
27707
27733
|
log.debug(`Successfully created ECS service ${logicalId}: ${service.serviceArn}`);
|
|
@@ -27908,6 +27934,7 @@ var ECSProvider = class {
|
|
|
27908
27934
|
const volumeConfigurationsInput = JSON.stringify(previousProperties["VolumeConfigurations"] ?? null) !== JSON.stringify(properties["VolumeConfigurations"] ?? null) ? clearOnUpdateRemoval(this.convertServiceVolumeConfigurations(properties["VolumeConfigurations"]), previousProperties["VolumeConfigurations"], []) : void 0;
|
|
27909
27935
|
const vpcLatticeConfigurationsInput = JSON.stringify(previousProperties["VpcLatticeConfigurations"] ?? null) !== JSON.stringify(properties["VpcLatticeConfigurations"] ?? null) ? clearOnUpdateRemoval(this.convertVpcLatticeConfigurations(properties["VpcLatticeConfigurations"]), previousProperties["VpcLatticeConfigurations"], []) : void 0;
|
|
27910
27936
|
const monitoringInput = JSON.stringify(previousProperties["Monitoring"] ?? null) !== JSON.stringify(properties["Monitoring"] ?? null) ? clearOnUpdateRemoval(this.convertMonitoringConfiguration(properties["Monitoring"]), previousProperties["Monitoring"], { metricConfigurations: [] }) : void 0;
|
|
27937
|
+
const gatewayConnectorsInput = gatewayConnectorsGateKey(previousProperties["GatewayConnectors"]) !== gatewayConnectorsGateKey(properties["GatewayConnectors"]) ? this.convertGatewayConnectors(properties["GatewayConnectors"]) : void 0;
|
|
27911
27938
|
const forceNewDeploymentInput = this.resolveForceNewDeployment(properties, previousProperties, log);
|
|
27912
27939
|
const deploymentConfigurationInput = this.resolveDeploymentConfiguration(properties, previousProperties);
|
|
27913
27940
|
try {
|
|
@@ -27934,6 +27961,7 @@ var ECSProvider = class {
|
|
|
27934
27961
|
volumeConfigurations: volumeConfigurationsInput,
|
|
27935
27962
|
vpcLatticeConfigurations: vpcLatticeConfigurationsInput,
|
|
27936
27963
|
monitoring: monitoringInput,
|
|
27964
|
+
gatewayConnectors: gatewayConnectorsInput,
|
|
27937
27965
|
forceNewDeployment: forceNewDeploymentInput
|
|
27938
27966
|
}))).service;
|
|
27939
27967
|
if (service?.serviceArn) await this.applyTagDiff(service.serviceArn, resourceType, logicalId, previousProperties["Tags"], properties["Tags"], log);
|
|
@@ -27969,6 +27997,7 @@ var ECSProvider = class {
|
|
|
27969
27997
|
}
|
|
27970
27998
|
} else cluster = recordedCluster;
|
|
27971
27999
|
let stripped = false;
|
|
28000
|
+
let alreadyDeleted = false;
|
|
27972
28001
|
try {
|
|
27973
28002
|
try {
|
|
27974
28003
|
await client.send(new UpdateServiceCommand({
|
|
@@ -27984,27 +28013,57 @@ var ECSProvider = class {
|
|
|
27984
28013
|
const clientRegion = await client.config.region();
|
|
27985
28014
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
27986
28015
|
this.logger.debug(`ECS service ${physicalId} not found during scale down, skipping deletion`);
|
|
27987
|
-
return;
|
|
27988
|
-
|
|
27989
|
-
throw error;
|
|
28016
|
+
if (!this.isServiceNotActiveException(error)) return;
|
|
28017
|
+
alreadyDeleted = true;
|
|
28018
|
+
} else throw error;
|
|
28019
|
+
}
|
|
28020
|
+
if (!alreadyDeleted) {
|
|
28021
|
+
await client.send(new DeleteServiceCommand({
|
|
28022
|
+
cluster,
|
|
28023
|
+
service: physicalId,
|
|
28024
|
+
force: true
|
|
28025
|
+
}));
|
|
28026
|
+
this.logger.debug(`Successfully deleted ECS service ${logicalId}`);
|
|
27990
28027
|
}
|
|
27991
|
-
await client.send(new DeleteServiceCommand({
|
|
27992
|
-
cluster,
|
|
27993
|
-
service: physicalId,
|
|
27994
|
-
force: true
|
|
27995
|
-
}));
|
|
27996
|
-
this.logger.debug(`Successfully deleted ECS service ${logicalId}`);
|
|
27997
28028
|
} catch (error) {
|
|
27998
28029
|
if (this.isServiceNotFoundException(error)) {
|
|
27999
28030
|
const clientRegion = await client.config.region();
|
|
28000
28031
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
28001
28032
|
this.logger.debug(`ECS service ${physicalId} not found, skipping deletion`);
|
|
28002
|
-
return;
|
|
28033
|
+
if (!this.isServiceNotActiveException(error)) return;
|
|
28034
|
+
} else {
|
|
28035
|
+
const cause = error instanceof Error ? error : void 0;
|
|
28036
|
+
const wrapped = this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete ECS service ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
28037
|
+
const failure = this.isClusterNotFoundException(error) ? wrapped : markNotGoneOnNotFoundClass$1(error, wrapped);
|
|
28038
|
+
throw stripped ? markDeleteStarted(failure) : failure;
|
|
28003
28039
|
}
|
|
28004
|
-
|
|
28005
|
-
|
|
28006
|
-
|
|
28007
|
-
|
|
28040
|
+
}
|
|
28041
|
+
await this.waitForServiceInactive(logicalId, physicalId, cluster, resourceType);
|
|
28042
|
+
}
|
|
28043
|
+
async waitForServiceInactive(logicalId, physicalId, cluster, resourceType) {
|
|
28044
|
+
const client = this.getClient();
|
|
28045
|
+
const maxWaitSeconds = Math.max(600, (resolvedResourceTimeoutMs("AWS::ECS::Service") ?? 0) / 1e3);
|
|
28046
|
+
const deadline = serviceInactiveWait.now() + maxWaitSeconds * 1e3;
|
|
28047
|
+
let delay = 2e3;
|
|
28048
|
+
let lastStatus = "unknown";
|
|
28049
|
+
for (;;) {
|
|
28050
|
+
try {
|
|
28051
|
+
const out = await client.send(new DescribeServicesCommand({
|
|
28052
|
+
cluster,
|
|
28053
|
+
services: [physicalId]
|
|
28054
|
+
}));
|
|
28055
|
+
if ((out?.failures ?? []).some((failure) => failure.reason === "MISSING")) return;
|
|
28056
|
+
const status = out?.services?.[0]?.status;
|
|
28057
|
+
if (status === "INACTIVE") return;
|
|
28058
|
+
lastStatus = status ?? "unknown";
|
|
28059
|
+
} catch (error) {
|
|
28060
|
+
if (this.isClusterNotFoundException(error)) return;
|
|
28061
|
+
const readFailure = new ProvisioningError(`Failed to confirm ECS service ${logicalId} deletion: ${error instanceof Error ? error.name : "unknown error"}`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
|
|
28062
|
+
throw markDeleteStarted(readFailure);
|
|
28063
|
+
}
|
|
28064
|
+
if (serviceInactiveWait.now() >= deadline) throw markNonRetryable(markDeleteStarted(new ProvisioningError(`ECS service ${logicalIdShown(logicalId)} was deleted but did not reach INACTIVE within ${maxWaitSeconds}s (last status: ${lastStatus}). Re-run once the service is INACTIVE, or raise the limit with --resource-timeout AWS::ECS::Service=${commandHole("duration")}.`, resourceType, logicalId, physicalId)));
|
|
28065
|
+
await serviceInactiveWait.sleep(delay);
|
|
28066
|
+
delay = Math.min(delay * 2, 1e4);
|
|
28008
28067
|
}
|
|
28009
28068
|
}
|
|
28010
28069
|
async getServiceAttribute(physicalId, attributeName) {
|
|
@@ -28477,6 +28536,10 @@ var ECSProvider = class {
|
|
|
28477
28536
|
if (!items) return void 0;
|
|
28478
28537
|
return pascalToCamelCaseKeys(items);
|
|
28479
28538
|
}
|
|
28539
|
+
convertGatewayConnectors(items) {
|
|
28540
|
+
if (!items) return void 0;
|
|
28541
|
+
return pascalToCamelCaseKeys(items);
|
|
28542
|
+
}
|
|
28480
28543
|
convertMonitoringConfiguration(config) {
|
|
28481
28544
|
if (!config) return void 0;
|
|
28482
28545
|
return pascalToCamelCaseKeys(config);
|
|
@@ -28546,6 +28609,9 @@ var ECSProvider = class {
|
|
|
28546
28609
|
if (error instanceof Error) return error.name === "ServiceNotFoundException" || error.name === "ServiceNotActiveException" || error.message.includes("service not found") || error.message.includes("Service not found");
|
|
28547
28610
|
return false;
|
|
28548
28611
|
}
|
|
28612
|
+
isServiceNotActiveException(error) {
|
|
28613
|
+
return error instanceof Error && error.name === "ServiceNotActiveException";
|
|
28614
|
+
}
|
|
28549
28615
|
getDriftUnknownPaths(resourceType) {
|
|
28550
28616
|
if (resourceType === "AWS::ECS::Service") return [
|
|
28551
28617
|
"ServiceConnectConfiguration",
|
|
@@ -28553,7 +28619,8 @@ var ECSProvider = class {
|
|
|
28553
28619
|
"VpcLatticeConfigurations",
|
|
28554
28620
|
"Monitoring",
|
|
28555
28621
|
"ForceNewDeployment",
|
|
28556
|
-
"Role"
|
|
28622
|
+
"Role",
|
|
28623
|
+
"GatewayConnectors"
|
|
28557
28624
|
];
|
|
28558
28625
|
return [];
|
|
28559
28626
|
}
|
|
@@ -48568,7 +48635,8 @@ var FirehoseProvider = class {
|
|
|
48568
48635
|
"SplunkDestinationConfiguration",
|
|
48569
48636
|
"AmazonOpenSearchServerlessDestinationConfiguration",
|
|
48570
48637
|
"DeliveryStreamEncryptionConfigurationInput",
|
|
48571
|
-
"IcebergDestinationConfiguration"
|
|
48638
|
+
"IcebergDestinationConfiguration",
|
|
48639
|
+
"MSKSourceConfiguration"
|
|
48572
48640
|
])]]);
|
|
48573
48641
|
getClient() {
|
|
48574
48642
|
if (!this.client) {
|
|
@@ -48592,12 +48660,14 @@ var FirehoseProvider = class {
|
|
|
48592
48660
|
const deliveryStreamName = properties["DeliveryStreamName"];
|
|
48593
48661
|
const deliveryStreamType = properties["DeliveryStreamType"] || "DirectPut";
|
|
48594
48662
|
if (!isReadableTagList(properties["Tags"])) throw markNonRetryable(new ProvisioningError(`Tags of Firehose delivery stream ${logicalId} is not a list of tags with a Key — the delivery stream was not created`, resourceType, logicalId));
|
|
48663
|
+
const mskSource = properties["MSKSourceConfiguration"] === void 0 ? void 0 : mapMskSourceConfiguration(properties["MSKSourceConfiguration"], maskerOrIdentity(context?.maskSecrets), resourceType, logicalId);
|
|
48595
48664
|
let createdStreamName;
|
|
48596
48665
|
try {
|
|
48597
48666
|
const input = {
|
|
48598
48667
|
DeliveryStreamName: deliveryStreamName || generatedNameFor("AWS::KinesisFirehose::DeliveryStream", logicalId),
|
|
48599
48668
|
DeliveryStreamType: deliveryStreamType
|
|
48600
48669
|
};
|
|
48670
|
+
if (mskSource !== void 0) input.MSKSourceConfiguration = mskSource;
|
|
48601
48671
|
if (properties["S3DestinationConfiguration"]) {
|
|
48602
48672
|
const s3Config = properties["S3DestinationConfiguration"];
|
|
48603
48673
|
input.S3DestinationConfiguration = this.mapS3DestinationConfiguration(s3Config);
|
|
@@ -49390,7 +49460,7 @@ var FirehoseProvider = class {
|
|
|
49390
49460
|
return /* @__PURE__ */ new Set([ENCRYPTION_KEY]);
|
|
49391
49461
|
}
|
|
49392
49462
|
}
|
|
49393
|
-
async readCurrentState(physicalId, _logicalId, _resourceType) {
|
|
49463
|
+
async readCurrentState(physicalId, _logicalId, _resourceType, properties) {
|
|
49394
49464
|
let desc;
|
|
49395
49465
|
try {
|
|
49396
49466
|
desc = (await this.getClient().send(new DescribeDeliveryStreamCommand({ DeliveryStreamName: physicalId }))).DeliveryStreamDescription;
|
|
@@ -49411,6 +49481,8 @@ var FirehoseProvider = class {
|
|
|
49411
49481
|
}
|
|
49412
49482
|
const directPut = desc.Source?.DirectPutSourceDescription;
|
|
49413
49483
|
if (directPut?.ThroughputHintInMBs !== void 0) result["DirectPutSourceConfiguration"] = { ThroughputHintInMBs: directPut.ThroughputHintInMBs };
|
|
49484
|
+
const msk = desc.Source?.MSKSourceDescription;
|
|
49485
|
+
if (msk) result["MSKSourceConfiguration"] = mapMskSourceDescriptionToCfn(msk, properties?.["MSKSourceConfiguration"]);
|
|
49414
49486
|
const dest = desc.Destinations?.[0];
|
|
49415
49487
|
if (dest?.ExtendedS3DestinationDescription) result["ExtendedS3DestinationConfiguration"] = mapExtendedS3DescriptionToCfn(dest.ExtendedS3DestinationDescription);
|
|
49416
49488
|
else if (dest?.IcebergDestinationDescription) result["IcebergDestinationConfiguration"] = mapIcebergDescriptionToCfn(dest.IcebergDestinationDescription);
|
|
@@ -49576,6 +49648,47 @@ function mapRedshiftDescriptionToCfn(desc) {
|
|
|
49576
49648
|
if (desc["S3BackupDescription"]) out["S3BackupConfiguration"] = mapS3DescriptionToCfn(desc["S3BackupDescription"]);
|
|
49577
49649
|
return out;
|
|
49578
49650
|
}
|
|
49651
|
+
const EPOCH_MILLIS = /^[+-]?\d+$/;
|
|
49652
|
+
function epochMillisTimestamp(value) {
|
|
49653
|
+
if (typeof value === "number" && Number.isSafeInteger(value)) value = String(value);
|
|
49654
|
+
if (typeof value !== "string" || !EPOCH_MILLIS.test(value)) return void 0;
|
|
49655
|
+
const date = new Date(Number(value));
|
|
49656
|
+
return Number.isNaN(date.getTime()) ? void 0 : date;
|
|
49657
|
+
}
|
|
49658
|
+
function mapMskSourceConfiguration(config, mask, resourceType, logicalId) {
|
|
49659
|
+
const auth = config["AuthenticationConfiguration"];
|
|
49660
|
+
const result = {
|
|
49661
|
+
MSKClusterARN: config["MSKClusterARN"],
|
|
49662
|
+
TopicName: config["TopicName"],
|
|
49663
|
+
AuthenticationConfiguration: auth && {
|
|
49664
|
+
RoleARN: auth["RoleARN"],
|
|
49665
|
+
Connectivity: auth["Connectivity"]
|
|
49666
|
+
}
|
|
49667
|
+
};
|
|
49668
|
+
const raw = config["ReadFromTimestamp"];
|
|
49669
|
+
if (raw !== void 0) {
|
|
49670
|
+
const parsed = epochMillisTimestamp(raw);
|
|
49671
|
+
if (parsed === void 0) throw markNonRetryable(new ProvisioningError(`MSKSourceConfiguration.ReadFromTimestamp of Firehose delivery stream ${logicalId} is not a string of epoch milliseconds: ${JSON.stringify(maskDeep(raw, mask))} — CloudFormation reads it as one and refuses any other spelling, an ISO 8601 date included; write e.g. '1767225600000' for 2026-01-01T00:00:00Z. The delivery stream was not created`, resourceType, logicalId));
|
|
49672
|
+
result.ReadFromTimestamp = parsed;
|
|
49673
|
+
}
|
|
49674
|
+
return result;
|
|
49675
|
+
}
|
|
49676
|
+
function mapMskSourceDescriptionToCfn(desc, recorded) {
|
|
49677
|
+
const out = {};
|
|
49678
|
+
if (desc.MSKClusterARN !== void 0) out["MSKClusterARN"] = desc.MSKClusterARN;
|
|
49679
|
+
if (desc.TopicName !== void 0) out["TopicName"] = desc.TopicName;
|
|
49680
|
+
const auth = desc.AuthenticationConfiguration;
|
|
49681
|
+
if (auth) out["AuthenticationConfiguration"] = {
|
|
49682
|
+
...auth.RoleARN !== void 0 && { RoleARN: auth.RoleARN },
|
|
49683
|
+
...auth.Connectivity !== void 0 && { Connectivity: auth.Connectivity }
|
|
49684
|
+
};
|
|
49685
|
+
const live = desc.ReadFromTimestamp;
|
|
49686
|
+
if (live instanceof Date && !Number.isNaN(live.getTime())) {
|
|
49687
|
+
const spelled = isPlainRecord(recorded) ? recorded["ReadFromTimestamp"] : void 0;
|
|
49688
|
+
out["ReadFromTimestamp"] = epochMillisTimestamp(spelled)?.getTime() === live.getTime() ? spelled : String(live.getTime());
|
|
49689
|
+
}
|
|
49690
|
+
return out;
|
|
49691
|
+
}
|
|
49579
49692
|
function mapIcebergDescriptionToCfn(desc) {
|
|
49580
49693
|
const out = {};
|
|
49581
49694
|
for (const k of [
|
|
@@ -55045,4 +55158,4 @@ var ACMCertificateProvider = class {
|
|
|
55045
55158
|
};
|
|
55046
55159
|
|
|
55047
55160
|
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, 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 };
|
|
55048
|
-
//# sourceMappingURL=provider-classes-
|
|
55161
|
+
//# sourceMappingURL=provider-classes-BTOXS3cs.js.map
|