@cdkd/cli 0.350.4 → 0.351.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{ambient-client-defaults-CepgBr_y.js → ambient-client-defaults-B6WnCkIH.js} +3 -3
  2. package/dist/{ambient-client-defaults-CepgBr_y.js.map → ambient-client-defaults-B6WnCkIH.js.map} +1 -1
  3. package/dist/{asg-provider-26AfIhcd.js → asg-provider-Cvt28cjZ.js} +6 -6
  4. package/dist/{asg-provider-26AfIhcd.js.map → asg-provider-Cvt28cjZ.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-2Kfh-v8P.js → custom-resource-runtime-q-XZhmNY.js} +6 -6
  7. package/dist/{custom-resource-runtime-2Kfh-v8P.js.map → custom-resource-runtime-q-XZhmNY.js.map} +1 -1
  8. package/dist/db-associated-roles-C4lSFcA4.js +74 -0
  9. package/dist/db-associated-roles-C4lSFcA4.js.map +1 -0
  10. package/dist/delete-started-B5fdSbyi.js +887 -0
  11. package/dist/delete-started-B5fdSbyi.js.map +1 -0
  12. package/dist/{deploy-engine-DLmPF7r5.js → deploy-engine-BCutoRqN.js} +650 -198
  13. package/dist/deploy-engine-BCutoRqN.js.map +1 -0
  14. package/dist/{diff-calculator-DYUmMeew.js → diff-calculator-Dpy3mtdK.js} +12 -12
  15. package/dist/{diff-calculator-DYUmMeew.js.map → diff-calculator-Dpy3mtdK.js.map} +1 -1
  16. package/dist/{ec2-termination-protection-Di3eM8PN.js → ec2-termination-protection-DEedWKNw.js} +6 -6
  17. package/dist/{ec2-termination-protection-Di3eM8PN.js.map → ec2-termination-protection-DEedWKNw.js.map} +1 -1
  18. package/dist/{ecr-uri-6HdJfJPR.js → ecr-uri-BdY53T_-.js} +2 -2
  19. package/dist/{ecr-uri-6HdJfJPR.js.map → ecr-uri-BdY53T_-.js.map} +1 -1
  20. package/dist/{expected-bucket-owner-Drp-CSQY.js → expected-bucket-owner-iywep2CV.js} +2 -2
  21. package/dist/{expected-bucket-owner-Drp-CSQY.js.map → expected-bucket-owner-iywep2CV.js.map} +1 -1
  22. package/dist/{iam-role-provider-B5c4V2kT.js → iam-role-provider-BQAmYWyO.js} +7 -7
  23. package/dist/{iam-role-provider-B5c4V2kT.js.map → iam-role-provider-BQAmYWyO.js.map} +1 -1
  24. package/dist/{image-plan-CYouJkYM.js → image-plan-Cc837NpF.js} +8 -8
  25. package/dist/{image-plan-CYouJkYM.js.map → image-plan-Cc837NpF.js.map} +1 -1
  26. package/dist/index.d.ts +7 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/{logger-6lyGJVGE.js → logger-CmaW95DR.js} +2 -2
  30. package/dist/{logger-6lyGJVGE.js.map → logger-CmaW95DR.js.map} +1 -1
  31. package/dist/{neptune-provider-Dhody0jz.js → neptune-provider-BkaMldJg.js} +7 -7
  32. package/dist/{neptune-provider-Dhody0jz.js.map → neptune-provider-BkaMldJg.js.map} +1 -1
  33. package/dist/{program-BMBei2v9.js → program-8-3OnhIJ.js} +122 -22
  34. package/dist/program-8-3OnhIJ.js.map +1 -0
  35. package/dist/{provider-classes-B3qqzXp-.js → provider-classes-DcmiLT1V.js} +276 -113
  36. package/dist/provider-classes-DcmiLT1V.js.map +1 -0
  37. package/dist/{rds-provider-CXjWWFKT.js → rds-provider-BWOEzXOQ.js} +20 -691
  38. package/dist/rds-provider-BWOEzXOQ.js.map +1 -0
  39. package/dist/{read-replica-iA8yd-HO.js → read-replica-BQhsK5Fn.js} +3 -3
  40. package/dist/{read-replica-iA8yd-HO.js.map → read-replica-BQhsK5Fn.js.map} +1 -1
  41. package/dist/{replacement-rules-B4fLD_Ru.js → replacement-rules-DywtM6vS.js} +60 -7
  42. package/dist/replacement-rules-DywtM6vS.js.map +1 -0
  43. package/dist/{resource-deadline-BcEyGRdL.js → resource-deadline-C_l7cJ75.js} +45 -5
  44. package/dist/resource-deadline-C_l7cJ75.js.map +1 -0
  45. package/dist/{run-cli-Dp938GHN.js → run-cli-lankPggb.js} +2 -2
  46. package/dist/{run-cli-Dp938GHN.js.map → run-cli-lankPggb.js.map} +1 -1
  47. package/dist/{update-removal-1ZPAMzvz.js → update-removal-MnBAwEGA.js} +4 -4
  48. package/dist/{update-removal-1ZPAMzvz.js.map → update-removal-MnBAwEGA.js.map} +1 -1
  49. package/dist/{version-D_7vFUjp.js → version-7SpD1NBk.js} +2 -2
  50. package/dist/{version-D_7vFUjp.js.map → version-7SpD1NBk.js.map} +1 -1
  51. package/package.json +3 -3
  52. package/dist/db-instance-modify-retry-BoKzNMfz.js +0 -116
  53. package/dist/db-instance-modify-retry-BoKzNMfz.js.map +0 -1
  54. package/dist/delete-started-Bq_G9e4j.js +0 -192
  55. package/dist/delete-started-Bq_G9e4j.js.map +0 -1
  56. package/dist/deploy-engine-DLmPF7r5.js.map +0 -1
  57. package/dist/program-BMBei2v9.js.map +0 -1
  58. package/dist/provider-classes-B3qqzXp-.js.map +0 -1
  59. package/dist/rds-provider-CXjWWFKT.js.map +0 -1
  60. package/dist/replacement-rules-B4fLD_Ru.js.map +0 -1
  61. package/dist/resource-deadline-BcEyGRdL.js.map +0 -1
@@ -1,21 +1,20 @@
1
- import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-B5c4V2kT.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-6lyGJVGE.js";
1
+ import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-BQAmYWyO.js";
2
+ import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-CmaW95DR.js";
3
3
  import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
4
- import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, z as isTransientServerError } from "./ambient-client-defaults-CepgBr_y.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-1ZPAMzvz.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-D_7vFUjp.js";
7
- import { a as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-Bq_G9e4j.js";
8
- import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-BMBei2v9.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-DLmPF7r5.js";
10
- import { _ as definedAttributes, 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 stringifyIfAssigned, y as isUsableAttemptedName } from "./resource-deadline-BcEyGRdL.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-Di3eM8PN.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-B6WnCkIH.js";
5
+ import { $ as userPoolProtectionSite, A as replayedSendWindow, At as packCompositeId, B as refusalTypeShown, C as AmbiguousCreateLatch, Ct as isInterruptedWaitError, D as createAttemptKey, Dt as compositeIdSeparatorRefusal, E as ambiguousAttemptLead, Et as compositeIdFormatMessage, F as isPlainImportJson, Ft as createMaskedRetryLogger, H as resolveExplicitPhysicalId, Ht as clearCreatedBeforeFailure, I as isPlainImportValue, It as isSecretDerivedValue, J as deleteWithProtectionCompensation, Jt as markAuxiliaryFailure, K as markNotGone, Kt as isAuxiliaryFailure, L as isQuotableImportValue, Lt as maskDeep, M as withoutServerErrorRetries, Mt as segmentAfterAnchor, N as VALUE_NOT_SHOWN, Nt as stateOrphanRecordRemedy, O as isInsideWindow, Ot as compositeIdSkipResult, P as importRemedyCommand, Pt as createMaskedLogSinks, R as normalizeAwsTagsToCfn, Rt as maskerOrIdentity, S as AMBIGUOUS_LATCH_TTL_MS, T as RecentIdSet, Tt as canonicalizeRoute53QueryName, U as RESOURCE_NOT_FOUND, V as remedyLogicalId, W as assertRegionMatch, X as observeThenDisableProtection, Xt as markSupersedesEarlierCreate, Y as logGroupProtectionSite, Yt as markCreatedBeforeFailure, Z as rdsFamilyProtectionSite, _ as onlySecretDerived, _t as pasteableAwsCommand, a as withRemovalDefaults, b as recordedPrincipalsRepair, ct as protectionFlipKey, dt as ElapsedBudgetRegistry, et as PROTECTION_FLIP_RETRY_WAIT_MS, f as retractCreatedResource, g as holdsSecretDerivedEntry, gt as isAwsCliLiteral, h as SECRET_DERIVED_READ_LIVE, hn as withPasteableAwsProfile, ht as WITHHELD_AWS_COMMAND, i as removedTemplateKeys, it as isTerminalDbWaitStatus, j as setBounded, k as replayFollowedAmbiguousAttempt, kt as logicalIdShown, ln as injectiveKey, mt as UNNAMEABLE_ID_CLAUSE, ot as ProtectionFlipRegistry, rt as isProceedDbStatus, st as isTerminalDeleteFailure, t as clearOnUpdateRemoval, tt as deleteAfterProtectionFlipWithFinalSnapshot, u as reportCreatedResource, un as injectiveKeyPrefix, ut as ElapsedBudget, v as readPrincipalLists, vt as protectedReplacementAdvice, w as CREATION_DATE_SKEW_MARGIN_MS, wt as startInterruptWatch, yt as renderDisableCommand, z as quotedRemedyLogicalId, zt as withDerivedNameMasks } from "./update-removal-MnBAwEGA.js";
6
+ import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-7SpD1NBk.js";
7
+ import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-B5fdSbyi.js";
8
+ import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-8-3OnhIJ.js";
9
+ import { $ as isTtlAlreadyDisabled, $l as resolveAssemblyPath, $t as lookupEachName, Ar as REDACTED_DELETE_ADDRESS_SKIP_REASON, At as maskedLogger, C as isAbsoluteAssetPath, Ct as deleteBudgetKey, Dc as withheldAccountClause, Dt as INDEX_SETTLE_POLL_INTERVAL_MS, Ec as accountArgs, Et as DELETE_INDEX_WAIT_PROCEED_NOTE, Fc as findSdkUnwiredProperties, Ft as hasCdkAutoDeleteTag, G as declaredStreamTagsMember, H as STREAM_POLICY_KEY, It as isTruthyCfnBoolean, J as streamDeclaresPolicy, Ja as maskedSecretSegment, Jt as getPriorAttempts, K as planStreamMemberOps, Ka as isSettledInstanceState, Ki as secretNamedAttributeNamesOf, Ma as resolvedResourceTimeoutMs, Mr as redactedDeleteAddressFields, Mt as waitForIndexesSettled, No as outputReferenceProvenanceOf, Nr as redactedDeleteAddressSkip, Nt as ECR_AUTO_DELETE_IMAGES_TAG, Ot as TABLE_INDEX_NOUN, Pt as S3_AUTO_DELETE_OBJECTS_TAG, Q as streamTagsMatchDeclared, Ql as renderAssemblyPathEscape, Qt as isAccessDeniedError, Ra as deleteSkipReason, Rc as withoutSdkUnwiredProperties, S as findNestedTemplateTreeDefect, St as compensateRemovedDeletionProtection, T as renderNestedTemplateTreeDefect, Tt as resolveDynamoDbDeleteBudgetMs, U as STREAM_TAGS_KEY, V as DynamoDBGlobalTableProvider, W as declaredStreamPolicyMember, Wr as getCurrentProducerRegions, X as streamMemberRefusals, Xl as displayAssemblyPath, Y as streamDeclaresTags, Yl as describeFileReadFailure, Yt as markRefusedBeforeApplying, Z as streamPolicyMatchesDeclared, Zt as chunks, _o as s3BucketDualStackDomainName, _t as stripIndexContributorInsights, al as stringifyValue, as as WARM_THROUGHPUT_MEMBERS, at as readbackVectorIndexes, bt as DYNAMODB_DELETE_POLL_COST_MS, cs as toCfnInteger, ct as vectorIndexesShapeDetail, dc as refuseMalformedNestedChildOutputs, dr as earliestDefined, dt as indexDeclaresContributorInsights, en as withApiLimit, et as isTtlRateLimited, ft as planContributorInsightsOp, gi as getStackRecords, go as s3BucketDomainName, gs as passedParameterClassesOf, gt as reverseMapTableContributorInsights, hn as withNestedStackContext, ho as s3BucketArn, hr as acquireIdempotencyToken, ht as reverseMapIndexContributorInsights, it as planVectorIndexUpdates, ja as waitForGoneAfterDelete, jr as isRedactedRecordedValue, jt as relayedIndexBusyDelete, ka as waitForLambdaFunctionActive, ko as parseWebACLArn, kt as deleteTableWithIndexBusyRetry, ls as toFiniteNumber, lt as CONTRIBUTOR_INSIGHTS_KEY, mi as awaitInFlightSibling, ml as rewriteTemplateAssetReferences, mn as getCurrentNestedStackContext, mt as readContributorInsightsSpec, nt as readTtlSpec, os as coerceWarmThroughput$1, ot as vectorIndexesForCreate, pr as reserveStackCreateToken, pt as planIndexContributorInsightsOps, q as reverseMapStreamPolicy, qa as APPSYNC_APIKEY_ARN_RESOURCE_PATH, rt as sendTtlWaitingOutRateLimit, sn as getNestedRevertRun, ss as isWarmThroughputDecrease, st as vectorIndexesSettled, t as DeployEngine, tt as planTimeToLive, un as revertNestedChildFromJournal, ut as contributorInsightsRefusals, vi as replacedDeleteFailureVerdict, vo as s3BucketRegionalDomainName, vt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, w as listNestedTemplateRows, wt as resolveDynamoDbDeleteBudgetClock, xc as refuseMalformedResourcesForDestroy, xt as beginDeleteWait, ya as getCurrentResourceSecrets, yo as s3BucketWebsiteUrl, yt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, za as withIndeterminateGuard, zl as decodeListingKey, zo as getAccountInfo } from "./deploy-engine-BCutoRqN.js";
10
+ import { _ as isModifyNotAvailableRefusal, b as stringifyIfAssigned, c as refuseRestoreFromItself, d as DBPROXY_TAG_OPTIONS, f as planTagDiff, g as tagPlanWarning, h as tagMapAsList, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, t as enclosingDeadlineExpired, u as DBPROXY_TAGS_WHAT, v as modifyDbInstanceWhenAvailable, x as isUsableAttemptedName, y as definedAttributes } from "./resource-deadline-C_l7cJ75.js";
11
+ import { O as timePhase, a as reDisableInstanceApiTermination, c as unchangedBehindSecretReference, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as onlySecretReferencesDiffer, x as withRetry } from "./ec2-termination-protection-DEedWKNw.js";
12
12
  import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
13
13
  import { f as ambientRegion } from "./aws-client-defaults-DAebi99J.js";
14
- import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, an as physicalNameCopiesOf, fn as carriesSecretMask, i as ecsServiceLaunchTypeSetOrChanged, in as recoverMaskedOutput, it as hasMaskableValues, l as sameLambdaFunctionAddress, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recordAttributeIdCopy, s as lambdaFunctionNameForMask } from "./replacement-rules-B4fLD_Ru.js";
15
- import { RDSProvider } from "./rds-provider-CXjWWFKT.js";
16
- import { n as modifyDbInstanceWhenAvailable, t as isModifyNotAvailableRefusal } from "./db-instance-modify-retry-BoKzNMfz.js";
17
- import { NeptuneProvider } from "./neptune-provider-Dhody0jz.js";
18
- import { ASGProvider } from "./asg-provider-26AfIhcd.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-DywtM6vS.js";
15
+ import { RDSProvider } from "./rds-provider-BWOEzXOQ.js";
16
+ import { NeptuneProvider } from "./neptune-provider-BkaMldJg.js";
17
+ import { ASGProvider } from "./asg-provider-Cvt28cjZ.js";
19
18
  import { createHash, randomUUID } from "node:crypto";
20
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";
21
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";
@@ -630,14 +629,35 @@ var IAMPolicyProvider = class {
630
629
  }
631
630
  };
632
631
 
632
+ // src/provisioning/attribute-timestamp.ts
633
+ function isoTimestampAttribute(value) {
634
+ if (!(value instanceof Date) || Number.isNaN(value.getTime())) return void 0;
635
+ return value.toISOString().replace(/\.000Z$/, "Z");
636
+ }
637
+
633
638
  // src/provisioning/providers/iam-managed-policy/shared.ts
634
639
  function managedPolicyAttributes(policyArn, policy) {
635
640
  return definedAttributes({
636
641
  PolicyArn: policyArn,
637
642
  PolicyId: policyIdentityToken(policy?.PolicyId),
638
- DefaultVersionId: typeof policy?.DefaultVersionId === "string" && policy.DefaultVersionId !== "" ? policy.DefaultVersionId : void 0
643
+ DefaultVersionId: typeof policy?.DefaultVersionId === "string" && policy.DefaultVersionId !== "" ? policy.DefaultVersionId : void 0,
644
+ AttachmentCount: countOrUndefined(policy?.AttachmentCount),
645
+ PermissionsBoundaryUsageCount: countOrUndefined(policy?.PermissionsBoundaryUsageCount),
646
+ IsAttachable: typeof policy?.IsAttachable === "boolean" ? policy.IsAttachable : void 0,
647
+ CreateDate: isoTimestampAttribute(policy?.CreateDate),
648
+ UpdateDate: isoTimestampAttribute(policy?.UpdateDate)
639
649
  });
640
650
  }
651
+ const MANAGED_POLICY_READ_BACK_KEYS = [
652
+ "PolicyId",
653
+ "DefaultVersionId",
654
+ "AttachmentCount",
655
+ "PermissionsBoundaryUsageCount",
656
+ "IsAttachable",
657
+ "CreateDate",
658
+ "UpdateDate"
659
+ ];
660
+ const countOrUndefined = (value) => typeof value === "number" && Number.isFinite(value) ? value : void 0;
641
661
  const principalsOf = (bag) => readPrincipalLists({
642
662
  Groups: bag["Groups"],
643
663
  Roles: bag["Roles"],
@@ -647,6 +667,19 @@ const PRINCIPAL_NAMES = "group / role / user names";
647
667
  function policyIdentityToken(id) {
648
668
  return typeof id === "string" && id !== "" ? id : void 0;
649
669
  }
670
+ async function policyAfterWiring(getPolicy, policyArn, fallback, stale, debug) {
671
+ try {
672
+ const live = await getPolicy(policyArn);
673
+ if (live?.Arn === policyArn) return live;
674
+ debug("GetPolicy answered for another managed policy than the one asked for");
675
+ } catch (error) {
676
+ debug(`Could not re-read the managed policy after its attachments: ${describeAwsFailure(error).detail}`);
677
+ }
678
+ if (fallback === void 0) return void 0;
679
+ const kept = { ...fallback };
680
+ for (const key of stale) kept[key] = void 0;
681
+ return kept;
682
+ }
650
683
 
651
684
  // src/provisioning/providers/iam-managed-policy/create.ts
652
685
  async function create$40(logicalId, resourceType, properties, context) {
@@ -718,9 +751,14 @@ async function create$40(logicalId, resourceType, properties, context) {
718
751
  }
719
752
  throw markAuxiliaryFailure(innerError, logicalId);
720
753
  }
754
+ const readBack = [
755
+ principals.lists.Groups,
756
+ principals.lists.Roles,
757
+ principals.lists.Users
758
+ ].some((names) => (names?.length ?? 0) > 0) ? await policyAfterWiring(async (arn) => (await this.iamClient.send(new GetPolicyCommand({ PolicyArn: arn }))).Policy, policyArn, policy, ["AttachmentCount"], log.debug) : policy;
721
759
  return {
722
760
  physicalId: policyArn,
723
- attributes: managedPolicyAttributes(policyArn, policy)
761
+ attributes: managedPolicyAttributes(policyArn, readBack)
724
762
  };
725
763
  } catch (error) {
726
764
  const markLeftBehind = (e) => leftBehindArn !== void 0 ? markCreatedBeforeFailure(e, logicalId, resourceType, leftBehindArn, createdPolicyIdentity) : e;
@@ -850,13 +888,31 @@ async function update$41(logicalId, physicalId, resourceType, properties, previo
850
888
  const value = recorded?.[key];
851
889
  return typeof value === "string" && value !== "" && !holdsSecretDerivedEntry(value) ? value : void 0;
852
890
  };
891
+ const recordedNumber = (key) => {
892
+ const value = recorded?.[key];
893
+ return typeof value === "number" && Number.isFinite(value) ? value : void 0;
894
+ };
895
+ const recordedDate = (key) => {
896
+ const value = recordedString(key);
897
+ if (value === void 0 || !ISO_TIMESTAMP.test(value)) return void 0;
898
+ return new Date(value);
899
+ };
900
+ const carried = {
901
+ PolicyId: recordedString("PolicyId"),
902
+ DefaultVersionId: createdVersionId ?? recordedString("DefaultVersionId"),
903
+ AttachmentCount: recordedNumber("AttachmentCount"),
904
+ PermissionsBoundaryUsageCount: recordedNumber("PermissionsBoundaryUsageCount"),
905
+ IsAttachable: typeof recorded?.["IsAttachable"] === "boolean" ? recorded["IsAttachable"] : void 0,
906
+ CreateDate: recordedDate("CreateDate"),
907
+ UpdateDate: recordedDate("UpdateDate")
908
+ };
909
+ const versionMoved = createdVersionId !== void 0;
910
+ const attachmentsMoved = principalListsDiffer(newPrincipals.lists, oldLists);
911
+ const readBack = versionMoved || attachmentsMoved || recorded !== void 0 && MANAGED_POLICY_READ_BACK_KEYS.some((key) => carried[key] === void 0) ? await policyAfterWiring(async (arn) => (await this.iamClient.send(new GetPolicyCommand({ PolicyArn: arn }))).Policy, physicalId, carried, [...attachmentsMoved ? ["AttachmentCount"] : [], ...versionMoved ? ["UpdateDate"] : []], log.debug) : carried;
853
912
  return {
854
913
  physicalId,
855
914
  wasReplaced: false,
856
- attributes: managedPolicyAttributes(physicalId, {
857
- PolicyId: recordedString("PolicyId"),
858
- DefaultVersionId: createdVersionId ?? recordedString("DefaultVersionId")
859
- })
915
+ attributes: managedPolicyAttributes(physicalId, readBack)
860
916
  };
861
917
  } catch (error) {
862
918
  const cause = error instanceof Error ? error : void 0;
@@ -877,6 +933,18 @@ function recordedNonRootPath(arn) {
877
933
  const path = derivePolicyPathFromArn(arn);
878
934
  return path === "/" ? void 0 : path;
879
935
  }
936
+ const ISO_TIMESTAMP = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$/;
937
+ function principalListsDiffer(desired, previous) {
938
+ return [
939
+ "Groups",
940
+ "Roles",
941
+ "Users"
942
+ ].some((kind) => {
943
+ const a = new Set(desired[kind] ?? []);
944
+ const b = new Set(previous[kind] ?? []);
945
+ return a.size !== b.size || [...a].some((name) => !b.has(name));
946
+ });
947
+ }
880
948
 
881
949
  // src/provisioning/providers/iam-managed-policy/delete.ts
882
950
  async function deleteImpl$39(logicalId, physicalId, resourceType, _properties, context) {
@@ -1052,7 +1120,7 @@ var IAMManagedPolicyProvider = class {
1052
1120
  }
1053
1121
  async getAttribute(physicalId, _resourceType, attributeName) {
1054
1122
  if (attributeName === "PolicyArn") return physicalId;
1055
- if (attributeName === "PolicyId" || attributeName === "DefaultVersionId") {
1123
+ if (MANAGED_POLICY_READ_BACK_KEYS.includes(attributeName)) {
1056
1124
  const resp = await this.iamClient.send(new GetPolicyCommand({ PolicyArn: physicalId }));
1057
1125
  return managedPolicyAttributes(physicalId, resp.Policy)[attributeName];
1058
1126
  }
@@ -9042,6 +9110,20 @@ var LambdaCreateClientCache = class {
9042
9110
  }
9043
9111
  };
9044
9112
 
9113
+ // src/provisioning/providers/lambda-function/attributes.ts
9114
+ function functionAttributes(configuration) {
9115
+ const snapStart = configuration?.SnapStart;
9116
+ const snapStartResponse = snapStart === void 0 ? void 0 : definedAttributes({
9117
+ ApplyOn: snapStart.ApplyOn,
9118
+ OptimizationStatus: snapStart.OptimizationStatus
9119
+ });
9120
+ return definedAttributes({
9121
+ Arn: configuration?.FunctionArn,
9122
+ FunctionName: configuration?.FunctionName,
9123
+ SnapStartResponse: snapStartResponse && Object.keys(snapStartResponse).length > 0 ? snapStartResponse : void 0
9124
+ });
9125
+ }
9126
+
9045
9127
  // src/provisioning/providers/lambda-function/shared.ts
9046
9128
  function isFunctionName(id) {
9047
9129
  return /^[A-Za-z0-9_-]{1,64}$/.test(id);
@@ -9363,10 +9445,7 @@ async function create$36(logicalId, resourceType, properties, context) {
9363
9445
  log.debug(`Successfully created Lambda function ${logicalId}: ${log.value(functionName)}`);
9364
9446
  return {
9365
9447
  physicalId: response.FunctionName || functionName,
9366
- attributes: {
9367
- Arn: response.FunctionArn,
9368
- FunctionName: response.FunctionName
9369
- }
9448
+ attributes: functionAttributes(response)
9370
9449
  };
9371
9450
  } catch (error) {
9372
9451
  if (functionCreated) markAuxiliaryFailure(error, logicalId);
@@ -9652,10 +9731,7 @@ async function update$37(logicalId, physicalId, resourceType, properties, previo
9652
9731
  return {
9653
9732
  physicalId,
9654
9733
  wasReplaced: false,
9655
- attributes: {
9656
- Arn: functionArn,
9657
- FunctionName: getResponse.Configuration?.FunctionName
9658
- }
9734
+ attributes: functionAttributes(getResponse.Configuration)
9659
9735
  };
9660
9736
  } catch (error) {
9661
9737
  if (error instanceof ProvisioningError) throw error;
@@ -10019,10 +10095,10 @@ async function getAttribute$15(physicalId, _resourceType, attributeName) {
10019
10095
  async function importImpl$35(input) {
10020
10096
  const explicit = resolveExplicitPhysicalId(input, "FunctionName");
10021
10097
  if (explicit) try {
10022
- await this.lambdaClient.send(new GetFunctionCommand({ FunctionName: explicit }));
10098
+ const resp = await this.lambdaClient.send(new GetFunctionCommand({ FunctionName: explicit }));
10023
10099
  return {
10024
10100
  physicalId: explicit,
10025
- attributes: {}
10101
+ attributes: functionAttributes(resp.Configuration)
10026
10102
  };
10027
10103
  } catch (err) {
10028
10104
  if (err instanceof ResourceNotFoundException) return null;
@@ -22095,9 +22171,18 @@ function sameStringSet(a, b) {
22095
22171
  const sb = new Set(b.map(String));
22096
22172
  return sa.size === sb.size && [...sa].every((x) => sb.has(x));
22097
22173
  }
22098
- function describedInstanceAttributes(instanceId, instance) {
22174
+ const TRANSITIONAL_INSTANCE_STATES = /* @__PURE__ */ new Set([
22175
+ "pending",
22176
+ "stopping",
22177
+ "shutting-down"
22178
+ ]);
22179
+ function describedInstanceAttributes(instanceId, instance, options = {}) {
22099
22180
  const stateName = instance?.State?.Name;
22100
22181
  const settled = isSettledInstanceState(stateName);
22182
+ const state = settled && stateName !== void 0 && options.waited !== false && !TRANSITIONAL_INSTANCE_STATES.has(stateName) && instance?.State?.Code !== void 0 ? {
22183
+ Code: String(instance.State.Code),
22184
+ Name: stateName
22185
+ } : void 0;
22101
22186
  const publicMember = (value) => settled ? value ?? "" : value || void 0;
22102
22187
  return definedAttributes({
22103
22188
  InstanceId: instanceId,
@@ -22105,7 +22190,8 @@ function describedInstanceAttributes(instanceId, instance) {
22105
22190
  PublicIp: publicMember(instance?.PublicIpAddress),
22106
22191
  PrivateDnsName: instance?.PrivateDnsName,
22107
22192
  PublicDnsName: publicMember(instance?.PublicDnsName),
22108
- AvailabilityZone: instance?.Placement?.AvailabilityZone
22193
+ AvailabilityZone: instance?.Placement?.AvailabilityZone,
22194
+ State: state
22109
22195
  });
22110
22196
  }
22111
22197
  const INSTANCE_CREATE_ONLY_SENT = [
@@ -22421,7 +22507,7 @@ async function createInstance(logicalId, resourceType, properties, context) {
22421
22507
  if (volumeIds.length === 0) this.logger.warn(safeMsg`${logicalId}: PropagateTagsToVolumeOnCreation is set, but the launch went out without tags (the tagged RunInstances was refused) and DescribeInstances reported no attached volume for ${instanceId} yet (under --no-wait the instance may still be pending), so its volumes were not tagged. Tag them with ec2:CreateTags once they are attached.`);
22422
22508
  for (const volumeId of volumeIds) await this.applyTags(volumeId, desiredTags, logicalId, maskerOrIdentity(context?.maskSecrets));
22423
22509
  }
22424
- const attributes = describedInstanceAttributes(instanceId, runningInstance);
22510
+ const attributes = describedInstanceAttributes(instanceId, runningInstance, { waited: waitsForRunning });
22425
22511
  this.logger.debug(`Successfully created EC2 Instance ${logicalId}: ${instanceId}`);
22426
22512
  runInstancesToken.release();
22427
22513
  if (skippedSsmAssociations) {
@@ -30734,6 +30820,23 @@ function evaluatorIdFromArn(arnOrId) {
30734
30820
  const idx = arnOrId.indexOf(":evaluator/");
30735
30821
  return idx >= 0 ? arnOrId.slice(idx + 11) : arnOrId;
30736
30822
  }
30823
+ function evaluatorAttributes(evaluatorArn, read) {
30824
+ return definedAttributes({
30825
+ EvaluatorArn: evaluatorArn,
30826
+ EvaluatorId: read.evaluatorId ?? evaluatorIdFromArn(evaluatorArn),
30827
+ Status: read.status,
30828
+ CreatedAt: read.createdAt?.toISOString(),
30829
+ UpdatedAt: read.updatedAt?.toISOString(),
30830
+ EvaluatorType: nonEmptyString(read.evaluatorType),
30831
+ Provider: nonEmptyString(read.provider)
30832
+ });
30833
+ }
30834
+ const nonEmptyString = (value) => typeof value === "string" && value !== "" ? value : void 0;
30835
+ function recordedDate(value) {
30836
+ if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T[\d:.]+Z$/.test(value)) return void 0;
30837
+ const date = new Date(value);
30838
+ return Number.isNaN(date.getTime()) ? void 0 : date;
30839
+ }
30737
30840
  function tagMapToCfnList(tags) {
30738
30841
  return Object.entries(tags).map(([Key, Value]) => ({
30739
30842
  Key,
@@ -30792,11 +30895,9 @@ var AgentCoreEvaluatorProvider = class {
30792
30895
  this.logger.debug(`Created BedrockAgentCore Evaluator: ${evaluatorId} (${evaluatorArn})`);
30793
30896
  return {
30794
30897
  physicalId: evaluatorArn,
30795
- attributes: definedAttributes({
30796
- EvaluatorArn: evaluatorArn,
30797
- EvaluatorId: evaluatorId,
30798
- Status: response.status,
30799
- CreatedAt: response.createdAt?.toISOString()
30898
+ attributes: evaluatorAttributes(evaluatorArn, {
30899
+ ...await this.readBackEvaluator(evaluatorId, maskerOrIdentity(context?.maskSecrets)) ?? response,
30900
+ evaluatorId
30800
30901
  })
30801
30902
  };
30802
30903
  } catch (error) {
@@ -30818,15 +30919,22 @@ var AgentCoreEvaluatorProvider = class {
30818
30919
  await this.syncTags(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"]);
30819
30920
  const evaluatorArn = response.evaluatorArn ?? physicalId;
30820
30921
  this.logger.debug(`Successfully updated BedrockAgentCore Evaluator ${logicalId}`);
30922
+ const recorded = context?.recordedAttributes;
30923
+ const carried = {
30924
+ ...response,
30925
+ createdAt: recordedDate(recorded?.["CreatedAt"]),
30926
+ evaluatorType: nonEmptyString(recorded?.["EvaluatorType"]),
30927
+ provider: nonEmptyString(recorded?.["Provider"])
30928
+ };
30929
+ const configChanged = JSON.stringify(properties["EvaluatorConfig"]) !== JSON.stringify(previousProperties["EvaluatorConfig"]);
30821
30930
  return {
30822
30931
  physicalId: evaluatorArn,
30823
30932
  wasReplaced: false,
30824
- attributes: definedAttributes({
30825
- EvaluatorArn: evaluatorArn,
30826
- EvaluatorId: response.evaluatorId ?? evaluatorIdFromArn(evaluatorArn),
30827
- Status: response.status,
30828
- UpdatedAt: response.updatedAt?.toISOString()
30829
- })
30933
+ attributes: evaluatorAttributes(evaluatorArn, configChanged || recorded !== void 0 && (carried.createdAt === void 0 || carried.evaluatorType === void 0) ? await this.readBackEvaluator(evaluatorIdFromArn(evaluatorArn), maskerOrIdentity(context?.maskSecrets)) ?? (configChanged ? {
30934
+ ...carried,
30935
+ evaluatorType: void 0,
30936
+ provider: void 0
30937
+ } : carried) : carried)
30830
30938
  };
30831
30939
  } catch (error) {
30832
30940
  const cause = error instanceof Error ? error : void 0;
@@ -30865,6 +30973,14 @@ var AgentCoreEvaluatorProvider = class {
30865
30973
  throw error instanceof Error && error.name.includes("NotFound") ? markNotGone(thrown) : thrown;
30866
30974
  }
30867
30975
  }
30976
+ async readBackEvaluator(evaluatorId, mask) {
30977
+ try {
30978
+ return await this.client.send(new GetEvaluatorCommand({ evaluatorId }));
30979
+ } catch (error) {
30980
+ this.logger.debug(mask(safeMsg`Could not read the evaluator back after the operation: ${describeAwsFailure(error).detail}`));
30981
+ return;
30982
+ }
30983
+ }
30868
30984
  async getAttribute(physicalId, _resourceType, attributeName) {
30869
30985
  if (attributeName === "EvaluatorArn") return physicalId;
30870
30986
  if (attributeName === "EvaluatorId") return evaluatorIdFromArn(physicalId);
@@ -30874,6 +30990,7 @@ var AgentCoreEvaluatorProvider = class {
30874
30990
  if (attributeName === "CreatedAt") return response.createdAt?.toISOString();
30875
30991
  return response.updatedAt?.toISOString();
30876
30992
  }
30993
+ if (attributeName === "EvaluatorType" || attributeName === "Provider") return evaluatorAttributes(physicalId, await this.client.send(new GetEvaluatorCommand({ evaluatorId: evaluatorIdFromArn(physicalId) })))[attributeName];
30877
30994
  throw new Error(`Unsupported attribute: ${attributeName} for AWS::BedrockAgentCore::Evaluator`);
30878
30995
  }
30879
30996
  async readCurrentState(physicalId, _logicalId, _resourceType) {
@@ -30911,11 +31028,9 @@ var AgentCoreEvaluatorProvider = class {
30911
31028
  if (!evaluatorArn) return null;
30912
31029
  return {
30913
31030
  physicalId: evaluatorArn,
30914
- attributes: definedAttributes({
30915
- EvaluatorArn: evaluatorArn,
30916
- EvaluatorId: response.evaluatorId ?? evaluatorIdFromArn(input.knownPhysicalId),
30917
- Status: response.status,
30918
- CreatedAt: response.createdAt?.toISOString()
31031
+ attributes: evaluatorAttributes(evaluatorArn, {
31032
+ ...response,
31033
+ evaluatorId: response.evaluatorId ?? evaluatorIdFromArn(input.knownPhysicalId)
30919
31034
  })
30920
31035
  };
30921
31036
  }
@@ -31718,9 +31833,19 @@ async function getClusterAttribute(physicalId, attributeName) {
31718
31833
  default: return;
31719
31834
  }
31720
31835
  }
31836
+ function convertTrustedExecutionConfiguration(config, resourceType, logicalId) {
31837
+ if (config === void 0 || config === null) return void 0;
31838
+ if (typeof config !== "object" || Array.isArray(config)) throw new ProvisioningError(`ECS task definition ${logicalId}: TrustedExecutionConfiguration must be an object, got ${Array.isArray(config) ? "an array" : typeof config}`, resourceType, logicalId);
31839
+ const block = config;
31840
+ return {
31841
+ isolationMode: block["IsolationMode"],
31842
+ attestationPolicy: block["AttestationPolicy"]
31843
+ };
31844
+ }
31721
31845
  async function createTaskDefinition(logicalId, resourceType, properties, log) {
31722
31846
  log.debug(`Creating ECS task definition ${logicalId}`);
31723
31847
  const desiredTags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId);
31848
+ const trustedExecutionConfiguration = convertTrustedExecutionConfiguration(properties["TrustedExecutionConfiguration"], resourceType, logicalId);
31724
31849
  const family = properties["Family"] || generatedNameFor("AWS::ECS::TaskDefinition", logicalId);
31725
31850
  try {
31726
31851
  const orphanWindow = registerTaskDefinitionLatch.take(logicalId);
@@ -31745,7 +31870,8 @@ async function createTaskDefinition(logicalId, resourceType, properties, log) {
31745
31870
  pidMode: properties["PidMode"],
31746
31871
  ipcMode: properties["IpcMode"],
31747
31872
  ephemeralStorage: this.convertEphemeralStorage(properties["EphemeralStorage"]),
31748
- enableFaultInjection: properties["EnableFaultInjection"]
31873
+ enableFaultInjection: properties["EnableFaultInjection"],
31874
+ trustedExecutionConfiguration
31749
31875
  }));
31750
31876
  } catch (error) {
31751
31877
  registerTaskDefinitionLatch.noteFailure(logicalId, error, attemptStartMs, orphanWindow);
@@ -33013,6 +33139,13 @@ async function readCurrentStateTaskDefinition(physicalId) {
33013
33139
  if (td.ipcMode !== void 0) result["IpcMode"] = td.ipcMode;
33014
33140
  if (td.ephemeralStorage?.sizeInGiB !== void 0) result["EphemeralStorage"] = { SizeInGiB: td.ephemeralStorage.sizeInGiB };
33015
33141
  if (td.enableFaultInjection !== void 0) result["EnableFaultInjection"] = td.enableFaultInjection;
33142
+ const tec = td.trustedExecutionConfiguration;
33143
+ if (tec) {
33144
+ const block = {};
33145
+ if (tec.isolationMode !== void 0) block["IsolationMode"] = tec.isolationMode;
33146
+ if (tec.attestationPolicy !== void 0) block["AttestationPolicy"] = tec.attestationPolicy;
33147
+ result["TrustedExecutionConfiguration"] = block;
33148
+ }
33016
33149
  result["ContainerDefinitions"] = this.containerDefinitionsToCfn(td.containerDefinitions);
33017
33150
  result["Tags"] = normalizeAwsTagsToCfn(resp.tags);
33018
33151
  return result;
@@ -33130,7 +33263,8 @@ var ECSProvider = class {
33130
33263
  "IpcMode",
33131
33264
  "EphemeralStorage",
33132
33265
  "EnableFaultInjection",
33133
- "Tags"
33266
+ "Tags",
33267
+ "TrustedExecutionConfiguration"
33134
33268
  ])],
33135
33269
  ["AWS::ECS::Service", /* @__PURE__ */ new Set([
33136
33270
  "Cluster",
@@ -36600,7 +36734,8 @@ function clusterAttributes(cluster) {
36600
36734
  "Endpoint.Port": stringifyIfAssigned(cluster?.Port),
36601
36735
  "ReadEndpoint.Address": cluster?.ReaderEndpoint,
36602
36736
  Arn: cluster?.DBClusterArn,
36603
- ClusterResourceId: cluster?.DbClusterResourceId
36737
+ ClusterResourceId: cluster?.DbClusterResourceId,
36738
+ ServerlessV2PlatformVersion: cluster?.ServerlessV2PlatformVersion
36604
36739
  });
36605
36740
  }
36606
36741
  function instanceAttributes(instance) {
@@ -39919,6 +40054,14 @@ function toCfnRules(rules, baselineRules) {
39919
40054
  };
39920
40055
  });
39921
40056
  }
40057
+ function webAclAttributes(arn, id, webAcl) {
40058
+ return definedAttributes({
40059
+ Arn: arn,
40060
+ Id: id,
40061
+ LabelNamespace: webAcl?.LabelNamespace,
40062
+ Capacity: typeof webAcl?.Capacity === "number" && Number.isFinite(webAcl.Capacity) ? webAcl.Capacity : void 0
40063
+ });
40064
+ }
39922
40065
 
39923
40066
  // src/provisioning/providers/wafv2/create.ts
39924
40067
  async function create$20(logicalId, resourceType, properties, context) {
@@ -39951,23 +40094,19 @@ async function create$20(logicalId, resourceType, properties, context) {
39951
40094
  }))).Summary;
39952
40095
  if (!summary?.ARN || !summary?.Id) throw new Error("CreateWebACL did not return Summary with ARN and Id");
39953
40096
  this.logger.debug(`Successfully created WAFv2 WebACL ${logicalId}: ${summary.ARN}`);
39954
- let labelNamespace;
40097
+ let webAcl;
39955
40098
  try {
39956
- labelNamespace = (await this.getClient().send(new GetWebACLCommand({
40099
+ webAcl = (await this.getClient().send(new GetWebACLCommand({
39957
40100
  Id: summary.Id,
39958
40101
  Name: name,
39959
40102
  Scope: scope
39960
- }))).WebACL?.LabelNamespace;
40103
+ }))).WebACL;
39961
40104
  } catch (readError) {
39962
- this.logger.debug(`Could not read the label namespace of ${logicalId} after create: ${describeAwsFailure(readError).detail}`);
40105
+ this.logger.debug(`Could not read back ${logicalId} after create (LabelNamespace / Capacity omitted): ${describeAwsFailure(readError).detail}`);
39963
40106
  }
39964
40107
  return {
39965
40108
  physicalId: summary.ARN,
39966
- attributes: definedAttributes({
39967
- Arn: summary.ARN,
39968
- Id: summary.Id,
39969
- LabelNamespace: labelNamespace
39970
- })
40109
+ attributes: webAclAttributes(summary.ARN, summary.Id, webAcl)
39971
40110
  };
39972
40111
  } catch (error) {
39973
40112
  if (error instanceof ProvisioningError) throw error;
@@ -40011,14 +40150,21 @@ async function update$20(logicalId, physicalId, resourceType, properties, previo
40011
40150
  }));
40012
40151
  await this.applyTagDiff(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"]);
40013
40152
  this.logger.debug(`Successfully updated WAFv2 WebACL ${logicalId}`);
40153
+ let webAcl;
40154
+ try {
40155
+ webAcl = (await this.getClient().send(new GetWebACLCommand({
40156
+ Name: name,
40157
+ Scope: scope,
40158
+ Id: id
40159
+ }))).WebACL;
40160
+ } catch (readError) {
40161
+ this.logger.debug(safeMsg`Could not read back ${logicalId} after update (Capacity omitted): ${describeAwsFailure(readError).detail}`);
40162
+ webAcl = { LabelNamespace: getResponse.WebACL?.LabelNamespace };
40163
+ }
40014
40164
  return {
40015
40165
  physicalId,
40016
40166
  wasReplaced: false,
40017
- attributes: {
40018
- Arn: physicalId,
40019
- Id: id,
40020
- LabelNamespace: getResponse.WebACL?.LabelNamespace
40021
- }
40167
+ attributes: webAclAttributes(physicalId, id, webAcl)
40022
40168
  };
40023
40169
  } catch (error) {
40024
40170
  if (error instanceof ProvisioningError) throw error;
@@ -40141,11 +40287,7 @@ async function importImpl$19(input) {
40141
40287
  if (!arn) return null;
40142
40288
  return {
40143
40289
  physicalId: arn,
40144
- attributes: definedAttributes({
40145
- Arn: arn,
40146
- Id: resp.WebACL?.Id,
40147
- LabelNamespace: resp.WebACL?.LabelNamespace
40148
- })
40290
+ attributes: webAclAttributes(arn, resp.WebACL?.Id, resp.WebACL)
40149
40291
  };
40150
40292
  } catch (err) {
40151
40293
  if (err instanceof WAFNonexistentItemException) return null;
@@ -41667,6 +41809,18 @@ const removalWarnings = (logicalId, kept, placement, caller) => {
41667
41809
  return lines;
41668
41810
  };
41669
41811
 
41812
+ // src/provisioning/providers/elasticache/cache-cluster-attributes.ts
41813
+ function cacheClusterAttributes(cluster) {
41814
+ const node = cluster?.Engine?.toLowerCase() === "memcached" ? void 0 : cluster?.CacheNodes?.[0]?.Endpoint;
41815
+ const configuration = cluster?.ConfigurationEndpoint;
41816
+ return definedAttributes({
41817
+ "RedisEndpoint.Address": node?.Address,
41818
+ "RedisEndpoint.Port": stringifyIfAssigned(node?.Port),
41819
+ "ConfigurationEndpoint.Address": configuration?.Address,
41820
+ "ConfigurationEndpoint.Port": stringifyIfAssigned(configuration?.Port)
41821
+ });
41822
+ }
41823
+
41670
41824
  // src/provisioning/providers/elasticache/cache-cluster.ts
41671
41825
  async function createCacheCluster(logicalId, resourceType, properties, mask) {
41672
41826
  this.logger.debug(`Creating CacheCluster ${logicalId}`);
@@ -41705,20 +41859,9 @@ async function createCacheCluster(logicalId, resourceType, properties, mask) {
41705
41859
  this.logger.debug(`Successfully created CacheCluster ${logicalId}: ${cacheClusterId}`);
41706
41860
  if (process.env["CDKD_NO_WAIT"] !== "true") await this.waitForClusterAvailable(cacheClusterId);
41707
41861
  const described = await this.describeCacheCluster(cacheClusterId);
41708
- const attributes = {};
41709
- if (described?.CacheNodes?.[0]?.Endpoint) {
41710
- const endpoint = described.CacheNodes[0].Endpoint;
41711
- if (endpoint.Address !== void 0) attributes["RedisEndpoint.Address"] = endpoint.Address;
41712
- if (endpoint.Port !== void 0) attributes["RedisEndpoint.Port"] = String(endpoint.Port);
41713
- }
41714
- if (described?.ConfigurationEndpoint) {
41715
- const configurationEndpoint = described.ConfigurationEndpoint;
41716
- if (configurationEndpoint.Address !== void 0) attributes["ConfigurationEndpoint.Address"] = configurationEndpoint.Address;
41717
- if (configurationEndpoint.Port !== void 0) attributes["ConfigurationEndpoint.Port"] = String(configurationEndpoint.Port);
41718
- }
41719
41862
  return {
41720
41863
  physicalId: cacheClusterId,
41721
- attributes
41864
+ attributes: cacheClusterAttributes(described)
41722
41865
  };
41723
41866
  } catch (error) {
41724
41867
  const thrown = error instanceof ProvisioningError ? error : this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to create CacheCluster ${logicalId}: ${text}`, resourceType, logicalId, cacheClusterId, error instanceof Error ? error : void 0));
@@ -41837,21 +41980,10 @@ async function updateCacheCluster(logicalId, physicalId, resourceType, propertie
41837
41980
  this.warnTransitEncryptionNotApplied(logicalId, properties, previousProperties, described?.TransitEncryptionEnabled);
41838
41981
  if (described?.ARN) await this.applyTagDiff(described.ARN, resourceType, logicalId, previousProperties["Tags"], properties["Tags"]);
41839
41982
  this.warnRemovalsLeftInPlace(logicalId, properties, previousProperties, context);
41840
- const attributes = {};
41841
- if (described?.CacheNodes?.[0]?.Endpoint) {
41842
- const endpoint = described.CacheNodes[0].Endpoint;
41843
- if (endpoint.Address !== void 0) attributes["RedisEndpoint.Address"] = endpoint.Address;
41844
- if (endpoint.Port !== void 0) attributes["RedisEndpoint.Port"] = String(endpoint.Port);
41845
- }
41846
- if (described?.ConfigurationEndpoint) {
41847
- const configurationEndpoint = described.ConfigurationEndpoint;
41848
- if (configurationEndpoint.Address !== void 0) attributes["ConfigurationEndpoint.Address"] = configurationEndpoint.Address;
41849
- if (configurationEndpoint.Port !== void 0) attributes["ConfigurationEndpoint.Port"] = String(configurationEndpoint.Port);
41850
- }
41851
41983
  return {
41852
41984
  physicalId,
41853
41985
  wasReplaced: false,
41854
- attributes
41986
+ attributes: cacheClusterAttributes(described)
41855
41987
  };
41856
41988
  } catch (error) {
41857
41989
  if (error instanceof ProvisioningError) throw error;
@@ -42035,10 +42167,13 @@ async function importImpl$17(input) {
42035
42167
  async function importCacheCluster(input) {
42036
42168
  const explicit = resolveExplicitPhysicalId(input, "ClusterName");
42037
42169
  if (explicit) try {
42038
- const c = (await this.getClient().send(new DescribeCacheClustersCommand({ CacheClusterId: explicit }))).CacheClusters?.[0];
42170
+ const c = (await this.getClient().send(new DescribeCacheClustersCommand({
42171
+ CacheClusterId: explicit,
42172
+ ShowCacheNodeInfo: true
42173
+ }))).CacheClusters?.[0];
42039
42174
  return c?.CacheClusterId ? {
42040
42175
  physicalId: c.CacheClusterId,
42041
- attributes: {}
42176
+ attributes: cacheClusterAttributes(c)
42042
42177
  } : null;
42043
42178
  } catch (err) {
42044
42179
  if (this.isNotFoundError(err, "CacheClusterNotFoundFault")) return null;
@@ -49373,10 +49508,13 @@ async function readStreamStatusForDelete(streamName) {
49373
49508
  }
49374
49509
  async function waitForStreamActive(streamName, maxAttempts = 30) {
49375
49510
  for (let attempt = 1; attempt <= maxAttempts; attempt++) {
49376
- const response = await this.getClient().send(new DescribeStreamCommand({ StreamName: streamName }));
49377
- const status = response.StreamDescription?.StreamStatus;
49511
+ const response = await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: streamName }));
49512
+ const status = response.StreamDescriptionSummary?.StreamStatus;
49378
49513
  this.logger.debug(`Stream ${streamName} status: ${status} (attempt ${attempt}/${maxAttempts})`);
49379
- if (status === "ACTIVE") return { streamArn: response.StreamDescription?.StreamARN };
49514
+ if (status === "ACTIVE") return {
49515
+ streamArn: response.StreamDescriptionSummary?.StreamARN,
49516
+ summary: response.StreamDescriptionSummary
49517
+ };
49380
49518
  if (status !== "CREATING" && status !== "UPDATING") throw new Error(`Unexpected stream status: ${status}`);
49381
49519
  await new Promise((resolve) => setTimeout(resolve, 2e3));
49382
49520
  }
@@ -49392,6 +49530,18 @@ async function getOpenShardCount(streamName) {
49392
49530
  return Number(response.StreamDescriptionSummary?.OpenShardCount ?? 1);
49393
49531
  }
49394
49532
 
49533
+ // src/provisioning/providers/kinesis/attributes.ts
49534
+ function streamAttributes(summary) {
49535
+ const warm = summary?.WarmThroughput;
49536
+ return definedAttributes({
49537
+ Arn: summary?.StreamARN,
49538
+ WarmThroughputObject: summary === void 0 ? void 0 : {
49539
+ TargetMiBps: warm?.TargetMiBps ?? 0,
49540
+ CurrentMiBps: warm?.CurrentMiBps ?? 0
49541
+ }
49542
+ });
49543
+ }
49544
+
49395
49545
  // src/provisioning/providers/kinesis/shared.ts
49396
49546
  function isKmsEncryption(value) {
49397
49547
  if (!value) return false;
@@ -49553,7 +49703,7 @@ async function create$14(logicalId, resourceType, properties, context) {
49553
49703
  streamCreated = true;
49554
49704
  reportCreatedResource(logicalId, resourceType, streamName);
49555
49705
  this.logger.debug(`CreateStream initiated for ${streamName}, waiting for ACTIVE status`);
49556
- const streamInfo = await this.waitForStreamActive(streamName);
49706
+ let settled = await this.waitForStreamActive(streamName);
49557
49707
  const retentionPeriodHours = retentionRead.kind === "usable" ? retentionRead.hours : void 0;
49558
49708
  if (retentionPeriodHours !== void 0 && retentionPeriodHours !== 24) {
49559
49709
  this.logger.debug(`Setting retention period to ${retentionPeriodHours} hours for ${streamName}`);
@@ -49565,7 +49715,7 @@ async function create$14(logicalId, resourceType, properties, context) {
49565
49715
  StreamName: streamName,
49566
49716
  RetentionPeriodHours: retentionPeriodHours
49567
49717
  }));
49568
- await this.waitForStreamActive(streamName);
49718
+ settled = await this.waitForStreamActive(streamName);
49569
49719
  }
49570
49720
  const streamEncryption = properties["StreamEncryption"];
49571
49721
  if (isKmsEncryption(streamEncryption)) {
@@ -49576,7 +49726,7 @@ async function create$14(logicalId, resourceType, properties, context) {
49576
49726
  EncryptionType: "KMS",
49577
49727
  KeyId: keyId
49578
49728
  }));
49579
- await this.waitForStreamActive(streamName);
49729
+ settled = await this.waitForStreamActive(streamName);
49580
49730
  }
49581
49731
  const desiredMetrics = desiredRead.kind === "usable" ? desiredRead.expanded : void 0;
49582
49732
  const metricsToEnable = desiredRead.kind === "usable" ? desiredRead.metrics : [];
@@ -49586,12 +49736,12 @@ async function create$14(logicalId, resourceType, properties, context) {
49586
49736
  StreamName: streamName,
49587
49737
  ShardLevelMetrics: metricsToEnable
49588
49738
  }));
49589
- await this.waitForStreamActive(streamName);
49739
+ settled = await this.waitForStreamActive(streamName);
49590
49740
  }
49591
49741
  this.logger.debug(`Successfully created Kinesis stream ${logicalId}: ${streamName}`);
49592
49742
  return {
49593
49743
  physicalId: streamName,
49594
- attributes: { Arn: streamInfo.streamArn },
49744
+ attributes: { ...streamAttributes(settled.summary) },
49595
49745
  ...this.effectiveMetricsProperties(properties, desiredMetrics)
49596
49746
  };
49597
49747
  } catch (error) {
@@ -49735,10 +49885,11 @@ async function update$14(logicalId, physicalId, resourceType, properties, previo
49735
49885
  await this.waitForStreamActive(physicalId);
49736
49886
  }
49737
49887
  }
49888
+ const response = await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: physicalId }));
49738
49889
  return {
49739
49890
  physicalId,
49740
49891
  wasReplaced: false,
49741
- attributes: { Arn: (await this.getClient().send(new DescribeStreamCommand({ StreamName: physicalId }))).StreamDescription?.StreamARN },
49892
+ attributes: streamAttributes(response.StreamDescriptionSummary),
49742
49893
  ...this.effectiveMetricsProperties(properties, desiredMetrics)
49743
49894
  };
49744
49895
  } catch (error) {
@@ -49973,10 +50124,10 @@ async function readCurrentState$11(physicalId, _logicalId, resourceType, _proper
49973
50124
  async function importImpl$12(input) {
49974
50125
  const explicit = resolveExplicitPhysicalId(input, "Name");
49975
50126
  if (explicit) try {
49976
- await this.getClient().send(new DescribeStreamCommand({ StreamName: explicit }));
50127
+ const response = await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: explicit }));
49977
50128
  return {
49978
50129
  physicalId: explicit,
49979
- attributes: {}
50130
+ attributes: streamAttributes(response.StreamDescriptionSummary)
49980
50131
  };
49981
50132
  } catch (err) {
49982
50133
  if (err instanceof ResourceNotFoundException$12) return null;
@@ -59452,6 +59603,12 @@ var DLMLifecyclePolicyProvider = class {
59452
59603
  };
59453
59604
 
59454
59605
  // src/provisioning/providers/s3-vectors-provider.ts
59606
+ function vectorBucketAttributes(vectorBucketArn, creationTime) {
59607
+ return definedAttributes({
59608
+ VectorBucketArn: vectorBucketArn,
59609
+ CreationTime: isoTimestampAttribute(creationTime)
59610
+ });
59611
+ }
59455
59612
  var S3VectorsProvider = class {
59456
59613
  client;
59457
59614
  createClient;
@@ -59568,9 +59725,15 @@ var S3VectorsProvider = class {
59568
59725
  ...tags && Object.keys(tags).length > 0 ? { tags } : {}
59569
59726
  }));
59570
59727
  this.logger.debug(`Successfully created S3 VectorBucket ${logicalId}: ${vectorBucketName}`);
59728
+ let creationTime;
59729
+ try {
59730
+ creationTime = (await this.getClient().send(new GetVectorBucketCommand({ vectorBucketName }))).vectorBucket?.creationTime;
59731
+ } catch (readError) {
59732
+ this.logger.debug(safeMsg`Could not read back S3 VectorBucket ${logicalId} after create (CreationTime omitted): ${describeAwsFailure(readError).detail}`);
59733
+ }
59571
59734
  return {
59572
59735
  physicalId: vectorBucketName,
59573
- attributes: definedAttributes({ VectorBucketArn: result.vectorBucketArn })
59736
+ attributes: vectorBucketAttributes(result.vectorBucketArn, creationTime)
59574
59737
  };
59575
59738
  } catch (error) {
59576
59739
  const cause = error instanceof Error ? error : void 0;
@@ -59653,7 +59816,7 @@ var S3VectorsProvider = class {
59653
59816
  if (!name) return null;
59654
59817
  return {
59655
59818
  physicalId: name,
59656
- attributes: definedAttributes({ VectorBucketArn: resp.vectorBucket?.vectorBucketArn })
59819
+ attributes: vectorBucketAttributes(resp.vectorBucket?.vectorBucketArn, resp.vectorBucket?.creationTime)
59657
59820
  };
59658
59821
  } catch (err) {
59659
59822
  if (this.isNotFoundError(err)) return null;
@@ -63185,4 +63348,4 @@ var ACMCertificateProvider = class {
63185
63348
  };
63186
63349
 
63187
63350
  export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider };
63188
- //# sourceMappingURL=provider-classes-B3qqzXp-.js.map
63351
+ //# sourceMappingURL=provider-classes-DcmiLT1V.js.map