@cdkd/cli 0.356.1 → 0.356.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ambient-client-defaults-De07n1nL.js → ambient-client-defaults-CA9D0blo.js} +3 -3
- package/dist/{ambient-client-defaults-De07n1nL.js.map → ambient-client-defaults-CA9D0blo.js.map} +1 -1
- package/dist/{asg-provider-b691EwE8.js → asg-provider-DKK_ojhX.js} +6 -6
- package/dist/{asg-provider-b691EwE8.js.map → asg-provider-DKK_ojhX.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-DlodMh1F.js → custom-resource-runtime-CeK8xyQR.js} +6 -6
- package/dist/{custom-resource-runtime-DlodMh1F.js.map → custom-resource-runtime-CeK8xyQR.js.map} +1 -1
- package/dist/{db-associated-roles-BUuAcwNT.js → db-associated-roles-DgDc5wy0.js} +2 -2
- package/dist/{db-associated-roles-BUuAcwNT.js.map → db-associated-roles-DgDc5wy0.js.map} +1 -1
- package/dist/{delete-started-LNKwcEFH.js → delete-started--vmpKHHp.js} +4 -4
- package/dist/{delete-started-LNKwcEFH.js.map → delete-started--vmpKHHp.js.map} +1 -1
- package/dist/{deploy-engine-B51MbIog.js → deploy-engine-Khkf436D.js} +30 -16
- package/dist/deploy-engine-Khkf436D.js.map +1 -0
- package/dist/{diff-calculator-BcVzYptf.js → diff-calculator-FgirPchn.js} +12 -12
- package/dist/{diff-calculator-BcVzYptf.js.map → diff-calculator-FgirPchn.js.map} +1 -1
- package/dist/{ec2-termination-protection-B0L48E6S.js → ec2-termination-protection-DSas--OD.js} +6 -6
- package/dist/{ec2-termination-protection-B0L48E6S.js.map → ec2-termination-protection-DSas--OD.js.map} +1 -1
- package/dist/{ecr-uri-C4URq3EQ.js → ecr-uri-CNCeWz7V.js} +2 -2
- package/dist/{ecr-uri-C4URq3EQ.js.map → ecr-uri-CNCeWz7V.js.map} +1 -1
- package/dist/{expected-bucket-owner-D6sEwMEw.js → expected-bucket-owner-OcuAToiT.js} +2 -2
- package/dist/{expected-bucket-owner-D6sEwMEw.js.map → expected-bucket-owner-OcuAToiT.js.map} +1 -1
- package/dist/{iam-role-provider-CLp80Z8f.js → iam-role-provider-D0O-zHMi.js} +8 -8
- package/dist/{iam-role-provider-CLp80Z8f.js.map → iam-role-provider-D0O-zHMi.js.map} +1 -1
- package/dist/{image-plan-Z5fSvcbQ.js → image-plan-BUGUXaN0.js} +8 -8
- package/dist/{image-plan-Z5fSvcbQ.js.map → image-plan-BUGUXaN0.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-m_Da6A72.js → logger-CUFsTxnP.js} +7 -2
- package/dist/{logger-m_Da6A72.js.map → logger-CUFsTxnP.js.map} +1 -1
- package/dist/{neptune-provider-5CXy9yP1.js → neptune-provider-CACg-APp.js} +7 -7
- package/dist/{neptune-provider-5CXy9yP1.js.map → neptune-provider-CACg-APp.js.map} +1 -1
- package/dist/{program-Bo5odJZU.js → program-Dzi4h57y.js} +15 -15
- package/dist/{program-Bo5odJZU.js.map → program-Dzi4h57y.js.map} +1 -1
- package/dist/{provider-classes-BNNMePz9.js → provider-classes-CxAMhRwb.js} +205 -160
- package/dist/{provider-classes-BNNMePz9.js.map → provider-classes-CxAMhRwb.js.map} +1 -1
- package/dist/{rds-provider-Bu5BhIyo.js → rds-provider-CvggdQtJ.js} +10 -10
- package/dist/{rds-provider-Bu5BhIyo.js.map → rds-provider-CvggdQtJ.js.map} +1 -1
- package/dist/{read-replica-9H56BC3A.js → read-replica-cUM8un9s.js} +3 -3
- package/dist/{read-replica-9H56BC3A.js.map → read-replica-cUM8un9s.js.map} +1 -1
- package/dist/{replacement-rules-CxY-1qiA.js → replacement-rules-DHfiJ4Ez.js} +3 -3
- package/dist/{replacement-rules-CxY-1qiA.js.map → replacement-rules-DHfiJ4Ez.js.map} +1 -1
- package/dist/{resource-deadline-bFtS0Xzu.js → resource-deadline-D_yTCpOm.js} +4 -4
- package/dist/{resource-deadline-bFtS0Xzu.js.map → resource-deadline-D_yTCpOm.js.map} +1 -1
- package/dist/{restore-source-guard-4_lq4eLb.js → restore-source-guard-CnuS2SSM.js} +4 -4
- package/dist/{restore-source-guard-4_lq4eLb.js.map → restore-source-guard-CnuS2SSM.js.map} +1 -1
- package/dist/{run-cli-NAKp2ySr.js → run-cli-BhIcSCGu.js} +2 -2
- package/dist/{run-cli-NAKp2ySr.js.map → run-cli-BhIcSCGu.js.map} +1 -1
- package/dist/{version-C__Hnsko.js → version-DGMI88l4.js} +2 -2
- package/dist/{version-C__Hnsko.js.map → version-DGMI88l4.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-B51MbIog.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-
|
|
2
|
-
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-
|
|
1
|
+
import { a as IamCreateClientCache, i as isEntityAlreadyExists, n as collectInlinePolicyNamesManagedBySiblings, r as iamEntityLeftByThisCreate, t as IAMRoleProvider } from "./iam-role-provider-D0O-zHMi.js";
|
|
2
|
+
import { A as configStringRefusal, B as generateResourceName, D as coerceCfnInteger, E as coerceCfnBoolean, F as requireConfigString, J as getCurrentStackName, M as replayWarn, N as requireConfigArray, O as configBooleanRefusal, P as requireConfigObject, U as recordedGeneratedNameKept, V as generateResourceNameWithFallback, Y as isBeforeStateRead, c as VERBOSE_POINTER, d as describeAwsStatusReason, f as isAwsAuthoredFailure, g as verbosePointerTail, h as verbosePointerSentence, j as readConfigString, k as configIntegerRefusal, n as getLogger, p as safeStringify, q as getCurrentStackInstanceId, u as describeAwsFailure, w as generatedNameFor } from "./logger-CUFsTxnP.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as logGroupProtectionSite, $t as markCreatedBeforeFailure, A as ambiguousAttemptLead, At as compositeIdFormatMessage, B as isPlainImportValue, Bt as isSecretDerivedValue, Ct as renderDisableCommand, D as AmbiguousCreateLatch, Dt as isInterruptedWaitError, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, K as resolveExplicitPhysicalId, Kt as clearCreatedBeforeFailure, L as VALUE_NOT_SHOWN, Lt as stateOrphanRecordRemedy, M as isInsideWindow, Mt as compositeIdSkipResult, N as replayFollowedAmbiguousAttempt, Nt as logicalIdShown, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as startInterruptWatch, P as replayedSendWindow, Pt as packCompositeId, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, R as importRemedyCommand, Rt as createMaskedLogSinks, S as readPrincipalLists, St as protectedReplacementAdvice, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, X as markNotGone, Xt as isAuxiliaryFailure, _n as injectiveKeyPrefix, a as clearOnUpdateRemoval, at as deleteAfterProtectionFlipWithFinalSnapshot, b as holdsSecretDerivedEntry, bt as isAwsCliLiteral, c as removedTemplateKeys, ct as isTerminalDbWaitStatus, dt as isTerminalDeleteFailure, en as markSupersedesEarlierCreate, et as observeThenDisableProtection, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, it as PROTECTION_FLIP_RETRY_WAIT_MS, j as createAttemptKey, jt as compositeIdSeparatorRefusal, k as RecentIdSet, kt as canonicalizeRoute53QueryName, l as withRemovalDefaults, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, q as RESOURCE_NOT_FOUND, rt as userPoolProtectionSite, st as isProceedDbStatus, t as enclosingDeadlineExpired, tt as rdsFamilyProtectionSite, ut as ProtectionFlipRegistry, vt as UNNAMEABLE_ID_CLAUSE, w as recordedPrincipalsRepair, x as onlySecretDerived, xt as pasteableAwsCommand, y as SECRET_DERIVED_READ_LIVE, yt as WITHHELD_AWS_COMMAND, z as isPlainImportJson, zt as createMaskedRetryLogger } from "./resource-deadline-
|
|
6
|
-
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ as shellQuote, c as deployReplaceCommand, d as pasteableCommand, j as isPasteableIdent, k as displaySafe, l as hasClauseBreak, m as proseQuoted, o as cdkdRemedy, p as plainOrDescribed, s as commandHole, u as isInertUnquoted, v as withheldTargetClause } from "./version-
|
|
7
|
-
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started
|
|
8
|
-
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-
|
|
9
|
-
import { $ as planVectorIndexUpdates, At as hasCdkAutoDeleteTag, B as declaredStreamTagsMember, Ba as waitForGoneAfterDelete, Cc as refuseMalformedNestedChildOutputs, Cl as listNestedTemplateRows, Ct as TABLE_INDEX_NOUN, Do as s3BucketDualStackDomainName, Dt as waitForIndexesSettled, Eo as s3BucketDomainName, Et as relayedIndexBusyDelete, Fr as redactedDeleteAddressFields, G as streamMemberRefusals, Ga as deleteSkipReason, Gt as isAccessDeniedError, H as reverseMapStreamPolicy, I as DynamoDBGlobalTableProvider, Ir as redactedDeleteAddressSkip, J as isTtlAlreadyDisabled, K as streamPolicyMatchesDeclared, Ka as withIndeterminateGuard, Kt as lookupEachName, L as STREAM_POLICY_KEY, Nc as refuseMalformedResourcesForDestroy, Nr as REDACTED_DELETE_ADDRESS_SKIP_REASON, Oa as getCurrentResourceSecrets, Oo as s3BucketRegionalDomainName, Os as passedParameterClassesOf, Ot as ECR_AUTO_DELETE_IMAGES_TAG, Pr as isRedactedRecordedValue, Q as sendTtlWaitingOutRateLimit, Qn as canonicalizeIpProtocolValue, R as STREAM_TAGS_KEY, Ra as waitForLambdaFunctionActive, Rc as accountArgs, Sl as isAbsoluteAssetPath, St as INDEX_SETTLE_POLL_INTERVAL_MS, To as s3BucketArn, Tt as maskedLogger, U as streamDeclaresPolicy, Ul as rewriteTemplateAssetReferences, Uo as outputReferenceProvenanceOf, V as planStreamMemberOps, W as streamDeclaresTags, Wt as chunks, X as planTimeToLive, Xc as withoutSdkUnwiredProperties, Xn as cfnIngressPortValue, Y as isTtlRateLimited, Ya as markWaitAbandoned, Yi as secretNamedAttributeNamesOf, Yn as withoutSiblingOwnedSgRules, Yo as getAccountInfo, Z as readTtlSpec, Zn as sgProtocolKey, _i as awaitInFlightSibling, _s as isWarmThroughputDecrease, _t as compensateRemovedDeletionProtection, _u as describeFileReadFailure, at as contributorInsightsRefusals, bt as resolveDynamoDbDeleteBudgetMs, bu as renderAssemblyPathEscape, cn as withNestedStackContext, ct as planIndexContributorInsightsOps, da as collectManagedPolicyArnsAttachedBySiblings, dt as reverseMapTableContributorInsights, en as getNestedRevertRun, et as readbackVectorIndexes, fa as collectPrincipalsAttachingPolicy, ft as stripIndexContributorInsights, gr as reserveStackCreateToken, gs as coerceWarmThroughput$1, gt as beginDeleteWait, ha as withoutSiblingOwned, hs as WARM_THROUGHPUT_MEMBERS, ht as DYNAMODB_DELETE_POLL_COST_MS, it as CONTRIBUTOR_INSIGHTS_KEY, jl as decodeListingKey, jt as isTruthyCfnBoolean, ko as s3BucketWebsiteUrl, kt as S3_AUTO_DELETE_OBJECTS_TAG, lt as readContributorInsightsSpec, ma as withoutSiblingAttachedArns, mr as earliestDefined, mt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, no as APPSYNC_APIKEY_ARN_RESOURCE_PATH, nt as vectorIndexesSettled, ot as indexDeclaresContributorInsights, pt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, q as streamTagsMatchDeclared, qc as findSdkUnwiredProperties, qn as siblingOwnedSgRuleIdentities, qr as getCurrentProducerRegions, qt as withApiLimit, rn as revertNestedChildFromJournal, ro as maskedSecretSegment, rt as vectorIndexesShapeDetail, sn as getCurrentNestedStackContext, st as planContributorInsightsOp, t as DeployEngine, to as isSettledInstanceState, tt as vectorIndexesForCreate, ua as collectGroupsAddedBySiblings, ut as reverseMapIndexContributorInsights, vr as acquireIdempotencyToken, vs as toCfnInteger, vt as deleteBudgetKey, vu as displayAssemblyPath, wl as renderNestedTemplateTreeDefect, wt as deleteTableWithIndexBusyRetry, xi as replacedDeleteFailureVerdict, xl as findNestedTemplateTreeDefect, xt as DELETE_INDEX_WAIT_PROCEED_NOTE, xu as resolveAssemblyPath, yi as getStackRecords, yl as stringifyValue, ys as toFiniteNumber, yt as resolveDynamoDbDeleteBudgetClock, z as declaredStreamPolicyMember, zc as withheldAccountClause, zo as parseWebACLArn } from "./deploy-engine-
|
|
10
|
-
import { _ as isUsableAttemptedName, c as planTagDiff, d as tagMapAsList, f as tagPlanWarning, g as stringifyIfAssigned, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, m as modifyDbInstanceWhenAvailable, o as DBPROXY_TAGS_WHAT, p as isModifyNotAvailableRefusal, s as DBPROXY_TAG_OPTIONS, u as refuseMalformedDesiredTags } from "./restore-source-guard-
|
|
11
|
-
import { A as withRetry, U as timePhase, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, d as markRefusedBeforeApplying, g as onlySecretReferencesDiffer, i as observeThenDisableInstanceApiTermination, l as getPriorAttempts, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs } from "./ec2-termination-protection-
|
|
4
|
+
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, H as isMarkedNonRetryable, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, V as THROTTLING_ERROR_NAMES, W as markNonRetryable, _ as ResourceUpdateNotSupportedError, at as ProvisioningError, et as CdkdError, i as credentialFingerprint, n as ambientCredentialConfig, r as clientDefaultsFor, t as ambientClientDefaults, x as hasReplayMayCollide, z as isTransientServerError } from "./ambient-client-defaults-CA9D0blo.js";
|
|
5
|
+
import { $ as logGroupProtectionSite, $t as markCreatedBeforeFailure, A as ambiguousAttemptLead, At as compositeIdFormatMessage, B as isPlainImportValue, Bt as isSecretDerivedValue, Ct as renderDisableCommand, D as AmbiguousCreateLatch, Dt as isInterruptedWaitError, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskerOrIdentity, I as withoutServerErrorRetries, It as segmentAfterAnchor, J as assertRegionMatch, K as resolveExplicitPhysicalId, Kt as clearCreatedBeforeFailure, L as VALUE_NOT_SHOWN, Lt as stateOrphanRecordRemedy, M as isInsideWindow, Mt as compositeIdSkipResult, N as replayFollowedAmbiguousAttempt, Nt as logicalIdShown, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as startInterruptWatch, P as replayedSendWindow, Pt as packCompositeId, Q as deleteWithProtectionCompensation, Qt as markAuxiliaryFailure, R as importRemedyCommand, Rt as createMaskedLogSinks, S as readPrincipalLists, St as protectedReplacementAdvice, U as quotedRemedyLogicalId, Ut as withDerivedNameMasks, V as isQuotableImportValue, Vt as maskDeep, W as refusalTypeShown, X as markNotGone, Xt as isAuxiliaryFailure, _n as injectiveKeyPrefix, a as clearOnUpdateRemoval, at as deleteAfterProtectionFlipWithFinalSnapshot, b as holdsSecretDerivedEntry, bt as isAwsCliLiteral, c as removedTemplateKeys, ct as isTerminalDbWaitStatus, dt as isTerminalDeleteFailure, en as markSupersedesEarlierCreate, et as observeThenDisableProtection, ft as protectionFlipKey, g as retractCreatedResource, gn as injectiveKey, hn as withPasteableAwsProfile, ht as ElapsedBudgetRegistry, it as PROTECTION_FLIP_RETRY_WAIT_MS, j as createAttemptKey, jt as compositeIdSeparatorRefusal, k as RecentIdSet, kt as canonicalizeRoute53QueryName, l as withRemovalDefaults, m as reportCreatedResource, mt as ElapsedBudget, n as enclosingDeadlineRemainingMs, q as RESOURCE_NOT_FOUND, rt as userPoolProtectionSite, st as isProceedDbStatus, t as enclosingDeadlineExpired, tt as rdsFamilyProtectionSite, ut as ProtectionFlipRegistry, vt as UNNAMEABLE_ID_CLAUSE, w as recordedPrincipalsRepair, x as onlySecretDerived, xt as pasteableAwsCommand, y as SECRET_DERIVED_READ_LIVE, yt as WITHHELD_AWS_COMMAND, z as isPlainImportJson, zt as createMaskedRetryLogger } from "./resource-deadline-D_yTCpOm.js";
|
|
6
|
+
import { A as displayStackName, N as plainIdentOr, O as displayIdent, P as safeMsg, S as SECRET_REF_MAX_CODE_POINTS, T as asIsMessage, _ 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-DGMI88l4.js";
|
|
7
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started--vmpKHHp.js";
|
|
8
|
+
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-Dzi4h57y.js";
|
|
9
|
+
import { $ as planVectorIndexUpdates, At as hasCdkAutoDeleteTag, B as declaredStreamTagsMember, Ba as waitForGoneAfterDelete, Cc as refuseMalformedNestedChildOutputs, Cl as listNestedTemplateRows, Ct as TABLE_INDEX_NOUN, Do as s3BucketDualStackDomainName, Dt as waitForIndexesSettled, Eo as s3BucketDomainName, Et as relayedIndexBusyDelete, Fr as redactedDeleteAddressFields, G as streamMemberRefusals, Ga as deleteSkipReason, Gt as isAccessDeniedError, H as reverseMapStreamPolicy, I as DynamoDBGlobalTableProvider, Ir as redactedDeleteAddressSkip, J as isTtlAlreadyDisabled, K as streamPolicyMatchesDeclared, Ka as withIndeterminateGuard, Kt as lookupEachName, L as STREAM_POLICY_KEY, Nc as refuseMalformedResourcesForDestroy, Nr as REDACTED_DELETE_ADDRESS_SKIP_REASON, Oa as getCurrentResourceSecrets, Oo as s3BucketRegionalDomainName, Os as passedParameterClassesOf, Ot as ECR_AUTO_DELETE_IMAGES_TAG, Pr as isRedactedRecordedValue, Q as sendTtlWaitingOutRateLimit, Qn as canonicalizeIpProtocolValue, R as STREAM_TAGS_KEY, Ra as waitForLambdaFunctionActive, Rc as accountArgs, Sl as isAbsoluteAssetPath, St as INDEX_SETTLE_POLL_INTERVAL_MS, To as s3BucketArn, Tt as maskedLogger, U as streamDeclaresPolicy, Ul as rewriteTemplateAssetReferences, Uo as outputReferenceProvenanceOf, V as planStreamMemberOps, W as streamDeclaresTags, Wt as chunks, X as planTimeToLive, Xc as withoutSdkUnwiredProperties, Xn as cfnIngressPortValue, Y as isTtlRateLimited, Ya as markWaitAbandoned, Yi as secretNamedAttributeNamesOf, Yn as withoutSiblingOwnedSgRules, Yo as getAccountInfo, Z as readTtlSpec, Zn as sgProtocolKey, _i as awaitInFlightSibling, _s as isWarmThroughputDecrease, _t as compensateRemovedDeletionProtection, _u as describeFileReadFailure, at as contributorInsightsRefusals, bt as resolveDynamoDbDeleteBudgetMs, bu as renderAssemblyPathEscape, cn as withNestedStackContext, ct as planIndexContributorInsightsOps, da as collectManagedPolicyArnsAttachedBySiblings, dt as reverseMapTableContributorInsights, en as getNestedRevertRun, et as readbackVectorIndexes, fa as collectPrincipalsAttachingPolicy, ft as stripIndexContributorInsights, gr as reserveStackCreateToken, gs as coerceWarmThroughput$1, gt as beginDeleteWait, ha as withoutSiblingOwned, hs as WARM_THROUGHPUT_MEMBERS, ht as DYNAMODB_DELETE_POLL_COST_MS, it as CONTRIBUTOR_INSIGHTS_KEY, jl as decodeListingKey, jt as isTruthyCfnBoolean, ko as s3BucketWebsiteUrl, kt as S3_AUTO_DELETE_OBJECTS_TAG, lt as readContributorInsightsSpec, ma as withoutSiblingAttachedArns, mr as earliestDefined, mt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, no as APPSYNC_APIKEY_ARN_RESOURCE_PATH, nt as vectorIndexesSettled, ot as indexDeclaresContributorInsights, pt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, q as streamTagsMatchDeclared, qc as findSdkUnwiredProperties, qn as siblingOwnedSgRuleIdentities, qr as getCurrentProducerRegions, qt as withApiLimit, rn as revertNestedChildFromJournal, ro as maskedSecretSegment, rt as vectorIndexesShapeDetail, sn as getCurrentNestedStackContext, st as planContributorInsightsOp, t as DeployEngine, to as isSettledInstanceState, tt as vectorIndexesForCreate, ua as collectGroupsAddedBySiblings, ut as reverseMapIndexContributorInsights, vr as acquireIdempotencyToken, vs as toCfnInteger, vt as deleteBudgetKey, vu as displayAssemblyPath, wl as renderNestedTemplateTreeDefect, wt as deleteTableWithIndexBusyRetry, xi as replacedDeleteFailureVerdict, xl as findNestedTemplateTreeDefect, xt as DELETE_INDEX_WAIT_PROCEED_NOTE, xu as resolveAssemblyPath, yi as getStackRecords, yl as stringifyValue, ys as toFiniteNumber, yt as resolveDynamoDbDeleteBudgetClock, z as declaredStreamPolicyMember, zc as withheldAccountClause, zo as parseWebACLArn } from "./deploy-engine-Khkf436D.js";
|
|
10
|
+
import { _ as isUsableAttemptedName, c as planTagDiff, d as tagMapAsList, f as tagPlanWarning, g as stringifyIfAssigned, h as definedAttributes, i as refuseRestoreFromItself, l as readTagList, m as modifyDbInstanceWhenAvailable, o as DBPROXY_TAGS_WHAT, p as isModifyNotAvailableRefusal, s as DBPROXY_TAG_OPTIONS, u as refuseMalformedDesiredTags } from "./restore-source-guard-CnuS2SSM.js";
|
|
11
|
+
import { A as withRetry, U as timePhase, _ as unchangedBehindSecretReference, a as reDisableInstanceApiTermination, d as markRefusedBeforeApplying, g as onlySecretReferencesDiffer, i as observeThenDisableInstanceApiTermination, l as getPriorAttempts, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as resolvedResourceTimeoutMs } from "./ec2-termination-protection-DSas--OD.js";
|
|
12
12
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
13
13
|
import { f as ambientRegion } from "./aws-client-defaults-DAebi99J.js";
|
|
14
|
-
import { n as planSubscriptionAttributes } from "./diff-calculator-
|
|
15
|
-
import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-
|
|
16
|
-
import { RDSProvider } from "./rds-provider-
|
|
17
|
-
import { NeptuneProvider } from "./neptune-provider-
|
|
18
|
-
import { ASGProvider } from "./asg-provider-
|
|
14
|
+
import { n as planSubscriptionAttributes } from "./diff-calculator-FgirPchn.js";
|
|
15
|
+
import { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced, cn as recordAttributeIdCopy, i as ecsServiceLaunchTypeSetOrChanged, it as hasMaskableValues, l as sameLambdaFunctionAddress, mn as carriesSecretMask, n as blockDeviceMappingsDifferOnlyInDeleteOnTermination, o as canonicalLambdaFunctionName, on as recoverMaskedOutput, s as lambdaFunctionNameForMask, sn as physicalNameCopiesOf } from "./replacement-rules-DHfiJ4Ez.js";
|
|
16
|
+
import { RDSProvider } from "./rds-provider-CvggdQtJ.js";
|
|
17
|
+
import { NeptuneProvider } from "./neptune-provider-CACg-APp.js";
|
|
18
|
+
import { ASGProvider } from "./asg-provider-DKK_ojhX.js";
|
|
19
19
|
import { createHash, randomUUID } from "node:crypto";
|
|
20
20
|
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";
|
|
21
21
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateAccessKeyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetAccessKeyLastUsedCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListPoliciesCommand, ListPolicyTagsCommand, ListPolicyVersionsCommand, ListUserPoliciesCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagPolicyCommand, TagUserCommand, UntagPolicyCommand, UntagUserCommand, UpdateAccessKeyCommand, UpdateGroupCommand, UpdateLoginProfileCommand, UpdateUserCommand } from "@aws-sdk/client-iam";
|
|
@@ -38871,9 +38871,15 @@ function wrapCaughtError$10(mask, error, build) {
|
|
|
38871
38871
|
if (!failure.redacted) return wrapMaskedAwsError(m, error, build);
|
|
38872
38872
|
this.logger.debug(m(build(m(failure.detail)).message));
|
|
38873
38873
|
const relay = isAuxiliaryFailure(error) ? "" : relayedNameCollision(failure.detail);
|
|
38874
|
-
const wrapped = build(`${m(failure.summary)}${relay}`);
|
|
38874
|
+
const wrapped = build(`${m(failure.summary)}${relay}${recordSetProtectionNote(error)}`);
|
|
38875
38875
|
return error instanceof Error ? markRedactedCause(wrapped) : wrapped;
|
|
38876
38876
|
}
|
|
38877
|
+
function recordSetProtectionNote(error) {
|
|
38878
|
+
if (!(error instanceof Error)) return "";
|
|
38879
|
+
if (error.name === "InvalidChangeBatch" && /is protected and cannot be changed/.test(error.message)) return " The record set has a Route 53 resource record set protection; remove it with DeleteResourceRecordSetProtections and re-run (--remove-protection does not, as no template property declares it).";
|
|
38880
|
+
if (error.name === "HostedZoneInUse" && /has resource record set protections/.test(error.message)) return " The hosted zone has Route 53 resource record set protections; remove them with DeleteResourceRecordSetProtections and re-run (--remove-protection does not, as no template property declares them).";
|
|
38881
|
+
return "";
|
|
38882
|
+
}
|
|
38877
38883
|
function wrapDeleteError$2(mask, error, build) {
|
|
38878
38884
|
const thrown = this.wrapCaughtError(mask, error, build);
|
|
38879
38885
|
return error instanceof Error && error.name.includes("NotFound") ? markNotGone(thrown) : thrown;
|
|
@@ -39366,6 +39372,141 @@ async function waitForAcceleratedRecoveryMutable(zoneId, logicalId, resourceType
|
|
|
39366
39372
|
throw new ProvisioningError(`Timed out after ${timeoutMs}ms waiting for AcceleratedRecoveryStatus to reach a mutable state on hosted zone ${zoneId} ${purpose.retry}${purpose.settledAt !== void 0 ? ` (last status: ${lastStatus ?? "none"})` : ""}`, resourceType, logicalId, zoneId);
|
|
39367
39373
|
}
|
|
39368
39374
|
|
|
39375
|
+
// src/provisioning/providers/route53/record-set-group-shape.ts
|
|
39376
|
+
const RECORD_SET_GROUP_TYPE = "AWS::Route53::RecordSetGroup";
|
|
39377
|
+
const RECORD_IDENTITY_FIELDS = [
|
|
39378
|
+
"Name",
|
|
39379
|
+
"Type",
|
|
39380
|
+
"SetIdentifier"
|
|
39381
|
+
];
|
|
39382
|
+
const RECORD_VALUE_FIELDS = [
|
|
39383
|
+
"TTL",
|
|
39384
|
+
"ResourceRecords",
|
|
39385
|
+
"AliasTarget",
|
|
39386
|
+
"Weight",
|
|
39387
|
+
"Region",
|
|
39388
|
+
"Failover",
|
|
39389
|
+
"MultiValueAnswer",
|
|
39390
|
+
"HealthCheckId",
|
|
39391
|
+
"GeoLocation",
|
|
39392
|
+
"GeoProximityLocation",
|
|
39393
|
+
"CidrRoutingConfig"
|
|
39394
|
+
];
|
|
39395
|
+
function recordSetGroupCompositeId(hostedZoneId, groupName) {
|
|
39396
|
+
return `${hostedZoneId}|${groupName}`;
|
|
39397
|
+
}
|
|
39398
|
+
const GROUP_NAME_MAX_LENGTH = 255;
|
|
39399
|
+
function generatedGroupName(logicalId) {
|
|
39400
|
+
return generateResourceName(logicalId, { maxLength: 255 });
|
|
39401
|
+
}
|
|
39402
|
+
function namesThisGroup(name, logicalId) {
|
|
39403
|
+
return name === logicalId || name.split("-").includes(logicalId);
|
|
39404
|
+
}
|
|
39405
|
+
function parseRecordSetGroupCompositeId(physicalId, logicalId) {
|
|
39406
|
+
const parts = physicalId.split("|");
|
|
39407
|
+
if (parts.length !== 2) return void 0;
|
|
39408
|
+
const [hostedZoneId, groupName] = parts;
|
|
39409
|
+
if (!hostedZoneId || !groupName || !namesThisGroup(groupName, logicalId)) return void 0;
|
|
39410
|
+
return {
|
|
39411
|
+
hostedZoneId,
|
|
39412
|
+
groupName
|
|
39413
|
+
};
|
|
39414
|
+
}
|
|
39415
|
+
function existingGroupName(physicalId, logicalId) {
|
|
39416
|
+
const parsed = parseRecordSetGroupCompositeId(physicalId, logicalId);
|
|
39417
|
+
if (parsed) return parsed.groupName;
|
|
39418
|
+
if (!physicalId.includes("|")) return physicalId;
|
|
39419
|
+
const parts = physicalId.split("|");
|
|
39420
|
+
return parts.length === 2 && parts[1] ? parts[1] : logicalId;
|
|
39421
|
+
}
|
|
39422
|
+
function groupRecordSets(properties) {
|
|
39423
|
+
const raw = properties?.["RecordSets"];
|
|
39424
|
+
if (raw === void 0 || raw === null) return { records: [] };
|
|
39425
|
+
if (!Array.isArray(raw)) return { refusal: "RecordSets is not a list" };
|
|
39426
|
+
const records = [];
|
|
39427
|
+
for (const [index, entry] of raw.entries()) {
|
|
39428
|
+
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) return { refusal: `RecordSets[${index}] is not an object` };
|
|
39429
|
+
records.push(entry);
|
|
39430
|
+
}
|
|
39431
|
+
return { records };
|
|
39432
|
+
}
|
|
39433
|
+
function recordSetKey(record) {
|
|
39434
|
+
const comparable = (value) => typeof value === "string" && value !== "" && !value.includes("{{resolve:") && !isRedactedRecordedValue(value);
|
|
39435
|
+
const name = record["Name"];
|
|
39436
|
+
const type = record["Type"];
|
|
39437
|
+
const setIdentifier = record["SetIdentifier"];
|
|
39438
|
+
if (!comparable(name) || !comparable(type)) return void 0;
|
|
39439
|
+
if (setIdentifier !== void 0 && !comparable(setIdentifier)) return void 0;
|
|
39440
|
+
return JSON.stringify([
|
|
39441
|
+
normalizeRecordName(name),
|
|
39442
|
+
type,
|
|
39443
|
+
setIdentifier ?? ""
|
|
39444
|
+
]);
|
|
39445
|
+
}
|
|
39446
|
+
function groupZoneProperties(properties, records) {
|
|
39447
|
+
const zone = {};
|
|
39448
|
+
for (const key of ["HostedZoneId", "HostedZoneName"]) {
|
|
39449
|
+
let value = properties[key];
|
|
39450
|
+
for (const [index, record] of records.entries()) {
|
|
39451
|
+
const recordValue = record[key];
|
|
39452
|
+
if (recordValue === void 0) continue;
|
|
39453
|
+
if (value === void 0) {
|
|
39454
|
+
value = recordValue;
|
|
39455
|
+
continue;
|
|
39456
|
+
}
|
|
39457
|
+
if (JSON.stringify(recordValue) !== JSON.stringify(value)) return { refusal: `RecordSets[${index}].${key} differs from the ${key} the rest of the group uses; every record of a RecordSetGroup must be in one hosted zone` };
|
|
39458
|
+
}
|
|
39459
|
+
if (value !== void 0) zone[key] = value;
|
|
39460
|
+
}
|
|
39461
|
+
return { zone };
|
|
39462
|
+
}
|
|
39463
|
+
function recordBag(record) {
|
|
39464
|
+
const { HostedZoneId: _zoneId, HostedZoneName: _zoneName, ...rest } = record;
|
|
39465
|
+
return rest;
|
|
39466
|
+
}
|
|
39467
|
+
function groupRefusalError(message, logicalId, physicalId) {
|
|
39468
|
+
return new ProvisioningError(message, RECORD_SET_GROUP_TYPE, logicalId, physicalId);
|
|
39469
|
+
}
|
|
39470
|
+
function sameRecordSet(a, b) {
|
|
39471
|
+
const canonical = (value) => {
|
|
39472
|
+
if (Array.isArray(value)) return value.map(canonical);
|
|
39473
|
+
if (value === null || typeof value !== "object") return value;
|
|
39474
|
+
return Object.fromEntries(Object.keys(value).sort().map((k) => [k, canonical(value[k])]));
|
|
39475
|
+
};
|
|
39476
|
+
const spell = (r) => JSON.stringify(canonical({
|
|
39477
|
+
...r,
|
|
39478
|
+
Name: normalizeRecordName(r.Name ?? ""),
|
|
39479
|
+
...r.AliasTarget && { AliasTarget: {
|
|
39480
|
+
...r.AliasTarget,
|
|
39481
|
+
DNSName: normalizeRecordName(r.AliasTarget.DNSName ?? "")
|
|
39482
|
+
} }
|
|
39483
|
+
}));
|
|
39484
|
+
return spell(a) === spell(b);
|
|
39485
|
+
}
|
|
39486
|
+
const updateBatchClients = /* @__PURE__ */ new WeakMap();
|
|
39487
|
+
function updateBatchClient(provider) {
|
|
39488
|
+
let client = updateBatchClients.get(provider);
|
|
39489
|
+
if (!client) {
|
|
39490
|
+
client = withoutServerErrorRetries(new Route53Client({
|
|
39491
|
+
...ambientClientDefaults(),
|
|
39492
|
+
...provider.providerRegion ? { region: provider.providerRegion } : {}
|
|
39493
|
+
}));
|
|
39494
|
+
updateBatchClients.set(provider, client);
|
|
39495
|
+
}
|
|
39496
|
+
return client;
|
|
39497
|
+
}
|
|
39498
|
+
function isUnambiguousClientRefusal(error) {
|
|
39499
|
+
if (!(error instanceof Error)) return false;
|
|
39500
|
+
if (error.$fault !== "client") return false;
|
|
39501
|
+
return !hasReplayMayCollide(error);
|
|
39502
|
+
}
|
|
39503
|
+
function isRecordValuesMismatchRefusal(error) {
|
|
39504
|
+
return error instanceof Error && error.name === "InvalidChangeBatch" && /values provided do not match the current values/i.test(error.message);
|
|
39505
|
+
}
|
|
39506
|
+
function isRecordNotFoundRefusal(error) {
|
|
39507
|
+
return error instanceof Error && error.name === "InvalidChangeBatch" && /but it was not found/i.test(error.message);
|
|
39508
|
+
}
|
|
39509
|
+
|
|
39369
39510
|
// src/provisioning/providers/route53/record-set.ts
|
|
39370
39511
|
async function createRecordSet(logicalId, resourceType, properties, mask, replayingState = false) {
|
|
39371
39512
|
this.logger.debug(`Creating Route 53 record set ${logicalId}`);
|
|
@@ -39506,24 +39647,35 @@ async function deleteRecordSet(logicalId, physicalId, resourceType, properties,
|
|
|
39506
39647
|
}
|
|
39507
39648
|
try {
|
|
39508
39649
|
const resourceRecordSet = this.buildResourceRecordSet(properties);
|
|
39509
|
-
const sendDelete = () => this.getClient().send(new ChangeResourceRecordSetsCommand({
|
|
39650
|
+
const sendDelete = (recordSet) => this.getClient().send(new ChangeResourceRecordSetsCommand({
|
|
39510
39651
|
HostedZoneId: hostedZoneId,
|
|
39511
39652
|
ChangeBatch: { Changes: [{
|
|
39512
39653
|
Action: "DELETE",
|
|
39513
|
-
ResourceRecordSet:
|
|
39654
|
+
ResourceRecordSet: recordSet
|
|
39514
39655
|
}] }
|
|
39515
39656
|
}));
|
|
39657
|
+
const deleteRecord = async (recordSet) => {
|
|
39658
|
+
try {
|
|
39659
|
+
await sendDelete(recordSet);
|
|
39660
|
+
} catch (error) {
|
|
39661
|
+
if (!isZoneDisabledForMutationError(error)) throw error;
|
|
39662
|
+
this.logger.info(`Hosted zone ${hostedZoneId} is mid AcceleratedRecovery transition (marked disabled for mutation); waiting for it to settle before retrying delete of record set ${logicalId}`);
|
|
39663
|
+
await this.waitForAcceleratedRecoveryMutable(hostedZoneId, logicalId, resourceType);
|
|
39664
|
+
await sendDelete(recordSet);
|
|
39665
|
+
}
|
|
39666
|
+
};
|
|
39516
39667
|
try {
|
|
39517
|
-
await
|
|
39668
|
+
await deleteRecord(resourceRecordSet);
|
|
39518
39669
|
} catch (error) {
|
|
39519
|
-
if (!
|
|
39520
|
-
|
|
39521
|
-
|
|
39522
|
-
|
|
39670
|
+
if (!isRecordValuesMismatchRefusal(error)) throw error;
|
|
39671
|
+
const live = await this.findLiveRecordSet(hostedZoneId, properties);
|
|
39672
|
+
if (!live) throw error;
|
|
39673
|
+
this.logger.debug(safeMsg`Record set ${logicalId}: the recorded values differ from the live record; deleting the live record`);
|
|
39674
|
+
await deleteRecord(live);
|
|
39523
39675
|
}
|
|
39524
39676
|
this.logger.debug(`Successfully deleted record set ${logicalId}`);
|
|
39525
39677
|
} catch (error) {
|
|
39526
|
-
if (error instanceof Error &&
|
|
39678
|
+
if (error instanceof Error && error.message.includes("it was not found")) {
|
|
39527
39679
|
const clientRegion = await this.getClient().config.region();
|
|
39528
39680
|
assertRegionMatch(clientRegion, context?.expectedRegion, resourceType, logicalId, physicalId);
|
|
39529
39681
|
this.logger.debug(`Record set ${physicalId} does not exist, skipping deletion`);
|
|
@@ -39601,138 +39753,6 @@ function buildResourceRecordSet(properties) {
|
|
|
39601
39753
|
return recordSet;
|
|
39602
39754
|
}
|
|
39603
39755
|
|
|
39604
|
-
// src/provisioning/providers/route53/record-set-group-shape.ts
|
|
39605
|
-
const RECORD_SET_GROUP_TYPE = "AWS::Route53::RecordSetGroup";
|
|
39606
|
-
const RECORD_IDENTITY_FIELDS = [
|
|
39607
|
-
"Name",
|
|
39608
|
-
"Type",
|
|
39609
|
-
"SetIdentifier"
|
|
39610
|
-
];
|
|
39611
|
-
const RECORD_VALUE_FIELDS = [
|
|
39612
|
-
"TTL",
|
|
39613
|
-
"ResourceRecords",
|
|
39614
|
-
"AliasTarget",
|
|
39615
|
-
"Weight",
|
|
39616
|
-
"Region",
|
|
39617
|
-
"Failover",
|
|
39618
|
-
"MultiValueAnswer",
|
|
39619
|
-
"HealthCheckId",
|
|
39620
|
-
"GeoLocation",
|
|
39621
|
-
"GeoProximityLocation",
|
|
39622
|
-
"CidrRoutingConfig"
|
|
39623
|
-
];
|
|
39624
|
-
function recordSetGroupCompositeId(hostedZoneId, groupName) {
|
|
39625
|
-
return `${hostedZoneId}|${groupName}`;
|
|
39626
|
-
}
|
|
39627
|
-
const GROUP_NAME_MAX_LENGTH = 255;
|
|
39628
|
-
function generatedGroupName(logicalId) {
|
|
39629
|
-
return generateResourceName(logicalId, { maxLength: 255 });
|
|
39630
|
-
}
|
|
39631
|
-
function namesThisGroup(name, logicalId) {
|
|
39632
|
-
return name === logicalId || name.split("-").includes(logicalId);
|
|
39633
|
-
}
|
|
39634
|
-
function parseRecordSetGroupCompositeId(physicalId, logicalId) {
|
|
39635
|
-
const parts = physicalId.split("|");
|
|
39636
|
-
if (parts.length !== 2) return void 0;
|
|
39637
|
-
const [hostedZoneId, groupName] = parts;
|
|
39638
|
-
if (!hostedZoneId || !groupName || !namesThisGroup(groupName, logicalId)) return void 0;
|
|
39639
|
-
return {
|
|
39640
|
-
hostedZoneId,
|
|
39641
|
-
groupName
|
|
39642
|
-
};
|
|
39643
|
-
}
|
|
39644
|
-
function existingGroupName(physicalId, logicalId) {
|
|
39645
|
-
const parsed = parseRecordSetGroupCompositeId(physicalId, logicalId);
|
|
39646
|
-
if (parsed) return parsed.groupName;
|
|
39647
|
-
if (!physicalId.includes("|")) return physicalId;
|
|
39648
|
-
const parts = physicalId.split("|");
|
|
39649
|
-
return parts.length === 2 && parts[1] ? parts[1] : logicalId;
|
|
39650
|
-
}
|
|
39651
|
-
function groupRecordSets(properties) {
|
|
39652
|
-
const raw = properties?.["RecordSets"];
|
|
39653
|
-
if (raw === void 0 || raw === null) return { records: [] };
|
|
39654
|
-
if (!Array.isArray(raw)) return { refusal: "RecordSets is not a list" };
|
|
39655
|
-
const records = [];
|
|
39656
|
-
for (const [index, entry] of raw.entries()) {
|
|
39657
|
-
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) return { refusal: `RecordSets[${index}] is not an object` };
|
|
39658
|
-
records.push(entry);
|
|
39659
|
-
}
|
|
39660
|
-
return { records };
|
|
39661
|
-
}
|
|
39662
|
-
function recordSetKey(record) {
|
|
39663
|
-
const comparable = (value) => typeof value === "string" && value !== "" && !value.includes("{{resolve:") && !isRedactedRecordedValue(value);
|
|
39664
|
-
const name = record["Name"];
|
|
39665
|
-
const type = record["Type"];
|
|
39666
|
-
const setIdentifier = record["SetIdentifier"];
|
|
39667
|
-
if (!comparable(name) || !comparable(type)) return void 0;
|
|
39668
|
-
if (setIdentifier !== void 0 && !comparable(setIdentifier)) return void 0;
|
|
39669
|
-
return JSON.stringify([
|
|
39670
|
-
normalizeRecordName(name),
|
|
39671
|
-
type,
|
|
39672
|
-
setIdentifier ?? ""
|
|
39673
|
-
]);
|
|
39674
|
-
}
|
|
39675
|
-
function groupZoneProperties(properties, records) {
|
|
39676
|
-
const zone = {};
|
|
39677
|
-
for (const key of ["HostedZoneId", "HostedZoneName"]) {
|
|
39678
|
-
let value = properties[key];
|
|
39679
|
-
for (const [index, record] of records.entries()) {
|
|
39680
|
-
const recordValue = record[key];
|
|
39681
|
-
if (recordValue === void 0) continue;
|
|
39682
|
-
if (value === void 0) {
|
|
39683
|
-
value = recordValue;
|
|
39684
|
-
continue;
|
|
39685
|
-
}
|
|
39686
|
-
if (JSON.stringify(recordValue) !== JSON.stringify(value)) return { refusal: `RecordSets[${index}].${key} differs from the ${key} the rest of the group uses; every record of a RecordSetGroup must be in one hosted zone` };
|
|
39687
|
-
}
|
|
39688
|
-
if (value !== void 0) zone[key] = value;
|
|
39689
|
-
}
|
|
39690
|
-
return { zone };
|
|
39691
|
-
}
|
|
39692
|
-
function recordBag(record) {
|
|
39693
|
-
const { HostedZoneId: _zoneId, HostedZoneName: _zoneName, ...rest } = record;
|
|
39694
|
-
return rest;
|
|
39695
|
-
}
|
|
39696
|
-
function groupRefusalError(message, logicalId, physicalId) {
|
|
39697
|
-
return new ProvisioningError(message, RECORD_SET_GROUP_TYPE, logicalId, physicalId);
|
|
39698
|
-
}
|
|
39699
|
-
function sameRecordSet(a, b) {
|
|
39700
|
-
const canonical = (value) => {
|
|
39701
|
-
if (Array.isArray(value)) return value.map(canonical);
|
|
39702
|
-
if (value === null || typeof value !== "object") return value;
|
|
39703
|
-
return Object.fromEntries(Object.keys(value).sort().map((k) => [k, canonical(value[k])]));
|
|
39704
|
-
};
|
|
39705
|
-
const spell = (r) => JSON.stringify(canonical({
|
|
39706
|
-
...r,
|
|
39707
|
-
Name: normalizeRecordName(r.Name ?? ""),
|
|
39708
|
-
...r.AliasTarget && { AliasTarget: {
|
|
39709
|
-
...r.AliasTarget,
|
|
39710
|
-
DNSName: normalizeRecordName(r.AliasTarget.DNSName ?? "")
|
|
39711
|
-
} }
|
|
39712
|
-
}));
|
|
39713
|
-
return spell(a) === spell(b);
|
|
39714
|
-
}
|
|
39715
|
-
const updateBatchClients = /* @__PURE__ */ new WeakMap();
|
|
39716
|
-
function updateBatchClient(provider) {
|
|
39717
|
-
let client = updateBatchClients.get(provider);
|
|
39718
|
-
if (!client) {
|
|
39719
|
-
client = withoutServerErrorRetries(new Route53Client({
|
|
39720
|
-
...ambientClientDefaults(),
|
|
39721
|
-
...provider.providerRegion ? { region: provider.providerRegion } : {}
|
|
39722
|
-
}));
|
|
39723
|
-
updateBatchClients.set(provider, client);
|
|
39724
|
-
}
|
|
39725
|
-
return client;
|
|
39726
|
-
}
|
|
39727
|
-
function isUnambiguousClientRefusal(error) {
|
|
39728
|
-
if (!(error instanceof Error)) return false;
|
|
39729
|
-
if (error.$fault !== "client") return false;
|
|
39730
|
-
return !hasReplayMayCollide(error);
|
|
39731
|
-
}
|
|
39732
|
-
function isRecordNotFoundRefusal(error) {
|
|
39733
|
-
return error instanceof Error && error.name === "InvalidChangeBatch" && /but it was not found/i.test(error.message);
|
|
39734
|
-
}
|
|
39735
|
-
|
|
39736
39756
|
// src/provisioning/providers/route53/record-set-group.ts
|
|
39737
39757
|
function listedRecords(properties) {
|
|
39738
39758
|
const parsed = groupRecordSets(properties);
|
|
@@ -41657,6 +41677,10 @@ const USER_POOL_ECHO_MEMBERS = [
|
|
|
41657
41677
|
function userPoolDeletionProtectionUpdate(physicalId, pool, value, opts = {}) {
|
|
41658
41678
|
const input = { UserPoolId: physicalId };
|
|
41659
41679
|
for (const member of USER_POOL_ECHO_MEMBERS) if (pool[member] !== void 0) Object.assign(input, { [member]: pool[member] });
|
|
41680
|
+
if (opts.withoutUnusedAccountValidityDays === true && input.AdminCreateUserConfig) {
|
|
41681
|
+
const { UnusedAccountValidityDays: _dropped, ...rest } = input.AdminCreateUserConfig;
|
|
41682
|
+
input.AdminCreateUserConfig = rest;
|
|
41683
|
+
}
|
|
41660
41684
|
const acr = customAcrLevels(pool.AcrConfiguration);
|
|
41661
41685
|
if (acr === void 0) delete input.AcrConfiguration;
|
|
41662
41686
|
else input.AcrConfiguration = acr;
|
|
@@ -41685,6 +41709,12 @@ function reportKind(record) {
|
|
|
41685
41709
|
function echoesDeveloperEmail(pool) {
|
|
41686
41710
|
return pool.EmailConfiguration?.EmailSendingAccount === "DEVELOPER";
|
|
41687
41711
|
}
|
|
41712
|
+
function echoesUnusedAccountValidityDays(pool) {
|
|
41713
|
+
return pool.AdminCreateUserConfig?.UnusedAccountValidityDays !== void 0;
|
|
41714
|
+
}
|
|
41715
|
+
function isUnusedAccountValidityRefusal(error) {
|
|
41716
|
+
return isRefusedEcho(error) && error instanceof Error && error.message.includes("UnusedAccountValidityDays");
|
|
41717
|
+
}
|
|
41688
41718
|
function echoesCustomerManagedKey(pool) {
|
|
41689
41719
|
return pool.KeyConfiguration?.KeyType === "CUSTOMER_MANAGED_KEY";
|
|
41690
41720
|
}
|
|
@@ -42307,16 +42337,31 @@ async function deleteOnce$1(logicalId, physicalId, resourceType, context, flip)
|
|
|
42307
42337
|
}
|
|
42308
42338
|
async function sendEchoedDeletionProtection(physicalId, pool, value, opts = {}) {
|
|
42309
42339
|
const mask = maskerOrIdentity(opts.mask);
|
|
42340
|
+
let withoutUnusedAccountValidityDays = false;
|
|
42341
|
+
const echo = async (withoutDeveloperEmail) => {
|
|
42342
|
+
const build = () => new UpdateUserPoolCommand(userPoolDeletionProtectionUpdate(physicalId, pool, value, {
|
|
42343
|
+
withoutDeveloperEmail,
|
|
42344
|
+
withoutUnusedAccountValidityDays
|
|
42345
|
+
}));
|
|
42346
|
+
try {
|
|
42347
|
+
await this.getClient().send(build());
|
|
42348
|
+
} catch (error) {
|
|
42349
|
+
if (withoutUnusedAccountValidityDays || !echoesUnusedAccountValidityDays(pool) || !isUnusedAccountValidityRefusal(error)) throw error;
|
|
42350
|
+
this.logger.debug(safeMsg`UpdateUserPool refused the deprecated UnusedAccountValidityDays of ${mask(physicalId)}; ` + safeMsg`re-sending without it (the pool's PasswordPolicy holds the value)`);
|
|
42351
|
+
withoutUnusedAccountValidityDays = true;
|
|
42352
|
+
await this.getClient().send(build());
|
|
42353
|
+
}
|
|
42354
|
+
};
|
|
42310
42355
|
try {
|
|
42311
|
-
await
|
|
42356
|
+
await echo(false);
|
|
42312
42357
|
return "echoed";
|
|
42313
42358
|
} catch (echoError) {
|
|
42314
42359
|
if (!echoesDeveloperEmail(pool) || !isRefusedEcho(echoError)) throw echoError;
|
|
42315
42360
|
if (opts.emailFallback === false) throw echoError;
|
|
42316
42361
|
const resetClause = value === "ACTIVE" ? EMAIL_RESET_CLAUSE : EMAIL_RESET_BEFORE_DELETE_CLAUSE;
|
|
42317
|
-
this.logger.debug(safeMsg`UpdateUserPool refused the SES EmailConfiguration of ${physicalId}: ${mask(describeAwsFailure(echoError).summary)}`);
|
|
42362
|
+
this.logger.debug(safeMsg`UpdateUserPool refused the SES EmailConfiguration of ${mask(physicalId)}: ${mask(describeAwsFailure(echoError).summary)}`);
|
|
42318
42363
|
try {
|
|
42319
|
-
await
|
|
42364
|
+
await echo(true);
|
|
42320
42365
|
} catch (resendError) {
|
|
42321
42366
|
if (typeof resendError === "object" && resendError !== null) sentWithoutEmail.add(resendError);
|
|
42322
42367
|
if (isAmbiguousWriteFailure(resendError) && (value === "ACTIVE" || isTransientCognitoFailure(resendError))) this.logger.warn(safeMsg`Cognito User Pool ${physicalId}: UpdateUserPool refused the write carrying the ` + safeMsg`pool's SES EmailConfiguration (${mask(describeAwsFailure(echoError).summary)}), and the ` + safeMsg`write re-sent without it answered ${mask(describeAwsFailure(resendError).summary)}. If ` + safeMsg`that write landed, the pool's email configuration was ${resetClause}`);
|
|
@@ -64319,4 +64364,4 @@ var ACMCertificateProvider = class {
|
|
|
64319
64364
|
};
|
|
64320
64365
|
|
|
64321
64366
|
export { ACMCertificateProvider, ASGProvider, AgentCoreBrowserProvider, AgentCoreCodeInterpreterProvider, AgentCoreEvaluatorProvider, AgentCoreRuntimeProvider, ApiGatewayProvider, ApiGatewayV2Provider, AppConfigEnvironmentProvider, AppSyncProvider, BudgetsBudgetProvider, CloudFrontDistributionProvider, CloudFrontOACProvider, CloudFrontOAIProvider, CloudTrailProvider, CloudWatchAlarmProvider, CloudWatchAnomalyDetectorProvider, CodeBuildProvider, CodeCommitRepositoryProvider, CognitoUserPoolProvider, DLMLifecyclePolicyProvider, DocDBProvider, DocDBSubnetGroupProvider, DynamoDBGlobalTableProvider, DynamoDBTableProvider, EC2Provider, ECRProvider, ECSProvider, EFSProvider, ELBv2Provider, EMRClusterProvider, EMRInstanceFleetConfigProvider, EMRInstanceGroupConfigProvider, ElastiCacheProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider };
|
|
64322
|
-
//# sourceMappingURL=provider-classes-
|
|
64367
|
+
//# sourceMappingURL=provider-classes-CxAMhRwb.js.map
|