@cdkd/cli 0.373.1 → 0.373.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.
- package/dist/{ambient-client-defaults-BLKND30a.js → ambient-client-defaults-ChOenyD2.js} +18 -4
- package/dist/ambient-client-defaults-ChOenyD2.js.map +1 -0
- package/dist/{asg-provider-DXL1CE4m.js → asg-provider-Bfinx42n.js} +8 -8
- package/dist/{asg-provider-DXL1CE4m.js.map → asg-provider-Bfinx42n.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{replacement-rules-BkUZIP44.js → created-resource-sink-D7iM5jwM.js} +1394 -1474
- package/dist/created-resource-sink-D7iM5jwM.js.map +1 -0
- package/dist/{custom-resource-runtime-DK4-5kRC.js → custom-resource-runtime-9fjsDVrs.js} +6 -6
- package/dist/{custom-resource-runtime-DK4-5kRC.js.map → custom-resource-runtime-9fjsDVrs.js.map} +1 -1
- package/dist/{db-associated-roles-zv71gI1O.js → db-associated-roles-Bn8HCQ2r.js} +2 -2
- package/dist/{db-associated-roles-zv71gI1O.js.map → db-associated-roles-Bn8HCQ2r.js.map} +1 -1
- package/dist/{delete-started-E38sSyUX.js → delete-started-CiTP5c3_.js} +4 -4
- package/dist/{delete-started-E38sSyUX.js.map → delete-started-CiTP5c3_.js.map} +1 -1
- package/dist/{deploy-engine-BDueF79_.js → deploy-engine-D7Iv9v8e.js} +3573 -2888
- package/dist/deploy-engine-D7Iv9v8e.js.map +1 -0
- package/dist/{ec2-termination-protection-DI-aPxET.js → ec2-termination-protection-BXy91mrW.js} +3 -3
- package/dist/{ec2-termination-protection-DI-aPxET.js.map → ec2-termination-protection-BXy91mrW.js.map} +1 -1
- package/dist/{ecr-uri-kW_K5U02.js → ecr-uri-DUDwEekn.js} +2 -2
- package/dist/{ecr-uri-kW_K5U02.js.map → ecr-uri-DUDwEekn.js.map} +1 -1
- package/dist/{emr-cluster-provider-BcqnxYsN.js → emr-cluster-provider-MokUAEGh.js} +11 -11
- package/dist/emr-cluster-provider-MokUAEGh.js.map +1 -0
- package/dist/{expected-bucket-owner-j5BCLzAB.js → expected-bucket-owner-BrzB1C4p.js} +2 -2
- package/dist/{expected-bucket-owner-j5BCLzAB.js.map → expected-bucket-owner-BrzB1C4p.js.map} +1 -1
- package/dist/{iam-role-provider-BlUbRjQo.js → iam-role-provider-CB--BYVm.js} +12 -12
- package/dist/{iam-role-provider-BlUbRjQo.js.map → iam-role-provider-CB--BYVm.js.map} +1 -1
- package/dist/{identity-read-denied-BhnkMyxk.js → identity-read-denied-CoeMBkCz.js} +5 -6
- package/dist/identity-read-denied-CoeMBkCz.js.map +1 -0
- package/dist/{image-plan-CUvO0Qe2.js → image-plan-RNp8hqc4.js} +8 -8
- package/dist/{image-plan-CUvO0Qe2.js.map → image-plan-RNp8hqc4.js.map} +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-B673mhBe.js → logger-Bfz63gW5.js} +2 -2
- package/dist/{logger-B673mhBe.js.map → logger-Bfz63gW5.js.map} +1 -1
- package/dist/{neptune-provider-BOIjF_i3.js → neptune-provider-BFwovty1.js} +9 -9
- package/dist/{neptune-provider-BOIjF_i3.js.map → neptune-provider-BFwovty1.js.map} +1 -1
- package/dist/{program-avOxa_7W.js → program-DR3X8-7x.js} +563 -233
- package/dist/program-DR3X8-7x.js.map +1 -0
- package/dist/{provider-classes-BMrkl7zN.js → provider-classes-BNZGFwNO.js} +375 -129
- package/dist/provider-classes-BNZGFwNO.js.map +1 -0
- package/dist/{rds-provider-DD8ka8NG.js → rds-provider-evebINWq.js} +13 -13
- package/dist/{rds-provider-DD8ka8NG.js.map → rds-provider-evebINWq.js.map} +1 -1
- package/dist/{read-replica-Ddvkib9A.js → read-replica-BGoRAh10.js} +3 -3
- package/dist/{read-replica-Ddvkib9A.js.map → read-replica-BGoRAh10.js.map} +1 -1
- package/dist/{redacted-delete-address-CkcTwr-O.js → redacted-delete-address-rTL8ikg4.js} +5 -5
- package/dist/redacted-delete-address-rTL8ikg4.js.map +1 -0
- package/dist/replacement-rules-roVU6gYR.js +1967 -0
- package/dist/replacement-rules-roVU6gYR.js.map +1 -0
- package/dist/{resource-deadline-B2z0yyKo.js → resource-deadline-B4Rp-3f7.js} +2 -2
- package/dist/{resource-deadline-B2z0yyKo.js.map → resource-deadline-B4Rp-3f7.js.map} +1 -1
- package/dist/{restore-source-guard-1UD7ucv5.js → restore-source-guard-Dz_vQPiM.js} +5 -5
- package/dist/restore-source-guard-Dz_vQPiM.js.map +1 -0
- package/dist/{run-cli-Dm2l-FUd.js → run-cli-vKsR6JeT.js} +2 -2
- package/dist/{run-cli-Dm2l-FUd.js.map → run-cli-vKsR6JeT.js.map} +1 -1
- package/dist/{secret-reference-immutable-Bk60ZfqH.js → secret-reference-immutable-BF02Wobz.js} +108 -10
- package/dist/{secret-reference-immutable-Bk60ZfqH.js.map → secret-reference-immutable-BF02Wobz.js.map} +1 -1
- package/dist/{settle-own-write-members-YQxWAEvB.js → settle-own-write-members-CF-RPYMD.js} +10 -10
- package/dist/{settle-own-write-members-YQxWAEvB.js.map → settle-own-write-members-CF-RPYMD.js.map} +1 -1
- package/dist/{tag-list-C8pMq_W3.js → tag-list-DbmXev9Z.js} +4 -4
- package/dist/{tag-list-C8pMq_W3.js.map → tag-list-DbmXev9Z.js.map} +1 -1
- package/dist/{version-D2qdiEuf.js → version-CP9RYTCy.js} +2 -2
- package/dist/{version-D2qdiEuf.js.map → version-CP9RYTCy.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ambient-client-defaults-BLKND30a.js.map +0 -1
- package/dist/created-resource-sink-DlVo2nqB.js +0 -1397
- package/dist/created-resource-sink-DlVo2nqB.js.map +0 -1
- package/dist/deploy-engine-BDueF79_.js.map +0 -1
- package/dist/emr-cluster-provider-BcqnxYsN.js.map +0 -1
- package/dist/identity-read-denied-BhnkMyxk.js.map +0 -1
- package/dist/program-avOxa_7W.js.map +0 -1
- package/dist/provider-classes-BMrkl7zN.js.map +0 -1
- package/dist/redacted-delete-address-CkcTwr-O.js.map +0 -1
- package/dist/replacement-rules-BkUZIP44.js.map +0 -1
- package/dist/restore-source-guard-1UD7ucv5.js.map +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { _ as verifyOwnIdentityBeforeUpdate, a as stackOwnHolders, b as isEntityAlreadyExists, c as clearOwnWriteRemovals, d as takeOwnWriteRemovals, f as InlinePolicyPrincipalMismatchError, g as verifyInlinePolicyPrincipals, h as compareMembershipWrites, i as isStackOwnHolder, l as recordOwnWriteRemoval, m as assertInlinePolicyAttachTargets, n as collectInlinePolicyNamesManagedBySiblings, o as planInlinePolicyNames, p as MANAGED_POLICY_OWNER, r as heldText, s as sameInlinePolicyName, t as IAMRoleProvider, u as restoreOwnWriteRemovals, v as deferIamPropagationSettle, x as IamCreateClientCache, y as iamEntityLeftByThisCreate } from "./iam-role-provider-
|
|
2
|
-
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-
|
|
1
|
+
import { _ as verifyOwnIdentityBeforeUpdate, a as stackOwnHolders, b as isEntityAlreadyExists, c as clearOwnWriteRemovals, d as takeOwnWriteRemovals, f as InlinePolicyPrincipalMismatchError, g as verifyInlinePolicyPrincipals, h as compareMembershipWrites, i as isStackOwnHolder, l as recordOwnWriteRemoval, m as assertInlinePolicyAttachTargets, n as collectInlinePolicyNamesManagedBySiblings, o as planInlinePolicyNames, p as MANAGED_POLICY_OWNER, r as heldText, s as sameInlinePolicyName, t as IAMRoleProvider, u as restoreOwnWriteRemovals, v as deferIamPropagationSettle, x as IamCreateClientCache, y as iamEntityLeftByThisCreate } from "./iam-role-provider-CB--BYVm.js";
|
|
2
|
+
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-Bfz63gW5.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as
|
|
5
|
-
import { $ as ElapsedBudget, A as readNameProperty, B as rdsFamilyProtectionSite, C as VALUE_NOT_SHOWN, Ct as startInterruptWatch, D as isQuotableImportValue, Dt as compositeIdSkipResult, E as isPlainImportValue, Et as compositeIdSeparatorRefusal, F as markNotGone, Ft as isSecretDerivedValue, Gt as isAuxiliaryFailure, H as userPoolProtectionSite, It as maskDeep, Jt as markCreatedBeforeFailure, K as isProceedDbStatus, L as deleteWithProtectionCompensation, Lt as maskerOrIdentity, M as remedyLogicalId, Mt as stateOrphanRecordRemedy, N as resolveExplicitPhysicalId, Nt as createMaskedLogSinks, O as normalizeAwsTagsToCfn, Ot as logicalIdShown, Pt as createMaskedRetryLogger, R as logGroupProtectionSite, Rt as withDerivedNameMasks, S as holderRefusalRun, St as isInterruptedWaitError, T as isPlainImportJson, Tt as compositeIdFormatMessage, U as PROTECTION_FLIP_RETRY_WAIT_MS, Vt as clearCreatedBeforeFailure, W as deleteAfterProtectionFlipWithFinalSnapshot, X as isTerminalDeleteFailure, Y as ProtectionFlipRegistry, Yt as markSupersedesEarlierCreate, Z as protectionFlipKey, _ as withoutServerErrorRetries, _t as recordedPrincipalsRepair, at as isAwsCliLiteral, b as assertRegionMatch, c as AmbiguousCreateLatch, ct as renderDisableCommand, d as ambiguousAttemptLead,
|
|
6
|
-
import { A as displayStackName, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-
|
|
7
|
-
import { S as isoTimestampAttribute, a as lookupEachName, c as RecordedIdentityMismatchError, g as identityTimestamp, i as isAccessDeniedError, l as assertRecordedIdentity, n as isPermissionDenial, o as withApiLimit, p as recordedIdentityId, r as chunks, s as RecordedIdentityError, t as deniedIdentityReadRefusal } from "./identity-read-denied-
|
|
8
|
-
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-
|
|
9
|
-
import { $ as effectiveInventoryItem, A as withRecordedCidrSpelling, B as LIFECYCLE_DEFAULT_STATUS, C as securityGroupReadbackDelays, D as stackIngressRuleHolder, E as singleSecurityGroupRuleId, F as clearLifecycleWritesOf, G as canonicalizeItemList, H as LIFECYCLE_RULE_PATH, I as lifecycleSettleTarget, J as lifecycleUsesFilterForm, K as effectiveLifecycleConfiguration, L as recordLifecycleWrite, M as sgRemovalRuleKey, N as sgRuleListMember, O as survivingRecordOfRuleId, P as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, Q as effectiveIntelligentTieringItem, R as settleLifecycleRead, S as reconcileSgRules, T as sgRuleKey, U as LIFECYCLE_TAG_FILTERS_PATH, V as LIFECYCLE_FILTER_PATH, W as canonicalizeBlock, X as EVENTBRIDGE_CONFIG_PATH, Y as parseCfnTimestamp, Z as effectiveAnalyticsItem, _ as ingressRuleIdentity, a as refuseRevertRevokingSiblingRules, at as declaresBucketObjectLock, b as isResendableSocketFailure, c as siblingIdOwnedSgRules, ct as isPlainObject$4, d as authorizeDefinitelyNotApplied, dt as shownLifecycleRuleId, et as effectiveNotificationConfiguration, f as canonicalizeSgInlineRuleProtocols, g as flattenIpPermissions, h as descriptionKey, i as resolveSecretDerivedPrincipals, it as configItemId, j as markCopiesAgreed, k as tagListsMatch, l as SG_READBACK_RETRY_DELAY_MS, lt as manualBucketDeletionClause, m as comparableIngressIdentity, n as holdsUnprovenSecretPrincipalToken, nt as caughtErrorName, o as sgRuleDiffKey, ot as declaresNestedObjectLock, p as canonicalizeSgRuleProtocol, q as lifecycleRuleScope, r as isResolvableSecretPrincipalList, rt as coerceCfnNumber, s as readSgIngressById, st as describeValue$1, t as runDestroyForStack, tt as eventBridgeEnabledOf, u as SG_RULE_PAGE_SIZE, ut as mergeLegacySingular, v as isConnectTimeout, w as securityGroupRuleMatchesCfnIngress, x as narrowIngressIpProtocol, y as isDefaultEgressRule, z as takeLifecycleWrite } from "./program-
|
|
10
|
-
import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-
|
|
11
|
-
import { $ as
|
|
12
|
-
import { a as refuseMalformedDesiredTags, i as readTagList, n as DBPROXY_TAG_OPTIONS, o as tagMapAsList, r as planTagDiff, s as tagPlanWarning, t as DBPROXY_TAGS_WHAT } from "./tag-list-
|
|
13
|
-
import { _ as isUsableAttemptedName, c as definedAttributes, d as awaitDeferredResource, h as throwIfReadinessAborted, i as refuseRestoreFromItself, l as stringifyIfAssigned, m as deferReadiness, o as isModifyNotAvailableRefusal, s as modifyDbInstanceWhenAvailable, u as abortableSleep } from "./restore-source-guard-
|
|
14
|
-
import {
|
|
15
|
-
import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-
|
|
4
|
+
import { $ as AccountIdUnavailableError, B as isTransientServerError, D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markNonRetryable, K as markRedactedCause, L as isExplicitDenyError, M as explicitDenyPolicyKind, O as relayedNameCollision, W as isThrottlingError, _ as ResourceUpdateNotSupportedError, i as credentialFingerprint, n as ambientCredentialConfig, ot as ProvisioningError, q as wrapMaskedAwsError, r as clientDefaultsFor, t as ambientClientDefaults, tt as CdkdError, x as hasReplayMayCollide, z as isRetryableTransientError } from "./ambient-client-defaults-ChOenyD2.js";
|
|
5
|
+
import { $ as ElapsedBudget, A as readNameProperty, B as rdsFamilyProtectionSite, C as VALUE_NOT_SHOWN, Ct as startInterruptWatch, D as isQuotableImportValue, Dt as compositeIdSkipResult, E as isPlainImportValue, Et as compositeIdSeparatorRefusal, F as markNotGone, Ft as isSecretDerivedValue, Gi as withPasteableAwsProfile, Gr as recordAttributeIdCopy, Gt as isAuxiliaryFailure, H as userPoolProtectionSite, Ir as recoverMaskedOutput, It as maskDeep, Jt as markCreatedBeforeFailure, K as isProceedDbStatus, Ki as injectiveKey, L as deleteWithProtectionCompensation, Lt as maskerOrIdentity, M as remedyLogicalId, Mt as stateOrphanRecordRemedy, N as resolveExplicitPhysicalId, Nn as snapshotPassProvenance, Nt as createMaskedLogSinks, O as normalizeAwsTagsToCfn, Ot as logicalIdShown, Pt as createMaskedRetryLogger, R as logGroupProtectionSite, Rn as hasMaskableValues, Rt as withDerivedNameMasks, S as holderRefusalRun, St as isInterruptedWaitError, T as isPlainImportJson, Tt as compositeIdFormatMessage, U as PROTECTION_FLIP_RETRY_WAIT_MS, Vt as clearCreatedBeforeFailure, W as deleteAfterProtectionFlipWithFinalSnapshot, Wr as physicalNameCopiesOf, X as isTerminalDeleteFailure, Xr as dynamicReferenceTokens, Y as ProtectionFlipRegistry, Yt as markSupersedesEarlierCreate, Z as protectionFlipKey, _ as withoutServerErrorRetries, _t as recordedPrincipalsRepair, at as isAwsCliLiteral, b as assertRegionMatch, c as AmbiguousCreateLatch, cn as recordedSecrecyOf, ct as renderDisableCommand, d as ambiguousAttemptLead, dr as withoutPhysicalNameCopies, dt as SECRET_DERIVED_READ_LIVE, en as holdsMaskLeaf, et as ElapsedBudgetRegistry, f as createAttemptKey, ft as diffPrincipalNames, g as setBounded, h as replayedSendWindow, hn as markSameGenerationBag, ht as readPrincipalLists, i as reportCreatedResource, ii as carriesSecretMask, it as WITHHELD_AWS_COMMAND, j as refusalTypeShown, jn as recordReferenceProvenanceEntry, jt as segmentAfterAnchor, k as quotedRemedyLogicalId, kt as packCompositeId, l as CREATION_DATE_SKEW_MARGIN_MS, m as replayFollowedAmbiguousAttempt, mt as onlySecretDerived, o as retractCreatedResource, ot as pasteableAwsCommand, p as isInsideWindow, pt as holdsSecretDerivedEntry, q as isTerminalDbWaitStatus, qi as injectiveKeyPrefix, qt as markAuxiliaryFailure, rn as mentionsDynamicReference, rt as UNNAMEABLE_ID_CLAUSE, s as AMBIGUOUS_LATCH_TTL_MS, st as protectedReplacementAdvice, u as RecentIdSet, v as DriftReadRefusedError, w as importRemedyCommand, wn as redactForState, wt as canonicalizeRoute53QueryName, x as holderRefusalMask, y as RESOURCE_NOT_FOUND, z as observeThenDisableProtection } from "./created-resource-sink-D7iM5jwM.js";
|
|
6
|
+
import { A as displayStackName, L as truncateCodePoints, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-CP9RYTCy.js";
|
|
7
|
+
import { S as isoTimestampAttribute, a as lookupEachName, c as RecordedIdentityMismatchError, g as identityTimestamp, i as isAccessDeniedError, l as assertRecordedIdentity, n as isPermissionDenial, o as withApiLimit, p as recordedIdentityId, r as chunks, s as RecordedIdentityError, t as deniedIdentityReadRefusal } from "./identity-read-denied-CoeMBkCz.js";
|
|
8
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-CiTP5c3_.js";
|
|
9
|
+
import { $ as effectiveInventoryItem, A as withRecordedCidrSpelling, B as LIFECYCLE_DEFAULT_STATUS, C as securityGroupReadbackDelays, D as stackIngressRuleHolder, E as singleSecurityGroupRuleId, F as clearLifecycleWritesOf, G as canonicalizeItemList, H as LIFECYCLE_RULE_PATH, I as lifecycleSettleTarget, J as lifecycleUsesFilterForm, K as effectiveLifecycleConfiguration, L as recordLifecycleWrite, M as sgRemovalRuleKey, N as sgRuleListMember, O as survivingRecordOfRuleId, P as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, Q as effectiveIntelligentTieringItem, R as settleLifecycleRead, S as reconcileSgRules, T as sgRuleKey, U as LIFECYCLE_TAG_FILTERS_PATH, V as LIFECYCLE_FILTER_PATH, W as canonicalizeBlock, X as EVENTBRIDGE_CONFIG_PATH, Y as parseCfnTimestamp, Z as effectiveAnalyticsItem, _ as ingressRuleIdentity, a as refuseRevertRevokingSiblingRules, at as declaresBucketObjectLock, b as isResendableSocketFailure, c as siblingIdOwnedSgRules, ct as isPlainObject$4, d as authorizeDefinitelyNotApplied, dt as shownLifecycleRuleId, et as effectiveNotificationConfiguration, f as canonicalizeSgInlineRuleProtocols, g as flattenIpPermissions, h as descriptionKey, i as resolveSecretDerivedPrincipals, it as configItemId, j as markCopiesAgreed, k as tagListsMatch, l as SG_READBACK_RETRY_DELAY_MS, lt as manualBucketDeletionClause, m as comparableIngressIdentity, n as holdsUnprovenSecretPrincipalToken, nt as caughtErrorName, o as sgRuleDiffKey, ot as declaresNestedObjectLock, p as canonicalizeSgRuleProtocol, q as lifecycleRuleScope, r as isResolvableSecretPrincipalList, rt as coerceCfnNumber, s as readSgIngressById, st as describeValue$1, t as runDestroyForStack, tt as eventBridgeEnabledOf, u as SG_RULE_PAGE_SIZE, ut as mergeLegacySingular, v as isConnectTimeout, w as securityGroupRuleMatchesCfnIngress, x as narrowIngressIpProtocol, y as isDefaultEgressRule, z as takeLifecycleWrite } from "./program-DR3X8-7x.js";
|
|
10
|
+
import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-rTL8ikg4.js";
|
|
11
|
+
import { $ as streamTagsMatchDeclared, $o as evaluateSignals, $t as planContributorInsightsOp, Aa as replacedDeleteFailureVerdict, Ad as stringifyValue, Ao as KMS_DEFAULT_KEY_POLICY_ID, At as tableNameReleaseWait, Ba as canonicalizeIpv6Cidr, Bn as childStackTags, Bo as reReadUntilSettled, Bt as isTtlRateLimited, Ci as reserveStackCreateToken, Cl as isWarmThroughputDecrease, Co as withoutSiblingOwned, Cs as deleteSkipReason, Ct as mapSSESpecification, Ds as markWaitAbandoned, Dt as sseSpecificationRefusal, El as APPSYNC_APIKEY_ARN_RESOURCE_PATH, Eo as getStackRecords, Et as readCapacityNumber, Fa as SG_RULE_ID_PATTERN, Fd as renderNestedTemplateTreeDefect, Ff as renderAssemblyPathEscape, Fo as declaredPolicyDocument, Fs as connectInstanceIdOf, Ft as recordTagWrite, G as declaredStreamTagsMember, Go as policyContentKey, Gt as readbackVectorIndexes, H as STREAM_POLICY_KEY, Ho as warnUnsettledMember, Ht as readTtlSpec, Ia as cfnIngressPortValue, If as resolveAssemblyPath, Io as efsPolicyMatchesDeclared, It as settleWrittenTags, J as reverseMapStreamPolicy, Jt as vectorIndexesShapeDetail, Ju as accountArgs, K as planStreamMemberOps, Kd as decodeListingKey, Kt as vectorIndexesForCreate, La as recordedSgRuleId, Lo as lambdaPermissionMatchesDeclared, Md as findNestedTemplateTreeDefect, Mf as describeFileReadFailure, Mo as OWN_WRITE_REREAD_DELAYS_MS, Mt as clearTagWrites, Nd as isAbsoluteAssetPath, Nf as displayAssemblyPath, No as SNS_DEFAULT_POLICY_ID, Nu as refuseMalformedNestedChildOutputs, Ol as maskedSecretSegment, Ot as sseSpecificationToSend, Pd as listNestedTemplateRows, Po as declaredMemberDocument, Ps as isSettledInstanceState, Pt as isDynamoDBTableArnIn, Q as streamPolicyMatchesDeclared, Qc as getCurrentResourceSecrets, Qo as classifyHandleUrl, Qt as indexDeclaresContributorInsights, Ro as memberReadFailure, Rt as takeTagWrite, Sn as isTruthyCfnBoolean, So as withoutSiblingAttachedArns, St as isTableName, Ti as acquireIdempotencyToken, Tl as toFiniteNumber, Tt as pointInTimeRecoveryRefusal, U as STREAM_TAGS_KEY, Uo as verbatimEchoDriftKeys, Ut as sendTtlWaitingOutRateLimit, Uu as refuseMalformedResourcesForDestroy, V as DynamoDBGlobalTableProvider, Va as canonicalizeIpv4Cidr, Vo as settleDeclaredMember, Vt as planTimeToLive, W as declaredStreamPolicyMember, Wn as licensedNameHolder, Wo as attemptedPolicyDocument, Wt as planVectorIndexUpdates, X as streamDeclaresTags, Xt as completeTableContributorInsightsBaseline, Y as streamDeclaresPolicy, Yt as CONTRIBUTOR_INSIGHTS_KEY, Yu as withheldAccountClause, Z as streamMemberRefusals, Zi as getCurrentProducerRegions, Zo as WaitConditionSignalStore, Zt as contributorInsightsRefusals, _c as parseWebACLArn, _n as relayedIndexBusyDelete, _t as KINESIS_DESTINATION_SETTLE_POLL_MS, ac as s3BucketDualStackDomainName, ad as withoutSdkUnwiredProperties, al as getAccountInfo, an as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, at as localSecondaryIndexesKey, bn as S3_AUTO_DELETE_OBJECTS_TAG, bo as collectPrincipalsAttachingPolicy, bt as hasUsableDeclaredCapacity, cn as compensateRemovedDeletionProtection, cr as getCurrentNestedStackContext, ct as sameJsonValue, dd as planSubscriptionAttributes, dn as resolveDynamoDbDeleteBudgetMs, dt as desiredBagIsInformative, ei as siblingOwnedSgRuleIdentities, en as planIndexContributorInsightsOps, et as canonicalizeStaleIndexDescription, fd as wireAttributeValue, fn as DELETE_INDEX_WAIT_PROCEED_NOTE, ft as isRefusedWarmThroughput, gn as maskedLogger, gs as waitForLambdaFunctionActive, gt as warmThroughputAlreadyMatches, hl as isLegacyHandleId, hn as deleteTableWithIndexBusyRetry, ht as trimUnsentWarmMembers, ic as s3BucketDomainName, if as rewriteTemplateAssetReferences, in as stripIndexContributorInsights, ir as revertNestedChildFromJournal, it as gsiUnsendableChangeRefusal, jt as TAGS_BASELINE_REREAD_DELAYS_MS, kt as tableDeleteGoneWait, ln as deleteBudgetKey, lr as withNestedStackContext, lt as coerceWarmThroughput, ml as LEGACY_HANDLE_ID_PREFIX, mn as TABLE_INDEX_NOUN, mt as sentWarmThroughputMembers, nc as dnsEntryStrings, ni as withoutSiblingOwnedSgRules, nn as reverseMapIndexContributorInsights, no as secretNamedAttributeNamesOf, nt as deletionProtectionRefusal, oc as s3BucketRegionalDomainName, on as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, ot as projectIndexesOnto, pi as calculateResourceDrift, pn as INDEX_SETTLE_POLL_INTERVAL_MS, pt as readbackWarmThroughput, qt as vectorIndexesSettled, rc as s3BucketArn, rd as findSdkUnwiredProperties, rn as reverseMapTableContributorInsights, rt as desiredIndexEntriesByName, sc as s3BucketWebsiteUrl, sn as beginDeleteWait, st as reverseMapSecondaryIndex, t as DeployEngine, tl as outputReferenceProvenanceOf, tn as readContributorInsightsSpec, tr as getNestedRevertRun, tt as declaresIndexList, ud as normalizeRecordName, un as resolveDynamoDbDeleteBudgetClock, ut as declaresWarmThroughput, vn as waitForIndexesSettled, vo as collectGroupsAddedBySiblings, vs as waitForGoneAfterDelete, vt as KINESIS_DISABLE_PENDING_STATUSES, wl as toCfnInteger, wo as awaitInFlightSibling, ws as withIndeterminateGuard, wt as maskLeafValue, xi as earliestDefined, xn as hasCdkAutoDeleteTag, xo as isStoredExpression, xt as isPlainCapacityBlock, yn as ECR_AUTO_DELETE_IMAGES_TAG, yo as collectManagedPolicyArnsAttachedBySiblings, yt as deleteTableRetryDelays, za as sgProtocolKey, zl as passedParameterClassesOf, zn as childRowTags, zo as policyDocumentMatchesDeclared, zt as isTtlAlreadyDisabled } from "./deploy-engine-D7Iv9v8e.js";
|
|
12
|
+
import { a as refuseMalformedDesiredTags, i as readTagList, n as DBPROXY_TAG_OPTIONS, o as tagMapAsList, r as planTagDiff, s as tagPlanWarning, t as DBPROXY_TAGS_WHAT } from "./tag-list-DbmXev9Z.js";
|
|
13
|
+
import { _ as isUsableAttemptedName, c as definedAttributes, d as awaitDeferredResource, h as throwIfReadinessAborted, i as refuseRestoreFromItself, l as stringifyIfAssigned, m as deferReadiness, o as isModifyNotAvailableRefusal, s as modifyDbInstanceWhenAvailable, u as abortableSleep } from "./restore-source-guard-Dz_vQPiM.js";
|
|
14
|
+
import { T as timePhase, n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer, v as withRetry } from "./secret-reference-immutable-BF02Wobz.js";
|
|
15
|
+
import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-CF-RPYMD.js";
|
|
16
16
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
17
17
|
import { f as ambientRegion, r as awsEndpointOverrideActive } from "./aws-client-defaults-DAebi99J.js";
|
|
18
|
-
import { a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, f as markRefusedBeforeApplying, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedPerTypeResourceTimeoutMs, u as getPriorAttempts } from "./ec2-termination-protection-
|
|
19
|
-
import { l as removedTemplateKeys, n as enclosingDeadlineRemainingMs, o as clearOnUpdateRemoval, t as enclosingDeadlineExpired, u as withRemovalDefaults } from "./resource-deadline-
|
|
20
|
-
import {
|
|
21
|
-
import { EMRClusterProvider, a as undeclaredDriftKeys, c as reportPossibleOrphans, i as projectDeclaredDriftPair, n as EMRInstanceGroupConfigProvider, o as collectOrphanIds, r as filledDefaultsFrom, s as orphanCommandRegionArg$2, t as EMRInstanceFleetConfigProvider } from "./emr-cluster-provider-
|
|
22
|
-
import { RDSProvider } from "./rds-provider-
|
|
23
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
24
|
-
import { ASGProvider } from "./asg-provider-
|
|
18
|
+
import { a as reDisableInstanceApiTermination, c as resolvedResourceTimeoutMs, f as markRefusedBeforeApplying, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedPerTypeResourceTimeoutMs, u as getPriorAttempts } from "./ec2-termination-protection-BXy91mrW.js";
|
|
19
|
+
import { l as removedTemplateKeys, n as enclosingDeadlineRemainingMs, o as clearOnUpdateRemoval, t as enclosingDeadlineExpired, u as withRemovalDefaults } from "./resource-deadline-B4Rp-3f7.js";
|
|
20
|
+
import { R as passedNoEchoParametersOf, c as blockDeviceMappingsDifferOnlyInDeleteOnTermination, f as canonicalLambdaFunctionName, h as sameLambdaFunctionAddress, m as parseLambdaFunctionAddress, p as lambdaFunctionNameForMask, u as ecsServiceLaunchTypeSetOrChanged } from "./replacement-rules-roVU6gYR.js";
|
|
21
|
+
import { EMRClusterProvider, a as undeclaredDriftKeys, c as reportPossibleOrphans, i as projectDeclaredDriftPair, n as EMRInstanceGroupConfigProvider, o as collectOrphanIds, r as filledDefaultsFrom, s as orphanCommandRegionArg$2, t as EMRInstanceFleetConfigProvider } from "./emr-cluster-provider-MokUAEGh.js";
|
|
22
|
+
import { RDSProvider } from "./rds-provider-evebINWq.js";
|
|
23
|
+
import { NeptuneProvider } from "./neptune-provider-BFwovty1.js";
|
|
24
|
+
import { ASGProvider } from "./asg-provider-Bfinx42n.js";
|
|
25
25
|
import { createHash, randomUUID } from "node:crypto";
|
|
26
26
|
import { CreateBucketCommand, CreateBucketMetadataConfigurationCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetadataConfigurationCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAbacCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketMetadataConfigurationCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAbacCommand, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, UpdateBucketMetadataAnnotationTableConfigurationCommand, UpdateBucketMetadataInventoryTableConfigurationCommand, UpdateBucketMetadataJournalTableConfigurationCommand } from "@aws-sdk/client-s3";
|
|
27
27
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateAccessKeyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteConflictException, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetLoginProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListPoliciesCommand, ListPolicyTagsCommand, ListPolicyVersionsCommand, ListUserPoliciesCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagPolicyCommand, TagUserCommand, UntagPolicyCommand, UntagUserCommand, UpdateAccessKeyCommand, UpdateGroupCommand, UpdateLoginProfileCommand, UpdateUserCommand } from "@aws-sdk/client-iam";
|
|
@@ -64,7 +64,7 @@ import { AppConfigClient, CreateEnvironmentCommand, DeleteEnvironmentCommand, Ge
|
|
|
64
64
|
import { CreateWebACLCommand, DeleteWebACLCommand, GetWebACLCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$14, TagResourceCommand as TagResourceCommand$19, UntagResourceCommand as UntagResourceCommand$19, UpdateWebACLCommand, WAFNonexistentItemException, WAFV2Client } from "@aws-sdk/client-wafv2";
|
|
65
65
|
import { AddCustomAttributesCommand, CognitoIdentityProviderClient, CreateUserPoolCommand, DeleteUserPoolCommand, DescribeUserPoolCommand, GetUserPoolMfaConfigCommand, ListUserPoolsCommand, ResourceNotFoundException as ResourceNotFoundException$12, SetUserPoolMfaConfigCommand, UntagResourceCommand as UntagResourceCommand$20, UpdateUserPoolCommand } from "@aws-sdk/client-cognito-identity-provider";
|
|
66
66
|
import { CreateHttpNamespaceCommand, CreatePrivateDnsNamespaceCommand, CreatePublicDnsNamespaceCommand, CreateServiceCommand as CreateServiceCommand$1, DeleteNamespaceCommand, DeleteServiceAttributesCommand, DeleteServiceCommand as DeleteServiceCommand$1, GetNamespaceCommand, GetOperationCommand, GetServiceAttributesCommand, GetServiceCommand, ListNamespacesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$15, NamespaceNotFound, ResourceInUse, ResourceNotFoundException as ResourceNotFoundException$13, ServiceDiscoveryClient, ServiceNotFound, TagResourceCommand as TagResourceCommand$20, UntagResourceCommand as UntagResourceCommand$21, UpdateHttpNamespaceCommand, UpdatePrivateDnsNamespaceCommand, UpdatePublicDnsNamespaceCommand, UpdateServiceAttributesCommand, UpdateServiceCommand as UpdateServiceCommand$1 } from "@aws-sdk/client-servicediscovery";
|
|
67
|
-
import { AppSyncClient, CreateApiKeyCommand, CreateDataSourceCommand, CreateGraphqlApiCommand, CreateResolverCommand, DeleteApiKeyCommand, DeleteDataSourceCommand, DeleteGraphqlApiCommand, DeleteResolverCommand, GetDataSourceCommand, GetGraphqlApiCommand, GetGraphqlApiEnvironmentVariablesCommand, GetIntrospectionSchemaCommand, GetResolverCommand, ListApiKeysCommand, ListGraphqlApisCommand, NotFoundException as NotFoundException$4, PutGraphqlApiEnvironmentVariablesCommand, StartSchemaCreationCommand, TagResourceCommand as TagResourceCommand$21, UntagResourceCommand as UntagResourceCommand$22, UpdateApiKeyCommand, UpdateDataSourceCommand, UpdateGraphqlApiCommand, UpdateResolverCommand } from "@aws-sdk/client-appsync";
|
|
67
|
+
import { AppSyncClient, CreateApiKeyCommand, CreateDataSourceCommand, CreateGraphqlApiCommand, CreateResolverCommand, DeleteApiKeyCommand, DeleteDataSourceCommand, DeleteGraphqlApiCommand, DeleteResolverCommand, GetDataSourceCommand, GetGraphqlApiCommand, GetGraphqlApiEnvironmentVariablesCommand, GetIntrospectionSchemaCommand, GetResolverCommand, GetSchemaCreationStatusCommand, ListApiKeysCommand, ListGraphqlApisCommand, NotFoundException as NotFoundException$4, PutGraphqlApiEnvironmentVariablesCommand, StartSchemaCreationCommand, TagResourceCommand as TagResourceCommand$21, UntagResourceCommand as UntagResourceCommand$22, UpdateApiKeyCommand, UpdateDataSourceCommand, UpdateGraphqlApiCommand, UpdateResolverCommand } from "@aws-sdk/client-appsync";
|
|
68
68
|
import { ConcurrentModificationException, CrawlerRunningException, CreateConnectionCommand, CreateCrawlerCommand, CreateDatabaseCommand, CreateJobCommand, CreateSecurityConfigurationCommand, CreateTableCommand as CreateTableCommand$1, CreateTriggerCommand, CreateWorkflowCommand, DeleteConnectionCommand, DeleteCrawlerCommand, DeleteDatabaseCommand, DeleteJobCommand, DeleteSecurityConfigurationCommand, DeleteTableCommand as DeleteTableCommand$1, DeleteTriggerCommand, DeleteWorkflowCommand, EntityNotFoundException, GetConnectionCommand, GetCrawlerCommand, GetDatabaseCommand, GetJobCommand, GetSecurityConfigurationCommand, GetTableCommand, GetTagsCommand, GetTriggerCommand, GetWorkflowCommand, GlueClient, StartCrawlerScheduleCommand, StartTriggerCommand, StopCrawlerCommand, StopCrawlerScheduleCommand, StopTriggerCommand, TagResourceCommand as TagResourceCommand$22, UntagResourceCommand as UntagResourceCommand$23, UpdateConnectionCommand, UpdateCrawlerCommand, UpdateDatabaseCommand, UpdateJobCommand, UpdateTableCommand as UpdateTableCommand$1, UpdateTriggerCommand, UpdateWorkflowCommand } from "@aws-sdk/client-glue";
|
|
69
69
|
import { BudgetsClient, CreateBudgetCommand, CreateNotificationCommand, CreateSubscriberCommand, DeleteBudgetCommand, DeleteNotificationCommand, DeleteSubscriberCommand, DescribeBudgetCommand, DescribeNotificationsForBudgetCommand, DescribeSubscribersForNotificationCommand, DuplicateRecordException, ListTagsForResourceCommand as ListTagsForResourceCommand$16, NotFoundException as NotFoundException$5, TagResourceCommand as TagResourceCommand$23, UntagResourceCommand as UntagResourceCommand$24, UpdateBudgetCommand } from "@aws-sdk/client-budgets";
|
|
70
70
|
import { AddTagsToStreamCommand, CreateStreamCommand, DecreaseStreamRetentionPeriodCommand, DeleteStreamCommand, DeregisterStreamConsumerCommand, DescribeStreamCommand, DescribeStreamConsumerCommand, DescribeStreamSummaryCommand, DisableEnhancedMonitoringCommand, EnableEnhancedMonitoringCommand, IncreaseStreamRetentionPeriodCommand, KinesisClient, ListTagsForResourceCommand as ListTagsForResourceCommand$17, ListTagsForStreamCommand, RegisterStreamConsumerCommand, RemoveTagsFromStreamCommand, ResourceNotFoundException as ResourceNotFoundException$14, StartStreamEncryptionCommand, StopStreamEncryptionCommand, TagResourceCommand as TagResourceCommand$24, UntagResourceCommand as UntagResourceCommand$25, UpdateMaxRecordSizeCommand, UpdateShardCountCommand, UpdateStreamModeCommand, UpdateStreamRecordDistributionStrategyCommand } from "@aws-sdk/client-kinesis";
|
|
@@ -947,6 +947,17 @@ const principalsOf = (bag) => readPrincipalLists({
|
|
|
947
947
|
Users: bag["Users"]
|
|
948
948
|
});
|
|
949
949
|
const PRINCIPAL_NAMES = "group / role / user names";
|
|
950
|
+
function declaredPrincipalsOf(bag) {
|
|
951
|
+
if (!bag) return void 0;
|
|
952
|
+
const read = principalsOf(bag);
|
|
953
|
+
if ("malformed" in read) return void 0;
|
|
954
|
+
const set = (names) => new Set((names ?? []).map((name) => name.toLowerCase()));
|
|
955
|
+
return {
|
|
956
|
+
Groups: set(read.lists.Groups),
|
|
957
|
+
Roles: set(read.lists.Roles),
|
|
958
|
+
Users: set(read.lists.Users)
|
|
959
|
+
};
|
|
960
|
+
}
|
|
950
961
|
function policyIdentityToken(id) {
|
|
951
962
|
return typeof id === "string" && id !== "" ? id : void 0;
|
|
952
963
|
}
|
|
@@ -1116,6 +1127,7 @@ async function update$39(logicalId, physicalId, resourceType, properties, previo
|
|
|
1116
1127
|
try {
|
|
1117
1128
|
const deleteResult = await this.delete(logicalId, physicalId, resourceType, previousProperties, {
|
|
1118
1129
|
maskSecrets: log.mask,
|
|
1130
|
+
detachUndeclaredPrincipals: true,
|
|
1119
1131
|
...context?.recordedAttributes && { recordedAttributes: context.recordedAttributes }
|
|
1120
1132
|
});
|
|
1121
1133
|
if (deleteResult?.outcome === "skipped") {
|
|
@@ -1238,6 +1250,22 @@ function principalListsDiffer(desired, previous) {
|
|
|
1238
1250
|
}
|
|
1239
1251
|
|
|
1240
1252
|
// src/provisioning/providers/iam-managed-policy/delete.ts
|
|
1253
|
+
var UndeclaredPrincipalsRefusal = class extends ProvisioningError {
|
|
1254
|
+
constructor(message, resourceType, logicalId, physicalId) {
|
|
1255
|
+
super(message, resourceType, logicalId, physicalId);
|
|
1256
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
1257
|
+
this.name = "UndeclaredPrincipalsRefusal";
|
|
1258
|
+
markNonRetryable(this);
|
|
1259
|
+
}
|
|
1260
|
+
};
|
|
1261
|
+
const PRINCIPAL_KIND = {
|
|
1262
|
+
Roles: "role",
|
|
1263
|
+
Users: "user",
|
|
1264
|
+
Groups: "group"
|
|
1265
|
+
};
|
|
1266
|
+
function undeclaredPrincipalsMessage(logicalId, undeclared) {
|
|
1267
|
+
return `Failed to delete IAM managed policy ${logicalId}: it is still attached to ${undeclared.map((p) => `${PRINCIPAL_KIND[p.kind]} ${p.name}`).join(", ")}, which the policy does not list in its Roles / Users / Groups, so nothing was detached and the policy was left in place, as CloudFormation leaves it. Detach the policy from them (DetachRolePolicy / DetachUserPolicy / DetachGroupPolicy) or remove the attachment where it is made (another stack, or a role's ManagedPolicyArns), then re-run.`;
|
|
1268
|
+
}
|
|
1241
1269
|
async function deleteImpl$37(logicalId, physicalId, resourceType, _properties, context) {
|
|
1242
1270
|
const mask = maskerOrIdentity(context?.maskSecrets);
|
|
1243
1271
|
this.logger.debug(mask(`Deleting IAM managed policy ${logicalId}: ${physicalId}`));
|
|
@@ -1263,12 +1291,18 @@ async function deleteImpl$37(logicalId, physicalId, resourceType, _properties, c
|
|
|
1263
1291
|
reread: readPolicyId,
|
|
1264
1292
|
context
|
|
1265
1293
|
});
|
|
1266
|
-
|
|
1294
|
+
const declared = context?.detachUndeclaredPrincipals || context?.failedCreateOrphan ? void 0 : declaredPrincipalsOf(_properties);
|
|
1295
|
+
const undeclared = await this.detachAllPrincipals(physicalId, progress, declared);
|
|
1296
|
+
if (undeclared.length > 0) {
|
|
1297
|
+
const refusal = new UndeclaredPrincipalsRefusal(mask(undeclaredPrincipalsMessage(logicalId, undeclared)), resourceType, logicalId, physicalId);
|
|
1298
|
+
throw progress.stripped ? markDeleteStarted(refusal) : refusal;
|
|
1299
|
+
}
|
|
1267
1300
|
await this.deleteAllNonDefaultVersions(physicalId);
|
|
1268
1301
|
await this.iamClient.send(new DeletePolicyCommand({ PolicyArn: physicalId }));
|
|
1269
1302
|
this.logger.debug(`Successfully deleted IAM managed policy ${logicalId}`);
|
|
1270
1303
|
} catch (error) {
|
|
1271
1304
|
if (error instanceof RecordedIdentityError) throw error;
|
|
1305
|
+
if (error instanceof UndeclaredPrincipalsRefusal) throw error;
|
|
1272
1306
|
if (error instanceof NoSuchEntityException) {
|
|
1273
1307
|
await this.goneOnDelete(logicalId, physicalId, resourceType, context, mask);
|
|
1274
1308
|
return;
|
|
@@ -1693,7 +1727,8 @@ var IAMManagedPolicyProvider = class {
|
|
|
1693
1727
|
} while (marker);
|
|
1694
1728
|
return live;
|
|
1695
1729
|
}
|
|
1696
|
-
async detachAllPrincipals(policyArn, progress) {
|
|
1730
|
+
async detachAllPrincipals(policyArn, progress, declared) {
|
|
1731
|
+
const attached = [];
|
|
1697
1732
|
try {
|
|
1698
1733
|
let marker;
|
|
1699
1734
|
while (true) {
|
|
@@ -1701,49 +1736,45 @@ var IAMManagedPolicyProvider = class {
|
|
|
1701
1736
|
PolicyArn: policyArn,
|
|
1702
1737
|
...marker ? { Marker: marker } : {}
|
|
1703
1738
|
}));
|
|
1704
|
-
for (const g of resp.PolicyGroups ?? []) {
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
}
|
|
1716
|
-
for (const r of resp.PolicyRoles ?? []) {
|
|
1717
|
-
if (!r.RoleName) continue;
|
|
1718
|
-
try {
|
|
1719
|
-
await this.iamClient.send(new DetachRolePolicyCommand({
|
|
1720
|
-
RoleName: r.RoleName,
|
|
1721
|
-
PolicyArn: policyArn
|
|
1722
|
-
}));
|
|
1723
|
-
if (progress) progress.stripped = true;
|
|
1724
|
-
} catch (err) {
|
|
1725
|
-
if (!(err instanceof NoSuchEntityException)) throw err;
|
|
1726
|
-
}
|
|
1727
|
-
}
|
|
1728
|
-
for (const u of resp.PolicyUsers ?? []) {
|
|
1729
|
-
if (!u.UserName) continue;
|
|
1730
|
-
try {
|
|
1731
|
-
await this.iamClient.send(new DetachUserPolicyCommand({
|
|
1732
|
-
UserName: u.UserName,
|
|
1733
|
-
PolicyArn: policyArn
|
|
1734
|
-
}));
|
|
1735
|
-
if (progress) progress.stripped = true;
|
|
1736
|
-
} catch (err) {
|
|
1737
|
-
if (!(err instanceof NoSuchEntityException)) throw err;
|
|
1738
|
-
}
|
|
1739
|
-
}
|
|
1739
|
+
for (const g of resp.PolicyGroups ?? []) if (g.GroupName) attached.push({
|
|
1740
|
+
kind: "Groups",
|
|
1741
|
+
name: g.GroupName
|
|
1742
|
+
});
|
|
1743
|
+
for (const r of resp.PolicyRoles ?? []) if (r.RoleName) attached.push({
|
|
1744
|
+
kind: "Roles",
|
|
1745
|
+
name: r.RoleName
|
|
1746
|
+
});
|
|
1747
|
+
for (const u of resp.PolicyUsers ?? []) if (u.UserName) attached.push({
|
|
1748
|
+
kind: "Users",
|
|
1749
|
+
name: u.UserName
|
|
1750
|
+
});
|
|
1740
1751
|
if (!resp.IsTruncated) break;
|
|
1741
1752
|
marker = resp.Marker;
|
|
1742
1753
|
}
|
|
1743
1754
|
} catch (err) {
|
|
1744
|
-
if (err instanceof NoSuchEntityException) return;
|
|
1755
|
+
if (err instanceof NoSuchEntityException) return [];
|
|
1745
1756
|
throw err;
|
|
1746
1757
|
}
|
|
1758
|
+
const undeclared = declared ? attached.filter((p) => !declared[p.kind].has(p.name.toLowerCase())) : [];
|
|
1759
|
+
if (undeclared.length > 0) return undeclared;
|
|
1760
|
+
for (const p of attached) try {
|
|
1761
|
+
if (p.kind === "Groups") await this.iamClient.send(new DetachGroupPolicyCommand({
|
|
1762
|
+
GroupName: p.name,
|
|
1763
|
+
PolicyArn: policyArn
|
|
1764
|
+
}));
|
|
1765
|
+
else if (p.kind === "Roles") await this.iamClient.send(new DetachRolePolicyCommand({
|
|
1766
|
+
RoleName: p.name,
|
|
1767
|
+
PolicyArn: policyArn
|
|
1768
|
+
}));
|
|
1769
|
+
else await this.iamClient.send(new DetachUserPolicyCommand({
|
|
1770
|
+
UserName: p.name,
|
|
1771
|
+
PolicyArn: policyArn
|
|
1772
|
+
}));
|
|
1773
|
+
if (progress) progress.stripped = true;
|
|
1774
|
+
} catch (err) {
|
|
1775
|
+
if (!(err instanceof NoSuchEntityException)) throw err;
|
|
1776
|
+
}
|
|
1777
|
+
return [];
|
|
1747
1778
|
}
|
|
1748
1779
|
async deleteAllNonDefaultVersions(policyArn) {
|
|
1749
1780
|
try {
|
|
@@ -7604,6 +7635,7 @@ var S3BucketPolicyProvider = class {
|
|
|
7604
7635
|
4e3
|
|
7605
7636
|
];
|
|
7606
7637
|
sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
7638
|
+
idempotentCreateTypes = /* @__PURE__ */ new Set(["AWS::S3::BucketPolicy"]);
|
|
7607
7639
|
handledProperties = /* @__PURE__ */ new Map([["AWS::S3::BucketPolicy", /* @__PURE__ */ new Set(["Bucket", "PolicyDocument"])]]);
|
|
7608
7640
|
constructor() {
|
|
7609
7641
|
const awsClients = getAwsClients();
|
|
@@ -8255,6 +8287,7 @@ var SQSQueuePolicyProvider = class {
|
|
|
8255
8287
|
sqsClient;
|
|
8256
8288
|
logger = getLogger().child("SQSQueuePolicyProvider");
|
|
8257
8289
|
ownWriteRereadDelaysMs = OWN_WRITE_REREAD_DELAYS_MS;
|
|
8290
|
+
idempotentCreateTypes = /* @__PURE__ */ new Set(["AWS::SQS::QueuePolicy"]);
|
|
8258
8291
|
handledProperties = /* @__PURE__ */ new Map([["AWS::SQS::QueuePolicy", /* @__PURE__ */ new Set(["Queues", "PolicyDocument"])]]);
|
|
8259
8292
|
constructor() {
|
|
8260
8293
|
const awsClients = getAwsClients();
|
|
@@ -9515,6 +9548,7 @@ const TOPIC_POLICY_NOT_COMPARED_LEFT_REASON = "the document it attempted is miss
|
|
|
9515
9548
|
var SNSTopicPolicyProvider = class {
|
|
9516
9549
|
logger = getLogger().child("SNSTopicPolicyProvider");
|
|
9517
9550
|
ownWriteRereadDelaysMs = OWN_WRITE_REREAD_DELAYS_MS;
|
|
9551
|
+
idempotentCreateTypes = /* @__PURE__ */ new Set(["AWS::SNS::TopicPolicy"]);
|
|
9518
9552
|
handledProperties = /* @__PURE__ */ new Map([["AWS::SNS::TopicPolicy", /* @__PURE__ */ new Set(["Topics", "PolicyDocument"])]]);
|
|
9519
9553
|
async create(logicalId, resourceType, properties, context) {
|
|
9520
9554
|
this.logger.debug(`Creating SNS topic policy ${logicalId}`);
|
|
@@ -12283,7 +12317,7 @@ async function readCurrentState$34(physicalId, _logicalId, _resourceType, proper
|
|
|
12283
12317
|
result["Tags"] = tags;
|
|
12284
12318
|
return result;
|
|
12285
12319
|
}
|
|
12286
|
-
async function canonicalizeDriftPair$
|
|
12320
|
+
async function canonicalizeDriftPair$8(_resourceType, baseline, aws, properties) {
|
|
12287
12321
|
const key = "SelfManagedKafkaEventSourceConfig";
|
|
12288
12322
|
const block = baseline[key];
|
|
12289
12323
|
if (typeof block !== "object" || block === null || Array.isArray(block) || "ConsumptionMode" in block || consumptionModeOf(aws) !== "Stream" || consumptionModeOf(properties ?? {}) !== "Stream" || aws[key]?.["ConsumptionMode"] === void 0) return {
|
|
@@ -12435,7 +12469,7 @@ var LambdaEventSourceMappingProvider = class {
|
|
|
12435
12469
|
return readCurrentState$34.call(this, physicalId, logicalId, resourceType, properties);
|
|
12436
12470
|
}
|
|
12437
12471
|
canonicalizeDriftPair(resourceType, baseline, aws, properties) {
|
|
12438
|
-
return canonicalizeDriftPair$
|
|
12472
|
+
return canonicalizeDriftPair$8.call(this, resourceType, baseline, aws, properties);
|
|
12439
12473
|
}
|
|
12440
12474
|
import(input) {
|
|
12441
12475
|
return importImpl$33.call(this, input);
|
|
@@ -12640,6 +12674,7 @@ function stringOrUndefined(value) {
|
|
|
12640
12674
|
var LambdaEventInvokeConfigProvider = class {
|
|
12641
12675
|
lambdaClient;
|
|
12642
12676
|
logger = getLogger().child("LambdaEventInvokeConfigProvider");
|
|
12677
|
+
idempotentCreateTypes = /* @__PURE__ */ new Set(["AWS::Lambda::EventInvokeConfig"]);
|
|
12643
12678
|
handledProperties = /* @__PURE__ */ new Map([["AWS::Lambda::EventInvokeConfig", /* @__PURE__ */ new Set([
|
|
12644
12679
|
"FunctionName",
|
|
12645
12680
|
"Qualifier",
|
|
@@ -13268,7 +13303,7 @@ function recordedFunctionNameSpelling(recorded, liveFunctionArn) {
|
|
|
13268
13303
|
return liveFunctionArn;
|
|
13269
13304
|
}
|
|
13270
13305
|
function projectOntoRecorded(recorded, live) {
|
|
13271
|
-
if (!isPlainRecord$
|
|
13306
|
+
if (!isPlainRecord$4(recorded) || !isPlainRecord$4(live)) return live;
|
|
13272
13307
|
const out = {};
|
|
13273
13308
|
for (const key of Object.keys(recorded)) {
|
|
13274
13309
|
if (!Object.prototype.hasOwnProperty.call(live, key)) continue;
|
|
@@ -13276,7 +13311,7 @@ function projectOntoRecorded(recorded, live) {
|
|
|
13276
13311
|
}
|
|
13277
13312
|
return out;
|
|
13278
13313
|
}
|
|
13279
|
-
function isPlainRecord$
|
|
13314
|
+
function isPlainRecord$4(value) {
|
|
13280
13315
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
13281
13316
|
}
|
|
13282
13317
|
const LAMBDA_WEB_MAX_POLL_ATTEMPTS = 1200;
|
|
@@ -13484,15 +13519,15 @@ var LambdaWebFunctionRevisionProvider = class {
|
|
|
13484
13519
|
const functionName = properties["FunctionName"];
|
|
13485
13520
|
if (typeof functionName !== "string" || functionName === "") fail("FunctionName must be a non-empty string");
|
|
13486
13521
|
const build = properties["BuildConfig"];
|
|
13487
|
-
if (!isPlainRecord$
|
|
13522
|
+
if (!isPlainRecord$4(build)) fail("BuildConfig must be an object");
|
|
13488
13523
|
const code = build["CodeConfig"];
|
|
13489
|
-
const s3 = isPlainRecord$
|
|
13490
|
-
if (!isPlainRecord$
|
|
13524
|
+
const s3 = isPlainRecord$4(code) ? code["S3Object"] : void 0;
|
|
13525
|
+
if (!isPlainRecord$4(s3) || typeof s3["Bucket"] !== "string" || typeof s3["Key"] !== "string") fail("BuildConfig.CodeConfig.S3Object.Bucket and .Key are required strings");
|
|
13491
13526
|
const runtimeConfig = build["RuntimeConfig"];
|
|
13492
|
-
const runtime = isPlainRecord$
|
|
13527
|
+
const runtime = isPlainRecord$4(runtimeConfig) ? runtimeConfig["Runtime"] : void 0;
|
|
13493
13528
|
if (typeof runtime !== "string") fail("BuildConfig.RuntimeConfig.Runtime is a required string");
|
|
13494
13529
|
const service = properties["ServiceConfig"];
|
|
13495
|
-
if (!isPlainRecord$
|
|
13530
|
+
if (!isPlainRecord$4(service) || typeof service["ExecutionRoleArn"] !== "string") fail("ServiceConfig.ExecutionRoleArn is a required string");
|
|
13496
13531
|
const s3Object = s3;
|
|
13497
13532
|
const input = {
|
|
13498
13533
|
functionName,
|
|
@@ -13531,15 +13566,15 @@ var LambdaWebFunctionRevisionProvider = class {
|
|
|
13531
13566
|
if (typeof service["EgressNetworkConnectorArn"] === "string") out.egressNetworkConnectorArn = service["EgressNetworkConnectorArn"];
|
|
13532
13567
|
const env = service["EnvironmentVariables"];
|
|
13533
13568
|
if (env !== void 0) {
|
|
13534
|
-
if (isPlainRecord$
|
|
13569
|
+
if (isPlainRecord$4(env) && Object.values(env).every((v) => typeof v === "string")) out.environmentVariables = { ...env };
|
|
13535
13570
|
else if (context?.replayingState) this.logger.warn(safeMsg`ServiceConfig.EnvironmentVariables must be an object of string values; omitting it while replaying a state record`);
|
|
13536
13571
|
else fail("ServiceConfig.EnvironmentVariables must be an object of string values");
|
|
13537
13572
|
}
|
|
13538
13573
|
const telemetry = service["TelemetryConfig"];
|
|
13539
|
-
if (isPlainRecord$
|
|
13574
|
+
if (isPlainRecord$4(telemetry)) {
|
|
13540
13575
|
const telemetryConfig = {};
|
|
13541
13576
|
const logging = telemetry["LoggingConfig"];
|
|
13542
|
-
if (isPlainRecord$
|
|
13577
|
+
if (isPlainRecord$4(logging)) {
|
|
13543
13578
|
const loggingConfig = {};
|
|
13544
13579
|
if (typeof logging["LogGroup"] === "string") loggingConfig.logGroup = logging["LogGroup"];
|
|
13545
13580
|
if (typeof logging["ApplicationLogLevel"] === "string") loggingConfig.applicationLogLevel = logging["ApplicationLogLevel"];
|
|
@@ -13871,7 +13906,7 @@ var LambdaWebFunctionEndpointProvider = class {
|
|
|
13871
13906
|
}
|
|
13872
13907
|
return fail(message);
|
|
13873
13908
|
};
|
|
13874
|
-
if (!isPlainRecord$
|
|
13909
|
+
if (!isPlainRecord$4(value)) return bad(`${blockKey} must be an object`);
|
|
13875
13910
|
if (value[memberKey] === void 0) return { present: false };
|
|
13876
13911
|
const n = coerceCfnInteger(value[memberKey]);
|
|
13877
13912
|
if (n === void 0) return bad(`${blockKey}.${memberKey} must be an integer`);
|
|
@@ -13940,7 +13975,7 @@ function readRevisionWeights(value, fail) {
|
|
|
13940
13975
|
if (value === void 0) return void 0;
|
|
13941
13976
|
if (!Array.isArray(value)) return fail("RevisionWeights must be a list");
|
|
13942
13977
|
return value.map((entry, i) => {
|
|
13943
|
-
if (!isPlainRecord$
|
|
13978
|
+
if (!isPlainRecord$4(entry) || typeof entry["RevisionId"] !== "string") return fail(`RevisionWeights[${i}].RevisionId must be a string`);
|
|
13944
13979
|
const weight = coerceCfnInteger(entry["Weight"]);
|
|
13945
13980
|
if (weight === void 0) return fail(`RevisionWeights[${i}].Weight must be an integer`);
|
|
13946
13981
|
return {
|
|
@@ -14203,8 +14238,8 @@ var LambdaNetworkConnectorProvider = class {
|
|
|
14203
14238
|
throw new ProvisioningError(`${message} for Lambda network connector ${logicalIdShown(logicalId)}`, resourceType, logicalId, physicalId);
|
|
14204
14239
|
};
|
|
14205
14240
|
const config = properties["Configuration"];
|
|
14206
|
-
const vpc = isPlainRecord$
|
|
14207
|
-
if (!isPlainRecord$
|
|
14241
|
+
const vpc = isPlainRecord$4(config) ? config["VpcEgressConfiguration"] : void 0;
|
|
14242
|
+
if (!isPlainRecord$4(vpc)) return fail("Configuration.VpcEgressConfiguration must be an object");
|
|
14208
14243
|
const strings = (key) => {
|
|
14209
14244
|
const value = vpc[key];
|
|
14210
14245
|
if (value === void 0) return void 0;
|
|
@@ -14226,7 +14261,7 @@ var LambdaNetworkConnectorProvider = class {
|
|
|
14226
14261
|
readElasticIp(properties, logicalId, resourceType, physicalId, context) {
|
|
14227
14262
|
const eip = declaredElasticIp(properties);
|
|
14228
14263
|
if (eip === void 0) return void 0;
|
|
14229
|
-
if (isPlainRecord$
|
|
14264
|
+
if (isPlainRecord$4(eip) && typeof eip["Type"] === "string" && ELASTIC_IP_TYPES.has(eip["Type"])) return { Type: eip["Type"] };
|
|
14230
14265
|
const message = `Configuration.VpcEgressConfiguration.${ELASTIC_IP_KEY} must be an object whose Type is ${[...ELASTIC_IP_TYPES].join(" or ")} for Lambda network connector ${logicalIdShown(logicalId)}`;
|
|
14231
14266
|
if (context?.replayingState === true || context !== void 0 && "desiredFromAwsReadback" in context && context.desiredFromAwsReadback === true) {
|
|
14232
14267
|
this.logger.warn(safeMsg`${message}; omitting it while applying a state-borne bag`);
|
|
@@ -14311,11 +14346,11 @@ const ELASTIC_IP_KEY = "ElasticIpConfiguration";
|
|
|
14311
14346
|
const ELASTIC_IP_TYPES = /* @__PURE__ */ new Set(["None", "ServiceManaged"]);
|
|
14312
14347
|
function declaredElasticIp(properties) {
|
|
14313
14348
|
const config = properties["Configuration"];
|
|
14314
|
-
const vpc = isPlainRecord$
|
|
14315
|
-
return isPlainRecord$
|
|
14349
|
+
const vpc = isPlainRecord$4(config) ? config["VpcEgressConfiguration"] : void 0;
|
|
14350
|
+
return isPlainRecord$4(vpc) ? vpc[ELASTIC_IP_KEY] : void 0;
|
|
14316
14351
|
}
|
|
14317
14352
|
function isNoneElasticIp(value) {
|
|
14318
|
-
return isPlainRecord$
|
|
14353
|
+
return isPlainRecord$4(value) && value["Type"] === "None";
|
|
14319
14354
|
}
|
|
14320
14355
|
function withoutElasticIp(properties) {
|
|
14321
14356
|
const config = properties["Configuration"];
|
|
@@ -14333,7 +14368,7 @@ function elasticIpForUpdate(fromDesired, properties, previousProperties) {
|
|
|
14333
14368
|
if (fromDesired !== void 0 || declaredElasticIp(properties) !== void 0) return fromDesired;
|
|
14334
14369
|
const previous = declaredElasticIp(previousProperties);
|
|
14335
14370
|
if (previous === void 0) return void 0;
|
|
14336
|
-
if (isPlainRecord$
|
|
14371
|
+
if (isPlainRecord$4(previous) && previous["Type"] === "None") return void 0;
|
|
14337
14372
|
return { Type: "None" };
|
|
14338
14373
|
}
|
|
14339
14374
|
var TerminalConnectorStateError = class extends Error {};
|
|
@@ -14872,7 +14907,7 @@ function getDriftUnknownPaths$11(resourceType, properties) {
|
|
|
14872
14907
|
}
|
|
14873
14908
|
return paths;
|
|
14874
14909
|
}
|
|
14875
|
-
function canonicalizeDriftProperties$
|
|
14910
|
+
function canonicalizeDriftProperties$4(resourceType, properties) {
|
|
14876
14911
|
if (resourceType !== "AWS::DynamoDB::Table") return properties;
|
|
14877
14912
|
let result = properties;
|
|
14878
14913
|
const protection = coerceCfnBoolean(result["DeletionProtectionEnabled"]);
|
|
@@ -14896,7 +14931,7 @@ function canonicalizeDriftProperties$3(resourceType, properties) {
|
|
|
14896
14931
|
}
|
|
14897
14932
|
return result;
|
|
14898
14933
|
}
|
|
14899
|
-
async function canonicalizeDriftPair$
|
|
14934
|
+
async function canonicalizeDriftPair$7(resourceType, baseline, aws, properties) {
|
|
14900
14935
|
if (resourceType !== "AWS::DynamoDB::Table") return {
|
|
14901
14936
|
baseline,
|
|
14902
14937
|
aws
|
|
@@ -16663,10 +16698,10 @@ var DynamoDBTableProvider = class {
|
|
|
16663
16698
|
return getDriftUnknownPaths$11.call(this, resourceType, properties);
|
|
16664
16699
|
}
|
|
16665
16700
|
canonicalizeDriftProperties(resourceType, properties) {
|
|
16666
|
-
return canonicalizeDriftProperties$
|
|
16701
|
+
return canonicalizeDriftProperties$4.call(this, resourceType, properties);
|
|
16667
16702
|
}
|
|
16668
16703
|
async canonicalizeDriftPair(resourceType, baseline, aws, properties) {
|
|
16669
|
-
return canonicalizeDriftPair$
|
|
16704
|
+
return canonicalizeDriftPair$7.call(this, resourceType, baseline, aws, properties);
|
|
16670
16705
|
}
|
|
16671
16706
|
async readUnsettled(physicalId, logicalId, resourceType, names, recordedProperties, desiredProperties, attemptedItems) {
|
|
16672
16707
|
return readUnsettled$6.call(this, physicalId, logicalId, resourceType, names, recordedProperties, desiredProperties, attemptedItems);
|
|
@@ -17446,7 +17481,7 @@ var LogsLogGroupProvider = class {
|
|
|
17446
17481
|
function isLogsNotFound(error) {
|
|
17447
17482
|
return error instanceof Error && error.name === "ResourceNotFoundException";
|
|
17448
17483
|
}
|
|
17449
|
-
function isPlainRecord$
|
|
17484
|
+
function isPlainRecord$3(value) {
|
|
17450
17485
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
17451
17486
|
}
|
|
17452
17487
|
function isStateBorne(context) {
|
|
@@ -17497,7 +17532,7 @@ var PropertyReader = class {
|
|
|
17497
17532
|
optionalStringMap(key) {
|
|
17498
17533
|
const value = this.properties[key];
|
|
17499
17534
|
if (value === void 0) return void 0;
|
|
17500
|
-
if (isPlainRecord$
|
|
17535
|
+
if (isPlainRecord$3(value) && Object.values(value).every((v) => typeof v === "string")) return { ...value };
|
|
17501
17536
|
return this.refuse(`${key} must be a map of string values`);
|
|
17502
17537
|
}
|
|
17503
17538
|
optionalBoolean(key) {
|
|
@@ -17658,7 +17693,7 @@ var LogsDeliverySourceProvider = class {
|
|
|
17658
17693
|
const liveConfig = source.deliverySourceConfiguration;
|
|
17659
17694
|
if (liveConfig !== void 0 && Object.keys(liveConfig).length > 0) {
|
|
17660
17695
|
const declared = properties?.["DeliverySourceConfiguration"];
|
|
17661
|
-
result["DeliverySourceConfiguration"] = isPlainRecord$
|
|
17696
|
+
result["DeliverySourceConfiguration"] = isPlainRecord$3(declared) ? Object.fromEntries(Object.entries(liveConfig).filter(([k]) => k in declared)) : { ...liveConfig };
|
|
17662
17697
|
}
|
|
17663
17698
|
if (source.arn) try {
|
|
17664
17699
|
result["Tags"] = await readTags$1(this.client, source.arn);
|
|
@@ -17836,10 +17871,10 @@ var LogsDeliveryDestinationProvider = class {
|
|
|
17836
17871
|
if (destination.outputFormat !== void 0) result["OutputFormat"] = destination.outputFormat;
|
|
17837
17872
|
let policy = await this.readDestinationPolicy(physicalId);
|
|
17838
17873
|
const declared = properties?.["DeliveryDestinationPolicy"];
|
|
17839
|
-
const declaredDocument = context?.afterOwnWrite === true && isPlainRecord$
|
|
17840
|
-
if (isPlainRecord$
|
|
17874
|
+
const declaredDocument = context?.afterOwnWrite === true && isPlainRecord$3(declared) ? declared["DeliveryDestinationPolicy"] : void 0;
|
|
17875
|
+
if (isPlainRecord$3(declaredDocument)) policy = await settleDeclaredMember(policy, () => this.readDestinationPolicy(physicalId), (document) => policyDocumentMatchesDeclared(document, declaredDocument), declaredDocument, this.ownWriteRereadDelaysMs, () => warnUnsettledMember(this.logger, logicalId, "AWS::Logs::DeliveryDestination", "DeliveryDestinationPolicy"));
|
|
17841
17876
|
if (typeof policy === "object") result["DeliveryDestinationPolicy"] = {
|
|
17842
|
-
...isPlainRecord$
|
|
17877
|
+
...isPlainRecord$3(declared) && declared["DeliveryDestinationName"] !== void 0 && { DeliveryDestinationName: physicalId },
|
|
17843
17878
|
DeliveryDestinationPolicy: policy.value
|
|
17844
17879
|
};
|
|
17845
17880
|
try {
|
|
@@ -17871,7 +17906,7 @@ var LogsDeliveryDestinationProvider = class {
|
|
|
17871
17906
|
if (block === void 0) return void 0;
|
|
17872
17907
|
let problem;
|
|
17873
17908
|
const document = policyDocument$1(block);
|
|
17874
|
-
if (!isPlainRecord$
|
|
17909
|
+
if (!isPlainRecord$3(block)) problem = "DeliveryDestinationPolicy must be an object";
|
|
17875
17910
|
else if (block["DeliveryDestinationName"] !== void 0 && block["DeliveryDestinationName"] !== name) problem = "DeliveryDestinationPolicy.DeliveryDestinationName must equal the destination Name";
|
|
17876
17911
|
else if (document === void 0) problem = "DeliveryDestinationPolicy.DeliveryDestinationPolicy must be a policy document object";
|
|
17877
17912
|
if (problem === void 0) return document;
|
|
@@ -17894,9 +17929,9 @@ var LogsDeliveryDestinationProvider = class {
|
|
|
17894
17929
|
}
|
|
17895
17930
|
};
|
|
17896
17931
|
function policyDocument$1(block) {
|
|
17897
|
-
if (!isPlainRecord$
|
|
17932
|
+
if (!isPlainRecord$3(block)) return void 0;
|
|
17898
17933
|
const document = block["DeliveryDestinationPolicy"];
|
|
17899
|
-
if (isPlainRecord$
|
|
17934
|
+
if (isPlainRecord$3(document)) return JSON.stringify(document);
|
|
17900
17935
|
}
|
|
17901
17936
|
function parsePolicy(policy) {
|
|
17902
17937
|
try {
|
|
@@ -19736,7 +19771,7 @@ async function importImpl$30(input) {
|
|
|
19736
19771
|
const resp = await this.ssmClient.send(new GetParameterCommand({ Name: explicit }));
|
|
19737
19772
|
const arn = resp.Parameter?.ARN;
|
|
19738
19773
|
const declared = input.properties?.["Value"];
|
|
19739
|
-
const literalValue = typeof declared === "string" && !declared
|
|
19774
|
+
const literalValue = typeof declared === "string" && !mentionsDynamicReference(declared);
|
|
19740
19775
|
return {
|
|
19741
19776
|
physicalId: explicit,
|
|
19742
19777
|
attributes: definedAttributes({
|
|
@@ -26754,11 +26789,11 @@ function inDeclaredOrder(live, keyOf, declaredKeys) {
|
|
|
26754
26789
|
const INVALID_INSTANCE_NOT_FOUND = /* @__PURE__ */ new Set(["InvalidInstanceID.NotFound"]);
|
|
26755
26790
|
const INVALID_VOLUME_NOT_FOUND = /* @__PURE__ */ new Set(["InvalidVolume.NotFound"]);
|
|
26756
26791
|
const CREDIT_SPECIFICATION_NOT_APPLICABLE = /* @__PURE__ */ new Set(["InvalidInstanceID.NotFound", "UnsupportedOperation"]);
|
|
26757
|
-
async function readInstanceCurrentState(physicalId, properties) {
|
|
26792
|
+
async function readInstanceCurrentState(physicalId, properties, provenance) {
|
|
26758
26793
|
const instance = (await this.ec2Client.send(new DescribeInstancesCommand({ InstanceIds: [physicalId] }))).Reservations?.[0]?.Instances?.[0];
|
|
26759
26794
|
if (!instance || instance.State?.Name === "terminated" || instance.State?.Name === "shutting-down") return RESOURCE_NOT_FOUND;
|
|
26760
26795
|
try {
|
|
26761
|
-
return await readInstanceDetails.call(this, physicalId, instance, properties);
|
|
26796
|
+
return await readInstanceDetails.call(this, physicalId, instance, properties, provenance);
|
|
26762
26797
|
} catch (err) {
|
|
26763
26798
|
if (!isNamedError(err, INVALID_INSTANCE_NOT_FOUND)) markInstanceSubReadFailure(err);
|
|
26764
26799
|
throw err;
|
|
@@ -26771,7 +26806,7 @@ function markInstanceSubReadFailure(err) {
|
|
|
26771
26806
|
function isInstanceSubReadFailure(err) {
|
|
26772
26807
|
return typeof err === "object" && err !== null && instanceSubReadFailures.has(err);
|
|
26773
26808
|
}
|
|
26774
|
-
async function readInstanceDetails(physicalId, instance, properties) {
|
|
26809
|
+
async function readInstanceDetails(physicalId, instance, properties, provenance) {
|
|
26775
26810
|
const result = {};
|
|
26776
26811
|
if (instance.ImageId !== void 0) result["ImageId"] = instance.ImageId;
|
|
26777
26812
|
if (instance.InstanceType !== void 0) result["InstanceType"] = instance.InstanceType;
|
|
@@ -26880,7 +26915,7 @@ async function readInstanceDetails(physicalId, instance, properties) {
|
|
|
26880
26915
|
} catch (err) {
|
|
26881
26916
|
if (!isNamedError(err, INVALID_INSTANCE_NOT_FOUND)) throw err;
|
|
26882
26917
|
}
|
|
26883
|
-
if (properties?.["UserData"] != null && !
|
|
26918
|
+
if (properties?.["UserData"] != null && !userDataUnreadable(properties, provenance)) {
|
|
26884
26919
|
const attrResp = await this.ec2Client.send(new DescribeInstanceAttributeCommand({
|
|
26885
26920
|
InstanceId: physicalId,
|
|
26886
26921
|
Attribute: "userData"
|
|
@@ -26917,6 +26952,15 @@ function declaredBlockDeviceNames(properties) {
|
|
|
26917
26952
|
return names;
|
|
26918
26953
|
}
|
|
26919
26954
|
const readInstanceStateMethods = { readInstanceCurrentState };
|
|
26955
|
+
function userDataUnreadable(properties, provenance) {
|
|
26956
|
+
return recordedSecrecyOf({
|
|
26957
|
+
...provenance,
|
|
26958
|
+
properties
|
|
26959
|
+
}, {
|
|
26960
|
+
field: "properties",
|
|
26961
|
+
key: "UserData"
|
|
26962
|
+
}) !== "clear";
|
|
26963
|
+
}
|
|
26920
26964
|
|
|
26921
26965
|
// src/provisioning/providers/ec2/drift.ts
|
|
26922
26966
|
function subnetIpv6InTransition(subnet) {
|
|
@@ -26938,7 +26982,7 @@ async function readUnsettled$5(physicalId, logicalId, resourceType, names, recor
|
|
|
26938
26982
|
if (resourceType === "AWS::EC2::Subnet") return this.readSubnetCurrentState(physicalId, names, recordedProperties);
|
|
26939
26983
|
return this.readCurrentState(physicalId, logicalId, resourceType, recordedProperties);
|
|
26940
26984
|
}
|
|
26941
|
-
async function canonicalizeDriftPair$
|
|
26985
|
+
async function canonicalizeDriftPair$6(resourceType, baseline, aws, properties) {
|
|
26942
26986
|
if (resourceType === "AWS::EC2::Instance") {
|
|
26943
26987
|
const declared = declaredBlockDeviceNames(properties);
|
|
26944
26988
|
const recorded = baseline["BlockDeviceMappings"];
|
|
@@ -27011,7 +27055,7 @@ async function readCurrentStateOnce(physicalId, logicalId, resourceType, propert
|
|
|
27011
27055
|
case "AWS::EC2::NatGateway": return await this.readNatGatewayCurrentState(physicalId, properties, ownWrite);
|
|
27012
27056
|
case "AWS::EC2::RouteTable": return await this.readRouteTableCurrentState(physicalId, properties, ownWrite);
|
|
27013
27057
|
case "AWS::EC2::SecurityGroup": return await this.readSecurityGroupCurrentState(physicalId, properties, context);
|
|
27014
|
-
case "AWS::EC2::Instance": return await this.readInstanceCurrentState(physicalId, properties);
|
|
27058
|
+
case "AWS::EC2::Instance": return await this.readInstanceCurrentState(physicalId, properties, context?.provenance);
|
|
27015
27059
|
case "AWS::EC2::NetworkAcl": return await this.readNetworkAclCurrentState(physicalId, properties, ownWrite);
|
|
27016
27060
|
case "AWS::EC2::EIP": return await this.readEipCurrentState(physicalId, properties, ownWrite);
|
|
27017
27061
|
case "AWS::EC2::VPCGatewayAttachment": return await this.readVpcGatewayAttachmentCurrentState(physicalId, properties);
|
|
@@ -27031,7 +27075,7 @@ async function readCurrentStateOnce(physicalId, logicalId, resourceType, propert
|
|
|
27031
27075
|
throw err;
|
|
27032
27076
|
}
|
|
27033
27077
|
}
|
|
27034
|
-
function getDriftUnknownPaths$10(resourceType, properties) {
|
|
27078
|
+
function getDriftUnknownPaths$10(resourceType, properties, provenance) {
|
|
27035
27079
|
switch (resourceType) {
|
|
27036
27080
|
case "AWS::EC2::Instance": return [
|
|
27037
27081
|
"NetworkInterfaces",
|
|
@@ -27041,7 +27085,7 @@ function getDriftUnknownPaths$10(resourceType, properties) {
|
|
|
27041
27085
|
"Ipv6Addresses",
|
|
27042
27086
|
"LaunchTemplate",
|
|
27043
27087
|
"LicenseSpecifications",
|
|
27044
|
-
...
|
|
27088
|
+
...properties !== void 0 && userDataUnreadable(properties, provenance) ? ["UserData"] : []
|
|
27045
27089
|
];
|
|
27046
27090
|
case "AWS::EC2::VPC": {
|
|
27047
27091
|
const control = properties?.["VpcEncryptionControl"];
|
|
@@ -27115,7 +27159,7 @@ const driftMethods = {
|
|
|
27115
27159
|
subnetIpv6InTransition,
|
|
27116
27160
|
unsettledInTransition: unsettledInTransition$4,
|
|
27117
27161
|
readUnsettled: readUnsettled$5,
|
|
27118
|
-
canonicalizeDriftPair: canonicalizeDriftPair$
|
|
27162
|
+
canonicalizeDriftPair: canonicalizeDriftPair$6,
|
|
27119
27163
|
canonicalizeUnsettledProperties: canonicalizeUnsettledProperties$1,
|
|
27120
27164
|
readCurrentState: readCurrentState$29,
|
|
27121
27165
|
readCurrentStateOnce,
|
|
@@ -30562,7 +30606,7 @@ function getMethodAttribute(physicalId, attributeName) {
|
|
|
30562
30606
|
}
|
|
30563
30607
|
|
|
30564
30608
|
// src/provisioning/providers/apigateway/read-state.ts
|
|
30565
|
-
function canonicalizeDriftProperties$
|
|
30609
|
+
function canonicalizeDriftProperties$3(resourceType, properties) {
|
|
30566
30610
|
if (resourceType === "AWS::ApiGateway::RestApi") {
|
|
30567
30611
|
const key = "Policy";
|
|
30568
30612
|
const policy = properties[key];
|
|
@@ -30987,7 +31031,7 @@ var ApiGatewayProvider = class {
|
|
|
30987
31031
|
return sleep$2.call(this, ms);
|
|
30988
31032
|
}
|
|
30989
31033
|
canonicalizeDriftProperties(resourceType, properties) {
|
|
30990
|
-
return canonicalizeDriftProperties$
|
|
31034
|
+
return canonicalizeDriftProperties$3.call(this, resourceType, properties);
|
|
30991
31035
|
}
|
|
30992
31036
|
getDriftUnknownPaths(resourceType) {
|
|
30993
31037
|
return getDriftUnknownPaths$9.call(this, resourceType);
|
|
@@ -31125,7 +31169,7 @@ function getDriftUnknownPaths$8(resourceType, properties) {
|
|
|
31125
31169
|
if (resourceType === "AWS::ApiGatewayV2::Integration" && properties !== void 0 && Object.keys(properties).length > 0 && properties["ConnectionType"] !== "VPC_LINK") return ["TlsConfig"];
|
|
31126
31170
|
return [];
|
|
31127
31171
|
}
|
|
31128
|
-
async function canonicalizeDriftPair$
|
|
31172
|
+
async function canonicalizeDriftPair$5(resourceType, baseline, aws, properties = {}) {
|
|
31129
31173
|
if (resourceType !== "AWS::ApiGatewayV2::Api" && resourceType !== "AWS::ApiGatewayV2::Stage") return {
|
|
31130
31174
|
baseline,
|
|
31131
31175
|
aws
|
|
@@ -32570,7 +32614,7 @@ var ApiGatewayV2Provider = class {
|
|
|
32570
32614
|
return getDriftUnknownPaths$8.call(this, resourceType, properties);
|
|
32571
32615
|
}
|
|
32572
32616
|
canonicalizeDriftPair(resourceType, baseline, aws, properties = {}) {
|
|
32573
|
-
return canonicalizeDriftPair$
|
|
32617
|
+
return canonicalizeDriftPair$5.call(this, resourceType, baseline, aws, properties);
|
|
32574
32618
|
}
|
|
32575
32619
|
readCurrentState(physicalId, _logicalId, resourceType, properties) {
|
|
32576
32620
|
return readCurrentState$27.call(this, physicalId, _logicalId, resourceType, properties);
|
|
@@ -38609,7 +38653,7 @@ function getDriftUnorderedPaths$4(resourceType) {
|
|
|
38609
38653
|
if (resourceType !== "AWS::ElasticLoadBalancingV2::TargetGroup") return [];
|
|
38610
38654
|
return ["Targets"];
|
|
38611
38655
|
}
|
|
38612
|
-
async function canonicalizeDriftPair$
|
|
38656
|
+
async function canonicalizeDriftPair$4(resourceType, baseline, aws, properties) {
|
|
38613
38657
|
const unchanged = {
|
|
38614
38658
|
baseline,
|
|
38615
38659
|
aws
|
|
@@ -39013,7 +39057,7 @@ var ELBv2Provider = class {
|
|
|
39013
39057
|
return getDriftUnorderedPaths$4.call(this, resourceType);
|
|
39014
39058
|
}
|
|
39015
39059
|
canonicalizeDriftPair(resourceType, baseline, aws, properties) {
|
|
39016
|
-
return canonicalizeDriftPair$
|
|
39060
|
+
return canonicalizeDriftPair$4.call(this, resourceType, baseline, aws, properties);
|
|
39017
39061
|
}
|
|
39018
39062
|
readListener(physicalId) {
|
|
39019
39063
|
return readListener.call(this, physicalId);
|
|
@@ -41726,7 +41770,7 @@ function getDriftUnknownPaths$4(resourceType) {
|
|
|
41726
41770
|
function getDriftUnorderedPaths$3(resourceType) {
|
|
41727
41771
|
return resourceType === "AWS::DocDB::DBCluster" ? ["EnableCloudwatchLogsExports"] : [];
|
|
41728
41772
|
}
|
|
41729
|
-
function canonicalizeDriftProperties$
|
|
41773
|
+
function canonicalizeDriftProperties$2(resourceType, properties) {
|
|
41730
41774
|
if (resourceType !== "AWS::DocDB::DBCluster") return properties;
|
|
41731
41775
|
const out = { ...properties };
|
|
41732
41776
|
const logs = out["EnableCloudwatchLogsExports"];
|
|
@@ -42087,7 +42131,7 @@ var DocDBProvider = class {
|
|
|
42087
42131
|
return getDriftUnorderedPaths$3.call(this, resourceType);
|
|
42088
42132
|
}
|
|
42089
42133
|
canonicalizeDriftProperties(resourceType, properties) {
|
|
42090
|
-
return canonicalizeDriftProperties$
|
|
42134
|
+
return canonicalizeDriftProperties$2.call(this, resourceType, properties);
|
|
42091
42135
|
}
|
|
42092
42136
|
canonicalizeUnsettledProperties(resourceType, properties) {
|
|
42093
42137
|
return canonicalizeUnsettledProperties.call(this, resourceType, properties);
|
|
@@ -44004,6 +44048,54 @@ async function readUnsettled$3(physicalId, logicalId, resourceType, names, recor
|
|
|
44004
44048
|
function getDriftUnorderedPaths$2(resourceType) {
|
|
44005
44049
|
return resourceType === "AWS::Route53::HostedZone" ? ["VPCs"] : [];
|
|
44006
44050
|
}
|
|
44051
|
+
const DRIFT_RECORD_SET = "AWS::Route53::RecordSet";
|
|
44052
|
+
const DRIFT_RECORD_SET_GROUP = "AWS::Route53::RecordSetGroup";
|
|
44053
|
+
function integerOf$1(value) {
|
|
44054
|
+
if (typeof value !== "string" || !/^-?\d+$/.test(value)) return void 0;
|
|
44055
|
+
const parsed = Number(value);
|
|
44056
|
+
return Number.isSafeInteger(parsed) ? parsed : void 0;
|
|
44057
|
+
}
|
|
44058
|
+
function isPlainRecord$2(value) {
|
|
44059
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
44060
|
+
}
|
|
44061
|
+
function canonicalRecord(record) {
|
|
44062
|
+
let out;
|
|
44063
|
+
for (const key of ["TTL", "Weight"]) {
|
|
44064
|
+
const parsed = integerOf$1(record[key]);
|
|
44065
|
+
if (parsed === void 0) continue;
|
|
44066
|
+
out ??= { ...record };
|
|
44067
|
+
out[key] = parsed;
|
|
44068
|
+
}
|
|
44069
|
+
const geo = record["GeoProximityLocation"];
|
|
44070
|
+
if (isPlainRecord$2(geo)) {
|
|
44071
|
+
const bias = integerOf$1(geo["Bias"]);
|
|
44072
|
+
if (bias !== void 0) {
|
|
44073
|
+
out ??= { ...record };
|
|
44074
|
+
out["GeoProximityLocation"] = {
|
|
44075
|
+
...geo,
|
|
44076
|
+
Bias: bias
|
|
44077
|
+
};
|
|
44078
|
+
}
|
|
44079
|
+
}
|
|
44080
|
+
return out ?? record;
|
|
44081
|
+
}
|
|
44082
|
+
function canonicalizeDriftProperties$1(resourceType, properties) {
|
|
44083
|
+
if (resourceType === DRIFT_RECORD_SET) return canonicalRecord(properties);
|
|
44084
|
+
if (resourceType !== DRIFT_RECORD_SET_GROUP) return properties;
|
|
44085
|
+
const records = properties["RecordSets"];
|
|
44086
|
+
if (!Array.isArray(records)) return properties;
|
|
44087
|
+
let changed = false;
|
|
44088
|
+
const folded = records.map((record) => {
|
|
44089
|
+
if (!isPlainRecord$2(record)) return record;
|
|
44090
|
+
const canonical = canonicalRecord(record);
|
|
44091
|
+
if (canonical !== record) changed = true;
|
|
44092
|
+
return canonical;
|
|
44093
|
+
});
|
|
44094
|
+
return changed ? {
|
|
44095
|
+
...properties,
|
|
44096
|
+
RecordSets: folded
|
|
44097
|
+
} : properties;
|
|
44098
|
+
}
|
|
44007
44099
|
async function readHostedZone(physicalId, properties, throwOnFailedQueryLoggingRead = false) {
|
|
44008
44100
|
let resp;
|
|
44009
44101
|
try {
|
|
@@ -44453,6 +44545,9 @@ var Route53Provider = class {
|
|
|
44453
44545
|
getDriftUnorderedPaths(resourceType) {
|
|
44454
44546
|
return getDriftUnorderedPaths$2.call(this, resourceType);
|
|
44455
44547
|
}
|
|
44548
|
+
canonicalizeDriftProperties(resourceType, properties) {
|
|
44549
|
+
return canonicalizeDriftProperties$1.call(this, resourceType, properties);
|
|
44550
|
+
}
|
|
44456
44551
|
readHostedZone(physicalId, properties, throwOnFailedQueryLoggingRead) {
|
|
44457
44552
|
return readHostedZone.call(this, physicalId, properties, throwOnFailedQueryLoggingRead);
|
|
44458
44553
|
}
|
|
@@ -45026,6 +45121,11 @@ function readEnabledMfas(properties) {
|
|
|
45026
45121
|
function hasMfaConfigProps(properties) {
|
|
45027
45122
|
return readEnabledMfas(properties).declaresFactor || !!properties["EmailAuthenticationMessage"] || !!properties["EmailAuthenticationSubject"] || !!properties["WebAuthnRelyingPartyID"] || !!properties["WebAuthnUserVerification"] || !!properties["WebAuthnFactorConfiguration"];
|
|
45028
45123
|
}
|
|
45124
|
+
function clearsRemovedMfaConfig(properties, previousProperties, declaredMfaConfiguration) {
|
|
45125
|
+
const resolvesOff = declaredMfaConfiguration === "OFF" || classifyDeclaredMfaConfiguration(properties["MfaConfiguration"]) === "absent";
|
|
45126
|
+
const previousDeclaresFactor = readEnabledMfas(previousProperties).declaresFactor || !!previousProperties["EmailAuthenticationMessage"] || !!previousProperties["EmailAuthenticationSubject"];
|
|
45127
|
+
return resolvesOff && !hasMfaConfigProps(properties) && previousDeclaresFactor;
|
|
45128
|
+
}
|
|
45029
45129
|
function buildMfaConfigRequest(physicalId, properties, logger, declaredMfaConfiguration = "", maskSecrets = (text) => text) {
|
|
45030
45130
|
const { factors: enabledMfas, declaresFactor, malformed: enabledMfasMalformed, blank: enabledMfasBlank } = readEnabledMfas(properties);
|
|
45031
45131
|
const warn = (message) => logger?.warn(maskSecrets(message));
|
|
@@ -45235,11 +45335,33 @@ async function retryOnTransientControlPlane$1(fn, label, maxAttempts = 3) {
|
|
|
45235
45335
|
}
|
|
45236
45336
|
}
|
|
45237
45337
|
async function turnOffRemovedMfa(logicalId, physicalId, previousMfaConfiguration) {
|
|
45338
|
+
await this.resetMfaConfigOff(logicalId, physicalId, "bare");
|
|
45339
|
+
this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): the template no longer declares ` + safeMsg`MfaConfiguration or an MFA factor, so cdkd turned MFA OFF (it was ` + safeMsg`${previousMfaConfiguration}), as CloudFormation does on the same edit. Declare ` + safeMsg`MfaConfiguration and EnabledMfas to keep MFA on.`);
|
|
45340
|
+
}
|
|
45341
|
+
async function resetMfaConfigOff(logicalId, physicalId, onReadFailure) {
|
|
45342
|
+
let webAuthn;
|
|
45343
|
+
try {
|
|
45344
|
+
webAuthn = (await this.retryOnTransientControlPlane(() => this.getClient().send(new GetUserPoolMfaConfigCommand({ UserPoolId: physicalId })), `GetUserPoolMfaConfig(${physicalId}) before the MFA reset`)).WebAuthnConfiguration;
|
|
45345
|
+
} catch (error) {
|
|
45346
|
+
this.logger.debug(safeMsg`GetUserPoolMfaConfig failed for UserPool ${physicalId} before the MFA reset ` + safeMsg`(${error instanceof Error ? error.name : typeof error}): ` + safeMsg`${describeAwsFailure(error).detail}`);
|
|
45347
|
+
const aws = pasteableAwsCommand();
|
|
45348
|
+
const region = await this.regionArg(aws);
|
|
45349
|
+
if (onReadFailure === "bare") this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): cdkd could not read the pool's ` + safeMsg`MFA configuration, so turning MFA OFF could not carry a WebAuthn (passkey) ` + safeMsg`configuration the pool may hold; check it with ${aws`aws cognito-idp get-user-pool-mfa-config --user-pool-id ${physicalId}${region}`.render()}.`);
|
|
45350
|
+
else {
|
|
45351
|
+
this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): cdkd could not read the pool's ` + safeMsg`MFA configuration, so it did not reset the removed MFA factors (the reset would ` + safeMsg`also drop a WebAuthn configuration it could not see). A removed factor such as ` + safeMsg`the software token may still be enabled; check it with ${aws`aws cognito-idp get-user-pool-mfa-config --user-pool-id ${physicalId}${region}`.render()}.`);
|
|
45352
|
+
return;
|
|
45353
|
+
}
|
|
45354
|
+
}
|
|
45355
|
+
const carriedFields = webAuthn === void 0 ? {} : {
|
|
45356
|
+
...webAuthn.RelyingPartyId !== void 0 && { RelyingPartyId: webAuthn.RelyingPartyId },
|
|
45357
|
+
...webAuthn.UserVerification !== void 0 && { UserVerification: webAuthn.UserVerification },
|
|
45358
|
+
...webAuthn.FactorConfiguration !== void 0 && { FactorConfiguration: webAuthn.FactorConfiguration }
|
|
45359
|
+
};
|
|
45238
45360
|
await this.retryOnTransientControlPlane(() => this.getClient().send(new SetUserPoolMfaConfigCommand({
|
|
45239
45361
|
UserPoolId: physicalId,
|
|
45240
|
-
MfaConfiguration: "OFF"
|
|
45362
|
+
MfaConfiguration: "OFF",
|
|
45363
|
+
...Object.keys(carriedFields).length > 0 && { WebAuthnConfiguration: carriedFields }
|
|
45241
45364
|
})), `SetUserPoolMfaConfig(${physicalId})`);
|
|
45242
|
-
this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): the template no longer declares ` + safeMsg`MfaConfiguration or an MFA factor, so cdkd turned MFA OFF (it was ` + safeMsg`${previousMfaConfiguration}), as CloudFormation does on the same edit. Declare ` + safeMsg`MfaConfiguration and EnabledMfas to keep MFA on.`);
|
|
45243
45365
|
}
|
|
45244
45366
|
|
|
45245
45367
|
// src/provisioning/providers/cognito/read-state.ts
|
|
@@ -45247,6 +45369,26 @@ function canonicalizeDesiredProperties$1(resourceType, properties) {
|
|
|
45247
45369
|
if (resourceType !== "AWS::Cognito::UserPool") return properties;
|
|
45248
45370
|
return narrowMfaConfiguration(properties);
|
|
45249
45371
|
}
|
|
45372
|
+
function canonicalizeDriftPair$3(resourceType, baseline, aws, properties = {}) {
|
|
45373
|
+
const unchanged = Promise.resolve({
|
|
45374
|
+
baseline,
|
|
45375
|
+
aws
|
|
45376
|
+
});
|
|
45377
|
+
if (resourceType !== "AWS::Cognito::UserPool") return unchanged;
|
|
45378
|
+
const declared = properties["MfaConfiguration"];
|
|
45379
|
+
if (declared !== void 0 && declared !== "OFF") return unchanged;
|
|
45380
|
+
if (hasMfaConfigProps(properties)) return unchanged;
|
|
45381
|
+
if (baseline["MfaConfiguration"] !== "OFF") return unchanged;
|
|
45382
|
+
const recorded = baseline["EnabledMfas"];
|
|
45383
|
+
if (!Array.isArray(recorded) || recorded.length === 0 || recorded.some((factor) => factor !== "SOFTWARE_TOKEN_MFA")) return unchanged;
|
|
45384
|
+
return Promise.resolve({
|
|
45385
|
+
baseline: {
|
|
45386
|
+
...baseline,
|
|
45387
|
+
EnabledMfas: []
|
|
45388
|
+
},
|
|
45389
|
+
aws
|
|
45390
|
+
});
|
|
45391
|
+
}
|
|
45250
45392
|
async function readCurrentState$16(physicalId, _logicalId, resourceType) {
|
|
45251
45393
|
if (resourceType !== "AWS::Cognito::UserPool") return void 0;
|
|
45252
45394
|
let resp;
|
|
@@ -45521,7 +45663,7 @@ function sendsKeptMember(member, value) {
|
|
|
45521
45663
|
function previousMfaOn(previous) {
|
|
45522
45664
|
const declared = previous["MfaConfiguration"];
|
|
45523
45665
|
if (declared === "ON" || declared === "OPTIONAL") return declared;
|
|
45524
|
-
if ((declared === void 0 || declared === null || declared === "") && readEnabledMfas(previous).declaresFactor) return "OPTIONAL";
|
|
45666
|
+
if ((declared === void 0 || declared === null || declared === "") && (readEnabledMfas(previous).declaresFactor || !!previous["EmailAuthenticationMessage"] || !!previous["EmailAuthenticationSubject"])) return "OPTIONAL";
|
|
45525
45667
|
return "";
|
|
45526
45668
|
}
|
|
45527
45669
|
|
|
@@ -45698,13 +45840,23 @@ function warnOnUnremovablePoliciesSubKeys(physicalId, properties, previousProper
|
|
|
45698
45840
|
function sendsMessageMember(value) {
|
|
45699
45841
|
return value !== void 0 && value !== "";
|
|
45700
45842
|
}
|
|
45701
|
-
function warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties) {
|
|
45843
|
+
function warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties, previousIsLiveReadback = false) {
|
|
45702
45844
|
for (const [member, unset] of Object.entries(KEPT_ON_REMOVAL_MEMBERS)) {
|
|
45703
45845
|
if (!declaresMember(previousProperties[member], unset)) continue;
|
|
45704
45846
|
if (sendsKeptMember(member, properties[member])) continue;
|
|
45705
45847
|
this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): the template no longer declares ` + safeMsg`${member}, and UpdateUserPool keeps a member it omits, so the pool keeps its ` + safeMsg`current ${member}. CloudFormation keeps it on the same edit too, so cdkd sends ` + safeMsg`no reset. To change it, declare ${member} with the value you want.`);
|
|
45706
45848
|
}
|
|
45849
|
+
if (previousIsLiveReadback || hasMfaConfigProps(properties)) return;
|
|
45850
|
+
const keptWebAuthn = WEB_AUTHN_PROPERTIES.filter((key) => !!previousProperties[key]);
|
|
45851
|
+
if (keptWebAuthn.length === 0) return;
|
|
45852
|
+
const kept = keptWebAuthn.join(", ");
|
|
45853
|
+
this.logger.warn(safeMsg`Cognito User Pool ${logicalId} (${physicalId}): the template no longer declares ` + safeMsg`${kept}, and with no MFA property left cdkd sends no WebAuthn change, so the pool ` + safeMsg`keeps its current WebAuthn configuration. To change it, declare the WebAuthn ` + safeMsg`properties with the values you want.`);
|
|
45707
45854
|
}
|
|
45855
|
+
const WEB_AUTHN_PROPERTIES = [
|
|
45856
|
+
"WebAuthnRelyingPartyID",
|
|
45857
|
+
"WebAuthnUserVerification",
|
|
45858
|
+
"WebAuthnFactorConfiguration"
|
|
45859
|
+
];
|
|
45708
45860
|
function dcrConfigurationUpdate(properties, previousProperties) {
|
|
45709
45861
|
if (properties["DcrConfiguration"]) return properties["DcrConfiguration"];
|
|
45710
45862
|
if (previousProperties["DcrConfiguration"]) return { EnableStatus: "Disabled" };
|
|
@@ -45739,8 +45891,9 @@ async function update$17(logicalId, physicalId, resourceType, properties, previo
|
|
|
45739
45891
|
}
|
|
45740
45892
|
const liveMfa = mfaConfiguration === "" && hasMfaConfigProps(properties) ? await this.readLiveMfaConfiguration(physicalId) : void 0;
|
|
45741
45893
|
this.warnOnUnremovablePoliciesSubKeys(physicalId, properties, previousProperties);
|
|
45742
|
-
this.warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties);
|
|
45894
|
+
this.warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties, context?.desiredFromAwsReadback === true);
|
|
45743
45895
|
const removedMfa = classifyDeclaredMfaConfiguration(properties["MfaConfiguration"]) === "absent" && !hasMfaConfigProps(properties) ? previousMfaOn(previousProperties) : "";
|
|
45896
|
+
const clearRemovedMfa = clearsRemovedMfaConfig(properties, previousProperties, mfaConfiguration);
|
|
45744
45897
|
const mfaFirstPrior = mfaMayNeedToPrecedeUpdateUserPool(properties, mfaConfiguration) ? await this.readMfaFirstPrior(physicalId) : void 0;
|
|
45745
45898
|
try {
|
|
45746
45899
|
const updateParams = { UserPoolId: physicalId };
|
|
@@ -45791,6 +45944,7 @@ async function update$17(logicalId, physicalId, resourceType, properties, previo
|
|
|
45791
45944
|
const userPool = (await this.getClient().send(new DescribeUserPoolCommand({ UserPoolId: physicalId }))).UserPool;
|
|
45792
45945
|
await this.untagRemovedUserPoolTags(logicalId, physicalId, resourceType, userPool?.Arn, properties["UserPoolTags"], previousProperties["UserPoolTags"]);
|
|
45793
45946
|
if (removedMfa !== "") await this.turnOffRemovedMfa(logicalId, physicalId, removedMfa);
|
|
45947
|
+
else if (clearRemovedMfa) await this.resetMfaConfigOff(logicalId, physicalId, "skip");
|
|
45794
45948
|
this.logger.debug(`Successfully updated Cognito User Pool ${logicalId}`);
|
|
45795
45949
|
const region = await this.getClient().config.region();
|
|
45796
45950
|
const { urlSuffix } = derivePartitionAndUrlSuffix(region);
|
|
@@ -46201,6 +46355,9 @@ var CognitoUserPoolProvider = class {
|
|
|
46201
46355
|
canonicalizeDesiredProperties(resourceType, properties) {
|
|
46202
46356
|
return canonicalizeDesiredProperties$1.call(this, resourceType, properties);
|
|
46203
46357
|
}
|
|
46358
|
+
canonicalizeDriftPair(resourceType, baseline, aws, properties) {
|
|
46359
|
+
return canonicalizeDriftPair$3.call(this, resourceType, baseline, aws, properties);
|
|
46360
|
+
}
|
|
46204
46361
|
getClient() {
|
|
46205
46362
|
if (!this.cognitoClient) this.cognitoClient = new CognitoIdentityProviderClient({
|
|
46206
46363
|
...ambientClientDefaults(),
|
|
@@ -46251,12 +46408,15 @@ var CognitoUserPoolProvider = class {
|
|
|
46251
46408
|
warnOnUnremovablePoliciesSubKeys(physicalId, properties, previousProperties) {
|
|
46252
46409
|
return warnOnUnremovablePoliciesSubKeys.call(this, physicalId, properties, previousProperties);
|
|
46253
46410
|
}
|
|
46254
|
-
warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties) {
|
|
46255
|
-
return warnOnKeptRemovedMembers.call(this, logicalId, physicalId, properties, previousProperties);
|
|
46411
|
+
warnOnKeptRemovedMembers(logicalId, physicalId, properties, previousProperties, previousIsLiveReadback = false) {
|
|
46412
|
+
return warnOnKeptRemovedMembers.call(this, logicalId, physicalId, properties, previousProperties, previousIsLiveReadback);
|
|
46256
46413
|
}
|
|
46257
46414
|
turnOffRemovedMfa(logicalId, physicalId, previousMfaConfiguration) {
|
|
46258
46415
|
return turnOffRemovedMfa.call(this, logicalId, physicalId, previousMfaConfiguration);
|
|
46259
46416
|
}
|
|
46417
|
+
resetMfaConfigOff(logicalId, physicalId, onReadFailure) {
|
|
46418
|
+
return resetMfaConfigOff.call(this, logicalId, physicalId, onReadFailure);
|
|
46419
|
+
}
|
|
46260
46420
|
update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
46261
46421
|
return update$17.call(this, logicalId, physicalId, resourceType, properties, previousProperties, context);
|
|
46262
46422
|
}
|
|
@@ -48514,14 +48674,16 @@ async function updateGraphQLSchema(logicalId, physicalId, resourceType, properti
|
|
|
48514
48674
|
wasReplaced: false
|
|
48515
48675
|
};
|
|
48516
48676
|
const apiId = properties["ApiId"] ?? recordedApiId;
|
|
48677
|
+
let started;
|
|
48517
48678
|
try {
|
|
48518
|
-
await this.getClient().send(new StartSchemaCreationCommand({
|
|
48679
|
+
started = await this.getClient().send(new StartSchemaCreationCommand({
|
|
48519
48680
|
apiId,
|
|
48520
48681
|
definition: Buffer.from(definition, "utf-8")
|
|
48521
48682
|
}));
|
|
48522
48683
|
} catch (error) {
|
|
48523
48684
|
throw this.wrapUpdateError(error, resourceType, logicalId, physicalId, "GraphqlSchema", mask);
|
|
48524
48685
|
}
|
|
48686
|
+
await this.waitForSchemaCreation(apiId, logicalId, resourceType, "update", mask, started?.status);
|
|
48525
48687
|
return {
|
|
48526
48688
|
physicalId,
|
|
48527
48689
|
wasReplaced: false
|
|
@@ -49256,29 +49418,31 @@ async function createGraphQLSchema(logicalId, resourceType, properties, context)
|
|
|
49256
49418
|
if (!apiId) throw new ProvisioningError(`ApiId is required for GraphQLSchema ${logicalId}`, resourceType, logicalId);
|
|
49257
49419
|
const definition = properties["Definition"];
|
|
49258
49420
|
const definitionS3Location = properties["DefinitionS3Location"];
|
|
49421
|
+
let started;
|
|
49259
49422
|
try {
|
|
49260
49423
|
if (definition) {
|
|
49261
49424
|
if (definitionS3Location !== void 0) this.logger.warn(`${resourceType} ${logicalId}: both Definition and DefinitionS3Location are set — using the inline Definition and ignoring DefinitionS3Location (CFn treats them as alternatives)`);
|
|
49262
|
-
await this.getClient().send(new StartSchemaCreationCommand({
|
|
49425
|
+
started = await this.getClient().send(new StartSchemaCreationCommand({
|
|
49263
49426
|
apiId,
|
|
49264
49427
|
definition: new TextEncoder().encode(definition)
|
|
49265
49428
|
}));
|
|
49266
49429
|
} else if (definitionS3Location !== void 0) {
|
|
49267
49430
|
const body = await this.fetchS3LocationBody(definitionS3Location, resourceType, logicalId, "DefinitionS3Location", maskerOrIdentity(context?.maskSecrets));
|
|
49268
|
-
await this.getClient().send(new StartSchemaCreationCommand({
|
|
49431
|
+
started = await this.getClient().send(new StartSchemaCreationCommand({
|
|
49269
49432
|
apiId,
|
|
49270
49433
|
definition: new TextEncoder().encode(body)
|
|
49271
49434
|
}));
|
|
49272
49435
|
}
|
|
49273
49436
|
this.logger.debug(`Successfully started schema creation for ${logicalId}`);
|
|
49274
|
-
return {
|
|
49275
|
-
physicalId: apiId,
|
|
49276
|
-
attributes: {}
|
|
49277
|
-
};
|
|
49278
49437
|
} catch (error) {
|
|
49279
49438
|
const cause = error instanceof Error ? error : void 0;
|
|
49280
49439
|
throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to create GraphQL Schema ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
|
|
49281
49440
|
}
|
|
49441
|
+
if (definition || definitionS3Location !== void 0) await this.waitForSchemaCreation(apiId, logicalId, resourceType, "create", maskerOrIdentity(context?.maskSecrets), started?.status);
|
|
49442
|
+
return {
|
|
49443
|
+
physicalId: apiId,
|
|
49444
|
+
attributes: {}
|
|
49445
|
+
};
|
|
49282
49446
|
}
|
|
49283
49447
|
async function createDataSource(logicalId, resourceType, properties, context) {
|
|
49284
49448
|
this.logger.debug(`Creating DataSource ${logicalId}`);
|
|
@@ -49582,6 +49746,33 @@ async function readGraphQLSchema(physicalId, properties) {
|
|
|
49582
49746
|
Definition: definitionToReturn
|
|
49583
49747
|
};
|
|
49584
49748
|
}
|
|
49749
|
+
async function canonicalizeDriftPair$2(resourceType, baseline, aws, properties) {
|
|
49750
|
+
const unchanged = {
|
|
49751
|
+
baseline,
|
|
49752
|
+
aws
|
|
49753
|
+
};
|
|
49754
|
+
if (resourceType !== "AWS::AppSync::GraphQLSchema" || properties === void 0) return unchanged;
|
|
49755
|
+
const location = properties["DefinitionS3Location"];
|
|
49756
|
+
const recorded = baseline["Definition"];
|
|
49757
|
+
const live = aws["Definition"];
|
|
49758
|
+
if (properties["Definition"] !== void 0 || typeof location !== "string" || location === "" || typeof recorded !== "string" || typeof live !== "string" || live === "" || recorded === live) return unchanged;
|
|
49759
|
+
let body;
|
|
49760
|
+
try {
|
|
49761
|
+
body = await this.fetchS3LocationBody(location, resourceType, "(drift baseline heal)", "DefinitionS3Location");
|
|
49762
|
+
} catch (err) {
|
|
49763
|
+
const cause = err instanceof Error && err.cause instanceof Error ? err.cause : err;
|
|
49764
|
+
this.logger.debug(safeMsg`Could not read the declared GraphQL schema object (${cause instanceof Error ? cause.name : "unknown error"}); comparing Definition against the recorded baseline`);
|
|
49765
|
+
return unchanged;
|
|
49766
|
+
}
|
|
49767
|
+
const [declared, current] = await Promise.all([this.canonicalizeSdl(body, "state"), this.canonicalizeSdl(live, "aws")]);
|
|
49768
|
+
return declared === current ? {
|
|
49769
|
+
baseline: {
|
|
49770
|
+
...baseline,
|
|
49771
|
+
Definition: live
|
|
49772
|
+
},
|
|
49773
|
+
aws
|
|
49774
|
+
} : unchanged;
|
|
49775
|
+
}
|
|
49585
49776
|
async function readGraphQLApi(physicalId) {
|
|
49586
49777
|
let api;
|
|
49587
49778
|
try {
|
|
@@ -49661,6 +49852,53 @@ function lambdaAuthorizerConfigToCfn(config) {
|
|
|
49661
49852
|
return out;
|
|
49662
49853
|
}
|
|
49663
49854
|
|
|
49855
|
+
// src/provisioning/providers/appsync/schema-wait.ts
|
|
49856
|
+
const SCHEMA_POLL_MAX_INTERVAL_MS = 5e3;
|
|
49857
|
+
const SCHEMA_WAIT_MAX_MS = 9e5;
|
|
49858
|
+
const APPLIED = /* @__PURE__ */ new Set(["SUCCESS", "ACTIVE"]);
|
|
49859
|
+
async function waitForSchemaCreation(apiId, logicalId, resourceType, phase, mask, startStatus) {
|
|
49860
|
+
const userTimeoutMs = resolvedResourceTimeoutMs(resourceType);
|
|
49861
|
+
const maxWaitMs = userTimeoutMs === void 0 ? SCHEMA_WAIT_MAX_MS : Math.min(SCHEMA_WAIT_MAX_MS, userTimeoutMs / 2);
|
|
49862
|
+
const wrapRefusedError = (status, details) => {
|
|
49863
|
+
const reason = describeAwsStatusReason({ message: details }, "");
|
|
49864
|
+
const build = (text, cause) => new ProvisioningError(`GraphQL schema ${logicalId} ${phase} failed: AWS AppSync reports ${status}${text}`, resourceType, logicalId, apiId, cause);
|
|
49865
|
+
if (!reason.redacted) return markNonRetryable(build(""));
|
|
49866
|
+
this.logger.debug(mask(build(`: ${mask(reason.detail)}`).message));
|
|
49867
|
+
return markNonRetryable(markRedactedCause(build(`. ${reason.summary}`, new Error(reason.detail))));
|
|
49868
|
+
};
|
|
49869
|
+
const isRefusal = (status) => status !== void 0 && status !== "PROCESSING" && !APPLIED.has(status);
|
|
49870
|
+
const startedAt = this.now();
|
|
49871
|
+
const watch = startInterruptWatch(`GraphQL schema ${logicalId} ${phase}`);
|
|
49872
|
+
try {
|
|
49873
|
+
let lastStatus = startStatus;
|
|
49874
|
+
let interval = 1e3;
|
|
49875
|
+
for (;;) {
|
|
49876
|
+
if (watch.isInterrupted()) throw watch.onInterrupted();
|
|
49877
|
+
try {
|
|
49878
|
+
const response = await this.getClient().send(new GetSchemaCreationStatusCommand({ apiId }));
|
|
49879
|
+
const status = response.status;
|
|
49880
|
+
lastStatus = status;
|
|
49881
|
+
if (status !== void 0 && APPLIED.has(status)) return;
|
|
49882
|
+
if (isRefusal(status)) throw wrapRefusedError(status, response.details);
|
|
49883
|
+
this.logger.debug(safeMsg`GraphQL schema ${logicalId}: ${status ?? "no status"}, waiting`);
|
|
49884
|
+
} catch (error) {
|
|
49885
|
+
if (error instanceof ProvisioningError) throw error;
|
|
49886
|
+
if (!isThrottlingError(error) && !isTransientServerError(error)) {
|
|
49887
|
+
const cause = error instanceof Error ? error : void 0;
|
|
49888
|
+
throw this.wrapCaughtError(mask, error, (text) => new ProvisioningError(`Failed to read the schema status of GraphQL schema ${logicalId} after its ${phase}: ${text}`, resourceType, logicalId, apiId, cause));
|
|
49889
|
+
}
|
|
49890
|
+
this.logger.debug(safeMsg`GraphQL schema ${logicalId}: status read failed transiently (${describeAwsFailure(error).summary}), re-polling`);
|
|
49891
|
+
}
|
|
49892
|
+
const remainingMs = maxWaitMs - (this.now() - startedAt);
|
|
49893
|
+
if (remainingMs <= 0) throw markNonRetryable(new ProvisioningError(`GraphQL schema ${logicalId} was not applied within ${Math.round(maxWaitMs / 1e3)}s of its ${phase} (last status: ${lastStatus ?? "unknown"}). AppSync may still be applying it: check 'aws appsync get-schema-creation-status --api-id ${mask(apiId)}', then deploy again.`, resourceType, logicalId, apiId));
|
|
49894
|
+
await this.sleep(Math.min(interval, remainingMs));
|
|
49895
|
+
interval = Math.min(interval * 2, SCHEMA_POLL_MAX_INTERVAL_MS);
|
|
49896
|
+
}
|
|
49897
|
+
} finally {
|
|
49898
|
+
watch.dispose();
|
|
49899
|
+
}
|
|
49900
|
+
}
|
|
49901
|
+
|
|
49664
49902
|
// src/provisioning/providers/appsync/read-children.ts
|
|
49665
49903
|
async function readDataSource(physicalId) {
|
|
49666
49904
|
const [apiId, name] = physicalId.split("|");
|
|
@@ -49862,6 +50100,8 @@ var AppSyncProvider = class {
|
|
|
49862
50100
|
providerRegion = ambientRegion();
|
|
49863
50101
|
logger = getLogger().child("AppSyncProvider");
|
|
49864
50102
|
arnCache = /* @__PURE__ */ new Map();
|
|
50103
|
+
sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
50104
|
+
now = () => Date.now();
|
|
49865
50105
|
handledProperties = /* @__PURE__ */ new Map([
|
|
49866
50106
|
["AWS::AppSync::GraphQLApi", /* @__PURE__ */ new Set([
|
|
49867
50107
|
"Name",
|
|
@@ -50116,6 +50356,12 @@ var AppSyncProvider = class {
|
|
|
50116
50356
|
canonicalizeSdl(sdl, source) {
|
|
50117
50357
|
return canonicalizeSdl.call(this, sdl, source);
|
|
50118
50358
|
}
|
|
50359
|
+
canonicalizeDriftPair(resourceType, baseline, aws, properties) {
|
|
50360
|
+
return canonicalizeDriftPair$2.call(this, resourceType, baseline, aws, properties);
|
|
50361
|
+
}
|
|
50362
|
+
waitForSchemaCreation(apiId, logicalId, resourceType, phase, mask, startStatus) {
|
|
50363
|
+
return waitForSchemaCreation.call(this, apiId, logicalId, resourceType, phase, mask, startStatus);
|
|
50364
|
+
}
|
|
50119
50365
|
readGraphQLSchema(physicalId, properties) {
|
|
50120
50366
|
return readGraphQLSchema.call(this, physicalId, properties);
|
|
50121
50367
|
}
|
|
@@ -66238,7 +66484,7 @@ async function readChildOutputsAsAttributes(ctx, childStackName, childRegion) {
|
|
|
66238
66484
|
const noEchoAttributeNames = [];
|
|
66239
66485
|
const identity = credentialFingerprint(ambientCredentialConfig());
|
|
66240
66486
|
for (const [outputKey, persisted] of Object.entries(childStateData.state.outputs ?? {})) {
|
|
66241
|
-
if (!
|
|
66487
|
+
if (!holdsMaskLeaf(persisted)) continue;
|
|
66242
66488
|
const recovered = recoverMaskedOutput(identity, childStackName, childRegion, outputKey);
|
|
66243
66489
|
if (recovered === void 0) continue;
|
|
66244
66490
|
const attributeName = this.outputAttributeName(outputKey);
|
|
@@ -67094,4 +67340,4 @@ var ACMCertificateProvider = class {
|
|
|
67094
67340
|
};
|
|
67095
67341
|
|
|
67096
67342
|
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, ConnectInstanceProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, EC2VPCEndpointProvider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeArchiveProvider, 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, LightsailAlarmProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, LogsDeliverySourceProvider, 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, WaitConditionProvider };
|
|
67097
|
-
//# sourceMappingURL=provider-classes-
|
|
67343
|
+
//# sourceMappingURL=provider-classes-BNZGFwNO.js.map
|