@cdkd/cli 0.350.4 → 0.351.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.
- package/dist/{ambient-client-defaults-CepgBr_y.js → ambient-client-defaults-BdOY70NL.js} +3 -3
- package/dist/{ambient-client-defaults-CepgBr_y.js.map → ambient-client-defaults-BdOY70NL.js.map} +1 -1
- package/dist/{asg-provider-26AfIhcd.js → asg-provider-BhktjcGM.js} +6 -6
- package/dist/{asg-provider-26AfIhcd.js.map → asg-provider-BhktjcGM.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-2Kfh-v8P.js → custom-resource-runtime-BkEa9HAa.js} +6 -6
- package/dist/{custom-resource-runtime-2Kfh-v8P.js.map → custom-resource-runtime-BkEa9HAa.js.map} +1 -1
- package/dist/db-associated-roles-DZ1mRuUA.js +74 -0
- package/dist/db-associated-roles-DZ1mRuUA.js.map +1 -0
- package/dist/delete-started-ByP_GmQ7.js +887 -0
- package/dist/delete-started-ByP_GmQ7.js.map +1 -0
- package/dist/{deploy-engine-DLmPF7r5.js → deploy-engine-BZNCiQ-B.js} +289 -91
- package/dist/deploy-engine-BZNCiQ-B.js.map +1 -0
- package/dist/{diff-calculator-DYUmMeew.js → diff-calculator-vaWjL6sQ.js} +12 -12
- package/dist/{diff-calculator-DYUmMeew.js.map → diff-calculator-vaWjL6sQ.js.map} +1 -1
- package/dist/{ec2-termination-protection-Di3eM8PN.js → ec2-termination-protection-DpNlPDar.js} +6 -6
- package/dist/{ec2-termination-protection-Di3eM8PN.js.map → ec2-termination-protection-DpNlPDar.js.map} +1 -1
- package/dist/{ecr-uri-6HdJfJPR.js → ecr-uri-Cd_x_ldh.js} +2 -2
- package/dist/{ecr-uri-6HdJfJPR.js.map → ecr-uri-Cd_x_ldh.js.map} +1 -1
- package/dist/{expected-bucket-owner-Drp-CSQY.js → expected-bucket-owner-Ba9LshiP.js} +2 -2
- package/dist/{expected-bucket-owner-Drp-CSQY.js.map → expected-bucket-owner-Ba9LshiP.js.map} +1 -1
- package/dist/{iam-role-provider-B5c4V2kT.js → iam-role-provider-CL-dMrn4.js} +7 -7
- package/dist/{iam-role-provider-B5c4V2kT.js.map → iam-role-provider-CL-dMrn4.js.map} +1 -1
- package/dist/{image-plan-CYouJkYM.js → image-plan-C0B05bHS.js} +8 -8
- package/dist/{image-plan-CYouJkYM.js.map → image-plan-C0B05bHS.js.map} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-6lyGJVGE.js → logger-DpAGzSvV.js} +2 -2
- package/dist/{logger-6lyGJVGE.js.map → logger-DpAGzSvV.js.map} +1 -1
- package/dist/{neptune-provider-Dhody0jz.js → neptune-provider-CJuYc8IB.js} +7 -7
- package/dist/{neptune-provider-Dhody0jz.js.map → neptune-provider-CJuYc8IB.js.map} +1 -1
- package/dist/{program-BMBei2v9.js → program-CUCE3lAz.js} +121 -22
- package/dist/program-CUCE3lAz.js.map +1 -0
- package/dist/{provider-classes-B3qqzXp-.js → provider-classes-YUbciPtV.js} +199 -63
- package/dist/provider-classes-YUbciPtV.js.map +1 -0
- package/dist/{rds-provider-CXjWWFKT.js → rds-provider-CbmVLapS.js} +20 -691
- package/dist/rds-provider-CbmVLapS.js.map +1 -0
- package/dist/{read-replica-iA8yd-HO.js → read-replica-BQ5dRRmm.js} +3 -3
- package/dist/{read-replica-iA8yd-HO.js.map → read-replica-BQ5dRRmm.js.map} +1 -1
- package/dist/{replacement-rules-B4fLD_Ru.js → replacement-rules-DZphESoc.js} +60 -7
- package/dist/replacement-rules-DZphESoc.js.map +1 -0
- package/dist/{resource-deadline-BcEyGRdL.js → resource-deadline-_gEj2hxY.js} +45 -5
- package/dist/resource-deadline-_gEj2hxY.js.map +1 -0
- package/dist/{run-cli-Dp938GHN.js → run-cli-bzXhjxpe.js} +2 -2
- package/dist/{run-cli-Dp938GHN.js.map → run-cli-bzXhjxpe.js.map} +1 -1
- package/dist/{update-removal-1ZPAMzvz.js → update-removal-DOUUID3B.js} +4 -4
- package/dist/{update-removal-1ZPAMzvz.js.map → update-removal-DOUUID3B.js.map} +1 -1
- package/dist/{version-D_7vFUjp.js → version-DTKcNNDa.js} +2 -2
- package/dist/{version-D_7vFUjp.js.map → version-DTKcNNDa.js.map} +1 -1
- package/package.json +2 -2
- package/dist/db-instance-modify-retry-BoKzNMfz.js +0 -116
- package/dist/db-instance-modify-retry-BoKzNMfz.js.map +0 -1
- package/dist/delete-started-Bq_G9e4j.js +0 -192
- package/dist/delete-started-Bq_G9e4j.js.map +0 -1
- package/dist/deploy-engine-DLmPF7r5.js.map +0 -1
- package/dist/program-BMBei2v9.js.map +0 -1
- package/dist/provider-classes-B3qqzXp-.js.map +0 -1
- package/dist/rds-provider-CXjWWFKT.js.map +0 -1
- package/dist/replacement-rules-B4fLD_Ru.js.map +0 -1
- package/dist/resource-deadline-BcEyGRdL.js.map +0 -1
|
@@ -1,21 +1,20 @@
|
|
|
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-CL-dMrn4.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-DpAGzSvV.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, z as isTransientServerError } from "./ambient-client-defaults-
|
|
5
|
-
import { $ as userPoolProtectionSite, A as replayedSendWindow, At as packCompositeId, B as refusalTypeShown, C as AmbiguousCreateLatch, Ct as isInterruptedWaitError, D as createAttemptKey, Dt as compositeIdSeparatorRefusal, E as ambiguousAttemptLead, Et as compositeIdFormatMessage, F as isPlainImportJson, Ft as createMaskedRetryLogger, H as resolveExplicitPhysicalId, Ht as clearCreatedBeforeFailure, I as isPlainImportValue, It as isSecretDerivedValue, J as deleteWithProtectionCompensation, Jt as markAuxiliaryFailure, K as markNotGone, Kt as isAuxiliaryFailure, L as isQuotableImportValue, Lt as maskDeep, M as withoutServerErrorRetries, Mt as segmentAfterAnchor, N as VALUE_NOT_SHOWN, Nt as stateOrphanRecordRemedy, O as isInsideWindow, Ot as compositeIdSkipResult, P as importRemedyCommand, Pt as createMaskedLogSinks, R as normalizeAwsTagsToCfn, Rt as maskerOrIdentity, S as AMBIGUOUS_LATCH_TTL_MS, T as RecentIdSet, Tt as canonicalizeRoute53QueryName, U as RESOURCE_NOT_FOUND, V as remedyLogicalId, W as assertRegionMatch, X as observeThenDisableProtection, Xt as markSupersedesEarlierCreate, Y as logGroupProtectionSite, Yt as markCreatedBeforeFailure, Z as rdsFamilyProtectionSite, _ as onlySecretDerived, _t as pasteableAwsCommand, a as withRemovalDefaults, b as recordedPrincipalsRepair, ct as protectionFlipKey, dt as ElapsedBudgetRegistry, et as PROTECTION_FLIP_RETRY_WAIT_MS, f as retractCreatedResource, g as holdsSecretDerivedEntry, gt as isAwsCliLiteral, h as SECRET_DERIVED_READ_LIVE, hn as withPasteableAwsProfile, ht as WITHHELD_AWS_COMMAND, i as removedTemplateKeys, it as isTerminalDbWaitStatus, j as setBounded, k as replayFollowedAmbiguousAttempt, kt as logicalIdShown, ln as injectiveKey, mt as UNNAMEABLE_ID_CLAUSE, ot as ProtectionFlipRegistry, rt as isProceedDbStatus, st as isTerminalDeleteFailure, t as clearOnUpdateRemoval, tt as deleteAfterProtectionFlipWithFinalSnapshot, u as reportCreatedResource, un as injectiveKeyPrefix, ut as ElapsedBudget, v as readPrincipalLists, vt as protectedReplacementAdvice, w as CREATION_DATE_SKEW_MARGIN_MS, wt as startInterruptWatch, yt as renderDisableCommand, z as quotedRemedyLogicalId, zt as withDerivedNameMasks } from "./update-removal-
|
|
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 {
|
|
8
|
-
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-
|
|
9
|
-
import { $ as isTtlAlreadyDisabled, $l as resolveAssemblyPath, $t as lookupEachName, Ar as REDACTED_DELETE_ADDRESS_SKIP_REASON, At as maskedLogger, C as isAbsoluteAssetPath, Ct as deleteBudgetKey, Dc as withheldAccountClause, Dt as INDEX_SETTLE_POLL_INTERVAL_MS, Ec as accountArgs, Et as DELETE_INDEX_WAIT_PROCEED_NOTE, Fc as findSdkUnwiredProperties, Ft as hasCdkAutoDeleteTag, G as declaredStreamTagsMember, H as STREAM_POLICY_KEY, It as isTruthyCfnBoolean, J as streamDeclaresPolicy, Ja as maskedSecretSegment, Jt as getPriorAttempts, K as planStreamMemberOps, Ka as isSettledInstanceState, Ki as secretNamedAttributeNamesOf, Ma as resolvedResourceTimeoutMs, Mr as redactedDeleteAddressFields, Mt as waitForIndexesSettled, No as outputReferenceProvenanceOf, Nr as redactedDeleteAddressSkip, Nt as ECR_AUTO_DELETE_IMAGES_TAG, Ot as TABLE_INDEX_NOUN, Pt as S3_AUTO_DELETE_OBJECTS_TAG, Q as streamTagsMatchDeclared, Ql as renderAssemblyPathEscape, Qt as isAccessDeniedError, Ra as deleteSkipReason, Rc as withoutSdkUnwiredProperties, S as findNestedTemplateTreeDefect, St as compensateRemovedDeletionProtection, T as renderNestedTemplateTreeDefect, Tt as resolveDynamoDbDeleteBudgetMs, U as STREAM_TAGS_KEY, V as DynamoDBGlobalTableProvider, W as declaredStreamPolicyMember, Wr as getCurrentProducerRegions, X as streamMemberRefusals, Xl as displayAssemblyPath, Y as streamDeclaresTags, Yl as describeFileReadFailure, Yt as markRefusedBeforeApplying, Z as streamPolicyMatchesDeclared, Zt as chunks, _o as s3BucketDualStackDomainName, _t as stripIndexContributorInsights, al as stringifyValue, as as WARM_THROUGHPUT_MEMBERS, at as readbackVectorIndexes, bt as DYNAMODB_DELETE_POLL_COST_MS, cs as toCfnInteger, ct as vectorIndexesShapeDetail, dc as refuseMalformedNestedChildOutputs, dr as earliestDefined, dt as indexDeclaresContributorInsights, en as withApiLimit, et as isTtlRateLimited, ft as planContributorInsightsOp, gi as getStackRecords, go as s3BucketDomainName, gs as passedParameterClassesOf, gt as reverseMapTableContributorInsights, hn as withNestedStackContext, ho as s3BucketArn, hr as acquireIdempotencyToken, ht as reverseMapIndexContributorInsights, it as planVectorIndexUpdates, ja as waitForGoneAfterDelete, jr as isRedactedRecordedValue, jt as relayedIndexBusyDelete, ka as waitForLambdaFunctionActive, ko as parseWebACLArn, kt as deleteTableWithIndexBusyRetry, ls as toFiniteNumber, lt as CONTRIBUTOR_INSIGHTS_KEY, mi as awaitInFlightSibling, ml as rewriteTemplateAssetReferences, mn as getCurrentNestedStackContext, mt as readContributorInsightsSpec, nt as readTtlSpec, os as coerceWarmThroughput$1, ot as vectorIndexesForCreate, pr as reserveStackCreateToken, pt as planIndexContributorInsightsOps, q as reverseMapStreamPolicy, qa as APPSYNC_APIKEY_ARN_RESOURCE_PATH, rt as sendTtlWaitingOutRateLimit, sn as getNestedRevertRun, ss as isWarmThroughputDecrease, st as vectorIndexesSettled, t as DeployEngine, tt as planTimeToLive, un as revertNestedChildFromJournal, ut as contributorInsightsRefusals, vi as replacedDeleteFailureVerdict, vo as s3BucketRegionalDomainName, vt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, w as listNestedTemplateRows, wt as resolveDynamoDbDeleteBudgetClock, xc as refuseMalformedResourcesForDestroy, xt as beginDeleteWait, ya as getCurrentResourceSecrets, yo as s3BucketWebsiteUrl, yt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, za as withIndeterminateGuard, zl as decodeListingKey, zo as getAccountInfo } from "./deploy-engine-
|
|
10
|
-
import { _ as
|
|
11
|
-
import { O as timePhase, a as reDisableInstanceApiTermination, c as unchangedBehindSecretReference, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as onlySecretReferencesDiffer, x as withRetry } 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, z as isTransientServerError } from "./ambient-client-defaults-BdOY70NL.js";
|
|
5
|
+
import { $ as userPoolProtectionSite, A as replayedSendWindow, At as packCompositeId, B as refusalTypeShown, C as AmbiguousCreateLatch, Ct as isInterruptedWaitError, D as createAttemptKey, Dt as compositeIdSeparatorRefusal, E as ambiguousAttemptLead, Et as compositeIdFormatMessage, F as isPlainImportJson, Ft as createMaskedRetryLogger, H as resolveExplicitPhysicalId, Ht as clearCreatedBeforeFailure, I as isPlainImportValue, It as isSecretDerivedValue, J as deleteWithProtectionCompensation, Jt as markAuxiliaryFailure, K as markNotGone, Kt as isAuxiliaryFailure, L as isQuotableImportValue, Lt as maskDeep, M as withoutServerErrorRetries, Mt as segmentAfterAnchor, N as VALUE_NOT_SHOWN, Nt as stateOrphanRecordRemedy, O as isInsideWindow, Ot as compositeIdSkipResult, P as importRemedyCommand, Pt as createMaskedLogSinks, R as normalizeAwsTagsToCfn, Rt as maskerOrIdentity, S as AMBIGUOUS_LATCH_TTL_MS, T as RecentIdSet, Tt as canonicalizeRoute53QueryName, U as RESOURCE_NOT_FOUND, V as remedyLogicalId, W as assertRegionMatch, X as observeThenDisableProtection, Xt as markSupersedesEarlierCreate, Y as logGroupProtectionSite, Yt as markCreatedBeforeFailure, Z as rdsFamilyProtectionSite, _ as onlySecretDerived, _t as pasteableAwsCommand, a as withRemovalDefaults, b as recordedPrincipalsRepair, ct as protectionFlipKey, dt as ElapsedBudgetRegistry, et as PROTECTION_FLIP_RETRY_WAIT_MS, f as retractCreatedResource, g as holdsSecretDerivedEntry, gt as isAwsCliLiteral, h as SECRET_DERIVED_READ_LIVE, hn as withPasteableAwsProfile, ht as WITHHELD_AWS_COMMAND, i as removedTemplateKeys, it as isTerminalDbWaitStatus, j as setBounded, k as replayFollowedAmbiguousAttempt, kt as logicalIdShown, ln as injectiveKey, mt as UNNAMEABLE_ID_CLAUSE, ot as ProtectionFlipRegistry, rt as isProceedDbStatus, st as isTerminalDeleteFailure, t as clearOnUpdateRemoval, tt as deleteAfterProtectionFlipWithFinalSnapshot, u as reportCreatedResource, un as injectiveKeyPrefix, ut as ElapsedBudget, v as readPrincipalLists, vt as protectedReplacementAdvice, w as CREATION_DATE_SKEW_MARGIN_MS, wt as startInterruptWatch, yt as renderDisableCommand, z as quotedRemedyLogicalId, zt as withDerivedNameMasks } from "./update-removal-DOUUID3B.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-DTKcNNDa.js";
|
|
7
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-ByP_GmQ7.js";
|
|
8
|
+
import { a as resolveSecretDerivedPrincipals, i as isResolvableSecretPrincipalList, n as runDestroyForStack, o as canonicalizeIpProtocolValue, r as holdsUnprovenSecretPrincipalToken, t as canonicalizeIpv4Cidr } from "./program-CUCE3lAz.js";
|
|
9
|
+
import { $ as isTtlAlreadyDisabled, $l as resolveAssemblyPath, $t as lookupEachName, Ar as REDACTED_DELETE_ADDRESS_SKIP_REASON, At as maskedLogger, C as isAbsoluteAssetPath, Ct as deleteBudgetKey, Dc as withheldAccountClause, Dt as INDEX_SETTLE_POLL_INTERVAL_MS, Ec as accountArgs, Et as DELETE_INDEX_WAIT_PROCEED_NOTE, Fc as findSdkUnwiredProperties, Ft as hasCdkAutoDeleteTag, G as declaredStreamTagsMember, H as STREAM_POLICY_KEY, It as isTruthyCfnBoolean, J as streamDeclaresPolicy, Ja as maskedSecretSegment, Jt as getPriorAttempts, K as planStreamMemberOps, Ka as isSettledInstanceState, Ki as secretNamedAttributeNamesOf, Ma as resolvedResourceTimeoutMs, Mr as redactedDeleteAddressFields, Mt as waitForIndexesSettled, No as outputReferenceProvenanceOf, Nr as redactedDeleteAddressSkip, Nt as ECR_AUTO_DELETE_IMAGES_TAG, Ot as TABLE_INDEX_NOUN, Pt as S3_AUTO_DELETE_OBJECTS_TAG, Q as streamTagsMatchDeclared, Ql as renderAssemblyPathEscape, Qt as isAccessDeniedError, Ra as deleteSkipReason, Rc as withoutSdkUnwiredProperties, S as findNestedTemplateTreeDefect, St as compensateRemovedDeletionProtection, T as renderNestedTemplateTreeDefect, Tt as resolveDynamoDbDeleteBudgetMs, U as STREAM_TAGS_KEY, V as DynamoDBGlobalTableProvider, W as declaredStreamPolicyMember, Wr as getCurrentProducerRegions, X as streamMemberRefusals, Xl as displayAssemblyPath, Y as streamDeclaresTags, Yl as describeFileReadFailure, Yt as markRefusedBeforeApplying, Z as streamPolicyMatchesDeclared, Zt as chunks, _o as s3BucketDualStackDomainName, _t as stripIndexContributorInsights, al as stringifyValue, as as WARM_THROUGHPUT_MEMBERS, at as readbackVectorIndexes, bt as DYNAMODB_DELETE_POLL_COST_MS, cs as toCfnInteger, ct as vectorIndexesShapeDetail, dc as refuseMalformedNestedChildOutputs, dr as earliestDefined, dt as indexDeclaresContributorInsights, en as withApiLimit, et as isTtlRateLimited, ft as planContributorInsightsOp, gi as getStackRecords, go as s3BucketDomainName, gs as passedParameterClassesOf, gt as reverseMapTableContributorInsights, hn as withNestedStackContext, ho as s3BucketArn, hr as acquireIdempotencyToken, ht as reverseMapIndexContributorInsights, it as planVectorIndexUpdates, ja as waitForGoneAfterDelete, jr as isRedactedRecordedValue, jt as relayedIndexBusyDelete, ka as waitForLambdaFunctionActive, ko as parseWebACLArn, kt as deleteTableWithIndexBusyRetry, ls as toFiniteNumber, lt as CONTRIBUTOR_INSIGHTS_KEY, mi as awaitInFlightSibling, ml as rewriteTemplateAssetReferences, mn as getCurrentNestedStackContext, mt as readContributorInsightsSpec, nt as readTtlSpec, os as coerceWarmThroughput$1, ot as vectorIndexesForCreate, pr as reserveStackCreateToken, pt as planIndexContributorInsightsOps, q as reverseMapStreamPolicy, qa as APPSYNC_APIKEY_ARN_RESOURCE_PATH, rt as sendTtlWaitingOutRateLimit, sn as getNestedRevertRun, ss as isWarmThroughputDecrease, st as vectorIndexesSettled, t as DeployEngine, tt as planTimeToLive, un as revertNestedChildFromJournal, ut as contributorInsightsRefusals, vi as replacedDeleteFailureVerdict, vo as s3BucketRegionalDomainName, vt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, w as listNestedTemplateRows, wt as resolveDynamoDbDeleteBudgetClock, xc as refuseMalformedResourcesForDestroy, xt as beginDeleteWait, ya as getCurrentResourceSecrets, yo as s3BucketWebsiteUrl, yt as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, za as withIndeterminateGuard, zl as decodeListingKey, zo as getAccountInfo } from "./deploy-engine-BZNCiQ-B.js";
|
|
10
|
+
import { _ as isModifyNotAvailableRefusal, b as stringifyIfAssigned, c as refuseRestoreFromItself, d as DBPROXY_TAG_OPTIONS, f as planTagDiff, g as tagPlanWarning, h as tagMapAsList, m as refuseMalformedDesiredTags, n as enclosingDeadlineRemainingMs, p as readTagList, t as enclosingDeadlineExpired, u as DBPROXY_TAGS_WHAT, v as modifyDbInstanceWhenAvailable, x as isUsableAttemptedName, y as definedAttributes } from "./resource-deadline-_gEj2hxY.js";
|
|
11
|
+
import { O as timePhase, a as reDisableInstanceApiTermination, c as unchangedBehindSecretReference, i as observeThenDisableInstanceApiTermination, n as ec2InstanceProtectionSite, o as reEnableInstanceApiTermination, r as isTerminationProtectionPropagationError, s as onlySecretReferencesDiffer, x as withRetry } from "./ec2-termination-protection-DpNlPDar.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 { $ as snapshotPassProvenance, At as withoutPhysicalNameCopies, C as passedNoEchoParametersOf, I as markSameGenerationBag, Nt as dynamicReferenceTokens, W as redactForState, Z as recordReferenceProvenanceEntry, a as emrClusterInstancesReplaced,
|
|
15
|
-
import { RDSProvider } from "./rds-provider-
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { ASGProvider } from "./asg-provider-26AfIhcd.js";
|
|
14
|
+
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-DZphESoc.js";
|
|
15
|
+
import { RDSProvider } from "./rds-provider-CbmVLapS.js";
|
|
16
|
+
import { NeptuneProvider } from "./neptune-provider-CJuYc8IB.js";
|
|
17
|
+
import { ASGProvider } from "./asg-provider-BhktjcGM.js";
|
|
19
18
|
import { createHash, randomUUID } from "node:crypto";
|
|
20
19
|
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
20
|
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";
|
|
@@ -630,14 +629,35 @@ var IAMPolicyProvider = class {
|
|
|
630
629
|
}
|
|
631
630
|
};
|
|
632
631
|
|
|
632
|
+
// src/provisioning/attribute-timestamp.ts
|
|
633
|
+
function isoTimestampAttribute(value) {
|
|
634
|
+
if (!(value instanceof Date) || Number.isNaN(value.getTime())) return void 0;
|
|
635
|
+
return value.toISOString().replace(/\.000Z$/, "Z");
|
|
636
|
+
}
|
|
637
|
+
|
|
633
638
|
// src/provisioning/providers/iam-managed-policy/shared.ts
|
|
634
639
|
function managedPolicyAttributes(policyArn, policy) {
|
|
635
640
|
return definedAttributes({
|
|
636
641
|
PolicyArn: policyArn,
|
|
637
642
|
PolicyId: policyIdentityToken(policy?.PolicyId),
|
|
638
|
-
DefaultVersionId: typeof policy?.DefaultVersionId === "string" && policy.DefaultVersionId !== "" ? policy.DefaultVersionId : void 0
|
|
643
|
+
DefaultVersionId: typeof policy?.DefaultVersionId === "string" && policy.DefaultVersionId !== "" ? policy.DefaultVersionId : void 0,
|
|
644
|
+
AttachmentCount: countOrUndefined(policy?.AttachmentCount),
|
|
645
|
+
PermissionsBoundaryUsageCount: countOrUndefined(policy?.PermissionsBoundaryUsageCount),
|
|
646
|
+
IsAttachable: typeof policy?.IsAttachable === "boolean" ? policy.IsAttachable : void 0,
|
|
647
|
+
CreateDate: isoTimestampAttribute(policy?.CreateDate),
|
|
648
|
+
UpdateDate: isoTimestampAttribute(policy?.UpdateDate)
|
|
639
649
|
});
|
|
640
650
|
}
|
|
651
|
+
const MANAGED_POLICY_READ_BACK_KEYS = [
|
|
652
|
+
"PolicyId",
|
|
653
|
+
"DefaultVersionId",
|
|
654
|
+
"AttachmentCount",
|
|
655
|
+
"PermissionsBoundaryUsageCount",
|
|
656
|
+
"IsAttachable",
|
|
657
|
+
"CreateDate",
|
|
658
|
+
"UpdateDate"
|
|
659
|
+
];
|
|
660
|
+
const countOrUndefined = (value) => typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
641
661
|
const principalsOf = (bag) => readPrincipalLists({
|
|
642
662
|
Groups: bag["Groups"],
|
|
643
663
|
Roles: bag["Roles"],
|
|
@@ -647,6 +667,19 @@ const PRINCIPAL_NAMES = "group / role / user names";
|
|
|
647
667
|
function policyIdentityToken(id) {
|
|
648
668
|
return typeof id === "string" && id !== "" ? id : void 0;
|
|
649
669
|
}
|
|
670
|
+
async function policyAfterWiring(getPolicy, policyArn, fallback, stale, debug) {
|
|
671
|
+
try {
|
|
672
|
+
const live = await getPolicy(policyArn);
|
|
673
|
+
if (live?.Arn === policyArn) return live;
|
|
674
|
+
debug("GetPolicy answered for another managed policy than the one asked for");
|
|
675
|
+
} catch (error) {
|
|
676
|
+
debug(`Could not re-read the managed policy after its attachments: ${describeAwsFailure(error).detail}`);
|
|
677
|
+
}
|
|
678
|
+
if (fallback === void 0) return void 0;
|
|
679
|
+
const kept = { ...fallback };
|
|
680
|
+
for (const key of stale) kept[key] = void 0;
|
|
681
|
+
return kept;
|
|
682
|
+
}
|
|
650
683
|
|
|
651
684
|
// src/provisioning/providers/iam-managed-policy/create.ts
|
|
652
685
|
async function create$40(logicalId, resourceType, properties, context) {
|
|
@@ -718,9 +751,14 @@ async function create$40(logicalId, resourceType, properties, context) {
|
|
|
718
751
|
}
|
|
719
752
|
throw markAuxiliaryFailure(innerError, logicalId);
|
|
720
753
|
}
|
|
754
|
+
const readBack = [
|
|
755
|
+
principals.lists.Groups,
|
|
756
|
+
principals.lists.Roles,
|
|
757
|
+
principals.lists.Users
|
|
758
|
+
].some((names) => (names?.length ?? 0) > 0) ? await policyAfterWiring(async (arn) => (await this.iamClient.send(new GetPolicyCommand({ PolicyArn: arn }))).Policy, policyArn, policy, ["AttachmentCount"], log.debug) : policy;
|
|
721
759
|
return {
|
|
722
760
|
physicalId: policyArn,
|
|
723
|
-
attributes: managedPolicyAttributes(policyArn,
|
|
761
|
+
attributes: managedPolicyAttributes(policyArn, readBack)
|
|
724
762
|
};
|
|
725
763
|
} catch (error) {
|
|
726
764
|
const markLeftBehind = (e) => leftBehindArn !== void 0 ? markCreatedBeforeFailure(e, logicalId, resourceType, leftBehindArn, createdPolicyIdentity) : e;
|
|
@@ -850,13 +888,31 @@ async function update$41(logicalId, physicalId, resourceType, properties, previo
|
|
|
850
888
|
const value = recorded?.[key];
|
|
851
889
|
return typeof value === "string" && value !== "" && !holdsSecretDerivedEntry(value) ? value : void 0;
|
|
852
890
|
};
|
|
891
|
+
const recordedNumber = (key) => {
|
|
892
|
+
const value = recorded?.[key];
|
|
893
|
+
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
894
|
+
};
|
|
895
|
+
const recordedDate = (key) => {
|
|
896
|
+
const value = recordedString(key);
|
|
897
|
+
if (value === void 0 || !ISO_TIMESTAMP.test(value)) return void 0;
|
|
898
|
+
return new Date(value);
|
|
899
|
+
};
|
|
900
|
+
const carried = {
|
|
901
|
+
PolicyId: recordedString("PolicyId"),
|
|
902
|
+
DefaultVersionId: createdVersionId ?? recordedString("DefaultVersionId"),
|
|
903
|
+
AttachmentCount: recordedNumber("AttachmentCount"),
|
|
904
|
+
PermissionsBoundaryUsageCount: recordedNumber("PermissionsBoundaryUsageCount"),
|
|
905
|
+
IsAttachable: typeof recorded?.["IsAttachable"] === "boolean" ? recorded["IsAttachable"] : void 0,
|
|
906
|
+
CreateDate: recordedDate("CreateDate"),
|
|
907
|
+
UpdateDate: recordedDate("UpdateDate")
|
|
908
|
+
};
|
|
909
|
+
const versionMoved = createdVersionId !== void 0;
|
|
910
|
+
const attachmentsMoved = principalListsDiffer(newPrincipals.lists, oldLists);
|
|
911
|
+
const readBack = versionMoved || attachmentsMoved || recorded !== void 0 && MANAGED_POLICY_READ_BACK_KEYS.some((key) => carried[key] === void 0) ? await policyAfterWiring(async (arn) => (await this.iamClient.send(new GetPolicyCommand({ PolicyArn: arn }))).Policy, physicalId, carried, [...attachmentsMoved ? ["AttachmentCount"] : [], ...versionMoved ? ["UpdateDate"] : []], log.debug) : carried;
|
|
853
912
|
return {
|
|
854
913
|
physicalId,
|
|
855
914
|
wasReplaced: false,
|
|
856
|
-
attributes: managedPolicyAttributes(physicalId,
|
|
857
|
-
PolicyId: recordedString("PolicyId"),
|
|
858
|
-
DefaultVersionId: createdVersionId ?? recordedString("DefaultVersionId")
|
|
859
|
-
})
|
|
915
|
+
attributes: managedPolicyAttributes(physicalId, readBack)
|
|
860
916
|
};
|
|
861
917
|
} catch (error) {
|
|
862
918
|
const cause = error instanceof Error ? error : void 0;
|
|
@@ -877,6 +933,18 @@ function recordedNonRootPath(arn) {
|
|
|
877
933
|
const path = derivePolicyPathFromArn(arn);
|
|
878
934
|
return path === "/" ? void 0 : path;
|
|
879
935
|
}
|
|
936
|
+
const ISO_TIMESTAMP = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$/;
|
|
937
|
+
function principalListsDiffer(desired, previous) {
|
|
938
|
+
return [
|
|
939
|
+
"Groups",
|
|
940
|
+
"Roles",
|
|
941
|
+
"Users"
|
|
942
|
+
].some((kind) => {
|
|
943
|
+
const a = new Set(desired[kind] ?? []);
|
|
944
|
+
const b = new Set(previous[kind] ?? []);
|
|
945
|
+
return a.size !== b.size || [...a].some((name) => !b.has(name));
|
|
946
|
+
});
|
|
947
|
+
}
|
|
880
948
|
|
|
881
949
|
// src/provisioning/providers/iam-managed-policy/delete.ts
|
|
882
950
|
async function deleteImpl$39(logicalId, physicalId, resourceType, _properties, context) {
|
|
@@ -1052,7 +1120,7 @@ var IAMManagedPolicyProvider = class {
|
|
|
1052
1120
|
}
|
|
1053
1121
|
async getAttribute(physicalId, _resourceType, attributeName) {
|
|
1054
1122
|
if (attributeName === "PolicyArn") return physicalId;
|
|
1055
|
-
if (attributeName
|
|
1123
|
+
if (MANAGED_POLICY_READ_BACK_KEYS.includes(attributeName)) {
|
|
1056
1124
|
const resp = await this.iamClient.send(new GetPolicyCommand({ PolicyArn: physicalId }));
|
|
1057
1125
|
return managedPolicyAttributes(physicalId, resp.Policy)[attributeName];
|
|
1058
1126
|
}
|
|
@@ -30734,6 +30802,23 @@ function evaluatorIdFromArn(arnOrId) {
|
|
|
30734
30802
|
const idx = arnOrId.indexOf(":evaluator/");
|
|
30735
30803
|
return idx >= 0 ? arnOrId.slice(idx + 11) : arnOrId;
|
|
30736
30804
|
}
|
|
30805
|
+
function evaluatorAttributes(evaluatorArn, read) {
|
|
30806
|
+
return definedAttributes({
|
|
30807
|
+
EvaluatorArn: evaluatorArn,
|
|
30808
|
+
EvaluatorId: read.evaluatorId ?? evaluatorIdFromArn(evaluatorArn),
|
|
30809
|
+
Status: read.status,
|
|
30810
|
+
CreatedAt: read.createdAt?.toISOString(),
|
|
30811
|
+
UpdatedAt: read.updatedAt?.toISOString(),
|
|
30812
|
+
EvaluatorType: nonEmptyString(read.evaluatorType),
|
|
30813
|
+
Provider: nonEmptyString(read.provider)
|
|
30814
|
+
});
|
|
30815
|
+
}
|
|
30816
|
+
const nonEmptyString = (value) => typeof value === "string" && value !== "" ? value : void 0;
|
|
30817
|
+
function recordedDate(value) {
|
|
30818
|
+
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T[\d:.]+Z$/.test(value)) return void 0;
|
|
30819
|
+
const date = new Date(value);
|
|
30820
|
+
return Number.isNaN(date.getTime()) ? void 0 : date;
|
|
30821
|
+
}
|
|
30737
30822
|
function tagMapToCfnList(tags) {
|
|
30738
30823
|
return Object.entries(tags).map(([Key, Value]) => ({
|
|
30739
30824
|
Key,
|
|
@@ -30792,11 +30877,9 @@ var AgentCoreEvaluatorProvider = class {
|
|
|
30792
30877
|
this.logger.debug(`Created BedrockAgentCore Evaluator: ${evaluatorId} (${evaluatorArn})`);
|
|
30793
30878
|
return {
|
|
30794
30879
|
physicalId: evaluatorArn,
|
|
30795
|
-
attributes:
|
|
30796
|
-
|
|
30797
|
-
|
|
30798
|
-
Status: response.status,
|
|
30799
|
-
CreatedAt: response.createdAt?.toISOString()
|
|
30880
|
+
attributes: evaluatorAttributes(evaluatorArn, {
|
|
30881
|
+
...await this.readBackEvaluator(evaluatorId, maskerOrIdentity(context?.maskSecrets)) ?? response,
|
|
30882
|
+
evaluatorId
|
|
30800
30883
|
})
|
|
30801
30884
|
};
|
|
30802
30885
|
} catch (error) {
|
|
@@ -30818,15 +30901,22 @@ var AgentCoreEvaluatorProvider = class {
|
|
|
30818
30901
|
await this.syncTags(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"]);
|
|
30819
30902
|
const evaluatorArn = response.evaluatorArn ?? physicalId;
|
|
30820
30903
|
this.logger.debug(`Successfully updated BedrockAgentCore Evaluator ${logicalId}`);
|
|
30904
|
+
const recorded = context?.recordedAttributes;
|
|
30905
|
+
const carried = {
|
|
30906
|
+
...response,
|
|
30907
|
+
createdAt: recordedDate(recorded?.["CreatedAt"]),
|
|
30908
|
+
evaluatorType: nonEmptyString(recorded?.["EvaluatorType"]),
|
|
30909
|
+
provider: nonEmptyString(recorded?.["Provider"])
|
|
30910
|
+
};
|
|
30911
|
+
const configChanged = JSON.stringify(properties["EvaluatorConfig"]) !== JSON.stringify(previousProperties["EvaluatorConfig"]);
|
|
30821
30912
|
return {
|
|
30822
30913
|
physicalId: evaluatorArn,
|
|
30823
30914
|
wasReplaced: false,
|
|
30824
|
-
attributes:
|
|
30825
|
-
|
|
30826
|
-
|
|
30827
|
-
|
|
30828
|
-
|
|
30829
|
-
})
|
|
30915
|
+
attributes: evaluatorAttributes(evaluatorArn, configChanged || recorded !== void 0 && (carried.createdAt === void 0 || carried.evaluatorType === void 0) ? await this.readBackEvaluator(evaluatorIdFromArn(evaluatorArn), maskerOrIdentity(context?.maskSecrets)) ?? (configChanged ? {
|
|
30916
|
+
...carried,
|
|
30917
|
+
evaluatorType: void 0,
|
|
30918
|
+
provider: void 0
|
|
30919
|
+
} : carried) : carried)
|
|
30830
30920
|
};
|
|
30831
30921
|
} catch (error) {
|
|
30832
30922
|
const cause = error instanceof Error ? error : void 0;
|
|
@@ -30865,6 +30955,14 @@ var AgentCoreEvaluatorProvider = class {
|
|
|
30865
30955
|
throw error instanceof Error && error.name.includes("NotFound") ? markNotGone(thrown) : thrown;
|
|
30866
30956
|
}
|
|
30867
30957
|
}
|
|
30958
|
+
async readBackEvaluator(evaluatorId, mask) {
|
|
30959
|
+
try {
|
|
30960
|
+
return await this.client.send(new GetEvaluatorCommand({ evaluatorId }));
|
|
30961
|
+
} catch (error) {
|
|
30962
|
+
this.logger.debug(mask(safeMsg`Could not read the evaluator back after the operation: ${describeAwsFailure(error).detail}`));
|
|
30963
|
+
return;
|
|
30964
|
+
}
|
|
30965
|
+
}
|
|
30868
30966
|
async getAttribute(physicalId, _resourceType, attributeName) {
|
|
30869
30967
|
if (attributeName === "EvaluatorArn") return physicalId;
|
|
30870
30968
|
if (attributeName === "EvaluatorId") return evaluatorIdFromArn(physicalId);
|
|
@@ -30874,6 +30972,7 @@ var AgentCoreEvaluatorProvider = class {
|
|
|
30874
30972
|
if (attributeName === "CreatedAt") return response.createdAt?.toISOString();
|
|
30875
30973
|
return response.updatedAt?.toISOString();
|
|
30876
30974
|
}
|
|
30975
|
+
if (attributeName === "EvaluatorType" || attributeName === "Provider") return evaluatorAttributes(physicalId, await this.client.send(new GetEvaluatorCommand({ evaluatorId: evaluatorIdFromArn(physicalId) })))[attributeName];
|
|
30877
30976
|
throw new Error(`Unsupported attribute: ${attributeName} for AWS::BedrockAgentCore::Evaluator`);
|
|
30878
30977
|
}
|
|
30879
30978
|
async readCurrentState(physicalId, _logicalId, _resourceType) {
|
|
@@ -30911,11 +31010,9 @@ var AgentCoreEvaluatorProvider = class {
|
|
|
30911
31010
|
if (!evaluatorArn) return null;
|
|
30912
31011
|
return {
|
|
30913
31012
|
physicalId: evaluatorArn,
|
|
30914
|
-
attributes:
|
|
30915
|
-
|
|
30916
|
-
|
|
30917
|
-
Status: response.status,
|
|
30918
|
-
CreatedAt: response.createdAt?.toISOString()
|
|
31013
|
+
attributes: evaluatorAttributes(evaluatorArn, {
|
|
31014
|
+
...response,
|
|
31015
|
+
evaluatorId: response.evaluatorId ?? evaluatorIdFromArn(input.knownPhysicalId)
|
|
30919
31016
|
})
|
|
30920
31017
|
};
|
|
30921
31018
|
}
|
|
@@ -31718,9 +31815,19 @@ async function getClusterAttribute(physicalId, attributeName) {
|
|
|
31718
31815
|
default: return;
|
|
31719
31816
|
}
|
|
31720
31817
|
}
|
|
31818
|
+
function convertTrustedExecutionConfiguration(config, resourceType, logicalId) {
|
|
31819
|
+
if (config === void 0 || config === null) return void 0;
|
|
31820
|
+
if (typeof config !== "object" || Array.isArray(config)) throw new ProvisioningError(`ECS task definition ${logicalId}: TrustedExecutionConfiguration must be an object, got ${Array.isArray(config) ? "an array" : typeof config}`, resourceType, logicalId);
|
|
31821
|
+
const block = config;
|
|
31822
|
+
return {
|
|
31823
|
+
isolationMode: block["IsolationMode"],
|
|
31824
|
+
attestationPolicy: block["AttestationPolicy"]
|
|
31825
|
+
};
|
|
31826
|
+
}
|
|
31721
31827
|
async function createTaskDefinition(logicalId, resourceType, properties, log) {
|
|
31722
31828
|
log.debug(`Creating ECS task definition ${logicalId}`);
|
|
31723
31829
|
const desiredTags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId);
|
|
31830
|
+
const trustedExecutionConfiguration = convertTrustedExecutionConfiguration(properties["TrustedExecutionConfiguration"], resourceType, logicalId);
|
|
31724
31831
|
const family = properties["Family"] || generatedNameFor("AWS::ECS::TaskDefinition", logicalId);
|
|
31725
31832
|
try {
|
|
31726
31833
|
const orphanWindow = registerTaskDefinitionLatch.take(logicalId);
|
|
@@ -31745,7 +31852,8 @@ async function createTaskDefinition(logicalId, resourceType, properties, log) {
|
|
|
31745
31852
|
pidMode: properties["PidMode"],
|
|
31746
31853
|
ipcMode: properties["IpcMode"],
|
|
31747
31854
|
ephemeralStorage: this.convertEphemeralStorage(properties["EphemeralStorage"]),
|
|
31748
|
-
enableFaultInjection: properties["EnableFaultInjection"]
|
|
31855
|
+
enableFaultInjection: properties["EnableFaultInjection"],
|
|
31856
|
+
trustedExecutionConfiguration
|
|
31749
31857
|
}));
|
|
31750
31858
|
} catch (error) {
|
|
31751
31859
|
registerTaskDefinitionLatch.noteFailure(logicalId, error, attemptStartMs, orphanWindow);
|
|
@@ -33013,6 +33121,13 @@ async function readCurrentStateTaskDefinition(physicalId) {
|
|
|
33013
33121
|
if (td.ipcMode !== void 0) result["IpcMode"] = td.ipcMode;
|
|
33014
33122
|
if (td.ephemeralStorage?.sizeInGiB !== void 0) result["EphemeralStorage"] = { SizeInGiB: td.ephemeralStorage.sizeInGiB };
|
|
33015
33123
|
if (td.enableFaultInjection !== void 0) result["EnableFaultInjection"] = td.enableFaultInjection;
|
|
33124
|
+
const tec = td.trustedExecutionConfiguration;
|
|
33125
|
+
if (tec) {
|
|
33126
|
+
const block = {};
|
|
33127
|
+
if (tec.isolationMode !== void 0) block["IsolationMode"] = tec.isolationMode;
|
|
33128
|
+
if (tec.attestationPolicy !== void 0) block["AttestationPolicy"] = tec.attestationPolicy;
|
|
33129
|
+
result["TrustedExecutionConfiguration"] = block;
|
|
33130
|
+
}
|
|
33016
33131
|
result["ContainerDefinitions"] = this.containerDefinitionsToCfn(td.containerDefinitions);
|
|
33017
33132
|
result["Tags"] = normalizeAwsTagsToCfn(resp.tags);
|
|
33018
33133
|
return result;
|
|
@@ -33130,7 +33245,8 @@ var ECSProvider = class {
|
|
|
33130
33245
|
"IpcMode",
|
|
33131
33246
|
"EphemeralStorage",
|
|
33132
33247
|
"EnableFaultInjection",
|
|
33133
|
-
"Tags"
|
|
33248
|
+
"Tags",
|
|
33249
|
+
"TrustedExecutionConfiguration"
|
|
33134
33250
|
])],
|
|
33135
33251
|
["AWS::ECS::Service", /* @__PURE__ */ new Set([
|
|
33136
33252
|
"Cluster",
|
|
@@ -36600,7 +36716,8 @@ function clusterAttributes(cluster) {
|
|
|
36600
36716
|
"Endpoint.Port": stringifyIfAssigned(cluster?.Port),
|
|
36601
36717
|
"ReadEndpoint.Address": cluster?.ReaderEndpoint,
|
|
36602
36718
|
Arn: cluster?.DBClusterArn,
|
|
36603
|
-
ClusterResourceId: cluster?.DbClusterResourceId
|
|
36719
|
+
ClusterResourceId: cluster?.DbClusterResourceId,
|
|
36720
|
+
ServerlessV2PlatformVersion: cluster?.ServerlessV2PlatformVersion
|
|
36604
36721
|
});
|
|
36605
36722
|
}
|
|
36606
36723
|
function instanceAttributes(instance) {
|
|
@@ -39919,6 +40036,14 @@ function toCfnRules(rules, baselineRules) {
|
|
|
39919
40036
|
};
|
|
39920
40037
|
});
|
|
39921
40038
|
}
|
|
40039
|
+
function webAclAttributes(arn, id, webAcl) {
|
|
40040
|
+
return definedAttributes({
|
|
40041
|
+
Arn: arn,
|
|
40042
|
+
Id: id,
|
|
40043
|
+
LabelNamespace: webAcl?.LabelNamespace,
|
|
40044
|
+
Capacity: typeof webAcl?.Capacity === "number" && Number.isFinite(webAcl.Capacity) ? webAcl.Capacity : void 0
|
|
40045
|
+
});
|
|
40046
|
+
}
|
|
39922
40047
|
|
|
39923
40048
|
// src/provisioning/providers/wafv2/create.ts
|
|
39924
40049
|
async function create$20(logicalId, resourceType, properties, context) {
|
|
@@ -39951,23 +40076,19 @@ async function create$20(logicalId, resourceType, properties, context) {
|
|
|
39951
40076
|
}))).Summary;
|
|
39952
40077
|
if (!summary?.ARN || !summary?.Id) throw new Error("CreateWebACL did not return Summary with ARN and Id");
|
|
39953
40078
|
this.logger.debug(`Successfully created WAFv2 WebACL ${logicalId}: ${summary.ARN}`);
|
|
39954
|
-
let
|
|
40079
|
+
let webAcl;
|
|
39955
40080
|
try {
|
|
39956
|
-
|
|
40081
|
+
webAcl = (await this.getClient().send(new GetWebACLCommand({
|
|
39957
40082
|
Id: summary.Id,
|
|
39958
40083
|
Name: name,
|
|
39959
40084
|
Scope: scope
|
|
39960
|
-
}))).WebACL
|
|
40085
|
+
}))).WebACL;
|
|
39961
40086
|
} catch (readError) {
|
|
39962
|
-
this.logger.debug(`Could not read
|
|
40087
|
+
this.logger.debug(`Could not read back ${logicalId} after create (LabelNamespace / Capacity omitted): ${describeAwsFailure(readError).detail}`);
|
|
39963
40088
|
}
|
|
39964
40089
|
return {
|
|
39965
40090
|
physicalId: summary.ARN,
|
|
39966
|
-
attributes:
|
|
39967
|
-
Arn: summary.ARN,
|
|
39968
|
-
Id: summary.Id,
|
|
39969
|
-
LabelNamespace: labelNamespace
|
|
39970
|
-
})
|
|
40091
|
+
attributes: webAclAttributes(summary.ARN, summary.Id, webAcl)
|
|
39971
40092
|
};
|
|
39972
40093
|
} catch (error) {
|
|
39973
40094
|
if (error instanceof ProvisioningError) throw error;
|
|
@@ -40011,14 +40132,21 @@ async function update$20(logicalId, physicalId, resourceType, properties, previo
|
|
|
40011
40132
|
}));
|
|
40012
40133
|
await this.applyTagDiff(physicalId, resourceType, logicalId, previousProperties["Tags"], properties["Tags"]);
|
|
40013
40134
|
this.logger.debug(`Successfully updated WAFv2 WebACL ${logicalId}`);
|
|
40135
|
+
let webAcl;
|
|
40136
|
+
try {
|
|
40137
|
+
webAcl = (await this.getClient().send(new GetWebACLCommand({
|
|
40138
|
+
Name: name,
|
|
40139
|
+
Scope: scope,
|
|
40140
|
+
Id: id
|
|
40141
|
+
}))).WebACL;
|
|
40142
|
+
} catch (readError) {
|
|
40143
|
+
this.logger.debug(safeMsg`Could not read back ${logicalId} after update (Capacity omitted): ${describeAwsFailure(readError).detail}`);
|
|
40144
|
+
webAcl = { LabelNamespace: getResponse.WebACL?.LabelNamespace };
|
|
40145
|
+
}
|
|
40014
40146
|
return {
|
|
40015
40147
|
physicalId,
|
|
40016
40148
|
wasReplaced: false,
|
|
40017
|
-
attributes:
|
|
40018
|
-
Arn: physicalId,
|
|
40019
|
-
Id: id,
|
|
40020
|
-
LabelNamespace: getResponse.WebACL?.LabelNamespace
|
|
40021
|
-
}
|
|
40149
|
+
attributes: webAclAttributes(physicalId, id, webAcl)
|
|
40022
40150
|
};
|
|
40023
40151
|
} catch (error) {
|
|
40024
40152
|
if (error instanceof ProvisioningError) throw error;
|
|
@@ -40141,11 +40269,7 @@ async function importImpl$19(input) {
|
|
|
40141
40269
|
if (!arn) return null;
|
|
40142
40270
|
return {
|
|
40143
40271
|
physicalId: arn,
|
|
40144
|
-
attributes:
|
|
40145
|
-
Arn: arn,
|
|
40146
|
-
Id: resp.WebACL?.Id,
|
|
40147
|
-
LabelNamespace: resp.WebACL?.LabelNamespace
|
|
40148
|
-
})
|
|
40272
|
+
attributes: webAclAttributes(arn, resp.WebACL?.Id, resp.WebACL)
|
|
40149
40273
|
};
|
|
40150
40274
|
} catch (err) {
|
|
40151
40275
|
if (err instanceof WAFNonexistentItemException) return null;
|
|
@@ -59452,6 +59576,12 @@ var DLMLifecyclePolicyProvider = class {
|
|
|
59452
59576
|
};
|
|
59453
59577
|
|
|
59454
59578
|
// src/provisioning/providers/s3-vectors-provider.ts
|
|
59579
|
+
function vectorBucketAttributes(vectorBucketArn, creationTime) {
|
|
59580
|
+
return definedAttributes({
|
|
59581
|
+
VectorBucketArn: vectorBucketArn,
|
|
59582
|
+
CreationTime: isoTimestampAttribute(creationTime)
|
|
59583
|
+
});
|
|
59584
|
+
}
|
|
59455
59585
|
var S3VectorsProvider = class {
|
|
59456
59586
|
client;
|
|
59457
59587
|
createClient;
|
|
@@ -59568,9 +59698,15 @@ var S3VectorsProvider = class {
|
|
|
59568
59698
|
...tags && Object.keys(tags).length > 0 ? { tags } : {}
|
|
59569
59699
|
}));
|
|
59570
59700
|
this.logger.debug(`Successfully created S3 VectorBucket ${logicalId}: ${vectorBucketName}`);
|
|
59701
|
+
let creationTime;
|
|
59702
|
+
try {
|
|
59703
|
+
creationTime = (await this.getClient().send(new GetVectorBucketCommand({ vectorBucketName }))).vectorBucket?.creationTime;
|
|
59704
|
+
} catch (readError) {
|
|
59705
|
+
this.logger.debug(safeMsg`Could not read back S3 VectorBucket ${logicalId} after create (CreationTime omitted): ${describeAwsFailure(readError).detail}`);
|
|
59706
|
+
}
|
|
59571
59707
|
return {
|
|
59572
59708
|
physicalId: vectorBucketName,
|
|
59573
|
-
attributes:
|
|
59709
|
+
attributes: vectorBucketAttributes(result.vectorBucketArn, creationTime)
|
|
59574
59710
|
};
|
|
59575
59711
|
} catch (error) {
|
|
59576
59712
|
const cause = error instanceof Error ? error : void 0;
|
|
@@ -59653,7 +59789,7 @@ var S3VectorsProvider = class {
|
|
|
59653
59789
|
if (!name) return null;
|
|
59654
59790
|
return {
|
|
59655
59791
|
physicalId: name,
|
|
59656
|
-
attributes:
|
|
59792
|
+
attributes: vectorBucketAttributes(resp.vectorBucket?.vectorBucketArn, resp.vectorBucket?.creationTime)
|
|
59657
59793
|
};
|
|
59658
59794
|
} catch (err) {
|
|
59659
59795
|
if (this.isNotFoundError(err)) return null;
|
|
@@ -63185,4 +63321,4 @@ var ACMCertificateProvider = class {
|
|
|
63185
63321
|
};
|
|
63186
63322
|
|
|
63187
63323
|
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 };
|
|
63188
|
-
//# sourceMappingURL=provider-classes-
|
|
63324
|
+
//# sourceMappingURL=provider-classes-YUbciPtV.js.map
|