@cdkd/cli 0.373.1 → 0.373.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/{ambient-client-defaults-BLKND30a.js → ambient-client-defaults-CruQnpD7.js} +18 -4
  2. package/dist/ambient-client-defaults-CruQnpD7.js.map +1 -0
  3. package/dist/{asg-provider-DXL1CE4m.js → asg-provider-C76YNNe3.js} +8 -8
  4. package/dist/{asg-provider-DXL1CE4m.js.map → asg-provider-C76YNNe3.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{replacement-rules-BkUZIP44.js → created-resource-sink-Bf6U_kyO.js} +1394 -1474
  7. package/dist/created-resource-sink-Bf6U_kyO.js.map +1 -0
  8. package/dist/{custom-resource-runtime-DK4-5kRC.js → custom-resource-runtime-DNWvFAcJ.js} +6 -6
  9. package/dist/{custom-resource-runtime-DK4-5kRC.js.map → custom-resource-runtime-DNWvFAcJ.js.map} +1 -1
  10. package/dist/{db-associated-roles-zv71gI1O.js → db-associated-roles-ChxC2pWo.js} +2 -2
  11. package/dist/{db-associated-roles-zv71gI1O.js.map → db-associated-roles-ChxC2pWo.js.map} +1 -1
  12. package/dist/{delete-started-E38sSyUX.js → delete-started-DCNzpczG.js} +4 -4
  13. package/dist/{delete-started-E38sSyUX.js.map → delete-started-DCNzpczG.js.map} +1 -1
  14. package/dist/{deploy-engine-BDueF79_.js → deploy-engine-DkJ03QT5.js} +3568 -2887
  15. package/dist/deploy-engine-DkJ03QT5.js.map +1 -0
  16. package/dist/{ec2-termination-protection-DI-aPxET.js → ec2-termination-protection-CmMB_KbJ.js} +3 -3
  17. package/dist/{ec2-termination-protection-DI-aPxET.js.map → ec2-termination-protection-CmMB_KbJ.js.map} +1 -1
  18. package/dist/{ecr-uri-kW_K5U02.js → ecr-uri-DH03qkk2.js} +2 -2
  19. package/dist/{ecr-uri-kW_K5U02.js.map → ecr-uri-DH03qkk2.js.map} +1 -1
  20. package/dist/{emr-cluster-provider-BcqnxYsN.js → emr-cluster-provider-BdJs64i8.js} +11 -11
  21. package/dist/emr-cluster-provider-BdJs64i8.js.map +1 -0
  22. package/dist/{expected-bucket-owner-j5BCLzAB.js → expected-bucket-owner-D0nm7Szq.js} +2 -2
  23. package/dist/{expected-bucket-owner-j5BCLzAB.js.map → expected-bucket-owner-D0nm7Szq.js.map} +1 -1
  24. package/dist/{iam-role-provider-BlUbRjQo.js → iam-role-provider-BSj01gWD.js} +12 -12
  25. package/dist/{iam-role-provider-BlUbRjQo.js.map → iam-role-provider-BSj01gWD.js.map} +1 -1
  26. package/dist/{identity-read-denied-BhnkMyxk.js → identity-read-denied-CwSWOLvl.js} +5 -6
  27. package/dist/identity-read-denied-CwSWOLvl.js.map +1 -0
  28. package/dist/{image-plan-CUvO0Qe2.js → image-plan-D7hoLiS-.js} +8 -8
  29. package/dist/{image-plan-CUvO0Qe2.js.map → image-plan-D7hoLiS-.js.map} +1 -1
  30. package/dist/index.d.ts +13 -1
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +5 -5
  33. package/dist/{logger-B673mhBe.js → logger-BTKRoxiD.js} +2 -2
  34. package/dist/{logger-B673mhBe.js.map → logger-BTKRoxiD.js.map} +1 -1
  35. package/dist/{neptune-provider-BOIjF_i3.js → neptune-provider-BNvxobyO.js} +9 -9
  36. package/dist/{neptune-provider-BOIjF_i3.js.map → neptune-provider-BNvxobyO.js.map} +1 -1
  37. package/dist/{program-avOxa_7W.js → program-BjmeRD9o.js} +467 -190
  38. package/dist/program-BjmeRD9o.js.map +1 -0
  39. package/dist/{provider-classes-BMrkl7zN.js → provider-classes-Bn4iaev8.js} +263 -112
  40. package/dist/provider-classes-Bn4iaev8.js.map +1 -0
  41. package/dist/{rds-provider-DD8ka8NG.js → rds-provider-CNEA-pHZ.js} +13 -13
  42. package/dist/{rds-provider-DD8ka8NG.js.map → rds-provider-CNEA-pHZ.js.map} +1 -1
  43. package/dist/{read-replica-Ddvkib9A.js → read-replica-0-l8YLR9.js} +3 -3
  44. package/dist/{read-replica-Ddvkib9A.js.map → read-replica-0-l8YLR9.js.map} +1 -1
  45. package/dist/{redacted-delete-address-CkcTwr-O.js → redacted-delete-address-Cq-qhxug.js} +5 -5
  46. package/dist/redacted-delete-address-Cq-qhxug.js.map +1 -0
  47. package/dist/replacement-rules-BRQEsmYu.js +1867 -0
  48. package/dist/replacement-rules-BRQEsmYu.js.map +1 -0
  49. package/dist/{resource-deadline-B2z0yyKo.js → resource-deadline-B6k_qtRx.js} +2 -2
  50. package/dist/{resource-deadline-B2z0yyKo.js.map → resource-deadline-B6k_qtRx.js.map} +1 -1
  51. package/dist/{restore-source-guard-1UD7ucv5.js → restore-source-guard-Dlh_1tru.js} +5 -5
  52. package/dist/restore-source-guard-Dlh_1tru.js.map +1 -0
  53. package/dist/{run-cli-Dm2l-FUd.js → run-cli-fBTOa8id.js} +2 -2
  54. package/dist/{run-cli-Dm2l-FUd.js.map → run-cli-fBTOa8id.js.map} +1 -1
  55. package/dist/{secret-reference-immutable-Bk60ZfqH.js → secret-reference-immutable-DSSUW_aD.js} +108 -10
  56. package/dist/{secret-reference-immutable-Bk60ZfqH.js.map → secret-reference-immutable-DSSUW_aD.js.map} +1 -1
  57. package/dist/{settle-own-write-members-YQxWAEvB.js → settle-own-write-members-7riYzUx1.js} +10 -10
  58. package/dist/{settle-own-write-members-YQxWAEvB.js.map → settle-own-write-members-7riYzUx1.js.map} +1 -1
  59. package/dist/{tag-list-C8pMq_W3.js → tag-list-lOyb6hiQ.js} +4 -4
  60. package/dist/{tag-list-C8pMq_W3.js.map → tag-list-lOyb6hiQ.js.map} +1 -1
  61. package/dist/{version-D2qdiEuf.js → version-BO9jLQis.js} +2 -2
  62. package/dist/{version-D2qdiEuf.js.map → version-BO9jLQis.js.map} +1 -1
  63. package/package.json +1 -1
  64. package/dist/ambient-client-defaults-BLKND30a.js.map +0 -1
  65. package/dist/created-resource-sink-DlVo2nqB.js +0 -1397
  66. package/dist/created-resource-sink-DlVo2nqB.js.map +0 -1
  67. package/dist/deploy-engine-BDueF79_.js.map +0 -1
  68. package/dist/emr-cluster-provider-BcqnxYsN.js.map +0 -1
  69. package/dist/identity-read-denied-BhnkMyxk.js.map +0 -1
  70. package/dist/program-avOxa_7W.js.map +0 -1
  71. package/dist/provider-classes-BMrkl7zN.js.map +0 -1
  72. package/dist/redacted-delete-address-CkcTwr-O.js.map +0 -1
  73. package/dist/replacement-rules-BkUZIP44.js.map +0 -1
  74. 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-BlUbRjQo.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-B673mhBe.js";
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-BSj01gWD.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-BTKRoxiD.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 markRedactedCause, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-BLKND30a.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, 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, dn as withPasteableAwsProfile, dt as SECRET_DERIVED_READ_LIVE, et as ElapsedBudgetRegistry, f as createAttemptKey, fn as injectiveKey, ft as diffPrincipalNames, g as setBounded, h as replayedSendWindow, ht as readPrincipalLists, i as reportCreatedResource, it as WITHHELD_AWS_COMMAND, j as refusalTypeShown, 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, pn as injectiveKeyPrefix, pt as holdsSecretDerivedEntry, q as isTerminalDbWaitStatus, qt as markAuxiliaryFailure, rt as UNNAMEABLE_ID_CLAUSE, s as AMBIGUOUS_LATCH_TTL_MS, st as protectedReplacementAdvice, u as RecentIdSet, v as DriftReadRefusedError, w as importRemedyCommand, wt as canonicalizeRoute53QueryName, x as holderRefusalMask, y as RESOURCE_NOT_FOUND, z as observeThenDisableProtection } from "./created-resource-sink-DlVo2nqB.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-D2qdiEuf.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-BhnkMyxk.js";
8
- import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-E38sSyUX.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-avOxa_7W.js";
10
- import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-CkcTwr-O.js";
11
- import { $ as streamMemberRefusals, $c as outputReferenceProvenanceOf, $n as getNestedRevertRun, $o as evaluateSignals, $t as contributorInsightsRefusals, Aa as replacedDeleteFailureVerdict, Ad as findNestedTemplateTreeDefect, Af as describeFileReadFailure, Ao as KMS_DEFAULT_KEY_POLICY_ID, At as sseSpecificationToSend, Ba as canonicalizeIpv6Cidr, Bn as childStackTags, Bo as reReadUntilSettled, Bt as takeTagWrite, Ci as reserveStackCreateToken, Cl as toFiniteNumber, Cn as hasCdkAutoDeleteTag, Co as withoutSiblingOwned, Cs as deleteSkipReason, Ct as isPlainCapacityBlock, Ds as markWaitAbandoned, Dt as pointInTimeRecoveryRefusal, El as maskedSecretSegment, Eo as getStackRecords, Et as maskLeafValue, Fa as SG_RULE_ID_PATTERN, Fo as declaredPolicyDocument, Fs as connectInstanceIdOf, G as STREAM_TAGS_KEY, Go as policyContentKey, Gt as sendTtlWaitingOutRateLimit, Ho as warnUnsettledMember, Ht as isTtlRateLimited, Ia as cfnIngressPortValue, Io as efsPolicyMatchesDeclared, It as isDynamoDBTableArnIn, J as planStreamMemberOps, Jt as vectorIndexesForCreate, K as declaredStreamPolicyMember, Kt as planVectorIndexUpdates, Ku as accountArgs, La as recordedSgRuleId, Ll as passedParameterClassesOf, Lo as lambdaPermissionMatchesDeclared, Lt as recordTagWrite, Md as listNestedTemplateRows, Mo as OWN_WRITE_REREAD_DELAYS_MS, Mt as tableNameReleaseWait, Nd as renderNestedTemplateTreeDefect, Nf as renderAssemblyPathEscape, No as SNS_DEFAULT_POLICY_ID, Nt as TAGS_BASELINE_REREAD_DELAYS_MS, Od as stringifyValue, Ot as readCapacityNumber, Pf as resolveAssemblyPath, Po as declaredMemberDocument, Ps as isSettledInstanceState, Pt as clearTagWrites, Q as streamDeclaresTags, Qo as classifyHandleUrl, Qt as completeTableContributorInsightsBaseline, Ro as memberReadFailure, Rt as settleWrittenTags, Sl as toCfnInteger, Sn as S3_AUTO_DELETE_OBJECTS_TAG, So as withoutSiblingAttachedArns, St as hasUsableDeclaredCapacity, Ti as acquireIdempotencyToken, Tt as mapSSESpecification, U as DynamoDBGlobalTableProvider, Uo as verbatimEchoDriftKeys, Ut as planTimeToLive, Va as canonicalizeIpv4Cidr, Vo as settleDeclaredMember, Vt as isTtlAlreadyDisabled, Vu as refuseMalformedResourcesForDestroy, W as STREAM_POLICY_KEY, Wd as decodeListingKey, Wn as licensedNameHolder, Wo as attemptedPolicyDocument, Wt as readTtlSpec, X as reverseMapStreamPolicy, Xc as getCurrentResourceSecrets, Xt as vectorIndexesShapeDetail, Yt as vectorIndexesSettled, Z as streamDeclaresPolicy, Zi as getCurrentProducerRegions, Zo as WaitConditionSignalStore, Zt as CONTRIBUTOR_INSIGHTS_KEY, _c as parseWebACLArn, _n as deleteTableWithIndexBusyRetry, _t as trimUnsentWarmMembers, ac as s3BucketDualStackDomainName, an as reverseMapTableContributorInsights, at as desiredIndexEntriesByName, bn as waitForIndexesSettled, bo as collectPrincipalsAttachingPolicy, bt as KINESIS_DISABLE_PENDING_STATUSES, cd as normalizeRecordName, cn as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, ct as projectIndexesOnto, dn as deleteBudgetKey, dt as coerceWarmThroughput, ei as siblingOwnedSgRuleIdentities, en as indexDeclaresContributorInsights, et as streamPolicyMatchesDeclared, fl as LEGACY_HANDLE_ID_PREFIX, fn as resolveDynamoDbDeleteBudgetClock, ft as declaresWarmThroughput, gn as TABLE_INDEX_NOUN, gs as waitForLambdaFunctionActive, gt as sentWarmThroughputMembers, hn as INDEX_SETTLE_POLL_INTERVAL_MS, ht as readbackWarmThroughput, ic as s3BucketDomainName, in as reverseMapIndexContributorInsights, it as deletionProtectionRefusal, jd as isAbsoluteAssetPath, jf as displayAssemblyPath, jt as tableDeleteGoneWait, ju as refuseMalformedNestedChildOutputs, kt as sseSpecificationRefusal, ld as planSubscriptionAttributes, ln as beginDeleteWait, lt as reverseMapSecondaryIndex, mn as DELETE_INDEX_WAIT_PROCEED_NOTE, mt as isRefusedWarmThroughput, nc as dnsEntryStrings, nf as rewriteTemplateAssetReferences, ni as withoutSiblingOwnedSgRules, nn as planIndexContributorInsightsOps, no as secretNamedAttributeNamesOf, nr as revertNestedChildFromJournal, nt as canonicalizeStaleIndexDescription, oc as s3BucketRegionalDomainName, on as stripIndexContributorInsights, or as getCurrentNestedStackContext, ot as gsiUnsendableChangeRefusal, pi as calculateResourceDrift, pl as isLegacyHandleId, pn as resolveDynamoDbDeleteBudgetMs, pt as desiredBagIsInformative, q as declaredStreamTagsMember, qt as readbackVectorIndexes, qu as withheldAccountClause, rc as s3BucketArn, rd as withoutSdkUnwiredProperties, rl as getAccountInfo, rn as readContributorInsightsSpec, rt as declaresIndexList, sc as s3BucketWebsiteUrl, sn as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, sr as withNestedStackContext, st as localSecondaryIndexesKey, t as DeployEngine, td as findSdkUnwiredProperties, tn as planContributorInsightsOp, tt as streamTagsMatchDeclared, ud as wireAttributeValue, un as compensateRemovedDeletionProtection, ut as sameJsonValue, vn as maskedLogger, vo as collectGroupsAddedBySiblings, vs as waitForGoneAfterDelete, vt as warmThroughputAlreadyMatches, wl as APPSYNC_APIKEY_ARN_RESOURCE_PATH, wn as isTruthyCfnBoolean, wo as awaitInFlightSibling, ws as withIndeterminateGuard, wt as isTableName, xi as earliestDefined, xl as isWarmThroughputDecrease, xn as ECR_AUTO_DELETE_IMAGES_TAG, xo as isStoredExpression, xt as deleteTableRetryDelays, yn as relayedIndexBusyDelete, yo as collectManagedPolicyArnsAttachedBySiblings, yt as KINESIS_DESTINATION_SETTLE_POLL_MS, za as sgProtocolKey, zn as childRowTags, zo as policyDocumentMatchesDeclared } from "./deploy-engine-BDueF79_.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-C8pMq_W3.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-1UD7ucv5.js";
14
- import { _ as withRetry, n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer, w as timePhase } from "./secret-reference-immutable-Bk60ZfqH.js";
15
- import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-YQxWAEvB.js";
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-CruQnpD7.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-Bf6U_kyO.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-BO9jLQis.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-CwSWOLvl.js";
8
+ import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-DCNzpczG.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-BjmeRD9o.js";
10
+ import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-Cq-qhxug.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-DkJ03QT5.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-lOyb6hiQ.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-Dlh_1tru.js";
14
+ import { T as timePhase, n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer, v as withRetry } from "./secret-reference-immutable-DSSUW_aD.js";
15
+ import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-7riYzUx1.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-DI-aPxET.js";
19
- import { l as removedTemplateKeys, n as enclosingDeadlineRemainingMs, o as clearOnUpdateRemoval, t as enclosingDeadlineExpired, u as withRemovalDefaults } from "./resource-deadline-B2z0yyKo.js";
20
- import { A as passedNoEchoParametersOf, Cn as dynamicReferenceTokens, Q as redactForState, U as markSameGenerationBag, _n as physicalNameCopiesOf, at as recordReferenceProvenanceEntry, c as blockDeviceMappingsDifferOnlyInDeleteOnTermination, f as canonicalLambdaFunctionName, ft as hasMaskableValues, h as sameLambdaFunctionAddress, jn as carriesSecretMask, ln as recoverMaskedOutput, m as parseLambdaFunctionAddress, p as lambdaFunctionNameForMask, st as snapshotPassProvenance, u as ecsServiceLaunchTypeSetOrChanged, vn as recordAttributeIdCopy, zt as withoutPhysicalNameCopies } from "./replacement-rules-BkUZIP44.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-BcqnxYsN.js";
22
- import { RDSProvider } from "./rds-provider-DD8ka8NG.js";
23
- import { NeptuneProvider } from "./neptune-provider-BOIjF_i3.js";
24
- import { ASGProvider } from "./asg-provider-DXL1CE4m.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-CmMB_KbJ.js";
19
+ import { l as removedTemplateKeys, n as enclosingDeadlineRemainingMs, o as clearOnUpdateRemoval, t as enclosingDeadlineExpired, u as withRemovalDefaults } from "./resource-deadline-B6k_qtRx.js";
20
+ import { I as passedNoEchoParametersOf, c as blockDeviceMappingsDifferOnlyInDeleteOnTermination, f as canonicalLambdaFunctionName, h as sameLambdaFunctionAddress, m as parseLambdaFunctionAddress, p as lambdaFunctionNameForMask, u as ecsServiceLaunchTypeSetOrChanged } from "./replacement-rules-BRQEsmYu.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-BdJs64i8.js";
22
+ import { RDSProvider } from "./rds-provider-CNEA-pHZ.js";
23
+ import { NeptuneProvider } from "./neptune-provider-BNvxobyO.js";
24
+ import { ASGProvider } from "./asg-provider-C76YNNe3.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
- await this.detachAllPrincipals(physicalId, progress);
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
- if (!g.GroupName) continue;
1706
- try {
1707
- await this.iamClient.send(new DetachGroupPolicyCommand({
1708
- GroupName: g.GroupName,
1709
- PolicyArn: policyArn
1710
- }));
1711
- if (progress) progress.stripped = true;
1712
- } catch (err) {
1713
- if (!(err instanceof NoSuchEntityException)) throw err;
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}`);
@@ -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$3(recorded) || !isPlainRecord$3(live)) return live;
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$3(value) {
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$3(build)) fail("BuildConfig must be an object");
13522
+ if (!isPlainRecord$4(build)) fail("BuildConfig must be an object");
13488
13523
  const code = build["CodeConfig"];
13489
- const s3 = isPlainRecord$3(code) ? code["S3Object"] : void 0;
13490
- if (!isPlainRecord$3(s3) || typeof s3["Bucket"] !== "string" || typeof s3["Key"] !== "string") fail("BuildConfig.CodeConfig.S3Object.Bucket and .Key are required strings");
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$3(runtimeConfig) ? runtimeConfig["Runtime"] : void 0;
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$3(service) || typeof service["ExecutionRoleArn"] !== "string") fail("ServiceConfig.ExecutionRoleArn is a required string");
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$3(env) && Object.values(env).every((v) => typeof v === "string")) out.environmentVariables = { ...env };
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$3(telemetry)) {
13574
+ if (isPlainRecord$4(telemetry)) {
13540
13575
  const telemetryConfig = {};
13541
13576
  const logging = telemetry["LoggingConfig"];
13542
- if (isPlainRecord$3(logging)) {
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$3(value)) return bad(`${blockKey} must be an object`);
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$3(entry) || typeof entry["RevisionId"] !== "string") return fail(`RevisionWeights[${i}].RevisionId must be a string`);
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$3(config) ? config["VpcEgressConfiguration"] : void 0;
14207
- if (!isPlainRecord$3(vpc)) return fail("Configuration.VpcEgressConfiguration must be an object");
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$3(eip) && typeof eip["Type"] === "string" && ELASTIC_IP_TYPES.has(eip["Type"])) return { Type: eip["Type"] };
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$3(config) ? config["VpcEgressConfiguration"] : void 0;
14315
- return isPlainRecord$3(vpc) ? vpc[ELASTIC_IP_KEY] : void 0;
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$3(value) && value["Type"] === "None";
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$3(previous) && previous["Type"] === "None") return void 0;
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$3(resourceType, properties) {
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"]);
@@ -16663,7 +16698,7 @@ var DynamoDBTableProvider = class {
16663
16698
  return getDriftUnknownPaths$11.call(this, resourceType, properties);
16664
16699
  }
16665
16700
  canonicalizeDriftProperties(resourceType, properties) {
16666
- return canonicalizeDriftProperties$3.call(this, resourceType, properties);
16701
+ return canonicalizeDriftProperties$4.call(this, resourceType, properties);
16667
16702
  }
16668
16703
  async canonicalizeDriftPair(resourceType, baseline, aws, properties) {
16669
16704
  return canonicalizeDriftPair$5.call(this, resourceType, baseline, aws, properties);
@@ -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$2(value) {
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$2(value) && Object.values(value).every((v) => typeof v === "string")) return { ...value };
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$2(declared) ? Object.fromEntries(Object.entries(liveConfig).filter(([k]) => k in declared)) : { ...liveConfig };
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$2(declared) ? declared["DeliveryDestinationPolicy"] : void 0;
17840
- if (isPlainRecord$2(declaredDocument)) policy = await settleDeclaredMember(policy, () => this.readDestinationPolicy(physicalId), (document) => policyDocumentMatchesDeclared(document, declaredDocument), declaredDocument, this.ownWriteRereadDelaysMs, () => warnUnsettledMember(this.logger, logicalId, "AWS::Logs::DeliveryDestination", "DeliveryDestinationPolicy"));
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$2(declared) && declared["DeliveryDestinationName"] !== void 0 && { DeliveryDestinationName: physicalId },
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$2(block)) problem = "DeliveryDestinationPolicy must be an object";
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$2(block)) return void 0;
17932
+ if (!isPlainRecord$3(block)) return void 0;
17898
17933
  const document = block["DeliveryDestinationPolicy"];
17899
- if (isPlainRecord$2(document)) return JSON.stringify(document);
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.includes("{{resolve:");
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 && !carriesSecretMask(properties["UserData"])) {
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) {
@@ -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
- ...carriesSecretMask(properties?.["UserData"]) ? ["UserData"] : []
27088
+ ...properties !== void 0 && userDataUnreadable(properties, provenance) ? ["UserData"] : []
27045
27089
  ];
27046
27090
  case "AWS::EC2::VPC": {
27047
27091
  const control = properties?.["VpcEncryptionControl"];
@@ -30562,7 +30606,7 @@ function getMethodAttribute(physicalId, attributeName) {
30562
30606
  }
30563
30607
 
30564
30608
  // src/provisioning/providers/apigateway/read-state.ts
30565
- function canonicalizeDriftProperties$2(resourceType, properties) {
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$2.call(this, resourceType, properties);
31034
+ return canonicalizeDriftProperties$3.call(this, resourceType, properties);
30991
31035
  }
30992
31036
  getDriftUnknownPaths(resourceType) {
30993
31037
  return getDriftUnknownPaths$9.call(this, resourceType);
@@ -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$1(resourceType, properties) {
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$1.call(this, resourceType, properties);
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
  }
@@ -48514,14 +48609,16 @@ async function updateGraphQLSchema(logicalId, physicalId, resourceType, properti
48514
48609
  wasReplaced: false
48515
48610
  };
48516
48611
  const apiId = properties["ApiId"] ?? recordedApiId;
48612
+ let started;
48517
48613
  try {
48518
- await this.getClient().send(new StartSchemaCreationCommand({
48614
+ started = await this.getClient().send(new StartSchemaCreationCommand({
48519
48615
  apiId,
48520
48616
  definition: Buffer.from(definition, "utf-8")
48521
48617
  }));
48522
48618
  } catch (error) {
48523
48619
  throw this.wrapUpdateError(error, resourceType, logicalId, physicalId, "GraphqlSchema", mask);
48524
48620
  }
48621
+ await this.waitForSchemaCreation(apiId, logicalId, resourceType, "update", mask, started?.status);
48525
48622
  return {
48526
48623
  physicalId,
48527
48624
  wasReplaced: false
@@ -49256,29 +49353,31 @@ async function createGraphQLSchema(logicalId, resourceType, properties, context)
49256
49353
  if (!apiId) throw new ProvisioningError(`ApiId is required for GraphQLSchema ${logicalId}`, resourceType, logicalId);
49257
49354
  const definition = properties["Definition"];
49258
49355
  const definitionS3Location = properties["DefinitionS3Location"];
49356
+ let started;
49259
49357
  try {
49260
49358
  if (definition) {
49261
49359
  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({
49360
+ started = await this.getClient().send(new StartSchemaCreationCommand({
49263
49361
  apiId,
49264
49362
  definition: new TextEncoder().encode(definition)
49265
49363
  }));
49266
49364
  } else if (definitionS3Location !== void 0) {
49267
49365
  const body = await this.fetchS3LocationBody(definitionS3Location, resourceType, logicalId, "DefinitionS3Location", maskerOrIdentity(context?.maskSecrets));
49268
- await this.getClient().send(new StartSchemaCreationCommand({
49366
+ started = await this.getClient().send(new StartSchemaCreationCommand({
49269
49367
  apiId,
49270
49368
  definition: new TextEncoder().encode(body)
49271
49369
  }));
49272
49370
  }
49273
49371
  this.logger.debug(`Successfully started schema creation for ${logicalId}`);
49274
- return {
49275
- physicalId: apiId,
49276
- attributes: {}
49277
- };
49278
49372
  } catch (error) {
49279
49373
  const cause = error instanceof Error ? error : void 0;
49280
49374
  throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to create GraphQL Schema ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
49281
49375
  }
49376
+ if (definition || definitionS3Location !== void 0) await this.waitForSchemaCreation(apiId, logicalId, resourceType, "create", maskerOrIdentity(context?.maskSecrets), started?.status);
49377
+ return {
49378
+ physicalId: apiId,
49379
+ attributes: {}
49380
+ };
49282
49381
  }
49283
49382
  async function createDataSource(logicalId, resourceType, properties, context) {
49284
49383
  this.logger.debug(`Creating DataSource ${logicalId}`);
@@ -49661,6 +49760,53 @@ function lambdaAuthorizerConfigToCfn(config) {
49661
49760
  return out;
49662
49761
  }
49663
49762
 
49763
+ // src/provisioning/providers/appsync/schema-wait.ts
49764
+ const SCHEMA_POLL_MAX_INTERVAL_MS = 5e3;
49765
+ const SCHEMA_WAIT_MAX_MS = 9e5;
49766
+ const APPLIED = /* @__PURE__ */ new Set(["SUCCESS", "ACTIVE"]);
49767
+ async function waitForSchemaCreation(apiId, logicalId, resourceType, phase, mask, startStatus) {
49768
+ const userTimeoutMs = resolvedResourceTimeoutMs(resourceType);
49769
+ const maxWaitMs = userTimeoutMs === void 0 ? SCHEMA_WAIT_MAX_MS : Math.min(SCHEMA_WAIT_MAX_MS, userTimeoutMs / 2);
49770
+ const wrapRefusedError = (status, details) => {
49771
+ const reason = describeAwsStatusReason({ message: details }, "");
49772
+ const build = (text, cause) => new ProvisioningError(`GraphQL schema ${logicalId} ${phase} failed: AWS AppSync reports ${status}${text}`, resourceType, logicalId, apiId, cause);
49773
+ if (!reason.redacted) return markNonRetryable(build(""));
49774
+ this.logger.debug(mask(build(`: ${mask(reason.detail)}`).message));
49775
+ return markNonRetryable(markRedactedCause(build(`. ${reason.summary}`, new Error(reason.detail))));
49776
+ };
49777
+ const isRefusal = (status) => status !== void 0 && status !== "PROCESSING" && !APPLIED.has(status);
49778
+ const startedAt = this.now();
49779
+ const watch = startInterruptWatch(`GraphQL schema ${logicalId} ${phase}`);
49780
+ try {
49781
+ let lastStatus = startStatus;
49782
+ let interval = 1e3;
49783
+ for (;;) {
49784
+ if (watch.isInterrupted()) throw watch.onInterrupted();
49785
+ try {
49786
+ const response = await this.getClient().send(new GetSchemaCreationStatusCommand({ apiId }));
49787
+ const status = response.status;
49788
+ lastStatus = status;
49789
+ if (status !== void 0 && APPLIED.has(status)) return;
49790
+ if (isRefusal(status)) throw wrapRefusedError(status, response.details);
49791
+ this.logger.debug(safeMsg`GraphQL schema ${logicalId}: ${status ?? "no status"}, waiting`);
49792
+ } catch (error) {
49793
+ if (error instanceof ProvisioningError) throw error;
49794
+ if (!isThrottlingError(error) && !isTransientServerError(error)) {
49795
+ const cause = error instanceof Error ? error : void 0;
49796
+ 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));
49797
+ }
49798
+ this.logger.debug(safeMsg`GraphQL schema ${logicalId}: status read failed transiently (${describeAwsFailure(error).summary}), re-polling`);
49799
+ }
49800
+ const remainingMs = maxWaitMs - (this.now() - startedAt);
49801
+ 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));
49802
+ await this.sleep(Math.min(interval, remainingMs));
49803
+ interval = Math.min(interval * 2, SCHEMA_POLL_MAX_INTERVAL_MS);
49804
+ }
49805
+ } finally {
49806
+ watch.dispose();
49807
+ }
49808
+ }
49809
+
49664
49810
  // src/provisioning/providers/appsync/read-children.ts
49665
49811
  async function readDataSource(physicalId) {
49666
49812
  const [apiId, name] = physicalId.split("|");
@@ -49862,6 +50008,8 @@ var AppSyncProvider = class {
49862
50008
  providerRegion = ambientRegion();
49863
50009
  logger = getLogger().child("AppSyncProvider");
49864
50010
  arnCache = /* @__PURE__ */ new Map();
50011
+ sleep = (ms) => new Promise((r) => setTimeout(r, ms));
50012
+ now = () => Date.now();
49865
50013
  handledProperties = /* @__PURE__ */ new Map([
49866
50014
  ["AWS::AppSync::GraphQLApi", /* @__PURE__ */ new Set([
49867
50015
  "Name",
@@ -50116,6 +50264,9 @@ var AppSyncProvider = class {
50116
50264
  canonicalizeSdl(sdl, source) {
50117
50265
  return canonicalizeSdl.call(this, sdl, source);
50118
50266
  }
50267
+ waitForSchemaCreation(apiId, logicalId, resourceType, phase, mask, startStatus) {
50268
+ return waitForSchemaCreation.call(this, apiId, logicalId, resourceType, phase, mask, startStatus);
50269
+ }
50119
50270
  readGraphQLSchema(physicalId, properties) {
50120
50271
  return readGraphQLSchema.call(this, physicalId, properties);
50121
50272
  }
@@ -66238,7 +66389,7 @@ async function readChildOutputsAsAttributes(ctx, childStackName, childRegion) {
66238
66389
  const noEchoAttributeNames = [];
66239
66390
  const identity = credentialFingerprint(ambientCredentialConfig());
66240
66391
  for (const [outputKey, persisted] of Object.entries(childStateData.state.outputs ?? {})) {
66241
- if (!carriesSecretMask(persisted)) continue;
66392
+ if (!holdsMaskLeaf(persisted)) continue;
66242
66393
  const recovered = recoverMaskedOutput(identity, childStackName, childRegion, outputKey);
66243
66394
  if (recovered === void 0) continue;
66244
66395
  const attributeName = this.outputAttributeName(outputKey);
@@ -67094,4 +67245,4 @@ var ACMCertificateProvider = class {
67094
67245
  };
67095
67246
 
67096
67247
  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-BMrkl7zN.js.map
67248
+ //# sourceMappingURL=provider-classes-Bn4iaev8.js.map