@go-to-k/cdkd 0.301.1 → 0.301.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 (30) hide show
  1. package/dist/{asg-provider-BHhRkEYv.js → asg-provider-Di3xOH3L.js} +8 -15
  2. package/dist/asg-provider-Di3xOH3L.js.map +1 -0
  3. package/dist/cli.js +2 -2
  4. package/dist/{deploy-engine-BYgrFxwH.js → deploy-engine-CZaafy9R.js} +315 -102
  5. package/dist/deploy-engine-CZaafy9R.js.map +1 -0
  6. package/dist/{iam-policy-targets-DFk7zr0Q.js → iam-policy-targets-BkeM7IXi.js} +6 -3
  7. package/dist/iam-policy-targets-BkeM7IXi.js.map +1 -0
  8. package/dist/{iam-role-provider-B3i7FMiT.js → iam-role-provider-De0ZPOAF.js} +4 -4
  9. package/dist/iam-role-provider-De0ZPOAF.js.map +1 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +3 -3
  12. package/dist/{neptune-provider-iRg5Dagt.js → neptune-provider-DTUriVz3.js} +12 -12
  13. package/dist/neptune-provider-DTUriVz3.js.map +1 -0
  14. package/dist/{program-Djx1RrEU.js → program-CYtSW-WU.js} +29 -208
  15. package/dist/program-CYtSW-WU.js.map +1 -0
  16. package/dist/{provider-classes-gt8C7wFO.js → provider-classes-59TTNMFB.js} +336 -279
  17. package/dist/provider-classes-59TTNMFB.js.map +1 -0
  18. package/dist/{rds-provider-N3EBsqc6.js → rds-provider-Dadp11aB.js} +12 -12
  19. package/dist/rds-provider-Dadp11aB.js.map +1 -0
  20. package/dist/{version-Q15RJPDm.js → version-Cx2pAgJv.js} +2 -2
  21. package/dist/{version-Q15RJPDm.js.map → version-Cx2pAgJv.js.map} +1 -1
  22. package/package.json +2 -2
  23. package/dist/asg-provider-BHhRkEYv.js.map +0 -1
  24. package/dist/deploy-engine-BYgrFxwH.js.map +0 -1
  25. package/dist/iam-policy-targets-DFk7zr0Q.js.map +0 -1
  26. package/dist/iam-role-provider-B3i7FMiT.js.map +0 -1
  27. package/dist/neptune-provider-iRg5Dagt.js.map +0 -1
  28. package/dist/program-Djx1RrEU.js.map +0 -1
  29. package/dist/provider-classes-gt8C7wFO.js.map +0 -1
  30. package/dist/rds-provider-N3EBsqc6.js.map +0 -1
@@ -1,13 +1,13 @@
1
1
  import { r as getAwsClients } from "./aws-clients-B_CEQGE1.js";
2
2
  import { B as safeMsg, F as displaySafe, I as displayStackName, L as isPasteableIdent, O as SECRET_REF_MAX_CODE_POINTS, P as displayIdent, a as getLogger, b as generateResourceNameWithFallback, n as isAwsAuthoredFailure, r as safeStringify, t as describeAwsFailure, y as generateResourceName, z as plainIdentOr } from "./aws-failure-text-BEQfs6za.js";
3
- import { $ as protectedReplacementAdvice, $n as explicitDenyPolicyKind, $t as ambientCredentialConfig, A as isQuotableImportValue, B as isTerminalDeleteFailure, C as setBounded, D as VALUE_NOT_SHOWN, E as assertRegionMatch, F as resolveExplicitPhysicalId, Fn as isInertUnquoted, H as observeThenDisableProtection, Hn as withheldTargetClause, In as pasteableCommand, Kt as injectiveKey, L as ProtectionFlipRegistry, M as quotedRemedyLogicalId, Mt as markCreatedBeforeFailure, N as refusalTypeShown, Nn as commandHole, Nt as markSupersedesEarlierCreate, O as isPlainImportJson, P as remedyLogicalId, Pn as hasClauseBreak, Q as pasteableAwsCommand, Qn as markReplayMayCollide, Qt as ambientClientDefaults, Rn as plainOrDescribed, S as replayedSendWindow, St as withDerivedNameMasks, T as RESOURCE_NOT_FOUND, Tt as clearCreatedBeforeFailure, U as protectionFlipKey, V as logGroupProtectionSite, Vn as shellQuote, W as rdsFamilyProtectionSite, X as WITHHELD_AWS_COMMAND, Y as UNNAMEABLE_ID_CLAUSE, Z as isAwsCliLiteral, Zn as markNameCollision, Zt as withPasteableAwsProfile, _ as RecentIdSet, _t as createMaskedLogSinks, a as onlySecretDerived, ar as isRetryableTransientError, at as startInterruptWatch, b as isInsideWindow, bn as ResourceUpdateNotSupportedError, bt as maskDeep, c as recordedPrincipalsRepair, cr as THROTTLING_ERROR_NAMES, ct as canonicalizeRoute53QueryName, dr as markNonRetryable, dt as compositeIdSkipResult, en as clientDefaultsFor, et as renderDisableCommand, fr as markRedactedCause, ft as logicalIdShown, g as AmbiguousCreateLatch, gt as stateOrphanRecordRemedy, h as AMBIGUOUS_LATCH_TTL_MS, ht as segmentAfterAnchor, i as holdsSecretDerivedEntry, in as CdkdError, it as isInterruptedWaitError, j as normalizeAwsTagsToCfn, jt as markAuxiliaryFailure, k as isPlainImportValue, lr as isMarkedNonRetryable, lt as compositeIdFormatMessage, nn as AccountIdUnavailableError, nr as isAmbiguousOutcomeError, o as readPrincipalLists, or as isTransientServerError, ot as ElapsedBudgetRegistry, p as withRemovalDefaults, pr as wrapMaskedAwsError, pt as packCompositeId, q as userPoolProtectionSite, qt as injectiveKeyPrefix, r as SECRET_DERIVED_READ_LIVE, rr as isExplicitDenyError, tn as credentialFingerprint, u as clearOnUpdateRemoval, ur as isThrottlingError, ut as compositeIdSeparatorRefusal, v as ambiguousAttemptLead, vn as ProvisioningError, vt as createMaskedRetryLogger, w as withoutServerErrorRetries, x as replayFollowedAmbiguousAttempt, xt as maskerOrIdentity, y as createAttemptKey, yt as isSecretDerivedValue, z as deleteWithProtectionCompensation } from "./iam-policy-targets-DFk7zr0Q.js";
3
+ import { $ as protectedReplacementAdvice, $n as explicitDenyPolicyKind, $t as ambientCredentialConfig, A as isQuotableImportValue, B as isTerminalDeleteFailure, C as setBounded, D as VALUE_NOT_SHOWN, E as assertRegionMatch, F as resolveExplicitPhysicalId, Fn as isInertUnquoted, H as observeThenDisableProtection, Hn as withheldTargetClause, In as pasteableCommand, Kt as injectiveKey, L as ProtectionFlipRegistry, M as quotedRemedyLogicalId, Mt as markCreatedBeforeFailure, N as refusalTypeShown, Nn as commandHole, Nt as markSupersedesEarlierCreate, O as isPlainImportJson, P as remedyLogicalId, Pn as hasClauseBreak, Q as pasteableAwsCommand, Qn as markReplayMayCollide, Qt as ambientClientDefaults, Rn as plainOrDescribed, S as replayedSendWindow, St as withDerivedNameMasks, T as RESOURCE_NOT_FOUND, Tt as clearCreatedBeforeFailure, U as protectionFlipKey, V as logGroupProtectionSite, Vn as shellQuote, W as rdsFamilyProtectionSite, X as WITHHELD_AWS_COMMAND, Y as UNNAMEABLE_ID_CLAUSE, Z as isAwsCliLiteral, Zn as markNameCollision, Zt as withPasteableAwsProfile, _ as RecentIdSet, _t as createMaskedLogSinks, a as onlySecretDerived, ar as isRetryableTransientError, at as startInterruptWatch, b as isInsideWindow, bn as ResourceUpdateNotSupportedError, bt as maskDeep, c as recordedPrincipalsRepair, cr as THROTTLING_ERROR_NAMES, ct as canonicalizeRoute53QueryName, dr as markNonRetryable, dt as compositeIdSkipResult, en as clientDefaultsFor, et as renderDisableCommand, fr as markRedactedCause, ft as logicalIdShown, g as AmbiguousCreateLatch, gt as stateOrphanRecordRemedy, h as AMBIGUOUS_LATCH_TTL_MS, ht as segmentAfterAnchor, i as holdsSecretDerivedEntry, in as CdkdError, it as isInterruptedWaitError, j as normalizeAwsTagsToCfn, jt as markAuxiliaryFailure, k as isPlainImportValue, lr as isMarkedNonRetryable, lt as compositeIdFormatMessage, nn as AccountIdUnavailableError, nr as isAmbiguousOutcomeError, o as readPrincipalLists, or as isTransientServerError, ot as ElapsedBudgetRegistry, p as withRemovalDefaults, pr as wrapMaskedAwsError, pt as packCompositeId, q as userPoolProtectionSite, qt as injectiveKeyPrefix, r as SECRET_DERIVED_READ_LIVE, rr as isExplicitDenyError, tn as credentialFingerprint, u as clearOnUpdateRemoval, ur as isThrottlingError, ut as compositeIdSeparatorRefusal, v as ambiguousAttemptLead, vn as ProvisioningError, vt as createMaskedRetryLogger, w as withoutServerErrorRetries, x as replayFollowedAmbiguousAttempt, xt as maskerOrIdentity, y as createAttemptKey, yt as isSecretDerivedValue, z as deleteWithProtectionCompensation } from "./iam-policy-targets-BkeM7IXi.js";
4
4
  import { s as ambientRegion } from "./aws-client-defaults-DBXBcg0J.js";
5
- import { $ as S3_AUTO_DELETE_OBJECTS_TAG, Bl as renderAssemblyPathEscape, Br as deleteSkipReason, C as withApiLimit, Co as configIntegerRefusal, Dl as canonicalizeRegion, Do as requireConfigArray, Ds as recoverMaskedOutput, Eo as replayWarn, Fo as lambdaFunctionNameForMask, Fr as unchangedBehindSecretReference, G as deleteBudgetKey, Gr as ec2InstanceProtectionSite, Gt as awaitInFlightSibling, H as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, Hi as passedParameterClassesOf, Hr as isWaitAbandonedError, Ht as withNestedStackContext, Io as sameLambdaFunctionAddress, J as DELETE_INDEX_WAIT_PROCEED_NOTE, Jo as passedNoEchoParametersOf, Jr as reDisableInstanceApiTermination, K as resolveDynamoDbDeleteBudgetClock, Kr as isTerminationProtectionPropagationError, Lt as revertNestedChildFromJournal, Ms as carriesSecretMask, No as withRetry, Ol as derivePartitionAndUrlSuffix, Oo as requireConfigObject, Or as getCurrentResourceSecrets, Os as physicalNameCopiesOf, Po as canonicalLambdaFunctionName, Pr as slowCcOperationTimeoutMs, Pt as getNestedRevertRun, Q as ECR_AUTO_DELETE_IMAGES_TAG, Rl as describeFileReadFailure, S as lookupEachName, Sc as rewriteTemplateAssetReferences, So as configBooleanRefusal, To as readConfigString, U as beginDeleteWait, Ur as markWaitAbandoned, V as DynamoDBGlobalTableProvider, Vl as resolveAssemblyPath, Vr as withIndeterminateGuard, Vt as getCurrentNestedStackContext, W as compensateRemovedDeletionProtection, Wa as refuseMalformedResourcesForDestroy, X as deleteTableWithIndexBusyRetry, Xt as replacedDeleteFailureVerdict, Y as INDEX_SETTLE_POLL_INTERVAL_MS, Yi as accountArgs, Yr as reEnableInstanceApiTermination, Z as waitForIndexesSettled, _c as stringifyValue, _i as s3BucketArn, _o as isWarmThroughputDecrease, _r as tagPlanWarning, b as chunks, bi as s3BucketRegionalDomainName, bo as coerceCfnBoolean, c as isAbsoluteAssetPath, cr as acquireIdempotencyToken, dn as REDACTED_DELETE_ADDRESS_SKIP_REASON, dr as DBPROXY_TAGS_WHAT, et as hasCdkAutoDeleteTag, fi as isSettledInstanceState, fn as isRedactedRecordedValue, fr as DBPROXY_TAG_OPTIONS, go as coerceWarmThroughput$1, gr as tagMapAsList, gs as redactSecretsForState, ho as WARM_THROUGHPUT_MEMBERS, hr as refuseMalformedDesiredTags, hs as snapshotPassProvenance, io as findSilentDropProperties, ir as earliestDefined, ki as getAccountInfo, ko as requireConfigString, ks as recordAttributeIdCopy, l as listNestedTemplateRows, ln as getCurrentProducerRegions, lr as isRefusedByName, mi as outputReferenceProvenanceOf, mn as redactedDeleteAddressSkip, mr as readTagList, ms as recordReferenceProvenanceEntry, no as withheldAccountClause, nt as getPriorAttempts, oo as withoutSilentDropProperties, or as reserveStackCreateToken, pn as redactedDeleteAddressFields, pr as planTagDiff, ps as markSameGenerationBag, q as resolveDynamoDbDeleteBudgetMs, qr as observeThenDisableInstanceApiTermination, qt as getStackRecords, rt as markRefusedBeforeApplying, s as findNestedTemplateTreeDefect, t as DeployEngine, ts as hasMaskableValues, tt as isTruthyCfnBoolean, u as renderNestedTemplateTreeDefect, ur as markDeleteStarted, vi as s3BucketDomainName, vo as toCfnInteger, vr as definedAttributes, wa as refuseMalformedNestedChildOutputs, wl as decodeListingKey, wo as configStringRefusal, x as isAccessDeniedError, xi as s3BucketWebsiteUrl, xo as coerceCfnInteger, xs as dynamicReferenceTokens, yi as s3BucketDualStackDomainName, yo as toFiniteNumber, yr as stringifyIfAssigned, ys as withoutPhysicalNameCopies, zi as parseWebACLArn, zl as displayAssemblyPath } from "./deploy-engine-BYgrFxwH.js";
6
- import { n as collectInlinePolicyNamesManagedBySiblings, r as IamCreateClientCache, t as IAMRoleProvider } from "./iam-role-provider-B3i7FMiT.js";
7
- import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, s as resolvedResourceTimeoutMs, t as canonicalizeIpv4Cidr } from "./program-Djx1RrEU.js";
8
- import { RDSProvider } from "./rds-provider-N3EBsqc6.js";
9
- import { NeptuneProvider } from "./neptune-provider-iRg5Dagt.js";
10
- import { ASGProvider } from "./asg-provider-BHhRkEYv.js";
5
+ import { $ as S3_AUTO_DELETE_OBJECTS_TAG, Ai as getAccountInfo, Ao as requireConfigString, As as recordAttributeIdCopy, Bi as parseWebACLArn, Bl as displayAssemblyPath, C as withApiLimit, Cc as rewriteTemplateAssetReferences, Co as configBooleanRefusal, Do as replayWarn, Eo as readConfigString, Fo as canonicalLambdaFunctionName, Fr as slowCcOperationTimeoutMs, G as deleteBudgetKey, Ga as refuseMalformedResourcesForDestroy, Gt as awaitInFlightSibling, H as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, Hl as resolveAssemblyPath, Hr as withIndeterminateGuard, Ht as withNestedStackContext, Io as lambdaFunctionNameForMask, Ir as unchangedBehindSecretReference, J as DELETE_INDEX_WAIT_PROCEED_NOTE, Jr as observeThenDisableInstanceApiTermination, K as resolveDynamoDbDeleteBudgetClock, Kr as ec2InstanceProtectionSite, Lo as sameLambdaFunctionAddress, Lt as revertNestedChildFromJournal, Ns as carriesSecretMask, Ol as canonicalizeRegion, Oo as requireConfigArray, Os as recoverMaskedOutput, Po as withRetry, Pt as getNestedRevertRun, Q as ECR_AUTO_DELETE_IMAGES_TAG, S as lookupEachName, Si as s3BucketWebsiteUrl, So as coerceCfnInteger, Ss as dynamicReferenceTokens, Ta as refuseMalformedNestedChildOutputs, Tl as decodeListingKey, To as configStringRefusal, Tr as waitForLambdaFunctionActive, U as beginDeleteWait, Ui as passedParameterClassesOf, Ur as isWaitAbandonedError, V as DynamoDBGlobalTableProvider, Vl as renderAssemblyPathEscape, Vr as deleteSkipReason, Vt as getCurrentNestedStackContext, W as compensateRemovedDeletionProtection, Wr as markWaitAbandoned, X as deleteTableWithIndexBusyRetry, Xi as accountArgs, Xr as reEnableInstanceApiTermination, Xt as replacedDeleteFailureVerdict, Y as INDEX_SETTLE_POLL_INTERVAL_MS, Yo as passedNoEchoParametersOf, Yr as reDisableInstanceApiTermination, Z as waitForIndexesSettled, _o as coerceWarmThroughput$1, _r as tagPlanWarning, _s as redactSecretsForState, ao as findSilentDropProperties, b as chunks, bi as s3BucketDualStackDomainName, bo as toFiniteNumber, bs as withoutPhysicalNameCopies, c as isAbsoluteAssetPath, cr as acquireIdempotencyToken, dn as REDACTED_DELETE_ADDRESS_SKIP_REASON, dr as DBPROXY_TAGS_WHAT, et as hasCdkAutoDeleteTag, fn as isRedactedRecordedValue, fr as DBPROXY_TAG_OPTIONS, go as WARM_THROUGHPUT_MEMBERS, gr as tagMapAsList, gs as snapshotPassProvenance, hi as outputReferenceProvenanceOf, hr as refuseMalformedDesiredTags, hs as recordReferenceProvenanceEntry, ir as earliestDefined, kl as derivePartitionAndUrlSuffix, ko as requireConfigObject, kr as getCurrentResourceSecrets, ks as physicalNameCopiesOf, l as listNestedTemplateRows, ln as getCurrentProducerRegions, lr as isRefusedByName, mn as redactedDeleteAddressSkip, mr as readTagList, ms as markSameGenerationBag, ns as hasMaskableValues, nt as getPriorAttempts, or as reserveStackCreateToken, pi as isSettledInstanceState, pn as redactedDeleteAddressFields, pr as planTagDiff, q as resolveDynamoDbDeleteBudgetMs, qr as isTerminationProtectionPropagationError, qt as getStackRecords, ro as withheldAccountClause, rt as markRefusedBeforeApplying, s as findNestedTemplateTreeDefect, so as withoutSilentDropProperties, t as DeployEngine, tt as isTruthyCfnBoolean, u as renderNestedTemplateTreeDefect, ur as markDeleteStarted, vc as stringifyValue, vi as s3BucketArn, vo as isWarmThroughputDecrease, vr as definedAttributes, wo as configIntegerRefusal, x as isAccessDeniedError, xi as s3BucketRegionalDomainName, xo as coerceCfnBoolean, yi as s3BucketDomainName, yo as toCfnInteger, yr as stringifyIfAssigned, zl as describeFileReadFailure } from "./deploy-engine-CZaafy9R.js";
6
+ import { n as collectInlinePolicyNamesManagedBySiblings, r as IamCreateClientCache, t as IAMRoleProvider } from "./iam-role-provider-De0ZPOAF.js";
7
+ import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, s as resolvedResourceTimeoutMs, t as canonicalizeIpv4Cidr } from "./program-CYtSW-WU.js";
8
+ import { RDSProvider } from "./rds-provider-Dadp11aB.js";
9
+ import { NeptuneProvider } from "./neptune-provider-DTUriVz3.js";
10
+ import { ASGProvider } from "./asg-provider-Di3xOH3L.js";
11
11
  import { createHash, randomUUID } from "node:crypto";
12
12
  import { CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client } from "@aws-sdk/client-s3";
13
13
  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, UpdateLoginProfileCommand } from "@aws-sdk/client-iam";
@@ -507,7 +507,7 @@ var IAMPolicyProvider = class {
507
507
  this.logger.debug(`Successfully deleted IAM policy ${logicalId}`);
508
508
  } catch (error) {
509
509
  const cause = error instanceof Error ? error : void 0;
510
- const failure = new ProvisioningError(`Failed to delete IAM policy ${logicalId}: ${mask(error instanceof Error ? error.message : String(error))}`, resourceType, logicalId, physicalId, cause);
510
+ const failure = new ProvisioningError(`Failed to delete IAM policy ${logicalId}: ${mask(describeAwsFailure(error).detail)}`, resourceType, logicalId, physicalId, cause);
511
511
  throw maskError(removedAny ? markDeleteStarted(failure) : failure);
512
512
  }
513
513
  }
@@ -1359,7 +1359,7 @@ var IAMInstanceProfileProvider = class {
1359
1359
  return;
1360
1360
  }
1361
1361
  const cause = error instanceof Error ? error : void 0;
1362
- const failure = new ProvisioningError(`Failed to delete IAM instance profile ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
1362
+ const failure = new ProvisioningError(`Failed to delete IAM instance profile ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
1363
1363
  throw stripped ? markDeleteStarted(failure) : failure;
1364
1364
  }
1365
1365
  }
@@ -1610,7 +1610,7 @@ var IAMAccessKeyProvider = class {
1610
1610
  try {
1611
1611
  status = properties["Status"] === void 0 ? "Active" : requireConfigString(properties["Status"], previousStatus, "AWS::IAM::AccessKey Status", stateBorneDesired ? { onUnusable: (message) => log.warn(message) } : {});
1612
1612
  } catch (error) {
1613
- throw new ProvisioningError(`${v(error instanceof Error ? error.message : String(error))}. Nothing was applied to access key ${logicalId}; fix the template value`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
1613
+ throw new ProvisioningError(`${v(describeAwsFailure(error).detail)}. Nothing was applied to access key ${logicalId}; fix the template value`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
1614
1614
  }
1615
1615
  try {
1616
1616
  await this.iamClient.send(new UpdateAccessKeyCommand({
@@ -1648,7 +1648,7 @@ var IAMAccessKeyProvider = class {
1648
1648
  return;
1649
1649
  }
1650
1650
  const cause = error instanceof Error ? error : void 0;
1651
- throw new ProvisioningError(`Failed to delete IAM access key ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
1651
+ throw new ProvisioningError(`Failed to delete IAM access key ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
1652
1652
  }
1653
1653
  }
1654
1654
  async getAttribute(physicalId, resourceType, attributeName, logicalId) {
@@ -2049,7 +2049,7 @@ var IAMUserGroupProvider = class {
2049
2049
  log.debug(`Successfully deleted IAM user ${logicalId}`);
2050
2050
  } catch (error) {
2051
2051
  const cause = error instanceof Error ? error : void 0;
2052
- const failure = new ProvisioningError(log.mask(`Failed to delete IAM user ${logicalId}: ${error instanceof Error ? error.message : String(error)}`), resourceType, logicalId, physicalId, cause);
2052
+ const failure = new ProvisioningError(log.mask(`Failed to delete IAM user ${logicalId}: ${describeAwsFailure(error).detail}`), resourceType, logicalId, physicalId, cause);
2053
2053
  throw progress.stripped ? markDeleteStarted(failure) : failure;
2054
2054
  }
2055
2055
  }
@@ -2330,7 +2330,7 @@ var IAMUserGroupProvider = class {
2330
2330
  return;
2331
2331
  }
2332
2332
  const cause = error instanceof Error ? error : void 0;
2333
- const failure = new ProvisioningError(log.mask(`Failed to delete IAM group ${logicalId}: ${error instanceof Error ? error.message : String(error)}`), resourceType, logicalId, physicalId, cause);
2333
+ const failure = new ProvisioningError(log.mask(`Failed to delete IAM group ${logicalId}: ${describeAwsFailure(error).detail}`), resourceType, logicalId, physicalId, cause);
2334
2334
  throw progress.stripped ? markDeleteStarted(failure) : failure;
2335
2335
  }
2336
2336
  }
@@ -2614,7 +2614,7 @@ var IAMUserGroupProvider = class {
2614
2614
  this.logger.debug(`Successfully deleted IAM UserToGroupAddition ${logicalId}`);
2615
2615
  } catch (error) {
2616
2616
  const cause = error instanceof Error ? error : void 0;
2617
- const failure = new ProvisioningError(`Failed to delete IAM UserToGroupAddition ${logicalId}: ${mask(error instanceof Error ? error.message : String(error))}`, resourceType, logicalId, physicalId, cause);
2617
+ const failure = new ProvisioningError(`Failed to delete IAM UserToGroupAddition ${logicalId}: ${mask(describeAwsFailure(error).detail)}`, resourceType, logicalId, physicalId, cause);
2618
2618
  throw maskError(removedAny ? markDeleteStarted(failure) : failure);
2619
2619
  }
2620
2620
  }
@@ -5808,7 +5808,7 @@ var SQSQueueProvider = class {
5808
5808
  };
5809
5809
  } catch (error) {
5810
5810
  const cause = error instanceof Error ? error : void 0;
5811
- throw new ProvisioningError(`Failed to create SQS queue ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, queueName, cause);
5811
+ throw new ProvisioningError(`Failed to create SQS queue ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, queueName, cause);
5812
5812
  }
5813
5813
  }
5814
5814
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -5856,7 +5856,7 @@ var SQSQueueProvider = class {
5856
5856
  };
5857
5857
  } catch (error) {
5858
5858
  const cause = error instanceof Error ? error : void 0;
5859
- throw new ProvisioningError(`Failed to update SQS queue ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
5859
+ throw new ProvisioningError(`Failed to update SQS queue ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
5860
5860
  }
5861
5861
  }
5862
5862
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -5872,7 +5872,7 @@ var SQSQueueProvider = class {
5872
5872
  return;
5873
5873
  }
5874
5874
  const cause = error instanceof Error ? error : void 0;
5875
- throw new ProvisioningError(`Failed to delete SQS queue ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
5875
+ throw new ProvisioningError(`Failed to delete SQS queue ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
5876
5876
  }
5877
5877
  }
5878
5878
  async applyTagDiff(queueUrl, resourceType, logicalId, oldTagsRaw, newTagsRaw) {
@@ -6597,7 +6597,7 @@ var SNSTopicProvider = class {
6597
6597
  };
6598
6598
  } catch (error) {
6599
6599
  const cause = error instanceof Error ? error : void 0;
6600
- const thrown = new ProvisioningError(`Failed to create SNS topic ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, topicName, cause);
6600
+ const thrown = new ProvisioningError(`Failed to create SNS topic ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, topicName, cause);
6601
6601
  if (leftBehindArn) markCreatedBeforeFailure(thrown, logicalId, resourceType, leftBehindArn);
6602
6602
  throw thrown;
6603
6603
  }
@@ -6609,7 +6609,7 @@ var SNSTopicProvider = class {
6609
6609
  } catch (error) {
6610
6610
  if (error instanceof CdkdError) throw error;
6611
6611
  const cause = error instanceof Error ? error : void 0;
6612
- throw new ProvisioningError(`Failed to update SNS topic ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
6612
+ throw new ProvisioningError(`Failed to update SNS topic ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
6613
6613
  }
6614
6614
  }
6615
6615
  async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties, maskSecrets) {
@@ -6775,7 +6775,7 @@ var SNSTopicProvider = class {
6775
6775
  return;
6776
6776
  }
6777
6777
  const cause = error instanceof Error ? error : void 0;
6778
- throw new ProvisioningError(`Failed to delete SNS topic ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
6778
+ throw new ProvisioningError(`Failed to delete SNS topic ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
6779
6779
  }
6780
6780
  }
6781
6781
  async getAttribute(physicalId, _resourceType, attributeName) {
@@ -7217,7 +7217,7 @@ var SNSSubscriptionProvider = class {
7217
7217
  return;
7218
7218
  }
7219
7219
  const cause = error instanceof Error ? error : void 0;
7220
- throw new ProvisioningError(mask(`Failed to delete SNS subscription ${logicalId}: ${error instanceof Error ? error.message : String(error)}`), resourceType, logicalId, physicalId, cause);
7220
+ throw new ProvisioningError(mask(`Failed to delete SNS subscription ${logicalId}: ${describeAwsFailure(error).detail}`), resourceType, logicalId, physicalId, cause);
7221
7221
  }
7222
7222
  }
7223
7223
  logPendingConfirmationSkip(logicalId, physicalId) {
@@ -7948,7 +7948,7 @@ var LambdaFunctionProvider = class {
7948
7948
  } catch (error) {
7949
7949
  if (functionCreated) markAuxiliaryFailure(error, logicalId);
7950
7950
  const cause = error instanceof Error ? error : void 0;
7951
- const thrown = this.wrapMaskedError(log, error, (text) => new ProvisioningError(`Failed to create Lambda function ${logicalId}: ${text}`, resourceType, logicalId, functionName, cause ?? new Error(String(error))));
7951
+ const thrown = this.wrapMaskedError(log, error, (text) => new ProvisioningError(`Failed to create Lambda function ${logicalId}: ${text}`, resourceType, logicalId, functionName, cause ?? new Error(safeStringify(error))));
7952
7952
  if (createdFunctionName !== void 0 && !postCreateCleanup.deleted) markCreatedBeforeFailure(thrown, logicalId, resourceType, createdFunctionName, createdFunctionIdentity);
7953
7953
  throw thrown;
7954
7954
  }
@@ -8126,7 +8126,7 @@ var LambdaFunctionProvider = class {
8126
8126
  } catch (error) {
8127
8127
  if (error instanceof ProvisioningError) throw error;
8128
8128
  const cause = error instanceof Error ? error : void 0;
8129
- throw this.wrapMaskedError(log, error, (text) => new ProvisioningError(`Failed to update Lambda function ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause ?? new Error(String(error))));
8129
+ throw this.wrapMaskedError(log, error, (text) => new ProvisioningError(`Failed to update Lambda function ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause ?? new Error(safeStringify(error))));
8130
8130
  }
8131
8131
  }
8132
8132
  async delete(logicalId, physicalId, resourceType, properties, context) {
@@ -8167,7 +8167,7 @@ var LambdaFunctionProvider = class {
8167
8167
  return;
8168
8168
  }
8169
8169
  const cause = error instanceof Error ? error : void 0;
8170
- const failure = new ProvisioningError(`Failed to delete Lambda function ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
8170
+ const failure = new ProvisioningError(`Failed to delete Lambda function ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
8171
8171
  throw stripped ? markDeleteStarted(failure) : failure;
8172
8172
  }
8173
8173
  if (hasVpcConfig) await this.cleanupLambdaEnis(physicalId);
@@ -8232,7 +8232,7 @@ var LambdaFunctionProvider = class {
8232
8232
  }, { FunctionName: functionName });
8233
8233
  } catch (error) {
8234
8234
  const cause = error instanceof Error ? error : void 0;
8235
- throw this.wrapMaskedError(log, error, (text) => new ProvisioningError(`Lambda function ${logicalId} update did not complete: ${text}`, resourceType, logicalId, functionName, cause ?? new Error(String(error))));
8235
+ throw this.wrapMaskedError(log, error, (text) => new ProvisioningError(`Lambda function ${logicalId} update did not complete: ${text}`, resourceType, logicalId, functionName, cause ?? new Error(safeStringify(error))));
8236
8236
  }
8237
8237
  }
8238
8238
  async waitForLambdaUpdateCompleted(functionName) {
@@ -8724,7 +8724,7 @@ var LambdaPermissionProvider = class {
8724
8724
  return;
8725
8725
  }
8726
8726
  const cause = error instanceof Error ? error : void 0;
8727
- throw new ProvisioningError(`Failed to delete Lambda permission ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
8727
+ throw new ProvisioningError(`Failed to delete Lambda permission ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
8728
8728
  }
8729
8729
  }
8730
8730
  async readCurrentState(physicalId, _logicalId, _resourceType, properties) {
@@ -8861,7 +8861,7 @@ var LambdaUrlProvider = class {
8861
8861
  log.warn(`${message} The function URL's existing auth type is kept for this update rather than reset to the default (NONE), which would make the URL public.`);
8862
8862
  } } : {});
8863
8863
  } catch (error) {
8864
- throw new ProvisioningError(`${log.mask(error instanceof Error ? error.message : String(error))}. Nothing was applied to Lambda URL ${logicalId}; fix the template value`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
8864
+ throw new ProvisioningError(`${log.mask(describeAwsFailure(error).detail)}. Nothing was applied to Lambda URL ${logicalId}; fix the template value`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
8865
8865
  }
8866
8866
  const previousAuthType = previousProperties["AuthType"];
8867
8867
  const authType = authTypeUnusable ? typeof previousAuthType === "string" && previousAuthType.trim() !== "" ? previousAuthType : void 0 : requestedAuthType;
@@ -8912,7 +8912,7 @@ var LambdaUrlProvider = class {
8912
8912
  return;
8913
8913
  }
8914
8914
  const cause = error instanceof Error ? error : void 0;
8915
- throw new ProvisioningError(`Failed to delete Lambda URL ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
8915
+ throw new ProvisioningError(`Failed to delete Lambda URL ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
8916
8916
  }
8917
8917
  }
8918
8918
  async getAttribute(physicalId, _resourceType, attributeName) {
@@ -9411,7 +9411,7 @@ var LambdaEventSourceMappingProvider = class {
9411
9411
  return;
9412
9412
  }
9413
9413
  const cause = error instanceof Error ? error : void 0;
9414
- throw new ProvisioningError(`Failed to delete event source mapping ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
9414
+ throw new ProvisioningError(`Failed to delete event source mapping ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
9415
9415
  }
9416
9416
  }
9417
9417
  async readCurrentState(physicalId, _logicalId, _resourceType, properties) {
@@ -9639,7 +9639,7 @@ var LambdaLayerVersionProvider = class {
9639
9639
  return;
9640
9640
  }
9641
9641
  const cause = error instanceof Error ? error : void 0;
9642
- throw new ProvisioningError(`Failed to delete Lambda layer version ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
9642
+ throw new ProvisioningError(`Failed to delete Lambda layer version ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
9643
9643
  }
9644
9644
  }
9645
9645
  async readCurrentState(physicalId, _logicalId, _resourceType) {
@@ -9853,7 +9853,7 @@ var LambdaEventInvokeConfigProvider = class {
9853
9853
  return;
9854
9854
  }
9855
9855
  const cause = error instanceof Error ? error : void 0;
9856
- throw new ProvisioningError(`Failed to delete Lambda EventInvokeConfig ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
9856
+ throw new ProvisioningError(`Failed to delete Lambda EventInvokeConfig ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
9857
9857
  }
9858
9858
  }
9859
9859
  async getAttribute(_physicalId, _resourceType, _attributeName) {}
@@ -10948,6 +10948,32 @@ function sameWeights(a, b) {
10948
10948
  const right = b.map(key).sort();
10949
10949
  return left.every((k, i) => k === right[i]);
10950
10950
  }
10951
+ function regionalEndpointAttribute(entry) {
10952
+ const scaling = definedAttributes({ MaxEnvironments: entry.scalingConfig?.maxEnvironments });
10953
+ const throttle = definedAttributes({ RateLimit: entry.throttleConfig?.rateLimit });
10954
+ return definedAttributes({
10955
+ DomainName: entry.domainName,
10956
+ AuthType: entry.authType,
10957
+ RevisionWeights: entry.revisionWeights?.map((w) => definedAttributes({
10958
+ RevisionId: w.revisionId,
10959
+ Weight: w.weight
10960
+ })),
10961
+ ScalingConfig: Object.keys(scaling).length > 0 ? scaling : void 0,
10962
+ ThrottleConfig: Object.keys(throttle).length > 0 ? throttle : void 0,
10963
+ State: entry.state,
10964
+ StateReason: entry.stateReason,
10965
+ UpdateStatus: entry.updateStatus,
10966
+ UpdateStatusReason: entry.updateStatusReason
10967
+ });
10968
+ }
10969
+ const REGIONAL_SCALAR_MEMBERS = [
10970
+ "DomainName",
10971
+ "AuthType",
10972
+ "State",
10973
+ "StateReason",
10974
+ "UpdateStatus",
10975
+ "UpdateStatusReason"
10976
+ ];
10951
10977
  function buildAttributes$1(resp) {
10952
10978
  const attributes = definedAttributes({
10953
10979
  EndpointArn: resp.endpointArn,
@@ -10960,17 +10986,15 @@ function buildAttributes$1(resp) {
10960
10986
  CreatedAt: resp.createdAt?.toISOString(),
10961
10987
  UpdatedAt: resp.updatedAt?.toISOString()
10962
10988
  });
10963
- for (const [region, entry] of Object.entries(resp.regionalEndpoints ?? {})) {
10964
- const members = definedAttributes({
10965
- DomainName: entry.domainName,
10966
- AuthType: entry.authType,
10967
- State: entry.state,
10968
- StateReason: entry.stateReason,
10969
- UpdateStatus: entry.updateStatus,
10970
- UpdateStatusReason: entry.updateStatusReason
10971
- });
10972
- for (const [member, value] of Object.entries(members)) attributes[`RegionalEndpoints.${region}.${member}`] = value;
10973
- }
10989
+ if (!resp.regionalEndpoints) return attributes;
10990
+ const regional = {};
10991
+ for (const [region, entry] of Object.entries(resp.regionalEndpoints)) {
10992
+ const members = regionalEndpointAttribute(entry ?? {});
10993
+ if (Object.keys(members).length === 0) continue;
10994
+ regional[region] = members;
10995
+ for (const member of REGIONAL_SCALAR_MEMBERS) if (Object.hasOwn(members, member)) attributes[`RegionalEndpoints.${region}.${member}`] = members[member];
10996
+ }
10997
+ attributes["RegionalEndpoints"] = regional;
10974
10998
  return attributes;
10975
10999
  }
10976
11000
 
@@ -12031,7 +12055,7 @@ var DynamoDBTableProvider = class {
12031
12055
  }
12032
12056
  markAuxiliaryFailure(error, logicalId);
12033
12057
  }
12034
- const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create DynamoDB table ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, tableName, error instanceof Error ? error : void 0);
12058
+ const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create DynamoDB table ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, tableName, error instanceof Error ? error : void 0);
12035
12059
  if (tableLeftBehind) markCreatedBeforeFailure(thrown, logicalId, resourceType, tableName, createdTableId);
12036
12060
  throw thrown;
12037
12061
  }
@@ -12054,7 +12078,7 @@ var DynamoDBTableProvider = class {
12054
12078
  if (context?.replayingState !== true && context?.desiredFromAwsReadback !== true && JSON.stringify(properties["BillingMode"]) !== JSON.stringify(previousProperties["BillingMode"])) try {
12055
12079
  requireConfigString(properties["BillingMode"], "PROVISIONED", "AWS::DynamoDB::Table BillingMode");
12056
12080
  } catch (error) {
12057
- throw new ProvisioningError(`AWS::DynamoDB::Table ${logicalId}: ${error instanceof Error ? error.message : String(error)}. Nothing was applied to the table; fix the template value`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
12081
+ throw new ProvisioningError(`AWS::DynamoDB::Table ${logicalId}: ${describeAwsFailure(error).detail}. Nothing was applied to the table; fix the template value`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
12058
12082
  }
12059
12083
  if (context?.replayingState !== true && context?.desiredFromAwsReadback !== true && JSON.stringify(properties["PointInTimeRecoverySpecification"]) !== JSON.stringify(previousProperties["PointInTimeRecoverySpecification"])) {
12060
12084
  const pitrRefusal = pointInTimeRecoveryRefusal(properties["PointInTimeRecoverySpecification"]);
@@ -12286,7 +12310,7 @@ var DynamoDBTableProvider = class {
12286
12310
  } catch (error) {
12287
12311
  if (error instanceof ProvisioningError) throw error;
12288
12312
  const cause = error instanceof Error ? error : void 0;
12289
- throw new ProvisioningError(`Failed to update DynamoDB table ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
12313
+ throw new ProvisioningError(`Failed to update DynamoDB table ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
12290
12314
  }
12291
12315
  }
12292
12316
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -12387,7 +12411,7 @@ var DynamoDBTableProvider = class {
12387
12411
  return;
12388
12412
  }
12389
12413
  const cause = error instanceof Error ? error : void 0;
12390
- throw new ProvisioningError(`Failed to delete DynamoDB table ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
12414
+ throw new ProvisioningError(`Failed to delete DynamoDB table ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
12391
12415
  }
12392
12416
  }
12393
12417
  async applyTagDiff(tableArn, resourceType, logicalId, oldTagsRaw, newTagsRaw) {
@@ -13661,7 +13685,7 @@ var LogsLogGroupProvider = class {
13661
13685
  return;
13662
13686
  }
13663
13687
  const cause = error instanceof Error ? error : void 0;
13664
- throw new ProvisioningError(`Failed to delete log group ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
13688
+ throw new ProvisioningError(`Failed to delete log group ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
13665
13689
  }
13666
13690
  }
13667
13691
  logGoneOnDelete(logicalId, physicalId, context) {
@@ -13843,7 +13867,7 @@ var CloudWatchAlarmProvider = class {
13843
13867
  };
13844
13868
  } catch (error) {
13845
13869
  const cause = error instanceof Error ? error : void 0;
13846
- throw new ProvisioningError(`Failed to create CloudWatch alarm ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
13870
+ throw new ProvisioningError(`Failed to create CloudWatch alarm ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
13847
13871
  }
13848
13872
  }
13849
13873
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -13862,7 +13886,7 @@ var CloudWatchAlarmProvider = class {
13862
13886
  };
13863
13887
  } catch (error) {
13864
13888
  const cause = error instanceof Error ? error : void 0;
13865
- throw new ProvisioningError(`Failed to update CloudWatch alarm ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
13889
+ throw new ProvisioningError(`Failed to update CloudWatch alarm ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
13866
13890
  }
13867
13891
  }
13868
13892
  throttleDelaysMs = [
@@ -13902,7 +13926,7 @@ var CloudWatchAlarmProvider = class {
13902
13926
  return;
13903
13927
  }
13904
13928
  const cause = error instanceof Error ? error : void 0;
13905
- throw new ProvisioningError(`Failed to delete CloudWatch alarm ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
13929
+ throw new ProvisioningError(`Failed to delete CloudWatch alarm ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
13906
13930
  }
13907
13931
  }
13908
13932
  async getAlarmArn(alarmName) {
@@ -14123,7 +14147,7 @@ var CloudWatchAnomalyDetectorProvider = class {
14123
14147
  };
14124
14148
  } catch (error) {
14125
14149
  const cause = error instanceof Error ? error : void 0;
14126
- throw new ProvisioningError(`Failed to create CloudWatch anomaly detector ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
14150
+ throw new ProvisioningError(`Failed to create CloudWatch anomaly detector ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
14127
14151
  }
14128
14152
  }
14129
14153
  async update(logicalId, physicalId, resourceType, properties, _previousProperties, context) {
@@ -14141,7 +14165,7 @@ var CloudWatchAnomalyDetectorProvider = class {
14141
14165
  };
14142
14166
  } catch (error) {
14143
14167
  const cause = error instanceof Error ? error : void 0;
14144
- throw new ProvisioningError(`Failed to update CloudWatch anomaly detector ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
14168
+ throw new ProvisioningError(`Failed to update CloudWatch anomaly detector ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
14145
14169
  }
14146
14170
  }
14147
14171
  async delete(logicalId, physicalId, resourceType, properties, context) {
@@ -14167,7 +14191,7 @@ var CloudWatchAnomalyDetectorProvider = class {
14167
14191
  return;
14168
14192
  }
14169
14193
  const cause = error instanceof Error ? error : void 0;
14170
- throw new ProvisioningError(`Failed to delete CloudWatch anomaly detector ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
14194
+ throw new ProvisioningError(`Failed to delete CloudWatch anomaly detector ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
14171
14195
  }
14172
14196
  }
14173
14197
  async getAttribute(physicalId, resourceType, attributeName, logicalId) {
@@ -14412,7 +14436,7 @@ var SecretsManagerSecretProvider = class {
14412
14436
  try {
14413
14437
  changedValue = this.changedSecretValue(properties, previousProperties, stateBorneDesired, log.warn);
14414
14438
  } catch (error) {
14415
- const message = v(error instanceof Error ? error.message : String(error));
14439
+ const message = v(describeAwsFailure(error).detail);
14416
14440
  throw new ProvisioningError(stateBorneDesired ? `Failed to update secret ${logicalId}: ${message}` : `${message}. Nothing was applied to secret ${logicalId}; fix the template value`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
14417
14441
  }
14418
14442
  try {
@@ -14523,7 +14547,7 @@ var SecretsManagerSecretProvider = class {
14523
14547
  return;
14524
14548
  }
14525
14549
  const cause = error instanceof Error ? error : void 0;
14526
- throw new ProvisioningError(`Failed to delete secret ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
14550
+ throw new ProvisioningError(`Failed to delete secret ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
14527
14551
  }
14528
14552
  }
14529
14553
  retainPreviousGenerateBlock(logicalId, properties, previousProperties) {
@@ -14823,7 +14847,7 @@ var SSMParameterProvider = class SSMParameterProvider {
14823
14847
  return;
14824
14848
  }
14825
14849
  const cause = error instanceof Error ? error : void 0;
14826
- throw new ProvisioningError(`Failed to delete SSM parameter ${displaySafe(logicalId)}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
14850
+ throw new ProvisioningError(`Failed to delete SSM parameter ${displaySafe(logicalId)}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
14827
14851
  }
14828
14852
  }
14829
14853
  async readCurrentState(physicalId, _logicalId, _resourceType) {
@@ -15097,7 +15121,7 @@ var EventBridgeRuleProvider = class {
15097
15121
  };
15098
15122
  } catch (error) {
15099
15123
  const cause = error instanceof Error ? error : void 0;
15100
- const thrown = new ProvisioningError(`Failed to create EventBridge rule ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, ruleName, cause);
15124
+ const thrown = new ProvisioningError(`Failed to create EventBridge rule ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, ruleName, cause);
15101
15125
  if (leftLiveArn) markCreatedBeforeFailure(thrown, logicalId, resourceType, leftLiveArn);
15102
15126
  throw thrown;
15103
15127
  }
@@ -15167,7 +15191,7 @@ var EventBridgeRuleProvider = class {
15167
15191
  };
15168
15192
  } catch (error) {
15169
15193
  const cause = error instanceof Error ? error : void 0;
15170
- throw new ProvisioningError(`Failed to update EventBridge rule ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
15194
+ throw new ProvisioningError(`Failed to update EventBridge rule ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
15171
15195
  }
15172
15196
  }
15173
15197
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -15213,7 +15237,7 @@ var EventBridgeRuleProvider = class {
15213
15237
  return;
15214
15238
  }
15215
15239
  const cause = error instanceof Error ? error : void 0;
15216
- const failure = new ProvisioningError(`Failed to delete EventBridge rule ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
15240
+ const failure = new ProvisioningError(`Failed to delete EventBridge rule ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
15217
15241
  throw stripped ? markDeleteStarted(failure) : failure;
15218
15242
  }
15219
15243
  }
@@ -15418,7 +15442,7 @@ var EventBridgeBusProvider = class {
15418
15442
  };
15419
15443
  } catch (error) {
15420
15444
  const cause = error instanceof Error ? error : void 0;
15421
- throw new ProvisioningError(`Failed to create EventBus ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
15445
+ throw new ProvisioningError(`Failed to create EventBus ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
15422
15446
  }
15423
15447
  }
15424
15448
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -15429,7 +15453,7 @@ var EventBridgeBusProvider = class {
15429
15453
  } catch (error) {
15430
15454
  if (error instanceof CdkdError) throw error;
15431
15455
  const cause = error instanceof Error ? error : void 0;
15432
- throw new ProvisioningError(`Failed to update EventBus ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
15456
+ throw new ProvisioningError(`Failed to update EventBus ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
15433
15457
  }
15434
15458
  }
15435
15459
  async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties) {
@@ -16013,7 +16037,7 @@ var EC2Provider = class {
16013
16037
  } catch (error) {
16014
16038
  if (error instanceof CdkdError) throw error;
16015
16039
  const cause = error instanceof Error ? error : void 0;
16016
- throw new ProvisioningError(`Failed to update EC2 resource ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
16040
+ throw new ProvisioningError(`Failed to update EC2 resource ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
16017
16041
  }
16018
16042
  }
16019
16043
  async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -16254,7 +16278,7 @@ var EC2Provider = class {
16254
16278
  };
16255
16279
  } catch (error) {
16256
16280
  const cause = error instanceof Error ? error : void 0;
16257
- const thrown = new ProvisioningError(`Failed to create VPC ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
16281
+ const thrown = new ProvisioningError(`Failed to create VPC ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
16258
16282
  if (leftBehindId !== void 0) {
16259
16283
  markCreatedBeforeFailure(thrown, logicalId, resourceType, leftBehindId);
16260
16284
  markNonRetryable(thrown);
@@ -16294,7 +16318,7 @@ var EC2Provider = class {
16294
16318
  };
16295
16319
  } catch (error) {
16296
16320
  const cause = error instanceof Error ? error : void 0;
16297
- throw new ProvisioningError(`Failed to update VPC ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
16321
+ throw new ProvisioningError(`Failed to update VPC ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
16298
16322
  }
16299
16323
  }
16300
16324
  async deleteVpc(logicalId, physicalId, resourceType, context) {
@@ -16414,7 +16438,7 @@ var EC2Provider = class {
16414
16438
  };
16415
16439
  } catch (error) {
16416
16440
  const cause = error instanceof Error ? error : void 0;
16417
- const thrown = new ProvisioningError(`Failed to create Subnet ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
16441
+ const thrown = new ProvisioningError(`Failed to create Subnet ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
16418
16442
  if (leftBehindId !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, leftBehindId);
16419
16443
  throw thrown;
16420
16444
  }
@@ -16450,7 +16474,7 @@ var EC2Provider = class {
16450
16474
  } catch (error) {
16451
16475
  if (error instanceof CdkdError) throw error;
16452
16476
  const cause = error instanceof Error ? error : void 0;
16453
- throw new ProvisioningError(`Failed to update Subnet ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
16477
+ throw new ProvisioningError(`Failed to update Subnet ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
16454
16478
  }
16455
16479
  }
16456
16480
  async waitForSubnetMapPublicIp(subnetId, expected) {
@@ -16558,7 +16582,7 @@ var EC2Provider = class {
16558
16582
  };
16559
16583
  } catch (error) {
16560
16584
  const cause = error instanceof Error ? error : void 0;
16561
- throw new ProvisioningError(`Failed to create InternetGateway ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
16585
+ throw new ProvisioningError(`Failed to create InternetGateway ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
16562
16586
  }
16563
16587
  }
16564
16588
  updateInternetGateway(logicalId, physicalId) {
@@ -16577,7 +16601,7 @@ var EC2Provider = class {
16577
16601
  return;
16578
16602
  }
16579
16603
  const cause = error instanceof Error ? error : void 0;
16580
- throw new ProvisioningError(`Failed to delete InternetGateway ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
16604
+ throw new ProvisioningError(`Failed to delete InternetGateway ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
16581
16605
  }
16582
16606
  }
16583
16607
  eipPhysicalId(logicalId, publicIp, allocationId, options) {
@@ -16676,7 +16700,7 @@ var EC2Provider = class {
16676
16700
  this.logger.warn(safeMsg`Failed to release partially-created EIP ${logicalId} (${allocatedId}): ${describeAwsFailure(cleanupError).detail}. Manual release may be required: ${pasteableAwsCommand(context?.maskSecrets)`aws ec2 release-address --allocation-id ${allocatedId}`.render()}`);
16677
16701
  }
16678
16702
  const cause = error instanceof Error ? error : void 0;
16679
- const thrown = new ProvisioningError(`Failed to create EIP ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
16703
+ const thrown = new ProvisioningError(`Failed to create EIP ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
16680
16704
  if (createdId !== void 0) {
16681
16705
  markCreatedBeforeFailure(thrown, logicalId, resourceType, createdId);
16682
16706
  markNonRetryable(thrown);
@@ -16747,7 +16771,7 @@ var EC2Provider = class {
16747
16771
  return;
16748
16772
  }
16749
16773
  const cause = error instanceof Error ? error : void 0;
16750
- throw new ProvisioningError(`Failed to delete EIP ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
16774
+ throw new ProvisioningError(`Failed to delete EIP ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
16751
16775
  }
16752
16776
  }
16753
16777
  async getEipAttribute(physicalId, attributeName) {
@@ -16790,7 +16814,7 @@ var EC2Provider = class {
16790
16814
  };
16791
16815
  } catch (error) {
16792
16816
  const cause = error instanceof Error ? error : void 0;
16793
- throw new ProvisioningError(`Failed to create VPCGatewayAttachment ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
16817
+ throw new ProvisioningError(`Failed to create VPCGatewayAttachment ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
16794
16818
  }
16795
16819
  }
16796
16820
  updateVpcGatewayAttachment(logicalId, physicalId) {
@@ -16815,7 +16839,7 @@ var EC2Provider = class {
16815
16839
  return;
16816
16840
  }
16817
16841
  const cause = error instanceof Error ? error : void 0;
16818
- throw new ProvisioningError(`Failed to delete VPCGatewayAttachment ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
16842
+ throw new ProvisioningError(`Failed to delete VPCGatewayAttachment ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
16819
16843
  }
16820
16844
  }
16821
16845
  async createNatGateway(logicalId, resourceType, properties) {
@@ -16861,7 +16885,7 @@ var EC2Provider = class {
16861
16885
  };
16862
16886
  } catch (error) {
16863
16887
  const cause = error instanceof Error ? error : void 0;
16864
- const thrown = new ProvisioningError(`Failed to create NatGateway ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
16888
+ const thrown = new ProvisioningError(`Failed to create NatGateway ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
16865
16889
  if (createdId !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, createdId);
16866
16890
  throw thrown;
16867
16891
  }
@@ -16882,7 +16906,7 @@ var EC2Provider = class {
16882
16906
  return;
16883
16907
  }
16884
16908
  const cause = error instanceof Error ? error : void 0;
16885
- throw new ProvisioningError(`Failed to delete NatGateway ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
16909
+ throw new ProvisioningError(`Failed to delete NatGateway ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
16886
16910
  }
16887
16911
  this.logger.debug(`Waiting for NatGateway ${physicalId} to reach deleted state...`);
16888
16912
  try {
@@ -16922,7 +16946,7 @@ var EC2Provider = class {
16922
16946
  };
16923
16947
  } catch (error) {
16924
16948
  const cause = error instanceof Error ? error : void 0;
16925
- throw new ProvisioningError(`Failed to create RouteTable ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
16949
+ throw new ProvisioningError(`Failed to create RouteTable ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
16926
16950
  }
16927
16951
  }
16928
16952
  updateRouteTable(logicalId, physicalId) {
@@ -16941,7 +16965,7 @@ var EC2Provider = class {
16941
16965
  return;
16942
16966
  }
16943
16967
  const cause = error instanceof Error ? error : void 0;
16944
- throw new ProvisioningError(`Failed to delete RouteTable ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
16968
+ throw new ProvisioningError(`Failed to delete RouteTable ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
16945
16969
  }
16946
16970
  }
16947
16971
  async createRoute(logicalId, resourceType, properties, onMultipleDestinations, maskSecrets) {
@@ -16996,7 +17020,7 @@ var EC2Provider = class {
16996
17020
  };
16997
17021
  } catch (error) {
16998
17022
  const cause = error instanceof Error ? error : void 0;
16999
- throw new ProvisioningError(`Failed to create Route ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
17023
+ throw new ProvisioningError(`Failed to create Route ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
17000
17024
  }
17001
17025
  }
17002
17026
  async updateRoute(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -17022,7 +17046,7 @@ var EC2Provider = class {
17022
17046
  } catch (error) {
17023
17047
  if (error instanceof CdkdError) throw error;
17024
17048
  const cause = error instanceof Error ? error : void 0;
17025
- throw new ProvisioningError(`Failed to update Route ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
17049
+ throw new ProvisioningError(`Failed to update Route ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
17026
17050
  }
17027
17051
  }
17028
17052
  async deleteRoute(logicalId, physicalId, resourceType, context) {
@@ -17045,7 +17069,7 @@ var EC2Provider = class {
17045
17069
  return;
17046
17070
  }
17047
17071
  const cause = error instanceof Error ? error : void 0;
17048
- throw new ProvisioningError(`Failed to delete Route ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
17072
+ throw new ProvisioningError(`Failed to delete Route ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
17049
17073
  }
17050
17074
  }
17051
17075
  async createSubnetRouteTableAssociation(logicalId, resourceType, properties) {
@@ -17065,7 +17089,7 @@ var EC2Provider = class {
17065
17089
  };
17066
17090
  } catch (error) {
17067
17091
  const cause = error instanceof Error ? error : void 0;
17068
- throw new ProvisioningError(`Failed to create SubnetRouteTableAssociation ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
17092
+ throw new ProvisioningError(`Failed to create SubnetRouteTableAssociation ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
17069
17093
  }
17070
17094
  }
17071
17095
  updateSubnetRouteTableAssociation(logicalId, physicalId) {
@@ -17084,7 +17108,7 @@ var EC2Provider = class {
17084
17108
  return;
17085
17109
  }
17086
17110
  const cause = error instanceof Error ? error : void 0;
17087
- throw new ProvisioningError(`Failed to delete SubnetRouteTableAssociation ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
17111
+ throw new ProvisioningError(`Failed to delete SubnetRouteTableAssociation ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
17088
17112
  }
17089
17113
  }
17090
17114
  async createSecurityGroup(logicalId, resourceType, properties) {
@@ -17135,7 +17159,7 @@ var EC2Provider = class {
17135
17159
  };
17136
17160
  } catch (error) {
17137
17161
  const cause = error instanceof Error ? error : void 0;
17138
- const thrown = new ProvisioningError(`Failed to create SecurityGroup ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
17162
+ const thrown = new ProvisioningError(`Failed to create SecurityGroup ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
17139
17163
  if (leftBehindId !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, leftBehindId);
17140
17164
  throw thrown;
17141
17165
  }
@@ -17188,7 +17212,7 @@ var EC2Provider = class {
17188
17212
  };
17189
17213
  } catch (error) {
17190
17214
  const cause = error instanceof Error ? error : void 0;
17191
- throw new ProvisioningError(`Failed to update SecurityGroup ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
17215
+ throw new ProvisioningError(`Failed to update SecurityGroup ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
17192
17216
  }
17193
17217
  }
17194
17218
  async deleteSecurityGroup(logicalId, physicalId, resourceType, context) {
@@ -17343,7 +17367,7 @@ var EC2Provider = class {
17343
17367
  };
17344
17368
  }
17345
17369
  const cause = error instanceof Error ? error : void 0;
17346
- const failure = new ProvisioningError(`Failed to create SecurityGroupIngress ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
17370
+ const failure = new ProvisioningError(`Failed to create SecurityGroupIngress ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
17347
17371
  const lookup = getPriorAttempts(logicalId);
17348
17372
  if (authorizeDefinitelyNotApplied(error) && !earlierSendAmbiguous && lookup?.possiblyLanded() !== true) markRefusedBeforeApplying(failure);
17349
17373
  else lookup?.notePossiblyLanded();
@@ -17537,7 +17561,7 @@ var EC2Provider = class {
17537
17561
  } catch (error) {
17538
17562
  if (error instanceof CdkdError) throw error;
17539
17563
  const cause = error instanceof Error ? error : void 0;
17540
- throw new ProvisioningError(`Failed to update SecurityGroupIngress ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
17564
+ throw new ProvisioningError(`Failed to update SecurityGroupIngress ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
17541
17565
  }
17542
17566
  }
17543
17567
  withoutDescription(value) {
@@ -17613,7 +17637,7 @@ var EC2Provider = class {
17613
17637
  return notMatched();
17614
17638
  }
17615
17639
  const cause = error instanceof Error ? error : void 0;
17616
- throw new ProvisioningError(`Failed to delete SecurityGroupIngress ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
17640
+ throw new ProvisioningError(`Failed to delete SecurityGroupIngress ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
17617
17641
  }
17618
17642
  }
17619
17643
  async createInstance(logicalId, resourceType, properties, context) {
@@ -17698,7 +17722,7 @@ var EC2Provider = class {
17698
17722
  throw markAuxiliaryFailure(innerError, logicalId);
17699
17723
  }
17700
17724
  } catch (error) {
17701
- const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create EC2 Instance ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
17725
+ const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create EC2 Instance ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
17702
17726
  if (leftBehindId !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, leftBehindId);
17703
17727
  throw thrown;
17704
17728
  }
@@ -17796,7 +17820,7 @@ var EC2Provider = class {
17796
17820
  };
17797
17821
  } catch (error) {
17798
17822
  const cause = error instanceof Error ? error : void 0;
17799
- throw new ProvisioningError(`Failed to update EC2 Instance ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
17823
+ throw new ProvisioningError(`Failed to update EC2 Instance ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
17800
17824
  }
17801
17825
  }
17802
17826
  async updateInstanceSecurityProps(physicalId, properties, previousProperties) {
@@ -18107,7 +18131,7 @@ var EC2Provider = class {
18107
18131
  };
18108
18132
  } catch (error) {
18109
18133
  const cause = error instanceof Error ? error : void 0;
18110
- throw new ProvisioningError(`Failed to create NetworkAcl ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
18134
+ throw new ProvisioningError(`Failed to create NetworkAcl ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
18111
18135
  }
18112
18136
  }
18113
18137
  async deleteNetworkAcl(logicalId, physicalId, resourceType, context) {
@@ -18123,7 +18147,7 @@ var EC2Provider = class {
18123
18147
  return;
18124
18148
  }
18125
18149
  const cause = error instanceof Error ? error : void 0;
18126
- throw new ProvisioningError(`Failed to delete NetworkAcl ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
18150
+ throw new ProvisioningError(`Failed to delete NetworkAcl ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
18127
18151
  }
18128
18152
  }
18129
18153
  async createNetworkAclEntry(logicalId, resourceType, properties, context) {
@@ -18180,7 +18204,7 @@ var EC2Provider = class {
18180
18204
  };
18181
18205
  } catch (error) {
18182
18206
  const cause = error instanceof Error ? error : void 0;
18183
- throw new ProvisioningError(`Failed to create NetworkAclEntry ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
18207
+ throw new ProvisioningError(`Failed to create NetworkAclEntry ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
18184
18208
  }
18185
18209
  }
18186
18210
  async deleteNetworkAclEntry(logicalId, physicalId, resourceType, context) {
@@ -18211,7 +18235,7 @@ var EC2Provider = class {
18211
18235
  return;
18212
18236
  }
18213
18237
  const cause = error instanceof Error ? error : void 0;
18214
- throw new ProvisioningError(`Failed to delete NetworkAclEntry ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
18238
+ throw new ProvisioningError(`Failed to delete NetworkAclEntry ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
18215
18239
  }
18216
18240
  }
18217
18241
  async createSubnetNetworkAclAssociation(logicalId, resourceType, properties) {
@@ -18245,7 +18269,7 @@ var EC2Provider = class {
18245
18269
  } catch (error) {
18246
18270
  if (error instanceof ProvisioningError) throw error;
18247
18271
  const cause = error instanceof Error ? error : void 0;
18248
- throw new ProvisioningError(`Failed to create SubnetNetworkAclAssociation ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
18272
+ throw new ProvisioningError(`Failed to create SubnetNetworkAclAssociation ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
18249
18273
  }
18250
18274
  }
18251
18275
  async sendTaggedCreate(logicalId, tagResourceType, tags, send) {
@@ -19439,7 +19463,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
19439
19463
  this.logger.debug(`Successfully deleted API Gateway Account ${logicalId}`);
19440
19464
  } catch (error) {
19441
19465
  const cause = error instanceof Error ? error : void 0;
19442
- throw new ProvisioningError(`Failed to delete API Gateway Account ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
19466
+ throw new ProvisioningError(`Failed to delete API Gateway Account ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
19443
19467
  }
19444
19468
  }
19445
19469
  async updateAccountWithRetry(cloudWatchRoleArn, logicalId, _resourceType, log) {
@@ -19617,7 +19641,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
19617
19641
  return;
19618
19642
  }
19619
19643
  const cause = error instanceof Error ? error : void 0;
19620
- throw new ProvisioningError(`Failed to delete API Gateway Authorizer ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
19644
+ throw new ProvisioningError(`Failed to delete API Gateway Authorizer ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
19621
19645
  }
19622
19646
  }
19623
19647
  getAuthorizerAttribute(physicalId, attributeName) {
@@ -19702,7 +19726,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
19702
19726
  return;
19703
19727
  }
19704
19728
  const cause = error instanceof Error ? error : void 0;
19705
- throw new ProvisioningError(`Failed to delete API Gateway Resource ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
19729
+ throw new ProvisioningError(`Failed to delete API Gateway Resource ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
19706
19730
  }
19707
19731
  }
19708
19732
  getResourceAttribute(physicalId, _resourceType, attributeName) {
@@ -19787,7 +19811,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
19787
19811
  return;
19788
19812
  }
19789
19813
  const cause = error instanceof Error ? error : void 0;
19790
- throw new ProvisioningError(`Failed to delete API Gateway Deployment ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
19814
+ throw new ProvisioningError(`Failed to delete API Gateway Deployment ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
19791
19815
  }
19792
19816
  }
19793
19817
  getDeploymentAttribute(physicalId, attributeName) {
@@ -20031,7 +20055,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
20031
20055
  return;
20032
20056
  }
20033
20057
  const cause = error instanceof Error ? error : void 0;
20034
- throw new ProvisioningError(`Failed to delete API Gateway Stage ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
20058
+ throw new ProvisioningError(`Failed to delete API Gateway Stage ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
20035
20059
  }
20036
20060
  }
20037
20061
  getStageAttribute(physicalId, attributeName) {
@@ -20255,7 +20279,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
20255
20279
  return;
20256
20280
  }
20257
20281
  const cause = error instanceof Error ? error : void 0;
20258
- throw new ProvisioningError(`Failed to delete API Gateway Method ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
20282
+ throw new ProvisioningError(`Failed to delete API Gateway Method ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
20259
20283
  }
20260
20284
  }
20261
20285
  getMethodAttribute(physicalId, attributeName) {
@@ -20849,7 +20873,7 @@ var ApiGatewayV2Provider = class {
20849
20873
  return;
20850
20874
  }
20851
20875
  const cause = error instanceof Error ? error : void 0;
20852
- throw new ProvisioningError(`Failed to delete API Gateway V2 Api ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
20876
+ throw new ProvisioningError(`Failed to delete API Gateway V2 Api ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
20853
20877
  }
20854
20878
  }
20855
20879
  async buildExecuteApiArn(apiId, log = createMaskedLogSinks(this.logger, void 0)) {
@@ -20920,7 +20944,7 @@ var ApiGatewayV2Provider = class {
20920
20944
  return;
20921
20945
  }
20922
20946
  const cause = error instanceof Error ? error : void 0;
20923
- throw new ProvisioningError(`Failed to delete API Gateway V2 Stage ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
20947
+ throw new ProvisioningError(`Failed to delete API Gateway V2 Stage ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
20924
20948
  }
20925
20949
  }
20926
20950
  getStageAttribute(physicalId, attributeName) {
@@ -21017,7 +21041,7 @@ var ApiGatewayV2Provider = class {
21017
21041
  return;
21018
21042
  }
21019
21043
  const cause = error instanceof Error ? error : void 0;
21020
- throw new ProvisioningError(`Failed to delete API Gateway V2 Integration ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
21044
+ throw new ProvisioningError(`Failed to delete API Gateway V2 Integration ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
21021
21045
  }
21022
21046
  }
21023
21047
  getIntegrationAttribute(physicalId, attributeName) {
@@ -21071,7 +21095,7 @@ var ApiGatewayV2Provider = class {
21071
21095
  return;
21072
21096
  }
21073
21097
  const cause = error instanceof Error ? error : void 0;
21074
- throw new ProvisioningError(`Failed to delete API Gateway V2 Route ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
21098
+ throw new ProvisioningError(`Failed to delete API Gateway V2 Route ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
21075
21099
  }
21076
21100
  }
21077
21101
  getRouteAttribute(physicalId, attributeName) {
@@ -21160,7 +21184,7 @@ var ApiGatewayV2Provider = class {
21160
21184
  return;
21161
21185
  }
21162
21186
  const cause = error instanceof Error ? error : void 0;
21163
- throw new ProvisioningError(`Failed to delete API Gateway V2 Authorizer ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
21187
+ throw new ProvisioningError(`Failed to delete API Gateway V2 Authorizer ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
21164
21188
  }
21165
21189
  }
21166
21190
  getDriftUnknownPaths(resourceType, properties) {
@@ -21982,7 +22006,7 @@ var CloudFrontOAIProvider = class {
21982
22006
  };
21983
22007
  } catch (error) {
21984
22008
  const cause = error instanceof Error ? error : void 0;
21985
- throw new ProvisioningError(`Failed to create CloudFront OAI ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
22009
+ throw new ProvisioningError(`Failed to create CloudFront OAI ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
21986
22010
  }
21987
22011
  }
21988
22012
  async update(logicalId, physicalId, resourceType, properties, _previousProperties, context) {
@@ -22016,7 +22040,7 @@ var CloudFrontOAIProvider = class {
22016
22040
  } catch (error) {
22017
22041
  if (error instanceof CdkdError) throw error;
22018
22042
  const cause = error instanceof Error ? error : void 0;
22019
- throw new ProvisioningError(`Failed to update CloudFront OAI ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
22043
+ throw new ProvisioningError(`Failed to update CloudFront OAI ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
22020
22044
  }
22021
22045
  }
22022
22046
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -22047,7 +22071,7 @@ var CloudFrontOAIProvider = class {
22047
22071
  return;
22048
22072
  }
22049
22073
  const cause = error instanceof Error ? error : void 0;
22050
- throw new ProvisioningError(`Failed to delete CloudFront OAI ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
22074
+ throw new ProvisioningError(`Failed to delete CloudFront OAI ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
22051
22075
  }
22052
22076
  }
22053
22077
  async getAttribute(physicalId, _resourceType, attributeName) {
@@ -22127,7 +22151,7 @@ var CloudFrontOACProvider = class {
22127
22151
  } catch (error) {
22128
22152
  if (error instanceof CdkdError) throw error;
22129
22153
  const cause = error instanceof Error ? error : void 0;
22130
- throw new ProvisioningError(`Failed to create CloudFront Origin Access Control ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
22154
+ throw new ProvisioningError(`Failed to create CloudFront Origin Access Control ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
22131
22155
  }
22132
22156
  }
22133
22157
  async update(logicalId, physicalId, resourceType, properties, _previousProperties, context) {
@@ -22150,7 +22174,7 @@ var CloudFrontOACProvider = class {
22150
22174
  } catch (error) {
22151
22175
  if (error instanceof CdkdError) throw error;
22152
22176
  const cause = error instanceof Error ? error : void 0;
22153
- throw new ProvisioningError(`Failed to update CloudFront Origin Access Control ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
22177
+ throw new ProvisioningError(`Failed to update CloudFront Origin Access Control ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
22154
22178
  }
22155
22179
  }
22156
22180
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -22181,7 +22205,7 @@ var CloudFrontOACProvider = class {
22181
22205
  }
22182
22206
  if (error instanceof CdkdError) throw error;
22183
22207
  const cause = error instanceof Error ? error : void 0;
22184
- throw new ProvisioningError(`Failed to delete CloudFront Origin Access Control ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
22208
+ throw new ProvisioningError(`Failed to delete CloudFront Origin Access Control ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
22185
22209
  }
22186
22210
  }
22187
22211
  async getAttribute(physicalId, _resourceType, attributeName) {
@@ -22357,7 +22381,7 @@ var CloudFrontDistributionProvider = class {
22357
22381
  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));
22358
22382
  }
22359
22383
  const cause = error instanceof Error ? error : void 0;
22360
- throw new ProvisioningError(`Failed to create CloudFront Distribution ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
22384
+ throw new ProvisioningError(`Failed to create CloudFront Distribution ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
22361
22385
  }
22362
22386
  }
22363
22387
  orphanSearchHint(properties, maskSecrets) {
@@ -22404,7 +22428,7 @@ var CloudFrontDistributionProvider = class {
22404
22428
  } catch (error) {
22405
22429
  if (error instanceof CdkdError) throw error;
22406
22430
  const cause = error instanceof Error ? error : void 0;
22407
- throw new ProvisioningError(`Failed to update CloudFront Distribution ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
22431
+ throw new ProvisioningError(`Failed to update CloudFront Distribution ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
22408
22432
  }
22409
22433
  }
22410
22434
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -22455,7 +22479,7 @@ var CloudFrontDistributionProvider = class {
22455
22479
  return;
22456
22480
  }
22457
22481
  const cause = error instanceof Error ? error : void 0;
22458
- const failure = new ProvisioningError(`Failed to delete CloudFront Distribution ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
22482
+ const failure = new ProvisioningError(`Failed to delete CloudFront Distribution ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
22459
22483
  throw stripped ? markDeleteStarted(failure) : failure;
22460
22484
  }
22461
22485
  }
@@ -22873,7 +22897,7 @@ var CloudFrontDistributionProvider = class {
22873
22897
  }
22874
22898
  } catch (err) {
22875
22899
  const cause = err instanceof Error ? err : void 0;
22876
- throw new ProvisioningError(`CloudFront Distribution ${physicalId}: tag diff failed (removed=${removed.length}, upserts=${upserts.length}): ${err instanceof Error ? err.message : String(err)}. UpdateDistribution succeeded but TagResource/UntagResource did not — state has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause);
22900
+ throw new ProvisioningError(`CloudFront Distribution ${physicalId}: tag diff failed (removed=${removed.length}, upserts=${upserts.length}): ${describeAwsFailure(err).detail}. UpdateDistribution succeeded but TagResource/UntagResource did not — state has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause);
22877
22901
  }
22878
22902
  }
22879
22903
  async import(input) {
@@ -22974,7 +22998,7 @@ var AgentCoreRuntimeProvider = class {
22974
22998
  };
22975
22999
  } catch (error) {
22976
23000
  const cause = error instanceof Error ? error : void 0;
22977
- throw new ProvisioningError(`Failed to create BedrockAgentCore Runtime ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
23001
+ throw new ProvisioningError(`Failed to create BedrockAgentCore Runtime ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
22978
23002
  }
22979
23003
  }
22980
23004
  async update(logicalId, physicalId, resourceType, properties, _previousProperties, context) {
@@ -23009,7 +23033,7 @@ var AgentCoreRuntimeProvider = class {
23009
23033
  };
23010
23034
  } catch (error) {
23011
23035
  const cause = error instanceof Error ? error : void 0;
23012
- throw new ProvisioningError(`Failed to update BedrockAgentCore Runtime ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
23036
+ throw new ProvisioningError(`Failed to update BedrockAgentCore Runtime ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
23013
23037
  }
23014
23038
  }
23015
23039
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -23025,7 +23049,7 @@ var AgentCoreRuntimeProvider = class {
23025
23049
  return;
23026
23050
  }
23027
23051
  const cause = error instanceof Error ? error : void 0;
23028
- throw new ProvisioningError(`Failed to delete BedrockAgentCore Runtime ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
23052
+ throw new ProvisioningError(`Failed to delete BedrockAgentCore Runtime ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
23029
23053
  }
23030
23054
  }
23031
23055
  buildAttributes(response, agentRuntimeName) {
@@ -23127,7 +23151,7 @@ var AgentCoreBrowserProvider = class {
23127
23151
  };
23128
23152
  } catch (error) {
23129
23153
  const cause = error instanceof Error ? error : void 0;
23130
- throw new ProvisioningError(`Failed to adopt the AWS-managed default browser for ${logicalId}: ${error instanceof Error ? error.message : String(error)}. Bedrock AgentCore may not be available in this region.`, resourceType, logicalId, void 0, cause);
23154
+ throw new ProvisioningError(`Failed to adopt the AWS-managed default browser for ${logicalId}: ${describeAwsFailure(error).detail}. Bedrock AgentCore may not be available in this region.`, resourceType, logicalId, void 0, cause);
23131
23155
  }
23132
23156
  }
23133
23157
  async update(logicalId, physicalId, _resourceType, _properties, _previousProperties, _context) {
@@ -23194,7 +23218,7 @@ var AgentCoreCodeInterpreterProvider = class {
23194
23218
  };
23195
23219
  } catch (error) {
23196
23220
  const cause = error instanceof Error ? error : void 0;
23197
- throw new ProvisioningError(`Failed to adopt the AWS-managed default code interpreter for ${logicalId}: ${error instanceof Error ? error.message : String(error)}. Bedrock AgentCore may not be available in this region.`, resourceType, logicalId, void 0, cause);
23221
+ throw new ProvisioningError(`Failed to adopt the AWS-managed default code interpreter for ${logicalId}: ${describeAwsFailure(error).detail}. Bedrock AgentCore may not be available in this region.`, resourceType, logicalId, void 0, cause);
23198
23222
  }
23199
23223
  }
23200
23224
  async update(logicalId, physicalId, _resourceType, _properties, _previousProperties, _context) {
@@ -23290,7 +23314,7 @@ var AgentCoreEvaluatorProvider = class {
23290
23314
  };
23291
23315
  } catch (error) {
23292
23316
  const cause = error instanceof Error ? error : void 0;
23293
- throw new ProvisioningError(`Failed to create BedrockAgentCore Evaluator ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
23317
+ throw new ProvisioningError(`Failed to create BedrockAgentCore Evaluator ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
23294
23318
  }
23295
23319
  }
23296
23320
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -23319,7 +23343,7 @@ var AgentCoreEvaluatorProvider = class {
23319
23343
  };
23320
23344
  } catch (error) {
23321
23345
  const cause = error instanceof Error ? error : void 0;
23322
- throw new ProvisioningError(`Failed to update BedrockAgentCore Evaluator ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
23346
+ throw new ProvisioningError(`Failed to update BedrockAgentCore Evaluator ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
23323
23347
  }
23324
23348
  }
23325
23349
  async syncTags(evaluatorArn, resourceType, logicalId, previousTagsRaw, nextTagsRaw) {
@@ -23350,7 +23374,7 @@ var AgentCoreEvaluatorProvider = class {
23350
23374
  return;
23351
23375
  }
23352
23376
  const cause = error instanceof Error ? error : void 0;
23353
- throw new ProvisioningError(`Failed to delete BedrockAgentCore Evaluator ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
23377
+ throw new ProvisioningError(`Failed to delete BedrockAgentCore Evaluator ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
23354
23378
  }
23355
23379
  }
23356
23380
  async getAttribute(physicalId, _resourceType, attributeName) {
@@ -23492,7 +23516,7 @@ var StepFunctionsProvider = class {
23492
23516
  } catch (error) {
23493
23517
  if (error instanceof ProvisioningError) throw error;
23494
23518
  const cause = error instanceof Error ? error : void 0;
23495
- throw new ProvisioningError(`Failed to create Step Functions state machine ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, stateMachineName, cause);
23519
+ throw new ProvisioningError(`Failed to create Step Functions state machine ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, stateMachineName, cause);
23496
23520
  }
23497
23521
  }
23498
23522
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -23526,7 +23550,7 @@ var StepFunctionsProvider = class {
23526
23550
  };
23527
23551
  } catch (error) {
23528
23552
  const cause = error instanceof Error ? error : void 0;
23529
- throw new ProvisioningError(`Failed to update Step Functions state machine ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
23553
+ throw new ProvisioningError(`Failed to update Step Functions state machine ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
23530
23554
  }
23531
23555
  }
23532
23556
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -23542,7 +23566,7 @@ var StepFunctionsProvider = class {
23542
23566
  return;
23543
23567
  }
23544
23568
  const cause = error instanceof Error ? error : void 0;
23545
- throw new ProvisioningError(`Failed to delete Step Functions state machine ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
23569
+ throw new ProvisioningError(`Failed to delete Step Functions state machine ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
23546
23570
  }
23547
23571
  }
23548
23572
  async readCurrentState(physicalId, _logicalId, _resourceType) {
@@ -23816,15 +23840,7 @@ var ECSProvider = class {
23816
23840
  taskDefinitionCreateClient;
23817
23841
  providerRegion = ambientRegion();
23818
23842
  logger = getLogger().child("ECSProvider");
23819
- removalDefaults = /* @__PURE__ */ new Map([["AWS::ECS::Service", /* @__PURE__ */ new Map([
23820
- ["CapacityProviderStrategy", []],
23821
- ["PlacementConstraints", []],
23822
- ["PlatformVersion", "LATEST"],
23823
- ["HealthCheckGracePeriodSeconds", 0],
23824
- ["EnableECSManagedTags", false],
23825
- ["PropagateTags", "NONE"],
23826
- ["EnableExecuteCommand", false]
23827
- ])]]);
23843
+ removalDefaults = /* @__PURE__ */ new Map();
23828
23844
  handledProperties = /* @__PURE__ */ new Map([
23829
23845
  ["AWS::ECS::Cluster", /* @__PURE__ */ new Set([
23830
23846
  "ClusterName",
@@ -24088,7 +24104,7 @@ var ECSProvider = class {
24088
24104
  return;
24089
24105
  }
24090
24106
  const cause = error instanceof Error ? error : void 0;
24091
- throw new ProvisioningError(`Failed to delete ECS cluster ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
24107
+ throw new ProvisioningError(`Failed to delete ECS cluster ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
24092
24108
  }
24093
24109
  }
24094
24110
  async getClusterAttribute(physicalId, attributeName) {
@@ -24164,7 +24180,7 @@ var ECSProvider = class {
24164
24180
  return;
24165
24181
  }
24166
24182
  const cause = error instanceof Error ? error : void 0;
24167
- throw new ProvisioningError(`Failed to delete ECS task definition ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
24183
+ throw new ProvisioningError(`Failed to delete ECS task definition ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
24168
24184
  }
24169
24185
  }
24170
24186
  async getTaskDefinitionAttribute(physicalId, attributeName) {
@@ -24233,7 +24249,7 @@ var ECSProvider = class {
24233
24249
  survivorArn = service.serviceArn;
24234
24250
  log.warn(`Failed to clean up partially-created ECS service ${logicalIdShown(logicalId)} ${isPlainImportValue(service.serviceArn) ? `(${service.serviceArn})` : VALUE_NOT_SHOWN}: ${describeAwsFailure(cleanupError).detail}. Manual deletion may be required before the next deploy: ${deleteCommand.render()}`);
24235
24251
  }
24236
- throw new Error(`ECS service ${logicalIdShown(logicalId)} did not reach steady state under --full-wait: ${waitError instanceof Error ? waitError.message : String(waitError)}. Inspect why its tasks stopped (stopped tasks stay visible for about an hour): ${listStopped.render()}, then ${aws`aws ecs describe-tasks${clusterArg} --tasks '<task-arn>' --query 'tasks[].[stoppedReason,containers[].reason]'`.render()}`, { cause: waitError });
24252
+ throw new Error(`ECS service ${logicalIdShown(logicalId)} did not reach steady state under --full-wait: ${describeAwsFailure(waitError).detail}. Inspect why its tasks stopped (stopped tasks stay visible for about an hour): ${listStopped.render()}, then ${aws`aws ecs describe-tasks${clusterArg} --tasks '<task-arn>' --query 'tasks[].[stoppedReason,containers[].reason]'`.render()}`, { cause: waitError });
24237
24253
  }
24238
24254
  return {
24239
24255
  physicalId: service.serviceArn,
@@ -24324,7 +24340,7 @@ var ECSProvider = class {
24324
24340
  const serviceRegistriesInput = isEcsController && serviceRegistriesChanged ? this.convertServiceRegistries(properties["ServiceRegistries"]) ?? [] : void 0;
24325
24341
  const capacityProviderStrategyInput = this.convertCapacityProviderStrategy(properties["CapacityProviderStrategy"]);
24326
24342
  const placementConstraintsInput = this.convertPlacementConstraints(properties["PlacementConstraints"]);
24327
- const placementStrategyInput = clearOnUpdateRemoval(this.convertPlacementStrategies(properties["PlacementStrategies"] ?? properties["PlacementStrategy"]), previousProperties["PlacementStrategies"] ?? previousProperties["PlacementStrategy"], []);
24343
+ const placementStrategyInput = this.convertPlacementStrategies(properties["PlacementStrategies"] ?? properties["PlacementStrategy"]);
24328
24344
  const platformVersionInput = properties["PlatformVersion"];
24329
24345
  const healthCheckGracePeriodSecondsInput = properties["HealthCheckGracePeriodSeconds"];
24330
24346
  const enableECSManagedTagsInput = properties["EnableECSManagedTags"];
@@ -24425,7 +24441,7 @@ var ECSProvider = class {
24425
24441
  return;
24426
24442
  }
24427
24443
  const cause = error instanceof Error ? error : void 0;
24428
- const failure = new ProvisioningError(`Failed to delete ECS service ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
24444
+ const failure = new ProvisioningError(`Failed to delete ECS service ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
24429
24445
  throw stripped ? markDeleteStarted(failure) : failure;
24430
24446
  }
24431
24447
  }
@@ -25443,6 +25459,7 @@ var ELBv2Provider = class {
25443
25459
  "Tags",
25444
25460
  ...LISTENER_LEFT_IN_PLACE_ON_REMOVAL
25445
25461
  ])]]);
25462
+ lambdaClients = /* @__PURE__ */ new Map();
25446
25463
  getClient() {
25447
25464
  if (!this.elbv2Client) this.elbv2Client = new ElasticLoadBalancingV2Client({
25448
25465
  ...ambientClientDefaults(),
@@ -25450,6 +25467,41 @@ var ELBv2Provider = class {
25450
25467
  });
25451
25468
  return this.elbv2Client;
25452
25469
  }
25470
+ async waitForLambdaTargetsActive(logicalId, targetType, targets) {
25471
+ if (targetType !== "lambda") return;
25472
+ for (const target of targets) {
25473
+ const parts = typeof target.Id === "string" ? target.Id.split(":") : [];
25474
+ if (parts[0] !== "arn" || parts[2] !== "lambda" || !parts[3]) {
25475
+ this.logger.debug(`Skipping the Active wait for target ${String(target.Id)} of ${logicalId}: not a Lambda function ARN`);
25476
+ continue;
25477
+ }
25478
+ const region = parts[3];
25479
+ let client = this.lambdaClients.get(region);
25480
+ if (!client) {
25481
+ client = new LambdaClient({
25482
+ ...ambientClientDefaults(),
25483
+ region
25484
+ });
25485
+ this.lambdaClients.set(region, client);
25486
+ }
25487
+ const watch = startInterruptWatch(`ELBv2 TargetGroup ${logicalId} Lambda target wait`);
25488
+ const abort = new AbortController();
25489
+ const poll = setInterval(() => {
25490
+ if (watch.isInterrupted()) abort.abort();
25491
+ }, 1e3);
25492
+ try {
25493
+ if (watch.isInterrupted()) throw watch.onInterrupted();
25494
+ await waitForLambdaFunctionActive(client, target.Id, abort.signal);
25495
+ } catch (error) {
25496
+ if (watch.isInterrupted()) throw watch.onInterrupted();
25497
+ throw error;
25498
+ } finally {
25499
+ clearInterval(poll);
25500
+ watch.dispose();
25501
+ }
25502
+ this.logger.debug(`Lambda target ${target.Id} of ${logicalId} is Active`);
25503
+ }
25504
+ }
25453
25505
  maskedRetryLogger(maskSecrets) {
25454
25506
  return createMaskedRetryLogger(this.logger, maskSecrets);
25455
25507
  }
@@ -25821,7 +25873,7 @@ var ELBv2Provider = class {
25821
25873
  return;
25822
25874
  }
25823
25875
  const cause = error instanceof Error ? error : void 0;
25824
- throw new ProvisioningError(`Failed to delete LoadBalancer ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
25876
+ throw new ProvisioningError(`Failed to delete LoadBalancer ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
25825
25877
  }
25826
25878
  }
25827
25879
  async createTargetGroup(logicalId, resourceType, properties, maskSecrets) {
@@ -25868,6 +25920,7 @@ var ELBv2Provider = class {
25868
25920
  this.logger.debug(`Applied ${tgAttributes.length} TargetGroup attribute(s) for ${logicalId}`);
25869
25921
  }
25870
25922
  if (targets.length > 0) {
25923
+ await this.waitForLambdaTargetsActive(logicalId, properties["TargetType"], targets);
25871
25924
  await this.getClient().send(new RegisterTargetsCommand({
25872
25925
  TargetGroupArn: tgArn,
25873
25926
  Targets: targets
@@ -25876,12 +25929,15 @@ var ELBv2Provider = class {
25876
25929
  }
25877
25930
  } catch (innerError) {
25878
25931
  if (heldBefore !== "free") this.logger.warn(maskerOrIdentity(maskSecrets)(skippedCleanupText(heldBefore, `TargetGroup ${logicalId} (${tgArn})`, pasteableAwsCommand(maskSecrets)`aws elbv2 delete-target-group --target-group-arn ${tgArn}`.render())));
25879
- else try {
25880
- await this.getClient().send(new DeleteTargetGroupCommand({ TargetGroupArn: tgArn }));
25881
- this.logger.debug(`Cleaned up partially-created TargetGroup ${logicalId} (${tgArn}) after wiring failure`);
25882
- } catch (cleanupError) {
25883
- leftBehindArn = tgArn;
25884
- this.logger.warn(`Failed to clean up partially-created TargetGroup ${logicalId} (${tgArn}): ${this.maskErrorMessage(cleanupError, maskSecrets)}. Manual deletion may be required before the next deploy: ${pasteableAwsCommand(maskSecrets)`aws elbv2 delete-target-group --target-group-arn ${tgArn}`.render()}`);
25932
+ else {
25933
+ if (isInterruptedWaitError(innerError)) this.logger.warn(maskerOrIdentity(maskSecrets)(`Interrupted after creating TargetGroup ${logicalId} (${tgArn}) but before its targets were registered. Nothing in cdkd state refers to it, so cdkd is deleting it now. If that delete fails, remove it yourself: ${pasteableAwsCommand(maskSecrets)`aws elbv2 delete-target-group --target-group-arn ${tgArn}`.render()}`));
25934
+ try {
25935
+ await this.getClient().send(new DeleteTargetGroupCommand({ TargetGroupArn: tgArn }));
25936
+ this.logger.debug(`Cleaned up partially-created TargetGroup ${logicalId} (${tgArn}) after wiring failure`);
25937
+ } catch (cleanupError) {
25938
+ leftBehindArn = tgArn;
25939
+ this.logger.warn(`Failed to clean up partially-created TargetGroup ${logicalId} (${tgArn}): ${this.maskErrorMessage(cleanupError, maskSecrets)}. Manual deletion may be required before the next deploy: ${pasteableAwsCommand(maskSecrets)`aws elbv2 delete-target-group --target-group-arn ${tgArn}`.render()}`);
25940
+ }
25885
25941
  }
25886
25942
  throw markAuxiliaryFailure(innerError, logicalId);
25887
25943
  }
@@ -25949,6 +26005,7 @@ var ELBv2Provider = class {
25949
26005
  const targetsToRegister = newTargets.filter((t) => !oldTargetKeys.has(targetKey(t)));
25950
26006
  const targetsToDeregister = oldTargets.filter((t) => !newTargetKeys.has(targetKey(t)));
25951
26007
  if (targetsToRegister.length > 0) {
26008
+ await this.waitForLambdaTargetsActive(logicalId, properties["TargetType"], targetsToRegister);
25952
26009
  await this.getClient().send(new RegisterTargetsCommand({
25953
26010
  TargetGroupArn: physicalId,
25954
26011
  Targets: targetsToRegister
@@ -25988,7 +26045,7 @@ var ELBv2Provider = class {
25988
26045
  return;
25989
26046
  }
25990
26047
  const cause = error instanceof Error ? error : void 0;
25991
- throw new ProvisioningError(`Failed to delete TargetGroup ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
26048
+ throw new ProvisioningError(`Failed to delete TargetGroup ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
25992
26049
  }
25993
26050
  }
25994
26051
  async listenerPortHeld(loadBalancerArn, port) {
@@ -26140,7 +26197,7 @@ var ELBv2Provider = class {
26140
26197
  return;
26141
26198
  }
26142
26199
  const cause = error instanceof Error ? error : void 0;
26143
- throw new ProvisioningError(`Failed to delete Listener ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
26200
+ throw new ProvisioningError(`Failed to delete Listener ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
26144
26201
  }
26145
26202
  }
26146
26203
  normalizeAttributes(raw) {
@@ -27865,7 +27922,7 @@ var DocDBProvider = class {
27865
27922
  attributes: clusterAttributes(await this.describeDBCluster(dbClusterIdentifier))
27866
27923
  };
27867
27924
  } catch (error) {
27868
- const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create DocDB DBCluster ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, dbClusterIdentifier, error instanceof Error ? error : void 0);
27925
+ const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create DocDB DBCluster ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, dbClusterIdentifier, error instanceof Error ? error : void 0);
27869
27926
  if (clusterCreated) markCreatedBeforeFailure(thrown, logicalId, resourceType, dbClusterIdentifier, createdResourceId);
27870
27927
  throw thrown;
27871
27928
  }
@@ -27899,7 +27956,7 @@ var DocDBProvider = class {
27899
27956
  };
27900
27957
  } catch (error) {
27901
27958
  const cause = error instanceof Error ? error : void 0;
27902
- throw new ProvisioningError(`Failed to update DocDB DBCluster ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
27959
+ throw new ProvisioningError(`Failed to update DocDB DBCluster ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
27903
27960
  }
27904
27961
  }
27905
27962
  async deleteDBCluster(logicalId, physicalId, resourceType, context) {
@@ -27973,7 +28030,7 @@ var DocDBProvider = class {
27973
28030
  return;
27974
28031
  }
27975
28032
  const cause = error instanceof Error ? error : void 0;
27976
- throw new ProvisioningError(`Failed to delete DocDB DBCluster ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
28033
+ throw new ProvisioningError(`Failed to delete DocDB DBCluster ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
27977
28034
  }
27978
28035
  }
27979
28036
  async createDBInstance(logicalId, resourceType, properties) {
@@ -28006,7 +28063,7 @@ var DocDBProvider = class {
28006
28063
  attributes: instanceAttributes(await this.describeDBInstance(dbInstanceIdentifier))
28007
28064
  };
28008
28065
  } catch (error) {
28009
- const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create DocDB DBInstance ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, dbInstanceIdentifier, error instanceof Error ? error : void 0);
28066
+ const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create DocDB DBInstance ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, dbInstanceIdentifier, error instanceof Error ? error : void 0);
28010
28067
  if (instanceCreated) markCreatedBeforeFailure(thrown, logicalId, resourceType, dbInstanceIdentifier, createdResourceId);
28011
28068
  throw thrown;
28012
28069
  }
@@ -28032,7 +28089,7 @@ var DocDBProvider = class {
28032
28089
  };
28033
28090
  } catch (error) {
28034
28091
  const cause = error instanceof Error ? error : void 0;
28035
- throw new ProvisioningError(`Failed to update DocDB DBInstance ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
28092
+ throw new ProvisioningError(`Failed to update DocDB DBInstance ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
28036
28093
  }
28037
28094
  }
28038
28095
  async deleteDBInstance(logicalId, physicalId, resourceType, context) {
@@ -28050,7 +28107,7 @@ var DocDBProvider = class {
28050
28107
  return;
28051
28108
  }
28052
28109
  const cause = error instanceof Error ? error : void 0;
28053
- throw new ProvisioningError(`Failed to delete DocDB DBInstance ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
28110
+ throw new ProvisioningError(`Failed to delete DocDB DBInstance ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
28054
28111
  }
28055
28112
  }
28056
28113
  async describeDBCluster(dbClusterIdentifier) {
@@ -28316,7 +28373,7 @@ var DocDBSubnetGroupProvider = class {
28316
28373
  };
28317
28374
  } catch (error) {
28318
28375
  const cause = error instanceof Error ? error : void 0;
28319
- throw new ProvisioningError(`Failed to create DocDB DBSubnetGroup ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, dbSubnetGroupName, cause);
28376
+ throw new ProvisioningError(`Failed to create DocDB DBSubnetGroup ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, dbSubnetGroupName, cause);
28320
28377
  }
28321
28378
  }
28322
28379
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -28343,7 +28400,7 @@ var DocDBSubnetGroupProvider = class {
28343
28400
  };
28344
28401
  } catch (error) {
28345
28402
  const cause = error instanceof Error ? error : void 0;
28346
- throw new ProvisioningError(`Failed to update DocDB DBSubnetGroup ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
28403
+ throw new ProvisioningError(`Failed to update DocDB DBSubnetGroup ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
28347
28404
  }
28348
28405
  }
28349
28406
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -28360,7 +28417,7 @@ var DocDBSubnetGroupProvider = class {
28360
28417
  return;
28361
28418
  }
28362
28419
  const cause = error instanceof Error ? error : void 0;
28363
- throw new ProvisioningError(`Failed to delete DocDB DBSubnetGroup ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
28420
+ throw new ProvisioningError(`Failed to delete DocDB DBSubnetGroup ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
28364
28421
  }
28365
28422
  }
28366
28423
  async import(input) {
@@ -28600,7 +28657,7 @@ var Route53Provider = class {
28600
28657
  this.logger.warn(`Best-effort rollback DeleteHostedZone for ${zoneId} also failed: ${describeAwsFailure(deleteError).detail} — operator may need to clean up the orphan zone`);
28601
28658
  }
28602
28659
  const cause = uhfError instanceof Error ? uhfError : void 0;
28603
- throw new ProvisioningError(`Failed to enable Accelerated Recovery on hosted zone ${logicalId} (${zoneId}): ${uhfError instanceof Error ? uhfError.message : String(uhfError)}`, resourceType, logicalId, zoneId, cause);
28660
+ throw new ProvisioningError(`Failed to enable Accelerated Recovery on hosted zone ${logicalId} (${zoneId}): ${describeAwsFailure(uhfError).detail}`, resourceType, logicalId, zoneId, cause);
28604
28661
  }
28605
28662
  const nameServers = response.DelegationSet?.NameServers ?? [];
28606
28663
  this.logger.debug(`Successfully created hosted zone ${logicalId}: ${zoneId}`);
@@ -28614,7 +28671,7 @@ var Route53Provider = class {
28614
28671
  };
28615
28672
  } catch (error) {
28616
28673
  if (zoneCreated) markAuxiliaryFailure(error, logicalId);
28617
- const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create hosted zone ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
28674
+ const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create hosted zone ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
28618
28675
  if (createdZoneId !== void 0 && !zoneRolledBack) markCreatedBeforeFailure(thrown, logicalId, resourceType, createdZoneId);
28619
28676
  throw thrown;
28620
28677
  }
@@ -28628,7 +28685,7 @@ var Route53Provider = class {
28628
28685
  try {
28629
28686
  adopted = await this.findHostedZoneByCallerReference(input.Name, input.CallerReference);
28630
28687
  } catch (lookupError) {
28631
- this.logger.warn(`CreateHostedZone for ${input.Name} was refused as already-existing, and the lookup that would have adopted the existing zone failed: ${lookupError instanceof Error ? lookupError.message : String(lookupError)}. Reporting the original error.`);
28688
+ this.logger.warn(`CreateHostedZone for ${input.Name} was refused as already-existing, and the lookup that would have adopted the existing zone failed: ${describeAwsFailure(lookupError).detail}. Reporting the original error.`);
28632
28689
  throw error;
28633
28690
  }
28634
28691
  if (!adopted?.Id) throw error;
@@ -28640,7 +28697,7 @@ var Route53Provider = class {
28640
28697
  ...described.DelegationSet ? { DelegationSet: described.DelegationSet } : {}
28641
28698
  };
28642
28699
  } catch (describeError) {
28643
- this.logger.warn(`Adopted hosted zone ${adopted.Id} but could not read it back: ${describeError instanceof Error ? describeError.message : String(describeError)}. Reporting the original error rather than returning a zone with no NameServers.`);
28700
+ this.logger.warn(`Adopted hosted zone ${adopted.Id} but could not read it back: ${describeAwsFailure(describeError).detail}. Reporting the original error rather than returning a zone with no NameServers.`);
28644
28701
  throw error;
28645
28702
  }
28646
28703
  }
@@ -28694,7 +28751,7 @@ var Route53Provider = class {
28694
28751
  } catch (error) {
28695
28752
  if (error instanceof CdkdError) throw error;
28696
28753
  const cause = error instanceof Error ? error : void 0;
28697
- throw new ProvisioningError(`Failed to update hosted zone ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
28754
+ throw new ProvisioningError(`Failed to update hosted zone ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
28698
28755
  }
28699
28756
  }
28700
28757
  async deleteHostedZone(logicalId, physicalId, resourceType, context) {
@@ -28713,7 +28770,7 @@ var Route53Provider = class {
28713
28770
  return;
28714
28771
  }
28715
28772
  const cause = error instanceof Error ? error : void 0;
28716
- const failure = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to delete hosted zone ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
28773
+ const failure = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to delete hosted zone ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
28717
28774
  throw progress.stripped ? markDeleteStarted(failure) : failure;
28718
28775
  }
28719
28776
  }
@@ -28800,7 +28857,7 @@ var Route53Provider = class {
28800
28857
  if (error instanceof ProvisioningError) throw error;
28801
28858
  const cause = error instanceof Error ? error : void 0;
28802
28859
  const cnameConflict = isCnameConflictRefusal(error);
28803
- const wrapped = new ProvisioningError(`Failed to create record set ${logicalId}: ${error instanceof Error ? error.message : String(error)}` + (cnameConflict ? CNAME_CONFLICT_COLLISION_NOTE : ""), resourceType, logicalId, void 0, cause);
28860
+ const wrapped = new ProvisioningError(`Failed to create record set ${logicalId}: ${describeAwsFailure(error).detail}` + (cnameConflict ? CNAME_CONFLICT_COLLISION_NOTE : ""), resourceType, logicalId, void 0, cause);
28804
28861
  throw cnameConflict ? markNameCollision(wrapped) : wrapped;
28805
28862
  }
28806
28863
  }
@@ -28841,7 +28898,7 @@ var Route53Provider = class {
28841
28898
  };
28842
28899
  } catch (error) {
28843
28900
  const cause = error instanceof Error ? error : void 0;
28844
- throw new ProvisioningError(`Failed to update record set ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
28901
+ throw new ProvisioningError(`Failed to update record set ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
28845
28902
  }
28846
28903
  }
28847
28904
  async findLiveRecordSet(hostedZoneId, properties) {
@@ -28931,7 +28988,7 @@ var Route53Provider = class {
28931
28988
  }
28932
28989
  if (error instanceof ProvisioningError) throw error;
28933
28990
  const cause = error instanceof Error ? error : void 0;
28934
- throw new ProvisioningError(`Failed to delete record set ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
28991
+ throw new ProvisioningError(`Failed to delete record set ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
28935
28992
  }
28936
28993
  }
28937
28994
  async waitForAcceleratedRecoveryMutable(zoneId, logicalId, resourceType) {
@@ -29728,7 +29785,7 @@ var WAFv2WebACLProvider = class {
29728
29785
  } catch (error) {
29729
29786
  if (error instanceof ProvisioningError) throw error;
29730
29787
  const cause = error instanceof Error ? error : void 0;
29731
- throw new ProvisioningError(`Failed to create WAFv2 WebACL ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
29788
+ throw new ProvisioningError(`Failed to create WAFv2 WebACL ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
29732
29789
  }
29733
29790
  }
29734
29791
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -29774,7 +29831,7 @@ var WAFv2WebACLProvider = class {
29774
29831
  } catch (error) {
29775
29832
  if (error instanceof ProvisioningError) throw error;
29776
29833
  const cause = error instanceof Error ? error : void 0;
29777
- throw new ProvisioningError(`Failed to update WAFv2 WebACL ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
29834
+ throw new ProvisioningError(`Failed to update WAFv2 WebACL ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
29778
29835
  }
29779
29836
  }
29780
29837
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -29803,7 +29860,7 @@ var WAFv2WebACLProvider = class {
29803
29860
  return;
29804
29861
  }
29805
29862
  const cause = error instanceof Error ? error : void 0;
29806
- throw new ProvisioningError(`Failed to delete WAFv2 WebACL ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
29863
+ throw new ProvisioningError(`Failed to delete WAFv2 WebACL ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
29807
29864
  }
29808
29865
  }
29809
29866
  warnOnSdkUnsupportedRuleKeys(logicalId, rules) {
@@ -30228,7 +30285,7 @@ var CognitoUserPoolProvider = class {
30228
30285
  mfaConfiguration = readDeclaredMfaConfiguration(properties["MfaConfiguration"], replayWarn(this.logger, context));
30229
30286
  this.warnOnBlankMfaConfiguration(properties["MfaConfiguration"]);
30230
30287
  } catch (error) {
30231
- throw new ProvisioningError(error instanceof Error ? error.message : String(error), resourceType, logicalId, poolName, error instanceof Error ? error : void 0);
30288
+ throw new ProvisioningError(describeAwsFailure(error).detail, resourceType, logicalId, poolName, error instanceof Error ? error : void 0);
30232
30289
  }
30233
30290
  this.assertMfaCombinationApplicable(logicalId, resourceType, poolName, properties, mfaConfiguration);
30234
30291
  let createdUserPoolId;
@@ -30308,7 +30365,7 @@ var CognitoUserPoolProvider = class {
30308
30365
  }
30309
30366
  }
30310
30367
  const cause = error instanceof Error ? error : void 0;
30311
- const thrown = new ProvisioningError(`Failed to create Cognito User Pool ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, poolName, cause);
30368
+ const thrown = new ProvisioningError(`Failed to create Cognito User Pool ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, poolName, cause);
30312
30369
  if (poolLeftBehind && createdUserPoolId) {
30313
30370
  markCreatedBeforeFailure(thrown, logicalId, resourceType, createdUserPoolId);
30314
30371
  markNonRetryable(thrown);
@@ -30460,7 +30517,7 @@ var CognitoUserPoolProvider = class {
30460
30517
  try {
30461
30518
  mfaConfiguration = readDeclaredMfaConfiguration(properties["MfaConfiguration"], stateBorneDesired ? { onUnusable: (message) => this.logger.warn(message) } : {});
30462
30519
  } catch (error) {
30463
- throw new ProvisioningError(`${error instanceof Error ? error.message : String(error)}. Nothing was applied to user pool ${physicalId}`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
30520
+ throw new ProvisioningError(`${describeAwsFailure(error).detail}. Nothing was applied to user pool ${physicalId}`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
30464
30521
  }
30465
30522
  this.warnOnBlankMfaConfiguration(properties["MfaConfiguration"]);
30466
30523
  const liveFirstAuthFactors = mfaPreflightNeedsLiveSignInPolicy(properties, mfaConfiguration) ? await this.readLiveAllowedFirstAuthFactors(physicalId) : void 0;
@@ -30530,7 +30587,7 @@ var CognitoUserPoolProvider = class {
30530
30587
  } catch (error) {
30531
30588
  if (error instanceof ResourceUpdateNotSupportedError || error instanceof ProvisioningError) throw error;
30532
30589
  const cause = error instanceof Error ? error : void 0;
30533
- throw new ProvisioningError(`Failed to update Cognito User Pool ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
30590
+ throw new ProvisioningError(`Failed to update Cognito User Pool ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
30534
30591
  }
30535
30592
  }
30536
30593
  async reconcileSchemaCustomAttributes(logicalId, physicalId, resourceType, newSchema, oldSchema, deletionProtected = false) {
@@ -30716,7 +30773,7 @@ var CognitoUserPoolProvider = class {
30716
30773
  return;
30717
30774
  }
30718
30775
  const cause = error instanceof Error ? error : void 0;
30719
- throw new ProvisioningError(`Failed to delete Cognito User Pool ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
30776
+ throw new ProvisioningError(`Failed to delete Cognito User Pool ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
30720
30777
  }
30721
30778
  }
30722
30779
  async sendEchoedDeletionProtection(physicalId, pool, value, opts = {}) {
@@ -31005,7 +31062,7 @@ var ElastiCacheProvider = class {
31005
31062
  };
31006
31063
  } catch (error) {
31007
31064
  const cause = error instanceof Error ? error : void 0;
31008
- throw new ProvisioningError(`Failed to create CacheSubnetGroup ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, cacheSubnetGroupName, cause);
31065
+ throw new ProvisioningError(`Failed to create CacheSubnetGroup ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, cacheSubnetGroupName, cause);
31009
31066
  }
31010
31067
  }
31011
31068
  async updateSubnetGroup(logicalId, physicalId, resourceType, properties, previousProperties) {
@@ -31032,7 +31089,7 @@ var ElastiCacheProvider = class {
31032
31089
  } catch (error) {
31033
31090
  if (error instanceof ProvisioningError) throw error;
31034
31091
  const cause = error instanceof Error ? error : void 0;
31035
- throw new ProvisioningError(`Failed to update CacheSubnetGroup ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
31092
+ throw new ProvisioningError(`Failed to update CacheSubnetGroup ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
31036
31093
  }
31037
31094
  }
31038
31095
  async deleteSubnetGroup(logicalId, physicalId, resourceType, context) {
@@ -31048,7 +31105,7 @@ var ElastiCacheProvider = class {
31048
31105
  return;
31049
31106
  }
31050
31107
  const cause = error instanceof Error ? error : void 0;
31051
- throw new ProvisioningError(`Failed to delete CacheSubnetGroup ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
31108
+ throw new ProvisioningError(`Failed to delete CacheSubnetGroup ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
31052
31109
  }
31053
31110
  }
31054
31111
  async createCacheCluster(logicalId, resourceType, properties) {
@@ -31105,7 +31162,7 @@ var ElastiCacheProvider = class {
31105
31162
  attributes
31106
31163
  };
31107
31164
  } catch (error) {
31108
- const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create CacheCluster ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, cacheClusterId, error instanceof Error ? error : void 0);
31165
+ const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create CacheCluster ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, cacheClusterId, error instanceof Error ? error : void 0);
31109
31166
  if (clusterCreated) markCreatedBeforeFailure(thrown, logicalId, resourceType, cacheClusterId);
31110
31167
  throw thrown;
31111
31168
  }
@@ -31158,7 +31215,7 @@ var ElastiCacheProvider = class {
31158
31215
  } catch (error) {
31159
31216
  if (error instanceof ProvisioningError) throw error;
31160
31217
  const cause = error instanceof Error ? error : void 0;
31161
- throw new ProvisioningError(`Failed to update CacheCluster ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
31218
+ throw new ProvisioningError(`Failed to update CacheCluster ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
31162
31219
  }
31163
31220
  }
31164
31221
  async deleteCacheCluster(logicalId, physicalId, resourceType, context) {
@@ -31185,7 +31242,7 @@ var ElastiCacheProvider = class {
31185
31242
  return;
31186
31243
  }
31187
31244
  const cause = error instanceof Error ? error : void 0;
31188
- throw new ProvisioningError(`Failed to delete CacheCluster ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
31245
+ throw new ProvisioningError(`Failed to delete CacheCluster ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
31189
31246
  }
31190
31247
  }
31191
31248
  buildLogDeliveryConfigurationsForUpdate(newConfigs, previousConfigs) {
@@ -31607,7 +31664,7 @@ var ServiceDiscoveryProvider = class ServiceDiscoveryProvider {
31607
31664
  }
31608
31665
  if (error instanceof ProvisioningError) throw error;
31609
31666
  const cause = error instanceof Error ? error : void 0;
31610
- throw new ProvisioningError(`Failed to delete Cloud Map namespace ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
31667
+ throw new ProvisioningError(`Failed to delete Cloud Map namespace ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
31611
31668
  }
31612
31669
  }
31613
31670
  async createHttpNamespace(logicalId, resourceType, properties, maskSecrets) {
@@ -31920,7 +31977,7 @@ var ServiceDiscoveryProvider = class ServiceDiscoveryProvider {
31920
31977
  return;
31921
31978
  }
31922
31979
  const cause = error instanceof Error ? error : void 0;
31923
- throw new ProvisioningError(`Failed to delete service discovery service ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
31980
+ throw new ProvisioningError(`Failed to delete service discovery service ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
31924
31981
  }
31925
31982
  }
31926
31983
  extractSoaTtlProperties(properties) {
@@ -33002,7 +33059,7 @@ var AppSyncProvider = class {
33002
33059
  body = await resp.Body.transformToString();
33003
33060
  } catch (error) {
33004
33061
  if (error instanceof ProvisioningError) throw error;
33005
- throw new ProvisioningError(`Failed to fetch ${propertyPath} s3://${bucket}/${key} for ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
33062
+ throw new ProvisioningError(`Failed to fetch ${propertyPath} s3://${bucket}/${key} for ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
33006
33063
  }
33007
33064
  if (body.length === 0) throw new ProvisioningError(`${propertyPath} object s3://${bucket}/${key} returned an empty body`, resourceType, logicalId);
33008
33065
  return body;
@@ -33177,7 +33234,7 @@ var AppSyncProvider = class {
33177
33234
  }
33178
33235
  }
33179
33236
  const cause = error instanceof Error ? error : void 0;
33180
- const thrown = new ProvisioningError(`Failed to create GraphQL API ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
33237
+ const thrown = new ProvisioningError(`Failed to create GraphQL API ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
33181
33238
  if (apiLeftBehind && createdApiId) {
33182
33239
  markCreatedBeforeFailure(thrown, logicalId, resourceType, createdApiId);
33183
33240
  markNonRetryable(thrown);
@@ -33246,7 +33303,7 @@ var AppSyncProvider = class {
33246
33303
  return;
33247
33304
  }
33248
33305
  const cause = error instanceof Error ? error : void 0;
33249
- throw new ProvisioningError(`Failed to delete GraphQL API ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
33306
+ throw new ProvisioningError(`Failed to delete GraphQL API ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
33250
33307
  }
33251
33308
  }
33252
33309
  async createGraphQLSchema(logicalId, resourceType, properties) {
@@ -33276,7 +33333,7 @@ var AppSyncProvider = class {
33276
33333
  };
33277
33334
  } catch (error) {
33278
33335
  const cause = error instanceof Error ? error : void 0;
33279
- throw new ProvisioningError(`Failed to create GraphQL Schema ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
33336
+ throw new ProvisioningError(`Failed to create GraphQL Schema ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
33280
33337
  }
33281
33338
  }
33282
33339
  async createDataSource(logicalId, resourceType, properties, context) {
@@ -33307,7 +33364,7 @@ var AppSyncProvider = class {
33307
33364
  this.logger.debug(`Successfully created DataSource ${logicalId}: ${physicalId}`);
33308
33365
  } catch (error) {
33309
33366
  const cause = error instanceof Error ? error : void 0;
33310
- throw new ProvisioningError(`Failed to create DataSource ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
33367
+ throw new ProvisioningError(`Failed to create DataSource ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
33311
33368
  }
33312
33369
  const dataSourceArn = reportedArn ?? await this.buildAppSyncArnOrWarn(`apis/${apiId}/datasources/${name}`, logicalId, physicalId);
33313
33370
  return {
@@ -33339,7 +33396,7 @@ var AppSyncProvider = class {
33339
33396
  return;
33340
33397
  }
33341
33398
  const cause = error instanceof Error ? error : void 0;
33342
- throw new ProvisioningError(`Failed to delete DataSource ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
33399
+ throw new ProvisioningError(`Failed to delete DataSource ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
33343
33400
  }
33344
33401
  }
33345
33402
  async createResolver(logicalId, resourceType, properties, context) {
@@ -33377,7 +33434,7 @@ var AppSyncProvider = class {
33377
33434
  this.logger.debug(`Successfully created Resolver ${logicalId}: ${physicalId}`);
33378
33435
  } catch (error) {
33379
33436
  const cause = error instanceof Error ? error : void 0;
33380
- throw new ProvisioningError(`Failed to create Resolver ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
33437
+ throw new ProvisioningError(`Failed to create Resolver ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
33381
33438
  }
33382
33439
  const resolverArn = reportedArn ?? await this.buildAppSyncArnOrWarn(`apis/${apiId}/types/${typeName}/resolvers/${fieldName}`, logicalId, physicalId);
33383
33440
  return {
@@ -33408,7 +33465,7 @@ var AppSyncProvider = class {
33408
33465
  return;
33409
33466
  }
33410
33467
  const cause = error instanceof Error ? error : void 0;
33411
- throw new ProvisioningError(`Failed to delete Resolver ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
33468
+ throw new ProvisioningError(`Failed to delete Resolver ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
33412
33469
  }
33413
33470
  }
33414
33471
  async createApiKey(logicalId, resourceType, properties, context) {
@@ -33437,7 +33494,7 @@ var AppSyncProvider = class {
33437
33494
  this.logger.debug(`Successfully created ApiKey ${logicalId}: ${apiKeyId}`);
33438
33495
  } catch (error) {
33439
33496
  const cause = error instanceof Error ? error : void 0;
33440
- throw new ProvisioningError(`Failed to create ApiKey ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
33497
+ throw new ProvisioningError(`Failed to create ApiKey ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
33441
33498
  }
33442
33499
  const physicalId = packCompositeId(resourceType, logicalId, [{
33443
33500
  name: "apiId",
@@ -33504,7 +33561,7 @@ var AppSyncProvider = class {
33504
33561
  return;
33505
33562
  }
33506
33563
  const cause = error instanceof Error ? error : void 0;
33507
- throw new ProvisioningError(`Failed to delete ApiKey ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
33564
+ throw new ProvisioningError(`Failed to delete ApiKey ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
33508
33565
  }
33509
33566
  }
33510
33567
  isNotFoundError(error) {
@@ -34165,7 +34222,7 @@ var GlueProvider = class {
34165
34222
  previousDatabaseInput
34166
34223
  });
34167
34224
  } catch (error) {
34168
- throw new ProvisioningError(`${v(error instanceof Error ? error.message : String(error))}. Nothing was applied to Glue Database ${logicalId}; fix the template value`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
34225
+ throw new ProvisioningError(`${v(describeAwsFailure(error).detail)}. Nothing was applied to Glue Database ${logicalId}; fix the template value`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
34169
34226
  }
34170
34227
  const liveParameters = await this.readLiveDatabaseParameters(logicalId, resourceType, physicalId, catalogId, log.mask);
34171
34228
  try {
@@ -34206,7 +34263,7 @@ var GlueProvider = class {
34206
34263
  return;
34207
34264
  }
34208
34265
  const cause = error instanceof Error ? error : void 0;
34209
- throw new ProvisioningError(log.mask(`Failed to delete Glue Database ${logicalId}: ${error instanceof Error ? error.message : String(error)}`), resourceType, logicalId, physicalId, cause);
34266
+ throw new ProvisioningError(log.mask(`Failed to delete Glue Database ${logicalId}: ${describeAwsFailure(error).detail}`), resourceType, logicalId, physicalId, cause);
34210
34267
  }
34211
34268
  }
34212
34269
  async createTable(logicalId, resourceType, properties, context) {
@@ -34349,7 +34406,7 @@ var GlueProvider = class {
34349
34406
  return;
34350
34407
  }
34351
34408
  const cause = error instanceof Error ? error : void 0;
34352
- throw new ProvisioningError(log.mask(`Failed to delete Glue Table ${logicalId}: ${error instanceof Error ? error.message : String(error)}`), resourceType, logicalId, physicalId, cause);
34409
+ throw new ProvisioningError(log.mask(`Failed to delete Glue Table ${logicalId}: ${describeAwsFailure(error).detail}`), resourceType, logicalId, physicalId, cause);
34353
34410
  }
34354
34411
  }
34355
34412
  preserveAwsManagedParameters(built, desiredParameters, previousParameters, liveParameters) {
@@ -34808,7 +34865,7 @@ var GlueWorkflowProvider = class {
34808
34865
  return;
34809
34866
  }
34810
34867
  const cause = error instanceof Error ? error : void 0;
34811
- throw new ProvisioningError(`Failed to delete Glue Workflow ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
34868
+ throw new ProvisioningError(`Failed to delete Glue Workflow ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
34812
34869
  }
34813
34870
  }
34814
34871
  async getAttribute(physicalId, _resourceType, attributeName) {
@@ -34936,7 +34993,7 @@ var GlueSecurityConfigurationProvider = class {
34936
34993
  return;
34937
34994
  }
34938
34995
  const cause = error instanceof Error ? error : void 0;
34939
- throw new ProvisioningError(`Failed to delete Glue SecurityConfiguration ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
34996
+ throw new ProvisioningError(`Failed to delete Glue SecurityConfiguration ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
34940
34997
  }
34941
34998
  }
34942
34999
  async getAttribute(physicalId, _resourceType, attributeName) {
@@ -35187,7 +35244,7 @@ var GlueJobProvider = class {
35187
35244
  return;
35188
35245
  }
35189
35246
  const cause = error instanceof Error ? error : void 0;
35190
- throw new ProvisioningError(`Failed to delete Glue Job ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
35247
+ throw new ProvisioningError(`Failed to delete Glue Job ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
35191
35248
  }
35192
35249
  }
35193
35250
  async getAttribute(physicalId, _resourceType, attributeName) {
@@ -35485,7 +35542,7 @@ var GlueCrawlerProvider = class {
35485
35542
  return;
35486
35543
  }
35487
35544
  const cause = error instanceof Error ? error : void 0;
35488
- throw new ProvisioningError(log.mask(`Failed to delete Glue Crawler ${logicalId}: ${error instanceof Error ? error.message : String(error)}`), resourceType, logicalId, physicalId, cause);
35545
+ throw new ProvisioningError(log.mask(`Failed to delete Glue Crawler ${logicalId}: ${describeAwsFailure(error).detail}`), resourceType, logicalId, physicalId, cause);
35489
35546
  }
35490
35547
  }
35491
35548
  async stopCrawlerAndWait(physicalId, log = {
@@ -35734,7 +35791,7 @@ var GlueConnectionProvider = class {
35734
35791
  return;
35735
35792
  }
35736
35793
  const cause = error instanceof Error ? error : void 0;
35737
- throw new ProvisioningError(log.mask(`Failed to delete Glue Connection ${logicalId}: ${error instanceof Error ? error.message : String(error)}`), resourceType, logicalId, physicalId, cause);
35794
+ throw new ProvisioningError(log.mask(`Failed to delete Glue Connection ${logicalId}: ${describeAwsFailure(error).detail}`), resourceType, logicalId, physicalId, cause);
35738
35795
  }
35739
35796
  }
35740
35797
  async getAttribute(physicalId, _resourceType, attributeName) {
@@ -35959,7 +36016,7 @@ var GlueTriggerProvider = class {
35959
36016
  return;
35960
36017
  }
35961
36018
  const cause = error instanceof Error ? error : void 0;
35962
- const failure = new ProvisioningError(`Failed to delete Glue Trigger ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
36019
+ const failure = new ProvisioningError(`Failed to delete Glue Trigger ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
35963
36020
  throw stripped ? markDeleteStarted(failure) : failure;
35964
36021
  }
35965
36022
  }
@@ -36173,7 +36230,7 @@ var KMSProvider = class {
36173
36230
  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()}`);
36174
36231
  }
36175
36232
  const cause = error instanceof Error ? error : void 0;
36176
- const thrown = new ProvisioningError(`Failed to create KMS Key ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
36233
+ const thrown = new ProvisioningError(`Failed to create KMS Key ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
36177
36234
  if (createdKeyId !== void 0) {
36178
36235
  markCreatedBeforeFailure(thrown, logicalId, resourceType, createdKeyId);
36179
36236
  if (supersededPending) markSupersedesEarlierCreate(thrown);
@@ -36346,7 +36403,7 @@ var KMSProvider = class {
36346
36403
  };
36347
36404
  } catch (error) {
36348
36405
  const cause = error instanceof Error ? error : void 0;
36349
- throw new ProvisioningError(`Failed to update KMS Key ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
36406
+ throw new ProvisioningError(`Failed to update KMS Key ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
36350
36407
  }
36351
36408
  }
36352
36409
  async deleteKey(logicalId, physicalId, resourceType, properties, context) {
@@ -36366,7 +36423,7 @@ var KMSProvider = class {
36366
36423
  return;
36367
36424
  }
36368
36425
  const cause = error instanceof Error ? error : void 0;
36369
- throw new ProvisioningError(`Failed to schedule deletion for KMS Key ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
36426
+ throw new ProvisioningError(`Failed to schedule deletion for KMS Key ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
36370
36427
  }
36371
36428
  }
36372
36429
  async applyTagDiff(keyId, resourceType, logicalId, oldTagsRaw, newTagsRaw) {
@@ -36411,7 +36468,7 @@ var KMSProvider = class {
36411
36468
  };
36412
36469
  } catch (error) {
36413
36470
  const cause = error instanceof Error ? error : void 0;
36414
- throw new ProvisioningError(`Failed to create KMS Alias ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
36471
+ throw new ProvisioningError(`Failed to create KMS Alias ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
36415
36472
  }
36416
36473
  }
36417
36474
  async updateAlias(logicalId, physicalId, resourceType, properties) {
@@ -36430,7 +36487,7 @@ var KMSProvider = class {
36430
36487
  };
36431
36488
  } catch (error) {
36432
36489
  const cause = error instanceof Error ? error : void 0;
36433
- throw new ProvisioningError(`Failed to update KMS Alias ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
36490
+ throw new ProvisioningError(`Failed to update KMS Alias ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
36434
36491
  }
36435
36492
  }
36436
36493
  async deleteAlias(logicalId, physicalId, resourceType, context) {
@@ -36446,7 +36503,7 @@ var KMSProvider = class {
36446
36503
  return;
36447
36504
  }
36448
36505
  const cause = error instanceof Error ? error : void 0;
36449
- throw new ProvisioningError(`Failed to delete KMS Alias ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
36506
+ throw new ProvisioningError(`Failed to delete KMS Alias ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
36450
36507
  }
36451
36508
  }
36452
36509
  async readCurrentState(physicalId, _logicalId, resourceType) {
@@ -36796,7 +36853,7 @@ var BudgetsBudgetProvider = class {
36796
36853
  try {
36797
36854
  await this.addNotificationsOnly(accountId, physicalId, newNotifications);
36798
36855
  } catch (error) {
36799
- throw new ProvisioningError(`Failed to update budget ${logicalId}: adding ${newNotifications.length} desired notification(s) beside every notification the budget already holds (the recorded NotificationsWithSubscribers is not a list cdkd can read, so none was deleted; a budget allows at most 5 notifications and 10 email subscribers each): ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
36856
+ throw new ProvisioningError(`Failed to update budget ${logicalId}: adding ${newNotifications.length} desired notification(s) beside every notification the budget already holds (the recorded NotificationsWithSubscribers is not a list cdkd can read, so none was deleted; a budget allows at most 5 notifications and 10 email subscribers each): ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, error instanceof Error ? error : void 0);
36800
36857
  }
36801
36858
  this.logger.warn(safeMsg`The recorded NotificationsWithSubscribers of budget ${logicalId} is not a list cdkd can read, so cdkd deleted no notification or subscriber and only added the desired ones. Delete any the template no longer names yourself.`);
36802
36859
  }
@@ -36974,7 +37031,7 @@ var BudgetsBudgetProvider = class {
36974
37031
  return;
36975
37032
  }
36976
37033
  const cause = error instanceof Error ? error : void 0;
36977
- throw new ProvisioningError(`Failed to delete budget ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
37034
+ throw new ProvisioningError(`Failed to delete budget ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
36978
37035
  }
36979
37036
  }
36980
37037
  async getAttribute(physicalId, resourceType, attributeName, logicalId) {
@@ -36988,7 +37045,7 @@ var BudgetsBudgetProvider = class {
36988
37045
  return await this.budgetArn(accountId, physicalId);
36989
37046
  } catch (error) {
36990
37047
  const cause = error instanceof Error ? error : void 0;
36991
- throw new ProvisioningError(`Failed to resolve Arn for budget ${physicalId}: ${cause?.message ?? String(error)}`, resourceType, logicalId, physicalId, cause);
37048
+ throw new ProvisioningError(`Failed to resolve Arn for budget ${physicalId}: ${cause?.message ?? safeStringify(error)}`, resourceType, logicalId, physicalId, cause);
36992
37049
  }
36993
37050
  }
36994
37051
  async import(input) {
@@ -37277,7 +37334,7 @@ var KinesisStreamProvider = class {
37277
37334
  };
37278
37335
  } catch (error) {
37279
37336
  if (streamCreated) markAuxiliaryFailure(error, logicalId);
37280
- const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create Kinesis stream ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, streamName, error instanceof Error ? error : void 0);
37337
+ const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create Kinesis stream ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, streamName, error instanceof Error ? error : void 0);
37281
37338
  if (streamCreated) markCreatedBeforeFailure(thrown, logicalId, resourceType, streamName);
37282
37339
  throw thrown;
37283
37340
  }
@@ -37403,7 +37460,7 @@ var KinesisStreamProvider = class {
37403
37460
  };
37404
37461
  } catch (error) {
37405
37462
  const cause = error instanceof Error ? error : void 0;
37406
- throw new ProvisioningError(`Failed to update Kinesis stream ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
37463
+ throw new ProvisioningError(`Failed to update Kinesis stream ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
37407
37464
  }
37408
37465
  }
37409
37466
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -37422,7 +37479,7 @@ var KinesisStreamProvider = class {
37422
37479
  return;
37423
37480
  }
37424
37481
  const cause = error instanceof Error ? error : void 0;
37425
- throw new ProvisioningError(`Failed to delete Kinesis stream ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
37482
+ throw new ProvisioningError(`Failed to delete Kinesis stream ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
37426
37483
  }
37427
37484
  await waitForGoneAfterDelete({
37428
37485
  what: `Kinesis stream ${physicalId}`,
@@ -37669,7 +37726,7 @@ var KinesisStreamConsumerProvider = class {
37669
37726
  }
37670
37727
  };
37671
37728
  } catch (error) {
37672
- const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to register Kinesis stream consumer ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, consumerName, error instanceof Error ? error : void 0);
37729
+ const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to register Kinesis stream consumer ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, consumerName, error instanceof Error ? error : void 0);
37673
37730
  if (createdArn) markCreatedBeforeFailure(thrown, logicalId, resourceType, createdArn);
37674
37731
  throw thrown;
37675
37732
  }
@@ -37737,7 +37794,7 @@ var KinesisStreamConsumerProvider = class {
37737
37794
  return;
37738
37795
  }
37739
37796
  const cause = error instanceof Error ? error : void 0;
37740
- throw new ProvisioningError(`Failed to deregister Kinesis stream consumer ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
37797
+ throw new ProvisioningError(`Failed to deregister Kinesis stream consumer ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
37741
37798
  }
37742
37799
  }
37743
37800
  async getAttribute(physicalId, _resourceType, attributeName) {
@@ -37964,7 +38021,7 @@ var SchedulerScheduleProvider = class {
37964
38021
  };
37965
38022
  } catch (error) {
37966
38023
  const cause = error instanceof Error ? error : void 0;
37967
- throw new ProvisioningError(`Failed to create Schedule ${logicalId}: ${cause?.message ?? String(error)}`, resourceType, logicalId, void 0, cause);
38024
+ throw new ProvisioningError(`Failed to create Schedule ${logicalId}: ${cause?.message ?? safeStringify(error)}`, resourceType, logicalId, void 0, cause);
37968
38025
  }
37969
38026
  }
37970
38027
  async readIdentity(name, groupName) {
@@ -38065,7 +38122,7 @@ var SchedulerScheduleProvider = class {
38065
38122
  } catch (error) {
38066
38123
  if (error instanceof ResourceUpdateNotSupportedError) throw error;
38067
38124
  const cause = error instanceof Error ? error : void 0;
38068
- throw new ProvisioningError(`Failed to update Schedule ${logicalId}: ${cause?.message ?? String(error)}`, resourceType, logicalId, physicalId, cause);
38125
+ throw new ProvisioningError(`Failed to update Schedule ${logicalId}: ${cause?.message ?? safeStringify(error)}`, resourceType, logicalId, physicalId, cause);
38069
38126
  }
38070
38127
  }
38071
38128
  async deleteByRecordedIdentity(logicalId, physicalId, resourceType, recorded, context) {
@@ -38176,7 +38233,7 @@ var SchedulerScheduleProvider = class {
38176
38233
  return;
38177
38234
  }
38178
38235
  const cause = error instanceof Error ? error : void 0;
38179
- throw new ProvisioningError(`Failed to delete Schedule ${logicalId}: ${cause?.message ?? String(error)}`, resourceType, logicalId, physicalId, cause);
38236
+ throw new ProvisioningError(`Failed to delete Schedule ${logicalId}: ${cause?.message ?? safeStringify(error)}`, resourceType, logicalId, physicalId, cause);
38180
38237
  }
38181
38238
  }
38182
38239
  async getAttribute(physicalId, resourceType, attributeName, logicalId) {
@@ -38186,7 +38243,7 @@ var SchedulerScheduleProvider = class {
38186
38243
  } catch (error) {
38187
38244
  const cause = error instanceof Error ? error : void 0;
38188
38245
  const customGroupHint = error instanceof ResourceNotFoundException$13 ? " Schedules in a custom group cannot be looked up by bare name; the Arn is normally served from cdkd state attributes." : "";
38189
- throw new ProvisioningError(`Failed to resolve Arn for Schedule ${physicalId}: ${cause?.message ?? String(error)}.${customGroupHint}`, resourceType, logicalId, physicalId, cause);
38246
+ throw new ProvisioningError(`Failed to resolve Arn for Schedule ${physicalId}: ${cause?.message ?? safeStringify(error)}.${customGroupHint}`, resourceType, logicalId, physicalId, cause);
38190
38247
  }
38191
38248
  }
38192
38249
  async readCurrentState(physicalId, _logicalId, _resourceType, properties) {
@@ -38505,7 +38562,7 @@ var PipesPipeProvider = class {
38505
38562
  createdIdentity = pipeIdentityToken(name, created?.Arn, created?.CreationTime);
38506
38563
  } catch (error) {
38507
38564
  const cause = error instanceof Error ? error : void 0;
38508
- throw new ProvisioningError(`Failed to create Pipe ${logicalId}: ${mask(cause?.message ?? String(error))}`, resourceType, logicalId, void 0, cause);
38565
+ throw new ProvisioningError(`Failed to create Pipe ${logicalId}: ${mask(cause?.message ?? safeStringify(error))}`, resourceType, logicalId, void 0, cause);
38509
38566
  }
38510
38567
  let settled;
38511
38568
  try {
@@ -38577,7 +38634,7 @@ var PipesPipeProvider = class {
38577
38634
  if (error instanceof ProvisioningError) throw error;
38578
38635
  if (error instanceof NotFoundException$6) assertRegionMatch(await this.getClient().config.region(), context?.expectedRegion, resourceType, logicalId, physicalId);
38579
38636
  const cause = error instanceof Error ? error : void 0;
38580
- throw new ProvisioningError(`Failed to update Pipe ${logicalId}: ${mask(cause?.message ?? String(error))}`, resourceType, logicalId, physicalId, cause);
38637
+ throw new ProvisioningError(`Failed to update Pipe ${logicalId}: ${mask(cause?.message ?? safeStringify(error))}`, resourceType, logicalId, physicalId, cause);
38581
38638
  }
38582
38639
  return {
38583
38640
  physicalId,
@@ -38598,7 +38655,7 @@ var PipesPipeProvider = class {
38598
38655
  return;
38599
38656
  }
38600
38657
  const cause = error instanceof Error ? error : void 0;
38601
- throw new ProvisioningError(`Failed to delete Pipe ${logicalId}: ${cause?.message ?? String(error)}`, resourceType, logicalId, physicalId, cause);
38658
+ throw new ProvisioningError(`Failed to delete Pipe ${logicalId}: ${cause?.message ?? safeStringify(error)}`, resourceType, logicalId, physicalId, cause);
38602
38659
  }
38603
38660
  await waitForGoneAfterDelete({
38604
38661
  what: `Pipe ${physicalId}`,
@@ -39231,7 +39288,7 @@ var EFSProvider = class {
39231
39288
  return;
39232
39289
  }
39233
39290
  const cause = error instanceof Error ? error : void 0;
39234
- throw new ProvisioningError(`Failed to delete EFS FileSystem ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
39291
+ throw new ProvisioningError(`Failed to delete EFS FileSystem ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
39235
39292
  }
39236
39293
  }
39237
39294
  async waitForFileSystemAvailable(fileSystemId, logicalId, resourceType, log) {
@@ -39301,7 +39358,7 @@ var EFSProvider = class {
39301
39358
  return;
39302
39359
  }
39303
39360
  const cause = error instanceof Error ? error : void 0;
39304
- throw new ProvisioningError(`Failed to delete EFS MountTarget ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
39361
+ throw new ProvisioningError(`Failed to delete EFS MountTarget ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
39305
39362
  }
39306
39363
  }
39307
39364
  async waitForMountTargetDeleted(mountTargetId, logicalId) {
@@ -39430,7 +39487,7 @@ var EFSProvider = class {
39430
39487
  return;
39431
39488
  }
39432
39489
  const cause = error instanceof Error ? error : void 0;
39433
- throw new ProvisioningError(`Failed to delete EFS AccessPoint ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
39490
+ throw new ProvisioningError(`Failed to delete EFS AccessPoint ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
39434
39491
  }
39435
39492
  }
39436
39493
  async readCurrentState(physicalId, _logicalId, resourceType) {
@@ -39828,7 +39885,7 @@ var FSxFileSystemProvider = class {
39828
39885
  throw error;
39829
39886
  }
39830
39887
  const cause = error instanceof Error ? error : void 0;
39831
- const message = `Failed to create FSx FileSystem ${logicalId}: ${error instanceof Error ? error.message : String(error)}`;
39888
+ const message = `Failed to create FSx FileSystem ${logicalId}: ${describeAwsFailure(error).detail}`;
39832
39889
  if (survivorId !== void 0) {
39833
39890
  const thrown = new ProvisioningError(message, resourceType, logicalId, void 0, cause);
39834
39891
  markCreatedBeforeFailure(thrown, logicalId, resourceType, survivorId);
@@ -40064,7 +40121,7 @@ var FSxFileSystemProvider = class {
40064
40121
  } catch (error) {
40065
40122
  if (error instanceof ProvisioningError) throw error;
40066
40123
  const cause = error instanceof Error ? error : void 0;
40067
- throw new ProvisioningError(`Failed to update FSx FileSystem ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
40124
+ throw new ProvisioningError(`Failed to update FSx FileSystem ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
40068
40125
  }
40069
40126
  }
40070
40127
  detectVariantConfigKey(properties, previousProperties) {
@@ -40257,7 +40314,7 @@ var FSxFileSystemProvider = class {
40257
40314
  return;
40258
40315
  }
40259
40316
  const cause = error instanceof Error ? error : void 0;
40260
- throw new ProvisioningError(`Failed to delete FSx FileSystem ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
40317
+ throw new ProvisioningError(`Failed to delete FSx FileSystem ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
40261
40318
  }
40262
40319
  await this.waitForFileSystemDeleted(physicalId, logicalId, resourceType);
40263
40320
  this.logger.debug(`Successfully deleted FSx FileSystem ${logicalId}`);
@@ -40351,7 +40408,7 @@ var FSxFileSystemProvider = class {
40351
40408
  } catch (error) {
40352
40409
  if (error instanceof FileSystemNotFound$1) return;
40353
40410
  const cause = error instanceof Error ? error : void 0;
40354
- throw new ProvisioningError(`Failed to poll FSx FileSystem ${fileSystemId} deletion: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, fileSystemId, cause);
40411
+ throw new ProvisioningError(`Failed to poll FSx FileSystem ${fileSystemId} deletion: ${describeAwsFailure(error).detail}`, resourceType, logicalId, fileSystemId, cause);
40355
40412
  }
40356
40413
  if (!fs && sawResponse) return;
40357
40414
  if (!fs) {
@@ -40861,7 +40918,7 @@ var EMRClusterProvider = class {
40861
40918
  throw error;
40862
40919
  }
40863
40920
  const cause = error instanceof Error ? error : void 0;
40864
- const message = `Failed to create EMR Cluster ${logicalId}: ${error instanceof Error ? error.message : String(error)}`;
40921
+ const message = `Failed to create EMR Cluster ${logicalId}: ${describeAwsFailure(error).detail}`;
40865
40922
  if (survivorId !== void 0) {
40866
40923
  const thrown = new ProvisioningError(message, resourceType, logicalId, void 0, cause);
40867
40924
  markCreatedBeforeFailure(thrown, logicalId, resourceType, survivorId);
@@ -41059,7 +41116,7 @@ var EMRClusterProvider = class {
41059
41116
  } catch (error) {
41060
41117
  if (error instanceof ProvisioningError) throw error;
41061
41118
  const cause = error instanceof Error ? error : void 0;
41062
- throw new ProvisioningError(`Failed to update EMR Cluster ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
41119
+ throw new ProvisioningError(`Failed to update EMR Cluster ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
41063
41120
  }
41064
41121
  }
41065
41122
  async applyTagDiff(physicalId, resourceType, logicalId, prevTagsRaw, nextTagsRaw) {
@@ -41113,7 +41170,7 @@ var EMRClusterProvider = class {
41113
41170
  return;
41114
41171
  }
41115
41172
  const cause = error instanceof Error ? error : void 0;
41116
- throw new ProvisioningError(`Failed to describe EMR Cluster ${logicalId} before deletion: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
41173
+ throw new ProvisioningError(`Failed to describe EMR Cluster ${logicalId} before deletion: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
41117
41174
  }
41118
41175
  const currentState = current?.Status?.State;
41119
41176
  if (currentState && TERMINAL_STATES.has(currentState)) {
@@ -41142,7 +41199,7 @@ var EMRClusterProvider = class {
41142
41199
  flip.deleteAccepted = true;
41143
41200
  } catch (error) {
41144
41201
  const cause = error instanceof Error ? error : void 0;
41145
- throw new ProvisioningError(`Failed to terminate EMR Cluster ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
41202
+ throw new ProvisioningError(`Failed to terminate EMR Cluster ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
41146
41203
  }
41147
41204
  await this.waitForClusterTerminated(physicalId, logicalId, resourceType);
41148
41205
  this.logger.debug(`Successfully deleted EMR Cluster ${logicalId}`);
@@ -41189,7 +41246,7 @@ var EMRClusterProvider = class {
41189
41246
  } catch (error) {
41190
41247
  if (error instanceof InvalidRequestException) return;
41191
41248
  const cause = error instanceof Error ? error : void 0;
41192
- throw new ProvisioningError(`Failed to poll EMR Cluster ${clusterId} termination: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, clusterId, cause);
41249
+ throw new ProvisioningError(`Failed to poll EMR Cluster ${clusterId} termination: ${describeAwsFailure(error).detail}`, resourceType, logicalId, clusterId, cause);
41193
41250
  }
41194
41251
  const state = cluster?.Status?.State;
41195
41252
  if (state && TERMINAL_STATES.has(state)) {
@@ -41533,7 +41590,7 @@ var EMRInstanceGroupConfigProvider = class {
41533
41590
  }
41534
41591
  };
41535
41592
  } catch (error) {
41536
- const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to add EMR instance group ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
41593
+ const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to add EMR instance group ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
41537
41594
  let leftBehindGroupId = createdGroupId;
41538
41595
  if (leftBehindGroupId && properties["InstanceRole"] === "TASK") {
41539
41596
  const log = createMaskedLogSinks(this.logger, context?.maskSecrets);
@@ -41639,7 +41696,7 @@ var EMRInstanceGroupConfigProvider = class {
41639
41696
  } catch (error) {
41640
41697
  if (error instanceof ProvisioningError || error instanceof ResourceUpdateNotSupportedError) throw error;
41641
41698
  const cause = error instanceof Error ? error : void 0;
41642
- throw new ProvisioningError(`Failed to update EMR instance group ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
41699
+ throw new ProvisioningError(`Failed to update EMR instance group ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
41643
41700
  }
41644
41701
  }
41645
41702
  async delete(logicalId, physicalId, resourceType, properties, context) {
@@ -41859,7 +41916,7 @@ var EMRInstanceFleetConfigProvider = class {
41859
41916
  }
41860
41917
  };
41861
41918
  } catch (error) {
41862
- const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to add EMR instance fleet ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
41919
+ const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to add EMR instance fleet ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
41863
41920
  if (createdFleetId) {
41864
41921
  markCreatedBeforeFailure(thrown, logicalId, resourceType, createdFleetId);
41865
41922
  markNonRetryable(thrown);
@@ -41947,7 +42004,7 @@ var EMRInstanceFleetConfigProvider = class {
41947
42004
  } catch (error) {
41948
42005
  if (error instanceof ProvisioningError || error instanceof ResourceUpdateNotSupportedError) throw error;
41949
42006
  const cause = error instanceof Error ? error : void 0;
41950
- throw new ProvisioningError(`Failed to update EMR instance fleet ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
42007
+ throw new ProvisioningError(`Failed to update EMR instance fleet ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
41951
42008
  }
41952
42009
  }
41953
42010
  async delete(logicalId, physicalId, resourceType, properties, context) {
@@ -42243,7 +42300,7 @@ var FirehoseProvider = class {
42243
42300
  attributes: { Arn: arn }
42244
42301
  };
42245
42302
  } catch (error) {
42246
- const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create Firehose delivery stream ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
42303
+ const thrown = error instanceof ProvisioningError ? error : new ProvisioningError(`Failed to create Firehose delivery stream ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, error instanceof Error ? error : void 0);
42247
42304
  if (createdStreamName !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, createdStreamName);
42248
42305
  throw thrown;
42249
42306
  }
@@ -42255,7 +42312,7 @@ var FirehoseProvider = class {
42255
42312
  } catch (error) {
42256
42313
  if (error instanceof CdkdError) throw error;
42257
42314
  const cause = error instanceof Error ? error : void 0;
42258
- throw new ProvisioningError(`Failed to update Firehose delivery stream ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
42315
+ throw new ProvisioningError(`Failed to update Firehose delivery stream ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
42259
42316
  }
42260
42317
  }
42261
42318
  async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties) {
@@ -42394,7 +42451,7 @@ var FirehoseProvider = class {
42394
42451
  return;
42395
42452
  }
42396
42453
  const cause = error instanceof Error ? error : void 0;
42397
- throw new ProvisioningError(`Failed to delete Firehose delivery stream ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
42454
+ throw new ProvisioningError(`Failed to delete Firehose delivery stream ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
42398
42455
  }
42399
42456
  await waitForGoneAfterDelete({
42400
42457
  what: `Firehose delivery stream ${physicalId}`,
@@ -43049,7 +43106,7 @@ var CloudTrailProvider = class {
43049
43106
  } catch (error) {
43050
43107
  if (trailCreated) markAuxiliaryFailure(error, logicalId);
43051
43108
  const cause = error instanceof Error ? error : void 0;
43052
- const thrown = new ProvisioningError(`Failed to create CloudTrail Trail ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
43109
+ const thrown = new ProvisioningError(`Failed to create CloudTrail Trail ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
43053
43110
  if (createdTrailArn) markCreatedBeforeFailure(thrown, logicalId, resourceType, createdTrailArn);
43054
43111
  throw thrown;
43055
43112
  }
@@ -43137,7 +43194,7 @@ var CloudTrailProvider = class {
43137
43194
  };
43138
43195
  } catch (error) {
43139
43196
  const cause = error instanceof Error ? error : void 0;
43140
- throw new ProvisioningError(`Failed to update CloudTrail Trail ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
43197
+ throw new ProvisioningError(`Failed to update CloudTrail Trail ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
43141
43198
  }
43142
43199
  }
43143
43200
  async delete(logicalId, physicalId, resourceType, properties, context) {
@@ -43162,7 +43219,7 @@ var CloudTrailProvider = class {
43162
43219
  return;
43163
43220
  }
43164
43221
  const cause = error instanceof Error ? error : void 0;
43165
- const failure = new ProvisioningError(`Failed to delete CloudTrail Trail ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
43222
+ const failure = new ProvisioningError(`Failed to delete CloudTrail Trail ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
43166
43223
  throw stripped ? markDeleteStarted(failure) : failure;
43167
43224
  }
43168
43225
  }
@@ -43490,7 +43547,7 @@ var CodeBuildProvider = class {
43490
43547
  };
43491
43548
  } catch (error) {
43492
43549
  const cause = error instanceof Error ? error : void 0;
43493
- throw new ProvisioningError(`Failed to create CodeBuild Project ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
43550
+ throw new ProvisioningError(`Failed to create CodeBuild Project ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
43494
43551
  }
43495
43552
  }
43496
43553
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -43508,7 +43565,7 @@ var CodeBuildProvider = class {
43508
43565
  };
43509
43566
  } catch (error) {
43510
43567
  const cause = error instanceof Error ? error : void 0;
43511
- throw new ProvisioningError(`Failed to update CodeBuild Project ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
43568
+ throw new ProvisioningError(`Failed to update CodeBuild Project ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
43512
43569
  }
43513
43570
  }
43514
43571
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -43524,7 +43581,7 @@ var CodeBuildProvider = class {
43524
43581
  return;
43525
43582
  }
43526
43583
  const cause = error instanceof Error ? error : void 0;
43527
- throw new ProvisioningError(`Failed to delete CodeBuild Project ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
43584
+ throw new ProvisioningError(`Failed to delete CodeBuild Project ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
43528
43585
  }
43529
43586
  }
43530
43587
  getAttribute(_physicalId, _resourceType, attributeName) {
@@ -43893,7 +43950,7 @@ var CodeCommitRepositoryProvider = class {
43893
43950
  };
43894
43951
  } catch (error) {
43895
43952
  const cause = error instanceof Error ? error : void 0;
43896
- const thrown = new ProvisioningError(`Failed to create CodeCommit Repository ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, repositoryName, cause);
43953
+ const thrown = new ProvisioningError(`Failed to create CodeCommit Repository ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, repositoryName, cause);
43897
43954
  if (leftLiveName !== void 0) markCreatedBeforeFailure(thrown, logicalId, resourceType, leftLiveName);
43898
43955
  throw thrown;
43899
43956
  }
@@ -43998,7 +44055,7 @@ var CodeCommitRepositoryProvider = class {
43998
44055
  }));
43999
44056
  } catch (error) {
44000
44057
  if (retainedCount === 0) throw error;
44001
- throw new Error(`PutRepositoryTriggers failed with ${retainedCount} live trigger(s) the desired Triggers does not name kept beside the desired ones (the recorded Triggers is not a list cdkd can read; CodeCommit allows at most 10 triggers per repository): ${error instanceof Error ? error.message : String(error)}`, { cause: error });
44058
+ throw new Error(`PutRepositoryTriggers failed with ${retainedCount} live trigger(s) the desired Triggers does not name kept beside the desired ones (the recorded Triggers is not a list cdkd can read; CodeCommit allows at most 10 triggers per repository): ${describeAwsFailure(error).detail}`, { cause: error });
44002
44059
  }
44003
44060
  this.logger.debug(`Updated triggers for ${currentName} (${newSdkTriggers.length} trigger(s))`);
44004
44061
  }
@@ -44012,7 +44069,7 @@ var CodeCommitRepositoryProvider = class {
44012
44069
  } catch (error) {
44013
44070
  if (error instanceof ProvisioningError) throw error;
44014
44071
  const cause = error instanceof Error ? error : void 0;
44015
- throw new ProvisioningError(`Failed to update CodeCommit Repository ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
44072
+ throw new ProvisioningError(`Failed to update CodeCommit Repository ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
44016
44073
  }
44017
44074
  }
44018
44075
  readDesiredLists(logicalId, resourceType, values, physicalId) {
@@ -44097,7 +44154,7 @@ var CodeCommitRepositoryProvider = class {
44097
44154
  return withIndeterminateGuard(void 0, guard);
44098
44155
  }
44099
44156
  const cause = error instanceof Error ? error : void 0;
44100
- throw new ProvisioningError(`Failed to delete CodeCommit Repository ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
44157
+ throw new ProvisioningError(`Failed to delete CodeCommit Repository ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
44101
44158
  }
44102
44159
  if (!deletedRepositoryId) {
44103
44160
  const clientRegion = await this.getClient().config.region();
@@ -44390,7 +44447,7 @@ var DLMLifecyclePolicyProvider = class {
44390
44447
  };
44391
44448
  } catch (error) {
44392
44449
  const cause = error instanceof Error ? error : void 0;
44393
- throw new ProvisioningError(`Failed to create DLM Lifecycle Policy ${logicalId}: ${cause?.message ?? String(error)}`, resourceType, logicalId, void 0, cause);
44450
+ throw new ProvisioningError(`Failed to create DLM Lifecycle Policy ${logicalId}: ${cause?.message ?? safeStringify(error)}`, resourceType, logicalId, void 0, cause);
44394
44451
  }
44395
44452
  }
44396
44453
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -44436,7 +44493,7 @@ var DLMLifecyclePolicyProvider = class {
44436
44493
  } catch (error) {
44437
44494
  if (error instanceof ResourceUpdateNotSupportedError) throw error;
44438
44495
  const cause = error instanceof Error ? error : void 0;
44439
- throw new ProvisioningError(`Failed to update DLM Lifecycle Policy ${logicalId}: ${cause?.message ?? String(error)}`, resourceType, logicalId, physicalId, cause);
44496
+ throw new ProvisioningError(`Failed to update DLM Lifecycle Policy ${logicalId}: ${cause?.message ?? safeStringify(error)}`, resourceType, logicalId, physicalId, cause);
44440
44497
  }
44441
44498
  }
44442
44499
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -44452,7 +44509,7 @@ var DLMLifecyclePolicyProvider = class {
44452
44509
  return;
44453
44510
  }
44454
44511
  const cause = error instanceof Error ? error : void 0;
44455
- throw new ProvisioningError(`Failed to delete DLM Lifecycle Policy ${logicalId}: ${cause?.message ?? String(error)}`, resourceType, logicalId, physicalId, cause);
44512
+ throw new ProvisioningError(`Failed to delete DLM Lifecycle Policy ${logicalId}: ${cause?.message ?? safeStringify(error)}`, resourceType, logicalId, physicalId, cause);
44456
44513
  }
44457
44514
  }
44458
44515
  async getAttribute(physicalId, resourceType, attributeName, logicalId) {
@@ -44462,7 +44519,7 @@ var DLMLifecyclePolicyProvider = class {
44462
44519
  return await this.fetchPolicyArn(physicalId);
44463
44520
  } catch (error) {
44464
44521
  const cause = error instanceof Error ? error : void 0;
44465
- throw new ProvisioningError(`Failed to resolve Arn for DLM Lifecycle Policy ${physicalId}: ${cause?.message ?? String(error)}`, resourceType, logicalId, physicalId, cause);
44522
+ throw new ProvisioningError(`Failed to resolve Arn for DLM Lifecycle Policy ${physicalId}: ${cause?.message ?? safeStringify(error)}`, resourceType, logicalId, physicalId, cause);
44466
44523
  }
44467
44524
  }
44468
44525
  async readCurrentState(physicalId, _logicalId, _resourceType) {
@@ -44628,7 +44685,7 @@ var S3VectorsProvider = class {
44628
44685
  };
44629
44686
  } catch (error) {
44630
44687
  const cause = error instanceof Error ? error : void 0;
44631
- throw new ProvisioningError(`Failed to create S3 VectorBucket ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
44688
+ throw new ProvisioningError(`Failed to create S3 VectorBucket ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
44632
44689
  }
44633
44690
  }
44634
44691
  async deleteVectorBucket(logicalId, physicalId, resourceType, context) {
@@ -44645,7 +44702,7 @@ var S3VectorsProvider = class {
44645
44702
  return;
44646
44703
  }
44647
44704
  const cause = error instanceof Error ? error : void 0;
44648
- throw new ProvisioningError(`Failed to delete S3 VectorBucket ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
44705
+ throw new ProvisioningError(`Failed to delete S3 VectorBucket ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
44649
44706
  }
44650
44707
  }
44651
44708
  async emptyVectorBucket(logicalId, vectorBucketName) {
@@ -44845,7 +44902,7 @@ var S3DirectoryBucketProvider = class {
44845
44902
  };
44846
44903
  } catch (error) {
44847
44904
  const cause = error instanceof Error ? error : void 0;
44848
- throw new ProvisioningError(`Failed to create S3 Express Directory Bucket ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, bucketName, cause);
44905
+ throw new ProvisioningError(`Failed to create S3 Express Directory Bucket ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, bucketName, cause);
44849
44906
  }
44850
44907
  }
44851
44908
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
@@ -44881,7 +44938,7 @@ var S3DirectoryBucketProvider = class {
44881
44938
  };
44882
44939
  } catch (error) {
44883
44940
  const cause = error instanceof Error ? error : void 0;
44884
- throw new ProvisioningError(`Failed to update S3 Express Directory Bucket ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
44941
+ throw new ProvisioningError(`Failed to update S3 Express Directory Bucket ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
44885
44942
  }
44886
44943
  }
44887
44944
  async delete(logicalId, physicalId, resourceType, properties, context) {
@@ -44899,7 +44956,7 @@ var S3DirectoryBucketProvider = class {
44899
44956
  return;
44900
44957
  }
44901
44958
  const cause = error instanceof Error ? error : void 0;
44902
- throw new ProvisioningError(mask(`Failed to delete S3 Express Directory Bucket ${logicalId}: ${error instanceof Error ? error.message : String(error)}`), resourceType, logicalId, physicalId, cause);
44959
+ throw new ProvisioningError(mask(`Failed to delete S3 Express Directory Bucket ${logicalId}: ${describeAwsFailure(error).detail}`), resourceType, logicalId, physicalId, cause);
44903
44960
  }
44904
44961
  }
44905
44962
  async deleteBucketWithEmptyRetry(logicalId, bucketName, allowAutoEmpty, maskSecrets) {
@@ -45087,7 +45144,7 @@ var S3TablesProvider = class {
45087
45144
  } catch (error) {
45088
45145
  if (error instanceof CdkdError) throw error;
45089
45146
  const cause = error instanceof Error ? error : void 0;
45090
- throw new ProvisioningError(`Failed to update S3 Tables resource ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
45147
+ throw new ProvisioningError(`Failed to update S3 Tables resource ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
45091
45148
  }
45092
45149
  }
45093
45150
  async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties) {
@@ -45126,7 +45183,7 @@ var S3TablesProvider = class {
45126
45183
  };
45127
45184
  } catch (error) {
45128
45185
  const cause = error instanceof Error ? error : void 0;
45129
- throw new ProvisioningError(`Failed to create S3 Table Bucket ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
45186
+ throw new ProvisioningError(`Failed to create S3 Table Bucket ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
45130
45187
  }
45131
45188
  }
45132
45189
  async deleteTableBucket(logicalId, physicalId, resourceType, context) {
@@ -45143,7 +45200,7 @@ var S3TablesProvider = class {
45143
45200
  return;
45144
45201
  }
45145
45202
  const cause = error instanceof Error ? error : void 0;
45146
- throw new ProvisioningError(`Failed to delete S3 Table Bucket ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
45203
+ throw new ProvisioningError(`Failed to delete S3 Table Bucket ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
45147
45204
  }
45148
45205
  }
45149
45206
  async emptyTableBucket(tableBucketARN) {
@@ -45223,7 +45280,7 @@ var S3TablesProvider = class {
45223
45280
  };
45224
45281
  } catch (error) {
45225
45282
  const cause = error instanceof Error ? error : void 0;
45226
- throw new ProvisioningError(`Failed to create S3 Tables Namespace ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
45283
+ throw new ProvisioningError(`Failed to create S3 Tables Namespace ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
45227
45284
  }
45228
45285
  }
45229
45286
  async deleteNamespace(logicalId, physicalId, resourceType, context) {
@@ -45244,7 +45301,7 @@ var S3TablesProvider = class {
45244
45301
  return;
45245
45302
  }
45246
45303
  const cause = error instanceof Error ? error : void 0;
45247
- throw new ProvisioningError(`Failed to delete S3 Tables Namespace ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
45304
+ throw new ProvisioningError(`Failed to delete S3 Tables Namespace ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
45248
45305
  }
45249
45306
  }
45250
45307
  async createTable(logicalId, resourceType, properties, context) {
@@ -45295,7 +45352,7 @@ var S3TablesProvider = class {
45295
45352
  };
45296
45353
  } catch (error) {
45297
45354
  const cause = error instanceof Error ? error : void 0;
45298
- const thrown = new ProvisioningError(`Failed to create S3 Tables Table ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, void 0, cause);
45355
+ const thrown = new ProvisioningError(`Failed to create S3 Tables Table ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
45299
45356
  if (tableCreated) markCreatedBeforeFailure(thrown, logicalId, resourceType, physicalId);
45300
45357
  throw thrown;
45301
45358
  }
@@ -45558,7 +45615,7 @@ var S3TablesProvider = class {
45558
45615
  resolved = await this.resolveTableParts(physicalId);
45559
45616
  } catch (error) {
45560
45617
  const cause = error instanceof Error ? error : void 0;
45561
- throw new ProvisioningError(`Failed to resolve S3 Tables Table ${logicalId} (${physicalId}): ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
45618
+ throw new ProvisioningError(`Failed to resolve S3 Tables Table ${logicalId} (${physicalId}): ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
45562
45619
  }
45563
45620
  if (resolved === "not-found") {
45564
45621
  const clientRegion = await this.getClient().config.region();
@@ -45583,7 +45640,7 @@ var S3TablesProvider = class {
45583
45640
  return;
45584
45641
  }
45585
45642
  const cause = error instanceof Error ? error : void 0;
45586
- throw new ProvisioningError(`Failed to delete S3 Tables Table ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
45643
+ throw new ProvisioningError(`Failed to delete S3 Tables Table ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
45587
45644
  }
45588
45645
  }
45589
45646
  tagListToSdkMap(tags) {
@@ -45638,7 +45695,7 @@ var S3TablesProvider = class {
45638
45695
  }));
45639
45696
  } catch (err) {
45640
45697
  const cause = err instanceof Error ? err : void 0;
45641
- throw new ProvisioningError(`applyTableTagsDiff: UntagResource failed for ${resourceArn} (keys: ${removedKeys.join(", ")}): ${err instanceof Error ? err.message : String(err)}. State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause);
45698
+ throw new ProvisioningError(`applyTableTagsDiff: UntagResource failed for ${resourceArn} (keys: ${removedKeys.join(", ")}): ${describeAwsFailure(err).detail}. State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause);
45642
45699
  }
45643
45700
  if (Object.keys(upserts).length > 0) try {
45644
45701
  await this.getClient().send(new TagResourceCommand$27({
@@ -45647,7 +45704,7 @@ var S3TablesProvider = class {
45647
45704
  }));
45648
45705
  } catch (err) {
45649
45706
  const cause = err instanceof Error ? err : void 0;
45650
- throw new ProvisioningError(`applyTableTagsDiff: TagResource failed for ${resourceArn} (keys: ${Object.keys(upserts).join(", ")}): ${err instanceof Error ? err.message : String(err)}. State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause);
45707
+ throw new ProvisioningError(`applyTableTagsDiff: TagResource failed for ${resourceArn} (keys: ${Object.keys(upserts).join(", ")}): ${describeAwsFailure(err).detail}. State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause);
45651
45708
  }
45652
45709
  }
45653
45710
  async applyTableBucketTagsDiff(logicalId, physicalId, resourceType, previousTags, newTags) {
@@ -45665,7 +45722,7 @@ var S3TablesProvider = class {
45665
45722
  }));
45666
45723
  } catch (err) {
45667
45724
  const cause = err instanceof Error ? err : void 0;
45668
- throw new ProvisioningError(`applyTableBucketTagsDiff: UntagResource failed for ${resourceArn} (keys: ${removedKeys.join(", ")}): ${err instanceof Error ? err.message : String(err)}. State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause);
45725
+ throw new ProvisioningError(`applyTableBucketTagsDiff: UntagResource failed for ${resourceArn} (keys: ${removedKeys.join(", ")}): ${describeAwsFailure(err).detail}. State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause);
45669
45726
  }
45670
45727
  if (Object.keys(upserts).length > 0) try {
45671
45728
  await this.getClient().send(new TagResourceCommand$27({
@@ -45674,7 +45731,7 @@ var S3TablesProvider = class {
45674
45731
  }));
45675
45732
  } catch (err) {
45676
45733
  const cause = err instanceof Error ? err : void 0;
45677
- throw new ProvisioningError(`applyTableBucketTagsDiff: TagResource failed for ${resourceArn} (keys: ${Object.keys(upserts).join(", ")}): ${err instanceof Error ? err.message : String(err)}. State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause);
45734
+ throw new ProvisioningError(`applyTableBucketTagsDiff: TagResource failed for ${resourceArn} (keys: ${Object.keys(upserts).join(", ")}): ${describeAwsFailure(err).detail}. State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause);
45678
45735
  }
45679
45736
  }
45680
45737
  };
@@ -45789,7 +45846,7 @@ var ECRProvider = class {
45789
45846
  } catch (error) {
45790
45847
  if (repositoryCreated) markAuxiliaryFailure(error, logicalId);
45791
45848
  const cause = error instanceof Error ? error : void 0;
45792
- const thrown = new ProvisioningError(`Failed to create ECR Repository ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, repositoryName, cause);
45849
+ const thrown = new ProvisioningError(`Failed to create ECR Repository ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, repositoryName, cause);
45793
45850
  if (repositoryCreated) markCreatedBeforeFailure(thrown, logicalId, resourceType, repositoryName);
45794
45851
  throw thrown;
45795
45852
  }
@@ -45885,7 +45942,7 @@ var ECRProvider = class {
45885
45942
  };
45886
45943
  } catch (error) {
45887
45944
  const cause = error instanceof Error ? error : void 0;
45888
- throw new ProvisioningError(`Failed to update ECR Repository ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
45945
+ throw new ProvisioningError(`Failed to update ECR Repository ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
45889
45946
  }
45890
45947
  }
45891
45948
  async delete(logicalId, physicalId, resourceType, properties, context) {
@@ -45907,7 +45964,7 @@ var ECRProvider = class {
45907
45964
  return;
45908
45965
  }
45909
45966
  const cause = error instanceof Error ? error : void 0;
45910
- throw new ProvisioningError(`Failed to delete ECR Repository ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
45967
+ throw new ProvisioningError(`Failed to delete ECR Repository ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
45911
45968
  }
45912
45969
  }
45913
45970
  async readCurrentState(physicalId, _logicalId, _resourceType) {
@@ -46473,7 +46530,7 @@ var ACMCertificateProvider = class {
46473
46530
  throw thrown;
46474
46531
  }
46475
46532
  const cause = error instanceof Error ? error : void 0;
46476
- const detail = error instanceof Error ? error.message : String(error);
46533
+ const detail = describeAwsFailure(error).detail;
46477
46534
  const message = `Failed to create ACM certificate ${logicalIdShown(logicalId)}: ${detail}`;
46478
46535
  if (requestedArn && survivorNote !== void 0) {
46479
46536
  const thrown = new ProvisioningError(`${message} ${survivorNote}`, resourceType, logicalId, requestedArn, cause);
@@ -46581,7 +46638,7 @@ var ACMCertificateProvider = class {
46581
46638
  };
46582
46639
  } catch (error) {
46583
46640
  const cause = error instanceof Error ? error : void 0;
46584
- throw new ProvisioningError(`Failed to update ACM certificate ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
46641
+ throw new ProvisioningError(`Failed to update ACM certificate ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
46585
46642
  }
46586
46643
  }
46587
46644
  async delete(logicalId, physicalId, resourceType, _properties, context) {
@@ -46601,7 +46658,7 @@ var ACMCertificateProvider = class {
46601
46658
  this.logger.debug(`Successfully deleted ACM certificate ${logicalId}`);
46602
46659
  } catch (error) {
46603
46660
  const cause = error instanceof Error ? error : void 0;
46604
- throw new ProvisioningError(`Failed to delete ACM certificate ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
46661
+ throw new ProvisioningError(`Failed to delete ACM certificate ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
46605
46662
  }
46606
46663
  }
46607
46664
  async getAttribute(physicalId, _resourceType, attributeName) {
@@ -46723,4 +46780,4 @@ var ACMCertificateProvider = class {
46723
46780
 
46724
46781
  //#endregion
46725
46782
  export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider };
46726
- //# sourceMappingURL=provider-classes-gt8C7wFO.js.map
46783
+ //# sourceMappingURL=provider-classes-59TTNMFB.js.map