@cdkd/cli 0.373.6 → 0.374.0

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-BqOg0I6e.js → ambient-client-defaults-Bz-RIOwy.js} +3 -3
  2. package/dist/{ambient-client-defaults-BqOg0I6e.js.map → ambient-client-defaults-Bz-RIOwy.js.map} +1 -1
  3. package/dist/{asg-provider-DkhAcikX.js → asg-provider-CAUjmdq9.js} +8 -8
  4. package/dist/{asg-provider-DkhAcikX.js.map → asg-provider-CAUjmdq9.js.map} +1 -1
  5. package/dist/cli.js +3 -3
  6. package/dist/{custom-resource-runtime-CLjuWVBC.js → custom-resource-runtime-CWVAEO2K.js} +6 -6
  7. package/dist/{custom-resource-runtime-CLjuWVBC.js.map → custom-resource-runtime-CWVAEO2K.js.map} +1 -1
  8. package/dist/{db-associated-roles-CCgL0Loo.js → db-associated-roles-lNcEBB6O.js} +2 -2
  9. package/dist/{db-associated-roles-CCgL0Loo.js.map → db-associated-roles-lNcEBB6O.js.map} +1 -1
  10. package/dist/{delete-started-C9z4Yf_c.js → delete-started-CJq_moaK.js} +4 -4
  11. package/dist/{delete-started-C9z4Yf_c.js.map → delete-started-CJq_moaK.js.map} +1 -1
  12. package/dist/{deploy-engine-DNEAZMj7.js → deploy-engine-DQU_GZet.js} +10535 -891
  13. package/dist/deploy-engine-DQU_GZet.js.map +1 -0
  14. package/dist/{ec2-termination-protection-zaan5pi0.js → ec2-termination-protection-CGDF52lA.js} +3 -3
  15. package/dist/{ec2-termination-protection-zaan5pi0.js.map → ec2-termination-protection-CGDF52lA.js.map} +1 -1
  16. package/dist/{ecr-uri-CrQgKKRC.js → ecr-uri-CJJjp-MO.js} +2 -2
  17. package/dist/{ecr-uri-CrQgKKRC.js.map → ecr-uri-CJJjp-MO.js.map} +1 -1
  18. package/dist/{emr-cluster-provider-Dkg4vDao.js → emr-cluster-provider-2hRUEW1E.js} +13 -11
  19. package/dist/emr-cluster-provider-2hRUEW1E.js.map +1 -0
  20. package/dist/{expected-bucket-owner-DIMD36_h.js → expected-bucket-owner-DyFD7Dw5.js} +2 -2
  21. package/dist/{expected-bucket-owner-DIMD36_h.js.map → expected-bucket-owner-DyFD7Dw5.js.map} +1 -1
  22. package/dist/guard-read-retry-CaBmRzwo.js +56 -0
  23. package/dist/guard-read-retry-CaBmRzwo.js.map +1 -0
  24. package/dist/{iam-role-provider-CkIQ7vmu.js → iam-role-provider-c32ZQo8P.js} +12 -12
  25. package/dist/{iam-role-provider-CkIQ7vmu.js.map → iam-role-provider-c32ZQo8P.js.map} +1 -1
  26. package/dist/{identity-read-denied-DU0YqxNk.js → identity-read-denied-DRjvF3oA.js} +4 -4
  27. package/dist/{identity-read-denied-DU0YqxNk.js.map → identity-read-denied-DRjvF3oA.js.map} +1 -1
  28. package/dist/{image-plan-B1CAuiek.js → image-plan-Cmjgc6iE.js} +8 -8
  29. package/dist/{image-plan-B1CAuiek.js.map → image-plan-Cmjgc6iE.js.map} +1 -1
  30. package/dist/index.d.ts +14 -14
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +5 -5
  33. package/dist/{logger-IjQ12QWZ.js → logger-BlKwgEgV.js} +3 -3
  34. package/dist/{logger-IjQ12QWZ.js.map → logger-BlKwgEgV.js.map} +1 -1
  35. package/dist/{neptune-provider-2O6bzLTH.js → neptune-provider-BiLAHYo4.js} +12 -10
  36. package/dist/neptune-provider-BiLAHYo4.js.map +1 -0
  37. package/dist/{program-DnMYJ4--.js → program-CQZs9Ljn.js} +656 -334
  38. package/dist/program-CQZs9Ljn.js.map +1 -0
  39. package/dist/{provider-classes-BuCH49t_.js → provider-classes-CNMjjxoS.js} +584 -86
  40. package/dist/provider-classes-CNMjjxoS.js.map +1 -0
  41. package/dist/{rds-provider-BSeLwUR8.js → rds-provider-By5mf53G.js} +13 -13
  42. package/dist/{rds-provider-BSeLwUR8.js.map → rds-provider-By5mf53G.js.map} +1 -1
  43. package/dist/{read-replica-FMRYAHg6.js → read-replica-BIjj_bfE.js} +3 -3
  44. package/dist/{read-replica-FMRYAHg6.js.map → read-replica-BIjj_bfE.js.map} +1 -1
  45. package/dist/{redacted-delete-address-DGHv9GNm.js → redacted-delete-address-DGufa4wz.js} +4 -4
  46. package/dist/{redacted-delete-address-DGHv9GNm.js.map → redacted-delete-address-DGufa4wz.js.map} +1 -1
  47. package/dist/{replacement-rules-BAJWgr5f.js → replacement-rules-BQ-sbuiR.js} +3 -3
  48. package/dist/{replacement-rules-BAJWgr5f.js.map → replacement-rules-BQ-sbuiR.js.map} +1 -1
  49. package/dist/{resource-deadline-DB1HaWnD.js → resource-deadline-0dfvU7D5.js} +2102 -2055
  50. package/dist/resource-deadline-0dfvU7D5.js.map +1 -0
  51. package/dist/{restore-source-guard-BL2O_O6r.js → restore-source-guard-CWbzgUdy.js} +4 -4
  52. package/dist/{restore-source-guard-BL2O_O6r.js.map → restore-source-guard-CWbzgUdy.js.map} +1 -1
  53. package/dist/retry-ClxjEovs.js +211 -0
  54. package/dist/retry-ClxjEovs.js.map +1 -0
  55. package/dist/{run-cli-CtrPRsbm.js → run-cli-DBXWGhyD.js} +2 -2
  56. package/dist/{run-cli-CtrPRsbm.js.map → run-cli-DBXWGhyD.js.map} +1 -1
  57. package/dist/{secret-reference-immutable-XFEdCfNg.js → secret-reference-immutable-CSgI6Td9.js} +10 -211
  58. package/dist/secret-reference-immutable-CSgI6Td9.js.map +1 -0
  59. package/dist/{settle-own-write-members-DzUentwR.js → settle-own-write-members-DqlMjdQV.js} +10 -10
  60. package/dist/{settle-own-write-members-DzUentwR.js.map → settle-own-write-members-DqlMjdQV.js.map} +1 -1
  61. package/dist/{tag-list-Bye2zxAF.js → tag-list-B4IlIPvY.js} +4 -4
  62. package/dist/{tag-list-Bye2zxAF.js.map → tag-list-B4IlIPvY.js.map} +1 -1
  63. package/dist/{update-removal-BpxPxmQR.js → update-removal-VyphayB2.js} +2 -2
  64. package/dist/{update-removal-BpxPxmQR.js.map → update-removal-VyphayB2.js.map} +1 -1
  65. package/dist/{version-nXXjUmZl.js → version-fHMzKIi5.js} +2 -2
  66. package/dist/{version-nXXjUmZl.js.map → version-fHMzKIi5.js.map} +1 -1
  67. package/package.json +1 -1
  68. package/dist/deploy-engine-DNEAZMj7.js.map +0 -1
  69. package/dist/emr-cluster-provider-Dkg4vDao.js.map +0 -1
  70. package/dist/neptune-provider-2O6bzLTH.js.map +0 -1
  71. package/dist/program-DnMYJ4--.js.map +0 -1
  72. package/dist/provider-classes-BuCH49t_.js.map +0 -1
  73. package/dist/resource-deadline-DB1HaWnD.js.map +0 -1
  74. package/dist/secret-reference-immutable-XFEdCfNg.js.map +0 -1
@@ -1,35 +1,37 @@
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-CkIQ7vmu.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, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-IjQ12QWZ.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-c32ZQo8P.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, m as verboseAwareText, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-BlKwgEgV.js";
3
3
  import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.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-BqOg0I6e.js";
5
- import { $ as isTerminalDbWaitStatus, $i as injectiveKeyPrefix, $t as markAuxiliaryFailure, A as importRemedyCommand, An as redactForState, At as canonicalizeRoute53QueryName, Bt as createMaskedRetryLogger, C as withoutServerErrorRetries, Ct as recordedPrincipalsRepair, D as holderRefusalMask, E as assertRegionMatch, F as quotedRemedyLogicalId, Ft as packCompositeId, G as observeThenDisableProtection, Hr as recoverMaskedOutput, Ht as maskDeep, I as readNameProperty, J as userPoolProtectionSite, K as rdsFamilyProtectionSite, L as refusalTypeShown, Ln as recordReferenceProvenanceEntry, Lt as segmentAfterAnchor, M as isPlainImportValue, Mt as compositeIdSeparatorRefusal, N as isQuotableImportValue, Nt as compositeIdSkipResult, O as holderRefusalRun, Ot as isInterruptedWaitError, P as normalizeAwsTagsToCfn, Pt as logicalIdShown, Q as isProceedDbStatus, Qi as injectiveKey, R as remedyLogicalId, Rt as stateOrphanRecordRemedy, S as setBounded, T as RESOURCE_NOT_FOUND, U as deleteWithProtectionCompensation, Ut as maskerOrIdentity, V as markNotGone, Vt as isSecretDerivedValue, W as logGroupProtectionSite, Wn as hasMaskableValues, Wt as withDerivedNameMasks, X as deleteAfterProtectionFlipWithFinalSnapshot, Xr as physicalNameCopiesOf, Y as PROTECTION_FLIP_RETRY_WAIT_MS, Zi as withPasteableAwsProfile, Zr as recordAttributeIdCopy, Zt as isAuxiliaryFailure, _ as ambiguousAttemptLead, _r as withoutPhysicalNameCopies, _t as SECRET_DERIVED_READ_LIVE, at as ElapsedBudget, b as replayFollowedAmbiguousAttempt, bt as onlySecretDerived, dt as isAwsCliLiteral, en as markCreatedBeforeFailure, f as retractCreatedResource, ft as pasteableAwsCommand, g as RecentIdSet, h as CREATION_DATE_SKEW_MARGIN_MS, j as isPlainImportJson, jt as compositeIdFormatMessage, k as VALUE_NOT_SHOWN, kt as startInterruptWatch, ln as mentionsDynamicReference, lt as UNNAMEABLE_ID_CLAUSE, m as AmbiguousCreateLatch, mn as recordedSecrecyOf, mt as renderDisableCommand, n as enclosingDeadlineRemainingMs, ni as dynamicReferenceTokens, nt as isTerminalDeleteFailure, on as holdsMaskLeaf, ot as ElapsedBudgetRegistry, p as AMBIGUOUS_LATCH_TTL_MS, pt as protectedReplacementAdvice, qt as clearCreatedBeforeFailure, rt as protectionFlipKey, t as enclosingDeadlineExpired, tn as markSupersedesEarlierCreate, tt as ProtectionFlipRegistry, u as reportCreatedResource, ui as carriesSecretMask, ut as WITHHELD_AWS_COMMAND, v as createAttemptKey, vt as diffPrincipalNames, w as DriftReadRefusedError, x as replayedSendWindow, xn as markSameGenerationBag, xt as readPrincipalLists, y as isInsideWindow, yt as holdsSecretDerivedEntry, z as resolveExplicitPhysicalId, zn as snapshotPassProvenance, zt as createMaskedLogSinks } from "./resource-deadline-DB1HaWnD.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-nXXjUmZl.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-DU0YqxNk.js";
8
- import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-C9z4Yf_c.js";
9
- import { $ as effectiveIntelligentTieringItem, A as tagListsMatch, B as takeLifecycleWrite, C as securityGroupReadbackDelays, D as singleSecurityGroupRuleId, E as sharedIngressRuleDescriptions, F as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, G as canonicalizeBlock, H as LIFECYCLE_FILTER_PATH, I as clearLifecycleWritesOf, J as lifecycleRuleScope, K as canonicalizeItemList, L as lifecycleSettleTarget, M as markCopiesAgreed, N as sgRemovalRuleKey, O as stackIngressRuleHolder, P as sgRuleListMember, Q as effectiveAnalyticsItem, R as recordLifecycleWrite, S as reconcileSgRules, T as sgRuleKey, U as LIFECYCLE_RULE_PATH, V as LIFECYCLE_DEFAULT_STATUS, W as LIFECYCLE_TAG_FILTERS_PATH, X as parseCfnTimestamp, Y as lifecycleUsesFilterForm, Z as EVENTBRIDGE_CONFIG_PATH, _ as ingressRuleIdentity, a as refuseRevertRevokingSiblingRules, at as configItemId, b as isResendableSocketFailure, c as siblingIdOwnedSgRules, ct as describeValue$1, d as authorizeDefinitelyNotApplied, dt as mergeLegacySingular, et as effectiveInventoryItem, f as canonicalizeSgInlineRuleProtocols, ft as shownLifecycleRuleId, g as flattenIpPermissions, h as descriptionKey, i as resolveSecretDerivedPrincipals, it as coerceCfnNumber, j as withRecordedCidrSpelling, k as survivingRecordOfRuleId, l as SG_READBACK_RETRY_DELAY_MS, lt as isPlainObject$4, m as comparableIngressIdentity, n as holdsUnprovenSecretPrincipalToken, nt as eventBridgeEnabledOf, o as sgRuleDiffKey, ot as declaresBucketObjectLock, p as canonicalizeSgRuleProtocol, q as effectiveLifecycleConfiguration, r as isResolvableSecretPrincipalList, rt as caughtErrorName, s as readSgIngressById, st as declaresNestedObjectLock, t as runDestroyForStack, tt as effectiveNotificationConfiguration, u as SG_RULE_PAGE_SIZE, ut as manualBucketDeletionClause, v as isConnectTimeout, w as securityGroupRuleMatchesCfnIngress, x as narrowIngressIpProtocol, y as isDefaultEgressRule, z as settleLifecycleRead } from "./program-DnMYJ4--.js";
10
- import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-DGHv9GNm.js";
11
- import { $ as streamTagsMatchDeclared, $o as WaitConditionSignalStore, $t as contributorInsightsRefusals, Al as maskedSecretSegment, At as tableNameReleaseWait, Bo as memberReadFailure, Bt as waitForKinesisEnableActive, Ci as earliestDefined, Cn as hasCdkAutoDeleteTag, Co as isStoredExpression, Ct as mapSSESpecification, Di as acquireIdempotencyToken, Dl as toFiniteNumber, Dt as sseSpecificationRefusal, El as toCfnInteger, Eo as awaitInFlightSibling, Es as withIndeterminateGuard, Et as readCapacityNumber, Fd as isAbsoluteAssetPath, Ff as displayAssemblyPath, Fo as SNS_DEFAULT_POLICY_ID, Ft as recordTagWrite, Fu as refuseMalformedNestedChildOutputs, G as declaredStreamTagsMember, Go as verbatimEchoDriftKeys, Gt as sendTtlWaitingOutRateLimit, Gu as refuseMalformedResourcesForDestroy, H as STREAM_POLICY_KEY, Ha as canonicalizeIpv6Cidr, Hn as childStackTags, Ho as reReadUntilSettled, Ht as isTtlRateLimited, Id as listNestedTemplateRows, Io as declaredMemberDocument, Is as isSettledInstanceState, It as settleWrittenTags, J as reverseMapStreamPolicy, Jd as decodeListingKey, Jt as vectorIndexesForCreate, K as planStreamMemberOps, Kn as licensedNameHolder, Ko as attemptedPolicyDocument, Kt as planVectorIndexUpdates, La as SG_RULE_ID_PATTERN, Ld as renderNestedTemplateTreeDefect, Lf as renderAssemblyPathEscape, Lo as declaredPolicyDocument, Ls as connectInstanceIdOf, Ma as replacedDeleteFailureVerdict, Md as stringifyValue, Mo as KMS_DEFAULT_KEY_POLICY_ID, Mt as clearTagWrites, Ol as APPSYNC_APIKEY_ARN_RESOURCE_PATH, Oo as getStackRecords, Ot as sseSpecificationToSend, Pd as findNestedTemplateTreeDefect, Pf as describeFileReadFailure, Po as OWN_WRITE_REREAD_DELAYS_MS, Pt as isDynamoDBTableArnIn, Q as streamPolicyMatchesDeclared, Qt as completeTableContributorInsightsBaseline, Ra as cfnIngressPortValue, Rf as resolveAssemblyPath, Ro as efsPolicyMatchesDeclared, Rt as takeTagWrite, Sn as S3_AUTO_DELETE_OBJECTS_TAG, So as collectPrincipalsAttachingPolicy, St as isTableName, Ti as reserveStackCreateToken, Tl as isWarmThroughputDecrease, To as withoutSiblingOwned, Ts as deleteSkipReason, Tt as pointInTimeRecoveryRefusal, U as STREAM_TAGS_KEY, Ua as canonicalizeIpv4Cidr, Uo as settleDeclaredMember, Ut as planTimeToLive, V as DynamoDBGlobalTableProvider, Va as sgProtocolKey, Vl as passedParameterClassesOf, Vn as childRowTags, Vo as policyDocumentMatchesDeclared, Vt as isTtlAlreadyDisabled, W as declaredStreamPolicyMember, Wo as warnUnsettledMember, Wt as readTtlSpec, X as streamDeclaresTags, Xi as getCurrentProducerRegions, Xt as vectorIndexesShapeDetail, Xu as accountArgs, Y as streamDeclaresPolicy, Yt as vectorIndexesSettled, Z as streamMemberRefusals, Zt as CONTRIBUTOR_INSIGHTS_KEY, Zu as withheldAccountClause, _l as isLegacyHandleId, _n as deleteTableWithIndexBusyRetry, _t as KINESIS_DESTINATION_SETTLE_POLL_MS, ac as s3BucketArn, ad as findSdkUnwiredProperties, an as reverseMapTableContributorInsights, at as localSecondaryIndexesKey, bn as waitForIndexesSettled, bo as collectGroupsAddedBySiblings, bs as waitForGoneAfterDelete, bt as hasUsableDeclaredCapacity, cc as s3BucketRegionalDomainName, cn as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, ct as sameJsonValue, dn as deleteBudgetKey, dr as withNestedStackContext, dt as desiredBagIsInformative, el as getCurrentResourceSecrets, en as indexDeclaresContributorInsights, es as classifyHandleUrl, et as canonicalizeStaleIndexDescription, fd as normalizeRecordName, fn as resolveDynamoDbDeleteBudgetClock, ft as isRefusedWarmThroughput, gl as LEGACY_HANDLE_ID_PREFIX, gn as TABLE_INDEX_NOUN, gt as warmThroughputAlreadyMatches, hi as calculateResourceDrift, hn as INDEX_SETTLE_POLL_INTERVAL_MS, ht as trimUnsentWarmMembers, ic as dnsEntryStrings, ii as withoutSiblingOwnedSgRules, in as reverseMapIndexContributorInsights, io as secretNamedAttributeNamesOf, it as gsiUnsendableChangeRefusal, jt as TAGS_BASELINE_REREAD_DELAYS_MS, ks as markWaitAbandoned, kt as tableDeleteGoneWait, lc as s3BucketWebsiteUrl, ln as beginDeleteWait, lt as coerceWarmThroughput, md as wireAttributeValue, mn as DELETE_INDEX_WAIT_PROCEED_NOTE, mt as sentWarmThroughputMembers, ni as siblingOwnedSgRuleIdentities, nn as planIndexContributorInsightsOps, nt as deletionProtectionRefusal, oc as s3BucketDomainName, of as rewriteTemplateAssetReferences, on as stripIndexContributorInsights, or as revertNestedChildFromJournal, ot as projectIndexesOnto, pd as planSubscriptionAttributes, pn as resolveDynamoDbDeleteBudgetMs, pt as readbackWarmThroughput, qo as policyContentKey, qt as readbackVectorIndexes, rl as outputReferenceProvenanceOf, rn as readContributorInsightsSpec, rr as getNestedRevertRun, rt as desiredIndexEntriesByName, sc as s3BucketDualStackDomainName, sd as withoutSdkUnwiredProperties, sl as getAccountInfo, sn as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, st as reverseMapSecondaryIndex, t as DeployEngine, tn as planContributorInsightsOp, ts as evaluateSignals, tt as declaresIndexList, un as compensateRemovedDeletionProtection, ur as getCurrentNestedStackContext, ut as declaresWarmThroughput, vn as maskedLogger, vs as waitForLambdaFunctionActive, vt as KINESIS_DISABLE_PENDING_STATUSES, wn as isTruthyCfnBoolean, wo as withoutSiblingAttachedArns, wt as maskLeafValue, xn as ECR_AUTO_DELETE_IMAGES_TAG, xo as collectManagedPolicyArnsAttachedBySiblings, xt as isPlainCapacityBlock, yc as parseWebACLArn, yn as relayedIndexBusyDelete, yt as deleteTableRetryDelays, za as recordedSgRuleId, zo as lambdaPermissionMatchesDeclared, zt as waitForContributorInsightsSettled } from "./deploy-engine-DNEAZMj7.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-Bye2zxAF.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-BL2O_O6r.js";
14
- import { T as timePhase, n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer, v as withRetry } from "./secret-reference-immutable-XFEdCfNg.js";
15
- import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-DzUentwR.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-Bz-RIOwy.js";
5
+ import { $ as isTerminalDbWaitStatus, $t as markAuxiliaryFailure, A as importRemedyCommand, An as redactForState, At as canonicalizeRoute53QueryName, Bt as createMaskedRetryLogger, C as withoutServerErrorRetries, Ct as recordedPrincipalsRepair, D as holderRefusalMask, E as assertRegionMatch, F as quotedRemedyLogicalId, Ft as packCompositeId, G as observeThenDisableProtection, Ht as maskDeep, I as readNameProperty, J as userPoolProtectionSite, K as rdsFamilyProtectionSite, L as refusalTypeShown, Ln as recordReferenceProvenanceEntry, Lt as segmentAfterAnchor, M as isPlainImportValue, Mt as compositeIdSeparatorRefusal, N as isQuotableImportValue, Nt as compositeIdSkipResult, O as holderRefusalRun, Ot as isInterruptedWaitError, P as normalizeAwsTagsToCfn, Pt as logicalIdShown, Q as isProceedDbStatus, Qn as withoutPhysicalNameCopies, Qr as recordAttributeIdCopy, R as remedyLogicalId, Rt as stateOrphanRecordRemedy, S as setBounded, T as RESOURCE_NOT_FOUND, U as deleteWithProtectionCompensation, Ur as recoverMaskedOutput, Ut as maskerOrIdentity, V as markNotGone, Vt as isSecretDerivedValue, W as logGroupProtectionSite, Wt as withDerivedNameMasks, X as deleteAfterProtectionFlipWithFinalSnapshot, Y as PROTECTION_FLIP_RETRY_WAIT_MS, Zr as physicalNameCopiesOf, Zt as isAuxiliaryFailure, _ as ambiguousAttemptLead, _t as SECRET_DERIVED_READ_LIVE, at as ElapsedBudget, b as replayFollowedAmbiguousAttempt, bt as onlySecretDerived, dt as isAwsCliLiteral, en as markCreatedBeforeFailure, f as retractCreatedResource, fr as carriesInheritedRedaction, ft as pasteableAwsCommand, g as RecentIdSet, h as CREATION_DATE_SKEW_MARGIN_MS, j as isPlainImportJson, jt as compositeIdFormatMessage, k as VALUE_NOT_SHOWN, kt as startInterruptWatch, ln as mentionsDynamicReference, lt as UNNAMEABLE_ID_CLAUSE, m as AmbiguousCreateLatch, mi as carriesSecretMask, mn as recordedSecrecyOf, mt as renderDisableCommand, n as enclosingDeadlineRemainingMs, na as injectiveKey, nt as isTerminalDeleteFailure, oi as dynamicReferenceTokens, on as holdsMaskLeaf, ot as ElapsedBudgetRegistry, p as AMBIGUOUS_LATCH_TTL_MS, pt as protectedReplacementAdvice, qt as clearCreatedBeforeFailure, ra as injectiveKeyPrefix, rt as protectionFlipKey, t as enclosingDeadlineExpired, ta as withPasteableAwsProfile, tn as markSupersedesEarlierCreate, tt as ProtectionFlipRegistry, u as reportCreatedResource, ut as WITHHELD_AWS_COMMAND, v as createAttemptKey, vt as diffPrincipalNames, w as DriftReadRefusedError, x as replayedSendWindow, xt as readPrincipalLists, y as isInsideWindow, yt as holdsSecretDerivedEntry, z as resolveExplicitPhysicalId, zn as snapshotPassProvenance, zt as createMaskedLogSinks } from "./resource-deadline-0dfvU7D5.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-fHMzKIi5.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-DRjvF3oA.js";
8
+ import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-CJq_moaK.js";
9
+ import { $ as effectiveIntelligentTieringItem, A as tagListsMatch, B as takeLifecycleWrite, C as securityGroupReadbackDelays, D as singleSecurityGroupRuleId, E as sharedIngressRuleDescriptions, F as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, G as canonicalizeBlock, H as LIFECYCLE_FILTER_PATH, I as clearLifecycleWritesOf, J as lifecycleRuleScope, K as canonicalizeItemList, L as lifecycleSettleTarget, M as markCopiesAgreed, N as sgRemovalRuleKey, O as stackIngressRuleHolder, P as sgRuleListMember, Q as effectiveAnalyticsItem, R as recordLifecycleWrite, S as reconcileSgRules, T as sgRuleKey, U as LIFECYCLE_RULE_PATH, V as LIFECYCLE_DEFAULT_STATUS, W as LIFECYCLE_TAG_FILTERS_PATH, X as parseCfnTimestamp, Y as lifecycleUsesFilterForm, Z as EVENTBRIDGE_CONFIG_PATH, _ as ingressRuleIdentity, a as refuseRevertRevokingSiblingRules, at as configItemId, b as isResendableSocketFailure, c as siblingIdOwnedSgRules, ct as describeValue$1, d as authorizeDefinitelyNotApplied, dt as mergeLegacySingular, et as effectiveInventoryItem, f as canonicalizeSgInlineRuleProtocols, ft as shownLifecycleRuleId, g as flattenIpPermissions, h as descriptionKey, i as resolveSecretDerivedPrincipals, it as coerceCfnNumber, j as withRecordedCidrSpelling, k as survivingRecordOfRuleId, l as SG_READBACK_RETRY_DELAY_MS, lt as isPlainObject$4, m as comparableIngressIdentity, n as holdsUnprovenSecretPrincipalToken, nt as eventBridgeEnabledOf, o as sgRuleDiffKey, ot as declaresBucketObjectLock, p as canonicalizeSgRuleProtocol, q as effectiveLifecycleConfiguration, r as isResolvableSecretPrincipalList, rt as caughtErrorName, s as readSgIngressById, st as declaresNestedObjectLock, t as runDestroyForStack, tt as effectiveNotificationConfiguration, u as SG_RULE_PAGE_SIZE, ut as manualBucketDeletionClause, v as isConnectTimeout, w as securityGroupRuleMatchesCfnIngress, x as narrowIngressIpProtocol, y as isDefaultEgressRule, z as settleLifecycleRead } from "./program-CQZs9Ljn.js";
10
+ import { i as redactedDeleteAddressSkip, n as isRedactedRecordedValue, r as redactedDeleteAddressFields, t as REDACTED_DELETE_ADDRESS_SKIP_REASON } from "./redacted-delete-address-DGufa4wz.js";
11
+ import { $ as streamTagsMatchDeclared, $a as canonicalizeIpv6Cidr, $d as findNestedTemplateTreeDefect, $f as describeFileReadFailure, $o as reReadUntilSettled, $s as connectInstanceIdOf, $t as contributorInsightsRefusals, Ad as normalizeRecordName, An as synthesizeArn, At as tableNameReleaseWait, Bt as waitForKinesisEnableActive, Cc as s3BucketDualStackDomainName, Cl as getAccountInfo, Cn as hasCdkAutoDeleteTag, Ct as mapSSESpecification, Dn as requireContext, Dt as sseSpecificationRefusal, En as recordWithPendingChildDeletes, Et as readCapacityNumber, Fc as parseWebACLArn, Fi as reserveStackCreateToken, Fo as withoutSiblingAttachedArns, Ft as recordTagWrite, G as declaredStreamTagsMember, Go as OWN_WRITE_REREAD_DELAYS_MS, Gs as markWaitAbandoned, Gt as sendTtlWaitingOutRateLimit, H as STREAM_POLICY_KEY, Hl as toCfnInteger, Hs as withIndeterminateGuard, Ht as isTtlRateLimited, Io as withoutSiblingOwned, Is as waitForGoneAfterDelete, It as settleWrittenTags, J as reverseMapStreamPolicy, Ja as SG_RULE_ID_PATTERN, Jn as childStackTags, Jo as declaredPolicyDocument, Jt as vectorIndexesForCreate, K as planStreamMemberOps, Kl as maskedSecretSegment, Ko as SNS_DEFAULT_POLICY_ID, Kt as planVectorIndexUpdates, Li as acquireIdempotencyToken, Lo as awaitInFlightSibling, Md as wireAttributeValue, Ml as LEGACY_HANDLE_ID_PREFIX, Mo as collectManagedPolicyArnsAttachedBySiblings, Mt as clearTagWrites, Ni as earliestDefined, Nl as isLegacyHandleId, No as collectPrincipalsAttachingPolicy, On as requireDeployContext, Ot as sseSpecificationToSend, Po as isStoredExpression, Ps as waitForLambdaFunctionActive, Pt as isDynamoDBTableArnIn, Q as streamPolicyMatchesDeclared, Qa as sgProtocolKey, Qn as licensedNameHolder, Qo as policyDocumentMatchesDeclared, Qs as isSettledInstanceState, Qt as completeTableContributorInsightsBaseline, Rt as takeTagWrite, Sc as s3BucketDomainName, Sn as S3_AUTO_DELETE_OBJECTS_TAG, St as isTableName, Tc as s3BucketWebsiteUrl, Tf as rewriteTemplateAssetReferences, Ti as calculateResourceDrift, Tn as deriveChildStackName, Tt as pointInTimeRecoveryRefusal, U as STREAM_TAGS_KEY, Ua as replacedDeleteFailureVerdict, Ul as toFiniteNumber, Uo as KMS_DEFAULT_KEY_POLICY_ID, Ut as planTimeToLive, V as DynamoDBGlobalTableProvider, Vl as isWarmThroughputDecrease, Vs as deleteSkipReason, Vt as isTtlAlreadyDisabled, W as declaredStreamPolicyMember, Wl as APPSYNC_APIKEY_ARN_RESOURCE_PATH, Wt as readTtlSpec, X as streamDeclaresTags, Xa as recordedSgRuleId, Xo as lambdaPermissionMatchesDeclared, Xt as vectorIndexesShapeDetail, Y as streamDeclaresPolicy, Ya as cfnIngressPortValue, Yo as efsPolicyMatchesDeclared, Yt as vectorIndexesSettled, Z as streamMemberRefusals, Zd as stringifyValue, Zo as memberReadFailure, Zt as CONTRIBUTOR_INSIGHTS_KEY, _n as deleteTableWithIndexBusyRetry, _r as withNestedStackContext, _s as noteLambdaFunctionDeleted, _t as KINESIS_DESTINATION_SETTLE_POLL_MS, an as reverseMapTableContributorInsights, at as localSecondaryIndexesKey, bc as dnsEntryStrings, bn as waitForIndexesSettled, bt as hasUsableDeclaredCapacity, cn as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, ct as sameJsonValue, dn as deleteBudgetKey, ds as classifyHandleUrl, dt as desiredBagIsInformative, ed as refuseMalformedNestedChildOutputs, ef as isAbsoluteAssetPath, en as indexDeclaresContributorInsights, eo as canonicalizeIpv4Cidr, ep as displayAssemblyPath, es as settleDeclaredMember, et as canonicalizeStaleIndexDescription, fi as siblingOwnedSgRuleIdentities, fn as resolveDynamoDbDeleteBudgetClock, fr as revertNestedChildFromJournal, fs as evaluateSignals, ft as isRefusedWarmThroughput, gd as withheldAccountClause, gl as getCurrentResourceSecrets, gn as TABLE_INDEX_NOUN, gs as mayHaveWindow, gt as warmThroughputAlreadyMatches, hd as accountArgs, hn as INDEX_SETTLE_POLL_INTERVAL_MS, ho as secretNamedAttributeNamesOf, hs as lateLogDeliveryWindowEnd, ht as trimUnsentWarmMembers, in as reverseMapIndexContributorInsights, is as policyContentKey, it as gsiUnsendableChangeRefusal, jd as planSubscriptionAttributes, jo as collectGroupsAddedBySiblings, jt as TAGS_BASELINE_REREAD_DELAYS_MS, kn as runAccountOf, kt as tableDeleteGoneWait, ln as beginDeleteWait, lr as getNestedRevertRun, lt as coerceWarmThroughput, mi as withoutSiblingOwnedSgRules, mn as DELETE_INDEX_WAIT_PROCEED_NOTE, ms as lambdaLogGroupName, mt as sentWarmThroughputMembers, nf as renderNestedTemplateTreeDefect, nn as planIndexContributorInsightsOps, np as renderAssemblyPathEscape, ns as verbatimEchoDriftKeys, nt as deletionProtectionRefusal, oa as getCurrentProducerRegions, on as stripIndexContributorInsights, ot as projectIndexesOnto, ou as passedParameterClassesOf, pf as decodeListingKey, pn as resolveDynamoDbDeleteBudgetMs, pt as readbackWarmThroughput, qn as childRowTags, qo as declaredMemberDocument, qt as readbackVectorIndexes, rn as readContributorInsightsSpec, rp as resolveAssemblyPath, rs as attemptedPolicyDocument, rt as desiredIndexEntriesByName, sn as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, st as reverseMapSecondaryIndex, t as DeployEngine, tf as listNestedTemplateRows, tn as planContributorInsightsOp, ts as warnUnsettledMember, tt as declaresIndexList, ud as refuseMalformedResourcesForDestroy, un as compensateRemovedDeletionProtection, us as WaitConditionSignalStore, ut as declaresWarmThroughput, vn as maskedLogger, vs as wasInvoked, vt as KINESIS_DISABLE_PENDING_STATUSES, wc as s3BucketRegionalDomainName, wd as findSdkUnwiredProperties, wn as isTruthyCfnBoolean, wt as maskLeafValue, xc as s3BucketArn, xn as ECR_AUTO_DELETE_IMAGES_TAG, xt as isPlainCapacityBlock, yl as outputReferenceProvenanceOf, yn as relayedIndexBusyDelete, yt as deleteTableRetryDelays, zo as getStackRecords, zt as waitForContributorInsightsSettled } from "./deploy-engine-DQU_GZet.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-B4IlIPvY.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-CWbzgUdy.js";
14
+ import { n as unchangedBehindSecretReference, t as onlySecretReferencesDiffer } from "./secret-reference-immutable-CSgI6Td9.js";
15
+ import { a as principalOwnWriteMembers, c as stringListMember, n as declaredStringList, o as settleOwnWriteMembers } from "./settle-own-write-members-DqlMjdQV.js";
16
16
  import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
17
+ import { n as withGuardReadRetry, t as rethrowIfThrottled } from "./guard-read-retry-CaBmRzwo.js";
17
18
  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-zaan5pi0.js";
19
- import { a as withRemovalDefaults, i as removedTemplateKeys, t as clearOnUpdateRemoval } from "./update-removal-BpxPxmQR.js";
20
- import { B as passedNoEchoParametersOf, c as blockDeviceMappingsDifferOnlyInDeleteOnTermination, f as canonicalLambdaFunctionName, h as sameLambdaFunctionAddress, m as parseLambdaFunctionAddress, p as lambdaFunctionNameForMask, u as ecsServiceLaunchTypeSetOrChanged } from "./replacement-rules-BAJWgr5f.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-Dkg4vDao.js";
22
- import { RDSProvider } from "./rds-provider-BSeLwUR8.js";
23
- import { NeptuneProvider } from "./neptune-provider-2O6bzLTH.js";
24
- import { ASGProvider } from "./asg-provider-DkhAcikX.js";
25
- import { createHash, randomUUID } from "node:crypto";
19
+ 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-CGDF52lA.js";
20
+ import { a as withRemovalDefaults, i as removedTemplateKeys, t as clearOnUpdateRemoval } from "./update-removal-VyphayB2.js";
21
+ import { B as passedNoEchoParametersOf, c as blockDeviceMappingsDifferOnlyInDeleteOnTermination, f as canonicalLambdaFunctionName, h as sameLambdaFunctionAddress, m as parseLambdaFunctionAddress, p as lambdaFunctionNameForMask, u as ecsServiceLaunchTypeSetOrChanged } from "./replacement-rules-BQ-sbuiR.js";
22
+ 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-2hRUEW1E.js";
23
+ import { c as timePhase, n as withRetry } from "./retry-ClxjEovs.js";
24
+ import { RDSProvider } from "./rds-provider-By5mf53G.js";
25
+ import { NeptuneProvider } from "./neptune-provider-BiLAHYo4.js";
26
+ import { ASGProvider } from "./asg-provider-CAUjmdq9.js";
27
+ import { createHash, randomBytes, randomUUID } from "node:crypto";
26
28
  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
29
  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";
28
30
  import { CreateQueueCommand, DeleteQueueCommand, GetQueueAttributesCommand, GetQueueUrlCommand, ListQueueTagsCommand, QueueDoesNotExist, SQSClient, SetQueueAttributesCommand, TagQueueCommand, UntagQueueCommand } from "@aws-sdk/client-sqs";
29
31
  import { AuthorizationErrorException, CreateTopicCommand, DeleteTopicCommand, GetSubscriptionAttributesCommand, GetTopicAttributesCommand, InvalidParameterException, ListSubscriptionsByTopicCommand, ListTagsForResourceCommand, ListTopicsCommand, NotFoundException, SNSClient, SetSubscriptionAttributesCommand, SetTopicAttributesCommand, SubscribeCommand, TagResourceCommand, UnsubscribeCommand, UntagResourceCommand } from "@aws-sdk/client-sns";
30
32
  import { AddPermissionCommand, CodeSigningConfigNotFoundException, CreateEventSourceMappingCommand, CreateFunctionCommand, CreateFunctionUrlConfigCommand, DeleteEventSourceMappingCommand, DeleteFunctionCodeSigningConfigCommand, DeleteFunctionCommand, DeleteFunctionConcurrencyCommand, DeleteFunctionEventInvokeConfigCommand, DeleteFunctionUrlConfigCommand, DeleteLayerVersionCommand, GetEventSourceMappingCommand, GetFunctionCodeSigningConfigCommand, GetFunctionCommand, GetFunctionConcurrencyCommand, GetFunctionConfigurationCommand, GetFunctionEventInvokeConfigCommand, GetFunctionRecursionConfigCommand, GetFunctionScalingConfigCommand, GetFunctionUrlConfigCommand, GetLayerVersionByArnCommand, GetPolicyCommand as GetPolicyCommand$1, GetRuntimeManagementConfigCommand, LambdaClient, ListEventSourceMappingsCommand, ListLayerVersionsCommand, ListTagsCommand, PublishLayerVersionCommand, PublishVersionCommand, PutFunctionCodeSigningConfigCommand, PutFunctionConcurrencyCommand, PutFunctionEventInvokeConfigCommand, PutFunctionRecursionConfigCommand, PutFunctionScalingConfigCommand, PutRuntimeManagementConfigCommand, RemovePermissionCommand, ResourceNotFoundException, TagResourceCommand as TagResourceCommand$1, UntagResourceCommand as UntagResourceCommand$1, UpdateEventSourceMappingCommand, UpdateFunctionCodeCommand, UpdateFunctionConfigurationCommand, UpdateFunctionUrlConfigCommand, waitUntilFunctionActiveV2, waitUntilFunctionUpdatedV2 } from "@aws-sdk/client-lambda";
31
33
  import { GetCallerIdentityCommand, STSClient } from "@aws-sdk/client-sts";
32
- import { AllocateAddressCommand, AssociateAddressCommand, AssociateIamInstanceProfileCommand, AssociateNatGatewayAddressCommand, AssociateRouteTableCommand, AssociateSubnetCidrBlockCommand, AttachInternetGatewayCommand, AttachVolumeCommand, AttachVpnGatewayCommand, AuthorizeSecurityGroupEgressCommand, AuthorizeSecurityGroupIngressCommand, CreateInternetGatewayCommand, CreateNatGatewayCommand, CreateNetworkAclCommand, CreateNetworkAclEntryCommand, CreateRouteCommand, CreateRouteTableCommand, CreateSecurityGroupCommand, CreateSubnetCommand, CreateTagsCommand, CreateVpcCommand, CreateVpcEndpointCommand, DeleteInternetGatewayCommand, DeleteNatGatewayCommand, DeleteNetworkAclCommand, DeleteNetworkAclEntryCommand, DeleteNetworkInterfaceCommand, DeleteRouteCommand, DeleteRouteTableCommand, DeleteSecurityGroupCommand, DeleteSubnetCommand, DeleteTagsCommand, DeleteVpcCommand, DeleteVpcEndpointsCommand, DescribeAddressesCommand, DescribeAvailabilityZonesCommand, DescribeIamInstanceProfileAssociationsCommand, DescribeInstanceAttributeCommand, DescribeInstanceCreditSpecificationsCommand, DescribeInstancesCommand, DescribeInternetGatewaysCommand, DescribeNatGatewaysCommand, DescribeNetworkAclsCommand, DescribeNetworkInterfacesCommand, DescribeRouteTablesCommand, DescribeSecurityGroupRulesCommand, DescribeSecurityGroupsCommand, DescribeSubnetsCommand, DescribeVolumesCommand, DescribeVpcAttributeCommand, DescribeVpcEndpointsCommand, DescribeVpcsCommand, DescribeVpnGatewaysCommand, DetachInternetGatewayCommand, DetachVolumeCommand, DetachVpnGatewayCommand, DisassociateAddressCommand, DisassociateIamInstanceProfileCommand, DisassociateNatGatewayAddressCommand, DisassociateRouteTableCommand, DisassociateSubnetCidrBlockCommand, EC2Client, GetIpamPoolAllocationsCommand, ModifyInstanceAttributeCommand, ModifyInstanceCreditSpecificationCommand, ModifyInstanceMetadataOptionsCommand, ModifyInstancePlacementCommand, ModifyPrivateDnsNameOptionsCommand, ModifySubnetAttributeCommand, ModifyVpcAttributeCommand, ModifyVpcEndpointCommand, ModifyVpcTenancyCommand, MonitorInstancesCommand, ReleaseAddressCommand, ReplaceIamInstanceProfileAssociationCommand, ReplaceNetworkAclAssociationCommand, ReplaceNetworkAclEntryCommand, ReplaceRouteCommand, RevokeSecurityGroupEgressCommand, RevokeSecurityGroupIngressCommand, RunInstancesCommand, StartInstancesCommand, StopInstancesCommand, TerminateInstancesCommand, UnmonitorInstancesCommand, UpdateSecurityGroupRuleDescriptionsEgressCommand, UpdateSecurityGroupRuleDescriptionsIngressCommand, waitUntilInstanceRunning, waitUntilInstanceTerminated, waitUntilNatGatewayAvailable, waitUntilNatGatewayDeleted } from "@aws-sdk/client-ec2";
34
+ import { AllocateAddressCommand, AssociateAddressCommand, AssociateIamInstanceProfileCommand, AssociateNatGatewayAddressCommand, AssociateRouteTableCommand, AssociateSubnetCidrBlockCommand, AttachInternetGatewayCommand, AttachVolumeCommand, AttachVpnGatewayCommand, AuthorizeSecurityGroupEgressCommand, AuthorizeSecurityGroupIngressCommand, CreateInternetGatewayCommand, CreateNatGatewayCommand, CreateNetworkAclCommand, CreateNetworkAclEntryCommand, CreateRouteCommand, CreateRouteTableCommand, CreateSecurityGroupCommand, CreateSubnetCommand, CreateTagsCommand, CreateVpcCommand, CreateVpcEndpointCommand, DeleteInternetGatewayCommand, DeleteNatGatewayCommand, DeleteNetworkAclCommand, DeleteNetworkAclEntryCommand, DeleteNetworkInterfaceCommand, DeleteRouteCommand, DeleteRouteTableCommand, DeleteSecurityGroupCommand, DeleteSubnetCommand, DeleteTagsCommand, DeleteVpcCommand, DeleteVpcEndpointsCommand, DescribeAddressesCommand, DescribeAvailabilityZonesCommand, DescribeIamInstanceProfileAssociationsCommand, DescribeInstanceAttributeCommand, DescribeInstanceCreditSpecificationsCommand, DescribeInstancesCommand, DescribeInternetGatewaysCommand, DescribeNatGatewaysCommand, DescribeNetworkAclsCommand, DescribeNetworkInterfacesCommand, DescribeRouteTablesCommand, DescribeSecurityGroupRulesCommand, DescribeSecurityGroupsCommand, DescribeSubnetsCommand, DescribeVolumesCommand, DescribeVpcAttributeCommand, DescribeVpcEndpointsCommand, DescribeVpcsCommand, DescribeVpnGatewaysCommand, DetachInternetGatewayCommand, DetachVolumeCommand, DetachVpnGatewayCommand, DisableVgwRoutePropagationCommand, DisassociateAddressCommand, DisassociateIamInstanceProfileCommand, DisassociateNatGatewayAddressCommand, DisassociateRouteTableCommand, DisassociateSubnetCidrBlockCommand, EC2Client, EnableVgwRoutePropagationCommand, GetIpamPoolAllocationsCommand, ModifyInstanceAttributeCommand, ModifyInstanceCreditSpecificationCommand, ModifyInstanceMetadataOptionsCommand, ModifyInstancePlacementCommand, ModifyPrivateDnsNameOptionsCommand, ModifySubnetAttributeCommand, ModifyVpcAttributeCommand, ModifyVpcEndpointCommand, ModifyVpcTenancyCommand, MonitorInstancesCommand, ReleaseAddressCommand, ReplaceIamInstanceProfileAssociationCommand, ReplaceNetworkAclAssociationCommand, ReplaceNetworkAclEntryCommand, ReplaceRouteCommand, RevokeSecurityGroupEgressCommand, RevokeSecurityGroupIngressCommand, RunInstancesCommand, StartInstancesCommand, StopInstancesCommand, TerminateInstancesCommand, UnmonitorInstancesCommand, UpdateSecurityGroupRuleDescriptionsEgressCommand, UpdateSecurityGroupRuleDescriptionsIngressCommand, waitUntilInstanceRunning, waitUntilInstanceTerminated, waitUntilNatGatewayAvailable, waitUntilNatGatewayDeleted } from "@aws-sdk/client-ec2";
33
35
  import { CreateTableCommand, DeleteResourcePolicyCommand, DeleteTableCommand, DescribeContinuousBackupsCommand, DescribeContributorInsightsCommand, DescribeKinesisStreamingDestinationCommand, DescribeTableCommand, DescribeTimeToLiveCommand, DisableKinesisStreamingDestinationCommand, DynamoDBClient, EnableKinesisStreamingDestinationCommand, GetResourcePolicyCommand, ListTagsOfResourceCommand, PolicyNotFoundException, PutResourcePolicyCommand, ResourceNotFoundException as ResourceNotFoundException$1, TableNotFoundException, TagResourceCommand as TagResourceCommand$2, UntagResourceCommand as UntagResourceCommand$2, UpdateContinuousBackupsCommand, UpdateContributorInsightsCommand, UpdateKinesisStreamingDestinationCommand, UpdateTableCommand, UpdateTimeToLiveCommand } from "@aws-sdk/client-dynamodb";
34
36
  import { APIGatewayClient, CreateAuthorizerCommand, CreateDeploymentCommand, CreateResourceCommand, CreateRestApiCommand, CreateStageCommand, DeleteAuthorizerCommand, DeleteDeploymentCommand, DeleteIntegrationCommand, DeleteIntegrationResponseCommand, DeleteMethodCommand, DeleteMethodResponseCommand, DeleteResourceCommand, DeleteRestApiCommand, DeleteStageCommand, GetAccountCommand, GetAuthorizerCommand, GetAuthorizersCommand, GetDeploymentCommand, GetDeploymentsCommand, GetMethodCommand, GetResourceCommand, GetRestApiCommand, GetRestApisCommand, GetStageCommand, ImportRestApiCommand, NotFoundException as NotFoundException$1, PutIntegrationCommand, PutIntegrationResponseCommand, PutMethodCommand, PutMethodResponseCommand, PutRestApiCommand, TagResourceCommand as TagResourceCommand$3, UntagResourceCommand as UntagResourceCommand$3, UpdateAccountCommand, UpdateAuthorizerCommand, UpdateDeploymentCommand, UpdateMethodCommand, UpdateRestApiCommand, UpdateStageCommand } from "@aws-sdk/client-api-gateway";
35
37
  import { CreateArchiveCommand, CreateEventBusCommand, DeleteArchiveCommand, DeleteEventBusCommand, DeleteRuleCommand, DescribeArchiveCommand, DescribeEventBusCommand, DescribeRuleCommand, EventBridgeClient, ListRulesCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$1, ListTargetsByRuleCommand, PutPermissionCommand, PutRuleCommand, PutTargetsCommand, RemoveTargetsCommand, ResourceNotFoundException as ResourceNotFoundException$2, TagResourceCommand as TagResourceCommand$4, UntagResourceCommand as UntagResourceCommand$4, UpdateArchiveCommand, UpdateEventBusCommand } from "@aws-sdk/client-eventbridge";
@@ -48,7 +50,7 @@ import { CreateNetworkConnectorCommand, DeleteNetworkConnectorCommand, GetNetwor
48
50
  import * as fs from "node:fs";
49
51
  import * as path from "node:path";
50
52
  import { CreateRepositoryCommand, DeleteLifecyclePolicyCommand, DeleteRepositoryCommand, DeleteRepositoryPolicyCommand, DescribeRepositoriesCommand, ECRClient, GetLifecyclePolicyCommand, GetRepositoryPolicyCommand, LifecyclePolicyNotFoundException, ListTagsForResourceCommand as ListTagsForResourceCommand$9, PutImageScanningConfigurationCommand, PutImageTagMutabilityCommand, PutLifecyclePolicyCommand, RepositoryNotEmptyException, RepositoryNotFoundException, RepositoryPolicyNotFoundException, SetRepositoryPolicyCommand, TagResourceCommand as TagResourceCommand$11, UntagResourceCommand as UntagResourceCommand$11 } from "@aws-sdk/client-ecr";
51
- import { AddTagsCommand, CreateListenerCommand, CreateLoadBalancerCommand, CreateTargetGroupCommand, DeleteListenerCommand, DeleteLoadBalancerCommand, DeleteTargetGroupCommand, DeregisterTargetsCommand, DescribeCapacityReservationCommand, DescribeListenerAttributesCommand, DescribeListenersCommand, DescribeLoadBalancerAttributesCommand, DescribeLoadBalancersCommand, DescribeTagsCommand, DescribeTargetGroupAttributesCommand, DescribeTargetGroupsCommand, DescribeTargetHealthCommand, ElasticLoadBalancingV2Client, ModifyCapacityReservationCommand, ModifyIpPoolsCommand, ModifyListenerAttributesCommand, ModifyListenerCommand, ModifyLoadBalancerAttributesCommand, ModifyTargetGroupAttributesCommand, ModifyTargetGroupCommand, RegisterTargetsCommand, RemoveTagsCommand, SetIpAddressTypeCommand, SetSecurityGroupsCommand, SetSubnetsCommand, waitUntilLoadBalancerAvailable } from "@aws-sdk/client-elastic-load-balancing-v2";
53
+ import { AddListenerCertificatesCommand, AddTagsCommand, CreateListenerCommand, CreateLoadBalancerCommand, CreateTargetGroupCommand, DeleteListenerCommand, DeleteLoadBalancerCommand, DeleteTargetGroupCommand, DeregisterTargetsCommand, DescribeCapacityReservationCommand, DescribeListenerAttributesCommand, DescribeListenerCertificatesCommand, DescribeListenersCommand, DescribeLoadBalancerAttributesCommand, DescribeLoadBalancersCommand, DescribeTagsCommand, DescribeTargetGroupAttributesCommand, DescribeTargetGroupsCommand, DescribeTargetHealthCommand, ElasticLoadBalancingV2Client, ModifyCapacityReservationCommand, ModifyIpPoolsCommand, ModifyListenerAttributesCommand, ModifyListenerCommand, ModifyLoadBalancerAttributesCommand, ModifyTargetGroupAttributesCommand, ModifyTargetGroupCommand, RegisterTargetsCommand, RemoveListenerCertificatesCommand, RemoveTagsCommand, SetIpAddressTypeCommand, SetSecurityGroupsCommand, SetSubnetsCommand, waitUntilLoadBalancerAvailable } from "@aws-sdk/client-elastic-load-balancing-v2";
52
54
  import { CreateAliasCommand, CreateKeyCommand, DeleteAliasCommand, DescribeKeyCommand, DisableKeyCommand, DisableKeyRotationCommand, DisabledException, EnableKeyCommand, EnableKeyRotationCommand, GetKeyPolicyCommand, GetKeyRotationStatusCommand, KMSClient, ListAliasesCommand, ListKeysCommand, ListResourceTagsCommand, NotFoundException as NotFoundException$2, PutKeyPolicyCommand, ScheduleKeyDeletionCommand, TagResourceCommand as TagResourceCommand$12, UnsupportedOperationException, UntagResourceCommand as UntagResourceCommand$12, UpdateAliasCommand, UpdateKeyDescriptionCommand } from "@aws-sdk/client-kms";
53
55
  import { isDeepStrictEqual } from "node:util";
54
56
  import { AddTagsToResourceCommand as AddTagsToResourceCommand$2, CreateDBProxyCommand, CreateDBProxyEndpointCommand, DBProxyEndpointNotFoundFault, DBProxyNotFoundFault, DBProxyTargetGroupNotFoundFault, DBProxyTargetNotFoundFault, DeleteDBProxyCommand, DeleteDBProxyEndpointCommand, DeregisterDBProxyTargetsCommand, DescribeDBProxiesCommand, DescribeDBProxyEndpointsCommand, DescribeDBProxyTargetGroupsCommand, DescribeDBProxyTargetsCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$10, ModifyDBProxyCommand, ModifyDBProxyEndpointCommand, ModifyDBProxyTargetGroupCommand, RDSClient, RegisterDBProxyTargetsCommand, RemoveTagsFromResourceCommand as RemoveTagsFromResourceCommand$2 } from "@aws-sdk/client-rds";
@@ -58,7 +60,7 @@ import { DeleteAlarmCommand, GetAlarmsCommand, LightsailClient, PutAlarmCommand
58
60
  import { ConnectClient, CreateInstanceCommand, DeleteInstanceCommand, DescribeInstanceAttributeCommand as DescribeInstanceAttributeCommand$1, DescribeInstanceCommand, InvalidRequestException, ListInstanceAttributesCommand, ListInstancesCommand, ResourceNotFoundException as ResourceNotFoundException$11, TagResourceCommand as TagResourceCommand$14, UntagResourceCommand as UntagResourceCommand$14, UpdateInstanceAttributeCommand } from "@aws-sdk/client-connect";
59
61
  import { ApiGatewayV2Client, CreateApiCommand, CreateAuthorizerCommand as CreateAuthorizerCommand$1, CreateIntegrationCommand, CreateRouteCommand as CreateRouteCommand$1, CreateStageCommand as CreateStageCommand$1, DeleteAccessLogSettingsCommand, DeleteApiCommand, DeleteAuthorizerCommand as DeleteAuthorizerCommand$1, DeleteCorsConfigurationCommand, DeleteIntegrationCommand as DeleteIntegrationCommand$1, DeleteRouteCommand as DeleteRouteCommand$1, DeleteRouteRequestParameterCommand, DeleteRouteSettingsCommand, DeleteStageCommand as DeleteStageCommand$1, GetApiCommand, GetApisCommand, GetAuthorizerCommand as GetAuthorizerCommand$1, GetAuthorizersCommand as GetAuthorizersCommand$1, GetIntegrationCommand, GetIntegrationsCommand, GetRouteCommand, GetStageCommand as GetStageCommand$1, NotFoundException as NotFoundException$3, TagResourceCommand as TagResourceCommand$15, UntagResourceCommand as UntagResourceCommand$15, UpdateApiCommand, UpdateAuthorizerCommand as UpdateAuthorizerCommand$1, UpdateIntegrationCommand, UpdateRouteCommand, UpdateStageCommand as UpdateStageCommand$1 } from "@aws-sdk/client-apigatewayv2";
60
62
  import { CreateStateMachineCommand, DeleteStateMachineCommand, DescribeStateMachineCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$12, SFNClient, StateMachineDoesNotExist, TagResourceCommand as TagResourceCommand$16, UntagResourceCommand as UntagResourceCommand$16, UpdateStateMachineCommand } from "@aws-sdk/client-sfn";
61
- import { CreateClusterCommand, CreateServiceCommand, DeleteClusterCommand, DeleteServiceCommand, DeregisterTaskDefinitionCommand, DescribeClustersCommand, DescribeServicesCommand, DescribeTaskDefinitionCommand, ECSClient, ListTaskDefinitionsCommand, PutClusterCapacityProvidersCommand, RegisterTaskDefinitionCommand, TagResourceCommand as TagResourceCommand$17, UntagResourceCommand as UntagResourceCommand$17, UpdateClusterCommand, UpdateServiceCommand, waitUntilServicesStable } from "@aws-sdk/client-ecs";
63
+ import { CreateClusterCommand, CreateServiceCommand, DeleteClusterCommand, DeleteServiceCommand, DeregisterTaskDefinitionCommand, DescribeClustersCommand, DescribeServicesCommand, DescribeTaskDefinitionCommand, ECSClient, ListTaskDefinitionsCommand, PutClusterCapacityProvidersCommand, RegisterTaskDefinitionCommand, TagResourceCommand as TagResourceCommand$17, ThresholdType, UntagResourceCommand as UntagResourceCommand$17, UpdateClusterCommand, UpdateServiceCommand, waitUntilServicesStable } from "@aws-sdk/client-ecs";
62
64
  import { AddTagsToResourceCommand as AddTagsToResourceCommand$3, CreateDBClusterCommand as CreateDBClusterCommand$1, CreateDBInstanceCommand as CreateDBInstanceCommand$1, CreateDBSubnetGroupCommand as CreateDBSubnetGroupCommand$1, DeleteDBClusterCommand as DeleteDBClusterCommand$1, DeleteDBInstanceCommand as DeleteDBInstanceCommand$1, DeleteDBSubnetGroupCommand as DeleteDBSubnetGroupCommand$1, DescribeDBClusterSnapshotsCommand as DescribeDBClusterSnapshotsCommand$1, DescribeDBClustersCommand as DescribeDBClustersCommand$1, DescribeDBInstancesCommand as DescribeDBInstancesCommand$1, DescribeDBSubnetGroupsCommand as DescribeDBSubnetGroupsCommand$1, DescribeGlobalClustersCommand as DescribeGlobalClustersCommand$1, DocDBClient, ListTagsForResourceCommand as ListTagsForResourceCommand$13, ModifyDBClusterCommand as ModifyDBClusterCommand$1, ModifyDBInstanceCommand as ModifyDBInstanceCommand$1, ModifyDBSubnetGroupCommand as ModifyDBSubnetGroupCommand$1, RemoveFromGlobalClusterCommand as RemoveFromGlobalClusterCommand$1, RemoveTagsFromResourceCommand as RemoveTagsFromResourceCommand$3, RestoreDBClusterFromSnapshotCommand as RestoreDBClusterFromSnapshotCommand$1, RestoreDBClusterToPointInTimeCommand as RestoreDBClusterToPointInTimeCommand$1 } from "@aws-sdk/client-docdb";
63
65
  import { AppConfigClient, CreateEnvironmentCommand, DeleteEnvironmentCommand, GetEnvironmentCommand, TagResourceCommand as TagResourceCommand$18, UntagResourceCommand as UntagResourceCommand$18, UpdateEnvironmentCommand } from "@aws-sdk/client-appconfig";
64
66
  import { CreateWebACLCommand, DeleteWebACLCommand, GetWebACLCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$14, TagResourceCommand as TagResourceCommand$19, UntagResourceCommand as UntagResourceCommand$19, UpdateWebACLCommand, WAFNonexistentItemException, WAFV2Client } from "@aws-sdk/client-wafv2";
@@ -5428,11 +5430,12 @@ async function listOwnedBucket(bucketName) {
5428
5430
  try {
5429
5431
  let token;
5430
5432
  for (let page = 0; page < 100; page++) {
5431
- const out = await this.s3Client.send(new ListBucketsCommand({
5433
+ const command = new ListBucketsCommand({
5432
5434
  Prefix: bucketName,
5433
5435
  MaxBuckets: 1e3,
5434
5436
  ...token !== void 0 ? { ContinuationToken: token } : {}
5435
- }));
5437
+ });
5438
+ const out = await withGuardReadRetry(() => this.s3Client.send(command), "AWS::S3::Bucket");
5436
5439
  const found = (out.Buckets ?? []).find((b) => b.Name === bucketName);
5437
5440
  if (found !== void 0) return { bucket: found };
5438
5441
  token = out.ContinuationToken || void 0;
@@ -5480,7 +5483,7 @@ async function probeBucketRegion(bucketName) {
5480
5483
  try {
5481
5484
  return {
5482
5485
  kind: "region",
5483
- region: await this.resolveOwnedBucketRegion(bucketName)
5486
+ region: await withGuardReadRetry(() => this.resolveOwnedBucketRegion(bucketName), "AWS::S3::Bucket")
5484
5487
  };
5485
5488
  } catch (probeError) {
5486
5489
  if (isNoSuchBucketError(probeError)) return { kind: "absent" };
@@ -10657,6 +10660,7 @@ async function deleteImpl$33(logicalId, physicalId, resourceType, properties, co
10657
10660
  const clientRegion = await this.lambdaClient.config.region();
10658
10661
  assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
10659
10662
  this.logFunctionGone(logicalId, physicalId, context);
10663
+ await carryLateLogWindow(this, physicalId, properties);
10660
10664
  return;
10661
10665
  }
10662
10666
  const cause = error instanceof Error ? error : void 0;
@@ -10664,6 +10668,7 @@ async function deleteImpl$33(logicalId, physicalId, resourceType, properties, co
10664
10668
  const failure = error instanceof Error && error.name.includes("NotFound") ? markNotGone(wrapped) : wrapped;
10665
10669
  throw stripped ? markDeleteStarted(failure) : failure;
10666
10670
  }
10671
+ await carryLateLogWindow(this, physicalId, properties);
10667
10672
  if (hasVpcConfig) await this.cleanupLambdaEnis(physicalId, Date.now() + enclosingDeadlineRemainingMs() - this.eniDeadlineMarginMs);
10668
10673
  if (properties?.["CapacityProviderConfig"] !== void 0) await this.waitForFunctionGone({
10669
10674
  logicalId,
@@ -10671,6 +10676,16 @@ async function deleteImpl$33(logicalId, physicalId, resourceType, properties, co
10671
10676
  functionName: physicalId
10672
10677
  }, createMaskedLogSinks(this.logger, context?.maskSecrets));
10673
10678
  }
10679
+ async function carryLateLogWindow(provider, functionName, properties) {
10680
+ try {
10681
+ const region = await provider.lambdaClient.config.region();
10682
+ if (!wasInvoked(region, functionName)) return;
10683
+ const { accountId } = await getAccountInfo(region);
10684
+ const environment = properties?.["Environment"];
10685
+ const variables = environment !== null && typeof environment === "object" && !Array.isArray(environment) ? environment["Variables"] : void 0;
10686
+ noteLambdaFunctionDeleted(accountId, region, functionName, lambdaLogGroupName(functionName, properties), variables !== null && typeof variables === "object" && !Array.isArray(variables) ? variables : void 0);
10687
+ } catch {}
10688
+ }
10674
10689
  async function waitForFunctionGone(target, log) {
10675
10690
  const { logicalId, resourceType, functionName } = target;
10676
10691
  const deadline = Date.now() + Math.min(this.functionUpdateMaxWaitSeconds * 1e3, enclosingDeadlineRemainingMs() - this.latestPublishedDeadlineMarginMs);
@@ -10967,7 +10982,8 @@ async function unsettledInTransition$6(physicalId, _logicalId, _resourceType, na
10967
10982
  const cfg = (await this.lambdaClient.send(new GetFunctionCommand({ FunctionName: physicalId }))).Configuration;
10968
10983
  if (cfg?.State !== "Pending" && cfg?.LastUpdateStatus !== "InProgress") return /* @__PURE__ */ new Set();
10969
10984
  return new Set([...names].filter((name) => !SEPARATELY_APPLIED_KEYS.has(name)));
10970
- } catch {
10985
+ } catch (error) {
10986
+ rethrowIfThrottled(error);
10971
10987
  return names;
10972
10988
  }
10973
10989
  }
@@ -15105,7 +15121,8 @@ async function unsettledInTransition$5(physicalId, _logicalId, _resourceType, na
15105
15121
  if (((await this.dynamoDBClient.send(new DescribeKinesisStreamingDestinationCommand({ TableName: physicalId }))).KinesisDataStreamDestinations ?? []).some((d) => d.DestinationStatus === "ENABLING" || d.DestinationStatus === "DISABLING" || d.DestinationStatus === "UPDATING")) moving.add("KinesisStreamSpecification");
15106
15122
  }
15107
15123
  return moving;
15108
- } catch {
15124
+ } catch (error) {
15125
+ rethrowIfThrottled(error);
15109
15126
  return names;
15110
15127
  }
15111
15128
  }
@@ -17275,10 +17292,44 @@ async function deleteOnce$1(logicalId, physicalId, resourceType, context, flip)
17275
17292
  const clientRegion = await this.logsClient.config.region();
17276
17293
  assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
17277
17294
  this.logGoneOnDelete(logicalId, physicalId, context);
17295
+ await this.deleteAgainIfLateLambdaLogsReturn(logicalId, physicalId, context);
17278
17296
  return;
17279
17297
  }
17280
17298
  throw this.wrapDeleteError(logicalId, physicalId, resourceType, context, error);
17281
17299
  }
17300
+ await this.deleteAgainIfLateLambdaLogsReturn(logicalId, physicalId, context);
17301
+ }
17302
+ async function deleteAgainIfLateLambdaLogsReturn(logicalId, physicalId, context) {
17303
+ let end;
17304
+ try {
17305
+ const region = await this.logsClient.config.region();
17306
+ if (!mayHaveWindow(region, physicalId)) return;
17307
+ const { accountId } = await getAccountInfo(region);
17308
+ end = lateLogDeliveryWindowEnd(accountId, region, physicalId);
17309
+ } catch {
17310
+ return;
17311
+ }
17312
+ if (end === void 0) return;
17313
+ const mask = maskerOrIdentity(context?.maskSecrets);
17314
+ for (let now = Date.now(); now < end; now = Date.now()) {
17315
+ await this.sleep(Math.min(this.lateLogPollMs, end - now));
17316
+ try {
17317
+ const back = (await this.logsClient.send(new DescribeLogGroupsCommand({ logGroupNamePrefix: physicalId }))).logGroups?.find((g) => g.logGroupName === physicalId);
17318
+ if (back === void 0) continue;
17319
+ if (back.retentionInDays !== void 0 || back.kmsKeyId !== void 0) {
17320
+ this.logger.warn(mask(safeMsg`Log group ${physicalId} was created again with a retention or KMS key, so it is not Lambda's late log delivery; left in place`));
17321
+ return;
17322
+ }
17323
+ await this.logsClient.send(new DeleteLogGroupCommand({ logGroupName: physicalId }));
17324
+ this.logger.debug(safeMsg`Log group ${logicalId} came back with its Lambda function's late logs; deleted it again`);
17325
+ } catch (error) {
17326
+ if (error instanceof ResourceNotFoundException$5) continue;
17327
+ const failure = describeAwsFailure(error);
17328
+ this.logger.debug(mask(safeMsg`Late-log watch of log group ${physicalId}: ${failure.detail}`));
17329
+ this.logger.warn(mask(safeMsg`Log group ${physicalId} may have come back with its Lambda function's late logs: ${failure.summary}`));
17330
+ return;
17331
+ }
17332
+ }
17282
17333
  }
17283
17334
  function wrapDeleteError$5(logicalId, physicalId, resourceType, context, error) {
17284
17335
  const cause = error instanceof Error ? error : void 0;
@@ -17481,6 +17532,8 @@ var LogsLogGroupProvider = class {
17481
17532
  logger = getLogger().child("LogsLogGroupProvider");
17482
17533
  ownWriteRereadDelaysMs = OWN_WRITE_REREAD_DELAYS_MS;
17483
17534
  protectionFlips = new ProtectionFlipRegistry();
17535
+ lateLogPollMs = 2e3;
17536
+ sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
17484
17537
  handledProperties = /* @__PURE__ */ new Map([["AWS::Logs::LogGroup", /* @__PURE__ */ new Set([
17485
17538
  "LogGroupName",
17486
17539
  "KmsKeyId",
@@ -17528,6 +17581,9 @@ var LogsLogGroupProvider = class {
17528
17581
  logGoneOnDelete(logicalId, physicalId, context) {
17529
17582
  return logGoneOnDelete.call(this, logicalId, physicalId, context);
17530
17583
  }
17584
+ deleteAgainIfLateLambdaLogsReturn(logicalId, physicalId, context) {
17585
+ return deleteAgainIfLateLambdaLogsReturn.call(this, logicalId, physicalId, context);
17586
+ }
17531
17587
  wrapDeleteError(logicalId, physicalId, resourceType, context, error) {
17532
17588
  return wrapDeleteError$5.call(this, logicalId, physicalId, resourceType, context, error);
17533
17589
  }
@@ -26779,13 +26835,59 @@ async function createSubnetNetworkAclAssociation(logicalId, resourceType, proper
26779
26835
  throw this.wrapCaughtError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to create SubnetNetworkAclAssociation ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
26780
26836
  }
26781
26837
  }
26838
+ async function deleteSubnetNetworkAclAssociation(logicalId, physicalId, resourceType, properties, context) {
26839
+ this.logger.debug(safeMsg`Deleting SubnetNetworkAclAssociation ${logicalId}: ${physicalId}`);
26840
+ const gone = async () => {
26841
+ const clientRegion = await this.ec2Client.config.region();
26842
+ assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
26843
+ this.logger.debug(safeMsg`SubnetNetworkAclAssociation ${physicalId} does not exist, skipping deletion`);
26844
+ };
26845
+ try {
26846
+ let acl = ((await this.ec2Client.send(new DescribeNetworkAclsCommand({ Filters: [{
26847
+ Name: "association.association-id",
26848
+ Values: [physicalId]
26849
+ }] }))).NetworkAcls ?? []).find((nacl) => (nacl.Associations ?? []).some((assoc) => assoc.NetworkAclAssociationId === physicalId));
26850
+ if (acl?.IsDefault) {
26851
+ this.logger.debug(safeMsg`SubnetNetworkAclAssociation ${logicalId} is already on the default network ACL`);
26852
+ return;
26853
+ }
26854
+ const recordedAclId = properties?.["NetworkAclId"];
26855
+ if (!acl && typeof recordedAclId === "string" && recordedAclId !== "") acl = (await this.ec2Client.send(new DescribeNetworkAclsCommand({ NetworkAclIds: [recordedAclId] }))).NetworkAcls?.[0];
26856
+ if (!acl?.VpcId) {
26857
+ await gone();
26858
+ return;
26859
+ }
26860
+ const defaultAclId = (await this.ec2Client.send(new DescribeNetworkAclsCommand({ Filters: [{
26861
+ Name: "vpc-id",
26862
+ Values: [acl.VpcId]
26863
+ }, {
26864
+ Name: "default",
26865
+ Values: ["true"]
26866
+ }] }))).NetworkAcls?.[0]?.NetworkAclId;
26867
+ if (!defaultAclId) throw new ProvisioningError(`Failed to delete SubnetNetworkAclAssociation ${logicalId}: VPC ${acl.VpcId} has no default network ACL to return the subnet to`, resourceType, logicalId, physicalId);
26868
+ await this.ec2Client.send(new ReplaceNetworkAclAssociationCommand({
26869
+ AssociationId: physicalId,
26870
+ NetworkAclId: defaultAclId
26871
+ }));
26872
+ this.logger.debug(safeMsg`Successfully deleted SubnetNetworkAclAssociation ${logicalId} (subnet back on ${defaultAclId})`);
26873
+ } catch (error) {
26874
+ if (error instanceof ProvisioningError) throw error;
26875
+ if (this.isNotFoundError(error)) {
26876
+ await gone();
26877
+ return;
26878
+ }
26879
+ const cause = error instanceof Error ? error : void 0;
26880
+ throw this.wrapDeleteError(maskerOrIdentity(context?.maskSecrets), error, (text) => new ProvisioningError(`Failed to delete SubnetNetworkAclAssociation ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
26881
+ }
26882
+ }
26782
26883
  const networkAclMethods = {
26783
26884
  createNetworkAcl,
26784
26885
  deleteNetworkAcl,
26785
26886
  createNetworkAclEntry,
26786
26887
  deleteNetworkAclEntry,
26787
26888
  updateNetworkAclEntry,
26788
- createSubnetNetworkAclAssociation
26889
+ createSubnetNetworkAclAssociation,
26890
+ deleteSubnetNetworkAclAssociation
26789
26891
  };
26790
26892
 
26791
26893
  // src/provisioning/providers/ec2/tags-errors.ts
@@ -27173,7 +27275,8 @@ async function unsettledInTransition$4(physicalId, _logicalId, resourceType, nam
27173
27275
  try {
27174
27276
  const subnet = (await this.ec2Client.send(new DescribeSubnetsCommand({ SubnetIds: [physicalId] }))).Subnets?.[0];
27175
27277
  return !subnet || this.subnetIpv6InTransition(subnet) ? /* @__PURE__ */ new Set(["Ipv6CidrBlock"]) : /* @__PURE__ */ new Set();
27176
- } catch {
27278
+ } catch (error) {
27279
+ rethrowIfThrottled(error);
27177
27280
  return /* @__PURE__ */ new Set(["Ipv6CidrBlock"]);
27178
27281
  }
27179
27282
  }
@@ -28267,9 +28370,7 @@ var EC2Provider = class {
28267
28370
  case "AWS::EC2::Instance": return this.deleteInstance(logicalId, physicalId, resourceType, context, properties);
28268
28371
  case "AWS::EC2::NetworkAcl": return this.deleteNetworkAcl(logicalId, physicalId, resourceType, context);
28269
28372
  case "AWS::EC2::NetworkAclEntry": return this.deleteNetworkAclEntry(logicalId, physicalId, resourceType, context);
28270
- case "AWS::EC2::SubnetNetworkAclAssociation":
28271
- this.logger.debug(`SubnetNetworkAclAssociation ${logicalId} delete is a no-op`);
28272
- return;
28373
+ case "AWS::EC2::SubnetNetworkAclAssociation": return this.deleteSubnetNetworkAclAssociation(logicalId, physicalId, resourceType, properties, context);
28273
28374
  default: throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
28274
28375
  }
28275
28376
  }
@@ -29584,7 +29685,7 @@ async function updateRestApi(logicalId, physicalId, resourceType, properties, pr
29584
29685
  if (named.length > 0 && named.every((key) => noEchoOnlyChanged.has(key))) {
29585
29686
  bodyChanged = false;
29586
29687
  for (const key of named) keptNoEchoOnly?.(key);
29587
- log.warn(safeMsg`${logicalId} (${resourceType}): its Body embeds a NoEcho parameter value that cdkd could not compare with the value it last sent, so the OpenAPI definition is not put again, and a change to that value alone is NOT applied by this deploy. cdkd compares it once a deploy can call kms:GenerateMac on the key 'cdkd bootstrap' creates, the Body reads nothing but NoEcho parameters and literals, and a put has recorded the value's MAC. To apply a change now, change a part of the Body that is not masked (its description or a version field, for example) in the same deploy.`);
29688
+ log.warn(safeMsg`${logicalId} (${resourceType}): its Body embeds a NoEcho parameter value that cdkd could not compare with the value it last sent, so the OpenAPI definition is not put again, and a change to that value alone is NOT applied by this deploy. cdkd compares it once a deploy can create, or call kms:GenerateMac on, the key alias/cdkd-noecho-mac, the Body reads nothing but NoEcho parameters and literals, and a put has recorded the value's MAC. To apply a change now, change a part of the Body that is not masked (its description or a version field, for example) in the same deploy.`);
29588
29689
  }
29589
29690
  }
29590
29691
  if (bodyChanged) {
@@ -35654,7 +35755,7 @@ async function update$24(logicalId, physicalId, resourceType, properties, previo
35654
35755
  [properties["Cluster"], recordedCluster],
35655
35756
  [previousProperties["Cluster"], recordedCluster],
35656
35757
  [properties["Cluster"], clusterNameOfRef(properties["Cluster"])]
35657
- ]), context?.desiredFromAwsReadback === true, context?.replayingState === true);
35758
+ ]), context?.desiredFromAwsReadback === true, context?.replayingState === true, context?.restoredObservedProperties);
35658
35759
  }
35659
35760
  default: throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
35660
35761
  }
@@ -36383,7 +36484,7 @@ async function settleService(logicalId, serviceRef, cluster, log, requested, ski
36383
36484
  }
36384
36485
 
36385
36486
  // src/provisioning/providers/ecs/service-update.ts
36386
- async function updateService$1(logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState) {
36487
+ async function updateService$1(logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState, restoredObservedProperties) {
36387
36488
  log.debug(`Updating ECS service ${logicalId}: ${physicalId}`);
36388
36489
  refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
36389
36490
  const client = this.getClient();
@@ -36426,7 +36527,11 @@ async function updateService$1(logicalId, physicalId, resourceType, properties,
36426
36527
  const monitoringInput = JSON.stringify(previousProperties["Monitoring"] ?? null) !== JSON.stringify(properties["Monitoring"] ?? null) ? clearOnUpdateRemoval(this.convertMonitoringConfiguration(properties["Monitoring"]), previousProperties["Monitoring"], { metricConfigurations: [] }) : void 0;
36427
36528
  const gatewayConnectorsInput = gatewayConnectorsGateKey(previousProperties["GatewayConnectors"]) !== gatewayConnectorsGateKey(properties["GatewayConnectors"]) ? this.convertGatewayConnectors(properties["GatewayConnectors"]) : void 0;
36428
36529
  const forceNewDeploymentInput = this.resolveForceNewDeployment(properties, previousProperties, log);
36429
- const deploymentConfigurationInput = this.resolveDeploymentConfiguration(properties, previousProperties);
36530
+ const deploymentConfigurationInput = this.resolveDeploymentConfiguration(properties, previousProperties, replayingState ? {
36531
+ restoredObservedProperties,
36532
+ log,
36533
+ logicalId
36534
+ } : void 0);
36430
36535
  try {
36431
36536
  const service = (await client.send(new UpdateServiceCommand({
36432
36537
  cluster: properties["Cluster"],
@@ -36983,9 +37088,10 @@ function convertDeploymentConfiguration(config) {
36983
37088
  if (!config) return void 0;
36984
37089
  return pascalToCamelCaseKeys(config, DEPLOYMENT_CONFIG_PRESERVE_KEYS);
36985
37090
  }
36986
- function resolveDeploymentConfiguration(properties, previousProperties) {
37091
+ function resolveDeploymentConfiguration(properties, previousProperties, replay) {
36987
37092
  const desired = this.convertDeploymentConfiguration(properties["DeploymentConfiguration"]);
36988
37093
  const desiredBreaker = desired?.deploymentCircuitBreaker;
37094
+ if (desired && desiredBreaker === void 0 && replay) return restoreRolledBackBreaker(desired, previousProperties, replay);
36989
37095
  if (!desired || !isPlainCfnObject(desiredBreaker)) return desired;
36990
37096
  const previousDeploymentConfiguration = previousProperties["DeploymentConfiguration"];
36991
37097
  const previousBreaker = isPlainCfnObject(previousDeploymentConfiguration) ? previousDeploymentConfiguration["DeploymentCircuitBreaker"] : void 0;
@@ -37002,6 +37108,36 @@ function resolveDeploymentConfiguration(properties, previousProperties) {
37002
37108
  }
37003
37109
  };
37004
37110
  }
37111
+ const THRESHOLD_TYPES = new Set(Object.values(ThresholdType));
37112
+ function restoreRolledBackBreaker(desired, previousProperties, replay) {
37113
+ const previousDeploymentConfiguration = previousProperties["DeploymentConfiguration"];
37114
+ const previousBreaker = isPlainCfnObject(previousDeploymentConfiguration) ? previousDeploymentConfiguration["DeploymentCircuitBreaker"] : void 0;
37115
+ if (previousBreaker === void 0 || previousBreaker === null) return desired;
37116
+ const observedDeploymentConfiguration = replay.restoredObservedProperties?.["DeploymentConfiguration"];
37117
+ const observed = isPlainCfnObject(observedDeploymentConfiguration) ? observedDeploymentConfiguration["DeploymentCircuitBreaker"] : void 0;
37118
+ if (!isPlainCfnObject(observed) || typeof observed["Enable"] !== "boolean" || typeof observed["Rollback"] !== "boolean") {
37119
+ replay.log.warn(`ECS service ${replay.logicalId}: the restored template declares no DeploymentCircuitBreaker and cdkd recorded no usable pre-deploy reading of it, so the circuit breaker the failed deploy applied stays. Declare DeploymentCircuitBreaker (CDK: circuitBreaker) to set it.`);
37120
+ return desired;
37121
+ }
37122
+ const observedReset = observed["ResetOnHealthyTask"];
37123
+ const threshold = observed["ThresholdConfiguration"];
37124
+ const observedThreshold = isPlainCfnObject(threshold) && THRESHOLD_TYPES.has(threshold["Type"]) && typeof threshold["Value"] === "number" ? {
37125
+ type: threshold["Type"],
37126
+ value: threshold["Value"]
37127
+ } : void 0;
37128
+ const failedBreaker = isPlainCfnObject(previousBreaker) ? previousBreaker : {};
37129
+ const resetOnHealthyTask = typeof observedReset === "boolean" ? observedReset : failedBreaker["ResetOnHealthyTask"] !== void 0 ? true : void 0;
37130
+ const thresholdConfiguration = observedThreshold ?? (failedBreaker["ThresholdConfiguration"] !== void 0 ? { ...CIRCUIT_BREAKER_THRESHOLD_CONFIGURATION_DEFAULT } : void 0);
37131
+ return {
37132
+ ...desired,
37133
+ deploymentCircuitBreaker: {
37134
+ enable: observed["Enable"],
37135
+ rollback: observed["Rollback"],
37136
+ ...resetOnHealthyTask !== void 0 ? { resetOnHealthyTask } : {},
37137
+ ...thresholdConfiguration ? { thresholdConfiguration } : {}
37138
+ }
37139
+ };
37140
+ }
37005
37141
  function convertCapacityProviderStrategy(items) {
37006
37142
  if (!items) return void 0;
37007
37143
  return pascalToCamelCaseKeys(items);
@@ -37479,8 +37615,8 @@ var ECSProvider = class {
37479
37615
  settleService(logicalId, serviceRef, cluster, log, requested, skipReason) {
37480
37616
  return settleService.call(this, logicalId, serviceRef, cluster, log, requested, skipReason);
37481
37617
  }
37482
- updateService(logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState) {
37483
- return updateService$1.call(this, logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState);
37618
+ updateService(logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState, restoredObservedProperties) {
37619
+ return updateService$1.call(this, logicalId, physicalId, resourceType, properties, previousProperties, log, desiredFromAwsReadback, replayingState, restoredObservedProperties);
37484
37620
  }
37485
37621
  deleteService(logicalId, physicalId, resourceType, properties, context) {
37486
37622
  return deleteService$1.call(this, logicalId, physicalId, resourceType, properties, context);
@@ -37578,8 +37714,8 @@ var ECSProvider = class {
37578
37714
  convertDeploymentConfiguration(config) {
37579
37715
  return convertDeploymentConfiguration.call(this, config);
37580
37716
  }
37581
- resolveDeploymentConfiguration(properties, previousProperties) {
37582
- return resolveDeploymentConfiguration.call(this, properties, previousProperties);
37717
+ resolveDeploymentConfiguration(properties, previousProperties, replay) {
37718
+ return resolveDeploymentConfiguration.call(this, properties, previousProperties, replay);
37583
37719
  }
37584
37720
  convertCapacityProviderStrategy(items) {
37585
37721
  return convertCapacityProviderStrategy.call(this, items);
@@ -39402,6 +39538,393 @@ var ELBv2Provider = class {
39402
39538
  }
39403
39539
  };
39404
39540
 
39541
+ // src/provisioning/providers/elbv2-listener-certificate-provider.ts
39542
+ const TYPE$4 = "AWS::ElasticLoadBalancingV2::ListenerCertificate";
39543
+ const LISTENER_NOT_FOUND = "ListenerNotFoundException";
39544
+ function readCertificateArns(value) {
39545
+ if (value === void 0 || value === null) return [];
39546
+ if (!Array.isArray(value)) return void 0;
39547
+ const arns = [];
39548
+ for (const entry of value) {
39549
+ if (typeof entry !== "object" || entry === null || Array.isArray(entry)) return void 0;
39550
+ const arn = entry["CertificateArn"];
39551
+ if (typeof arn !== "string" || arn === "") return void 0;
39552
+ if (!arns.includes(arn)) arns.push(arn);
39553
+ }
39554
+ return arns;
39555
+ }
39556
+ var ELBv2ListenerCertificateProvider = class {
39557
+ elbv2Client;
39558
+ providerRegion = ambientRegion();
39559
+ logger = getLogger().child("ELBv2ListenerCertificateProvider");
39560
+ handledProperties = /* @__PURE__ */ new Map([["AWS::ElasticLoadBalancingV2::ListenerCertificate", /* @__PURE__ */ new Set(["ListenerArn", "Certificates"])]]);
39561
+ removalHandledInUpdate = /* @__PURE__ */ new Map([["AWS::ElasticLoadBalancingV2::ListenerCertificate", /* @__PURE__ */ new Set(["ListenerArn", "Certificates"])]]);
39562
+ getClient() {
39563
+ if (!this.elbv2Client) this.elbv2Client = new ElasticLoadBalancingV2Client({
39564
+ ...ambientClientDefaults(),
39565
+ ...this.providerRegion ? { region: this.providerRegion } : {}
39566
+ });
39567
+ return this.elbv2Client;
39568
+ }
39569
+ assertType(resourceType, logicalId, physicalId) {
39570
+ if (resourceType !== TYPE$4) throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
39571
+ }
39572
+ wrapCaughtError(mask, error, build) {
39573
+ const m = maskerOrIdentity(mask);
39574
+ const failure = describeAwsFailure(error);
39575
+ if (!failure.redacted) return wrapMaskedAwsError(m, error, build);
39576
+ this.logger.debug(m(build(m(failure.detail)).message));
39577
+ const wrapped = build(`${m(failure.summary)}${relayedNameCollision(failure.detail)}`);
39578
+ return error instanceof Error ? markRedactedCause(wrapped) : wrapped;
39579
+ }
39580
+ desiredArns(properties, logicalId, physicalId) {
39581
+ const arns = readCertificateArns(properties["Certificates"]);
39582
+ if (arns === void 0) throw new ProvisioningError(`Certificates of ListenerCertificate ${logicalId} is not a list of { CertificateArn } entries — no certificate was added to or removed from the listener`, TYPE$4, logicalId, physicalId);
39583
+ return arns;
39584
+ }
39585
+ requireListenerArn(properties, logicalId, physicalId) {
39586
+ const listenerArn = properties["ListenerArn"];
39587
+ if (typeof listenerArn !== "string" || listenerArn === "") throw new ProvisioningError(`ListenerArn is required for ListenerCertificate ${logicalId}`, TYPE$4, logicalId, physicalId);
39588
+ return listenerArn;
39589
+ }
39590
+ async addCertificate(listenerArn, certificateArn) {
39591
+ await this.getClient().send(new AddListenerCertificatesCommand({
39592
+ ListenerArn: listenerArn,
39593
+ Certificates: [{ CertificateArn: certificateArn }]
39594
+ }));
39595
+ }
39596
+ async removeCertificate(listenerArn, certificateArn) {
39597
+ await this.getClient().send(new RemoveListenerCertificatesCommand({
39598
+ ListenerArn: listenerArn,
39599
+ Certificates: [{ CertificateArn: certificateArn }]
39600
+ }));
39601
+ }
39602
+ async create(logicalId, resourceType, properties, context) {
39603
+ this.assertType(resourceType, logicalId);
39604
+ const listenerArn = this.requireListenerArn(properties, logicalId);
39605
+ const certificates = this.desiredArns(properties, logicalId);
39606
+ if (certificates.length === 0) throw new ProvisioningError(`Certificates is required for ListenerCertificate ${logicalId}`, resourceType, logicalId);
39607
+ const physicalId = `${logicalId}-${randomBytes(6).toString("hex")}`;
39608
+ this.logger.debug(safeMsg`Creating ListenerCertificate ${logicalId}`);
39609
+ let added = false;
39610
+ try {
39611
+ for (const certificateArn of certificates) {
39612
+ await this.addCertificate(listenerArn, certificateArn);
39613
+ added = true;
39614
+ }
39615
+ this.logger.debug(safeMsg`Successfully created ListenerCertificate ${logicalId}`);
39616
+ return {
39617
+ physicalId,
39618
+ attributes: {}
39619
+ };
39620
+ } catch (error) {
39621
+ const cause = error instanceof Error ? error : void 0;
39622
+ const thrown = this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to create ListenerCertificate ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
39623
+ if (added) markCreatedBeforeFailure(thrown, logicalId, resourceType, physicalId);
39624
+ throw thrown;
39625
+ }
39626
+ }
39627
+ async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
39628
+ this.assertType(resourceType, logicalId, physicalId);
39629
+ assertRegionMatch(context?.expectedRegion ? await this.getClient().config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
39630
+ const listenerArn = this.requireListenerArn(properties, logicalId, physicalId);
39631
+ const desired = this.desiredArns(properties, logicalId, physicalId);
39632
+ const recorded = readCertificateArns(previousProperties["Certificates"]);
39633
+ const sameListener = previousProperties["ListenerArn"] === listenerArn;
39634
+ if (recorded === void 0 || !sameListener) this.logger.warn(safeMsg`ListenerCertificate ${logicalId}: the recorded ${recorded === void 0 ? "Certificates is not a list of { CertificateArn } entries" : "ListenerArn is not the template one"}, so only the template's certificates are added; a certificate the record named is not removed.`);
39635
+ const removals = recorded === void 0 || !sameListener ? [] : recorded.filter((a) => !desired.includes(a));
39636
+ const additions = recorded === void 0 || !sameListener ? desired : desired.filter((a) => !recorded.includes(a));
39637
+ this.logger.debug(safeMsg`Updating ListenerCertificate ${logicalId}: ${additions.length} to add, ${removals.length} to remove`);
39638
+ try {
39639
+ for (const certificateArn of additions) await this.addCertificate(listenerArn, certificateArn);
39640
+ for (const certificateArn of removals) await this.removeCertificate(listenerArn, certificateArn);
39641
+ return {
39642
+ physicalId,
39643
+ wasReplaced: false,
39644
+ attributes: {}
39645
+ };
39646
+ } catch (error) {
39647
+ const cause = error instanceof Error ? error : void 0;
39648
+ throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to update ListenerCertificate ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
39649
+ }
39650
+ }
39651
+ async delete(logicalId, physicalId, resourceType, properties, context) {
39652
+ this.assertType(resourceType, logicalId, physicalId);
39653
+ const listenerArn = properties?.["ListenerArn"];
39654
+ const certificates = readCertificateArns(properties?.["Certificates"]);
39655
+ if (typeof listenerArn !== "string" || listenerArn === "" || certificates === void 0) {
39656
+ this.logger.warn(safeMsg`The state record for ListenerCertificate ${logicalId} holds no usable ListenerArn / Certificates, so no certificate was removed from the listener; the record is kept. Remove the certificates by hand (aws elbv2 remove-listener-certificates), then drop the record with ${stateOrphanRecordRemedy(context, logicalId)}.`);
39657
+ return {
39658
+ outcome: "skipped",
39659
+ reason: LISTENER_CERTIFICATE_UNADDRESSABLE_SKIP_REASON
39660
+ };
39661
+ }
39662
+ this.logger.debug(safeMsg`Deleting ListenerCertificate ${logicalId}`);
39663
+ let removedAny = false;
39664
+ try {
39665
+ for (const certificateArn of certificates) {
39666
+ await this.removeCertificate(listenerArn, certificateArn);
39667
+ removedAny = true;
39668
+ }
39669
+ } catch (error) {
39670
+ if (error?.name === LISTENER_NOT_FOUND) {
39671
+ assertRegionMatch(await this.getClient().config.region(), context?.expectedRegion, resourceType, logicalId, physicalId);
39672
+ return;
39673
+ }
39674
+ const cause = error instanceof Error ? error : void 0;
39675
+ const failure = this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to delete ListenerCertificate ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
39676
+ throw removedAny ? markDeleteStarted(failure) : failure;
39677
+ }
39678
+ }
39679
+ async readListenerCertificates(listenerArn) {
39680
+ const arns = /* @__PURE__ */ new Set();
39681
+ let marker;
39682
+ do {
39683
+ let resp;
39684
+ try {
39685
+ resp = await this.getClient().send(new DescribeListenerCertificatesCommand({
39686
+ ListenerArn: listenerArn,
39687
+ ...marker ? { Marker: marker } : {}
39688
+ }));
39689
+ } catch (error) {
39690
+ if (error?.name === LISTENER_NOT_FOUND) return void 0;
39691
+ throw error;
39692
+ }
39693
+ for (const cert of resp.Certificates ?? []) if (cert.IsDefault !== true && typeof cert.CertificateArn === "string") arns.add(cert.CertificateArn);
39694
+ marker = resp.NextMarker;
39695
+ } while (marker);
39696
+ return arns;
39697
+ }
39698
+ async import(input) {
39699
+ if (input.resourceType !== TYPE$4 || !input.knownPhysicalId) return null;
39700
+ const listenerArn = input.properties["ListenerArn"];
39701
+ const wanted = readCertificateArns(input.properties["Certificates"]);
39702
+ if (typeof listenerArn !== "string" || listenerArn === "" || !wanted?.length) return null;
39703
+ const live = await this.readListenerCertificates(listenerArn);
39704
+ if (live === void 0 || !wanted.every((arn) => live.has(arn))) return null;
39705
+ return {
39706
+ physicalId: input.knownPhysicalId,
39707
+ attributes: {}
39708
+ };
39709
+ }
39710
+ async readCurrentState(_physicalId, _logicalId, resourceType, properties) {
39711
+ if (resourceType !== TYPE$4) return void 0;
39712
+ const listenerArn = properties?.["ListenerArn"];
39713
+ const recorded = readCertificateArns(properties?.["Certificates"]);
39714
+ if (typeof listenerArn !== "string" || listenerArn === "" || recorded === void 0) return;
39715
+ const live = await this.readListenerCertificates(listenerArn);
39716
+ if (live === void 0) return RESOURCE_NOT_FOUND;
39717
+ return {
39718
+ ListenerArn: listenerArn,
39719
+ Certificates: recorded.filter((arn) => live.has(arn)).map((arn) => ({ CertificateArn: arn }))
39720
+ };
39721
+ }
39722
+ };
39723
+ const LISTENER_CERTIFICATE_UNADDRESSABLE_SKIP_REASON = "the state record holds no usable ListenerArn / Certificates";
39724
+
39725
+ // src/provisioning/providers/ec2-vpn-gateway-route-propagation-provider.ts
39726
+ const TYPE$3 = "AWS::EC2::VPNGatewayRoutePropagation";
39727
+ const GATEWAY_NOT_ATTACHED = "Gateway.NotAttached";
39728
+ const VGW_NOT_ATTACHED_WAIT_MS = 6e5;
39729
+ function readRouteTableIds(value) {
39730
+ if (value === void 0 || value === null) return [];
39731
+ if (!Array.isArray(value)) return void 0;
39732
+ const ids = [];
39733
+ for (const id of value) {
39734
+ if (typeof id !== "string" || id === "") return void 0;
39735
+ if (!ids.includes(id)) ids.push(id);
39736
+ }
39737
+ return ids;
39738
+ }
39739
+ var EC2VPNGatewayRoutePropagationProvider = class {
39740
+ logger = getLogger().child("EC2VPNGatewayRoutePropagationProvider");
39741
+ handledProperties = /* @__PURE__ */ new Map([["AWS::EC2::VPNGatewayRoutePropagation", /* @__PURE__ */ new Set(["RouteTableIds", "VpnGatewayId"])]]);
39742
+ removalHandledInUpdate = /* @__PURE__ */ new Map([["AWS::EC2::VPNGatewayRoutePropagation", /* @__PURE__ */ new Set(["RouteTableIds", "VpnGatewayId"])]]);
39743
+ get ec2Client() {
39744
+ return getAwsClients().ec2;
39745
+ }
39746
+ sleep(ms) {
39747
+ return new Promise((resolve) => setTimeout(resolve, ms));
39748
+ }
39749
+ assertType(resourceType, logicalId, physicalId) {
39750
+ if (resourceType !== TYPE$3) throw new ProvisioningError(`Unsupported resource type: ${resourceType}`, resourceType, logicalId, physicalId);
39751
+ }
39752
+ wrapCaughtError(mask, error, build) {
39753
+ const m = maskerOrIdentity(mask);
39754
+ const failure = describeAwsFailure(error);
39755
+ if (!failure.redacted) return wrapMaskedAwsError(m, error, build);
39756
+ this.logger.debug(m(build(m(failure.detail)).message));
39757
+ const wrapped = build(`${m(failure.summary)}${relayedNameCollision(failure.detail)}`);
39758
+ return error instanceof Error ? markRedactedCause(wrapped) : wrapped;
39759
+ }
39760
+ desired(properties, logicalId, physicalId) {
39761
+ const gatewayId = properties["VpnGatewayId"];
39762
+ if (typeof gatewayId !== "string" || gatewayId === "") throw new ProvisioningError(`VpnGatewayId is required for VPNGatewayRoutePropagation ${logicalId}`, TYPE$3, logicalId, physicalId);
39763
+ const routeTableIds = readRouteTableIds(properties["RouteTableIds"]);
39764
+ if (routeTableIds === void 0) throw new ProvisioningError(`RouteTableIds of VPNGatewayRoutePropagation ${logicalId} is not a list of route table ids — no route propagation was enabled or disabled`, TYPE$3, logicalId, physicalId);
39765
+ return {
39766
+ gatewayId,
39767
+ routeTableIds
39768
+ };
39769
+ }
39770
+ async enable(gatewayId, routeTableId, logicalId) {
39771
+ const started = Date.now();
39772
+ let delay = 2e3;
39773
+ let watch;
39774
+ try {
39775
+ for (;;) {
39776
+ if (watch?.isInterrupted()) throw watch.onInterrupted();
39777
+ try {
39778
+ await this.ec2Client.send(new EnableVgwRoutePropagationCommand({
39779
+ GatewayId: gatewayId,
39780
+ RouteTableId: routeTableId
39781
+ }));
39782
+ return;
39783
+ } catch (error) {
39784
+ if (error?.name !== GATEWAY_NOT_ATTACHED || Date.now() - started >= 6e5) throw error;
39785
+ if (!await this.attachmentMayArrive(gatewayId)) throw error;
39786
+ watch ??= startInterruptWatch(`VPNGatewayRoutePropagation ${logicalId}`);
39787
+ if (watch.isInterrupted()) throw watch.onInterrupted();
39788
+ this.logger.debug(safeMsg`VPNGatewayRoutePropagation ${logicalId}: the gateway is not attached yet, retrying`);
39789
+ await this.sleep(delay);
39790
+ delay = Math.min(delay * 2, 1e4);
39791
+ }
39792
+ }
39793
+ } finally {
39794
+ watch?.dispose();
39795
+ }
39796
+ }
39797
+ async attachmentMayArrive(gatewayId) {
39798
+ let states;
39799
+ try {
39800
+ states = ((await this.ec2Client.send(new DescribeVpnGatewaysCommand({ VpnGatewayIds: [gatewayId] }))).VpnGateways?.[0]?.VpcAttachments ?? []).map((a) => String(a.State));
39801
+ } catch {
39802
+ return true;
39803
+ }
39804
+ return states.length === 0 || states.some((st) => st === "attaching" || st === "attached");
39805
+ }
39806
+ async disable(gatewayId, routeTableId) {
39807
+ try {
39808
+ await this.ec2Client.send(new DisableVgwRoutePropagationCommand({
39809
+ GatewayId: gatewayId,
39810
+ RouteTableId: routeTableId
39811
+ }));
39812
+ } catch (error) {
39813
+ if (error?.name === "InvalidRouteTableID.NotFound") return;
39814
+ throw error;
39815
+ }
39816
+ }
39817
+ async create(logicalId, resourceType, properties, context) {
39818
+ this.assertType(resourceType, logicalId);
39819
+ const { gatewayId, routeTableIds } = this.desired(properties, logicalId);
39820
+ if (routeTableIds.length === 0) throw new ProvisioningError(`RouteTableIds is required for VPNGatewayRoutePropagation ${logicalId}`, resourceType, logicalId);
39821
+ const physicalId = `${logicalId}-${randomBytes(6).toString("hex")}`;
39822
+ this.logger.debug(safeMsg`Creating VPNGatewayRoutePropagation ${logicalId}`);
39823
+ let enabled = false;
39824
+ try {
39825
+ for (const routeTableId of routeTableIds) {
39826
+ await this.enable(gatewayId, routeTableId, logicalId);
39827
+ enabled = true;
39828
+ }
39829
+ return {
39830
+ physicalId,
39831
+ attributes: {}
39832
+ };
39833
+ } catch (error) {
39834
+ const cause = error instanceof Error ? error : void 0;
39835
+ const thrown = this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to create VPNGatewayRoutePropagation ${logicalId}: ${text}`, resourceType, logicalId, void 0, cause));
39836
+ if (enabled) markCreatedBeforeFailure(thrown, logicalId, resourceType, physicalId);
39837
+ throw thrown;
39838
+ }
39839
+ }
39840
+ async update(logicalId, physicalId, resourceType, properties, previousProperties, context) {
39841
+ this.assertType(resourceType, logicalId, physicalId);
39842
+ assertRegionMatch(context?.expectedRegion ? await this.ec2Client.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId, "pre-update");
39843
+ const { gatewayId, routeTableIds } = this.desired(properties, logicalId, physicalId);
39844
+ const recordedGateway = previousProperties["VpnGatewayId"];
39845
+ const recordedTables = readRouteTableIds(previousProperties["RouteTableIds"]);
39846
+ const usableRecord = typeof recordedGateway === "string" && recordedGateway !== "" && recordedTables !== void 0;
39847
+ if (!usableRecord) this.logger.warn(safeMsg`VPNGatewayRoutePropagation ${logicalId}: the recorded VpnGatewayId / RouteTableIds is not usable, so only the template's route tables are enabled; a propagation the record named is not disabled.`);
39848
+ const gatewayMoved = usableRecord && recordedGateway !== gatewayId;
39849
+ const enables = !usableRecord || gatewayMoved ? routeTableIds : routeTableIds.filter((id) => !recordedTables.includes(id));
39850
+ const disables = !usableRecord ? [] : gatewayMoved ? recordedTables : recordedTables.filter((id) => !routeTableIds.includes(id));
39851
+ const disableGateway = usableRecord ? recordedGateway : gatewayId;
39852
+ try {
39853
+ for (const routeTableId of enables) await this.enable(gatewayId, routeTableId, logicalId);
39854
+ for (const routeTableId of disables) await this.disable(disableGateway, routeTableId);
39855
+ return {
39856
+ physicalId,
39857
+ wasReplaced: false,
39858
+ attributes: {}
39859
+ };
39860
+ } catch (error) {
39861
+ const cause = error instanceof Error ? error : void 0;
39862
+ throw this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to update VPNGatewayRoutePropagation ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
39863
+ }
39864
+ }
39865
+ async delete(logicalId, physicalId, resourceType, properties, context) {
39866
+ this.assertType(resourceType, logicalId, physicalId);
39867
+ const gatewayId = properties?.["VpnGatewayId"];
39868
+ const routeTableIds = readRouteTableIds(properties?.["RouteTableIds"]);
39869
+ if (typeof gatewayId !== "string" || gatewayId === "" || routeTableIds === void 0) {
39870
+ this.logger.warn(safeMsg`The state record for VPNGatewayRoutePropagation ${logicalId} holds no usable VpnGatewayId / RouteTableIds, so no route propagation was disabled; the record is kept. Disable it by hand (aws ec2 disable-vgw-route-propagation), then drop the record with ${stateOrphanRecordRemedy(context, logicalId)}.`);
39871
+ return {
39872
+ outcome: "skipped",
39873
+ reason: VGW_ROUTE_PROPAGATION_UNADDRESSABLE_SKIP_REASON
39874
+ };
39875
+ }
39876
+ assertRegionMatch(context?.expectedRegion ? await this.ec2Client.config.region() : void 0, context?.expectedRegion, resourceType, logicalId, physicalId);
39877
+ this.logger.debug(safeMsg`Deleting VPNGatewayRoutePropagation ${logicalId}`);
39878
+ let disabledAny = false;
39879
+ try {
39880
+ for (const routeTableId of routeTableIds) {
39881
+ await this.disable(gatewayId, routeTableId);
39882
+ disabledAny = true;
39883
+ }
39884
+ } catch (error) {
39885
+ const cause = error instanceof Error ? error : void 0;
39886
+ const failure = this.wrapCaughtError(context?.maskSecrets, error, (text) => new ProvisioningError(`Failed to delete VPNGatewayRoutePropagation ${logicalId}: ${text}`, resourceType, logicalId, physicalId, cause));
39887
+ throw disabledAny ? markDeleteStarted(failure) : failure;
39888
+ }
39889
+ }
39890
+ async propagatingTables(gatewayId, routeTableIds) {
39891
+ const out = [];
39892
+ for (const routeTableId of routeTableIds) {
39893
+ let resp;
39894
+ try {
39895
+ resp = await this.ec2Client.send(new DescribeRouteTablesCommand({ RouteTableIds: [routeTableId] }));
39896
+ } catch (error) {
39897
+ if (error?.name === "InvalidRouteTableID.NotFound") continue;
39898
+ throw error;
39899
+ }
39900
+ if (((resp.RouteTables?.[0])?.PropagatingVgws ?? []).some((p) => p.GatewayId === gatewayId)) out.push(routeTableId);
39901
+ }
39902
+ return out;
39903
+ }
39904
+ async import(input) {
39905
+ if (input.resourceType !== TYPE$3 || !input.knownPhysicalId) return null;
39906
+ const gatewayId = input.properties["VpnGatewayId"];
39907
+ const routeTableIds = readRouteTableIds(input.properties["RouteTableIds"]);
39908
+ if (typeof gatewayId !== "string" || gatewayId === "" || !routeTableIds?.length) return null;
39909
+ if ((await this.propagatingTables(gatewayId, routeTableIds)).length !== routeTableIds.length) return null;
39910
+ return {
39911
+ physicalId: input.knownPhysicalId,
39912
+ attributes: {}
39913
+ };
39914
+ }
39915
+ async readCurrentState(_physicalId, _logicalId, resourceType, properties) {
39916
+ if (resourceType !== TYPE$3) return void 0;
39917
+ const gatewayId = properties?.["VpnGatewayId"];
39918
+ const recorded = readRouteTableIds(properties?.["RouteTableIds"]);
39919
+ if (typeof gatewayId !== "string" || gatewayId === "" || !recorded?.length) return void 0;
39920
+ return {
39921
+ VpnGatewayId: gatewayId,
39922
+ RouteTableIds: await this.propagatingTables(gatewayId, recorded)
39923
+ };
39924
+ }
39925
+ };
39926
+ const VGW_ROUTE_PROPAGATION_UNADDRESSABLE_SKIP_REASON = "the state record holds no usable VpnGatewayId / RouteTableIds";
39927
+
39405
39928
  // src/provisioning/providers/rds-dbproxy/shared.ts
39406
39929
  const POLL_INTERVAL_MS = 5e3;
39407
39930
  const POLL_TIMEOUT_MS = 18e5;
@@ -42241,7 +42764,8 @@ async function unsettledInTransition$3(physicalId, _logicalId, resourceType, nam
42241
42764
  return unmoving(instance?.DBInstanceStatus) && !holdsDocDBPendingValue(instance?.PendingModifiedValues) ? /* @__PURE__ */ new Set() : names;
42242
42765
  }
42243
42766
  return /* @__PURE__ */ new Set();
42244
- } catch {
42767
+ } catch (error) {
42768
+ rethrowIfThrottled(error);
42245
42769
  return names;
42246
42770
  }
42247
42771
  }
@@ -52804,7 +53328,8 @@ async function triggerUnsettledInTransition(physicalId, _logicalId, _resourceTyp
52804
53328
  try {
52805
53329
  const state = (await this.getClient().send(new GetTriggerCommand({ Name: physicalId }))).Trigger?.State;
52806
53330
  return state === "ACTIVATING" || state === "DEACTIVATING" || state === "CREATING" || state === "UPDATING" ? new Set([...names].filter((name) => name !== "Tags")) : /* @__PURE__ */ new Set();
52807
- } catch {
53331
+ } catch (error) {
53332
+ rethrowIfThrottled(error);
52808
53333
  return names;
52809
53334
  }
52810
53335
  }
@@ -55747,7 +56272,8 @@ async function unsettledInTransition$2(physicalId, _logicalId, _resourceType, na
55747
56272
  const status = (await this.getClient().send(new DescribeStreamSummaryCommand({ StreamName: physicalId }))).StreamDescriptionSummary?.StreamStatus;
55748
56273
  if (status !== "UPDATING" && status !== "CREATING") return /* @__PURE__ */ new Set();
55749
56274
  return new Set([...names].filter((name) => name !== "Tags"));
55750
- } catch {
56275
+ } catch (error) {
56276
+ rethrowIfThrottled(error);
55751
56277
  return names;
55752
56278
  }
55753
56279
  }
@@ -57175,7 +57701,8 @@ async function unsettledInTransition$1(physicalId, _logicalId, _resourceType, na
57175
57701
  const state = (await this.describe(physicalId)).CurrentState;
57176
57702
  if (state === void 0 || !MOVING_STATES.has(state)) return /* @__PURE__ */ new Set();
57177
57703
  return new Set([...names].filter((name) => name !== "Tags"));
57178
- } catch {
57704
+ } catch (error) {
57705
+ rethrowIfThrottled(error);
57179
57706
  return names;
57180
57707
  }
57181
57708
  }
@@ -61072,7 +61599,8 @@ async function unsettledInTransition(physicalId, _logicalId, _resourceType, name
61072
61599
  try {
61073
61600
  const status = (await this.getClient().send(new DescribeDeliveryStreamCommand({ DeliveryStreamName: physicalId }))).DeliveryStreamDescription?.DeliveryStreamEncryptionConfiguration?.Status;
61074
61601
  return status === "ENABLING" || status === "DISABLING" ? /* @__PURE__ */ new Set([ENCRYPTION_KEY]) : /* @__PURE__ */ new Set();
61075
- } catch {
61602
+ } catch (error) {
61603
+ rethrowIfThrottled(error);
61076
61604
  return /* @__PURE__ */ new Set([ENCRYPTION_KEY]);
61077
61605
  }
61078
61606
  }
@@ -63376,6 +63904,7 @@ var CodeCommitRepositoryProvider = class {
63376
63904
  await this.getClient().send(new GetRepositoryTriggersCommand({ repositoryName: physicalId }));
63377
63905
  return /* @__PURE__ */ new Set();
63378
63906
  } catch (err) {
63907
+ rethrowIfThrottled(err);
63379
63908
  if (err instanceof RepositoryDoesNotExistException) return /* @__PURE__ */ new Set();
63380
63909
  return /* @__PURE__ */ new Set(["Triggers"]);
63381
63910
  }
@@ -66818,38 +67347,6 @@ var ECRProvider = class {
66818
67347
  }
66819
67348
  };
66820
67349
 
66821
- // src/provisioning/providers/nested-stack/shared.ts
66822
- const PENDING_CHILD_DELETES_KEY = "cdkd:PendingChildDeletes";
66823
- const NESTED_STACK_TYPE = "AWS::CloudFormation::Stack";
66824
- function recordWithPendingChildDeletes(properties, pendingChildDeletes) {
66825
- if (pendingChildDeletes <= 0) return void 0;
66826
- return markSameGenerationBag({
66827
- ...withoutSdkUnwiredProperties(NESTED_STACK_TYPE, properties),
66828
- [PENDING_CHILD_DELETES_KEY]: pendingChildDeletes
66829
- });
66830
- }
66831
- function runAccountOf(ctx) {
66832
- return {
66833
- profile: ctx.destroyOptions?.profile,
66834
- stateBucket: ctx.stateBucket,
66835
- statePrefix: ctx.destroyOptions?.statePrefix
66836
- };
66837
- }
66838
- function requireContext() {
66839
- const ctx = getCurrentNestedStackContext();
66840
- if (!ctx) throw markNonRetryable(/* @__PURE__ */ new Error("NestedStackProvider invoked outside withNestedStackContext() scope. The deploy / destroy CLI entry point must wrap its DeployEngine.deploy / runDestroyForStack call in withNestedStackContext(ctx, () => ...)."));
66841
- return ctx;
66842
- }
66843
- function requireDeployContext(ctx, op) {
66844
- if (!ctx.nestedTemplates || !ctx.dagBuilder || !ctx.diffCalculator) throw markNonRetryable(/* @__PURE__ */ new Error(`NestedStackProvider.${op}: deploy-mode context fields (nestedTemplates / dagBuilder / diffCalculator) are missing. This usually means a destroy-mode entry point called into create/update by mistake.`));
66845
- }
66846
- function deriveChildStackName(parentStackName, nestedLogicalId) {
66847
- return `${parentStackName}~${nestedLogicalId}`;
66848
- }
66849
- function synthesizeArn(accountId, childRegion, parentStackName, logicalId) {
66850
- return `arn:cdkd-local:${childRegion}:${accountId}:nested-stack/${parentStackName}/${logicalId}`;
66851
- }
66852
-
66853
67350
  // src/provisioning/providers/nested-stack/create-update.ts
66854
67351
  async function create$1(logicalId, resourceType, properties, context) {
66855
67352
  const ctx = this.requireContext();
@@ -67048,7 +67545,7 @@ async function runChildDeploy(parentCtx, logicalId, childStackName, childRegion,
67048
67545
  ...parentCtx.options ?? {},
67049
67546
  parameters: childParameters,
67050
67547
  onDestructivePlan: void 0,
67051
- ...inheritedSecrets && hasMaskableValues(inheritedSecrets) && { inheritedSecrets },
67548
+ ...inheritedSecrets && carriesInheritedRedaction(inheritedSecrets) && { inheritedSecrets },
67052
67549
  inheritedPhysicalNameCopies: inheritedPhysicalNameCopiesOf(inheritedSecrets),
67053
67550
  inheritedReferenceProvenance: snapshotPassProvenance(inheritedSecrets),
67054
67551
  ...passedClasses && { passedParameterClasses: passedClasses },
@@ -67076,9 +67573,10 @@ async function runChildDeploy(parentCtx, logicalId, childStackName, childRegion,
67076
67573
  const slot = parentCtx.childUnaddressed;
67077
67574
  if (slot) slot.last = {
67078
67575
  deleteSkipped: childResult.deleteSkipped,
67079
- updatePartial: (slot.last?.updatePartial ?? 0) + childResult.updatePartial
67576
+ updatePartial: (slot.last?.updatePartial ?? 0) + childResult.updatePartial,
67577
+ ...(childResult.queuedRemovals ?? 0) > 0 && { queuedRemovals: childResult.queuedRemovals }
67080
67578
  };
67081
- return childResult.deleteSkipped;
67579
+ return childResult.deleteSkipped + (childResult.queuedRemovals ?? 0);
67082
67580
  }
67083
67581
  function inheritedPhysicalNameCopiesOf(bag) {
67084
67582
  const copies = bag === void 0 ? void 0 : physicalNameCopiesOf.get(bag);
@@ -67966,5 +68464,5 @@ var ACMCertificateProvider = class {
67966
68464
  }
67967
68465
  };
67968
68466
 
67969
- 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 };
67970
- //# sourceMappingURL=provider-classes-BuCH49t_.js.map
68467
+ 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, EC2VPNGatewayRoutePropagationProvider, ECRProvider, ECSProvider, EFSProvider, ELBv2ListenerCertificateProvider, 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 };
68468
+ //# sourceMappingURL=provider-classes-CNMjjxoS.js.map