@cdkd/cli 0.350.3 → 0.351.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{ambient-client-defaults-CqrM5nDS.js → ambient-client-defaults-BdOY70NL.js} +3 -3
  2. package/dist/{ambient-client-defaults-CqrM5nDS.js.map → ambient-client-defaults-BdOY70NL.js.map} +1 -1
  3. package/dist/{asg-provider-hZ4nyheM.js → asg-provider-BhktjcGM.js} +6 -6
  4. package/dist/{asg-provider-hZ4nyheM.js.map → asg-provider-BhktjcGM.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-CcClWTa-.js → custom-resource-runtime-BkEa9HAa.js} +6 -6
  7. package/dist/{custom-resource-runtime-CcClWTa-.js.map → custom-resource-runtime-BkEa9HAa.js.map} +1 -1
  8. package/dist/db-associated-roles-DZ1mRuUA.js +74 -0
  9. package/dist/db-associated-roles-DZ1mRuUA.js.map +1 -0
  10. package/dist/delete-started-ByP_GmQ7.js +887 -0
  11. package/dist/delete-started-ByP_GmQ7.js.map +1 -0
  12. package/dist/{deploy-engine-Sw2eta-t.js → deploy-engine-BZNCiQ-B.js} +748 -313
  13. package/dist/deploy-engine-BZNCiQ-B.js.map +1 -0
  14. package/dist/{diff-calculator-BvN5rnLe.js → diff-calculator-vaWjL6sQ.js} +24 -15
  15. package/dist/{diff-calculator-BvN5rnLe.js.map → diff-calculator-vaWjL6sQ.js.map} +1 -1
  16. package/dist/{ec2-termination-protection-BIIHrzUa.js → ec2-termination-protection-DpNlPDar.js} +6 -6
  17. package/dist/{ec2-termination-protection-BIIHrzUa.js.map → ec2-termination-protection-DpNlPDar.js.map} +1 -1
  18. package/dist/{ecr-uri-CQ_BCOjX.js → ecr-uri-Cd_x_ldh.js} +2 -2
  19. package/dist/{ecr-uri-CQ_BCOjX.js.map → ecr-uri-Cd_x_ldh.js.map} +1 -1
  20. package/dist/{expected-bucket-owner-DR9qK772.js → expected-bucket-owner-Ba9LshiP.js} +2 -2
  21. package/dist/{expected-bucket-owner-DR9qK772.js.map → expected-bucket-owner-Ba9LshiP.js.map} +1 -1
  22. package/dist/{iam-role-provider-i52A7e_4.js → iam-role-provider-CL-dMrn4.js} +7 -7
  23. package/dist/{iam-role-provider-i52A7e_4.js.map → iam-role-provider-CL-dMrn4.js.map} +1 -1
  24. package/dist/{image-plan-DOnhBOIa.js → image-plan-C0B05bHS.js} +8 -8
  25. package/dist/{image-plan-DOnhBOIa.js.map → image-plan-C0B05bHS.js.map} +1 -1
  26. package/dist/index.d.ts +5 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/{logger-Ce9kvuBB.js → logger-DpAGzSvV.js} +2 -2
  30. package/dist/{logger-Ce9kvuBB.js.map → logger-DpAGzSvV.js.map} +1 -1
  31. package/dist/{neptune-provider-Bir1AdqM.js → neptune-provider-CJuYc8IB.js} +7 -7
  32. package/dist/{neptune-provider-Bir1AdqM.js.map → neptune-provider-CJuYc8IB.js.map} +1 -1
  33. package/dist/{program-DAAu8qUr.js → program-CUCE3lAz.js} +180 -51
  34. package/dist/program-CUCE3lAz.js.map +1 -0
  35. package/dist/{provider-classes-CM8Txuvb.js → provider-classes-YUbciPtV.js} +317 -65
  36. package/dist/provider-classes-YUbciPtV.js.map +1 -0
  37. package/dist/{rds-provider-DmVAU_Mv.js → rds-provider-CbmVLapS.js} +20 -691
  38. package/dist/rds-provider-CbmVLapS.js.map +1 -0
  39. package/dist/{read-replica-Bmq3NTlC.js → read-replica-BQ5dRRmm.js} +3 -3
  40. package/dist/{read-replica-Bmq3NTlC.js.map → read-replica-BQ5dRRmm.js.map} +1 -1
  41. package/dist/{replacement-rules-lOM1aGPr.js → replacement-rules-DZphESoc.js} +60 -7
  42. package/dist/replacement-rules-DZphESoc.js.map +1 -0
  43. package/dist/{resource-deadline-1VcUPyH4.js → resource-deadline-_gEj2hxY.js} +45 -5
  44. package/dist/resource-deadline-_gEj2hxY.js.map +1 -0
  45. package/dist/{run-cli-BlVizMfM.js → run-cli-bzXhjxpe.js} +2 -2
  46. package/dist/{run-cli-BlVizMfM.js.map → run-cli-bzXhjxpe.js.map} +1 -1
  47. package/dist/{update-removal-BOue-bJm.js → update-removal-DOUUID3B.js} +5 -5
  48. package/dist/{update-removal-BOue-bJm.js.map → update-removal-DOUUID3B.js.map} +1 -1
  49. package/dist/{version-DINEmsQH.js → version-DTKcNNDa.js} +2 -2
  50. package/dist/{version-DINEmsQH.js.map → version-DTKcNNDa.js.map} +1 -1
  51. package/package.json +3 -3
  52. package/dist/db-instance-modify-retry-CsIlFgIJ.js +0 -116
  53. package/dist/db-instance-modify-retry-CsIlFgIJ.js.map +0 -1
  54. package/dist/delete-started-C0g7PYI-.js +0 -191
  55. package/dist/delete-started-C0g7PYI-.js.map +0 -1
  56. package/dist/deploy-engine-Sw2eta-t.js.map +0 -1
  57. package/dist/program-DAAu8qUr.js.map +0 -1
  58. package/dist/provider-classes-CM8Txuvb.js.map +0 -1
  59. package/dist/rds-provider-DmVAU_Mv.js.map +0 -1
  60. package/dist/replacement-rules-lOM1aGPr.js.map +0 -1
  61. package/dist/resource-deadline-1VcUPyH4.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-i52A7e_4.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-Ce9kvuBB.js";
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";
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-CqrM5nDS.js";
5
- import { $ as PROTECTION_FLIP_RETRY_WAIT_MS, A as setBounded, B as remedyLogicalId, C as AmbiguousCreateLatch, Ct as startInterruptWatch, D as isInsideWindow, Dt as compositeIdSkipResult, E as createAttemptKey, Et as compositeIdSeparatorRefusal, F as isPlainImportValue, Ft as isSecretDerivedValue, G as markNotGone, Gt as isAuxiliaryFailure, H as RESOURCE_NOT_FOUND, I as isQuotableImportValue, It as maskDeep, J as logGroupProtectionSite, Jt as markCreatedBeforeFailure, L as normalizeAwsTagsToCfn, Lt as maskerOrIdentity, M as VALUE_NOT_SHOWN, Mt as stateOrphanRecordRemedy, N as importRemedyCommand, Nt as createMaskedLogSinks, O as replayFollowedAmbiguousAttempt, Ot as logicalIdShown, P as isPlainImportJson, Pt as createMaskedRetryLogger, Q as userPoolProtectionSite, R as quotedRemedyLogicalId, Rt as withDerivedNameMasks, S as AMBIGUOUS_LATCH_TTL_MS, St as isInterruptedWaitError, T as ambiguousAttemptLead, Tt as compositeIdFormatMessage, U as assertRegionMatch, V as resolveExplicitPhysicalId, Vt as clearCreatedBeforeFailure, X as rdsFamilyProtectionSite, Y as observeThenDisableProtection, Yt as markSupersedesEarlierCreate, _ as onlySecretDerived, _t as protectedReplacementAdvice, a as withRemovalDefaults, at as ProtectionFlipRegistry, b as recordedPrincipalsRepair, cn as injectiveKey, et as deleteAfterProtectionFlipWithFinalSnapshot, f as retractCreatedResource, g as holdsSecretDerivedEntry, gt as pasteableAwsCommand, h as SECRET_DERIVED_READ_LIVE, ht as isAwsCliLiteral, i as removedTemplateKeys, j as withoutServerErrorRetries, jt as segmentAfterAnchor, k as replayedSendWindow, kt as packCompositeId, ln as injectiveKeyPrefix, lt as ElapsedBudget, mn as withPasteableAwsProfile, mt as WITHHELD_AWS_COMMAND, nt as isProceedDbStatus, ot as isTerminalDeleteFailure, pt as UNNAMEABLE_ID_CLAUSE, q as deleteWithProtectionCompensation, qt as markAuxiliaryFailure, rt as isTerminalDbWaitStatus, st as protectionFlipKey, t as clearOnUpdateRemoval, u as reportCreatedResource, ut as ElapsedBudgetRegistry, v as readPrincipalLists, vt as renderDisableCommand, w as RecentIdSet, wt as canonicalizeRoute53QueryName, z as refusalTypeShown } from "./update-removal-BOue-bJm.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-DINEmsQH.js";
7
- import { a as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-C0g7PYI-.js";
8
- import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-DAAu8qUr.js";
9
- import { $ as readTtlSpec, Ao as outputReferenceProvenanceOf, Ar as redactedDeleteAddressSkip, At as ECR_AUTO_DELETE_IMAGES_TAG, B as STREAM_TAGS_KEY, Cc as accountArgs, Ct as DELETE_INDEX_WAIT_PROCEED_NOTE, Dr as REDACTED_DELETE_ADDRESS_SKIP_REASON, Dt as maskedLogger, Ea as waitForLambdaFunctionActive, Eo as parseWebACLArn, Et as deleteTableWithIndexBusyRetry, Fa as deleteSkipReason, Fc as withoutSdkUnwiredProperties, G as streamDeclaresPolicy, Ga as maskedSecretSegment, Gt as getPriorAttempts, H as declaredStreamTagsMember, Ia as withIndeterminateGuard, Il as decodeListingKey, Io as getAccountInfo, J as streamPolicyMatchesDeclared, Jt as chunks, K as streamDeclaresTags, Kl as describeFileReadFailure, Kt as markRefusedBeforeApplying, Mc as findSdkUnwiredProperties, Mt as hasCdkAutoDeleteTag, Nt as isTruthyCfnBoolean, Oa as waitForGoneAfterDelete, Or as isRedactedRecordedValue, Ot as relayedIndexBusyDelete, Q as planTimeToLive, R as DynamoDBGlobalTableProvider, S as renderNestedTemplateTreeDefect, St as resolveDynamoDbDeleteBudgetMs, Tt as TABLE_INDEX_NOUN, U as planStreamMemberOps, Ua as isSettledInstanceState, Ui as secretNamedAttributeNamesOf, V as declaredStreamPolicyMember, Vr as getCurrentProducerRegions, W as reverseMapStreamPolicy, Wa as APPSYNC_APIKEY_ARN_RESOURCE_PATH, X as isTtlAlreadyDisabled, Xl as resolveAssemblyPath, Xt as lookupEachName, Y as streamTagsMatchDeclared, Yl as renderAssemblyPathEscape, Yt as isAccessDeniedError, Z as isTtlRateLimited, Zt as withApiLimit, _t as DYNAMODB_DELETE_POLL_COST_MS, as as toCfnInteger, at as vectorIndexesShapeDetail, b as isAbsoluteAssetPath, bt as deleteBudgetKey, cc as refuseMalformedNestedChildOutputs, cr as earliestDefined, ct as indexDeclaresContributorInsights, di as awaitInFlightSibling, dl as rewriteTemplateAssetReferences, dn as getCurrentNestedStackContext, dt as readContributorInsightsSpec, et as sendTtlWaitingOutRateLimit, fn as withNestedStackContext, fo as s3BucketArn, fr as acquireIdempotencyToken, ft as reverseMapIndexContributorInsights, ga as getCurrentResourceSecrets, go as s3BucketWebsiteUrl, gt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, hi as replacedDeleteFailureVerdict, ho as s3BucketRegionalDomainName, ht as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, in as getNestedRevertRun, is as isWarmThroughputDecrease, it as vectorIndexesSettled, jt as S3_AUTO_DELETE_OBJECTS_TAG, ka as resolvedResourceTimeoutMs, kr as redactedDeleteAddressFields, kt as waitForIndexesSettled, lt as planContributorInsightsOp, mo as s3BucketDualStackDomainName, mt as stripIndexContributorInsights, nl as stringifyValue, ns as WARM_THROUGHPUT_MEMBERS, nt as readbackVectorIndexes, os as toFiniteNumber, ot as CONTRIBUTOR_INSIGHTS_KEY, pi as getStackRecords, po as s3BucketDomainName, ps as passedParameterClassesOf, pt as reverseMapTableContributorInsights, q as streamMemberRefusals, ql as displayAssemblyPath, rs as coerceWarmThroughput$1, rt as vectorIndexesForCreate, sn as revertNestedChildFromJournal, st as contributorInsightsRefusals, t as DeployEngine, tt as planVectorIndexUpdates, ur as reserveStackCreateToken, ut as planIndexContributorInsightsOps, vc as refuseMalformedResourcesForDestroy, vt as beginDeleteWait, wc as withheldAccountClause, wt as INDEX_SETTLE_POLL_INTERVAL_MS, x as listNestedTemplateRows, xt as resolveDynamoDbDeleteBudgetClock, y as findNestedTemplateTreeDefect, yt as compensateRemovedDeletionProtection, z as STREAM_POLICY_KEY } from "./deploy-engine-Sw2eta-t.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-1VcUPyH4.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-BIIHrzUa.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";
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-lOM1aGPr.js";
15
- import { RDSProvider } from "./rds-provider-DmVAU_Mv.js";
16
- import { n as modifyDbInstanceWhenAvailable, t as isModifyNotAvailableRefusal } from "./db-instance-modify-retry-CsIlFgIJ.js";
17
- import { NeptuneProvider } from "./neptune-provider-Bir1AdqM.js";
18
- import { ASGProvider } from "./asg-provider-hZ4nyheM.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";
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
  }
@@ -30734,6 +30802,23 @@ function evaluatorIdFromArn(arnOrId) {
30734
30802
  const idx = arnOrId.indexOf(":evaluator/");
30735
30803
  return idx >= 0 ? arnOrId.slice(idx + 11) : arnOrId;
30736
30804
  }
30805
+ function evaluatorAttributes(evaluatorArn, read) {
30806
+ return definedAttributes({
30807
+ EvaluatorArn: evaluatorArn,
30808
+ EvaluatorId: read.evaluatorId ?? evaluatorIdFromArn(evaluatorArn),
30809
+ Status: read.status,
30810
+ CreatedAt: read.createdAt?.toISOString(),
30811
+ UpdatedAt: read.updatedAt?.toISOString(),
30812
+ EvaluatorType: nonEmptyString(read.evaluatorType),
30813
+ Provider: nonEmptyString(read.provider)
30814
+ });
30815
+ }
30816
+ const nonEmptyString = (value) => typeof value === "string" && value !== "" ? value : void 0;
30817
+ function recordedDate(value) {
30818
+ if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T[\d:.]+Z$/.test(value)) return void 0;
30819
+ const date = new Date(value);
30820
+ return Number.isNaN(date.getTime()) ? void 0 : date;
30821
+ }
30737
30822
  function tagMapToCfnList(tags) {
30738
30823
  return Object.entries(tags).map(([Key, Value]) => ({
30739
30824
  Key,
@@ -30792,11 +30877,9 @@ var AgentCoreEvaluatorProvider = class {
30792
30877
  this.logger.debug(`Created BedrockAgentCore Evaluator: ${evaluatorId} (${evaluatorArn})`);
30793
30878
  return {
30794
30879
  physicalId: evaluatorArn,
30795
- attributes: definedAttributes({
30796
- EvaluatorArn: evaluatorArn,
30797
- EvaluatorId: evaluatorId,
30798
- Status: response.status,
30799
- CreatedAt: response.createdAt?.toISOString()
30880
+ attributes: evaluatorAttributes(evaluatorArn, {
30881
+ ...await this.readBackEvaluator(evaluatorId, maskerOrIdentity(context?.maskSecrets)) ?? response,
30882
+ evaluatorId
30800
30883
  })
30801
30884
  };
30802
30885
  } catch (error) {
@@ -30818,15 +30901,22 @@ var AgentCoreEvaluatorProvider = class {
30818
30901
  await this.syncTags(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"]);
30819
30902
  const evaluatorArn = response.evaluatorArn ?? physicalId;
30820
30903
  this.logger.debug(`Successfully updated BedrockAgentCore Evaluator ${logicalId}`);
30904
+ const recorded = context?.recordedAttributes;
30905
+ const carried = {
30906
+ ...response,
30907
+ createdAt: recordedDate(recorded?.["CreatedAt"]),
30908
+ evaluatorType: nonEmptyString(recorded?.["EvaluatorType"]),
30909
+ provider: nonEmptyString(recorded?.["Provider"])
30910
+ };
30911
+ const configChanged = JSON.stringify(properties["EvaluatorConfig"]) !== JSON.stringify(previousProperties["EvaluatorConfig"]);
30821
30912
  return {
30822
30913
  physicalId: evaluatorArn,
30823
30914
  wasReplaced: false,
30824
- attributes: definedAttributes({
30825
- EvaluatorArn: evaluatorArn,
30826
- EvaluatorId: response.evaluatorId ?? evaluatorIdFromArn(evaluatorArn),
30827
- Status: response.status,
30828
- UpdatedAt: response.updatedAt?.toISOString()
30829
- })
30915
+ attributes: evaluatorAttributes(evaluatorArn, configChanged || recorded !== void 0 && (carried.createdAt === void 0 || carried.evaluatorType === void 0) ? await this.readBackEvaluator(evaluatorIdFromArn(evaluatorArn), maskerOrIdentity(context?.maskSecrets)) ?? (configChanged ? {
30916
+ ...carried,
30917
+ evaluatorType: void 0,
30918
+ provider: void 0
30919
+ } : carried) : carried)
30830
30920
  };
30831
30921
  } catch (error) {
30832
30922
  const cause = error instanceof Error ? error : void 0;
@@ -30865,6 +30955,14 @@ var AgentCoreEvaluatorProvider = class {
30865
30955
  throw error instanceof Error && error.name.includes("NotFound") ? markNotGone(thrown) : thrown;
30866
30956
  }
30867
30957
  }
30958
+ async readBackEvaluator(evaluatorId, mask) {
30959
+ try {
30960
+ return await this.client.send(new GetEvaluatorCommand({ evaluatorId }));
30961
+ } catch (error) {
30962
+ this.logger.debug(mask(safeMsg`Could not read the evaluator back after the operation: ${describeAwsFailure(error).detail}`));
30963
+ return;
30964
+ }
30965
+ }
30868
30966
  async getAttribute(physicalId, _resourceType, attributeName) {
30869
30967
  if (attributeName === "EvaluatorArn") return physicalId;
30870
30968
  if (attributeName === "EvaluatorId") return evaluatorIdFromArn(physicalId);
@@ -30874,6 +30972,7 @@ var AgentCoreEvaluatorProvider = class {
30874
30972
  if (attributeName === "CreatedAt") return response.createdAt?.toISOString();
30875
30973
  return response.updatedAt?.toISOString();
30876
30974
  }
30975
+ if (attributeName === "EvaluatorType" || attributeName === "Provider") return evaluatorAttributes(physicalId, await this.client.send(new GetEvaluatorCommand({ evaluatorId: evaluatorIdFromArn(physicalId) })))[attributeName];
30877
30976
  throw new Error(`Unsupported attribute: ${attributeName} for AWS::BedrockAgentCore::Evaluator`);
30878
30977
  }
30879
30978
  async readCurrentState(physicalId, _logicalId, _resourceType) {
@@ -30911,11 +31010,9 @@ var AgentCoreEvaluatorProvider = class {
30911
31010
  if (!evaluatorArn) return null;
30912
31011
  return {
30913
31012
  physicalId: evaluatorArn,
30914
- attributes: definedAttributes({
30915
- EvaluatorArn: evaluatorArn,
30916
- EvaluatorId: response.evaluatorId ?? evaluatorIdFromArn(input.knownPhysicalId),
30917
- Status: response.status,
30918
- CreatedAt: response.createdAt?.toISOString()
31013
+ attributes: evaluatorAttributes(evaluatorArn, {
31014
+ ...response,
31015
+ evaluatorId: response.evaluatorId ?? evaluatorIdFromArn(input.knownPhysicalId)
30919
31016
  })
30920
31017
  };
30921
31018
  }
@@ -31718,9 +31815,19 @@ async function getClusterAttribute(physicalId, attributeName) {
31718
31815
  default: return;
31719
31816
  }
31720
31817
  }
31818
+ function convertTrustedExecutionConfiguration(config, resourceType, logicalId) {
31819
+ if (config === void 0 || config === null) return void 0;
31820
+ 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);
31821
+ const block = config;
31822
+ return {
31823
+ isolationMode: block["IsolationMode"],
31824
+ attestationPolicy: block["AttestationPolicy"]
31825
+ };
31826
+ }
31721
31827
  async function createTaskDefinition(logicalId, resourceType, properties, log) {
31722
31828
  log.debug(`Creating ECS task definition ${logicalId}`);
31723
31829
  const desiredTags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId);
31830
+ const trustedExecutionConfiguration = convertTrustedExecutionConfiguration(properties["TrustedExecutionConfiguration"], resourceType, logicalId);
31724
31831
  const family = properties["Family"] || generatedNameFor("AWS::ECS::TaskDefinition", logicalId);
31725
31832
  try {
31726
31833
  const orphanWindow = registerTaskDefinitionLatch.take(logicalId);
@@ -31745,7 +31852,8 @@ async function createTaskDefinition(logicalId, resourceType, properties, log) {
31745
31852
  pidMode: properties["PidMode"],
31746
31853
  ipcMode: properties["IpcMode"],
31747
31854
  ephemeralStorage: this.convertEphemeralStorage(properties["EphemeralStorage"]),
31748
- enableFaultInjection: properties["EnableFaultInjection"]
31855
+ enableFaultInjection: properties["EnableFaultInjection"],
31856
+ trustedExecutionConfiguration
31749
31857
  }));
31750
31858
  } catch (error) {
31751
31859
  registerTaskDefinitionLatch.noteFailure(logicalId, error, attemptStartMs, orphanWindow);
@@ -31821,6 +31929,103 @@ async function getTaskDefinitionAttribute(physicalId, attributeName) {
31821
31929
  }
31822
31930
  }
31823
31931
 
31932
+ // src/provisioning/providers/ecs/service-create-ambiguous.ts
31933
+ function answeredSuccess(error) {
31934
+ const status = error?.$metadata?.httpStatusCode;
31935
+ return typeof status === "number" && status >= 200 && status < 300;
31936
+ }
31937
+ function createServiceOutcomeUnknown(error) {
31938
+ return answeredSuccess(error) || isAmbiguousOutcomeError(error);
31939
+ }
31940
+ async function settleAmbiguousCreateService(attempt, log) {
31941
+ try {
31942
+ return await settle.call(this, attempt, log);
31943
+ } catch (error) {
31944
+ log.debug(`Looking for ECS service ${attempt.logicalId} after its ambiguous CreateService failure failed: ${describeAwsFailure(error).detail}`);
31945
+ return;
31946
+ }
31947
+ }
31948
+ async function settle(attempt, log) {
31949
+ const { logicalId, cluster, serviceName, createError } = attempt;
31950
+ if (!createServiceOutcomeUnknown(createError)) return void 0;
31951
+ if (attempt.heldBefore === "held") {
31952
+ log.debug(`CreateService for ECS service ${logicalId} failed without a definite answer, but a service already held the name before it: not this create's`);
31953
+ return;
31954
+ }
31955
+ const window = {
31956
+ floorMs: attempt.attemptStartMs - CREATION_DATE_SKEW_MARGIN_MS,
31957
+ ceilingMs: Date.now() + CREATION_DATE_SKEW_MARGIN_MS
31958
+ };
31959
+ const measuredFree = attempt.heldBeforeMeasured && attempt.heldBefore === "free";
31960
+ const aws = pasteableAwsCommand(log.mask);
31961
+ const clusterArg = cluster ? aws` --cluster ${cluster}` : aws``;
31962
+ const regionArg = await orphanCommandRegionArg$2(this.getClient(), aws);
31963
+ const describeCommand = aws`aws ecs describe-services${regionArg}${clusterArg} --services ${serviceName}`;
31964
+ const deleteCommand = aws`aws ecs delete-service${regionArg}${clusterArg} --service ${serviceName} --force`;
31965
+ const shown = (value) => isPlainImportValue(value) ? `(${value})` : VALUE_NOT_SHOWN;
31966
+ const subject = `ECS service ${logicalIdShown(logicalId)} ${shown(serviceName)}`;
31967
+ let found;
31968
+ let lookupFailure;
31969
+ try {
31970
+ const response = await this.getClient().send(new DescribeServicesCommand({
31971
+ cluster,
31972
+ services: [serviceName]
31973
+ }));
31974
+ const services = response?.services ?? [];
31975
+ const failures = response?.failures ?? [];
31976
+ if (services.length === 0 && failures.length === 1 && failures[0]?.reason === "MISSING") {
31977
+ if (answeredSuccess(createError)) log.debug(`No ECS service ${logicalId} exists after its ambiguous CreateService failure`);
31978
+ else log.warn(`CreateService for ${subject} failed without a definite answer, and no service holds the name yet; ECS may still create it. Check later: ${describeCommand.render()}. Only after confirming it is this deploy's and not another's, delete it: ${deleteCommand.render()}.`);
31979
+ return;
31980
+ }
31981
+ if (failures.length > 0 || services.length !== 1 || !services[0].serviceArn) lookupFailure = "DescribeServices gave no readable answer for the service name";
31982
+ else found = services[0];
31983
+ } catch (lookupError) {
31984
+ const failure = describeAwsFailure(lookupError);
31985
+ log.debug(`DescribeServices for ECS service ${logicalId} failed with: ${failure.detail}`);
31986
+ lookupFailure = `DescribeServices: ${failure.summary.replace(/\.$/, "")}`;
31987
+ }
31988
+ if (found !== void 0) {
31989
+ if (found.status === "INACTIVE") {
31990
+ log.debug(`ECS service ${logicalId} is INACTIVE after its ambiguous CreateService failure`);
31991
+ return;
31992
+ }
31993
+ const arn = found.serviceArn;
31994
+ if (!measuredFree) {
31995
+ if (isInsideWindow(found.createdAt, window)) log.warn(`CreateService for ${subject} failed without a definite answer, and the service ${shown(arn)} under that name was created during the attempt, which may make it this deploy's; cdkd did not check the name before creating, so it neither records nor deletes it. Inspect it: ${describeCommand.render()}. Only after confirming it is this deploy's and not another's, delete it: ${deleteCommand.render()}.`);
31996
+ else log.debug(`ECS service ${logicalId} exists after its ambiguous CreateService failure, but was not created during the attempt (${found.createdAt?.toISOString() ?? "no creation time"}): left alone`);
31997
+ return;
31998
+ }
31999
+ log.warn(`CreateService for ${subject} failed without a definite answer, but ECS created the service ${shown(arn)}. It is recorded on the failed create, so the automatic rollback, or a later rollback or destroy of the stack, deletes it.`);
32000
+ return arn;
32001
+ }
32002
+ if (!(answeredSuccess(createError) && measuredFree)) {
32003
+ log.warn(`CreateService for ${subject} failed without a definite answer, so ECS may have created the service, which no cdkd state records, and cdkd could not look for it (${lookupFailure}). Inspect it: ${describeCommand.render()}. Only after confirming it is this deploy's and not another's, delete it: ${deleteCommand.render()}.`);
32004
+ return;
32005
+ }
32006
+ log.warn(`CreateService for ${subject} created the service, but its answer could not be read (${lookupFailure}). Deleting it by name so no unrecorded service is left; if this run is interrupted, delete it with: ${deleteCommand.render()}`);
32007
+ try {
32008
+ await this.getClient().send(new DeleteServiceCommand({
32009
+ cluster,
32010
+ service: serviceName,
32011
+ force: true
32012
+ }));
32013
+ } catch (deleteError) {
32014
+ if (this.isServiceNotFoundException(deleteError)) {
32015
+ log.debug(`ECS service ${logicalId} was already gone when its cleanup ran`);
32016
+ return;
32017
+ }
32018
+ if (!answeredSuccess(deleteError)) {
32019
+ const failure = describeAwsFailure(deleteError);
32020
+ const head = `Failed to clean up ${subject}, which CreateService created before its answer could not be read: `;
32021
+ if (failure.redacted) log.debug(`${head}${failure.detail}`);
32022
+ log.warn(`${head}${failure.redacted ? `${failure.summary} ` : `${failure.detail}. `}Manual deletion may be required before the next deploy: ${deleteCommand.render()}`);
32023
+ return;
32024
+ }
32025
+ }
32026
+ log.warn(`Deleted ${subject}; it stays DRAINING for a while before the name is free again.`);
32027
+ }
32028
+
31824
32029
  // src/provisioning/providers/ecs/service-create.ts
31825
32030
  async function createService$1(logicalId, resourceType, properties, log, replayingState) {
31826
32031
  log.debug(`Creating ECS service ${logicalId}`);
@@ -31830,8 +32035,27 @@ async function createService$1(logicalId, resourceType, properties, log, replayi
31830
32035
  let survivorArn;
31831
32036
  try {
31832
32037
  const skipReason = controllerSkipsWait(properties);
31833
- const heldBefore = process.env["CDKD_NO_WAIT"] !== "true" && skipReason === void 0 && !replayingState ? await nameHeldBefore(() => this.serviceNameHeld(properties["Cluster"], serviceName), (error) => hasErrorName(error, ["ClusterNotFoundException"])) : "free";
31834
- const service = (await client.send(new CreateServiceCommand({
32038
+ const heldBeforeMeasured = process.env["CDKD_NO_WAIT"] !== "true" && skipReason === void 0 && !replayingState;
32039
+ const heldBefore = heldBeforeMeasured ? await nameHeldBefore(() => this.serviceNameHeld(properties["Cluster"], serviceName), (error) => hasErrorName(error, ["ClusterNotFoundException"])) : "free";
32040
+ const sendCreate = async (command) => {
32041
+ const attemptStartMs = Date.now();
32042
+ try {
32043
+ return await client.send(command);
32044
+ } catch (createError) {
32045
+ survivorArn = await settleAmbiguousCreateService.call(this, {
32046
+ logicalId,
32047
+ cluster: properties["Cluster"],
32048
+ serviceName,
32049
+ createError,
32050
+ attemptStartMs,
32051
+ heldBefore,
32052
+ heldBeforeMeasured
32053
+ }, log);
32054
+ if (survivorArn !== void 0) reportCreatedResource(logicalId, resourceType, survivorArn);
32055
+ throw createError;
32056
+ }
32057
+ };
32058
+ const service = (await sendCreate(new CreateServiceCommand({
31835
32059
  cluster: properties["Cluster"],
31836
32060
  serviceName,
31837
32061
  taskDefinition: properties["TaskDefinition"],
@@ -32897,6 +33121,13 @@ async function readCurrentStateTaskDefinition(physicalId) {
32897
33121
  if (td.ipcMode !== void 0) result["IpcMode"] = td.ipcMode;
32898
33122
  if (td.ephemeralStorage?.sizeInGiB !== void 0) result["EphemeralStorage"] = { SizeInGiB: td.ephemeralStorage.sizeInGiB };
32899
33123
  if (td.enableFaultInjection !== void 0) result["EnableFaultInjection"] = td.enableFaultInjection;
33124
+ const tec = td.trustedExecutionConfiguration;
33125
+ if (tec) {
33126
+ const block = {};
33127
+ if (tec.isolationMode !== void 0) block["IsolationMode"] = tec.isolationMode;
33128
+ if (tec.attestationPolicy !== void 0) block["AttestationPolicy"] = tec.attestationPolicy;
33129
+ result["TrustedExecutionConfiguration"] = block;
33130
+ }
32900
33131
  result["ContainerDefinitions"] = this.containerDefinitionsToCfn(td.containerDefinitions);
32901
33132
  result["Tags"] = normalizeAwsTagsToCfn(resp.tags);
32902
33133
  return result;
@@ -33014,7 +33245,8 @@ var ECSProvider = class {
33014
33245
  "IpcMode",
33015
33246
  "EphemeralStorage",
33016
33247
  "EnableFaultInjection",
33017
- "Tags"
33248
+ "Tags",
33249
+ "TrustedExecutionConfiguration"
33018
33250
  ])],
33019
33251
  ["AWS::ECS::Service", /* @__PURE__ */ new Set([
33020
33252
  "Cluster",
@@ -36484,7 +36716,8 @@ function clusterAttributes(cluster) {
36484
36716
  "Endpoint.Port": stringifyIfAssigned(cluster?.Port),
36485
36717
  "ReadEndpoint.Address": cluster?.ReaderEndpoint,
36486
36718
  Arn: cluster?.DBClusterArn,
36487
- ClusterResourceId: cluster?.DbClusterResourceId
36719
+ ClusterResourceId: cluster?.DbClusterResourceId,
36720
+ ServerlessV2PlatformVersion: cluster?.ServerlessV2PlatformVersion
36488
36721
  });
36489
36722
  }
36490
36723
  function instanceAttributes(instance) {
@@ -39803,6 +40036,14 @@ function toCfnRules(rules, baselineRules) {
39803
40036
  };
39804
40037
  });
39805
40038
  }
40039
+ function webAclAttributes(arn, id, webAcl) {
40040
+ return definedAttributes({
40041
+ Arn: arn,
40042
+ Id: id,
40043
+ LabelNamespace: webAcl?.LabelNamespace,
40044
+ Capacity: typeof webAcl?.Capacity === "number" && Number.isFinite(webAcl.Capacity) ? webAcl.Capacity : void 0
40045
+ });
40046
+ }
39806
40047
 
39807
40048
  // src/provisioning/providers/wafv2/create.ts
39808
40049
  async function create$20(logicalId, resourceType, properties, context) {
@@ -39835,23 +40076,19 @@ async function create$20(logicalId, resourceType, properties, context) {
39835
40076
  }))).Summary;
39836
40077
  if (!summary?.ARN || !summary?.Id) throw new Error("CreateWebACL did not return Summary with ARN and Id");
39837
40078
  this.logger.debug(`Successfully created WAFv2 WebACL ${logicalId}: ${summary.ARN}`);
39838
- let labelNamespace;
40079
+ let webAcl;
39839
40080
  try {
39840
- labelNamespace = (await this.getClient().send(new GetWebACLCommand({
40081
+ webAcl = (await this.getClient().send(new GetWebACLCommand({
39841
40082
  Id: summary.Id,
39842
40083
  Name: name,
39843
40084
  Scope: scope
39844
- }))).WebACL?.LabelNamespace;
40085
+ }))).WebACL;
39845
40086
  } catch (readError) {
39846
- this.logger.debug(`Could not read the label namespace of ${logicalId} after create: ${describeAwsFailure(readError).detail}`);
40087
+ this.logger.debug(`Could not read back ${logicalId} after create (LabelNamespace / Capacity omitted): ${describeAwsFailure(readError).detail}`);
39847
40088
  }
39848
40089
  return {
39849
40090
  physicalId: summary.ARN,
39850
- attributes: definedAttributes({
39851
- Arn: summary.ARN,
39852
- Id: summary.Id,
39853
- LabelNamespace: labelNamespace
39854
- })
40091
+ attributes: webAclAttributes(summary.ARN, summary.Id, webAcl)
39855
40092
  };
39856
40093
  } catch (error) {
39857
40094
  if (error instanceof ProvisioningError) throw error;
@@ -39895,14 +40132,21 @@ async function update$20(logicalId, physicalId, resourceType, properties, previo
39895
40132
  }));
39896
40133
  await this.applyTagDiff(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"]);
39897
40134
  this.logger.debug(`Successfully updated WAFv2 WebACL ${logicalId}`);
40135
+ let webAcl;
40136
+ try {
40137
+ webAcl = (await this.getClient().send(new GetWebACLCommand({
40138
+ Name: name,
40139
+ Scope: scope,
40140
+ Id: id
40141
+ }))).WebACL;
40142
+ } catch (readError) {
40143
+ this.logger.debug(safeMsg`Could not read back ${logicalId} after update (Capacity omitted): ${describeAwsFailure(readError).detail}`);
40144
+ webAcl = { LabelNamespace: getResponse.WebACL?.LabelNamespace };
40145
+ }
39898
40146
  return {
39899
40147
  physicalId,
39900
40148
  wasReplaced: false,
39901
- attributes: {
39902
- Arn: physicalId,
39903
- Id: id,
39904
- LabelNamespace: getResponse.WebACL?.LabelNamespace
39905
- }
40149
+ attributes: webAclAttributes(physicalId, id, webAcl)
39906
40150
  };
39907
40151
  } catch (error) {
39908
40152
  if (error instanceof ProvisioningError) throw error;
@@ -40025,11 +40269,7 @@ async function importImpl$19(input) {
40025
40269
  if (!arn) return null;
40026
40270
  return {
40027
40271
  physicalId: arn,
40028
- attributes: definedAttributes({
40029
- Arn: arn,
40030
- Id: resp.WebACL?.Id,
40031
- LabelNamespace: resp.WebACL?.LabelNamespace
40032
- })
40272
+ attributes: webAclAttributes(arn, resp.WebACL?.Id, resp.WebACL)
40033
40273
  };
40034
40274
  } catch (err) {
40035
40275
  if (err instanceof WAFNonexistentItemException) return null;
@@ -59336,6 +59576,12 @@ var DLMLifecyclePolicyProvider = class {
59336
59576
  };
59337
59577
 
59338
59578
  // src/provisioning/providers/s3-vectors-provider.ts
59579
+ function vectorBucketAttributes(vectorBucketArn, creationTime) {
59580
+ return definedAttributes({
59581
+ VectorBucketArn: vectorBucketArn,
59582
+ CreationTime: isoTimestampAttribute(creationTime)
59583
+ });
59584
+ }
59339
59585
  var S3VectorsProvider = class {
59340
59586
  client;
59341
59587
  createClient;
@@ -59452,9 +59698,15 @@ var S3VectorsProvider = class {
59452
59698
  ...tags && Object.keys(tags).length > 0 ? { tags } : {}
59453
59699
  }));
59454
59700
  this.logger.debug(`Successfully created S3 VectorBucket ${logicalId}: ${vectorBucketName}`);
59701
+ let creationTime;
59702
+ try {
59703
+ creationTime = (await this.getClient().send(new GetVectorBucketCommand({ vectorBucketName }))).vectorBucket?.creationTime;
59704
+ } catch (readError) {
59705
+ this.logger.debug(safeMsg`Could not read back S3 VectorBucket ${logicalId} after create (CreationTime omitted): ${describeAwsFailure(readError).detail}`);
59706
+ }
59455
59707
  return {
59456
59708
  physicalId: vectorBucketName,
59457
- attributes: definedAttributes({ VectorBucketArn: result.vectorBucketArn })
59709
+ attributes: vectorBucketAttributes(result.vectorBucketArn, creationTime)
59458
59710
  };
59459
59711
  } catch (error) {
59460
59712
  const cause = error instanceof Error ? error : void 0;
@@ -59537,7 +59789,7 @@ var S3VectorsProvider = class {
59537
59789
  if (!name) return null;
59538
59790
  return {
59539
59791
  physicalId: name,
59540
- attributes: definedAttributes({ VectorBucketArn: resp.vectorBucket?.vectorBucketArn })
59792
+ attributes: vectorBucketAttributes(resp.vectorBucket?.vectorBucketArn, resp.vectorBucket?.creationTime)
59541
59793
  };
59542
59794
  } catch (err) {
59543
59795
  if (this.isNotFoundError(err)) return null;
@@ -63069,4 +63321,4 @@ var ACMCertificateProvider = class {
63069
63321
  };
63070
63322
 
63071
63323
  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 };
63072
- //# sourceMappingURL=provider-classes-CM8Txuvb.js.map
63324
+ //# sourceMappingURL=provider-classes-YUbciPtV.js.map