@go-to-k/cdkd 0.301.7 → 0.301.8
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.
- package/dist/{asg-provider-C14GB-Hy.js → asg-provider-BHNhL4VV.js} +3 -3
- package/dist/{asg-provider-C14GB-Hy.js.map → asg-provider-BHNhL4VV.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{deploy-engine-zLKsm0IM.js → deploy-engine-6bGIDa7Z.js} +600 -519
- package/dist/deploy-engine-6bGIDa7Z.js.map +1 -0
- package/dist/{iam-policy-targets-LyArt3ew.js → iam-policy-targets-DJmfxbko.js} +5 -2
- package/dist/iam-policy-targets-DJmfxbko.js.map +1 -0
- package/dist/{iam-role-provider-BnStRZFM.js → iam-role-provider-CvfdjJBv.js} +3 -3
- package/dist/{iam-role-provider-BnStRZFM.js.map → iam-role-provider-CvfdjJBv.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/{neptune-provider-BlpYIZQP.js → neptune-provider-CrH00sHx.js} +3 -3
- package/dist/{neptune-provider-BlpYIZQP.js.map → neptune-provider-CrH00sHx.js.map} +1 -1
- package/dist/{program-CiTz5-_D.js → program-Bji4lco2.js} +5 -5
- package/dist/{program-CiTz5-_D.js.map → program-Bji4lco2.js.map} +1 -1
- package/dist/{provider-classes-BWo7K01p.js → provider-classes-D41TJi4B.js} +81 -44
- package/dist/provider-classes-D41TJi4B.js.map +1 -0
- package/dist/{rds-provider-DagnUCn-.js → rds-provider-BTabgCz5.js} +3 -3
- package/dist/{rds-provider-DagnUCn-.js.map → rds-provider-BTabgCz5.js.map} +1 -1
- package/dist/{version-MUc6NbW0.js → version-B3HWuj22.js} +2 -2
- package/dist/{version-MUc6NbW0.js.map → version-B3HWuj22.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-zLKsm0IM.js.map +0 -1
- package/dist/iam-policy-targets-LyArt3ew.js.map +0 -1
- package/dist/provider-classes-BWo7K01p.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 markReplayMayCollide, $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 markNameCollision, 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, Zt as withPasteableAwsProfile, _ as RecentIdSet, _t as createMaskedLogSinks, a as onlySecretDerived, at as startInterruptWatch, b as isInsideWindow, bn as ResourceUpdateNotSupportedError, bt as maskDeep, c as recordedPrincipalsRepair, ct as canonicalizeRoute53QueryName, dr as
|
|
3
|
+
import { $ as protectedReplacementAdvice, $n as markReplayMayCollide, $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 markNameCollision, 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, Zt as withPasteableAwsProfile, _ as RecentIdSet, _t as createMaskedLogSinks, a as onlySecretDerived, ar as isExplicitDenyError, at as startInterruptWatch, b as isInsideWindow, bn as ResourceUpdateNotSupportedError, bt as maskDeep, c as recordedPrincipalsRepair, cr as isTransientServerError, ct as canonicalizeRoute53QueryName, dr as isMarkedNonRetryable, dt as compositeIdSkipResult, en as clientDefaultsFor, er as relayedNameCollision, et as renderDisableCommand, fr as isThrottlingError, ft as logicalIdShown, g as AmbiguousCreateLatch, gt as stateOrphanRecordRemedy, h as AMBIGUOUS_LATCH_TTL_MS, hr as wrapMaskedAwsError, ht as segmentAfterAnchor, i as holdsSecretDerivedEntry, in as CdkdError, ir as isAmbiguousOutcomeError, it as isInterruptedWaitError, j as normalizeAwsTagsToCfn, jt as markAuxiliaryFailure, k as isPlainImportValue, lt as compositeIdFormatMessage, mr as markRedactedCause, nn as AccountIdUnavailableError, o as readPrincipalLists, ot as ElapsedBudgetRegistry, p as withRemovalDefaults, pr as markNonRetryable, pt as packCompositeId, q as userPoolProtectionSite, qn as isNameCollisionError, qt as injectiveKeyPrefix, r as SECRET_DERIVED_READ_LIVE, sr as isRetryableTransientError, tn as credentialFingerprint, tr as explicitDenyPolicyKind, u as clearOnUpdateRemoval, ur as THROTTLING_ERROR_NAMES, 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-DJmfxbko.js";
|
|
4
4
|
import { s as ambientRegion } from "./aws-client-defaults-DBXBcg0J.js";
|
|
5
|
-
import { $i as accountArgs, Ao as replayWarn, Bl as displayAssemblyPath, Bo as sameLambdaFunctionAddress, C as getPriorAttempts, Cc as rewriteTemplateAssetReferences, Cn as awaitInFlightSibling, Co as toFiniteNumber, Dn as replacedDeleteFailureVerdict, Do as configIntegerRefusal, Dr as waitForLambdaFunctionActive, Dt as withApiLimit, Eo as configBooleanRefusal, Es as dynamicReferenceTokens, Et as lookupEachName, F as listNestedTemplateRows, Gr as isWaitAbandonedError, Hl as resolveAssemblyPath, I as renderNestedTemplateTreeDefect, Ja as refuseMalformedResourcesForDestroy, Jr as ec2InstanceProtectionSite, Jt as redactedDeleteAddressFields, Ki as passedParameterClassesOf, Kn as secretNamedAttributeNamesOf, Kr as markWaitAbandoned, Kt as REDACTED_DELETE_ADDRESS_SKIP_REASON, Lo as withRetry, Lr as slowCcOperationTimeoutMs, Ls as carriesSecretMask, Mo as requireConfigObject, Ms as recoverMaskedOutput, N as findNestedTemplateTreeDefect, Ni as getAccountInfo, No as requireConfigString, Ns as physicalNameCopiesOf, Oa as refuseMalformedNestedChildOutputs, Ol as canonicalizeRegion, Oo as configStringRefusal, P as isAbsoluteAssetPath, Ps as recordAttributeIdCopy, Qo as passedNoEchoParametersOf, Qr as reEnableInstanceApiTermination, Ro as canonicalLambdaFunctionName, Rr as unchangedBehindSecretReference, S as isTruthyCfnBoolean, So as toCfnInteger, Tl as decodeListingKey, Tn as getStackRecords, To as coerceCfnInteger, Tt as isAccessDeniedError, Ui as parseWebACLArn, Ur as deleteSkipReason, Vl as renderAssemblyPathEscape, Wr as withIndeterminateGuard, Wt as getCurrentProducerRegions, Xr as observeThenDisableInstanceApiTermination, Yr as isTerminationProtectionPropagationError, Yt as redactedDeleteAddressSkip, Zr as reDisableInstanceApiTermination, _ as deleteTableWithIndexBusyRetry, _r as refuseMalformedDesiredTags, ai as s3BucketDomainName, b as S3_AUTO_DELETE_OBJECTS_TAG, bo as coerceWarmThroughput$1, br as definedAttributes,
|
|
6
|
-
import { n as collectInlinePolicyNamesManagedBySiblings, r as IamCreateClientCache, t as IAMRoleProvider } from "./iam-role-provider-
|
|
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-
|
|
8
|
-
import { RDSProvider } from "./rds-provider-
|
|
9
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
10
|
-
import { ASGProvider } from "./asg-provider-
|
|
5
|
+
import { $i as accountArgs, Ao as replayWarn, Bl as displayAssemblyPath, Bo as sameLambdaFunctionAddress, C as getPriorAttempts, Cc as rewriteTemplateAssetReferences, Cn as awaitInFlightSibling, Co as toFiniteNumber, Dn as replacedDeleteFailureVerdict, Do as configIntegerRefusal, Dr as waitForLambdaFunctionActive, Dt as withApiLimit, Eo as configBooleanRefusal, Es as dynamicReferenceTokens, Et as lookupEachName, F as listNestedTemplateRows, Gr as isWaitAbandonedError, Hl as resolveAssemblyPath, I as renderNestedTemplateTreeDefect, Ja as refuseMalformedResourcesForDestroy, Jr as ec2InstanceProtectionSite, Jt as redactedDeleteAddressFields, Ki as passedParameterClassesOf, Kn as secretNamedAttributeNamesOf, Kr as markWaitAbandoned, Kt as REDACTED_DELETE_ADDRESS_SKIP_REASON, Lo as withRetry, Lr as slowCcOperationTimeoutMs, Ls as carriesSecretMask, Mo as requireConfigObject, Ms as recoverMaskedOutput, N as findNestedTemplateTreeDefect, Ni as getAccountInfo, No as requireConfigString, Ns as physicalNameCopiesOf, Oa as refuseMalformedNestedChildOutputs, Ol as canonicalizeRegion, Oo as configStringRefusal, P as isAbsoluteAssetPath, Ps as recordAttributeIdCopy, Qo as passedNoEchoParametersOf, Qr as reEnableInstanceApiTermination, Ro as canonicalLambdaFunctionName, Rr as unchangedBehindSecretReference, S as isTruthyCfnBoolean, So as toCfnInteger, Tl as decodeListingKey, Tn as getStackRecords, To as coerceCfnInteger, Tt as isAccessDeniedError, Ui as parseWebACLArn, Ur as deleteSkipReason, Vl as renderAssemblyPathEscape, Wr as withIndeterminateGuard, Wt as getCurrentProducerRegions, Xr as observeThenDisableInstanceApiTermination, Yr as isTerminationProtectionPropagationError, Yt as redactedDeleteAddressSkip, Zr as reDisableInstanceApiTermination, _ as deleteTableWithIndexBusyRetry, _r as refuseMalformedDesiredTags, ai as s3BucketDomainName, as as redactForState, b as S3_AUTO_DELETE_OBJECTS_TAG, bo as coerceWarmThroughput$1, br as definedAttributes, c as DynamoDBGlobalTableProvider, ci as s3BucketWebsiteUrl, co as findSilentDropProperties, cr as reserveStackCreateToken, d as compensateRemovedDeletionProtection, dr as isRefusedByName, f as deleteBudgetKey, fr as markDeleteStarted, g as INDEX_SETTLE_POLL_INTERVAL_MS, gr as readTagList, h as DELETE_INDEX_WAIT_PROCEED_NOTE, hr as planTagDiff, ii as s3BucketArn, is as markSameGenerationBag, jo as requireConfigArray, jr as getCurrentResourceSecrets, kl as derivePartitionAndUrlSuffix, ko as readConfigString, l as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, lt as revertNestedChildFromJournal, m as resolveDynamoDbDeleteBudgetMs, mr as DBPROXY_TAG_OPTIONS, mt as withNestedStackContext, oi as s3BucketDualStackDomainName, oo as withheldAccountClause, or as earliestDefined, os as recordReferenceProvenanceEntry, ot as getNestedRevertRun, p as resolveDynamoDbDeleteBudgetClock, pi as outputReferenceProvenanceOf, pr as DBPROXY_TAGS_WHAT, pt as getCurrentNestedStackContext, qt as isRedactedRecordedValue, ri as isSettledInstanceState, si as s3BucketRegionalDomainName, ss as snapshotPassProvenance, t as DeployEngine, u as beginDeleteWait, uo as withoutSilentDropProperties, ur as acquireIdempotencyToken, us as hasMaskableValues, v as waitForIndexesSettled, vc as stringifyValue, vr as tagMapAsList, w as markRefusedBeforeApplying, wo as coerceCfnBoolean, ws as withoutPhysicalNameCopies, wt as chunks, x as hasCdkAutoDeleteTag, xo as isWarmThroughputDecrease, xr as stringifyIfAssigned, y as ECR_AUTO_DELETE_IMAGES_TAG, yo as WARM_THROUGHPUT_MEMBERS, yr as tagPlanWarning, zl as describeFileReadFailure, zo as lambdaFunctionNameForMask } from "./deploy-engine-6bGIDa7Z.js";
|
|
6
|
+
import { n as collectInlinePolicyNamesManagedBySiblings, r as IamCreateClientCache, t as IAMRoleProvider } from "./iam-role-provider-CvfdjJBv.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-Bji4lco2.js";
|
|
8
|
+
import { RDSProvider } from "./rds-provider-BTabgCz5.js";
|
|
9
|
+
import { NeptuneProvider } from "./neptune-provider-CrH00sHx.js";
|
|
10
|
+
import { ASGProvider } from "./asg-provider-BHNhL4VV.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";
|
|
@@ -19425,7 +19425,11 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
19425
19425
|
return region ? aws` --region ${region}` : aws``;
|
|
19426
19426
|
}
|
|
19427
19427
|
wrapMaskedError(mask, error, build) {
|
|
19428
|
-
|
|
19428
|
+
const failure = describeAwsFailure(error);
|
|
19429
|
+
if (!(error instanceof Error)) return build(mask(failure.detail));
|
|
19430
|
+
if (!failure.redacted) return wrapMaskedAwsError(mask, error, build);
|
|
19431
|
+
this.logger.debug(mask(build(mask(failure.detail)).message));
|
|
19432
|
+
return markRedactedCause(build(`${mask(failure.summary)}${relayedNameCollision(failure.detail)}`));
|
|
19429
19433
|
}
|
|
19430
19434
|
async create(logicalId, resourceType, properties, context) {
|
|
19431
19435
|
const log = createMaskedLogSinks(this.logger, context?.maskSecrets);
|
|
@@ -19457,7 +19461,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
19457
19461
|
if (skip) return skip;
|
|
19458
19462
|
}
|
|
19459
19463
|
switch (resourceType) {
|
|
19460
|
-
case "AWS::ApiGateway::Account": return this.deleteAccount(logicalId, physicalId, resourceType);
|
|
19464
|
+
case "AWS::ApiGateway::Account": return this.deleteAccount(logicalId, physicalId, resourceType, context);
|
|
19461
19465
|
case "AWS::ApiGateway::Authorizer": return this.deleteAuthorizer(logicalId, physicalId, resourceType, properties, context);
|
|
19462
19466
|
case "AWS::ApiGateway::Resource": return this.deleteResource(logicalId, physicalId, resourceType, properties, context);
|
|
19463
19467
|
case "AWS::ApiGateway::Deployment": return this.deleteDeployment(logicalId, physicalId, resourceType, properties, context);
|
|
@@ -19508,7 +19512,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
19508
19512
|
throw this.wrapMaskedError(log.mask, error, (text) => new ProvisioningError(`Failed to update API Gateway Account ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
19509
19513
|
}
|
|
19510
19514
|
}
|
|
19511
|
-
async deleteAccount(logicalId, physicalId, resourceType) {
|
|
19515
|
+
async deleteAccount(logicalId, physicalId, resourceType, context) {
|
|
19512
19516
|
this.logger.debug(`Deleting API Gateway Account ${logicalId}`);
|
|
19513
19517
|
try {
|
|
19514
19518
|
await this.apiGatewayClient.send(new UpdateAccountCommand({ patchOperations: [{
|
|
@@ -19519,7 +19523,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
19519
19523
|
this.logger.debug(`Successfully deleted API Gateway Account ${logicalId}`);
|
|
19520
19524
|
} catch (error) {
|
|
19521
19525
|
const cause = error instanceof Error ? error : void 0;
|
|
19522
|
-
throw new ProvisioningError(`Failed to delete API Gateway Account ${logicalId}: ${
|
|
19526
|
+
throw this.wrapMaskedError(context?.maskSecrets ?? ((text) => text), error, (text) => new ProvisioningError(`Failed to delete API Gateway Account ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
19523
19527
|
}
|
|
19524
19528
|
}
|
|
19525
19529
|
async updateAccountWithRetry(cloudWatchRoleArn, logicalId, _resourceType, log) {
|
|
@@ -19697,7 +19701,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
19697
19701
|
return;
|
|
19698
19702
|
}
|
|
19699
19703
|
const cause = error instanceof Error ? error : void 0;
|
|
19700
|
-
throw new ProvisioningError(`Failed to delete API Gateway Authorizer ${logicalId}: ${
|
|
19704
|
+
throw this.wrapMaskedError(context?.maskSecrets ?? ((text) => text), error, (text) => new ProvisioningError(`Failed to delete API Gateway Authorizer ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
19701
19705
|
}
|
|
19702
19706
|
}
|
|
19703
19707
|
getAuthorizerAttribute(physicalId, attributeName) {
|
|
@@ -19740,7 +19744,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
19740
19744
|
orphanReason = `old API Gateway Resource ${physicalId} was not deleted: its recorded RestApiId is redacted`;
|
|
19741
19745
|
oldResourceSurvivor = "kept";
|
|
19742
19746
|
log.warn(safeMsg`Old API Gateway Resource ${physicalId} was not deleted during replacement: its ` + "recorded RestApiId is redacted in state, which names no API. The old resource may be orphaned and require manual cleanup.");
|
|
19743
|
-
} else await this.deleteResource(logicalId, physicalId, resourceType, previousProperties);
|
|
19747
|
+
} else await this.deleteResource(logicalId, physicalId, resourceType, previousProperties, { maskSecrets: log.mask });
|
|
19744
19748
|
} catch (error) {
|
|
19745
19749
|
oldResourceSurvivor = replacedDeleteFailureVerdict(error);
|
|
19746
19750
|
orphanReason = log.mask(`old API Gateway Resource ${physicalId} could not be deleted: ${safeStringify(error)}`);
|
|
@@ -19782,7 +19786,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
19782
19786
|
return;
|
|
19783
19787
|
}
|
|
19784
19788
|
const cause = error instanceof Error ? error : void 0;
|
|
19785
|
-
throw new ProvisioningError(`Failed to delete API Gateway Resource ${logicalId}: ${
|
|
19789
|
+
throw this.wrapMaskedError(context?.maskSecrets ?? ((text) => text), error, (text) => new ProvisioningError(`Failed to delete API Gateway Resource ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
19786
19790
|
}
|
|
19787
19791
|
}
|
|
19788
19792
|
getResourceAttribute(physicalId, _resourceType, attributeName) {
|
|
@@ -19867,7 +19871,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
19867
19871
|
return;
|
|
19868
19872
|
}
|
|
19869
19873
|
const cause = error instanceof Error ? error : void 0;
|
|
19870
|
-
throw new ProvisioningError(`Failed to delete API Gateway Deployment ${logicalId}: ${
|
|
19874
|
+
throw this.wrapMaskedError(context?.maskSecrets ?? ((text) => text), error, (text) => new ProvisioningError(`Failed to delete API Gateway Deployment ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
19871
19875
|
}
|
|
19872
19876
|
}
|
|
19873
19877
|
getDeploymentAttribute(physicalId, attributeName) {
|
|
@@ -20111,7 +20115,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
20111
20115
|
return;
|
|
20112
20116
|
}
|
|
20113
20117
|
const cause = error instanceof Error ? error : void 0;
|
|
20114
|
-
throw new ProvisioningError(`Failed to delete API Gateway Stage ${logicalId}: ${
|
|
20118
|
+
throw this.wrapMaskedError(context?.maskSecrets ?? ((text) => text), error, (text) => new ProvisioningError(`Failed to delete API Gateway Stage ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
20115
20119
|
}
|
|
20116
20120
|
}
|
|
20117
20121
|
getStageAttribute(physicalId, attributeName) {
|
|
@@ -20335,7 +20339,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
20335
20339
|
return;
|
|
20336
20340
|
}
|
|
20337
20341
|
const cause = error instanceof Error ? error : void 0;
|
|
20338
|
-
throw new ProvisioningError(`Failed to delete API Gateway Method ${logicalId}: ${
|
|
20342
|
+
throw this.wrapMaskedError(context?.maskSecrets ?? ((text) => text), error, (text) => new ProvisioningError(`Failed to delete API Gateway Method ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
20339
20343
|
}
|
|
20340
20344
|
}
|
|
20341
20345
|
getMethodAttribute(physicalId, attributeName) {
|
|
@@ -20797,7 +20801,11 @@ var ApiGatewayV2Provider = class {
|
|
|
20797
20801
|
return region ? aws` --region ${region}` : aws``;
|
|
20798
20802
|
}
|
|
20799
20803
|
wrapMaskedError(log, error, build) {
|
|
20800
|
-
|
|
20804
|
+
const failure = describeAwsFailure(error);
|
|
20805
|
+
if (!(error instanceof Error)) return build(log.mask(failure.detail));
|
|
20806
|
+
if (!failure.redacted) return wrapMaskedAwsError(log.mask, error, build);
|
|
20807
|
+
log.debug(build(log.mask(failure.detail)).message);
|
|
20808
|
+
return markRedactedCause(build(`${log.mask(failure.summary)}${relayedNameCollision(failure.detail)}`));
|
|
20801
20809
|
}
|
|
20802
20810
|
async create(logicalId, resourceType, properties, context) {
|
|
20803
20811
|
const log = resourceType === "AWS::ApiGatewayV2::Stage" ? stageSinks(this.logger, context, [[properties["StageName"], properties["StageName"]]]) : createMaskedLogSinks(this.logger, context?.maskSecrets);
|
|
@@ -20929,7 +20937,7 @@ var ApiGatewayV2Provider = class {
|
|
|
20929
20937
|
return;
|
|
20930
20938
|
}
|
|
20931
20939
|
const cause = error instanceof Error ? error : void 0;
|
|
20932
|
-
throw new ProvisioningError(`Failed to delete API Gateway V2 Api ${logicalId}: ${
|
|
20940
|
+
throw this.wrapMaskedError(createMaskedLogSinks(this.logger, context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete API Gateway V2 Api ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
20933
20941
|
}
|
|
20934
20942
|
}
|
|
20935
20943
|
async buildExecuteApiArn(apiId, log = createMaskedLogSinks(this.logger, void 0)) {
|
|
@@ -21000,7 +21008,7 @@ var ApiGatewayV2Provider = class {
|
|
|
21000
21008
|
return;
|
|
21001
21009
|
}
|
|
21002
21010
|
const cause = error instanceof Error ? error : void 0;
|
|
21003
|
-
throw new ProvisioningError(`Failed to delete API Gateway V2 Stage ${logicalId}: ${
|
|
21011
|
+
throw this.wrapMaskedError(createMaskedLogSinks(this.logger, context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete API Gateway V2 Stage ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
21004
21012
|
}
|
|
21005
21013
|
}
|
|
21006
21014
|
getStageAttribute(physicalId, attributeName) {
|
|
@@ -21097,7 +21105,7 @@ var ApiGatewayV2Provider = class {
|
|
|
21097
21105
|
return;
|
|
21098
21106
|
}
|
|
21099
21107
|
const cause = error instanceof Error ? error : void 0;
|
|
21100
|
-
throw new ProvisioningError(`Failed to delete API Gateway V2 Integration ${logicalId}: ${
|
|
21108
|
+
throw this.wrapMaskedError(createMaskedLogSinks(this.logger, context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete API Gateway V2 Integration ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
21101
21109
|
}
|
|
21102
21110
|
}
|
|
21103
21111
|
getIntegrationAttribute(physicalId, attributeName) {
|
|
@@ -21151,7 +21159,7 @@ var ApiGatewayV2Provider = class {
|
|
|
21151
21159
|
return;
|
|
21152
21160
|
}
|
|
21153
21161
|
const cause = error instanceof Error ? error : void 0;
|
|
21154
|
-
throw new ProvisioningError(`Failed to delete API Gateway V2 Route ${logicalId}: ${
|
|
21162
|
+
throw this.wrapMaskedError(createMaskedLogSinks(this.logger, context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete API Gateway V2 Route ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
21155
21163
|
}
|
|
21156
21164
|
}
|
|
21157
21165
|
getRouteAttribute(physicalId, attributeName) {
|
|
@@ -21240,7 +21248,7 @@ var ApiGatewayV2Provider = class {
|
|
|
21240
21248
|
return;
|
|
21241
21249
|
}
|
|
21242
21250
|
const cause = error instanceof Error ? error : void 0;
|
|
21243
|
-
throw new ProvisioningError(`Failed to delete API Gateway V2 Authorizer ${logicalId}: ${
|
|
21251
|
+
throw this.wrapMaskedError(createMaskedLogSinks(this.logger, context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete API Gateway V2 Authorizer ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
21244
21252
|
}
|
|
21245
21253
|
}
|
|
21246
21254
|
getDriftUnknownPaths(resourceType, properties) {
|
|
@@ -34849,6 +34857,13 @@ var GlueWorkflowProvider = class {
|
|
|
34849
34857
|
"MaxConcurrentRuns",
|
|
34850
34858
|
"Tags"
|
|
34851
34859
|
])]]);
|
|
34860
|
+
removalHandledInUpdate = /* @__PURE__ */ new Map([["AWS::Glue::Workflow", /* @__PURE__ */ new Set([
|
|
34861
|
+
"Name",
|
|
34862
|
+
"Description",
|
|
34863
|
+
"DefaultRunProperties",
|
|
34864
|
+
"MaxConcurrentRuns",
|
|
34865
|
+
"Tags"
|
|
34866
|
+
])]]);
|
|
34852
34867
|
getClient() {
|
|
34853
34868
|
if (!this.client) ({client: this.client, createClient: this.createClient} = newGlueClients(this.providerRegion));
|
|
34854
34869
|
return this.client;
|
|
@@ -35947,6 +35962,18 @@ var GlueTriggerProvider = class {
|
|
|
35947
35962
|
"WorkflowName",
|
|
35948
35963
|
"Tags"
|
|
35949
35964
|
])]]);
|
|
35965
|
+
removalHandledInUpdate = /* @__PURE__ */ new Map([["AWS::Glue::Trigger", /* @__PURE__ */ new Set([
|
|
35966
|
+
"Name",
|
|
35967
|
+
"Type",
|
|
35968
|
+
"WorkflowName",
|
|
35969
|
+
"Description",
|
|
35970
|
+
"Schedule",
|
|
35971
|
+
"Actions",
|
|
35972
|
+
"Predicate",
|
|
35973
|
+
"EventBatchingCondition",
|
|
35974
|
+
"StartOnCreation",
|
|
35975
|
+
"Tags"
|
|
35976
|
+
])]]);
|
|
35950
35977
|
getClient() {
|
|
35951
35978
|
if (!this.client) ({client: this.client, createClient: this.createClient} = newGlueClients(this.providerRegion));
|
|
35952
35979
|
return this.client;
|
|
@@ -45142,11 +45169,21 @@ function tableIdentityFromGetTable(tableARN, namespace, name) {
|
|
|
45142
45169
|
name
|
|
45143
45170
|
};
|
|
45144
45171
|
}
|
|
45172
|
+
function sentence(text) {
|
|
45173
|
+
return text.endsWith(".") ? text : `${text}.`;
|
|
45174
|
+
}
|
|
45145
45175
|
var S3TablesProvider = class {
|
|
45146
45176
|
client;
|
|
45147
45177
|
createClient;
|
|
45148
45178
|
providerRegion = ambientRegion();
|
|
45149
45179
|
logger = getLogger().child("S3TablesProvider");
|
|
45180
|
+
wrapCaughtError(mask, error, build) {
|
|
45181
|
+
const failure = describeAwsFailure(error);
|
|
45182
|
+
if (!(error instanceof Error) || !failure.redacted) return build(failure.detail);
|
|
45183
|
+
const m = mask ?? ((text) => text);
|
|
45184
|
+
this.logger.debug(m(build(m(failure.detail)).message));
|
|
45185
|
+
return markRedactedCause(build(`${m(failure.summary)}${relayedNameCollision(failure.detail)}`));
|
|
45186
|
+
}
|
|
45150
45187
|
handledProperties = /* @__PURE__ */ new Map([
|
|
45151
45188
|
["AWS::S3Tables::TableBucket", /* @__PURE__ */ new Set(["TableBucketName", "Tags"])],
|
|
45152
45189
|
["AWS::S3Tables::Namespace", /* @__PURE__ */ new Set(["TableBucketARN", "Namespace"])],
|
|
@@ -45179,7 +45216,7 @@ var S3TablesProvider = class {
|
|
|
45179
45216
|
}
|
|
45180
45217
|
async create(logicalId, resourceType, properties, context) {
|
|
45181
45218
|
switch (resourceType) {
|
|
45182
|
-
case "AWS::S3Tables::TableBucket": return this.createTableBucket(logicalId, resourceType, properties);
|
|
45219
|
+
case "AWS::S3Tables::TableBucket": return this.createTableBucket(logicalId, resourceType, properties, context);
|
|
45183
45220
|
case "AWS::S3Tables::Namespace": return this.createNamespace(logicalId, resourceType, properties, context);
|
|
45184
45221
|
case "AWS::S3Tables::Table": return this.createTable(logicalId, resourceType, properties, context);
|
|
45185
45222
|
default: throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId);
|
|
@@ -45189,16 +45226,16 @@ var S3TablesProvider = class {
|
|
|
45189
45226
|
assertRegionMatch(context?.expectedRegion ? await this.getClient().config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
|
|
45190
45227
|
if (resourceType === "AWS::S3Tables::Table" || resourceType === "AWS::S3Tables::TableBucket") refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
|
|
45191
45228
|
try {
|
|
45192
|
-
return await this.applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties);
|
|
45229
|
+
return await this.applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties, context?.maskSecrets);
|
|
45193
45230
|
} catch (error) {
|
|
45194
45231
|
if (error instanceof CdkdError) throw error;
|
|
45195
45232
|
const cause = error instanceof Error ? error : void 0;
|
|
45196
|
-
throw new ProvisioningError(`Failed to update S3 Tables resource ${logicalId}: ${
|
|
45233
|
+
throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to update S3 Tables resource ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
45197
45234
|
}
|
|
45198
45235
|
}
|
|
45199
|
-
async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties) {
|
|
45200
|
-
if (resourceType === "AWS::S3Tables::Table") await this.applyTableTagsDiff(logicalId, physicalId, resourceType, previousProperties["Tags"], properties["Tags"]);
|
|
45201
|
-
else if (resourceType === "AWS::S3Tables::TableBucket") await this.applyTableBucketTagsDiff(logicalId, physicalId, resourceType, previousProperties["Tags"], properties["Tags"]);
|
|
45236
|
+
async applyUpdate(logicalId, physicalId, resourceType, properties, previousProperties, mask) {
|
|
45237
|
+
if (resourceType === "AWS::S3Tables::Table") await this.applyTableTagsDiff(logicalId, physicalId, resourceType, previousProperties["Tags"], properties["Tags"], mask);
|
|
45238
|
+
else if (resourceType === "AWS::S3Tables::TableBucket") await this.applyTableBucketTagsDiff(logicalId, physicalId, resourceType, previousProperties["Tags"], properties["Tags"], mask);
|
|
45202
45239
|
else this.logger.debug(`Update is no-op for ${resourceType} ${logicalId}`);
|
|
45203
45240
|
return {
|
|
45204
45241
|
physicalId,
|
|
@@ -45214,7 +45251,7 @@ var S3TablesProvider = class {
|
|
|
45214
45251
|
default: throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
|
|
45215
45252
|
}
|
|
45216
45253
|
}
|
|
45217
|
-
async createTableBucket(logicalId, resourceType, properties) {
|
|
45254
|
+
async createTableBucket(logicalId, resourceType, properties, context) {
|
|
45218
45255
|
this.logger.debug(`Creating S3 Table Bucket ${logicalId}`);
|
|
45219
45256
|
const desiredTags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId);
|
|
45220
45257
|
const tableBucketName = properties["TableBucketName"];
|
|
@@ -45232,7 +45269,7 @@ var S3TablesProvider = class {
|
|
|
45232
45269
|
};
|
|
45233
45270
|
} catch (error) {
|
|
45234
45271
|
const cause = error instanceof Error ? error : void 0;
|
|
45235
|
-
throw new ProvisioningError(`Failed to create S3 Table Bucket ${logicalId}: ${
|
|
45272
|
+
throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to create S3 Table Bucket ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
45236
45273
|
}
|
|
45237
45274
|
}
|
|
45238
45275
|
async deleteTableBucket(logicalId, physicalId, resourceType, context) {
|
|
@@ -45249,7 +45286,7 @@ var S3TablesProvider = class {
|
|
|
45249
45286
|
return;
|
|
45250
45287
|
}
|
|
45251
45288
|
const cause = error instanceof Error ? error : void 0;
|
|
45252
|
-
throw new ProvisioningError(`Failed to delete S3 Table Bucket ${logicalId}: ${
|
|
45289
|
+
throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to delete S3 Table Bucket ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
45253
45290
|
}
|
|
45254
45291
|
}
|
|
45255
45292
|
async emptyTableBucket(tableBucketARN) {
|
|
@@ -45329,7 +45366,7 @@ var S3TablesProvider = class {
|
|
|
45329
45366
|
};
|
|
45330
45367
|
} catch (error) {
|
|
45331
45368
|
const cause = error instanceof Error ? error : void 0;
|
|
45332
|
-
throw new ProvisioningError(`Failed to create S3 Tables Namespace ${logicalId}: ${
|
|
45369
|
+
throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to create S3 Tables Namespace ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
45333
45370
|
}
|
|
45334
45371
|
}
|
|
45335
45372
|
async deleteNamespace(logicalId, physicalId, resourceType, context) {
|
|
@@ -45350,7 +45387,7 @@ var S3TablesProvider = class {
|
|
|
45350
45387
|
return;
|
|
45351
45388
|
}
|
|
45352
45389
|
const cause = error instanceof Error ? error : void 0;
|
|
45353
|
-
throw new ProvisioningError(`Failed to delete S3 Tables Namespace ${logicalId}: ${
|
|
45390
|
+
throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to delete S3 Tables Namespace ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
45354
45391
|
}
|
|
45355
45392
|
}
|
|
45356
45393
|
async createTable(logicalId, resourceType, properties, context) {
|
|
@@ -45401,7 +45438,7 @@ var S3TablesProvider = class {
|
|
|
45401
45438
|
};
|
|
45402
45439
|
} catch (error) {
|
|
45403
45440
|
const cause = error instanceof Error ? error : void 0;
|
|
45404
|
-
const thrown = new ProvisioningError(`Failed to create S3 Tables Table ${logicalId}: ${
|
|
45441
|
+
const thrown = this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to create S3 Tables Table ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
45405
45442
|
if (tableCreated) markCreatedBeforeFailure(thrown, logicalId, resourceType, physicalId);
|
|
45406
45443
|
throw thrown;
|
|
45407
45444
|
}
|
|
@@ -45664,7 +45701,7 @@ var S3TablesProvider = class {
|
|
|
45664
45701
|
resolved = await this.resolveTableParts(physicalId);
|
|
45665
45702
|
} catch (error) {
|
|
45666
45703
|
const cause = error instanceof Error ? error : void 0;
|
|
45667
|
-
throw new ProvisioningError(`Failed to resolve S3 Tables Table ${logicalId} (${physicalId}): ${
|
|
45704
|
+
throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to resolve S3 Tables Table ${logicalId} (${physicalId}): ${text}`, resourceType, logicalId, physicalId, cause));
|
|
45668
45705
|
}
|
|
45669
45706
|
if (resolved === "not-found") {
|
|
45670
45707
|
const clientRegion = await this.getClient().config.region();
|
|
@@ -45689,7 +45726,7 @@ var S3TablesProvider = class {
|
|
|
45689
45726
|
return;
|
|
45690
45727
|
}
|
|
45691
45728
|
const cause = error instanceof Error ? error : void 0;
|
|
45692
|
-
throw new ProvisioningError(`Failed to delete S3 Tables Table ${logicalId}: ${
|
|
45729
|
+
throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to delete S3 Tables Table ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
|
|
45693
45730
|
}
|
|
45694
45731
|
}
|
|
45695
45732
|
tagListToSdkMap(tags) {
|
|
@@ -45724,7 +45761,7 @@ var S3TablesProvider = class {
|
|
|
45724
45761
|
return [];
|
|
45725
45762
|
}
|
|
45726
45763
|
}
|
|
45727
|
-
async applyTableTagsDiff(logicalId, physicalId, resourceType, previousTags, newTags) {
|
|
45764
|
+
async applyTableTagsDiff(logicalId, physicalId, resourceType, previousTags, newTags, mask) {
|
|
45728
45765
|
const plan = planTagDiff(previousTags, newTags);
|
|
45729
45766
|
const tagWarning = tagPlanWarning(plan, resourceType, logicalId);
|
|
45730
45767
|
if (tagWarning !== void 0) this.logger.warn(tagWarning);
|
|
@@ -45744,7 +45781,7 @@ var S3TablesProvider = class {
|
|
|
45744
45781
|
}));
|
|
45745
45782
|
} catch (err) {
|
|
45746
45783
|
const cause = err instanceof Error ? err : void 0;
|
|
45747
|
-
throw new ProvisioningError(`applyTableTagsDiff: UntagResource failed for ${resourceArn} (keys: ${removedKeys.join(", ")}): ${
|
|
45784
|
+
throw this.wrapCaughtError(mask, err, (text) => new ProvisioningError(`applyTableTagsDiff: UntagResource failed for ${resourceArn} (keys: ${removedKeys.join(", ")}): ${sentence(text)} State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause));
|
|
45748
45785
|
}
|
|
45749
45786
|
if (Object.keys(upserts).length > 0) try {
|
|
45750
45787
|
await this.getClient().send(new TagResourceCommand$27({
|
|
@@ -45753,10 +45790,10 @@ var S3TablesProvider = class {
|
|
|
45753
45790
|
}));
|
|
45754
45791
|
} catch (err) {
|
|
45755
45792
|
const cause = err instanceof Error ? err : void 0;
|
|
45756
|
-
throw new ProvisioningError(`applyTableTagsDiff: TagResource failed for ${resourceArn} (keys: ${Object.keys(upserts).join(", ")}): ${
|
|
45793
|
+
throw this.wrapCaughtError(mask, err, (text) => new ProvisioningError(`applyTableTagsDiff: TagResource failed for ${resourceArn} (keys: ${Object.keys(upserts).join(", ")}): ${sentence(text)} State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause));
|
|
45757
45794
|
}
|
|
45758
45795
|
}
|
|
45759
|
-
async applyTableBucketTagsDiff(logicalId, physicalId, resourceType, previousTags, newTags) {
|
|
45796
|
+
async applyTableBucketTagsDiff(logicalId, physicalId, resourceType, previousTags, newTags, mask) {
|
|
45760
45797
|
const plan = planTagDiff(previousTags, newTags);
|
|
45761
45798
|
const tagWarning = tagPlanWarning(plan, resourceType, logicalId);
|
|
45762
45799
|
if (tagWarning !== void 0) this.logger.warn(tagWarning);
|
|
@@ -45771,7 +45808,7 @@ var S3TablesProvider = class {
|
|
|
45771
45808
|
}));
|
|
45772
45809
|
} catch (err) {
|
|
45773
45810
|
const cause = err instanceof Error ? err : void 0;
|
|
45774
|
-
throw new ProvisioningError(`applyTableBucketTagsDiff: UntagResource failed for ${resourceArn} (keys: ${removedKeys.join(", ")}): ${
|
|
45811
|
+
throw this.wrapCaughtError(mask, err, (text) => new ProvisioningError(`applyTableBucketTagsDiff: UntagResource failed for ${resourceArn} (keys: ${removedKeys.join(", ")}): ${sentence(text)} State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause));
|
|
45775
45812
|
}
|
|
45776
45813
|
if (Object.keys(upserts).length > 0) try {
|
|
45777
45814
|
await this.getClient().send(new TagResourceCommand$27({
|
|
@@ -45780,7 +45817,7 @@ var S3TablesProvider = class {
|
|
|
45780
45817
|
}));
|
|
45781
45818
|
} catch (err) {
|
|
45782
45819
|
const cause = err instanceof Error ? err : void 0;
|
|
45783
|
-
throw new ProvisioningError(`applyTableBucketTagsDiff: TagResource failed for ${resourceArn} (keys: ${Object.keys(upserts).join(", ")}): ${
|
|
45820
|
+
throw this.wrapCaughtError(mask, err, (text) => new ProvisioningError(`applyTableBucketTagsDiff: TagResource failed for ${resourceArn} (keys: ${Object.keys(upserts).join(", ")}): ${sentence(text)} State has NOT been updated so the next deploy will retry the tag-diff.`, resourceType, logicalId, physicalId, cause));
|
|
45784
45821
|
}
|
|
45785
45822
|
}
|
|
45786
45823
|
};
|
|
@@ -46833,4 +46870,4 @@ var ACMCertificateProvider = class {
|
|
|
46833
46870
|
|
|
46834
46871
|
//#endregion
|
|
46835
46872
|
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 };
|
|
46836
|
-
//# sourceMappingURL=provider-classes-
|
|
46873
|
+
//# sourceMappingURL=provider-classes-D41TJi4B.js.map
|