@cdkd/cli 0.351.0 → 0.351.2

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.
Files changed (55) hide show
  1. package/dist/{ambient-client-defaults-BdOY70NL.js → ambient-client-defaults-BNsgmFaO.js} +3 -3
  2. package/dist/{ambient-client-defaults-BdOY70NL.js.map → ambient-client-defaults-BNsgmFaO.js.map} +1 -1
  3. package/dist/{asg-provider-BhktjcGM.js → asg-provider-CBnZ6WhM.js} +26 -6
  4. package/dist/{asg-provider-BhktjcGM.js.map → asg-provider-CBnZ6WhM.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-BkEa9HAa.js → custom-resource-runtime-BREgzXYF.js} +6 -6
  7. package/dist/{custom-resource-runtime-BkEa9HAa.js.map → custom-resource-runtime-BREgzXYF.js.map} +1 -1
  8. package/dist/{db-associated-roles-DZ1mRuUA.js → db-associated-roles-ClXc3ZtP.js} +2 -2
  9. package/dist/{db-associated-roles-DZ1mRuUA.js.map → db-associated-roles-ClXc3ZtP.js.map} +1 -1
  10. package/dist/{delete-started-ByP_GmQ7.js → delete-started-Du9ABI-8.js} +4 -4
  11. package/dist/{delete-started-ByP_GmQ7.js.map → delete-started-Du9ABI-8.js.map} +1 -1
  12. package/dist/{deploy-engine-BZNCiQ-B.js → deploy-engine-Crq1_YaU.js} +658 -133
  13. package/dist/deploy-engine-Crq1_YaU.js.map +1 -0
  14. package/dist/{diff-calculator-vaWjL6sQ.js → diff-calculator-BjfI_Wan.js} +12 -12
  15. package/dist/{diff-calculator-vaWjL6sQ.js.map → diff-calculator-BjfI_Wan.js.map} +1 -1
  16. package/dist/{ec2-termination-protection-DpNlPDar.js → ec2-termination-protection-ktQGLiiN.js} +6 -6
  17. package/dist/{ec2-termination-protection-DpNlPDar.js.map → ec2-termination-protection-ktQGLiiN.js.map} +1 -1
  18. package/dist/{ecr-uri-Cd_x_ldh.js → ecr-uri-BQT6UV3q.js} +2 -2
  19. package/dist/{ecr-uri-Cd_x_ldh.js.map → ecr-uri-BQT6UV3q.js.map} +1 -1
  20. package/dist/{expected-bucket-owner-Ba9LshiP.js → expected-bucket-owner-BB5y_p0b.js} +2 -2
  21. package/dist/{expected-bucket-owner-Ba9LshiP.js.map → expected-bucket-owner-BB5y_p0b.js.map} +1 -1
  22. package/dist/{iam-role-provider-CL-dMrn4.js → iam-role-provider-CiX8RNcU.js} +10 -8
  23. package/dist/iam-role-provider-CiX8RNcU.js.map +1 -0
  24. package/dist/{image-plan-C0B05bHS.js → image-plan-CwEUwSBO.js} +8 -8
  25. package/dist/{image-plan-C0B05bHS.js.map → image-plan-CwEUwSBO.js.map} +1 -1
  26. package/dist/index.d.ts +5 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/{logger-DpAGzSvV.js → logger-DmGdReDx.js} +2 -2
  30. package/dist/{logger-DpAGzSvV.js.map → logger-DmGdReDx.js.map} +1 -1
  31. package/dist/{neptune-provider-CJuYc8IB.js → neptune-provider-I7iiVIYL.js} +7 -7
  32. package/dist/{neptune-provider-CJuYc8IB.js.map → neptune-provider-I7iiVIYL.js.map} +1 -1
  33. package/dist/{program-CUCE3lAz.js → program-CjvlsJxS.js} +624 -170
  34. package/dist/program-CjvlsJxS.js.map +1 -0
  35. package/dist/{provider-classes-YUbciPtV.js → provider-classes-BUU9HgA_.js} +111 -79
  36. package/dist/provider-classes-BUU9HgA_.js.map +1 -0
  37. package/dist/{rds-provider-CbmVLapS.js → rds-provider-w7OvQPlJ.js} +10 -10
  38. package/dist/{rds-provider-CbmVLapS.js.map → rds-provider-w7OvQPlJ.js.map} +1 -1
  39. package/dist/{read-replica-BQ5dRRmm.js → read-replica-4gbBDrpV.js} +3 -3
  40. package/dist/{read-replica-BQ5dRRmm.js.map → read-replica-4gbBDrpV.js.map} +1 -1
  41. package/dist/{replacement-rules-DZphESoc.js → replacement-rules-CKf0IgJ7.js} +3 -3
  42. package/dist/{replacement-rules-DZphESoc.js.map → replacement-rules-CKf0IgJ7.js.map} +1 -1
  43. package/dist/{resource-deadline-_gEj2hxY.js → resource-deadline-CWs3cu_e.js} +4 -4
  44. package/dist/{resource-deadline-_gEj2hxY.js.map → resource-deadline-CWs3cu_e.js.map} +1 -1
  45. package/dist/{run-cli-bzXhjxpe.js → run-cli-8F0scSqk.js} +2 -2
  46. package/dist/{run-cli-bzXhjxpe.js.map → run-cli-8F0scSqk.js.map} +1 -1
  47. package/dist/{update-removal-DOUUID3B.js → update-removal-DwF56cpn.js} +4 -4
  48. package/dist/{update-removal-DOUUID3B.js.map → update-removal-DwF56cpn.js.map} +1 -1
  49. package/dist/{version-DTKcNNDa.js → version-G1UTHCOP.js} +2 -2
  50. package/dist/{version-DTKcNNDa.js.map → version-G1UTHCOP.js.map} +1 -1
  51. package/package.json +2 -2
  52. package/dist/deploy-engine-BZNCiQ-B.js.map +0 -1
  53. package/dist/iam-role-provider-CL-dMrn4.js.map +0 -1
  54. package/dist/program-CUCE3lAz.js.map +0 -1
  55. 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-CL-dMrn4.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-DpAGzSvV.js";
1
+ import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-CiX8RNcU.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-DmGdReDx.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-BdOY70NL.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-DOUUID3B.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-DTKcNNDa.js";
7
- import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-ByP_GmQ7.js";
8
- import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-CUCE3lAz.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-BZNCiQ-B.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-_gEj2hxY.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-DpNlPDar.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-BNsgmFaO.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-DwF56cpn.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-G1UTHCOP.js";
7
+ import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-Du9ABI-8.js";
8
+ import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-CjvlsJxS.js";
9
+ import { $ as isTtlAlreadyDisabled, $a as APPSYNC_APIKEY_ARN_RESOURCE_PATH, $t as lookupEachName, Ar as REDACTED_DELETE_ADDRESS_SKIP_REASON, At as maskedLogger, Bo as outputReferenceProvenanceOf, C as isAbsoluteAssetPath, Co as s3BucketDomainName, Cs as passedParameterClassesOf, Ct as deleteBudgetKey, Dt as INDEX_SETTLE_POLL_INTERVAL_MS, Eo as s3BucketWebsiteUrl, Et as DELETE_INDEX_WAIT_PROCEED_NOTE, Fa as waitForLambdaFunctionActive, Ft as hasCdkAutoDeleteTag, G as declaredStreamTagsMember, Ga as withIndeterminateGuard, Gc as withoutSdkUnwiredProperties, H as STREAM_POLICY_KEY, Hc as findSdkUnwiredProperties, Io as parseWebACLArn, It as isTruthyCfnBoolean, J as streamDeclaresPolicy, Jt as getPriorAttempts, K as planStreamMemberOps, Ki as secretNamedAttributeNamesOf, Kl as decodeListingKey, Ko as getAccountInfo, La as waitForGoneAfterDelete, Mr as redactedDeleteAddressFields, Mt as waitForIndexesSettled, Nc as accountArgs, Nr as redactedDeleteAddressSkip, Nt as ECR_AUTO_DELETE_IMAGES_TAG, Oc as refuseMalformedResourcesForDestroy, Ot as TABLE_INDEX_NOUN, Pc as withheldAccountClause, Pt as S3_AUTO_DELETE_OBJECTS_TAG, Q as streamTagsMatchDeclared, Qa as isSettledInstanceState, Qt as isAccessDeniedError, Ra as resolvedResourceTimeoutMs, S as findNestedTemplateTreeDefect, So as s3BucketArn, St as compensateRemovedDeletionProtection, T as renderNestedTemplateTreeDefect, Ta as getCurrentResourceSecrets, To as s3BucketRegionalDomainName, Tt as resolveDynamoDbDeleteBudgetMs, U as STREAM_TAGS_KEY, V as DynamoDBGlobalTableProvider, W as declaredStreamPolicyMember, Wa as deleteSkipReason, Wr as getCurrentProducerRegions, X as streamMemberRefusals, Y as streamDeclaresTags, Yt as markRefusedBeforeApplying, Z as streamPolicyMatchesDeclared, Zt as chunks, _t as stripIndexContributorInsights, at as readbackVectorIndexes, au as renderAssemblyPathEscape, bt as DYNAMODB_DELETE_POLL_COST_MS, ca as collectManagedPolicyArnsAttachedBySiblings, ct as vectorIndexesShapeDetail, da as withoutSiblingAttachedArns, dr as earliestDefined, dt as indexDeclaresContributorInsights, en as withApiLimit, eo as maskedSecretSegment, et as isTtlRateLimited, fa as withoutSiblingOwned, fl as stringifyValue, fs as WARM_THROUGHPUT_MEMBERS, ft as planContributorInsightsOp, gi as getStackRecords, gs as toFiniteNumber, gt as reverseMapTableContributorInsights, hn as withNestedStackContext, hr as acquireIdempotencyToken, hs as toCfnInteger, ht as reverseMapIndexContributorInsights, it as planVectorIndexUpdates, jr as isRedactedRecordedValue, jt as relayedIndexBusyDelete, kt as deleteTableWithIndexBusyRetry, la as collectPrincipalsAttachingPolicy, lt as CONTRIBUTOR_INSIGHTS_KEY, mi as awaitInFlightSibling, mn as getCurrentNestedStackContext, ms as isWarmThroughputDecrease, mt as readContributorInsightsSpec, nt as readTtlSpec, nu as describeFileReadFailure, ot as vectorIndexesForCreate, ou as resolveAssemblyPath, pr as reserveStackCreateToken, ps as coerceWarmThroughput$1, pt as planIndexContributorInsightsOps, q as reverseMapStreamPolicy, rt as sendTtlWaitingOutRateLimit, ru as displayAssemblyPath, sa as collectGroupsAddedBySiblings, sn as getNestedRevertRun, st as vectorIndexesSettled, t as DeployEngine, tt as planTimeToLive, un as revertNestedChildFromJournal, ut as contributorInsightsRefusals, vc as refuseMalformedNestedChildOutputs, vi as replacedDeleteFailureVerdict, vt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, w as listNestedTemplateRows, wo as s3BucketDualStackDomainName, wt as resolveDynamoDbDeleteBudgetClock, xl as rewriteTemplateAssetReferences, xt as beginDeleteWait, yt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS } from "./deploy-engine-Crq1_YaU.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-CWs3cu_e.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-ktQGLiiN.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-DZphESoc.js";
15
- import { RDSProvider } from "./rds-provider-CbmVLapS.js";
16
- import { NeptuneProvider } from "./neptune-provider-CJuYc8IB.js";
17
- import { ASGProvider } from "./asg-provider-BhktjcGM.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-CKf0IgJ7.js";
15
+ import { RDSProvider } from "./rds-provider-w7OvQPlJ.js";
16
+ import { NeptuneProvider } from "./neptune-provider-I7iiVIYL.js";
17
+ import { ASGProvider } from "./asg-provider-CBnZ6WhM.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";
@@ -979,7 +979,7 @@ async function deleteImpl$39(logicalId, physicalId, resourceType, _properties, c
979
979
 
980
980
  // src/provisioning/providers/iam-managed-policy/read-state.ts
981
981
  const AWS_MANAGED_POLICY_ARN_RE = /^arn:aws[a-z0-9-]*:iam::aws:/;
982
- async function readCurrentState$39(physicalId, _logicalId, _resourceType, _properties) {
982
+ async function readCurrentState$39(physicalId, _logicalId, _resourceType, properties, context) {
983
983
  let policy;
984
984
  try {
985
985
  policy = (await this.iamClient.send(new GetPolicyCommand({ PolicyArn: physicalId }))).Policy;
@@ -1021,9 +1021,10 @@ async function readCurrentState$39(physicalId, _logicalId, _resourceType, _prope
1021
1021
  if (!resp.IsTruncated) break;
1022
1022
  marker = resp.Marker;
1023
1023
  }
1024
- result["Groups"] = groups;
1025
- result["Roles"] = roles;
1026
- result["Users"] = users;
1024
+ const own = (key, names) => withoutSiblingOwned(names, collectPrincipalsAttachingPolicy(physicalId, context, key), properties, key);
1025
+ result["Groups"] = own("Groups", groups);
1026
+ result["Roles"] = own("Roles", roles);
1027
+ result["Users"] = own("Users", users);
1027
1028
  } catch (err) {
1028
1029
  if (!(err instanceof NoSuchEntityException)) throw err;
1029
1030
  }
@@ -1125,8 +1126,8 @@ var IAMManagedPolicyProvider = class {
1125
1126
  return managedPolicyAttributes(physicalId, resp.Policy)[attributeName];
1126
1127
  }
1127
1128
  }
1128
- readCurrentState(physicalId, logicalId, resourceType, properties) {
1129
- return readCurrentState$39.call(this, physicalId, logicalId, resourceType, properties);
1129
+ readCurrentState(physicalId, logicalId, resourceType, properties, context) {
1130
+ return readCurrentState$39.call(this, physicalId, logicalId, resourceType, properties, context);
1130
1131
  }
1131
1132
  import(input) {
1132
1133
  return importImpl$39.call(this, input);
@@ -3040,12 +3041,14 @@ async function readUserCurrentState(physicalId, properties, context) {
3040
3041
  if (user.Path !== void 0) result["Path"] = user.Path;
3041
3042
  result["PermissionsBoundary"] = user.PermissionsBoundary?.PermissionsBoundaryArn ?? "";
3042
3043
  try {
3043
- result["ManagedPolicyArns"] = ((await this.iamClient.send(new ListAttachedUserPoliciesCommand({ UserName: physicalId }))).AttachedPolicies ?? []).map((p) => p.PolicyArn).filter((arn) => !!arn);
3044
+ const arns = ((await this.iamClient.send(new ListAttachedUserPoliciesCommand({ UserName: physicalId }))).AttachedPolicies ?? []).map((p) => p.PolicyArn).filter((arn) => !!arn);
3045
+ result["ManagedPolicyArns"] = withoutSiblingAttachedArns(arns, collectManagedPolicyArnsAttachedBySiblings(physicalId, context, "Users"), properties);
3044
3046
  } catch (err) {
3045
3047
  if (!(err instanceof NoSuchEntityException)) throw err;
3046
3048
  }
3047
3049
  try {
3048
- result["Groups"] = ((await this.iamClient.send(new ListGroupsForUserCommand({ UserName: physicalId }))).Groups ?? []).map((g) => g.GroupName).filter((n) => !!n);
3050
+ const names = ((await this.iamClient.send(new ListGroupsForUserCommand({ UserName: physicalId }))).Groups ?? []).map((g) => g.GroupName).filter((n) => !!n);
3051
+ result["Groups"] = withoutSiblingOwned(names, collectGroupsAddedBySiblings(physicalId, context), properties, "Groups", true);
3049
3052
  } catch (err) {
3050
3053
  if (!(err instanceof NoSuchEntityException)) throw err;
3051
3054
  }
@@ -3069,7 +3072,8 @@ async function readGroupCurrentState(physicalId, properties, context) {
3069
3072
  if (group.GroupName !== void 0) result["GroupName"] = group.GroupName;
3070
3073
  if (group.Path !== void 0) result["Path"] = group.Path;
3071
3074
  try {
3072
- result["ManagedPolicyArns"] = ((await this.iamClient.send(new ListAttachedGroupPoliciesCommand({ GroupName: physicalId }))).AttachedPolicies ?? []).map((p) => p.PolicyArn).filter((arn) => !!arn);
3075
+ const arns = ((await this.iamClient.send(new ListAttachedGroupPoliciesCommand({ GroupName: physicalId }))).AttachedPolicies ?? []).map((p) => p.PolicyArn).filter((arn) => !!arn);
3076
+ result["ManagedPolicyArns"] = withoutSiblingAttachedArns(arns, collectManagedPolicyArnsAttachedBySiblings(physicalId, context, "Groups"), properties);
3073
3077
  } catch (err) {
3074
3078
  if (!(err instanceof NoSuchEntityException)) throw err;
3075
3079
  }
@@ -9110,6 +9114,20 @@ var LambdaCreateClientCache = class {
9110
9114
  }
9111
9115
  };
9112
9116
 
9117
+ // src/provisioning/providers/lambda-function/attributes.ts
9118
+ function functionAttributes(configuration) {
9119
+ const snapStart = configuration?.SnapStart;
9120
+ const snapStartResponse = snapStart === void 0 ? void 0 : definedAttributes({
9121
+ ApplyOn: snapStart.ApplyOn,
9122
+ OptimizationStatus: snapStart.OptimizationStatus
9123
+ });
9124
+ return definedAttributes({
9125
+ Arn: configuration?.FunctionArn,
9126
+ FunctionName: configuration?.FunctionName,
9127
+ SnapStartResponse: snapStartResponse && Object.keys(snapStartResponse).length > 0 ? snapStartResponse : void 0
9128
+ });
9129
+ }
9130
+
9113
9131
  // src/provisioning/providers/lambda-function/shared.ts
9114
9132
  function isFunctionName(id) {
9115
9133
  return /^[A-Za-z0-9_-]{1,64}$/.test(id);
@@ -9431,10 +9449,7 @@ async function create$36(logicalId, resourceType, properties, context) {
9431
9449
  log.debug(`Successfully created Lambda function ${logicalId}: ${log.value(functionName)}`);
9432
9450
  return {
9433
9451
  physicalId: response.FunctionName || functionName,
9434
- attributes: {
9435
- Arn: response.FunctionArn,
9436
- FunctionName: response.FunctionName
9437
- }
9452
+ attributes: functionAttributes(response)
9438
9453
  };
9439
9454
  } catch (error) {
9440
9455
  if (functionCreated) markAuxiliaryFailure(error, logicalId);
@@ -9720,10 +9735,7 @@ async function update$37(logicalId, physicalId, resourceType, properties, previo
9720
9735
  return {
9721
9736
  physicalId,
9722
9737
  wasReplaced: false,
9723
- attributes: {
9724
- Arn: functionArn,
9725
- FunctionName: getResponse.Configuration?.FunctionName
9726
- }
9738
+ attributes: functionAttributes(getResponse.Configuration)
9727
9739
  };
9728
9740
  } catch (error) {
9729
9741
  if (error instanceof ProvisioningError) throw error;
@@ -10087,10 +10099,10 @@ async function getAttribute$15(physicalId, _resourceType, attributeName) {
10087
10099
  async function importImpl$35(input) {
10088
10100
  const explicit = resolveExplicitPhysicalId(input, "FunctionName");
10089
10101
  if (explicit) try {
10090
- await this.lambdaClient.send(new GetFunctionCommand({ FunctionName: explicit }));
10102
+ const resp = await this.lambdaClient.send(new GetFunctionCommand({ FunctionName: explicit }));
10091
10103
  return {
10092
10104
  physicalId: explicit,
10093
- attributes: {}
10105
+ attributes: functionAttributes(resp.Configuration)
10094
10106
  };
10095
10107
  } catch (err) {
10096
10108
  if (err instanceof ResourceNotFoundException) return null;
@@ -19840,6 +19852,7 @@ const SUBNET_POOL_ASSOCIATION_READS = 10;
19840
19852
  async function prepareSubnetProperties(logicalId, resourceType, properties, context, physicalId, previousProperties) {
19841
19853
  let prepared = properties;
19842
19854
  for (const key of [
19855
+ "MapPublicIpOnLaunch",
19843
19856
  "EnableDns64",
19844
19857
  "Ipv6CidrBlock",
19845
19858
  "AssignIpv6AddressOnCreation",
@@ -19925,8 +19938,7 @@ async function createSubnet(logicalId, resourceType, properties, context) {
19925
19938
  if (!associationId) throw new ProvisioningError(`CreateSubnet returned no IPv6 association ID for ${logicalId}`, resourceType, logicalId, subnetId);
19926
19939
  await this.waitForSubnetIpv6Association(logicalId, subnetId, resourceType, associationId, "associated");
19927
19940
  }
19928
- const mapPublicIp = properties["MapPublicIpOnLaunch"];
19929
- if (mapPublicIp === true || mapPublicIp === "true") {
19941
+ if (coerceCfnBoolean(prepared["MapPublicIpOnLaunch"]) === true) {
19930
19942
  await this.ec2Client.send(new ModifySubnetAttributeCommand({
19931
19943
  SubnetId: subnetId,
19932
19944
  MapPublicIpOnLaunch: { Value: true }
@@ -20000,9 +20012,10 @@ async function updateSubnet(logicalId, physicalId, resourceType, properties, pre
20000
20012
  if (previousProperties["Ipv6CidrBlock"] === void 0) delete prepared["Ipv6CidrBlock"];
20001
20013
  else prepared["Ipv6CidrBlock"] = previousProperties["Ipv6CidrBlock"];
20002
20014
  }
20003
- const asBool = (v) => v === true || v === "true";
20004
- const newMapPublicIp = asBool(properties["MapPublicIpOnLaunch"]);
20005
- if (newMapPublicIp !== asBool(previousProperties["MapPublicIpOnLaunch"])) {
20015
+ const newMapPublicIp = coerceCfnBoolean(prepared["MapPublicIpOnLaunch"]);
20016
+ const oldMapPublicIp = coerceCfnBoolean(previousProperties["MapPublicIpOnLaunch"]);
20017
+ if (context?.replayingState === true && newMapPublicIp === void 0 && prepared["MapPublicIpOnLaunch"] === properties["MapPublicIpOnLaunch"] && oldMapPublicIp === true) this.logger.warn(safeMsg`Subnet ${logicalId}: MapPublicIpOnLaunch may stay true after the rollback, since the restored record does not declare it (CloudFormation keeps a removed value)`);
20018
+ if (newMapPublicIp !== void 0 && newMapPublicIp !== oldMapPublicIp) {
20006
20019
  await this.ec2Client.send(new ModifySubnetAttributeCommand({
20007
20020
  SubnetId: physicalId,
20008
20021
  MapPublicIpOnLaunch: { Value: newMapPublicIp }
@@ -22163,9 +22176,18 @@ function sameStringSet(a, b) {
22163
22176
  const sb = new Set(b.map(String));
22164
22177
  return sa.size === sb.size && [...sa].every((x) => sb.has(x));
22165
22178
  }
22166
- function describedInstanceAttributes(instanceId, instance) {
22179
+ const TRANSITIONAL_INSTANCE_STATES = /* @__PURE__ */ new Set([
22180
+ "pending",
22181
+ "stopping",
22182
+ "shutting-down"
22183
+ ]);
22184
+ function describedInstanceAttributes(instanceId, instance, options = {}) {
22167
22185
  const stateName = instance?.State?.Name;
22168
22186
  const settled = isSettledInstanceState(stateName);
22187
+ const state = settled && stateName !== void 0 && options.waited !== false && !TRANSITIONAL_INSTANCE_STATES.has(stateName) && instance?.State?.Code !== void 0 ? {
22188
+ Code: String(instance.State.Code),
22189
+ Name: stateName
22190
+ } : void 0;
22169
22191
  const publicMember = (value) => settled ? value ?? "" : value || void 0;
22170
22192
  return definedAttributes({
22171
22193
  InstanceId: instanceId,
@@ -22173,7 +22195,8 @@ function describedInstanceAttributes(instanceId, instance) {
22173
22195
  PublicIp: publicMember(instance?.PublicIpAddress),
22174
22196
  PrivateDnsName: instance?.PrivateDnsName,
22175
22197
  PublicDnsName: publicMember(instance?.PublicDnsName),
22176
- AvailabilityZone: instance?.Placement?.AvailabilityZone
22198
+ AvailabilityZone: instance?.Placement?.AvailabilityZone,
22199
+ State: state
22177
22200
  });
22178
22201
  }
22179
22202
  const INSTANCE_CREATE_ONLY_SENT = [
@@ -22489,7 +22512,7 @@ async function createInstance(logicalId, resourceType, properties, context) {
22489
22512
  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
22513
  for (const volumeId of volumeIds) await this.applyTags(volumeId, desiredTags, logicalId, maskerOrIdentity(context?.maskSecrets));
22491
22514
  }
22492
- const attributes = describedInstanceAttributes(instanceId, runningInstance);
22515
+ const attributes = describedInstanceAttributes(instanceId, runningInstance, { waited: waitsForRunning });
22493
22516
  this.logger.debug(`Successfully created EC2 Instance ${logicalId}: ${instanceId}`);
22494
22517
  runInstancesToken.release();
22495
22518
  if (skippedSsmAssociations) {
@@ -41791,6 +41814,18 @@ const removalWarnings = (logicalId, kept, placement, caller) => {
41791
41814
  return lines;
41792
41815
  };
41793
41816
 
41817
+ // src/provisioning/providers/elasticache/cache-cluster-attributes.ts
41818
+ function cacheClusterAttributes(cluster) {
41819
+ const node = cluster?.Engine?.toLowerCase() === "memcached" ? void 0 : cluster?.CacheNodes?.[0]?.Endpoint;
41820
+ const configuration = cluster?.ConfigurationEndpoint;
41821
+ return definedAttributes({
41822
+ "RedisEndpoint.Address": node?.Address,
41823
+ "RedisEndpoint.Port": stringifyIfAssigned(node?.Port),
41824
+ "ConfigurationEndpoint.Address": configuration?.Address,
41825
+ "ConfigurationEndpoint.Port": stringifyIfAssigned(configuration?.Port)
41826
+ });
41827
+ }
41828
+
41794
41829
  // src/provisioning/providers/elasticache/cache-cluster.ts
41795
41830
  async function createCacheCluster(logicalId, resourceType, properties, mask) {
41796
41831
  this.logger.debug(`Creating CacheCluster ${logicalId}`);
@@ -41829,20 +41864,9 @@ async function createCacheCluster(logicalId, resourceType, properties, mask) {
41829
41864
  this.logger.debug(`Successfully created CacheCluster ${logicalId}: ${cacheClusterId}`);
41830
41865
  if (process.env["CDKD_NO_WAIT"] !== "true") await this.waitForClusterAvailable(cacheClusterId);
41831
41866
  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
41867
  return {
41844
41868
  physicalId: cacheClusterId,
41845
- attributes
41869
+ attributes: cacheClusterAttributes(described)
41846
41870
  };
41847
41871
  } catch (error) {
41848
41872
  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 +41985,10 @@ async function updateCacheCluster(logicalId, physicalId, resourceType, propertie
41961
41985
  this.warnTransitEncryptionNotApplied(logicalId, properties, previousProperties, described?.TransitEncryptionEnabled);
41962
41986
  if (described?.ARN) await this.applyTagDiff(described.ARN, resourceType, logicalId, previousProperties["Tags"], properties["Tags"]);
41963
41987
  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
41988
  return {
41976
41989
  physicalId,
41977
41990
  wasReplaced: false,
41978
- attributes
41991
+ attributes: cacheClusterAttributes(described)
41979
41992
  };
41980
41993
  } catch (error) {
41981
41994
  if (error instanceof ProvisioningError) throw error;
@@ -42159,10 +42172,13 @@ async function importImpl$17(input) {
42159
42172
  async function importCacheCluster(input) {
42160
42173
  const explicit = resolveExplicitPhysicalId(input, "ClusterName");
42161
42174
  if (explicit) try {
42162
- const c = (await this.getClient().send(new DescribeCacheClustersCommand({ CacheClusterId: explicit }))).CacheClusters?.[0];
42175
+ const c = (await this.getClient().send(new DescribeCacheClustersCommand({
42176
+ CacheClusterId: explicit,
42177
+ ShowCacheNodeInfo: true
42178
+ }))).CacheClusters?.[0];
42163
42179
  return c?.CacheClusterId ? {
42164
42180
  physicalId: c.CacheClusterId,
42165
- attributes: {}
42181
+ attributes: cacheClusterAttributes(c)
42166
42182
  } : null;
42167
42183
  } catch (err) {
42168
42184
  if (this.isNotFoundError(err, "CacheClusterNotFoundFault")) return null;
@@ -49497,10 +49513,13 @@ async function readStreamStatusForDelete(streamName) {
49497
49513
  }
49498
49514
  async function waitForStreamActive(streamName, maxAttempts = 30) {
49499
49515
  for (let attempt = 1; attempt <= maxAttempts; attempt++) {
49500
- const response = await this.getClient().send(new DescribeStreamCommand({ StreamName: streamName }));
49501
- const status = response.StreamDescription?.StreamStatus;
49516
+ const response = await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: streamName }));
49517
+ const status = response.StreamDescriptionSummary?.StreamStatus;
49502
49518
  this.logger.debug(`Stream ${streamName} status: ${status} (attempt ${attempt}/${maxAttempts})`);
49503
- if (status === "ACTIVE") return { streamArn: response.StreamDescription?.StreamARN };
49519
+ if (status === "ACTIVE") return {
49520
+ streamArn: response.StreamDescriptionSummary?.StreamARN,
49521
+ summary: response.StreamDescriptionSummary
49522
+ };
49504
49523
  if (status !== "CREATING" && status !== "UPDATING") throw new Error(`Unexpected stream status: ${status}`);
49505
49524
  await new Promise((resolve) => setTimeout(resolve, 2e3));
49506
49525
  }
@@ -49516,6 +49535,18 @@ async function getOpenShardCount(streamName) {
49516
49535
  return Number(response.StreamDescriptionSummary?.OpenShardCount ?? 1);
49517
49536
  }
49518
49537
 
49538
+ // src/provisioning/providers/kinesis/attributes.ts
49539
+ function streamAttributes(summary) {
49540
+ const warm = summary?.WarmThroughput;
49541
+ return definedAttributes({
49542
+ Arn: summary?.StreamARN,
49543
+ WarmThroughputObject: summary === void 0 ? void 0 : {
49544
+ TargetMiBps: warm?.TargetMiBps ?? 0,
49545
+ CurrentMiBps: warm?.CurrentMiBps ?? 0
49546
+ }
49547
+ });
49548
+ }
49549
+
49519
49550
  // src/provisioning/providers/kinesis/shared.ts
49520
49551
  function isKmsEncryption(value) {
49521
49552
  if (!value) return false;
@@ -49677,7 +49708,7 @@ async function create$14(logicalId, resourceType, properties, context) {
49677
49708
  streamCreated = true;
49678
49709
  reportCreatedResource(logicalId, resourceType, streamName);
49679
49710
  this.logger.debug(`CreateStream initiated for ${streamName}, waiting for ACTIVE status`);
49680
- const streamInfo = await this.waitForStreamActive(streamName);
49711
+ let settled = await this.waitForStreamActive(streamName);
49681
49712
  const retentionPeriodHours = retentionRead.kind === "usable" ? retentionRead.hours : void 0;
49682
49713
  if (retentionPeriodHours !== void 0 && retentionPeriodHours !== 24) {
49683
49714
  this.logger.debug(`Setting retention period to ${retentionPeriodHours} hours for ${streamName}`);
@@ -49689,7 +49720,7 @@ async function create$14(logicalId, resourceType, properties, context) {
49689
49720
  StreamName: streamName,
49690
49721
  RetentionPeriodHours: retentionPeriodHours
49691
49722
  }));
49692
- await this.waitForStreamActive(streamName);
49723
+ settled = await this.waitForStreamActive(streamName);
49693
49724
  }
49694
49725
  const streamEncryption = properties["StreamEncryption"];
49695
49726
  if (isKmsEncryption(streamEncryption)) {
@@ -49700,7 +49731,7 @@ async function create$14(logicalId, resourceType, properties, context) {
49700
49731
  EncryptionType: "KMS",
49701
49732
  KeyId: keyId
49702
49733
  }));
49703
- await this.waitForStreamActive(streamName);
49734
+ settled = await this.waitForStreamActive(streamName);
49704
49735
  }
49705
49736
  const desiredMetrics = desiredRead.kind === "usable" ? desiredRead.expanded : void 0;
49706
49737
  const metricsToEnable = desiredRead.kind === "usable" ? desiredRead.metrics : [];
@@ -49710,12 +49741,12 @@ async function create$14(logicalId, resourceType, properties, context) {
49710
49741
  StreamName: streamName,
49711
49742
  ShardLevelMetrics: metricsToEnable
49712
49743
  }));
49713
- await this.waitForStreamActive(streamName);
49744
+ settled = await this.waitForStreamActive(streamName);
49714
49745
  }
49715
49746
  this.logger.debug(`Successfully created Kinesis stream ${logicalId}: ${streamName}`);
49716
49747
  return {
49717
49748
  physicalId: streamName,
49718
- attributes: { Arn: streamInfo.streamArn },
49749
+ attributes: { ...streamAttributes(settled.summary) },
49719
49750
  ...this.effectiveMetricsProperties(properties, desiredMetrics)
49720
49751
  };
49721
49752
  } catch (error) {
@@ -49859,10 +49890,11 @@ async function update$14(logicalId, physicalId, resourceType, properties, previo
49859
49890
  await this.waitForStreamActive(physicalId);
49860
49891
  }
49861
49892
  }
49893
+ const response = await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: physicalId }));
49862
49894
  return {
49863
49895
  physicalId,
49864
49896
  wasReplaced: false,
49865
- attributes: { Arn: (await this.getClient().send(new DescribeStreamCommand({ StreamName: physicalId }))).StreamDescription?.StreamARN },
49897
+ attributes: streamAttributes(response.StreamDescriptionSummary),
49866
49898
  ...this.effectiveMetricsProperties(properties, desiredMetrics)
49867
49899
  };
49868
49900
  } catch (error) {
@@ -50097,10 +50129,10 @@ async function readCurrentState$11(physicalId, _logicalId, resourceType, _proper
50097
50129
  async function importImpl$12(input) {
50098
50130
  const explicit = resolveExplicitPhysicalId(input, "Name");
50099
50131
  if (explicit) try {
50100
- await this.getClient().send(new DescribeStreamCommand({ StreamName: explicit }));
50132
+ const response = await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: explicit }));
50101
50133
  return {
50102
50134
  physicalId: explicit,
50103
- attributes: {}
50135
+ attributes: streamAttributes(response.StreamDescriptionSummary)
50104
50136
  };
50105
50137
  } catch (err) {
50106
50138
  if (err instanceof ResourceNotFoundException$12) return null;
@@ -63321,4 +63353,4 @@ var ACMCertificateProvider = class {
63321
63353
  };
63322
63354
 
63323
63355
  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-YUbciPtV.js.map
63356
+ //# sourceMappingURL=provider-classes-BUU9HgA_.js.map