@cdkd/cli 0.350.1 → 0.350.3

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 (68) hide show
  1. package/dist/{ambient-client-defaults-7acjxfyN.js → ambient-client-defaults-CqrM5nDS.js} +12 -167
  2. package/dist/ambient-client-defaults-CqrM5nDS.js.map +1 -0
  3. package/dist/{asg-provider-Dvy_jqxt.js → asg-provider-hZ4nyheM.js} +9 -8
  4. package/dist/asg-provider-hZ4nyheM.js.map +1 -0
  5. package/dist/cli.js +3 -23
  6. package/dist/cli.js.map +1 -1
  7. package/dist/{custom-resource-runtime-CRy-dCjZ.js → custom-resource-runtime-CcClWTa-.js} +96 -15
  8. package/dist/custom-resource-runtime-CcClWTa-.js.map +1 -0
  9. package/dist/{db-instance-modify-retry-pFWx2ED5.js → db-instance-modify-retry-CsIlFgIJ.js} +4 -4
  10. package/dist/{db-instance-modify-retry-pFWx2ED5.js.map → db-instance-modify-retry-CsIlFgIJ.js.map} +1 -1
  11. package/dist/{delete-started-Co5Gt1jH.js → delete-started-C0g7PYI-.js} +24 -2
  12. package/dist/delete-started-C0g7PYI-.js.map +1 -0
  13. package/dist/{deploy-engine-BwlO3Jv_.js → deploy-engine-Sw2eta-t.js} +1240 -551
  14. package/dist/deploy-engine-Sw2eta-t.js.map +1 -0
  15. package/dist/{diff-calculator-CbibK_C3.js → diff-calculator-BvN5rnLe.js} +21 -29
  16. package/dist/diff-calculator-BvN5rnLe.js.map +1 -0
  17. package/dist/{ec2-termination-protection-BM1Zt3Fn.js → ec2-termination-protection-BIIHrzUa.js} +26 -8
  18. package/dist/ec2-termination-protection-BIIHrzUa.js.map +1 -0
  19. package/dist/{ecr-uri-C3_6QVgR.js → ecr-uri-CQ_BCOjX.js} +2 -2
  20. package/dist/{ecr-uri-C3_6QVgR.js.map → ecr-uri-CQ_BCOjX.js.map} +1 -1
  21. package/dist/{expected-bucket-owner-CGoY_YS8.js → expected-bucket-owner-DR9qK772.js} +2 -2
  22. package/dist/{expected-bucket-owner-CGoY_YS8.js.map → expected-bucket-owner-DR9qK772.js.map} +1 -1
  23. package/dist/{iam-role-provider-BaN9MMWs.js → iam-role-provider-i52A7e_4.js} +7 -6
  24. package/dist/iam-role-provider-i52A7e_4.js.map +1 -0
  25. package/dist/{image-plan-C9qclqRY.js → image-plan-DOnhBOIa.js} +102 -29
  26. package/dist/image-plan-DOnhBOIa.js.map +1 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/{logger-DmQRya0S.js → logger-Ce9kvuBB.js} +4 -124
  30. package/dist/{logger-DmQRya0S.js.map → logger-Ce9kvuBB.js.map} +1 -1
  31. package/dist/{neptune-provider-BYgFNrtZ.js → neptune-provider-Bir1AdqM.js} +8 -7
  32. package/dist/neptune-provider-Bir1AdqM.js.map +1 -0
  33. package/dist/{program-CDu5N31o.js → program-DAAu8qUr.js} +751 -303
  34. package/dist/program-DAAu8qUr.js.map +1 -0
  35. package/dist/{provider-classes-Diwm8MK7.js → provider-classes-CM8Txuvb.js} +250 -129
  36. package/dist/provider-classes-CM8Txuvb.js.map +1 -0
  37. package/dist/{rds-provider-DKZjtd50.js → rds-provider-DmVAU_Mv.js} +23 -34
  38. package/dist/rds-provider-DmVAU_Mv.js.map +1 -0
  39. package/dist/{read-replica-C5e4xpYi.js → read-replica-Bmq3NTlC.js} +3 -3
  40. package/dist/{read-replica-C5e4xpYi.js.map → read-replica-Bmq3NTlC.js.map} +1 -1
  41. package/dist/{replacement-rules-01_01yDU.js → replacement-rules-lOM1aGPr.js} +3 -2
  42. package/dist/replacement-rules-lOM1aGPr.js.map +1 -0
  43. package/dist/{resource-deadline-TfDpwRQ_.js → resource-deadline-1VcUPyH4.js} +19 -19
  44. package/dist/{resource-deadline-TfDpwRQ_.js.map → resource-deadline-1VcUPyH4.js.map} +1 -1
  45. package/dist/run-cli-BlVizMfM.js +34 -0
  46. package/dist/run-cli-BlVizMfM.js.map +1 -0
  47. package/dist/{update-removal-D-FspP88.js → update-removal-BOue-bJm.js} +30 -8
  48. package/dist/update-removal-BOue-bJm.js.map +1 -0
  49. package/dist/version-DINEmsQH.js +300 -0
  50. package/dist/version-DINEmsQH.js.map +1 -0
  51. package/package.json +2 -2
  52. package/dist/ambient-client-defaults-7acjxfyN.js.map +0 -1
  53. package/dist/asg-provider-Dvy_jqxt.js.map +0 -1
  54. package/dist/custom-resource-runtime-CRy-dCjZ.js.map +0 -1
  55. package/dist/delete-started-Co5Gt1jH.js.map +0 -1
  56. package/dist/deploy-engine-BwlO3Jv_.js.map +0 -1
  57. package/dist/diff-calculator-CbibK_C3.js.map +0 -1
  58. package/dist/ec2-termination-protection-BM1Zt3Fn.js.map +0 -1
  59. package/dist/iam-role-provider-BaN9MMWs.js.map +0 -1
  60. package/dist/image-plan-C9qclqRY.js.map +0 -1
  61. package/dist/neptune-provider-BYgFNrtZ.js.map +0 -1
  62. package/dist/program-CDu5N31o.js.map +0 -1
  63. package/dist/provider-classes-Diwm8MK7.js.map +0 -1
  64. package/dist/rds-provider-DKZjtd50.js.map +0 -1
  65. package/dist/replacement-rules-01_01yDU.js.map +0 -1
  66. package/dist/update-removal-D-FspP88.js.map +0 -1
  67. package/dist/version-PlqBTGrc.js +0 -11
  68. package/dist/version-PlqBTGrc.js.map +0 -1
@@ -1,20 +1,21 @@
1
- import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-BaN9MMWs.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, at as asIsMessage, c as VERBOSE_POINTER, ct as displayIdent, d as describeAwsStatusReason, dt as isPasteableIdent, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, lt as displaySafe, mt as safeMsg, n as getLogger, nt as SECRET_REF_MAX_CODE_POINTS, p as safeStringify, pt as plainIdentOr, q as getCurrentStackInstanceId, u as describeAwsFailure, ut as displayStackName, w as generatedNameFor } from "./logger-DmQRya0S.js";
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";
3
3
  import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
4
- import { Ct as withheldTargetClause, 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, St as shellQuote, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, _t as pasteableCommand, at as ProvisioningError, et as CdkdError, gt as isInertUnquoted, ht as hasClauseBreak, i as credentialFingerprint, mt as commandHole, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, yt as plainOrDescribed, z as isTransientServerError } from "./ambient-client-defaults-7acjxfyN.js";
5
- import { $ as deleteAfterProtectionFlipWithFinalSnapshot, A as setBounded, At as segmentAfterAnchor, B as resolveExplicitPhysicalId, Bt as clearCreatedBeforeFailure, C as AmbiguousCreateLatch, Ct as canonicalizeRoute53QueryName, D as isInsideWindow, Dt as logicalIdShown, E as createAttemptKey, Et as compositeIdSkipResult, F as isQuotableImportValue, Ft as maskDeep, H as assertRegionMatch, I as normalizeAwsTagsToCfn, It as maskerOrIdentity, J as observeThenDisableProtection, Jt as markSupersedesEarlierCreate, K as deleteWithProtectionCompensation, Kt as markAuxiliaryFailure, L as quotedRemedyLogicalId, Lt as withDerivedNameMasks, M as VALUE_NOT_SHOWN, Mt as createMaskedLogSinks, N as isPlainImportJson, Nt as createMaskedRetryLogger, O as replayFollowedAmbiguousAttempt, Ot as packCompositeId, P as isPlainImportValue, Pt as isSecretDerivedValue, Q as PROTECTION_FLIP_RETRY_WAIT_MS, R as refusalTypeShown, S as AMBIGUOUS_LATCH_TTL_MS, St as startInterruptWatch, T as ambiguousAttemptLead, Tt as compositeIdSeparatorRefusal, V as RESOURCE_NOT_FOUND, W as markNotGone, Wt as isAuxiliaryFailure, Y as rdsFamilyProtectionSite, Z as userPoolProtectionSite, _ as onlySecretDerived, _t as renderDisableCommand, a as withRemovalDefaults, at as isTerminalDeleteFailure, b as recordedPrincipalsRepair, cn as injectiveKeyPrefix, ct as ElapsedBudget, f as retractCreatedResource, ft as UNNAMEABLE_ID_CLAUSE, g as holdsSecretDerivedEntry, gt as protectedReplacementAdvice, h as SECRET_DERIVED_READ_LIVE, ht as pasteableAwsCommand, i as removedTemplateKeys, it as ProtectionFlipRegistry, j as withoutServerErrorRetries, jt as stateOrphanRecordRemedy, k as replayedSendWindow, lt as ElapsedBudgetRegistry, mt as isAwsCliLiteral, nt as isTerminalDbWaitStatus, ot as protectionFlipKey, pn as withPasteableAwsProfile, pt as WITHHELD_AWS_COMMAND, q as logGroupProtectionSite, qt as markCreatedBeforeFailure, sn as injectiveKey, t as clearOnUpdateRemoval, tt as isProceedDbStatus, u as reportCreatedResource, v as readPrincipalLists, w as RecentIdSet, wt as compositeIdFormatMessage, xt as isInterruptedWaitError, z as remedyLogicalId } from "./update-removal-D-FspP88.js";
6
- import { i as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-Co5Gt1jH.js";
7
- import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-CDu5N31o.js";
8
- import { $ as vectorIndexesForCreate, $o as toFiniteNumber, B as reverseMapStreamPolicy, Co as outputReferenceProvenanceOf, Cr as REDACTED_DELETE_ADDRESS_SKIP_REASON, Ct as maskedLogger, Da as resolvedResourceTimeoutMs, Dl as decodeListingKey, Dt as S3_AUTO_DELETE_OBJECTS_TAG, Ea as waitForGoneAfterDelete, Er as redactedDeleteAddressSkip, Et as ECR_AUTO_DELETE_IMAGES_TAG, F as STREAM_POLICY_KEY, Fl as describeFileReadFailure, G as streamTagsMatchDeclared, Gi as maskedSecretSegment, H as streamDeclaresTags, I as STREAM_TAGS_KEY, Il as displayAssemblyPath, J as planTimeToLive, Jc as stringifyValue, Jt as lookupEachName, K as isTtlAlreadyDisabled, Kt as chunks, L as declaredStreamPolicyMember, Lr as getCurrentProducerRegions, Na as deleteSkipReason, Oc as withoutSdkUnwiredProperties, Ot as hasCdkAutoDeleteTag, P as DynamoDBGlobalTableProvider, Pa as withIndeterminateGuard, Q as readbackVectorIndexes, Qo as toCfnInteger, R as declaredStreamTagsMember, Rl as renderAssemblyPathEscape, Sa as getCurrentResourceSecrets, St as deleteTableWithIndexBusyRetry, Tc as findSdkUnwiredProperties, Tr as redactedDeleteAddressFields, Tt as waitForIndexesSettled, U as streamMemberRefusals, Ut as getPriorAttempts, V as streamDeclaresPolicy, Va as isSettledInstanceState, W as streamPolicyMatchesDeclared, Wi as APPSYNC_APIKEY_ARN_RESOURCE_PATH, Wt as markRefusedBeforeApplying, X as sendTtlWaitingOutRateLimit, Xo as coerceWarmThroughput$1, Y as readTtlSpec, Yo as WARM_THROUGHPUT_MEMBERS, Yt as withApiLimit, Z as planVectorIndexUpdates, Zo as isWarmThroughputDecrease, _ as listNestedTemplateRows, _c as withheldAccountClause, _t as resolveDynamoDbDeleteBudgetClock, an as revertNestedChildFromJournal, at as planContributorInsightsOp, bt as INDEX_SETTLE_POLL_INTERVAL_MS, co as s3BucketDualStackDomainName, cr as reserveStackCreateToken, ct as reverseMapIndexContributorInsights, dc as refuseMalformedResourcesForDestroy, di as replacedDeleteFailureVerdict, dt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, et as vectorIndexesSettled, ft as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, g as isAbsoluteAssetPath, gc as accountArgs, gt as deleteBudgetKey, h as findNestedTemplateTreeDefect, ht as compensateRemovedDeletionProtection, it as indexDeclaresContributorInsights, ko as getAccountInfo, kt as isTruthyCfnBoolean, li as getStackRecords, ln as getCurrentNestedStackContext, lo as s3BucketRegionalDomainName, lt as reverseMapTableContributorInsights, mt as beginDeleteWait, nn as getNestedRevertRun, nt as CONTRIBUTOR_INSIGHTS_KEY, oo as s3BucketArn, or as earliestDefined, os as passedParameterClassesOf, ot as planIndexContributorInsightsOps, pt as DYNAMODB_DELETE_POLL_COST_MS, q as isTtlRateLimited, qt as isAccessDeniedError, rl as rewriteTemplateAssetReferences, rt as contributorInsightsRefusals, si as awaitInFlightSibling, so as s3BucketDomainName, st as readContributorInsightsSpec, t as DeployEngine, tc as refuseMalformedNestedChildOutputs, tt as vectorIndexesShapeDetail, un as withNestedStackContext, uo as s3BucketWebsiteUrl, ur as acquireIdempotencyToken, ut as stripIndexContributorInsights, v as renderNestedTemplateTreeDefect, vt as resolveDynamoDbDeleteBudgetMs, wa as waitForLambdaFunctionActive, wr as isRedactedRecordedValue, wt as relayedIndexBusyDelete, xt as TABLE_INDEX_NOUN, yo as parseWebACLArn, yt as DELETE_INDEX_WAIT_PROCEED_NOTE, z as planStreamMemberOps, zi as secretNamedAttributeNamesOf, zl as resolveAssemblyPath } from "./deploy-engine-BwlO3Jv_.js";
9
- import { _ as tagMapAsList, c as refuseRestoreFromItself, d as stringifyIfAssigned, f as DBPROXY_TAGS_WHAT, g as refuseMalformedDesiredTags, h as readTagList, m as planTagDiff, n as enclosingDeadlineRemainingMs, p as DBPROXY_TAG_OPTIONS, t as enclosingDeadlineExpired, u as definedAttributes, v as tagPlanWarning, y as isUsableAttemptedName } from "./resource-deadline-TfDpwRQ_.js";
10
- import { E as timePhase, a as reDisableInstanceApiTermination, c as unchangedBehindSecretReference, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as onlySecretReferencesDiffer, y as withRetry } from "./ec2-termination-protection-BM1Zt3Fn.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";
11
12
  import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
12
13
  import { f as ambientRegion } from "./aws-client-defaults-DAebi99J.js";
13
- 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-01_01yDU.js";
14
- import { RDSProvider } from "./rds-provider-DKZjtd50.js";
15
- import { n as modifyDbInstanceWhenAvailable, t as isModifyNotAvailableRefusal } from "./db-instance-modify-retry-pFWx2ED5.js";
16
- import { NeptuneProvider } from "./neptune-provider-BYgFNrtZ.js";
17
- import { ASGProvider } from "./asg-provider-Dvy_jqxt.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";
18
19
  import { createHash, randomUUID } from "node:crypto";
19
20
  import { CreateBucketCommand, CreateBucketMetadataConfigurationCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetadataConfigurationCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAbacCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketMetadataConfigurationCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAbacCommand, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, UpdateBucketMetadataAnnotationTableConfigurationCommand, UpdateBucketMetadataInventoryTableConfigurationCommand, UpdateBucketMetadataJournalTableConfigurationCommand } from "@aws-sdk/client-s3";
20
21
  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";
@@ -100,7 +101,7 @@ function readPolicyTargetLists(bag) {
100
101
  }
101
102
  const SECRET_DERIVED_NOTE = "is secret-derived (cdkd keeps the dynamic reference or its mask in state), so do not write the name into state.json";
102
103
  function policySecretDerivedRepair(renamed) {
103
- return "IAM has no call that lists the principals holding an inline policy, so cdkd cannot diff it: detach the inline policy by hand from every principal it should no longer be on" + (renamed ? ", and since this change renames the policy, also remove the OLD-named inline policy from every principal that holds it (the re-created record names only the new one)" : "") + ", then drop this record with 'cdkd orphan <constructPath>' so the next deploy re-attaches it from the template (an attachment left in place across the orphan is no longer tracked by cdkd). A later update proceeds only while the template spells the same reference and PolicyName, so a changed reference, a rename or a mask is refused this way again";
104
+ return "IAM has no call that lists the principals holding an inline policy, so cdkd cannot diff it: detach the inline policy by hand from every principal it should no longer be on" + (renamed ? ", and since this change renames the policy, also remove the OLD-named inline policy from every principal that holds it (the re-created record names only the new one)" : "") + `, then drop this record with ${pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command} so the next deploy re-attaches it from the template (an attachment left in place across the orphan is no longer tracked by cdkd). A later update proceeds only while the template spells the same reference and PolicyName, so a changed reference, a rename or a mask is refused this way again`;
104
105
  }
105
106
  function recordedSideRepair(targets, renamed) {
106
107
  const { malformed, secretDerived } = targets;
@@ -510,7 +511,7 @@ async function deleteImpl$40(logicalId, physicalId, resourceType, properties, co
510
511
  }
511
512
  }
512
513
  if (secretPrincipalLacksGrant) {
513
- this.logger.warn(safeMsg`IAM policy ${logicalId}: a principal the secret's CURRENT value names does not hold this inline policy. The value may have rotated since the policy was attached, so a principal only the OLD value named may still hold it; or an earlier cdkd run already removed it there, or that principal was deleted first. The record is KEPT rather than read as deleted: delete the inline policy from any old principal by hand (the principals the current value names are done), then drop this record with 'cdkd orphan <constructPath>', or, with no CDK app, ${stateOrphanRecordRemedy(context, logicalId)}.`);
514
+ this.logger.warn(safeMsg`IAM policy ${logicalId}: a principal the secret's CURRENT value names does not hold this inline policy. The value may have rotated since the policy was attached, so a principal only the OLD value named may still hold it; or an earlier cdkd run already removed it there, or that principal was deleted first. The record is KEPT rather than read as deleted: delete the inline policy from any old principal by hand (the principals the current value names are done), then drop this record with ${pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command}, or, with no CDK app, ${stateOrphanRecordRemedy(context, logicalId)}.`);
514
515
  return {
515
516
  outcome: "skipped",
516
517
  reason: POLICY_SECRET_PRINCIPAL_LACKS_GRANT_SKIP_REASON
@@ -630,6 +631,13 @@ var IAMPolicyProvider = class {
630
631
  };
631
632
 
632
633
  // src/provisioning/providers/iam-managed-policy/shared.ts
634
+ function managedPolicyAttributes(policyArn, policy) {
635
+ return definedAttributes({
636
+ PolicyArn: policyArn,
637
+ PolicyId: policyIdentityToken(policy?.PolicyId),
638
+ DefaultVersionId: typeof policy?.DefaultVersionId === "string" && policy.DefaultVersionId !== "" ? policy.DefaultVersionId : void 0
639
+ });
640
+ }
633
641
  const principalsOf = (bag) => readPrincipalLists({
634
642
  Groups: bag["Groups"],
635
643
  Roles: bag["Roles"],
@@ -712,7 +720,7 @@ async function create$40(logicalId, resourceType, properties, context) {
712
720
  }
713
721
  return {
714
722
  physicalId: policyArn,
715
- attributes: { PolicyArn: policyArn }
723
+ attributes: managedPolicyAttributes(policyArn, policy)
716
724
  };
717
725
  } catch (error) {
718
726
  const markLeftBehind = (e) => leftBehindArn !== void 0 ? markCreatedBeforeFailure(e, logicalId, resourceType, leftBehindArn, createdPolicyIdentity) : e;
@@ -819,6 +827,7 @@ async function update$41(logicalId, physicalId, resourceType, properties, previo
819
827
  }
820
828
  if (unmatched.length > 0) log.warn(`The recorded ${unmatched.join(" / ")} of IAM managed policy ${logicalId} is secret-derived, and IAM lists attachments the template does not name: cdkd detaches none of them, since IAM's list includes attachments made elsewhere. Detach by hand any that this list used to name.`);
821
829
  }
830
+ let createdVersionId;
822
831
  try {
823
832
  const newDocument = properties["PolicyDocument"];
824
833
  const oldDocument = previousProperties["PolicyDocument"];
@@ -826,20 +835,28 @@ async function update$41(logicalId, physicalId, resourceType, properties, previo
826
835
  const newDocStr = typeof newDocument === "string" ? newDocument : JSON.stringify(newDocument);
827
836
  if (newDocStr !== (oldDocument ? typeof oldDocument === "string" ? oldDocument : JSON.stringify(oldDocument) : "")) {
828
837
  await this.ensureVersionCapacity(physicalId, log);
829
- await this.iamClient.send(new CreatePolicyVersionCommand({
838
+ createdVersionId = (await this.iamClient.send(new CreatePolicyVersionCommand({
830
839
  PolicyArn: physicalId,
831
840
  PolicyDocument: newDocStr,
832
841
  SetAsDefault: true
833
- }));
842
+ })))?.PolicyVersion?.VersionId;
834
843
  log.debug(`Updated PolicyDocument for ${v(physicalId)}`);
835
844
  }
836
845
  }
837
846
  await this.updatePrincipals(physicalId, newPrincipals.lists.Groups, oldLists.Groups, newPrincipals.lists.Roles, oldLists.Roles, newPrincipals.lists.Users, oldLists.Users, log);
838
847
  await this.updateTags(physicalId, resourceType, logicalId, properties["Tags"], previousProperties["Tags"], log);
848
+ const recorded = context?.recordedAttributes;
849
+ const recordedString = (key) => {
850
+ const value = recorded?.[key];
851
+ return typeof value === "string" && value !== "" && !holdsSecretDerivedEntry(value) ? value : void 0;
852
+ };
839
853
  return {
840
854
  physicalId,
841
855
  wasReplaced: false,
842
- attributes: { PolicyArn: physicalId }
856
+ attributes: managedPolicyAttributes(physicalId, {
857
+ PolicyId: recordedString("PolicyId"),
858
+ DefaultVersionId: createdVersionId ?? recordedString("DefaultVersionId")
859
+ })
843
860
  };
844
861
  } catch (error) {
845
862
  const cause = error instanceof Error ? error : void 0;
@@ -969,20 +986,20 @@ async function importImpl$39(input) {
969
986
  if (explicit.startsWith("arn:")) {
970
987
  if (AWS_MANAGED_POLICY_ARN_RE.test(explicit)) throw new Error(`Refusing to import AWS-managed policy ${explicit}: cdkd only adopts customer-managed policies. If you need to attach an AWS-managed policy to a role / user / group, reference it via ManagedPolicyArns on the principal instead.`);
971
988
  try {
972
- await this.iamClient.send(new GetPolicyCommand({ PolicyArn: explicit }));
989
+ const resp = await this.iamClient.send(new GetPolicyCommand({ PolicyArn: explicit }));
973
990
  return {
974
991
  physicalId: explicit,
975
- attributes: { PolicyArn: explicit }
992
+ attributes: managedPolicyAttributes(explicit, resp.Policy)
976
993
  };
977
994
  } catch (err) {
978
995
  if (err instanceof NoSuchEntityException) return null;
979
996
  throw err;
980
997
  }
981
998
  }
982
- const arnByName = await this.findPolicyArnByName(explicit);
983
- if (arnByName) return {
984
- physicalId: arnByName,
985
- attributes: { PolicyArn: arnByName }
999
+ const byName = await this.findPolicyByName(explicit);
1000
+ if (byName) return {
1001
+ physicalId: byName.Arn,
1002
+ attributes: managedPolicyAttributes(byName.Arn, byName)
986
1003
  };
987
1004
  return null;
988
1005
  }
@@ -1035,6 +1052,10 @@ var IAMManagedPolicyProvider = class {
1035
1052
  }
1036
1053
  async getAttribute(physicalId, _resourceType, attributeName) {
1037
1054
  if (attributeName === "PolicyArn") return physicalId;
1055
+ if (attributeName === "PolicyId" || attributeName === "DefaultVersionId") {
1056
+ const resp = await this.iamClient.send(new GetPolicyCommand({ PolicyArn: physicalId }));
1057
+ return managedPolicyAttributes(physicalId, resp.Policy)[attributeName];
1058
+ }
1038
1059
  }
1039
1060
  readCurrentState(physicalId, logicalId, resourceType, properties) {
1040
1061
  return readCurrentState$39.call(this, physicalId, logicalId, resourceType, properties);
@@ -1289,14 +1310,17 @@ var IAMManagedPolicyProvider = class {
1289
1310
  Tags: tagsToAdd
1290
1311
  }));
1291
1312
  }
1292
- async findPolicyArnByName(policyName) {
1313
+ async findPolicyByName(policyName) {
1293
1314
  let marker;
1294
1315
  do {
1295
1316
  const resp = await this.iamClient.send(new ListPoliciesCommand({
1296
1317
  Scope: "Local",
1297
1318
  ...marker ? { Marker: marker } : {}
1298
1319
  }));
1299
- for (const p of resp.Policies ?? []) if (p.PolicyName === policyName && p.Arn) return p.Arn;
1320
+ for (const p of resp.Policies ?? []) if (p.PolicyName === policyName && p.Arn) return {
1321
+ ...p,
1322
+ Arn: p.Arn
1323
+ };
1300
1324
  marker = resp.IsTruncated ? resp.Marker : void 0;
1301
1325
  } while (marker);
1302
1326
  }
@@ -1918,7 +1942,9 @@ const MEMBERSHIP_NO_PROPERTIES_SKIP_REASON = "no properties in state — group m
1918
1942
  const MEMBERSHIP_MISSING_FIELDS_SKIP_REASON = "GroupName/Users missing from state — membership not removed";
1919
1943
  const MEMBERSHIP_MALFORMED_USERS_SKIP_REASON = "malformed Users in state — membership not removed";
1920
1944
  const MEMBERSHIP_SECRET_USER_NOT_MEMBER_SKIP_REASON = "the current value of the secret names a user outside the group — the value may have rotated";
1921
- const MEMBERSHIP_SECRET_DERIVED_REPAIR = "cdkd cannot diff it, so make the membership change by hand, then drop this record with 'cdkd orphan <constructPath>' so the next deploy re-creates it from the template. A later update proceeds only while the template spells the same reference and GroupName, so a changed reference, another group or a mask is refused this way again";
1945
+ function membershipSecretDerivedRepair() {
1946
+ return `cdkd cannot diff it, so make the membership change by hand, then drop this record with ${pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command} so the next deploy re-creates it from the template. A later update proceeds only while the template spells the same reference and GroupName, so a changed reference, another group or a mask is refused this way again`;
1947
+ }
1922
1948
  async function readPrincipalSides(opts) {
1923
1949
  const { subject, nothingDone, names, resourceType, logicalId, physicalId } = opts;
1924
1950
  const next = readPrincipalLists(opts.desired);
@@ -2729,7 +2755,7 @@ async function updateUserToGroupAddition(logicalId, physicalId, resourceType, pr
2729
2755
  subject: "IAM UserToGroupAddition",
2730
2756
  nothingDone: "no user was added to or removed from a group",
2731
2757
  names: "user names",
2732
- secretDerivedRepair: MEMBERSHIP_SECRET_DERIVED_REPAIR,
2758
+ secretDerivedRepair: membershipSecretDerivedRepair(),
2733
2759
  resourceType,
2734
2760
  logicalId,
2735
2761
  physicalId
@@ -2862,7 +2888,7 @@ async function deleteUserToGroupAddition(logicalId, physicalId, resourceType, pr
2862
2888
  }
2863
2889
  }
2864
2890
  if (secretUserNotMember) {
2865
- this.logger.warn(safeMsg`UserToGroupAddition ${logicalId}: a user the secret's CURRENT value names is not in the group. The value may have rotated since the membership was added, so a user only the OLD value named may still be a member; or an earlier cdkd run already removed it, or that user was deleted first. The record is KEPT rather than read as deleted: remove any old user from the group by hand (the users the current value names are done), then drop this record with 'cdkd orphan <constructPath>', or, with no CDK app, ${stateOrphanRecordRemedy(context, logicalId)}.`);
2891
+ this.logger.warn(safeMsg`UserToGroupAddition ${logicalId}: a user the secret's CURRENT value names is not in the group. The value may have rotated since the membership was added, so a user only the OLD value named may still be a member; or an earlier cdkd run already removed it, or that user was deleted first. The record is KEPT rather than read as deleted: remove any old user from the group by hand (the users the current value names are done), then drop this record with ${pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command}, or, with no CDK app, ${stateOrphanRecordRemedy(context, logicalId)}.`);
2866
2892
  return {
2867
2893
  outcome: "skipped",
2868
2894
  reason: MEMBERSHIP_SECRET_USER_NOT_MEMBER_SKIP_REASON
@@ -3240,7 +3266,7 @@ function manualBucketDeletionClause(bucketName, maskSecrets, journaled) {
3240
3266
  identifier: bucketName,
3241
3267
  maskSecrets
3242
3268
  });
3243
- const lead = journaled ? "Outside a rollback's re-create, the failed deploy's rollback journal records the bucket for `cdkd rollback --revert-failed`; otherwise delete it yourself before the next deploy" : "Manual deletion may be required before the next deploy";
3269
+ const lead = journaled ? `Outside a rollback's re-create, the failed deploy's rollback journal records the bucket for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}; otherwise delete it yourself before the next deploy` : "Manual deletion may be required before the next deploy";
3244
3270
  return command ? `${lead}: ${command}` : `${lead}, via the console: the bucket name cannot be reproduced safely on a command line, so any command shown here could act on a different bucket or run part of the name as shell.`;
3245
3271
  }
3246
3272
  function configItemId(item) {
@@ -4688,11 +4714,11 @@ function refuseAmbiguousCreateAdopt(logicalId, resourceType, bucketName, region,
4688
4714
  const versions = aws`aws s3api list-object-versions --bucket ${bucketName} --max-items 10${regionArg}`.render();
4689
4715
  const deletion = aws`aws s3api delete-bucket --bucket ${bucketName}${regionArg}`.render();
4690
4716
  const presence = "preflight" in via && via.preflight === "indeterminate" ? "a bucket of that name may exist (cdkd could not read its location)" : "the bucket now exists";
4691
- throw markNonRetryable(new ProvisioningError(`Refusing to adopt S3 bucket ${this.shown(bucketName)} for ${displaySafe(logicalId)} (${resourceType}): an earlier attempt of this create ended without a definite answer (a server error or a lost response) after it may have created the bucket, and ${presence}, so cdkd cannot tell whether this deploy or someone else created it. Check whether this account owns it: ${owned} (it lists only this account's buckets; its CreationDate is a hint, not proof, since some bucket changes update it), and whether it holds any object or object version: ${versions}. If it is listed there, its CreationDate matches the failed attempt, it is empty, and nobody else on your team uses this name, it is this deploy's orphan: delete it with ${deletion} (S3 refuses with BucketNotEmpty if anything is left in it) and re-run the deploy. ` + (explicitName ? "If it is a bucket you mean this stack to own, adopt it with `cdkd import` and re-run: its BucketName is set explicitly, so a re-run alone refuses it." : `If it is a bucket you mean this stack to own, re-run the deploy to adopt it.`), resourceType, logicalId, bucketName, "cause" in via ? via.cause : void 0));
4717
+ throw markNonRetryable(new ProvisioningError(`Refusing to adopt S3 bucket ${this.shown(bucketName)} for ${displaySafe(logicalId)} (${resourceType}): an earlier attempt of this create ended without a definite answer (a server error or a lost response) after it may have created the bucket, and ${presence}, so cdkd cannot tell whether this deploy or someone else created it. Check whether this account owns it: ${owned} (it lists only this account's buckets; its CreationDate is a hint, not proof, since some bucket changes update it), and whether it holds any object or object version: ${versions}. If it is listed there, its CreationDate matches the failed attempt, it is empty, and nobody else on your team uses this name, it is this deploy's orphan: delete it with ${deletion} (S3 refuses with BucketNotEmpty if anything is left in it) and re-run the deploy. ` + (explicitName ? `If it is a bucket you mean this stack to own, adopt it with ${proseQuoted(cdkdRemedy("cdkd import"), "`")} and re-run: its BucketName is set explicitly, so a re-run alone refuses it.` : `If it is a bucket you mean this stack to own, re-run the deploy to adopt it.`), resourceType, logicalId, bucketName, "cause" in via ? via.cause : void 0));
4692
4718
  }
4693
4719
  function refuseExplicitNameHeld(logicalId, resourceType, bucketName, via) {
4694
4720
  const evidence = "cause" in via ? "S3 answered BucketAlreadyOwnedByYou: a bucket of that name already exists, and this account owns it" : "listed" in via ? "a bucket of that name already exists in this account's bucket list (a us-east-1 CreateBucket would answer 200 OK over it and reset its access control lists), so CreateBucket was not sent" : `a bucket of that name already exists in ${via.preflightRegion}, where CreateBucket answers 200 OK over a bucket you own and resets its access control lists, so it was not sent`;
4695
- throw markNameCollision(new ProvisioningError(`Refusing to adopt S3 bucket ${this.shown(bucketName)} for ${displaySafe(logicalId)} (${resourceType}): its BucketName is set explicitly and ${evidence}. S3 does not say who made it, so cdkd cannot tell it from one made outside this stack, and CloudFormation fails the same create. Nothing was applied to it. Choose a bucket name no other bucket holds. If no record of this stack holds that bucket and it is yours (left by an interrupted deploy, or kept by DeletionPolicy: Retain), delete it, or adopt it with \`cdkd import\`, and re-run; confirm it is yours first, since adopting a bucket hands it to this stack's \`cdkd destroy\`.`, resourceType, logicalId, bucketName, "cause" in via ? via.cause : void 0));
4721
+ throw markNameCollision(new ProvisioningError(`Refusing to adopt S3 bucket ${this.shown(bucketName)} for ${displaySafe(logicalId)} (${resourceType}): its BucketName is set explicitly and ${evidence}. S3 does not say who made it, so cdkd cannot tell it from one made outside this stack, and CloudFormation fails the same create. Nothing was applied to it. Choose a bucket name no other bucket holds. If no record of this stack holds that bucket and it is yours (left by an interrupted deploy, or kept by DeletionPolicy: Retain), delete it, or adopt it with ${proseQuoted(cdkdRemedy("cdkd import"), "`")}, and re-run; confirm it is yours first, since adopting a bucket hands it to this stack's \`cdkd destroy\`.`, resourceType, logicalId, bucketName, "cause" in via ? via.cause : void 0));
4696
4722
  }
4697
4723
  async function ownsBucketNamed(bucketName) {
4698
4724
  const listed = await this.listOwnedBucket(bucketName);
@@ -4817,7 +4843,7 @@ async function assertStateBucketRegion(operation, logicalId, resourceType, physi
4817
4843
  }
4818
4844
  if (probe.region === wantRegion) return;
4819
4845
  const consequence = operation === "update" ? `Applying this stack's bucket configuration would reconfigure a bucket in ${probe.region} that this stack does not own the definition of.` : `Deleting it would destroy a bucket in ${probe.region} that this stack's region does not contain, and that deletion cannot be undone.`;
4820
- const remedy = operation === "update" ? `Confirm which bucket you mean, then either rerun this stack against ${probe.region}, or — if the recorded id is stale — drop this bucket's record with 'cdkd orphan <StackPath>/<Path/To/Bucket>', which removes only that record (and rewrites the references to it) without touching any AWS resource, then deploy again to create the bucket in this stack's region — first giving it a BucketName unique to that region if the template fixes this one, since S3 names are global.` : `Confirm which bucket you mean. If ${displaySafe(physicalId)} is genuinely yours to delete, delete it deliberately in ${probe.region}; if this record is simply stale, drop it without touching any AWS resource (<region> is this stack's region, not the bucket's) with ${stateOrphanRecordRemedy(context, logicalId)}.`;
4846
+ const remedy = operation === "update" ? `Confirm which bucket you mean, then either rerun this stack against ${probe.region}, or — if the recorded id is stale — drop this bucket's record with ${pasteableCommand("cdkd orphan", [{ literal: "'<StackPath>/<Path/To/Bucket>'" }]).command}, which removes only that record (and rewrites the references to it) without touching any AWS resource, then deploy again to create the bucket in this stack's region — first giving it a BucketName unique to that region if the template fixes this one, since S3 names are global.` : `Confirm which bucket you mean. If ${displaySafe(physicalId)} is genuinely yours to delete, delete it deliberately in ${probe.region}; if this record is simply stale, drop it without touching any AWS resource (<region> is this stack's region, not the bucket's) with ${stateOrphanRecordRemedy(context, logicalId)}.`;
4821
4847
  throw markNonRetryable(new ProvisioningError(`Refusing to ${operation} S3 bucket ${this.shown(physicalId)} for ${displaySafe(logicalId)} (${resourceType}): the bucket lives in ${probe.region}, while this stack's state is for ${wantRegion}. S3 bucket names are globally unique, so a state record can name a bucket in another region — records written before the create-path region guard can carry one. ${consequence} ${remedy}`, resourceType, logicalId, physicalId));
4822
4848
  }
4823
4849
  function announceUnverifiedBucketIdentity(operation, logicalId, physicalId, cause) {
@@ -6998,7 +7024,7 @@ var S3BucketPolicyProvider = class {
6998
7024
  };
6999
7025
  const holderId = ownPolicyHolder(logicalId, bucketName);
7000
7026
  const holder = holderId === void 0 ? void 0 : logicalIdShown(holderId);
7001
- if (holder !== void 0) refuse(`This stack's ${holder} already holds the policy on that bucket: a BucketPolicy construct moved or renamed gets a new logical id, which is created before the old one is deleted. Nothing was sent. ` + (getCurrentStackName()?.includes("~") === true ? "Deploy" : `Move the record with 'cdkd refactor', or deploy`) + ` the removal of ${holder} first. Do not delete or import the existing policy: the removal of ${holder} would then delete it, leaving the bucket with no policy.`);
7027
+ if (holder !== void 0) refuse(`This stack's ${holder} already holds the policy on that bucket: a BucketPolicy construct moved or renamed gets a new logical id, which is created before the old one is deleted. Nothing was sent. ` + (getCurrentStackName()?.includes("~") === true ? "Deploy" : `Move the record with ${proseQuoted(cdkdRemedy("cdkd refactor"))}, or deploy`) + ` the removal of ${holder} first. Do not delete or import the existing policy: the removal of ${holder} would then delete it, leaving the bucket with no policy.`);
7002
7028
  let livePolicy = existing.policy;
7003
7029
  for (let recheck = 0;; recheck++) {
7004
7030
  if (await this.isOwnLeftover(logicalId, bucketName, policyDoc, livePolicy, ownAttemptMayHaveLanded, lookup, bucketShown, mask)) return;
@@ -7017,7 +7043,7 @@ var S3BucketPolicyProvider = class {
7017
7043
  }
7018
7044
  const bucketArg = bucketShown === bucketName && isS3BucketName(bucketName) ? bucketName : "<bucketName>";
7019
7045
  const stackName = getCurrentStackName();
7020
- refuse(`cdkd does not overwrite it: PutBucketPolicy replaces the whole policy, so the statements its owner attached (a log-delivery service's grant, for example) would be dropped, and CloudFormation refuses this create the same way. Nothing was sent. Either remove the existing policy if nothing relies on it ('aws s3api delete-bucket-policy --bucket ${bucketArg}')${stackName !== void 0 && stackName.includes("~") ? "" : `, or merge its statements into this resource's PolicyDocument and adopt it into the stack with 'cdkd import ${stackName !== void 0 && isPasteableIdent(stackName) ? stackName : "<stackName>"} --resource ${remedyLogicalId(logicalId)}=${bucketArg}'`}, then re-deploy.`);
7046
+ refuse(`cdkd does not overwrite it: PutBucketPolicy replaces the whole policy, so the statements its owner attached (a log-delivery service's grant, for example) would be dropped, and CloudFormation refuses this create the same way. Nothing was sent. Either remove the existing policy if nothing relies on it ('aws s3api delete-bucket-policy --bucket ${bucketArg}')${stackName !== void 0 && stackName.includes("~") ? "" : `, or merge its statements into this resource's PolicyDocument and adopt it into the stack with ${proseQuoted(importRemedyCommand(stackName, `${remedyLogicalId(logicalId)}=${bucketArg}`))}`}, then re-deploy.`);
7021
7047
  }
7022
7048
  async isOwnLeftover(logicalId, bucketName, policyDoc, livePolicy, ownAttemptMayHaveLanded, lookup, bucketShown, mask) {
7023
7049
  if (ownAttemptMayHaveLanded && await this.livePolicyKey(livePolicy, policyDoc) === policyContentKey(policyDoc)) {
@@ -8015,7 +8041,7 @@ async function create$37(logicalId, resourceType, properties, context) {
8015
8041
  const cleanupFailure = describeAwsFailure(cleanupError);
8016
8042
  const cleanupHead = `Failed to clean up partially-created SNS topic ${logicalId} (${topicArn}): `;
8017
8043
  if (cleanupFailure.redacted) this.logger.debug(maskSecrets(`${cleanupHead}${cleanupFailure.detail}`));
8018
- warn(`${cleanupHead}${cleanupFailure.redacted ? `${cleanupFailure.summary} ` : `${cleanupFailure.detail}. `}Outside a rollback's re-create, the failed deploy's rollback journal records it for \`cdkd rollback --revert-failed\`; otherwise delete it yourself before the next deploy: ${pasteableAwsCommand(maskSecrets)`aws sns delete-topic --topic-arn ${topicArn}`.render()}`);
8044
+ warn(`${cleanupHead}${cleanupFailure.redacted ? `${cleanupFailure.summary} ` : `${cleanupFailure.detail}. `}Outside a rollback's re-create, the failed deploy's rollback journal records it for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}; otherwise delete it yourself before the next deploy: ${pasteableAwsCommand(maskSecrets)`aws sns delete-topic --topic-arn ${topicArn}`.render()}`);
8019
8045
  }
8020
8046
  throw markAuxiliaryFailure(innerError, logicalId);
8021
8047
  }
@@ -12420,7 +12446,7 @@ var LambdaWebFunctionRevisionProvider = class {
12420
12446
  retractCreatedResource(logicalId, resourceType, leftBehindArn);
12421
12447
  leftBehindArn = void 0;
12422
12448
  } catch (cleanupError) {
12423
- log.warn(safeMsg`Failed to delete partially-created Lambda web function revision ${logicalId}: ${describeAwsFailure(cleanupError).detail}. The failed deploy records it for \`cdkd rollback --revert-failed\`, or delete it by hand`);
12449
+ log.warn(safeMsg`Failed to delete partially-created Lambda web function revision ${logicalId}: ${describeAwsFailure(cleanupError).detail}. The failed deploy records it for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}, or delete it by hand`);
12424
12450
  }
12425
12451
  if (leftBehindArn) {
12426
12452
  markCreatedBeforeFailure(thrown, logicalId, resourceType, leftBehindArn);
@@ -14317,7 +14343,13 @@ async function applyGsiUpdates(physicalId, resourceType, logicalId, previousGsis
14317
14343
  adoptedHasMember = true;
14318
14344
  }
14319
14345
  if (adoptedHasMember) ops.push({ Update: adopted });
14320
- warn(`${this.indexScopeAt(name, physicalId, maskSecrets)} was adopted from AWS rather than created, so cdkd could not verify its KeySchema / Projection match the template. Run \`cdkd drift ${physicalId}\` to confirm, and \`cdkd drift --accept\` if AWS is the source of truth.`);
14346
+ const stack = getCurrentStackName()?.split("~")[0];
14347
+ const driftCommand = pasteableCommand("cdkd drift", [stack !== void 0 ? {
14348
+ value: stack,
14349
+ hole: "stack",
14350
+ opts: { patternMatched: true }
14351
+ } : { hole: "stack" }]).command;
14352
+ warn(`${this.indexScopeAt(name, physicalId, maskSecrets)} was adopted from AWS rather than created, so cdkd could not verify its KeySchema / Projection match the template. Run ${proseQuoted(driftCommand, "`")} to confirm, and ${proseQuoted(cdkdRemedy("cdkd drift", "--accept"), "`")} if AWS is the source of truth.`);
14321
14353
  continue;
14322
14354
  }
14323
14355
  this.warnRefusedWarmThroughput(this.indexScopeAt(name, physicalId, maskSecrets), gsi.WarmThroughput, maskSecrets);
@@ -14571,7 +14603,7 @@ function warnRefusedWarmThroughput(scope, value, maskSecrets) {
14571
14603
  function skipZeroCapacityIndexUpdate(indexName, physicalId, requested, maskSecrets) {
14572
14604
  if (!isZeroCapacityPlaceholder(requested)) return false;
14573
14605
  const warn = (message) => this.logger.warn(maskSecrets(message));
14574
- warn(`${this.indexScopeAt(indexName, physicalId, maskSecrets)}: the requested ProvisionedThroughput is {ReadCapacityUnits: 0, WriteCapacityUnits: 0}, which is AWS's on-demand placeholder rather than a capacity DynamoDB accepts (the minimum is 1), so no per-index throughput update was sent. This usually means the value came from a state record an older cdkd release wrote — a \`cdkd drift --revert\` of such a record, or a rollback replaying it. Re-run \`cdkd deploy\` (or \`cdkd drift --accept\`) to refresh the record.`);
14606
+ warn(`${this.indexScopeAt(indexName, physicalId, maskSecrets)}: the requested ProvisionedThroughput is {ReadCapacityUnits: 0, WriteCapacityUnits: 0}, which is AWS's on-demand placeholder rather than a capacity DynamoDB accepts (the minimum is 1), so no per-index throughput update was sent. This usually means the value came from a state record an older cdkd release wrote — a \`cdkd drift --revert\` of such a record, or a rollback replaying it. Re-run ${proseQuoted(cdkdRemedy("cdkd deploy"), "`")} (or ${proseQuoted(cdkdRemedy("cdkd drift", "--accept"), "`")}) to refresh the record.`);
14575
14607
  return true;
14576
14608
  }
14577
14609
  function warmThroughputOpFor(indexName, physicalId, desired, previous, live, maskSecrets) {
@@ -14593,7 +14625,7 @@ function warmThroughputOpFor(indexName, physicalId, desired, previous, live, mas
14593
14625
  warn(`${scope}: the requested WarmThroughput ${JSON.stringify(maskDeep(sendable, maskSecrets))} is lower than the ${JSON.stringify(maskDeep({
14594
14626
  ReadUnitsPerSecond: live?.WarmThroughput?.ReadUnitsPerSecond,
14595
14627
  WriteUnitsPerSecond: live?.WarmThroughput?.WriteUnitsPerSecond
14596
- }, maskSecrets))} DynamoDB currently holds for that index. Warm throughput only ever RISES with an index's traffic and cannot be lowered — AWS rejects the UpdateTable with "decreasing WarmThroughput is not supported" — so it was NOT sent and every other change on this table still applied. On a deploy this warning may be the only signal you get: a successful deploy re-captures AWS's current value as the drift baseline. If your template declares this index's WarmThroughput, set it to the value AWS holds (or remove it, which AWS treats as keeping the last-set value); if it does not, the value came from a cdkd state record and 'cdkd deploy' (or 'cdkd drift --accept') refreshes it.`);
14628
+ }, maskSecrets))} DynamoDB currently holds for that index. Warm throughput only ever RISES with an index's traffic and cannot be lowered — AWS rejects the UpdateTable with "decreasing WarmThroughput is not supported" — so it was NOT sent and every other change on this table still applied. On a deploy this warning may be the only signal you get: a successful deploy re-captures AWS's current value as the drift baseline. If your template declares this index's WarmThroughput, set it to the value AWS holds (or remove it, which AWS treats as keeping the last-set value); if it does not, the value came from a cdkd state record and ${proseQuoted(cdkdRemedy("cdkd deploy"))} (or ${proseQuoted(cdkdRemedy("cdkd drift", "--accept"))}) refreshes it.`);
14597
14629
  return;
14598
14630
  }
14599
14631
  return sendable;
@@ -16045,7 +16077,7 @@ async function create$33(logicalId, resourceType, properties, context) {
16045
16077
  identifier: logGroupName,
16046
16078
  maskSecrets: mask
16047
16079
  });
16048
- const manualStep = deleteCommand ? `Outside a rollback's re-create, the failed deploy's rollback journal records it for \`cdkd rollback --revert-failed\`; otherwise delete it yourself before the next deploy: ${deleteCommand}` : "Outside a rollback's re-create, the failed deploy's rollback journal records it for `cdkd rollback --revert-failed`; otherwise delete it yourself before the next deploy, via the console: the log group name cannot be reproduced safely on a command line.";
16080
+ const manualStep = deleteCommand ? `Outside a rollback's re-create, the failed deploy's rollback journal records it for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}; otherwise delete it yourself before the next deploy: ${deleteCommand}` : `Outside a rollback's re-create, the failed deploy's rollback journal records it for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}; otherwise delete it yourself before the next deploy, via the console: the log group name cannot be reproduced safely on a command line.`;
16049
16081
  const cleanupFailure = describeAwsFailure(cleanupError);
16050
16082
  const cleanupHead = `Failed to clean up partially-created log group ${displaySafe(logicalId)} (${displaySafe(mask(logGroupName))}): `;
16051
16083
  if (cleanupFailure.redacted) this.logger.debug(mask(`${cleanupHead}${cleanupFailure.detail}`));
@@ -19263,7 +19295,7 @@ async function applyUpdate$3(logicalId, physicalId, resourceType, properties, pr
19263
19295
  case "AWS::EC2::SecurityGroupIngress": return this.updateSecurityGroupIngress(logicalId, physicalId, resourceType, properties, previousProperties, context?.maskSecrets, context?.replayingState === true, context?.recordedAttributes);
19264
19296
  case "AWS::EC2::Instance": return this.updateInstance(logicalId, physicalId, resourceType, properties, previousProperties, context);
19265
19297
  case "AWS::EC2::NetworkAclEntry": return this.updateNetworkAclEntry(logicalId, physicalId, resourceType, properties, previousProperties, context);
19266
- case "AWS::EC2::SubnetNetworkAclAssociation": throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "AWS provides no in-place Update API for this EC2 sub-resource type; every property change requires Delete + Create. Re-deploy with cdkd deploy --replace, or destroy + redeploy");
19298
+ case "AWS::EC2::SubnetNetworkAclAssociation": throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS provides no in-place Update API for this EC2 sub-resource type; every property change requires Delete + Create. Re-deploy with ${deployReplaceCommand()}, or destroy + redeploy`);
19267
19299
  default: throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
19268
19300
  }
19269
19301
  }
@@ -19433,6 +19465,7 @@ async function createVpc(logicalId, resourceType, properties, context) {
19433
19465
  const vpcReplayWindow = replayedSendWindow(response, attemptStartMs);
19434
19466
  if (vpcReplayWindow !== void 0) await this.reportPossibleOrphanVpcs(logicalId, orphanMatch, desiredTags, vpcReplayWindow, context);
19435
19467
  let defaultSgId;
19468
+ let defaultNetworkAclId;
19436
19469
  try {
19437
19470
  if (properties["EnableDnsHostnames"] === true || properties["EnableDnsHostnames"] === "true") await this.ec2Client.send(new ModifyVpcAttributeCommand({
19438
19471
  VpcId: vpcId,
@@ -19455,6 +19488,17 @@ async function createVpc(logicalId, resourceType, properties, context) {
19455
19488
  } catch {
19456
19489
  this.logger.debug(`Failed to get default SG for VPC ${vpcId}`);
19457
19490
  }
19491
+ try {
19492
+ defaultNetworkAclId = (await this.ec2Client.send(new DescribeNetworkAclsCommand({ Filters: [{
19493
+ Name: "vpc-id",
19494
+ Values: [vpcId]
19495
+ }, {
19496
+ Name: "default",
19497
+ Values: ["true"]
19498
+ }] }))).NetworkAcls?.[0]?.NetworkAclId;
19499
+ } catch {
19500
+ this.logger.debug(safeMsg`Failed to get default network ACL for VPC ${vpcId}`);
19501
+ }
19458
19502
  } catch (innerError) {
19459
19503
  try {
19460
19504
  await this.ec2Client.send(new DeleteVpcCommand({ VpcId: vpcId }));
@@ -19473,7 +19517,8 @@ async function createVpc(logicalId, resourceType, properties, context) {
19473
19517
  attributes: definedAttributes({
19474
19518
  VpcId: vpcId,
19475
19519
  CidrBlock: cidrBlock || response.Vpc?.CidrBlock,
19476
- DefaultSecurityGroup: defaultSgId
19520
+ DefaultSecurityGroup: defaultSgId,
19521
+ DefaultNetworkAcl: defaultNetworkAclId
19477
19522
  })
19478
19523
  };
19479
19524
  } catch (error) {
@@ -20201,12 +20246,14 @@ async function getSubnetAttribute(physicalId, attributeName) {
20201
20246
  const associations = subnet.Ipv6CidrBlockAssociationSet ?? [];
20202
20247
  const blocks = associations.filter((a) => a.Ipv6CidrBlockState?.State === "associated" && a.Ipv6CidrBlock).map((a) => a.Ipv6CidrBlock);
20203
20248
  if (blocks.length > 0) return blocks;
20204
- if (associations.some((a) => a.Ipv6CidrBlockState?.State === "associating")) throw new Error(SUBNET_IPV6_STILL_ASSOCIATING);
20249
+ if (associations.some((a) => a.Ipv6CidrBlockState?.State === "associating")) throw new Error(subnetIpv6StillAssociating());
20205
20250
  return [];
20206
20251
  }
20207
20252
  return present(subnet[attributeName]);
20208
20253
  }
20209
- const SUBNET_IPV6_STILL_ASSOCIATING = "the subnet's IPv6 CIDR block is still associating; run cdkd orphan again once it is associated";
20254
+ function subnetIpv6StillAssociating() {
20255
+ return `the subnet's IPv6 CIDR block is still associating; run ${cdkdRemedy("cdkd orphan")} again once it is associated`;
20256
+ }
20210
20257
  function present(value) {
20211
20258
  return value === void 0 || value === null || value === "" ? void 0 : value;
20212
20259
  }
@@ -22590,7 +22637,7 @@ function planInstanceMemberUpdates(logicalId, physicalId, resourceType, properti
22590
22637
  } else if (!standInSkips("InstanceType")) plan.instanceType = requireConfigString(properties["InstanceType"], "", "AWS::EC2::Instance InstanceType");
22591
22638
  }
22592
22639
  const createOnlyChanged = INSTANCE_CREATE_ONLY_SENT.filter((key) => changed(key, (a, b) => sameInstanceCreateOnlySent(key, a, b)));
22593
- if (createOnlyChanged.length > 0) throw refusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, `replace the instance (cdkd deploy --replace). ${createOnlyChanged.join(", ")} can be set only when the instance is launched, and CloudFormation creates a new instance for this change`));
22640
+ if (createOnlyChanged.length > 0) throw refusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, `replace the instance (${deployReplaceCommand()}). ${createOnlyChanged.join(", ")} can be set only when the instance is launched, and CloudFormation creates a new instance for this change`));
22594
22641
  if (changed("Tenancy", (a, b) => a === b) && !standInSkips("Tenancy")) {
22595
22642
  const before = previousProperties["Tenancy"];
22596
22643
  const after = properties["Tenancy"];
@@ -22602,9 +22649,9 @@ function planInstanceMemberUpdates(logicalId, physicalId, resourceType, properti
22602
22649
  };
22603
22650
  else if (typeof before === "string" && typeof after === "string" && before !== "default" && after !== "default") {
22604
22651
  if (context?.replayingState === true) this.logger.warn(safeMsg`${logicalId} (${resourceType}): the rollback would change Tenancy ${before} -> ${after}, which cdkd does not apply; the instance keeps its current tenancy.`);
22605
- else throw refusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, safeMsg`cdkd does not change Tenancy ${before} -> ${after}. How CloudFormation applies a change between two non-default tenancies has not been measured (it may stop the instance and move it rather than replace it), so cdkd neither replaces the instance nor applies the change. Keep the current tenancy, or replace the instance explicitly with cdkd deploy --replace`));
22652
+ else throw refusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, safeMsg`cdkd does not change Tenancy ${before} -> ${after}. How CloudFormation applies a change between two non-default tenancies has not been measured (it may stop the instance and move it rather than replace it), so cdkd neither replaces the instance nor applies the change. Keep the current tenancy, or replace the instance explicitly with ${deployReplaceCommand()}`));
22606
22653
  } else if (context?.replayingState === true) this.logger.warn(safeMsg`${logicalId} (${resourceType}): the rollback would change Tenancy (${before === void 0 ? "unset" : before} -> ${after === void 0 ? "unset" : after}), which needs a new instance; the instance keeps its current tenancy.`);
22607
- else throw refusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, "replace the instance (cdkd deploy --replace). CloudFormation creates a new instance for a Tenancy change to or from default"));
22654
+ else throw refusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, `replace the instance (${deployReplaceCommand()}). CloudFormation creates a new instance for a Tenancy change to or from default`));
22608
22655
  }
22609
22656
  this.planInstanceStoppedMembers(logicalId, physicalId, resourceType, properties, context, plan, changed, standInSkips);
22610
22657
  if (changed("InstanceInitiatedShutdownBehavior", (a, b) => a === b)) {
@@ -22687,7 +22734,7 @@ function planInstanceStoppedMembers(logicalId, physicalId, resourceType, propert
22687
22734
  this.logger.warn(safeMsg`${logicalId} (${resourceType}): the state being restored does not declare ${key}; the rollback leaves it at its current AWS value.`);
22688
22735
  continue;
22689
22736
  }
22690
- throw refusedBeforeApplying(new ProvisioningError(safeMsg`${logicalId} (${resourceType}): ${key} was removed from the template. EC2 has no call that clears it on an existing instance, and CloudFormation does not document what a removal does, so cdkd does not guess a value. Keep it declared (its current value leaves the instance unchanged), or replace the instance with cdkd deploy --replace. The instance was not updated.`, resourceType, logicalId, physicalId));
22737
+ throw refusedBeforeApplying(new ProvisioningError(safeMsg`${logicalId} (${resourceType}): ${key} was removed from the template. EC2 has no call that clears it on an existing instance, and CloudFormation does not document what a removal does, so cdkd does not guess a value. Keep it declared (its current value leaves the instance unchanged), or replace the instance with ${deployReplaceCommand()}. The instance was not updated.`, resourceType, logicalId, physicalId));
22691
22738
  }
22692
22739
  if (standInSkips(key)) continue;
22693
22740
  const refusal = instanceIdMemberRefusal(properties, key, resourceType);
@@ -22771,7 +22818,7 @@ function planPrivateDnsNameOptions(logicalId, physicalId, resourceType, properti
22771
22818
  this.logger.warn(safeMsg`${logicalId} (${resourceType}): the state being restored does not declare PrivateDnsNameOptions, which needs a new instance; the rollback leaves the instance's hostname options as they are.`);
22772
22819
  return;
22773
22820
  }
22774
- throw refusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, "replace the instance (cdkd deploy --replace). CloudFormation creates a new instance when PrivateDnsNameOptions is removed"));
22821
+ throw refusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, `replace the instance (${deployReplaceCommand()}). CloudFormation creates a new instance when PrivateDnsNameOptions is removed`));
22775
22822
  }
22776
22823
  if (standInSkips(KEY)) return;
22777
22824
  const refusal = privateDnsNameOptionsRefusal(after, resourceType);
@@ -22820,12 +22867,12 @@ async function prepareInstanceMemberUpdates(logicalId, physicalId, resourceType,
22820
22867
  const live = instance?.Placement?.Tenancy;
22821
22868
  if (live !== tenancy.value) {
22822
22869
  if (tenancy.replaying) this.logger.warn(safeMsg`${logicalId} (${resourceType}): the state being restored declares Tenancy ${tenancy.value}, but the instance has ${live ?? "an unreadable tenancy"}; the rollback leaves it as it is.`);
22823
- else throw markRefusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, safeMsg`the template declares Tenancy ${tenancy.value}, the instance has ${live ?? "a tenancy DescribeInstances did not report"}, and the state record does not say which tenancy it was launched with. Changing it needs a new instance: replace it with cdkd deploy --replace, or declare Tenancy ${live ?? "as the instance has it"}`));
22870
+ else throw markRefusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, safeMsg`the template declares Tenancy ${tenancy.value}, the instance has ${live ?? "a tenancy DescribeInstances did not report"}, and the state record does not say which tenancy it was launched with. Changing it needs a new instance: replace it with ${deployReplaceCommand()}, or declare Tenancy ${live ?? "as the instance has it"}`));
22824
22871
  }
22825
22872
  }
22826
22873
  if (needsStop) {
22827
22874
  const members = stopMembers.join(" and ");
22828
- if (instance?.RootDeviceType === "instance-store") throw markRefusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, `${members} can change only on a stopped instance, and an instance-store-backed instance cannot be stopped; ${plan.instanceType !== void 0 || plan.userData !== void 0 ? "CloudFormation replaces it" : "it needs a new instance"}. Re-deploy with cdkd deploy --replace.`));
22875
+ if (instance?.RootDeviceType === "instance-store") throw markRefusedBeforeApplying(new ResourceUpdateNotSupportedError(resourceType, logicalId, `${members} can change only on a stopped instance, and an instance-store-backed instance cannot be stopped; ${plan.instanceType !== void 0 || plan.userData !== void 0 ? "CloudFormation replaces it" : "it needs a new instance"}. Re-deploy with ${deployReplaceCommand()}.`));
22829
22876
  const state = instance?.State?.Name;
22830
22877
  if (!STOPPABLE_INSTANCE_STATES.has(state ?? "")) throw refusedBeforeApplying(new ProvisioningError(`${logicalId} (${resourceType}): instance ${physicalId} is ${state ?? "not returned by DescribeInstances"}, so its ${members} cannot be changed. The instance was not updated.`, resourceType, logicalId, physicalId));
22831
22878
  }
@@ -23720,7 +23767,7 @@ async function updateNetworkAclEntry(logicalId, physicalId, resourceType, proper
23720
23767
  const egress = properties["Egress"] ?? false;
23721
23768
  const parts = physicalId.split("|");
23722
23769
  if (parts.length !== 3) throw new ProvisioningError(compositeIdFormatMessage(EC2_NETWORK_ACL_ENTRY_ID_FORMAT, logicalId, physicalId), resourceType, logicalId, physicalId);
23723
- if (typeof networkAclId !== "string" || ruleNumber === void 0 || parts[0] !== networkAclId || parts[1] !== String(ruleNumber) || parts[2] !== String(egress)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "NetworkAclId, RuleNumber and Egress identify the entry and are createOnly; a change to any of them requires a new entry. Re-deploy with cdkd deploy --replace, or destroy + redeploy");
23770
+ if (typeof networkAclId !== "string" || ruleNumber === void 0 || parts[0] !== networkAclId || parts[1] !== String(ruleNumber) || parts[2] !== String(egress)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `NetworkAclId, RuleNumber and Egress identify the entry and are createOnly; a change to any of them requires a new entry. Re-deploy with ${deployReplaceCommand()}, or destroy + redeploy`);
23724
23771
  if (properties["Protocol"] == null || !properties["RuleAction"]) throw new ProvisioningError(`Protocol and RuleAction are required for NetworkAclEntry ${logicalId}`, resourceType, logicalId, physicalId);
23725
23772
  const preferLegacyIcmp = properties["Icmp"] !== void 0 && properties["IcmpTypeCode"] !== void 0 && JSON.stringify(properties["Icmp"]) === JSON.stringify(previousProperties["Icmp"]) && JSON.stringify(properties["IcmpTypeCode"]) !== JSON.stringify(previousProperties["IcmpTypeCode"]);
23726
23773
  const ruleParams = networkAclEntryRuleParams(properties, preferLegacyIcmp);
@@ -27546,7 +27593,7 @@ async function update$29(logicalId, physicalId, resourceType, properties, previo
27546
27593
  case "AWS::ApiGatewayV2::Integration": return this.updateIntegration(logicalId, physicalId, resourceType, properties, previousProperties, log, context?.desiredFromAwsReadback === true, context);
27547
27594
  case "AWS::ApiGatewayV2::Route": return this.updateRoute(logicalId, physicalId, resourceType, properties, previousProperties, log, context?.desiredFromAwsReadback === true);
27548
27595
  case "AWS::ApiGatewayV2::Authorizer": return this.updateAuthorizer(logicalId, physicalId, resourceType, properties, previousProperties, log, context);
27549
- default: throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "Unsupported API Gateway V2 resource type for in-place update in cdkd; re-deploy with cdkd deploy --replace, or destroy + redeploy the stack.");
27596
+ default: throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `Unsupported API Gateway V2 resource type for in-place update in cdkd; re-deploy with ${deployReplaceCommand()}, or destroy + redeploy the stack.`);
27550
27597
  }
27551
27598
  }
27552
27599
  async function deleteImpl$28(logicalId, physicalId, resourceType, properties, context) {
@@ -27779,7 +27826,7 @@ async function readApi(physicalId) {
27779
27826
  }
27780
27827
  }
27781
27828
  async function updateApi(logicalId, physicalId, resourceType, properties, previousProperties, log) {
27782
- if (properties["ProtocolType"] !== void 0 && previousProperties["ProtocolType"] !== void 0 && properties["ProtocolType"] !== previousProperties["ProtocolType"]) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "ProtocolType is immutable on AWS::ApiGatewayV2::Api; re-deploy with cdkd deploy --replace");
27829
+ if (properties["ProtocolType"] !== void 0 && previousProperties["ProtocolType"] !== void 0 && properties["ProtocolType"] !== previousProperties["ProtocolType"]) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `ProtocolType is immutable on AWS::ApiGatewayV2::Api; re-deploy with ${deployReplaceCommand()}`);
27783
27830
  const tagDiff = this.planTags(properties, previousProperties, resourceType, logicalId, physicalId, log);
27784
27831
  const input = { ApiId: physicalId };
27785
27832
  let changed = false;
@@ -27939,14 +27986,14 @@ async function readStage(physicalId, properties) {
27939
27986
  async function updateStage(logicalId, physicalId, resourceType, properties, previousProperties, log, restoreFromAws = false) {
27940
27987
  const apiId = properties["ApiId"] ?? previousProperties["ApiId"];
27941
27988
  if (!apiId) throw new ProvisioningError(`ApiId is required to update Stage ${logicalId}`, resourceType, logicalId, physicalId);
27942
- if (properties["ApiId"] !== void 0 && previousProperties["ApiId"] !== void 0 && properties["ApiId"] !== previousProperties["ApiId"]) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "ApiId is immutable on AWS::ApiGatewayV2::Stage; re-deploy with cdkd deploy --replace");
27989
+ if (properties["ApiId"] !== void 0 && previousProperties["ApiId"] !== void 0 && properties["ApiId"] !== previousProperties["ApiId"]) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `ApiId is immutable on AWS::ApiGatewayV2::Stage; re-deploy with ${deployReplaceCommand()}`);
27943
27990
  if (properties["StageName"] !== void 0 && previousProperties["StageName"] !== void 0 && properties["StageName"] !== previousProperties["StageName"] && !await unchangedBehindSecretReference({
27944
27991
  resourceType,
27945
27992
  key: "StageName",
27946
27993
  desired: properties["StageName"],
27947
27994
  previous: previousProperties["StageName"],
27948
27995
  physicalName: physicalId
27949
- })) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "StageName is immutable on AWS::ApiGatewayV2::Stage; re-deploy with cdkd deploy --replace");
27996
+ })) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `StageName is immutable on AWS::ApiGatewayV2::Stage; re-deploy with ${deployReplaceCommand()}`);
27950
27997
  const tagDiff = this.planTags(properties, previousProperties, resourceType, logicalId, physicalId, log);
27951
27998
  const input = {
27952
27999
  ApiId: apiId,
@@ -28165,7 +28212,7 @@ async function readIntegration(physicalId, properties) {
28165
28212
  async function updateIntegration(logicalId, physicalId, resourceType, properties, previousProperties, log, restoreFromAws = false, context) {
28166
28213
  const apiId = properties["ApiId"] ?? previousProperties["ApiId"];
28167
28214
  if (!apiId) throw new ProvisioningError(`ApiId is required to update Integration ${logicalId}`, resourceType, logicalId, physicalId);
28168
- if (properties["ApiId"] !== void 0 && previousProperties["ApiId"] !== void 0 && properties["ApiId"] !== previousProperties["ApiId"]) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "ApiId is immutable on AWS::ApiGatewayV2::Integration; re-deploy with cdkd deploy --replace");
28215
+ if (properties["ApiId"] !== void 0 && previousProperties["ApiId"] !== void 0 && properties["ApiId"] !== previousProperties["ApiId"]) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `ApiId is immutable on AWS::ApiGatewayV2::Integration; re-deploy with ${deployReplaceCommand()}`);
28169
28216
  const input = {
28170
28217
  ApiId: apiId,
28171
28218
  IntegrationId: physicalId
@@ -28385,7 +28432,7 @@ async function readRoute(physicalId, properties) {
28385
28432
  async function updateRoute(logicalId, physicalId, resourceType, properties, previousProperties, log, restoreFromAws = false) {
28386
28433
  const apiId = properties["ApiId"] ?? previousProperties["ApiId"];
28387
28434
  if (!apiId) throw new ProvisioningError(`ApiId is required to update Route ${logicalId}`, resourceType, logicalId, physicalId);
28388
- if (properties["ApiId"] !== void 0 && previousProperties["ApiId"] !== void 0 && properties["ApiId"] !== previousProperties["ApiId"]) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "ApiId is immutable on AWS::ApiGatewayV2::Route; re-deploy with cdkd deploy --replace");
28435
+ if (properties["ApiId"] !== void 0 && previousProperties["ApiId"] !== void 0 && properties["ApiId"] !== previousProperties["ApiId"]) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `ApiId is immutable on AWS::ApiGatewayV2::Route; re-deploy with ${deployReplaceCommand()}`);
28389
28436
  const input = {
28390
28437
  ApiId: apiId,
28391
28438
  RouteId: physicalId
@@ -28603,7 +28650,7 @@ async function updateAuthorizer(logicalId, physicalId, resourceType, properties,
28603
28650
  properties = withRemovalDefaults(this.removalDefaults, resourceType, properties, previousProperties, context);
28604
28651
  const apiId = properties["ApiId"] ?? previousProperties["ApiId"];
28605
28652
  if (!apiId) throw new ProvisioningError(`ApiId is required to update Authorizer ${logicalId}`, resourceType, logicalId, physicalId);
28606
- if (properties["ApiId"] !== void 0 && previousProperties["ApiId"] !== void 0 && properties["ApiId"] !== previousProperties["ApiId"]) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "ApiId is immutable on AWS::ApiGatewayV2::Authorizer; re-deploy with cdkd deploy --replace");
28653
+ if (properties["ApiId"] !== void 0 && previousProperties["ApiId"] !== void 0 && properties["ApiId"] !== previousProperties["ApiId"]) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `ApiId is immutable on AWS::ApiGatewayV2::Authorizer; re-deploy with ${deployReplaceCommand()}`);
28607
28654
  const input = {
28608
28655
  ApiId: apiId,
28609
28656
  AuthorizerId: physicalId
@@ -29477,7 +29524,7 @@ async function create$27(logicalId, resourceType, properties, context) {
29477
29524
  } catch (error) {
29478
29525
  if (error instanceof DistributionAlreadyExists || error?.name === "DistributionAlreadyExists") {
29479
29526
  const cause = error instanceof Error ? error : void 0;
29480
- throw markNonRetryable(new ProvisioningError(maskSecrets(`Failed to create CloudFront Distribution ${logicalId}: CloudFront refused the create because this deploy's CallerReference had been used before, which means an EARLIER attempt of this same create succeeded and cdkd never received its response. That distribution is LIVE, is not in cdkd state, and 'cdkd destroy' will not remove it — it bills until you delete it by hand. CloudFront does not return CallerReference from ListDistributions, so find it with 'aws cloudfront list-distributions' and match on ${this.orphanSearchHint(properties, maskSecrets)}; then disable and delete it (or import it with 'cdkd import') before re-running. The AWS error is on this error's cause.`), resourceType, logicalId, void 0, cause));
29527
+ throw markNonRetryable(new ProvisioningError(maskSecrets(`Failed to create CloudFront Distribution ${logicalId}: CloudFront refused the create because this deploy's CallerReference had been used before, which means an EARLIER attempt of this same create succeeded and cdkd never received its response. That distribution is LIVE, is not in cdkd state, and 'cdkd destroy' will not remove it — it bills until you delete it by hand. CloudFront does not return CallerReference from ListDistributions, so find it with 'aws cloudfront list-distributions' and match on ${this.orphanSearchHint(properties, maskSecrets)}; then disable and delete it (or import it with ${proseQuoted(cdkdRemedy("cdkd import"))}) before re-running. The AWS error is on this error's cause.`), resourceType, logicalId, void 0, cause));
29481
29528
  }
29482
29529
  const cause = error instanceof Error ? error : void 0;
29483
29530
  throw this.wrapCaughtError(maskSecrets, error, (text) => new ProvisioningError(`Failed to create CloudFront Distribution ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
@@ -31733,7 +31780,7 @@ async function updateTaskDefinition(logicalId, physicalId, resourceType, propert
31733
31780
  movedOutsideTags = true;
31734
31781
  break;
31735
31782
  }
31736
- if (movedOutsideTags) throw new ResourceUpdateNotSupportedError("AWS::ECS::TaskDefinition", logicalId, "ECS TaskDefinition revisions are immutable on AWS — there is no UpdateTaskDefinition API; every change but Tags registers a new revision via RegisterTaskDefinition. Re-deploy with cdkd deploy --replace, or destroy + redeploy the stack.");
31783
+ if (movedOutsideTags) throw new ResourceUpdateNotSupportedError("AWS::ECS::TaskDefinition", logicalId, `ECS TaskDefinition revisions are immutable on AWS — there is no UpdateTaskDefinition API; every change but Tags registers a new revision via RegisterTaskDefinition. Re-deploy with ${deployReplaceCommand()}, or destroy + redeploy the stack.`);
31737
31784
  refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
31738
31785
  log.debug(`Updating tags of ECS task definition ${logicalId}: ${physicalId}`);
31739
31786
  try {
@@ -31993,7 +32040,7 @@ async function updateService$1(logicalId, physicalId, resourceType, properties,
31993
32040
  physicalName: recordedServiceNames(physicalId).service
31994
32041
  })) throw new ProvisioningError(`Cannot update ServiceName for ECS service ${logicalId} (immutable property, requires replacement)`, resourceType, logicalId, physicalId);
31995
32042
  const previousLaunchType = previousProperties["LaunchType"];
31996
- if ((previousLaunchType != null || desiredFromAwsReadback) && ecsServiceLaunchTypeSetOrChanged(previousLaunchType, properties["LaunchType"])) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, desiredFromAwsReadback ? "UpdateService cannot change a service launch type, so drift --revert cannot restore it. Destroy + redeploy the stack to restore it, or run cdkd drift --accept to keep the live value" : "UpdateService cannot change a service launch type; CloudFormation replaces the service. Re-deploy with cdkd deploy --replace, or destroy + redeploy the stack");
32043
+ if ((previousLaunchType != null || desiredFromAwsReadback) && ecsServiceLaunchTypeSetOrChanged(previousLaunchType, properties["LaunchType"])) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, desiredFromAwsReadback ? `UpdateService cannot change a service launch type, so drift --revert cannot restore it. Destroy + redeploy the stack to restore it, or run ${cdkdRemedy("cdkd drift", "--accept")} to keep the live value` : `UpdateService cannot change a service launch type; CloudFormation replaces the service. Re-deploy with ${deployReplaceCommand()}, or destroy + redeploy the stack`);
31997
32044
  let deploymentControllerType;
31998
32045
  try {
31999
32046
  deploymentControllerType = readConfigString(properties["DeploymentController"], "Type", "ECS", "AWS::ECS::Service DeploymentController");
@@ -33801,14 +33848,14 @@ async function updateLoadBalancer(logicalId, physicalId, resourceType, propertie
33801
33848
  if (immutableChanged) {
33802
33849
  const remedy = this.normalizeAttributes(previousProperties["LoadBalancerAttributes"]).some((a) => a.Key === "deletion_protection.enabled" && isTruthyCfnBoolean(a.Value)) ? protectedReplacementAdvice({
33803
33850
  evidence: "cdkd's recorded properties for this load balancer carry LoadBalancerAttributes deletion_protection.enabled=true",
33804
- replaceFlags: "cdkd deploy --replace",
33851
+ replaceFlags: deployReplaceCommand(),
33805
33852
  disable: {
33806
33853
  before: "aws elbv2 modify-load-balancer-attributes --load-balancer-arn",
33807
33854
  identifier: physicalId,
33808
33855
  after: "--attributes Key=deletion_protection.enabled,Value=false",
33809
33856
  maskSecrets
33810
33857
  }
33811
- }) : "For Name / Type / Scheme re-deploy with cdkd deploy --replace, or destroy + redeploy the stack.";
33858
+ }) : `For Name / Type / Scheme re-deploy with ${deployReplaceCommand()}, or destroy + redeploy the stack.`;
33812
33859
  throw new ResourceUpdateNotSupportedError("AWS::ElasticLoadBalancingV2::LoadBalancer", logicalId, "ELBv2 LoadBalancer Name / Type / Scheme are immutable on AWS — none of the ELBv2 Modify* / Set* APIs accept these fields; they are fixed at creation. cdkd handles LoadBalancerAttributes / Subnets / SubnetMappings / SecurityGroups / IpAddressType / Tags in-place. " + remedy);
33813
33860
  }
33814
33861
  const removedLogKeys = [];
@@ -33985,7 +34032,7 @@ async function updateTargetGroup(logicalId, physicalId, resourceType, properties
33985
34032
  if (coerce) return (next !== void 0 ? Number(next) : void 0) !== (prev !== void 0 ? Number(prev) : void 0);
33986
34033
  return JSON.stringify(next) !== JSON.stringify(prev);
33987
34034
  };
33988
- for (const [immutableKey, coerce] of [["IpAddressType", false], ["TargetControlPort", true]]) if (immutableChanged(immutableKey, coerce)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `ELBv2 TargetGroup ${immutableKey} is immutable on AWS — no Modify* API accepts it; it is fixed at creation. Re-deploy with cdkd deploy --replace, or destroy + redeploy the stack.`);
34035
+ for (const [immutableKey, coerce] of [["IpAddressType", false], ["TargetControlPort", true]]) if (immutableChanged(immutableKey, coerce)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `ELBv2 TargetGroup ${immutableKey} is immutable on AWS — no Modify* API accepts it; it is fixed at creation. Re-deploy with ${deployReplaceCommand()}, or destroy + redeploy the stack.`);
33989
34036
  const { newTargets, oldTargets } = await this.readUpdateTargets(logicalId, physicalId, resourceType, properties["Targets"], previousProperties["Targets"], properties["Port"]);
33990
34037
  try {
33991
34038
  const rawMatcher = properties["Matcher"];
@@ -34153,7 +34200,7 @@ async function createListener(logicalId, resourceType, properties, maskSecrets)
34153
34200
  this.logger.warn(maskerOrIdentity(maskSecrets)(skippedCleanupText(heldBefore, `Listener ${logicalId} (${listenerArn})`, pasteableAwsCommand(maskSecrets)`aws elbv2 delete-listener --listener-arn ${listenerArn}`.render())));
34154
34201
  throw markAuxiliaryFailure(innerError, logicalId);
34155
34202
  }
34156
- if (isInterruptedWaitError(innerError)) this.logger.warn(maskerOrIdentity(maskSecrets)(`Interrupted after creating Listener ${logicalId} (${listenerArn}) but before its attributes were applied. Nothing in cdkd state refers to it, so cdkd is deleting it now — left behind it would fail the next deploy with DuplicateListener and destroy could not reach it. If that delete fails, outside a rollback's re-create, the failed deploy's rollback journal records it for \`cdkd rollback --revert-failed\`; otherwise remove it yourself: ${pasteableAwsCommand(maskSecrets)`aws elbv2 delete-listener --listener-arn ${listenerArn}`.render()}`));
34203
+ if (isInterruptedWaitError(innerError)) this.logger.warn(maskerOrIdentity(maskSecrets)(`Interrupted after creating Listener ${logicalId} (${listenerArn}) but before its attributes were applied. Nothing in cdkd state refers to it, so cdkd is deleting it now — left behind it would fail the next deploy with DuplicateListener and destroy could not reach it. If that delete fails, outside a rollback's re-create, the failed deploy's rollback journal records it for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}; otherwise remove it yourself: ${pasteableAwsCommand(maskSecrets)`aws elbv2 delete-listener --listener-arn ${listenerArn}`.render()}`));
34157
34204
  try {
34158
34205
  await this.getClient().send(new DeleteListenerCommand({ ListenerArn: listenerArn }));
34159
34206
  retractCreatedResource(logicalId, resourceType, listenerArn);
@@ -34161,7 +34208,7 @@ async function createListener(logicalId, resourceType, properties, maskSecrets)
34161
34208
  } catch (cleanupError) {
34162
34209
  leftBehindArn = listenerArn;
34163
34210
  const listenerCleanupHead = `Failed to clean up partially-created Listener ${logicalId} (${listenerArn}): `;
34164
- this.logger.warn(`${listenerCleanupHead}${this.cleanupFailureText(listenerCleanupHead, cleanupError, maskSecrets)} Outside a rollback's re-create, the failed deploy's rollback journal records it for \`cdkd rollback --revert-failed\`; otherwise delete it yourself before the next deploy: ${pasteableAwsCommand(maskSecrets)`aws elbv2 delete-listener --listener-arn ${listenerArn}`.render()}`);
34211
+ this.logger.warn(`${listenerCleanupHead}${this.cleanupFailureText(listenerCleanupHead, cleanupError, maskSecrets)} Outside a rollback's re-create, the failed deploy's rollback journal records it for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}; otherwise delete it yourself before the next deploy: ${pasteableAwsCommand(maskSecrets)`aws elbv2 delete-listener --listener-arn ${listenerArn}`.render()}`);
34165
34212
  }
34166
34213
  throw markAuxiliaryFailure(innerError, logicalId);
34167
34214
  }
@@ -34309,7 +34356,7 @@ function diffAttributeBag(bag, logicalId, desired, previous, removalValue, fromR
34309
34356
  const them = one ? "it" : "them";
34310
34357
  const be = one ? "is" : "are";
34311
34358
  const theValue = one ? "the value" : "the values";
34312
- this.logger.warn(safeMsg`${logicalId}: AWS reports ${bag} ${noun} ${keys}, which the recorded baseline holds no value for. No Elastic Load Balancing call removes an attribute key, so the revert leaves ${values} in place, and 'cdkd drift' keeps reporting ${them}. If ${values} ${be} what you intend, run 'cdkd drift --accept' to record ${them}; otherwise declare ${theValue} in the template and deploy.`);
34359
+ this.logger.warn(safeMsg`${logicalId}: AWS reports ${bag} ${noun} ${keys}, which the recorded baseline holds no value for. No Elastic Load Balancing call removes an attribute key, so the revert leaves ${values} in place, and 'cdkd drift' keeps reporting ${them}. If ${values} ${be} what you intend, run ${proseQuoted(cdkdRemedy("cdkd drift", "--accept"))} to record ${them}; otherwise declare ${theValue} in the template and deploy.`);
34313
34360
  }
34314
34361
  return submitted;
34315
34362
  }
@@ -37169,7 +37216,7 @@ async function detachFromGlobalCluster(logicalId, physicalId, globalClusterId, {
37169
37216
  cluster = await this.describeDBCluster(physicalId);
37170
37217
  }
37171
37218
  if (cluster === void 0) return false;
37172
- if (beforeDelete && cluster.DeletionProtection === true) throw new GlobalClusterDetachError(safeMsg`${physicalId} has deletion protection on, so cdkd did not detach it from global cluster ${globalClusterId}; turn it off (cdkd destroy --remove-protection does) and re-run`);
37219
+ if (beforeDelete && cluster.DeletionProtection === true) throw new GlobalClusterDetachError(safeMsg`${physicalId} has deletion protection on, so cdkd did not detach it from global cluster ${globalClusterId}; turn it off (${cdkdRemedy("cdkd destroy", "--remove-protection")} does) and re-run`);
37173
37220
  const clusterArn = cluster.DBClusterArn;
37174
37221
  if (typeof clusterArn !== "string" || clusterArn === "") throw new GlobalClusterDetachError(safeMsg`could not read the ARN of ${physicalId} to detach it from global cluster ${globalClusterId}`);
37175
37222
  const startTime = Date.now();
@@ -37366,7 +37413,7 @@ async function waitForApplied(logicalId, applied, read, maxWaitMs = SETTLE_MAX_W
37366
37413
  if (pending.length === 0) return;
37367
37414
  if (Date.now() - startTime + delay >= capMs) {
37368
37415
  const keys = pending.map(([key]) => key).join(", ");
37369
- this.logger.warn(safeMsg`${logicalId}: the new ${keys} did not read back when cdkd stopped waiting; AWS accepted the change, so cdkd drift may report the old value as the baseline. Once it applies, run cdkd drift --accept.`);
37416
+ this.logger.warn(safeMsg`${logicalId}: the new ${keys} did not read back when cdkd stopped waiting; AWS accepted the change, so cdkd drift may report the old value as the baseline. Once it applies, run ${cdkdRemedy("cdkd drift", "--accept")}.`);
37370
37417
  return;
37371
37418
  }
37372
37419
  await this.sleep(delay);
@@ -38622,7 +38669,7 @@ async function ensureAcceleratedRecoveryDisabledForDelete(physicalId, logicalId,
38622
38669
  await new Promise((resolve) => setTimeout(resolve, tick));
38623
38670
  }
38624
38671
  }
38625
- throw new ProvisioningError(`Timed out after ${timeoutMs}ms waiting for AcceleratedRecoveryStatus to reach ${label} on hosted zone ${logicalIdShown(logicalId)} ${isPlainImportValue(physicalId) ? `(${physicalId})` : VALUE_NOT_SHOWN}; re-run \`cdkd state destroy\` or disable manually via ${pasteableAwsCommand()`aws route53 update-hosted-zone-features --hosted-zone-id ${physicalId} --no-enable-accelerated-recovery`.render()}`, "AWS::Route53::HostedZone", logicalId, physicalId);
38672
+ throw new ProvisioningError(`Timed out after ${timeoutMs}ms waiting for AcceleratedRecoveryStatus to reach ${label} on hosted zone ${logicalIdShown(logicalId)} ${isPlainImportValue(physicalId) ? `(${physicalId})` : VALUE_NOT_SHOWN}; re-run ${proseQuoted(cdkdRemedy("cdkd state destroy"), "`")} or disable manually via ${pasteableAwsCommand()`aws route53 update-hosted-zone-features --hosted-zone-id ${physicalId} --no-enable-accelerated-recovery`.render()}`, "AWS::Route53::HostedZone", logicalId, physicalId);
38626
38673
  };
38627
38674
  let current = await readStatus();
38628
38675
  if (current === void 0 || current === "DISABLED") return;
@@ -39358,8 +39405,13 @@ async function hostedZoneImportAttributes(zoneId, logicalId) {
39358
39405
  if (error instanceof Error && error.name === "NoSuchHostedZone") return null;
39359
39406
  const zoneShown = isPlainImportValue(zoneId) ? zoneId : VALUE_NOT_SHOWN;
39360
39407
  const zoneArg = isPasteableIdent(zoneId) ? zoneId : commandHole("hostedZoneId");
39408
+ const importCommand = pasteableCommand("cdkd import", [
39409
+ { literal: "--resource" },
39410
+ { literal: `${remedyLogicalId(logicalId)}=${zoneArg}` },
39411
+ { literal: "--force" }
39412
+ ]).command;
39361
39413
  const head = `Imported hosted zone ${zoneShown} but could not read its NameServers: `;
39362
- this.logger.warn(head + `${this.warnFailureText(head, error, void 0)}\nThe zone is adopted without them (any attributes already in state for this zone are kept). Re-run \`cdkd import --resource ${remedyLogicalId(logicalId)}=${zoneArg} --force\` once the permission is granted, or make a template change that forces an UPDATE — a plain \`cdkd deploy\` does NOT heal the record, because an unchanged zone is NO_CHANGE and never calls update().`);
39414
+ this.logger.warn(head + `${this.warnFailureText(head, error, void 0)}\nThe zone is adopted without them (any attributes already in state for this zone are kept). Re-run ${proseQuoted(importCommand, "`")} once the permission is granted, or make a template change that forces an UPDATE — a plain ${proseQuoted(cdkdRemedy("cdkd deploy"), "`")} does NOT heal the record, because an unchanged zone is NO_CHANGE and never calls update().`);
39363
39415
  return {};
39364
39416
  }
39365
39417
  }
@@ -40904,7 +40956,7 @@ async function reconcileSchemaCustomAttributes(logicalId, physicalId, resourceTy
40904
40956
  }));
40905
40957
  }
40906
40958
  function replacementRemedy(physicalId, deletionProtected) {
40907
- const replaceFlags = "cdkd deploy --replace --force-stateful-recreation";
40959
+ const replaceFlags = deployReplaceCommand(true);
40908
40960
  return deletionProtected ? protectedReplacementAdvice({
40909
40961
  evidence: "cdkd's properties for this user pool carry DeletionProtection: ACTIVE",
40910
40962
  replaceFlags,
@@ -42538,7 +42590,7 @@ async function createService(logicalId, resourceType, properties, maskSecrets) {
42538
42590
  this.logger.debug(`Applied ${Object.keys(attrs).length} ServiceAttribute(s) for ${logicalId}`);
42539
42591
  }
42540
42592
  } catch (innerError) {
42541
- if (isInterruptedWaitError(innerError)) this.logger.warn(maskerOrIdentity(maskSecrets)(`Interrupted after creating ServiceDiscovery Service ${logicalId} (${serviceId}) but before its ServiceAttributes were applied. Nothing in cdkd state refers to it, so cdkd is deleting it now — left behind it would fail the next deploy on a name collision AND block deletion of its namespace with ResourceInUse. If that delete fails, outside a rollback's re-create, the failed deploy's rollback journal records it for \`cdkd rollback --revert-failed\`; otherwise remove it yourself: ${pasteableAwsCommand(maskSecrets)`aws servicediscovery delete-service --id ${serviceId}`.render()}`));
42593
+ if (isInterruptedWaitError(innerError)) this.logger.warn(maskerOrIdentity(maskSecrets)(`Interrupted after creating ServiceDiscovery Service ${logicalId} (${serviceId}) but before its ServiceAttributes were applied. Nothing in cdkd state refers to it, so cdkd is deleting it now — left behind it would fail the next deploy on a name collision AND block deletion of its namespace with ResourceInUse. If that delete fails, outside a rollback's re-create, the failed deploy's rollback journal records it for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}; otherwise remove it yourself: ${pasteableAwsCommand(maskSecrets)`aws servicediscovery delete-service --id ${serviceId}`.render()}`));
42542
42594
  try {
42543
42595
  await client.send(new DeleteServiceCommand$1({ Id: serviceId }));
42544
42596
  leftBehindServiceId = void 0;
@@ -42548,7 +42600,7 @@ async function createService(logicalId, resourceType, properties, maskSecrets) {
42548
42600
  const cleanupFailure = describeAwsFailure(cleanupError);
42549
42601
  const cleanupHead = `Failed to clean up partially-created ServiceDiscovery Service ${logicalId} (${serviceId}) after ServiceAttributes wiring failure: `;
42550
42602
  if (cleanupFailure.redacted) this.logger.debug(maskerOrIdentity(maskSecrets)(`${cleanupHead}${cleanupFailure.detail}`));
42551
- this.logger.warn(`${cleanupHead}${cleanupFailure.redacted ? `${maskerOrIdentity(maskSecrets)(cleanupFailure.summary)} ` : `${this.maskErrorMessage(cleanupError, maskSecrets)}. `}Outside a rollback's re-create, the failed deploy's rollback journal records it for \`cdkd rollback --revert-failed\`; otherwise delete it yourself before the next deploy: ${pasteableAwsCommand(maskSecrets)`aws servicediscovery delete-service --id ${serviceId}`.render()}`);
42603
+ this.logger.warn(`${cleanupHead}${cleanupFailure.redacted ? `${maskerOrIdentity(maskSecrets)(cleanupFailure.summary)} ` : `${this.maskErrorMessage(cleanupError, maskSecrets)}. `}Outside a rollback's re-create, the failed deploy's rollback journal records it for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}; otherwise delete it yourself before the next deploy: ${pasteableAwsCommand(maskSecrets)`aws servicediscovery delete-service --id ${serviceId}`.render()}`);
42552
42604
  }
42553
42605
  throw markAuxiliaryFailure(innerError, logicalId);
42554
42606
  }
@@ -44078,7 +44130,10 @@ async function createGraphQLApi(logicalId, resourceType, properties, context) {
44078
44130
  attributes: definedAttributes({
44079
44131
  ApiId: apiId,
44080
44132
  Arn: arn,
44081
- GraphQLUrl: graphQLUrl
44133
+ GraphQLUrl: graphQLUrl,
44134
+ GraphQLDns: response.graphqlApi?.dns?.["GRAPHQL"],
44135
+ RealtimeDns: response.graphqlApi?.dns?.["REALTIME"],
44136
+ RealtimeUrl: response.graphqlApi?.uris?.["REALTIME"]
44082
44137
  }),
44083
44138
  ...envRecord && { effectiveProperties: this.withEnvironmentVariablesRecord(properties, envRecord) }
44084
44139
  };
@@ -44749,7 +44804,10 @@ async function importImpl$15(input) {
44749
44804
  attributes: definedAttributes({
44750
44805
  ApiId: explicit,
44751
44806
  Arn: response.graphqlApi?.arn,
44752
- GraphQLUrl: response.graphqlApi?.uris?.["GRAPHQL"]
44807
+ GraphQLUrl: response.graphqlApi?.uris?.["GRAPHQL"],
44808
+ GraphQLDns: response.graphqlApi?.dns?.["GRAPHQL"],
44809
+ RealtimeDns: response.graphqlApi?.dns?.["REALTIME"],
44810
+ RealtimeUrl: response.graphqlApi?.uris?.["REALTIME"]
44753
44811
  })
44754
44812
  };
44755
44813
  } catch (err) {
@@ -45151,7 +45209,7 @@ function enforceIcebergTableInputAbsent(logicalId, resourceType, properties, opt
45151
45209
  throw new ProvisioningError(icebergTableInputRefusalMessage(logicalId, key, "create"), resourceType, logicalId);
45152
45210
  }
45153
45211
  function icebergTableInputRefusalMessage(logicalId, key, mode) {
45154
- const lead = mode === "create" ? `cannot be deployed by AWS in any shape, so cdkd refuses it before calling Glue.` : mode === "create-replay" ? "cannot be deployed by AWS in any shape, so cdkd normally refuses it before calling Glue — but this create is REPLAYING a historical cdkd STATE record (a rollback reverse-replacement re-creating the OLD table), not your template, and refusing would leave that table unrestorable with no template-side remedy, only a hand-edit of state.json. cdkd therefore warns and proceeds. The re-created table is DEGRADED exactly as the original was: under the CFn spelling IcebergTableInput the AWS SDK serializer drops the unknown member, so the table comes back without its Iceberg metadata; under the SDK spelling CreateIcebergTableInput the value IS sent and Glue rejects the call, failing this one rollback operation. Either way, fix it forward with 'cdkd deploy' using the working shape below." : "cannot be deployed by AWS in any shape and is IGNORED on update — cdkd does not wire Glue's update-only UpdateOpenTableFormatInput shape, so it forwards nothing here and only warns. A CREATE of this table would be refused outright.";
45212
+ const lead = mode === "create" ? `cannot be deployed by AWS in any shape, so cdkd refuses it before calling Glue.` : mode === "create-replay" ? `cannot be deployed by AWS in any shape, so cdkd normally refuses it before calling Glue — but this create is REPLAYING a historical cdkd STATE record (a rollback reverse-replacement re-creating the OLD table), not your template, and refusing would leave that table unrestorable with no template-side remedy, only a hand-edit of state.json. cdkd therefore warns and proceeds. The re-created table is DEGRADED exactly as the original was: under the CFn spelling IcebergTableInput the AWS SDK serializer drops the unknown member, so the table comes back without its Iceberg metadata; under the SDK spelling CreateIcebergTableInput the value IS sent and Glue rejects the call, failing this one rollback operation. Either way, fix it forward with ${proseQuoted(cdkdRemedy("cdkd deploy"))} using the working shape below.` : "cannot be deployed by AWS in any shape and is IGNORED on update — cdkd does not wire Glue's update-only UpdateOpenTableFormatInput shape, so it forwards nothing here and only warns. A CREATE of this table would be refused outright.";
45155
45213
  return safeMsg`AWS::Glue::Table ${logicalId}: OpenTableFormatInput.IcebergInput.${key} ` + `${lead}\n Measured against AWS: glue:CreateTable — the API cdkd calls — rejects every Iceberg table spec ("Location information cannot be null while creating an iceberg table" without a TableInput.StorageDescriptor, "Table metadata information present at multiple parts of input request" with one), and CloudFormation rolls the same template back with "Table metadata is expected only via TableInput or via IcebergTableInputProperties inside OpenTableFormatInput" — a property name that exists in neither the CFn registry schema (IcebergInput.IcebergTableInput) nor @aws-sdk/client-glue (IcebergInput.CreateIcebergTableInput).\n Working shape — put the table metadata in TableInput and leave IcebergInput carrying only the create-time directive:\n TableInput: { Name, TableType: 'EXTERNAL_TABLE', StorageDescriptor: { Location: 's3://your-bucket/prefix/', Columns: [...] } }\n OpenTableFormatInput: { IcebergInput: { MetadataOperation: 'CREATE' } } // Version: '2' is also accepted\n Glue then writes the Iceberg metadata itself — the created table comes back with Parameters.table_type = ICEBERG and a populated Parameters.metadata_location.`;
45156
45214
  }
45157
45215
  function buildEncryptionConfiguration(input) {
@@ -47045,7 +47103,7 @@ async function securityConfigurationCreate(logicalId, resourceType, properties,
47045
47103
  }
47046
47104
  async function securityConfigurationUpdate(logicalId, physicalId, resourceType, _properties, _previousProperties, context) {
47047
47105
  assertRegionMatch(context?.expectedRegion ? await this.getClient().config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
47048
- throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "AWS Glue SecurityConfiguration is immutable on AWS — there is no UpdateSecurityConfiguration API; every change requires DeleteSecurityConfiguration + CreateSecurityConfiguration. Use cdkd deploy --replace, or destroy + redeploy with the new EncryptionConfiguration.");
47106
+ throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS Glue SecurityConfiguration is immutable on AWS — there is no UpdateSecurityConfiguration API; every change requires DeleteSecurityConfiguration + CreateSecurityConfiguration. Use ${deployReplaceCommand()}, or destroy + redeploy with the new EncryptionConfiguration.`);
47049
47107
  }
47050
47108
  async function securityConfigurationDelete(logicalId, physicalId, resourceType, _properties, context) {
47051
47109
  this.logger.debug(`Deleting Glue SecurityConfiguration ${logicalId}: ${physicalId}`);
@@ -47783,7 +47841,7 @@ async function createKey(logicalId, resourceType, properties, mask) {
47783
47841
  markAuxiliaryFailure(error, logicalId);
47784
47842
  const aws = pasteableAwsCommand();
47785
47843
  const region = await this.regionArg(aws);
47786
- this.logger.warn(safeMsg`KMS key ${createdKeyId} was created for ${logicalId}, but a follow-up call failed. A retry of this create reuses that key instead of creating another, so do not delete it while the deploy is still retrying. If the deploy then FAILS (outside a rollback's re-create), its rollback journal records the key for \`cdkd rollback --revert-failed\` to schedule its deletion; otherwise schedule it yourself with: ${aws`aws kms schedule-key-deletion --key-id ${createdKeyId}${region} --pending-window-in-days 7`.render()}`);
47844
+ this.logger.warn(safeMsg`KMS key ${createdKeyId} was created for ${logicalId}, but a follow-up call failed. A retry of this create reuses that key instead of creating another, so do not delete it while the deploy is still retrying. If the deploy then FAILS (outside a rollback's re-create), its rollback journal records the key for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")} to schedule its deletion; otherwise schedule it yourself with: ${aws`aws kms schedule-key-deletion --key-id ${createdKeyId}${region} --pending-window-in-days 7`.render()}`);
47787
47845
  }
47788
47846
  const cause = error instanceof Error ? error : void 0;
47789
47847
  const thrown = this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to create KMS Key ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
@@ -50009,7 +50067,7 @@ var KinesisStreamConsumerProvider = class {
50009
50067
  previous,
50010
50068
  physicalName: fromId
50011
50069
  });
50012
- if (!await unchanged("ConsumerName", newConsumerName, oldConsumerName, fromArn?.consumerName) || !await unchanged("StreamARN", newStreamArn, oldStreamArn, fromArn?.streamArn)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "AWS::Kinesis::StreamConsumer ConsumerName / StreamARN are immutable on AWS — there is no UpdateStreamConsumer API; every change registers a new consumer (RegisterStreamConsumer). Re-deploy with cdkd deploy --replace, or destroy + redeploy.");
50070
+ if (!await unchanged("ConsumerName", newConsumerName, oldConsumerName, fromArn?.consumerName) || !await unchanged("StreamARN", newStreamArn, oldStreamArn, fromArn?.streamArn)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS::Kinesis::StreamConsumer ConsumerName / StreamARN are immutable on AWS — there is no UpdateStreamConsumer API; every change registers a new consumer (RegisterStreamConsumer). Re-deploy with ${deployReplaceCommand()}, or destroy + redeploy.`);
50013
50071
  await this.applyTagDiff(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"], maskSecrets);
50014
50072
  let attrs = {};
50015
50073
  try {
@@ -50302,7 +50360,7 @@ async function confirmRecordedSchedule(logicalId, physicalId, resourceType, grou
50302
50360
  if (error instanceof ResourceNotFoundException$13) return "absent";
50303
50361
  throw this.wrapUnconfirmedGroupError(logicalId, physicalId, resourceType, error, mask);
50304
50362
  }
50305
- if (sameRecordedDate(live, recorded) && !sameRecordedIdentity(live, recorded)) this.refuseUnconfirmed(logicalId, physicalId, resourceType, "holds a schedule of this name that carries the recorded creation date but not the recorded target or role (edited outside cdkd?)", false, "restore them, or drop the record with `cdkd orphan <construct path>` and deploy again");
50363
+ if (sameRecordedDate(live, recorded) && !sameRecordedIdentity(live, recorded)) this.refuseUnconfirmed(logicalId, physicalId, resourceType, "holds a schedule of this name that carries the recorded creation date but not the recorded target or role (edited outside cdkd?)", false, `restore them, or drop the record with ${pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command} and deploy again`);
50306
50364
  if (!sameRecordedIdentity(live, recorded)) this.refuseUnconfirmed(logicalId, physicalId, resourceType, "holds a different schedule of this name (its creation date is not the one cdkd recorded)", true, "restore the secret's value to the schedule's group");
50307
50365
  return "confirmed";
50308
50366
  }
@@ -50328,13 +50386,13 @@ async function update$13(logicalId, physicalId, resourceType, properties, previo
50328
50386
  let confirmedMove = false;
50329
50387
  if (groupName !== previousGroupName && isSecretDerivedValue(previousProperties["GroupName"], RECORDED_ONLY) && desiredSecretDerived) {
50330
50388
  const verdict = await this.confirmRecordedSchedule(logicalId, physicalId, resourceType, groupName, recorded, mask);
50331
- if (verdict === "undated") this.refuseUnconfirmed(logicalId, physicalId, resourceType, "cannot be confirmed to hold this schedule: its state record predates the creation date cdkd now records", true, "delete the schedule by hand (`aws scheduler delete-schedule`), drop its record with `cdkd orphan <construct path>`, and deploy again, which records the date");
50332
- if (verdict === "absent" && !this.referenceRepointed(groupName, previousProperties["GroupName"])) this.refuseUnconfirmed(logicalId, physicalId, resourceType, "holds no schedule of this name", true, "restore the secret's value to the schedule's group; if the schedule was deleted outside cdkd, drop its record with `cdkd orphan <construct path>` and deploy again");
50389
+ if (verdict === "undated") this.refuseUnconfirmed(logicalId, physicalId, resourceType, "cannot be confirmed to hold this schedule: its state record predates the creation date cdkd now records", true, `delete the schedule by hand (\`aws scheduler delete-schedule\`), drop its record with ${pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command}, and deploy again, which records the date`);
50390
+ if (verdict === "absent" && !this.referenceRepointed(groupName, previousProperties["GroupName"])) this.refuseUnconfirmed(logicalId, physicalId, resourceType, "holds no schedule of this name", true, `restore the secret's value to the schedule's group; if the schedule was deleted outside cdkd, drop its record with ${pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command} and deploy again`);
50333
50391
  confirmedMove = verdict === "confirmed";
50334
50392
  } else if (groupName === previousGroupName && replaying && recorded.creation !== void 0 && desiredSecretDerived) {
50335
50393
  if (await this.confirmRecordedSchedule(logicalId, physicalId, resourceType, groupName, recorded, mask) !== "confirmed") this.refuseUnconfirmed(logicalId, physicalId, resourceType, "holds no schedule of this name", true, "restore the secret's value to the schedule's group, then re-run the rollback");
50336
50394
  }
50337
- if (groupName !== previousGroupName && !confirmedMove) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `GroupName addresses the schedule (from ${groupShown(mask(previousGroupName ?? "default"))} to ${groupShown(mask(groupName ?? "default"))}); re-run with \`cdkd deploy --replace\` to recreate it in the new group (--replace is a boolean flag and takes no resource id; it applies to every resource in the run whose in-place update is refused)`);
50395
+ if (groupName !== previousGroupName && !confirmedMove) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `GroupName addresses the schedule (from ${groupShown(mask(previousGroupName ?? "default"))} to ${groupShown(mask(groupName ?? "default"))}); re-run with ${deployReplaceCommand()} to recreate it in the new group (--replace is a boolean flag and takes no resource id; it applies to every resource in the run whose in-place update is refused)`);
50338
50396
  this.logger.debug(mask(`Updating Schedule ${logicalId}: ${mask(physicalId)}${groupName ? ` (group: ${mask(groupName)})` : ""}`));
50339
50397
  try {
50340
50398
  const input = {
@@ -50362,7 +50420,7 @@ async function update$13(logicalId, physicalId, resourceType, properties, previo
50362
50420
  // src/provisioning/providers/scheduler-schedule/delete.ts
50363
50421
  async function deleteByRecordedIdentity(logicalId, physicalId, resourceType, recorded, context) {
50364
50422
  if (!context?.expectedRegion) {
50365
- this.logger.warn(safeMsg`Schedule ${logicalId} is recorded with a secret-derived GroupName and no stack region, so cdkd cannot scope the search for it; skipping deletion and keeping its state record. Delete the schedule by hand, then drop the record with 'cdkd orphan'.`);
50423
+ this.logger.warn(safeMsg`Schedule ${logicalId} is recorded with a secret-derived GroupName and no stack region, so cdkd cannot scope the search for it; skipping deletion and keeping its state record. Delete the schedule by hand, then drop the record with ${proseQuoted(cdkdRemedy("cdkd orphan"))}.`);
50366
50424
  return {
50367
50425
  outcome: "skipped",
50368
50426
  reason: NO_REGION_FOR_SCHEDULE_SEARCH_SKIP_REASON
@@ -50414,7 +50472,7 @@ async function deleteByRecordedIdentity(logicalId, physicalId, resourceType, rec
50414
50472
  }
50415
50473
  const { matches } = found;
50416
50474
  if (matches.length === 0 && found.datedOnly > 0) {
50417
- this.logger.warn(safeMsg`Schedule ${logicalId}: a schedule of its name carries the recorded creation date but not the recorded target or role (edited outside cdkd?), so cdkd cannot tell whether it is this one; skipping deletion and keeping its state record. Delete it by hand if it is, then drop the record with 'cdkd orphan'.`);
50475
+ this.logger.warn(safeMsg`Schedule ${logicalId}: a schedule of its name carries the recorded creation date but not the recorded target or role (edited outside cdkd?), so cdkd cannot tell whether it is this one; skipping deletion and keeping its state record. Delete it by hand if it is, then drop the record with ${proseQuoted(cdkdRemedy("cdkd orphan"))}.`);
50418
50476
  return {
50419
50477
  outcome: "skipped",
50420
50478
  reason: AMBIGUOUS_SCHEDULE_SKIP_REASON
@@ -50770,6 +50828,27 @@ function toSdkTargetParameters(value) {
50770
50828
  EcsTaskParameters: toSdkEcsTaskParameters(ecs)
50771
50829
  };
50772
50830
  }
50831
+ function toUpdateParameterBlock(desired, previous, convert) {
50832
+ const next = asRecord(desired);
50833
+ const converted = desired === void 0 ? void 0 : convert(desired);
50834
+ if (!(asRecord(previous)?.["InputTemplate"] !== void 0 && (desired === void 0 || next !== void 0 && next["InputTemplate"] === void 0))) return converted;
50835
+ return {
50836
+ ...converted ?? {},
50837
+ InputTemplate: ""
50838
+ };
50839
+ }
50840
+ function parameterMembersLeftInPlace(block, desired, previous) {
50841
+ const prev = asRecord(previous);
50842
+ if (!prev) return [];
50843
+ const next = asRecord(desired);
50844
+ if (desired !== void 0 && !next) return [];
50845
+ return Object.keys(prev).filter((key) => key !== "InputTemplate" && prev[key] !== void 0).filter((key) => next?.[key] === void 0).map((key) => `${block}.${key}`);
50846
+ }
50847
+ function parameterMembersLeftInPlaceWarning(logicalId, names, caller) {
50848
+ const one = names.length === 1;
50849
+ const subject = one ? "property" : "properties";
50850
+ return caller === "rollback" ? safeMsg`${logicalId} (${PIPE_TYPE}): ${subject} ${names.join(", ")} ${one ? "is" : "are"} absent from the state being restored; UpdatePipe keeps a member it is not sent, so the rollback leaves the value the failed deploy applied in place.` : safeMsg`${logicalId} (${PIPE_TYPE}): ${subject} ${names.join(", ")} ${one ? "was" : "were"} removed from the template; cdkd leaves the current AWS value in place (whether CloudFormation resets it is unmeasured). Declare the intended value explicitly to change it.`;
50851
+ }
50773
50852
  function toSdkSourceParameters(value) {
50774
50853
  const source = asRecord(value);
50775
50854
  if (!source) return value;
@@ -50865,7 +50944,7 @@ async function retireFailedCreate(name, logicalId, resourceType, error, mask, cr
50865
50944
  const orphaned = async (why) => {
50866
50945
  const aws = pasteableAwsCommand(mask);
50867
50946
  const command = aws`aws pipes delete-pipe --name ${name}${await orphanCommandRegionArg$2(this.getClient(), aws)}`;
50868
- original.message += ` (cdkd could not delete the pipe it had created: ${why}; outside a rollback's re-create, the failed deploy's rollback journal records it for \`cdkd rollback --revert-failed\`. ` + (command.text !== void 0 ? `Otherwise delete it yourself with: ${command.text})` : `Otherwise delete it yourself from the EventBridge Pipes console.)`);
50947
+ original.message += ` (cdkd could not delete the pipe it had created: ${why}; outside a rollback's re-create, the failed deploy's rollback journal records it for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}. ` + (command.text !== void 0 ? `Otherwise delete it yourself with: ${command.text})` : `Otherwise delete it yourself from the EventBridge Pipes console.)`);
50869
50948
  return leftBehind();
50870
50949
  };
50871
50950
  try {
@@ -50973,14 +51052,19 @@ async function update$12(logicalId, physicalId, resourceType, properties, previo
50973
51052
  previous: recordedValue,
50974
51053
  ...key === "Name" ? { physicalName: physicalId } : {},
50975
51054
  maskSecrets: context?.maskSecrets
50976
- })) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `${key} is create-only; re-run with \`cdkd deploy --replace\` to recreate the pipe (--replace is a boolean flag and takes no resource id; it applies to every resource in the run whose in-place update is refused)`);
51055
+ })) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `${key} is create-only; re-run with ${deployReplaceCommand()} to recreate the pipe (--replace is a boolean flag and takes no resource id; it applies to every resource in the run whose in-place update is refused)`);
50977
51056
  }
50978
51057
  const desired = withRemovalDefaults(this.removalDefaults, resourceType, properties, previousProperties, context);
50979
51058
  const desiredTags = desiredTagMap(desired["Tags"], logicalId, physicalId);
50980
51059
  this.logger.debug(mask(`Updating Pipe ${logicalId}: ${physicalId}`));
51060
+ const targetUnknown = context?.unsettledProperties?.has("TargetParameters") === true;
50981
51061
  let settled;
50982
51062
  try {
50983
- if (this.pipeFieldsChanged(desired, previousProperties)) {
51063
+ if (this.pipeFieldsChanged(desired, previousProperties) || targetUnknown) {
51064
+ const enrichmentParameters = toUpdateParameterBlock(desired["EnrichmentParameters"], previousProperties["EnrichmentParameters"], (value) => value);
51065
+ const targetParameters = toUpdateParameterBlock(desired["TargetParameters"], targetUnknown ? { InputTemplate: "" } : previousProperties["TargetParameters"], toSdkTargetParameters);
51066
+ const leftInPlace = ["EnrichmentParameters", "TargetParameters"].flatMap((block) => parameterMembersLeftInPlace(block, desired[block], previousProperties[block]));
51067
+ if (leftInPlace.length > 0) this.logger.warn(parameterMembersLeftInPlaceWarning(logicalId, leftInPlace, context?.replayingState ? "rollback" : "deploy"));
50984
51068
  const input = {
50985
51069
  Name: physicalId,
50986
51070
  RoleArn: desired["RoleArn"],
@@ -50988,14 +51072,15 @@ async function update$12(logicalId, physicalId, resourceType, properties, previo
50988
51072
  ...desired["Description"] !== void 0 && { Description: desired["Description"] },
50989
51073
  ...desired["DesiredState"] !== void 0 && { DesiredState: desired["DesiredState"] },
50990
51074
  ...desired["Enrichment"] !== void 0 && { Enrichment: desired["Enrichment"] },
50991
- ...desired["EnrichmentParameters"] !== void 0 && { EnrichmentParameters: desired["EnrichmentParameters"] },
50992
- ...desired["TargetParameters"] !== void 0 && { TargetParameters: toSdkTargetParameters(desired["TargetParameters"]) },
51075
+ ...enrichmentParameters !== void 0 && { EnrichmentParameters: enrichmentParameters },
51076
+ ...targetParameters !== void 0 && { TargetParameters: targetParameters },
50993
51077
  ...desired["LogConfiguration"] !== void 0 && { LogConfiguration: this.logConfigurationOf(desired["LogConfiguration"]) },
50994
51078
  ...desired["KmsKeyIdentifier"] !== void 0 && { KmsKeyIdentifier: desired["KmsKeyIdentifier"] }
50995
51079
  };
50996
51080
  const sourceParameters = toUpdateSourceParameters(desired["SourceParameters"], previousProperties["SourceParameters"]);
50997
51081
  if (sourceParameters !== void 0) input.SourceParameters = sourceParameters;
50998
51082
  for (const key of this.changedPipeFields(desired, previousProperties)) context?.markUnsettled?.(key);
51083
+ if (targetUnknown) context?.markUnsettled?.("TargetParameters");
50999
51084
  const accepted = await this.getClient().send(new UpdatePipeCommand(input));
51000
51085
  settled = await this.waitForSettled(physicalId, logicalId, resourceType, "update", mask, accepted.LastModifiedTime);
51001
51086
  }
@@ -51198,7 +51283,12 @@ var PipesPipeProvider = class {
51198
51283
  ["DesiredState", "RUNNING"],
51199
51284
  ["LogConfiguration", { Level: "OFF" }]
51200
51285
  ])]]);
51201
- removalHandledInUpdate = /* @__PURE__ */ new Map([["AWS::Pipes::Pipe", /* @__PURE__ */ new Set(["SourceParameters", "Tags"])]]);
51286
+ removalHandledInUpdate = /* @__PURE__ */ new Map([["AWS::Pipes::Pipe", /* @__PURE__ */ new Set([
51287
+ "SourceParameters",
51288
+ "Tags",
51289
+ "EnrichmentParameters",
51290
+ "TargetParameters"
51291
+ ])]]);
51202
51292
  constructor(options = {}) {
51203
51293
  this.options = options;
51204
51294
  }
@@ -51418,7 +51508,7 @@ async function updateFileSystem(logicalId, physicalId, resourceType, properties,
51418
51508
  ]) {
51419
51509
  const next = properties[key];
51420
51510
  const prev = previousProperties[key];
51421
- if (next !== void 0 && prev !== void 0 && JSON.stringify(next) !== JSON.stringify(prev)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS EFS FileSystem ${key} is immutable on AWS — UpdateFileSystem does not accept ${key}; the property is fixed at creation. Re-deploy with cdkd deploy --replace --force-stateful-recreation (the type is in cdkd's stateful-recreate guard set, so a bare --replace is refused a second time with STATEFUL_REPLACE_BLOCKED), or destroy + redeploy the stack.`);
51511
+ if (next !== void 0 && prev !== void 0 && JSON.stringify(next) !== JSON.stringify(prev)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS EFS FileSystem ${key} is immutable on AWS — UpdateFileSystem does not accept ${key}; the property is fixed at creation. Re-deploy with ${deployReplaceCommand(true)} (the type is in cdkd's stateful-recreate guard set, so a bare --replace is refused a second time with STATEFUL_REPLACE_BLOCKED), or destroy + redeploy the stack.`);
51422
51512
  }
51423
51513
  const newThroughputMode = properties["ThroughputMode"];
51424
51514
  const newProvisioned = properties["ProvisionedThroughputInMibps"];
@@ -51427,7 +51517,7 @@ async function updateFileSystem(logicalId, physicalId, resourceType, properties,
51427
51517
  const throughputValueMissing = newThroughputMode === "provisioned" && newProvisioned === void 0 && (oldProvisioned !== void 0 || oldThroughputMode !== "provisioned");
51428
51518
  if (throughputValueMissing) {
51429
51519
  if (!stateBorneDesired) throw new ProvisioningError(`Failed to update EFS FileSystem ${logicalId}: Throughput value must be specified for provisioned throughput mode. The template sets ThroughputMode: provisioned without ProvisionedThroughputInMibps, which CloudFormation rejects too. Set ProvisionedThroughputInMibps, or change ThroughputMode (e.g. to bursting or elastic).`, resourceType, logicalId, physicalId);
51430
- log.warn(`EFS FileSystem ${logicalId}: the desired properties (from cdkd state or an AWS readback, not the template) set ThroughputMode: provisioned without ProvisionedThroughputInMibps, which AWS rejects; leaving the file system's throughput as it is on AWS and applying the rest of the update. Its throughput may now differ from the record: run cdkd drift to see it.`);
51520
+ log.warn(`EFS FileSystem ${logicalId}: the desired properties (from cdkd state or an AWS readback, not the template) set ThroughputMode: provisioned without ProvisionedThroughputInMibps, which AWS rejects; leaving the file system's throughput as it is on AWS and applying the rest of the update. Its throughput may now differ from the record: run ${cdkdRemedy("cdkd drift")} to see it.`);
51431
51521
  }
51432
51522
  const effectiveThroughputMode = newThroughputMode === void 0 && newProvisioned === void 0 && oldThroughputMode === "provisioned" ? "bursting" : newThroughputMode;
51433
51523
  const throughputModeChanged = !throughputValueMissing && effectiveThroughputMode !== void 0 && effectiveThroughputMode !== oldThroughputMode;
@@ -51868,7 +51958,7 @@ async function updateAccessPoint(logicalId, physicalId, resourceType, properties
51868
51958
  const keys = /* @__PURE__ */ new Set([...Object.keys(properties), ...Object.keys(previousProperties)]);
51869
51959
  for (const key of keys) {
51870
51960
  if (key === "AccessPointTags") continue;
51871
- if (!sameExceptSecretLeaves(properties[key], previousProperties[key])) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS EFS AccessPoint ${key} changed or was removed, and it is immutable on AWS — there is no UpdateAccessPoint command, and only AccessPointTags can change in place; any other property change requires DeleteAccessPoint + CreateAccessPoint. Re-deploy with cdkd deploy --replace, or destroy + redeploy the stack.`);
51961
+ if (!sameExceptSecretLeaves(properties[key], previousProperties[key])) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS EFS AccessPoint ${key} changed or was removed, and it is immutable on AWS — there is no UpdateAccessPoint command, and only AccessPointTags can change in place; any other property change requires DeleteAccessPoint + CreateAccessPoint. Re-deploy with ${deployReplaceCommand()}, or destroy + redeploy the stack.`);
51872
51962
  }
51873
51963
  refuseMalformedDesiredTags(properties["AccessPointTags"], resourceType, logicalId, physicalId, "AccessPointTags");
51874
51964
  try {
@@ -52589,7 +52679,7 @@ async function create$10(logicalId, resourceType, properties, context) {
52589
52679
  } catch (cleanupError) {
52590
52680
  survivorId = fileSystemId;
52591
52681
  const cleanupHead = `Failed to roll back partially-created FSx FileSystem ${fileSystemId}: `;
52592
- this.logger.warn(`${cleanupHead}${this.cleanupFailureText(cleanupHead, cleanupError, context?.maskSecrets)} — outside a rollback's re-create, the failed deploy's rollback journal records it for \`cdkd rollback --revert-failed\`; otherwise delete it yourself to stop billing`);
52682
+ this.logger.warn(`${cleanupHead}${this.cleanupFailureText(cleanupHead, cleanupError, context?.maskSecrets)} — outside a rollback's re-create, the failed deploy's rollback journal records it for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}; otherwise delete it yourself to stop billing`);
52593
52683
  }
52594
52684
  if (error instanceof ProvisioningError) {
52595
52685
  if (survivorId !== void 0) markCreatedBeforeFailure(error, logicalId, resourceType, survivorId);
@@ -52776,7 +52866,7 @@ async function update$10(logicalId, physicalId, resourceType, properties, previo
52776
52866
  for (const key of TOP_LEVEL_IMMUTABLE_PROPS) {
52777
52867
  const next = properties[key];
52778
52868
  const prev = previousProperties[key];
52779
- if (JSON.stringify(next ?? null) !== JSON.stringify(prev ?? null)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS FSx FileSystem ${key} is immutable on AWS — UpdateFileSystem does not accept ${key}; the property is fixed at creation. Re-deploy with cdkd deploy --replace --force-stateful-recreation (the type is in cdkd's stateful-recreate guard set, so a bare --replace is refused a second time with STATEFUL_REPLACE_BLOCKED), or destroy + redeploy the stack.`);
52869
+ if (JSON.stringify(next ?? null) !== JSON.stringify(prev ?? null)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS FSx FileSystem ${key} is immutable on AWS — UpdateFileSystem does not accept ${key}; the property is fixed at creation. Re-deploy with ${deployReplaceCommand(true)} (the type is in cdkd's stateful-recreate guard set, so a bare --replace is refused a second time with STATEFUL_REPLACE_BLOCKED), or destroy + redeploy the stack.`);
52780
52870
  }
52781
52871
  const variantConfigKey = this.detectVariantConfigKey(properties, previousProperties);
52782
52872
  const { diff: variantDiff, hasMutableDiff: variantHasMutableDiff, leftInPlace, aliases } = variantConfigKey ? this.computeVariantConfigDiff(resourceType, logicalId, variantConfigKey, properties[variantConfigKey] ?? {}, previousProperties[variantConfigKey] ?? {}) : {
@@ -52880,7 +52970,7 @@ function computeVariantConfigDiff(resourceType, logicalId, configKey, next, prev
52880
52970
  aliases = aliasDelta(nextVal, prevVal);
52881
52971
  continue;
52882
52972
  }
52883
- if (!mutable.has(key)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS FSx FileSystem ${configKey}.${key} is immutable on AWS — UpdateFileSystem cannot change it after creation. Re-deploy with cdkd deploy --replace --force-stateful-recreation (the type is in cdkd's stateful-recreate guard set, so a bare --replace is refused a second time with STATEFUL_REPLACE_BLOCKED), or destroy + redeploy the stack.`);
52973
+ if (!mutable.has(key)) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS FSx FileSystem ${configKey}.${key} is immutable on AWS — UpdateFileSystem cannot change it after creation. Re-deploy with ${deployReplaceCommand(true)} (the type is in cdkd's stateful-recreate guard set, so a bare --replace is refused a second time with STATEFUL_REPLACE_BLOCKED), or destroy + redeploy the stack.`);
52884
52974
  if (nextVal === void 0 && key !== "RouteTableIds") {
52885
52975
  leftInPlace.push(key);
52886
52976
  continue;
@@ -54362,7 +54452,7 @@ var EMRInstanceGroupConfigProvider = class {
54362
54452
  desired: properties[key],
54363
54453
  previous: previousProperties[key],
54364
54454
  maskSecrets: context?.maskSecrets
54365
- }))) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS EMR InstanceGroupConfig ${key} is immutable on AWS — it is fixed when the instance group is created. Re-deploy with cdkd deploy --replace, or destroy + redeploy the stack.`);
54455
+ }))) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS EMR InstanceGroupConfig ${key} is immutable on AWS — it is fixed when the instance group is created. Re-deploy with ${deployReplaceCommand()}, or destroy + redeploy the stack.`);
54366
54456
  }
54367
54457
  const instanceCountChanged = changed("InstanceCount");
54368
54458
  const autoScalingChanged = changed("AutoScalingPolicy");
@@ -54658,7 +54748,7 @@ async function update$9(logicalId, physicalId, resourceType, properties, previou
54658
54748
  desired: properties[key],
54659
54749
  previous: previousProperties[key],
54660
54750
  maskSecrets: context?.maskSecrets
54661
- }))) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS EMR InstanceFleetConfig ${key} is immutable on AWS — it is fixed when the instance fleet is created. Re-deploy with cdkd deploy --replace, or destroy + redeploy the stack.`);
54751
+ }))) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `AWS EMR InstanceFleetConfig ${key} is immutable on AWS — it is fixed when the instance fleet is created. Re-deploy with ${deployReplaceCommand()}, or destroy + redeploy the stack.`);
54662
54752
  }
54663
54753
  const removed = context?.removedProperties;
54664
54754
  const leftInPlaceNames = LEFT_IN_PLACE_ON_REMOVAL.filter((key) => removed !== void 0 ? removed.has(key) : properties[key] === void 0 && previousProperties[key] !== void 0);
@@ -54999,16 +55089,18 @@ async function update$8(logicalId, physicalId, resourceType, properties, previou
54999
55089
  const changed = (key) => !jsonEqual$2(properties[key], previousProperties[key]);
55000
55090
  const nextInstances = properties["Instances"] ?? {};
55001
55091
  const prevInstances = previousProperties["Instances"] ?? {};
55002
- const replaceFlags = "cdkd deploy --replace --force-stateful-recreation";
55003
- const replaceRemedy = () => toBoolean(prevInstances["TerminationProtected"]) === true ? protectedReplacementAdvice({
55004
- evidence: "cdkd's recorded properties for this cluster carry Instances.TerminationProtected: true",
55005
- replaceFlags,
55006
- disable: {
55007
- before: "aws emr modify-cluster-attributes --cluster-id",
55008
- identifier: physicalId,
55009
- after: "--no-termination-protected"
55010
- }
55011
- }) : `Re-deploy with ${replaceFlags}, or destroy + redeploy the stack.`;
55092
+ const replaceRemedy = () => {
55093
+ const replaceFlags = deployReplaceCommand(true);
55094
+ return toBoolean(prevInstances["TerminationProtected"]) === true ? protectedReplacementAdvice({
55095
+ evidence: "cdkd's recorded properties for this cluster carry Instances.TerminationProtected: true",
55096
+ replaceFlags,
55097
+ disable: {
55098
+ before: "aws emr modify-cluster-attributes --cluster-id",
55099
+ identifier: physicalId,
55100
+ after: "--no-termination-protected"
55101
+ }
55102
+ }) : `Re-deploy with ${replaceFlags}, or destroy + redeploy the stack.`;
55103
+ };
55012
55104
  let instancesPlan = EMPTY_INSTANCES_PLAN;
55013
55105
  if (changed("Instances")) {
55014
55106
  const mask = context?.maskSecrets;
@@ -56186,7 +56278,7 @@ async function applyUpdate$1(logicalId, physicalId, resourceType, properties, pr
56186
56278
  }
56187
56279
  const destKey = this.findDestinationKey(properties);
56188
56280
  const prevDestKey = this.findDestinationKey(previousProperties);
56189
- if (destKey && prevDestKey && destKey !== prevDestKey) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `Switching Firehose destination type from '${prevDestKey}' to '${destKey}' is not supported in-place — AWS UpdateDestination requires the same destination type as the original CreateDeliveryStream. Re-deploy with cdkd deploy --replace.`);
56281
+ if (destKey && prevDestKey && destKey !== prevDestKey) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `Switching Firehose destination type from '${prevDestKey}' to '${destKey}' is not supported in-place — AWS UpdateDestination requires the same destination type as the original CreateDeliveryStream. Re-deploy with ${deployReplaceCommand()}`);
56190
56282
  const activeDest = destKey ?? prevDestKey;
56191
56283
  const nextTagsOk = isReadableTagList(properties["Tags"]);
56192
56284
  const prevTagsOk = isReadableTagList(previousProperties["Tags"]);
@@ -56370,7 +56462,7 @@ async function warnIfUnfinished(logicalId, call, markUnsettled, wait) {
56370
56462
  return await wait();
56371
56463
  } catch (error) {
56372
56464
  const outcome = typeof error === "object" && error !== null && terminalEncryptionFailures.has(error) ? "AWS reported the change failed, so the stream may no longer match" : "the stream may still finish the change, so it may no longer match";
56373
- this.logger.warn(safeMsg`Firehose delivery stream ${logicalId}: ${call} was sent but the encryption change did not finish; ${outcome} the previous setting cdkd keeps recorded. `.concat(markUnsettled === void 0 ? "Run 'cdkd drift' to compare, then 'cdkd drift --revert' to apply the recorded setting or 'cdkd drift --accept' to record the stream's." : `cdkd records ${ENCRYPTION_KEY} as unsettled, so the next 'cdkd deploy' reads the stream and applies the template's setting. To keep the stream as it ends up instead, run 'cdkd drift --accept' once the stream no longer reads ENABLING or DISABLING (an accept during the transition keeps the key unsettled).`));
56465
+ this.logger.warn(safeMsg`Firehose delivery stream ${logicalId}: ${call} was sent but the encryption change did not finish; ${outcome} the previous setting cdkd keeps recorded. `.concat(markUnsettled === void 0 ? `Run ${proseQuoted(cdkdRemedy("cdkd drift"))} to compare, then ${proseQuoted(cdkdRemedy("cdkd drift", "--revert"))} to apply the recorded setting or ${proseQuoted(cdkdRemedy("cdkd drift", "--accept"))} to record the stream's.` : `cdkd records ${ENCRYPTION_KEY} as unsettled, so the next 'cdkd deploy' reads the stream and applies the template's setting. To keep the stream as it ends up instead, run ${proseQuoted(cdkdRemedy("cdkd drift", "--accept"))} once the stream no longer reads ENABLING or DISABLING (an accept during the transition keeps the key unsettled).`));
56374
56466
  throw error;
56375
56467
  }
56376
56468
  }
@@ -57165,6 +57257,12 @@ function leftInPlaceWarning(logicalId, names, caller) {
57165
57257
  const subject = one ? "property" : "properties";
57166
57258
  return caller === "rollback" ? safeMsg`${logicalId} (AWS::CloudTrail::Trail): ${subject} ${names.join(", ")} ${one ? "is" : "are"} absent from the state being restored; UpdateTrail keeps a field it is not sent, so the rollback leaves the value the failed deploy applied in place.` : safeMsg`${logicalId} (AWS::CloudTrail::Trail): ${subject} ${names.join(", ")} ${one ? "was" : "were"} removed from the template; cdkd leaves the current AWS value in place (whether CloudFormation resets it is unmeasured). Declare the intended value explicitly to change it.`;
57167
57259
  }
57260
+ function trailAttributes(trailArn, snsTopicArn) {
57261
+ return definedAttributes({
57262
+ Arn: trailArn || void 0,
57263
+ SnsTopicArn: snsTopicArn || void 0
57264
+ });
57265
+ }
57168
57266
 
57169
57267
  // src/provisioning/providers/cloudtrail/core.ts
57170
57268
  function wrapCaughtError$1(mask, error, build) {
@@ -57252,7 +57350,7 @@ async function create$6(logicalId, resourceType, properties, context) {
57252
57350
  this.logger.debug(`Successfully created CloudTrail Trail ${logicalId}: ${trailArn}`);
57253
57351
  return {
57254
57352
  physicalId: trailArn,
57255
- attributes: { Arn: trailArn },
57353
+ attributes: trailAttributes(trailArn, result.SnsTopicARN),
57256
57354
  ...skippedOnReplay.length > 0 && { effectiveProperties: retainPreviousLists(properties, {}, skippedOnReplay) }
57257
57355
  };
57258
57356
  } catch (error) {
@@ -57286,8 +57384,9 @@ async function update$6(logicalId, physicalId, resourceType, properties, previou
57286
57384
  const isOrganizationTrail = trailBoolean(properties["IsOrganizationTrail"]);
57287
57385
  const recursiveLogging = trailBoolean(properties["RecursiveLogging"]);
57288
57386
  const appliedBeforeFailure = [];
57387
+ let attributes;
57289
57388
  try {
57290
- await this.getClient().send(new UpdateTrailCommand({
57389
+ const updated = await this.getClient().send(new UpdateTrailCommand({
57291
57390
  Name: physicalId,
57292
57391
  S3BucketName: s3BucketName,
57293
57392
  S3KeyPrefix: s3KeyPrefix,
@@ -57301,6 +57400,7 @@ async function update$6(logicalId, physicalId, resourceType, properties, previou
57301
57400
  IsOrganizationTrail: isOrganizationTrail,
57302
57401
  RecursiveLogging: recursiveLogging
57303
57402
  }));
57403
+ attributes = updated?.TrailARN ? trailAttributes(updated.TrailARN, updated.SnsTopicARN) : void 0;
57304
57404
  const keptNames = removalsLeftInPlace(properties, previousProperties, context, globalEventsResetSkipped);
57305
57405
  if (keptNames.length > 0) this.logger.warn(leftInPlaceWarning(logicalId, keptNames, context?.replayingState ? "rollback" : "deploy"));
57306
57406
  const basicRead = readListBlock(properties["EventSelectors"], "AWS::CloudTrail::Trail EventSelectors");
@@ -57382,12 +57482,14 @@ async function update$6(logicalId, physicalId, resourceType, properties, previou
57382
57482
  const skipped = [...selectorsUnusable ? ["EventSelectors", "AdvancedEventSelectors"] : [], ...aggregationRead.kind === "unusable" ? ["AggregationConfigurations"] : []];
57383
57483
  if (skipped.length === 0) return {
57384
57484
  physicalId,
57385
- wasReplaced: false
57485
+ wasReplaced: false,
57486
+ ...attributes && { attributes }
57386
57487
  };
57387
57488
  const live = skipped.some((key) => previousProperties[key] != null && !Array.isArray(previousProperties[key])) ? await this.readLiveForRecord(physicalId, resourceType) : void 0;
57388
57489
  return {
57389
57490
  physicalId,
57390
57491
  wasReplaced: false,
57492
+ ...attributes && { attributes },
57391
57493
  effectiveProperties: retainPreviousLists(desiredProperties, previousProperties, skipped, live)
57392
57494
  };
57393
57495
  } catch (error) {
@@ -57523,10 +57625,10 @@ async function readCurrentState$4(physicalId, _logicalId, _resourceType) {
57523
57625
  async function importImpl$5(input) {
57524
57626
  const explicit = resolveExplicitPhysicalId(input, "TrailName");
57525
57627
  if (explicit) try {
57526
- await this.getClient().send(new GetTrailCommand({ Name: explicit }));
57628
+ const resp = await this.getClient().send(new GetTrailCommand({ Name: explicit }));
57527
57629
  return {
57528
57630
  physicalId: explicit,
57529
- attributes: {}
57631
+ attributes: trailAttributes(resp.Trail?.TrailARN, resp.Trail?.SnsTopicARN)
57530
57632
  };
57531
57633
  } catch (err) {
57532
57634
  if (err instanceof TrailNotFoundException) return null;
@@ -58724,7 +58826,7 @@ async function verifyRenamedRepository(logicalId, resourceType, oldName, newName
58724
58826
  ]).command, resourceType, logicalId, oldName));
58725
58827
  }
58726
58828
  function wrapNotThisRepositoryError(logicalId, resourceType, physicalId, which) {
58727
- const remedy = which === "desired-name" ? "The repository holding the desired RepositoryName is not this resource's (its repository id is not the one cdkd holds for this resource) — nothing was sent to that repository. If this resource's repository was renamed outside cdkd and you can find it, set RepositoryName to its current name: cdkd adopts it by the repository id it holds. If it was deleted outside cdkd, drop this resource's record and set RepositoryName to a name no repository holds, so the next deploy creates a new repository (fill in the resource's construct path):\n" + pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command : "The repository cdkd recorded for this resource no longer holds its recorded name (it was deleted or renamed outside cdkd), and the repository now holding that name is not this resource's (its repository id is not the one cdkd holds) — nothing was sent to that repository. Changing RepositoryName does not clear this. Leave that repository alone. If the recorded repository was renamed and you can find it, re-adopt it under its new name with cdkd import (--resource, --force) instead; otherwise drop this resource's record and set RepositoryName to a name no repository holds, so the next deploy creates a new repository (fill in the resource's construct path):\n" + pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command;
58829
+ const remedy = which === "desired-name" ? "The repository holding the desired RepositoryName is not this resource's (its repository id is not the one cdkd holds for this resource) — nothing was sent to that repository. If this resource's repository was renamed outside cdkd and you can find it, set RepositoryName to its current name: cdkd adopts it by the repository id it holds. If it was deleted outside cdkd, drop this resource's record and set RepositoryName to a name no repository holds, so the next deploy creates a new repository (fill in the resource's construct path):\n" + pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command : `The repository cdkd recorded for this resource no longer holds its recorded name (it was deleted or renamed outside cdkd), and the repository now holding that name is not this resource's (its repository id is not the one cdkd holds) — nothing was sent to that repository. Changing RepositoryName does not clear this. Leave that repository alone. If the recorded repository was renamed and you can find it, re-adopt it under its new name with ${cdkdRemedy("cdkd import")} (--resource, --force) instead; otherwise drop this resource's record and set RepositoryName to a name no repository holds, so the next deploy creates a new repository (fill in the resource's construct path):\n` + pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command;
58728
58830
  return markNonRetryable(new ProvisioningError(safeMsg`CodeCommit Repository ${logicalId}: ` + remedy, resourceType, logicalId, physicalId));
58729
58831
  }
58730
58832
 
@@ -59118,7 +59220,7 @@ var DLMLifecyclePolicyProvider = class {
59118
59220
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
59119
59221
  assertRegionMatch(context?.expectedRegion ? await this.getClient().config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
59120
59222
  refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
59121
- if (JSON.stringify(properties["DefaultPolicy"]) !== JSON.stringify(previousProperties["DefaultPolicy"])) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, "DefaultPolicy cannot be changed in place; re-run with `cdkd deploy --replace` to recreate the policy (--replace is a boolean flag and takes no resource id; it applies to every resource in the run whose in-place update is refused)");
59223
+ if (JSON.stringify(properties["DefaultPolicy"]) !== JSON.stringify(previousProperties["DefaultPolicy"])) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `DefaultPolicy cannot be changed in place; re-run with ${deployReplaceCommand()} to recreate the policy (--replace is a boolean flag and takes no resource id; it applies to every resource in the run whose in-place update is refused)`);
59122
59224
  this.logger.debug(`Updating DLM Lifecycle Policy ${logicalId} (${physicalId})`);
59123
59225
  try {
59124
59226
  await this.getClient().send(new UpdateLifecyclePolicyCommand({
@@ -59290,7 +59392,7 @@ var S3VectorsProvider = class {
59290
59392
  previous: previousProperties[createOnly],
59291
59393
  physicalName: createOnly === "VectorBucketName" ? physicalId : void 0,
59292
59394
  maskSecrets: context?.maskSecrets
59293
- })) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `'${createOnly}' is immutable (create-only) on VectorBucket '${mask(physicalId)}'; a change requires replacement (cdkd deploy --replace --force-stateful-recreation — the type is in cdkd's stateful-recreate guard set, so a bare --replace is refused a second time with STATEFUL_REPLACE_BLOCKED)`);
59395
+ })) throw new ResourceUpdateNotSupportedError(resourceType, logicalId, `'${createOnly}' is immutable (create-only) on VectorBucket '${mask(physicalId)}'; a change requires replacement (${deployReplaceCommand(true)} — the type is in cdkd's stateful-recreate guard set, so a bare --replace is refused a second time with STATEFUL_REPLACE_BLOCKED)`);
59294
59396
  const plan = planTagDiff(previousProperties["Tags"], properties["Tags"]);
59295
59397
  const tagWarning = tagPlanWarning(plan, resourceType, logicalId);
59296
59398
  if (tagWarning !== void 0) this.logger.warn(tagWarning);
@@ -61011,9 +61113,21 @@ async function createTable(logicalId, resourceType, properties, context) {
61011
61113
  if (!response.tableARN) throw new ProvisioningError(`CreateTable did not return a tableARN for ${logicalId} (${physicalId}) — refusing to record an empty TableARN attribute`, resourceType, logicalId, physicalId);
61012
61114
  const tableARN = response.tableARN;
61013
61115
  this.logger.debug(`Successfully created S3 Tables Table ${logicalId}: ${physicalId}`);
61116
+ let described;
61117
+ try {
61118
+ described = await this.getClient().send(new GetTableCommand$1({ tableArn: tableARN }));
61119
+ } catch (readError) {
61120
+ described = void 0;
61121
+ const errorClass = readError?.name ?? "Error";
61122
+ this.logger.debug(safeMsg`GetTable after creating S3 Tables Table ${logicalId} failed (${errorClass}); WarehouseLocation is left to a later re-read`);
61123
+ }
61014
61124
  return {
61015
61125
  physicalId,
61016
- attributes: { TableARN: tableARN }
61126
+ attributes: definedAttributes({
61127
+ TableARN: tableARN,
61128
+ WarehouseLocation: described?.warehouseLocation,
61129
+ VersionToken: described?.versionToken ?? response.versionToken
61130
+ })
61017
61131
  };
61018
61132
  } catch (error) {
61019
61133
  const cause = error instanceof Error ? error : void 0;
@@ -61466,7 +61580,7 @@ async function importTable(input) {
61466
61580
  this.logger.debug(`S3 Tables Table ${input.logicalId}: template carries a Cloud-Control-routing property, recording the bare TableARN (CC's identifier) rather than cdkd's composite.`);
61467
61581
  return {
61468
61582
  physicalId: tableARN,
61469
- attributes: { TableARN: tableARN }
61583
+ attributes: tableAttributes(tableARN, response)
61470
61584
  };
61471
61585
  }
61472
61586
  const tableRefusal = compositeIdSeparatorRefusal("AWS::S3Tables::Table", input.logicalId, [
@@ -61489,9 +61603,16 @@ async function importTable(input) {
61489
61603
  }
61490
61604
  return {
61491
61605
  physicalId: `${identity.tableBucketARN}|${identity.namespace}|${identity.name}`,
61492
- attributes: { TableARN: tableARN }
61606
+ attributes: tableAttributes(tableARN, response)
61493
61607
  };
61494
61608
  }
61609
+ function tableAttributes(tableARN, response) {
61610
+ return definedAttributes({
61611
+ TableARN: tableARN,
61612
+ WarehouseLocation: response.warehouseLocation,
61613
+ VersionToken: response.versionToken
61614
+ });
61615
+ }
61495
61616
 
61496
61617
  // src/provisioning/providers/s3-tables/tags.ts
61497
61618
  function tagListToSdkMap(tags) {
@@ -61526,7 +61647,7 @@ async function applyTableTagsDiff(logicalId, physicalId, resourceType, previousT
61526
61647
  if (resolvedParts === "unparseable") throw new ProvisioningError(`applyTableTagsDiff: ${compositeIdFormatMessage(S3_TABLES_TABLE_ID_FORMAT, logicalId, physicalId)}. Cannot derive the table ARN for the tag update, and refusing to silently drop it.`, resourceType, logicalId, physicalId);
61527
61648
  const { tableBucketARN, namespace, name } = resolvedParts;
61528
61649
  const resourceArn = await this.lookupTableArn(tableBucketARN, namespace, name);
61529
- if (!resourceArn) throw new ProvisioningError(safeMsg`applyTableTagsDiff: GetTable returned no tableARN for ${physicalId} — table is gone ` + `or state is out-of-sync. Refusing to silently drop the tag update. If the table was deleted out-of-band, drop just this resource's record with the command below, filling in the construct path the CDK app gave this resource — its aws:cdk:path Metadata entry in the synthesized template.\nClean up with: cdkd orphan ${commandHole("constructPath")}`, resourceType, logicalId, physicalId);
61650
+ if (!resourceArn) throw new ProvisioningError(safeMsg`applyTableTagsDiff: GetTable returned no tableARN for ${physicalId} — table is gone ` + `or state is out-of-sync. Refusing to silently drop the tag update. If the table was deleted out-of-band, drop just this resource's record with the command below, filling in the construct path the CDK app gave this resource — its aws:cdk:path Metadata entry in the synthesized template.\nClean up with: ${pasteableCommand("cdkd orphan", [{ hole: "constructPath" }]).command}`, resourceType, logicalId, physicalId);
61530
61651
  if (removedKeys.length > 0) try {
61531
61652
  await this.getClient().send(new UntagResourceCommand$31({
61532
61653
  resourceArn,
@@ -62948,4 +63069,4 @@ var ACMCertificateProvider = class {
62948
63069
  };
62949
63070
 
62950
63071
  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 };
62951
- //# sourceMappingURL=provider-classes-Diwm8MK7.js.map
63072
+ //# sourceMappingURL=provider-classes-CM8Txuvb.js.map