@go-to-k/cdkd 0.301.9 → 0.301.10

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.
@@ -2,12 +2,12 @@ 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
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, 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-BN6g5voc.js";
6
- import { n as collectInlinePolicyNamesManagedBySiblings, r as IamCreateClientCache, t as IAMRoleProvider } from "./iam-role-provider-ox_QAXCb.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-bNAjgmlg.js";
8
- import { RDSProvider } from "./rds-provider-iwtmIiPb.js";
9
- import { NeptuneProvider } from "./neptune-provider-Dq6PuG9E.js";
10
- import { ASGProvider } from "./asg-provider-BsUcTrJN.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, 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-BOHXbSq5.js";
6
+ import { n as collectInlinePolicyNamesManagedBySiblings, r as IamCreateClientCache, t as IAMRoleProvider } from "./iam-role-provider-3CUpHJfg.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-BGo747Co.js";
8
+ import { RDSProvider } from "./rds-provider-CaPSidBQ.js";
9
+ import { NeptuneProvider } from "./neptune-provider-U_LOS8jM.js";
10
+ import { ASGProvider } from "./asg-provider-BEProOyz.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";
@@ -32584,7 +32584,7 @@ var AppSyncProvider = class {
32584
32584
  async create(logicalId, resourceType, properties, context) {
32585
32585
  switch (resourceType) {
32586
32586
  case "AWS::AppSync::GraphQLApi": return this.createGraphQLApi(logicalId, resourceType, properties, context);
32587
- case "AWS::AppSync::GraphQLSchema": return this.createGraphQLSchema(logicalId, resourceType, properties);
32587
+ case "AWS::AppSync::GraphQLSchema": return this.createGraphQLSchema(logicalId, resourceType, properties, context);
32588
32588
  case "AWS::AppSync::DataSource": return this.createDataSource(logicalId, resourceType, properties, context);
32589
32589
  case "AWS::AppSync::Resolver": return this.createResolver(logicalId, resourceType, properties, context);
32590
32590
  case "AWS::AppSync::ApiKey": return this.createApiKey(logicalId, resourceType, properties, context);
@@ -32594,7 +32594,7 @@ var AppSyncProvider = class {
32594
32594
  async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
32595
32595
  switch (resourceType) {
32596
32596
  case "AWS::AppSync::GraphQLApi": return this.updateGraphQLApi(logicalId, physicalId, resourceType, properties, previousProperties, context);
32597
- case "AWS::AppSync::GraphQLSchema": return this.updateGraphQLSchema(logicalId, physicalId, resourceType, properties, previousProperties);
32597
+ case "AWS::AppSync::GraphQLSchema": return this.updateGraphQLSchema(logicalId, physicalId, resourceType, properties, previousProperties, maskerOrIdentity(context?.maskSecrets));
32598
32598
  case "AWS::AppSync::DataSource": return this.updateDataSource(logicalId, physicalId, resourceType, properties, previousProperties, maskerOrIdentity(context?.maskSecrets));
32599
32599
  case "AWS::AppSync::Resolver": return this.updateResolver(logicalId, physicalId, resourceType, properties, previousProperties, maskerOrIdentity(context?.maskSecrets));
32600
32600
  case "AWS::AppSync::ApiKey": return this.updateApiKey(logicalId, physicalId, resourceType, properties, previousProperties, maskerOrIdentity(context?.maskSecrets));
@@ -32698,14 +32698,14 @@ var AppSyncProvider = class {
32698
32698
  }
32699
32699
  }
32700
32700
  const envRecord = await this.applyEnvironmentVariables(physicalId, resourceType, logicalId, properties, previousProperties, false, maskerOrIdentity(context?.maskSecrets));
32701
- await this.applyTagDiff(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"]);
32701
+ await this.applyTagDiff(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"], maskerOrIdentity(context?.maskSecrets));
32702
32702
  return {
32703
32703
  physicalId,
32704
32704
  wasReplaced: false,
32705
32705
  ...envRecord && { effectiveProperties: this.withEnvironmentVariablesRecord(properties, envRecord) }
32706
32706
  };
32707
32707
  }
32708
- async updateGraphQLSchema(logicalId, physicalId, resourceType, properties, previousProperties) {
32708
+ async updateGraphQLSchema(logicalId, physicalId, resourceType, properties, previousProperties, mask = maskerOrIdentity(void 0)) {
32709
32709
  const newDef = properties["Definition"];
32710
32710
  const oldDef = previousProperties["Definition"];
32711
32711
  const newLoc = properties["DefinitionS3Location"];
@@ -32723,7 +32723,7 @@ var AppSyncProvider = class {
32723
32723
  physicalId,
32724
32724
  wasReplaced: false
32725
32725
  };
32726
- definition = await this.fetchS3LocationBody(newLoc, resourceType, logicalId, "DefinitionS3Location");
32726
+ definition = await this.fetchS3LocationBody(newLoc, resourceType, logicalId, "DefinitionS3Location", mask);
32727
32727
  } else return {
32728
32728
  physicalId,
32729
32729
  wasReplaced: false
@@ -32735,7 +32735,7 @@ var AppSyncProvider = class {
32735
32735
  definition: Buffer.from(definition, "utf-8")
32736
32736
  }));
32737
32737
  } catch (error) {
32738
- throw this.wrapUpdateError(error, resourceType, logicalId, physicalId, "GraphqlSchema");
32738
+ throw this.wrapUpdateError(error, resourceType, logicalId, physicalId, "GraphqlSchema", mask);
32739
32739
  }
32740
32740
  return {
32741
32741
  physicalId,
@@ -32829,7 +32829,7 @@ var AppSyncProvider = class {
32829
32829
  typeName,
32830
32830
  fieldName
32831
32831
  };
32832
- await this.applyResolverConfig(input, resourceType, logicalId, properties, previousProperties, true);
32832
+ await this.applyResolverConfig(input, resourceType, logicalId, properties, previousProperties, true, mask);
32833
32833
  try {
32834
32834
  await this.getClient().send(new UpdateResolverCommand(input));
32835
32835
  } catch (error) {
@@ -32865,7 +32865,7 @@ var AppSyncProvider = class {
32865
32865
  }
32866
32866
  return this.childUpdateResult(resourceType, physicalId, mask);
32867
32867
  }
32868
- async applyTagDiff(apiId, resourceType, logicalId, oldTagsRaw, newTagsRaw) {
32868
+ async applyTagDiff(apiId, resourceType, logicalId, oldTagsRaw, newTagsRaw, mask = maskerOrIdentity(void 0)) {
32869
32869
  const plan = planTagDiff(oldTagsRaw, newTagsRaw);
32870
32870
  const tagWarning = tagPlanWarning(plan, resourceType, logicalId);
32871
32871
  if (tagWarning !== void 0) this.logger.warn(tagWarning);
@@ -32875,7 +32875,7 @@ var AppSyncProvider = class {
32875
32875
  try {
32876
32876
  arn = (await this.getClient().send(new GetGraphqlApiCommand({ apiId }))).graphqlApi?.arn;
32877
32877
  } catch (error) {
32878
- throw this.wrapUpdateError(error, resourceType, logicalId, apiId, "GraphqlApi");
32878
+ throw this.wrapUpdateError(error, resourceType, logicalId, apiId, "GraphqlApi", mask);
32879
32879
  }
32880
32880
  if (!arn) throw new ProvisioningError(`Could not resolve ARN for AppSync GraphqlApi ${apiId} to apply tags diff`, resourceType, logicalId, apiId);
32881
32881
  this.arnCache.set(apiId, arn);
@@ -32888,7 +32888,7 @@ var AppSyncProvider = class {
32888
32888
  tagKeys: tagKeysToRemove
32889
32889
  }));
32890
32890
  } catch (error) {
32891
- throw this.wrapUpdateError(error, resourceType, logicalId, apiId, "GraphqlApi (untag)");
32891
+ throw this.wrapUpdateError(error, resourceType, logicalId, apiId, "GraphqlApi (untag)", mask);
32892
32892
  }
32893
32893
  if (Object.keys(tagsToAdd).length > 0) try {
32894
32894
  await this.getClient().send(new TagResourceCommand$17({
@@ -32896,12 +32896,24 @@ var AppSyncProvider = class {
32896
32896
  tags: tagsToAdd
32897
32897
  }));
32898
32898
  } catch (error) {
32899
- throw this.wrapUpdateError(error, resourceType, logicalId, apiId, "GraphqlApi (tag)");
32899
+ throw this.wrapUpdateError(error, resourceType, logicalId, apiId, "GraphqlApi (tag)", mask);
32900
32900
  }
32901
32901
  }
32902
32902
  wrapUpdateError(error, resourceType, logicalId, physicalId, subType, mask = maskerOrIdentity(void 0)) {
32903
32903
  const cause = error instanceof Error ? error : void 0;
32904
- return wrapMaskedAwsError(mask, error, (text) => new ProvisioningError(`Failed to update AppSync ${subType} ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
32904
+ const build = (text) => new ProvisioningError(`Failed to update AppSync ${subType} ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause);
32905
+ const failure = describeAwsFailure(error);
32906
+ if (error instanceof Error && failure.redacted) return this.withheldAwsFailure(mask, failure.detail, failure.summary, build);
32907
+ return wrapMaskedAwsError(mask, error, build);
32908
+ }
32909
+ wrapCaughtError(mask, error, build) {
32910
+ const failure = describeAwsFailure(error);
32911
+ if (!(error instanceof Error) || !failure.redacted) return build(failure.detail);
32912
+ return this.withheldAwsFailure(mask, failure.detail, failure.summary, build);
32913
+ }
32914
+ withheldAwsFailure(mask, detail, summary, build) {
32915
+ this.logger.debug(mask(build(mask(detail)).message));
32916
+ return markRedactedCause(build(`${mask(summary)}${relayedNameCollision(detail)}`));
32905
32917
  }
32906
32918
  async delete(logicalId, physicalId, resourceType, _properties, context) {
32907
32919
  switch (resourceType) {
@@ -33130,7 +33142,7 @@ var AppSyncProvider = class {
33130
33142
  environmentVariables
33131
33143
  }));
33132
33144
  } catch (error) {
33133
- throw this.wrapUpdateError(error, resourceType, logicalId, apiId, isUpdate ? "GraphqlApi (env vars)" : "GraphqlApi (env vars, post-create)");
33145
+ throw this.wrapUpdateError(error, resourceType, logicalId, apiId, isUpdate ? "GraphqlApi (env vars)" : "GraphqlApi (env vars, post-create)", mask);
33134
33146
  }
33135
33147
  return narrowed;
33136
33148
  }
@@ -33172,7 +33184,7 @@ var AppSyncProvider = class {
33172
33184
  key: match[2]
33173
33185
  };
33174
33186
  }
33175
- async fetchS3LocationBody(location, resourceType, logicalId, propertyPath) {
33187
+ async fetchS3LocationBody(location, resourceType, logicalId, propertyPath, mask = maskerOrIdentity(void 0)) {
33176
33188
  const { bucket, key } = this.parseS3LocationUrl(location, resourceType, logicalId, propertyPath);
33177
33189
  this.logger.debug(`Fetching ${propertyPath} for ${logicalId} from s3://${bucket}/${key}`);
33178
33190
  let body;
@@ -33185,19 +33197,20 @@ var AppSyncProvider = class {
33185
33197
  body = await resp.Body.transformToString();
33186
33198
  } catch (error) {
33187
33199
  if (error instanceof ProvisioningError) throw error;
33188
- 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);
33200
+ const cause = error instanceof Error ? error : void 0;
33201
+ throw this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to fetch ${propertyPath} s3://${bucket}/${key} for ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
33189
33202
  }
33190
33203
  if (body.length === 0) throw new ProvisioningError(`${propertyPath} object s3://${bucket}/${key} returned an empty body`, resourceType, logicalId);
33191
33204
  return body;
33192
33205
  }
33193
- async resolveInlineOrS3Template(inline, s3Location, inlineKey, s3Key, resourceType, logicalId) {
33206
+ async resolveInlineOrS3Template(inline, s3Location, inlineKey, s3Key, resourceType, logicalId, mask = maskerOrIdentity(void 0)) {
33194
33207
  if (inline !== void 0) {
33195
33208
  if (s3Location !== void 0) this.logger.warn(`${resourceType} ${logicalId}: both ${inlineKey} and ${s3Key} are set — using the inline ${inlineKey} and ignoring ${s3Key} (CFn treats them as alternatives)`);
33196
33209
  return inline;
33197
33210
  }
33198
- if (s3Location !== void 0) return this.fetchS3LocationBody(s3Location, resourceType, logicalId, s3Key);
33211
+ if (s3Location !== void 0) return this.fetchS3LocationBody(s3Location, resourceType, logicalId, s3Key, mask);
33199
33212
  }
33200
- async applyResolverConfig(input, resourceType, logicalId, properties, previousProperties, forUpdate = false) {
33213
+ async applyResolverConfig(input, resourceType, logicalId, properties, previousProperties, forUpdate = false, mask = maskerOrIdentity(void 0)) {
33201
33214
  const effectiveKind = properties["Kind"] ?? previousProperties?.["Kind"] ?? "UNIT";
33202
33215
  if ((!forUpdate || effectiveKind === "UNIT") && properties["DataSourceName"] !== void 0) input.dataSourceName = properties["DataSourceName"];
33203
33216
  if (properties["Kind"] !== void 0) input.kind = properties["Kind"];
@@ -33209,11 +33222,11 @@ var AppSyncProvider = class {
33209
33222
  runtimeVersion: runtime["RuntimeVersion"]
33210
33223
  };
33211
33224
  }
33212
- const requestTemplate = await this.resolveInlineOrS3Template(properties["RequestMappingTemplate"], properties["RequestMappingTemplateS3Location"], "RequestMappingTemplate", "RequestMappingTemplateS3Location", resourceType, logicalId);
33225
+ const requestTemplate = await this.resolveInlineOrS3Template(properties["RequestMappingTemplate"], properties["RequestMappingTemplateS3Location"], "RequestMappingTemplate", "RequestMappingTemplateS3Location", resourceType, logicalId, mask);
33213
33226
  if (requestTemplate !== void 0) input.requestMappingTemplate = requestTemplate;
33214
- const responseTemplate = await this.resolveInlineOrS3Template(properties["ResponseMappingTemplate"], properties["ResponseMappingTemplateS3Location"], "ResponseMappingTemplate", "ResponseMappingTemplateS3Location", resourceType, logicalId);
33227
+ const responseTemplate = await this.resolveInlineOrS3Template(properties["ResponseMappingTemplate"], properties["ResponseMappingTemplateS3Location"], "ResponseMappingTemplate", "ResponseMappingTemplateS3Location", resourceType, logicalId, mask);
33215
33228
  if (responseTemplate !== void 0) input.responseMappingTemplate = responseTemplate;
33216
- const code = await this.resolveInlineOrS3Template(properties["Code"], properties["CodeS3Location"], "Code", "CodeS3Location", resourceType, logicalId);
33229
+ const code = await this.resolveInlineOrS3Template(properties["Code"], properties["CodeS3Location"], "Code", "CodeS3Location", resourceType, logicalId, mask);
33217
33230
  if (code !== void 0) input.code = code;
33218
33231
  const caching = this.toSdkCachingConfig(properties["CachingConfig"], logicalId);
33219
33232
  if (caching) input.cachingConfig = caching;
@@ -33360,7 +33373,7 @@ var AppSyncProvider = class {
33360
33373
  }
33361
33374
  }
33362
33375
  const cause = error instanceof Error ? error : void 0;
33363
- const thrown = new ProvisioningError(`Failed to create GraphQL API ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
33376
+ const thrown = this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to create GraphQL API ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
33364
33377
  if (apiLeftBehind && createdApiId) {
33365
33378
  markCreatedBeforeFailure(thrown, logicalId, resourceType, createdApiId);
33366
33379
  markNonRetryable(thrown);
@@ -33429,10 +33442,10 @@ var AppSyncProvider = class {
33429
33442
  return;
33430
33443
  }
33431
33444
  const cause = error instanceof Error ? error : void 0;
33432
- throw new ProvisioningError(`Failed to delete GraphQL API ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
33445
+ throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete GraphQL API ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
33433
33446
  }
33434
33447
  }
33435
- async createGraphQLSchema(logicalId, resourceType, properties) {
33448
+ async createGraphQLSchema(logicalId, resourceType, properties, context) {
33436
33449
  this.logger.debug(`Creating GraphQL Schema ${logicalId}`);
33437
33450
  const apiId = properties["ApiId"];
33438
33451
  if (!apiId) throw new ProvisioningError(`ApiId is required for GraphQLSchema ${logicalId}`, resourceType, logicalId);
@@ -33446,7 +33459,7 @@ var AppSyncProvider = class {
33446
33459
  definition: new TextEncoder().encode(definition)
33447
33460
  }));
33448
33461
  } else if (definitionS3Location !== void 0) {
33449
- const body = await this.fetchS3LocationBody(definitionS3Location, resourceType, logicalId, "DefinitionS3Location");
33462
+ const body = await this.fetchS3LocationBody(definitionS3Location, resourceType, logicalId, "DefinitionS3Location", maskerOrIdentity(context?.maskSecrets));
33450
33463
  await this.getClient().send(new StartSchemaCreationCommand({
33451
33464
  apiId,
33452
33465
  definition: new TextEncoder().encode(body)
@@ -33459,7 +33472,7 @@ var AppSyncProvider = class {
33459
33472
  };
33460
33473
  } catch (error) {
33461
33474
  const cause = error instanceof Error ? error : void 0;
33462
- throw new ProvisioningError(`Failed to create GraphQL Schema ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
33475
+ throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to create GraphQL Schema ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
33463
33476
  }
33464
33477
  }
33465
33478
  async createDataSource(logicalId, resourceType, properties, context) {
@@ -33490,7 +33503,7 @@ var AppSyncProvider = class {
33490
33503
  this.logger.debug(`Successfully created DataSource ${logicalId}: ${physicalId}`);
33491
33504
  } catch (error) {
33492
33505
  const cause = error instanceof Error ? error : void 0;
33493
- throw new ProvisioningError(`Failed to create DataSource ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
33506
+ throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to create DataSource ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
33494
33507
  }
33495
33508
  const dataSourceArn = reportedArn ?? await this.buildAppSyncArnOrWarn(`apis/${apiId}/datasources/${name}`, logicalId, physicalId);
33496
33509
  return {
@@ -33522,7 +33535,7 @@ var AppSyncProvider = class {
33522
33535
  return;
33523
33536
  }
33524
33537
  const cause = error instanceof Error ? error : void 0;
33525
- throw new ProvisioningError(`Failed to delete DataSource ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
33538
+ throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete DataSource ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
33526
33539
  }
33527
33540
  }
33528
33541
  async createResolver(logicalId, resourceType, properties, context) {
@@ -33555,12 +33568,12 @@ var AppSyncProvider = class {
33555
33568
  typeName,
33556
33569
  fieldName
33557
33570
  };
33558
- await this.applyResolverConfig(input, resourceType, logicalId, properties);
33571
+ await this.applyResolverConfig(input, resourceType, logicalId, properties, void 0, false, maskerOrIdentity(context?.maskSecrets));
33559
33572
  reportedArn = (await this.getClient().send(new CreateResolverCommand(input))).resolver?.resolverArn;
33560
33573
  this.logger.debug(`Successfully created Resolver ${logicalId}: ${physicalId}`);
33561
33574
  } catch (error) {
33562
33575
  const cause = error instanceof Error ? error : void 0;
33563
- throw new ProvisioningError(`Failed to create Resolver ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
33576
+ throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to create Resolver ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
33564
33577
  }
33565
33578
  const resolverArn = reportedArn ?? await this.buildAppSyncArnOrWarn(`apis/${apiId}/types/${typeName}/resolvers/${fieldName}`, logicalId, physicalId);
33566
33579
  return {
@@ -33591,7 +33604,7 @@ var AppSyncProvider = class {
33591
33604
  return;
33592
33605
  }
33593
33606
  const cause = error instanceof Error ? error : void 0;
33594
- throw new ProvisioningError(`Failed to delete Resolver ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
33607
+ throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete Resolver ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
33595
33608
  }
33596
33609
  }
33597
33610
  async createApiKey(logicalId, resourceType, properties, context) {
@@ -33620,7 +33633,7 @@ var AppSyncProvider = class {
33620
33633
  this.logger.debug(`Successfully created ApiKey ${logicalId}: ${apiKeyId}`);
33621
33634
  } catch (error) {
33622
33635
  const cause = error instanceof Error ? error : void 0;
33623
- throw new ProvisioningError(`Failed to create ApiKey ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, void 0, cause);
33636
+ throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to create ApiKey ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
33624
33637
  }
33625
33638
  const physicalId = packCompositeId(resourceType, logicalId, [{
33626
33639
  name: "apiId",
@@ -33687,7 +33700,7 @@ var AppSyncProvider = class {
33687
33700
  return;
33688
33701
  }
33689
33702
  const cause = error instanceof Error ? error : void 0;
33690
- throw new ProvisioningError(`Failed to delete ApiKey ${logicalId}: ${describeAwsFailure(error).detail}`, resourceType, logicalId, physicalId, cause);
33703
+ throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete ApiKey ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
33691
33704
  }
33692
33705
  }
33693
33706
  isNotFoundError(error) {
@@ -46943,4 +46956,4 @@ var ACMCertificateProvider = class {
46943
46956
 
46944
46957
  //#endregion
46945
46958
  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 };
46946
- //# sourceMappingURL=provider-classes-Dbw16dmt.js.map
46959
+ //# sourceMappingURL=provider-classes-B9XBsEl1.js.map