@cdkd/cli 0.358.5 → 0.358.6
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-sV7_Dag9.js → ambient-client-defaults-XFcZ_IMI.js} +3 -3
- package/dist/{ambient-client-defaults-sV7_Dag9.js.map → ambient-client-defaults-XFcZ_IMI.js.map} +1 -1
- package/dist/{asg-provider-C8Z9gQh6.js → asg-provider-BP8oMti2.js} +6 -6
- package/dist/{asg-provider-C8Z9gQh6.js.map → asg-provider-BP8oMti2.js.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{custom-resource-runtime-CFKtxcut.js → custom-resource-runtime-QfoyaxPW.js} +6 -6
- package/dist/{custom-resource-runtime-CFKtxcut.js.map → custom-resource-runtime-QfoyaxPW.js.map} +1 -1
- package/dist/{db-associated-roles-CAqrOMb6.js → db-associated-roles-5I6qQ0C6.js} +2 -2
- package/dist/{db-associated-roles-CAqrOMb6.js.map → db-associated-roles-5I6qQ0C6.js.map} +1 -1
- package/dist/{delete-started-nZR1YxYW.js → delete-started-B3fWZ4t9.js} +4 -4
- package/dist/{delete-started-nZR1YxYW.js.map → delete-started-B3fWZ4t9.js.map} +1 -1
- package/dist/{deploy-engine-DD0u1ctj.js → deploy-engine-DwpkRhxS.js} +17 -16
- package/dist/{deploy-engine-DD0u1ctj.js.map → deploy-engine-DwpkRhxS.js.map} +1 -1
- package/dist/{diff-calculator-D6-l89Im.js → diff-calculator-Drt5nkqk.js} +12 -12
- package/dist/{diff-calculator-D6-l89Im.js.map → diff-calculator-Drt5nkqk.js.map} +1 -1
- package/dist/{ec2-termination-protection-CrZB0URU.js → ec2-termination-protection-CEAH5-4N.js} +6 -6
- package/dist/{ec2-termination-protection-CrZB0URU.js.map → ec2-termination-protection-CEAH5-4N.js.map} +1 -1
- package/dist/{ecr-uri-97_fu_HH.js → ecr-uri-CsP8Bfa_.js} +2 -2
- package/dist/{ecr-uri-97_fu_HH.js.map → ecr-uri-CsP8Bfa_.js.map} +1 -1
- package/dist/{expected-bucket-owner-DztbSJ4h.js → expected-bucket-owner-Lk8hXI9d.js} +2 -2
- package/dist/{expected-bucket-owner-DztbSJ4h.js.map → expected-bucket-owner-Lk8hXI9d.js.map} +1 -1
- package/dist/{iam-role-provider-CMtP4Ptf.js → iam-role-provider-B6iCxpQV.js} +8 -8
- package/dist/{iam-role-provider-CMtP4Ptf.js.map → iam-role-provider-B6iCxpQV.js.map} +1 -1
- package/dist/{image-plan-B9r5-bNi.js → image-plan-D-54O-Nq.js} +8 -8
- package/dist/{image-plan-B9r5-bNi.js.map → image-plan-D-54O-Nq.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/{logger-D2Z2OHGQ.js → logger-jcgg96uu.js} +2 -2
- package/dist/{logger-D2Z2OHGQ.js.map → logger-jcgg96uu.js.map} +1 -1
- package/dist/{neptune-provider-CXTIUxND.js → neptune-provider-CpoLlf2R.js} +7 -7
- package/dist/{neptune-provider-CXTIUxND.js.map → neptune-provider-CpoLlf2R.js.map} +1 -1
- package/dist/{program-fQBUrH4s.js → program-DDysnPS0.js} +672 -17
- package/dist/program-DDysnPS0.js.map +1 -0
- package/dist/{provider-classes-ZbdmR8mu.js → provider-classes-CwIe3PGY.js} +42 -455
- package/dist/provider-classes-CwIe3PGY.js.map +1 -0
- package/dist/{rds-provider-DH7JWWZE.js → rds-provider-DJtzCaTQ.js} +10 -10
- package/dist/{rds-provider-DH7JWWZE.js.map → rds-provider-DJtzCaTQ.js.map} +1 -1
- package/dist/{read-replica-DPeTyeJe.js → read-replica-eSaw4q1p.js} +3 -3
- package/dist/{read-replica-DPeTyeJe.js.map → read-replica-eSaw4q1p.js.map} +1 -1
- package/dist/{replacement-rules-CRiQUpPY.js → replacement-rules-DOyuWYSl.js} +3 -3
- package/dist/{replacement-rules-CRiQUpPY.js.map → replacement-rules-DOyuWYSl.js.map} +1 -1
- package/dist/{resource-deadline-8W0fpf3B.js → resource-deadline-Cd5Jfimc.js} +4 -4
- package/dist/{resource-deadline-8W0fpf3B.js.map → resource-deadline-Cd5Jfimc.js.map} +1 -1
- package/dist/{restore-source-guard-BFsarBUR.js → restore-source-guard-YKb1WUF2.js} +4 -4
- package/dist/{restore-source-guard-BFsarBUR.js.map → restore-source-guard-YKb1WUF2.js.map} +1 -1
- package/dist/{run-cli-APX25Mdo.js → run-cli-CyokhRcp.js} +2 -2
- package/dist/{run-cli-APX25Mdo.js.map → run-cli-CyokhRcp.js.map} +1 -1
- package/dist/{version-DiLAo6CH.js → version-DKW7jD3V.js} +2 -2
- package/dist/{version-DiLAo6CH.js.map → version-DKW7jD3V.js.map} +1 -1
- package/package.json +1 -1
- package/dist/program-fQBUrH4s.js.map +0 -1
- package/dist/provider-classes-ZbdmR8mu.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-B6iCxpQV.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-jcgg96uu.js";
|
|
3
3
|
import { d as withApiGatewayPacing, l as s3ClientDefaults, r as getAwsClients } from "./aws-clients-DOkPjjAW.js";
|
|
4
|
-
import { D as markReplayMayCollide, E as markNameCollision, F as isAmbiguousOutcomeError, G as markRedactedCause, I as isExplicitDenyError, K as wrapMaskedAwsError, M as explicitDenyPolicyKind, O as relayedNameCollision, Q as AccountIdUnavailableError, R as isRetryableTransientError, U as isThrottlingError, 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 deleteWithProtectionCompensation, $t as markAuxiliaryFailure, A as ambiguousAttemptLead, At as canonicalizeRoute53QueryName, B as isPlainImportValue, Bt as createMaskedRetryLogger, Ct as protectedReplacementAdvice, D as AmbiguousCreateLatch, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, Ft as packCompositeId, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskDeep, I as withoutServerErrorRetries, J as RESOURCE_NOT_FOUND, K as resolveExplicitPhysicalId, L as VALUE_NOT_SHOWN, Lt as segmentAfterAnchor, M as isInsideWindow, Mt as compositeIdSeparatorRefusal, N as replayFollowedAmbiguousAttempt, Nt as compositeIdSkipResult, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as isInterruptedWaitError, P as replayedSendWindow, Pt as logicalIdShown, R as importRemedyCommand, Rt as stateOrphanRecordRemedy, S as readPrincipalLists, St as pasteableAwsCommand, U as quotedRemedyLogicalId, Ut as maskerOrIdentity, V as isQuotableImportValue, Vt as isSecretDerivedValue, W as refusalTypeShown, Wt as withDerivedNameMasks, Y as assertRegionMatch, Z as markNotGone, Zt as isAuxiliaryFailure, _n as injectiveKey, a as clearOnUpdateRemoval, at as PROTECTION_FLIP_RETRY_WAIT_MS, b as holdsSecretDerivedEntry, bt as WITHHELD_AWS_COMMAND, c as removedTemplateKeys, ct as isProceedDbStatus, dt as ProtectionFlipRegistry, en as markCreatedBeforeFailure, et as logGroupProtectionSite, ft as isTerminalDeleteFailure, g as retractCreatedResource, gn as withPasteableAwsProfile, gt as ElapsedBudgetRegistry, ht as ElapsedBudget, it as userPoolProtectionSite, j as createAttemptKey, jt as compositeIdFormatMessage, k as RecentIdSet, kt as startInterruptWatch, l as withRemovalDefaults, lt as isTerminalDbWaitStatus, m as reportCreatedResource, n as enclosingDeadlineRemainingMs, nt as rdsFamilyProtectionSite, ot as deleteAfterProtectionFlipWithFinalSnapshot, pt as protectionFlipKey, q as DriftReadRefusedError, qt as clearCreatedBeforeFailure, t as enclosingDeadlineExpired, tn as markSupersedesEarlierCreate, tt as observeThenDisableProtection, vn as injectiveKeyPrefix, w as recordedPrincipalsRepair, wt as renderDisableCommand, x as onlySecretDerived, xt as isAwsCliLiteral, y as SECRET_DERIVED_READ_LIVE, yt as UNNAMEABLE_ID_CLAUSE, z as isPlainImportJson, zt as createMaskedLogSinks } 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 {
|
|
9
|
-
import { $ as sendTtlWaitingOutRateLimit, $c as findSdkUnwiredProperties, $n as sgProtocolKey, Al as renderNestedTemplateTreeDefect, At as S3_AUTO_DELETE_OBJECTS_TAG, B as declaredStreamTagsMember, Ci as replacedDeleteFailureVerdict, Cs as isWarmThroughputDecrease, Ct as INDEX_SETTLE_POLL_INTERVAL_MS, Cu as describeFileReadFailure, Dl as findNestedTemplateTreeDefect, Dt as relayedIndexBusyDelete, Du as resolveAssemblyPath, Et as maskedLogger, Eu as renderAssemblyPathEscape, Fo as s3BucketWebsiteUrl, Fr as REDACTED_DELETE_ADDRESS_SKIP_REASON, G as streamDeclaresTags, Gc as withheldAccountClause, Go as parseWebACLArn, Gt as chunks, I as DynamoDBGlobalTableProvider, Ir as isRedactedRecordedValue, J as streamTagsMatchDeclared, Jt as withApiLimit, K as streamMemberRefusals, Ka as waitForGoneAfterDelete, Kt as isAccessDeniedError, L as STREAM_POLICY_KEY, Ll as decodeListingKey, Lr as redactedDeleteAddressFields, Mo as s3BucketDomainName, Mt as isTruthyCfnBoolean, No as s3BucketDualStackDomainName, Ol as isAbsoluteAssetPath, Ot as waitForIndexesSettled, Pa as getCurrentResourceSecrets, Po as s3BucketRegionalDomainName, Ps as passedParameterClassesOf, Q as readTtlSpec, Qa as withIndeterminateGuard, Qn as cfnIngressPortValue, R as STREAM_TAGS_KEY, Rr as redactedDeleteAddressSkip, Ss as coerceWarmThroughput$1, St as DELETE_INDEX_WAIT_PROCEED_NOTE, Tl as stringifyValue, Ts as toFiniteNumber, Tt as deleteTableWithIndexBusyRetry, U as reverseMapStreamPolicy, V as planStreamMemberOps, W as streamDeclaresPolicy, Wa as waitForLambdaFunctionActive, Wc as accountArgs, X as isTtlRateLimited, Xn as siblingOwnedSgRuleIdentities, Y as isTtlAlreadyDisabled, Yl as rewriteTemplateAssetReferences, Yo as outputReferenceProvenanceOf, Yr as getCurrentProducerRegions, Z as planTimeToLive, Za as deleteSkipReason, Zn as withoutSiblingOwnedSgRules, _a as collectManagedPolicyArnsAttachedBySiblings, _r as earliestDefined, _t as beginDeleteWait, at as CONTRIBUTOR_INSIGHTS_KEY, ba as withoutSiblingAttachedArns, bt as resolveDynamoDbDeleteBudgetClock, cn as getCurrentNestedStackContext, co as APPSYNC_APIKEY_ARN_RESOURCE_PATH, cr as calculateResourceDrift, ct as planContributorInsightsOp, dt as reverseMapIndexContributorInsights, er as canonicalizeIpProtocolValue, et as planVectorIndexUpdates, fr as verbatimEchoDriftKeys, ft as reverseMapTableContributorInsights, ga as collectGroupsAddedBySiblings, gt as DYNAMODB_DELETE_POLL_COST_MS, ht as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, in as revertNestedChildFromJournal, it as vectorIndexesShapeDetail, jo as s3BucketArn, jt as hasCdkAutoDeleteTag, kc as refuseMalformedNestedChildOutputs, kl as listNestedTemplateRows, kt as ECR_AUTO_DELETE_IMAGES_TAG, ln as withNestedStackContext, lo as maskedSecretSegment, lt as planIndexContributorInsightsOps, mt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, nl as withoutSdkUnwiredProperties, nt as vectorIndexesForCreate, ot as contributorInsightsRefusals, pt as stripIndexContributorInsights, q as streamPolicyMatchesDeclared, qt as lookupEachName, rt as vectorIndexesSettled, so as isSettledInstanceState, st as indexDeclaresContributorInsights, t as DeployEngine, ta as secretNamedAttributeNamesOf, tn as getNestedRevertRun, to as markWaitAbandoned, ts as getAccountInfo, tt as readbackVectorIndexes, ut as readContributorInsightsSpec, va as collectPrincipalsAttachingPolicy, vt as compensateRemovedDeletionProtection, ws as toCfnInteger, wt as TABLE_INDEX_NOUN, wu as displayAssemblyPath, xa as withoutSiblingOwned, xi as getStackRecords, xr as acquireIdempotencyToken, xs as WARM_THROUGHPUT_MEMBERS, xt as resolveDynamoDbDeleteBudgetMs, ya as isStoredExpression, yi as awaitInFlightSibling, yr as reserveStackCreateToken, yt as deleteBudgetKey, z as declaredStreamPolicyMember, zc as refuseMalformedResourcesForDestroy } 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, 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-XFcZ_IMI.js";
|
|
5
|
+
import { $ as deleteWithProtectionCompensation, $t as markAuxiliaryFailure, A as ambiguousAttemptLead, At as canonicalizeRoute53QueryName, B as isPlainImportValue, Bt as createMaskedRetryLogger, Ct as protectedReplacementAdvice, D as AmbiguousCreateLatch, E as AMBIGUOUS_LATCH_TTL_MS, F as setBounded, Ft as packCompositeId, G as remedyLogicalId, H as normalizeAwsTagsToCfn, Ht as maskDeep, I as withoutServerErrorRetries, J as RESOURCE_NOT_FOUND, K as resolveExplicitPhysicalId, L as VALUE_NOT_SHOWN, Lt as segmentAfterAnchor, M as isInsideWindow, Mt as compositeIdSeparatorRefusal, N as replayFollowedAmbiguousAttempt, Nt as compositeIdSkipResult, O as CREATION_DATE_SKEW_MARGIN_MS, Ot as isInterruptedWaitError, P as replayedSendWindow, Pt as logicalIdShown, R as importRemedyCommand, Rt as stateOrphanRecordRemedy, S as readPrincipalLists, St as pasteableAwsCommand, U as quotedRemedyLogicalId, Ut as maskerOrIdentity, V as isQuotableImportValue, Vt as isSecretDerivedValue, W as refusalTypeShown, Wt as withDerivedNameMasks, Y as assertRegionMatch, Z as markNotGone, Zt as isAuxiliaryFailure, _n as injectiveKey, a as clearOnUpdateRemoval, at as PROTECTION_FLIP_RETRY_WAIT_MS, b as holdsSecretDerivedEntry, bt as WITHHELD_AWS_COMMAND, c as removedTemplateKeys, ct as isProceedDbStatus, dt as ProtectionFlipRegistry, en as markCreatedBeforeFailure, et as logGroupProtectionSite, ft as isTerminalDeleteFailure, g as retractCreatedResource, gn as withPasteableAwsProfile, gt as ElapsedBudgetRegistry, ht as ElapsedBudget, it as userPoolProtectionSite, j as createAttemptKey, jt as compositeIdFormatMessage, k as RecentIdSet, kt as startInterruptWatch, l as withRemovalDefaults, lt as isTerminalDbWaitStatus, m as reportCreatedResource, n as enclosingDeadlineRemainingMs, nt as rdsFamilyProtectionSite, ot as deleteAfterProtectionFlipWithFinalSnapshot, pt as protectionFlipKey, q as DriftReadRefusedError, qt as clearCreatedBeforeFailure, t as enclosingDeadlineExpired, tn as markSupersedesEarlierCreate, tt as observeThenDisableProtection, vn as injectiveKeyPrefix, w as recordedPrincipalsRepair, wt as renderDisableCommand, x as onlySecretDerived, xt as isAwsCliLiteral, y as SECRET_DERIVED_READ_LIVE, yt as UNNAMEABLE_ID_CLAUSE, z as isPlainImportJson, zt as createMaskedLogSinks } from "./resource-deadline-Cd5Jfimc.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-DKW7jD3V.js";
|
|
7
|
+
import { gt as slowCcOperationTimeoutMs, n as isRefusedByName, r as markDeleteStarted } from "./delete-started-B3fWZ4t9.js";
|
|
8
|
+
import { A as configItemId, B as SNS_DEFAULT_POLICY_ID, C as effectiveAnalyticsItem, D as eventBridgeEnabledOf, E as effectiveNotificationConfiguration, F as manualBucketDeletionClause, G as memberReadFailure, H as declaredPolicyDocument, I as mergeLegacySingular, J as settleDeclaredMember, K as policyDocumentMatchesDeclared, L as shownLifecycleRuleId, M as declaresNestedObjectLock, N as describeValue$1, O as caughtErrorName, P as isPlainObject$3, R as KMS_DEFAULT_KEY_POLICY_ID, S as EVENTBRIDGE_CONFIG_PATH, T as effectiveInventoryItem, U as efsPolicyMatchesDeclared, V as declaredMemberDocument, W as lambdaPermissionMatchesDeclared, X as attemptedPolicyDocument, Y as warnUnsettledMember, Z as policyContentKey, _ as canonicalizeItemList, a as resolveSecretDerivedPrincipals, b as lifecycleUsesFilterForm, c as lifecycleSettleTarget, d as takeLifecycleWrite, f as LIFECYCLE_DEFAULT_STATUS, g as canonicalizeBlock, h as LIFECYCLE_TAG_FILTERS_PATH, i as isResolvableSecretPrincipalList, j as declaresBucketObjectLock, k as coerceCfnNumber, l as recordLifecycleWrite, m as LIFECYCLE_RULE_PATH, n as runDestroyForStack, o as LIFECYCLE_BASELINE_REREAD_DELAYS_MS, p as LIFECYCLE_FILTER_PATH, q as reReadUntilSettled, r as holdsUnprovenSecretPrincipalToken, s as clearLifecycleWritesOf, t as canonicalizeIpv4Cidr, u as settleLifecycleRead, v as effectiveLifecycleConfiguration, w as effectiveIntelligentTieringItem, x as parseCfnTimestamp, y as lifecycleRuleScope, z as OWN_WRITE_REREAD_DELAYS_MS } from "./program-DDysnPS0.js";
|
|
9
|
+
import { $ as sendTtlWaitingOutRateLimit, $c as findSdkUnwiredProperties, $n as sgProtocolKey, Al as renderNestedTemplateTreeDefect, At as S3_AUTO_DELETE_OBJECTS_TAG, B as declaredStreamTagsMember, Ci as replacedDeleteFailureVerdict, Cs as isWarmThroughputDecrease, Ct as INDEX_SETTLE_POLL_INTERVAL_MS, Cu as describeFileReadFailure, Dl as findNestedTemplateTreeDefect, Dt as relayedIndexBusyDelete, Du as resolveAssemblyPath, Et as maskedLogger, Eu as renderAssemblyPathEscape, Fo as s3BucketWebsiteUrl, Fr as REDACTED_DELETE_ADDRESS_SKIP_REASON, G as streamDeclaresTags, Gc as withheldAccountClause, Go as parseWebACLArn, Gt as chunks, I as DynamoDBGlobalTableProvider, Ir as isRedactedRecordedValue, J as streamTagsMatchDeclared, Jt as withApiLimit, K as streamMemberRefusals, Ka as waitForGoneAfterDelete, Kt as isAccessDeniedError, L as STREAM_POLICY_KEY, Ll as decodeListingKey, Lr as redactedDeleteAddressFields, Mo as s3BucketDomainName, Mt as isTruthyCfnBoolean, No as s3BucketDualStackDomainName, Ol as isAbsoluteAssetPath, Ot as waitForIndexesSettled, Pa as getCurrentResourceSecrets, Po as s3BucketRegionalDomainName, Ps as passedParameterClassesOf, Q as readTtlSpec, Qa as withIndeterminateGuard, Qn as cfnIngressPortValue, R as STREAM_TAGS_KEY, Rr as redactedDeleteAddressSkip, Ss as coerceWarmThroughput$1, St as DELETE_INDEX_WAIT_PROCEED_NOTE, Tl as stringifyValue, Ts as toFiniteNumber, Tt as deleteTableWithIndexBusyRetry, U as reverseMapStreamPolicy, V as planStreamMemberOps, W as streamDeclaresPolicy, Wa as waitForLambdaFunctionActive, Wc as accountArgs, X as isTtlRateLimited, Xn as siblingOwnedSgRuleIdentities, Y as isTtlAlreadyDisabled, Yl as rewriteTemplateAssetReferences, Yo as outputReferenceProvenanceOf, Yr as getCurrentProducerRegions, Z as planTimeToLive, Za as deleteSkipReason, Zn as withoutSiblingOwnedSgRules, _a as collectManagedPolicyArnsAttachedBySiblings, _r as earliestDefined, _t as beginDeleteWait, at as CONTRIBUTOR_INSIGHTS_KEY, ba as withoutSiblingAttachedArns, bt as resolveDynamoDbDeleteBudgetClock, cn as getCurrentNestedStackContext, co as APPSYNC_APIKEY_ARN_RESOURCE_PATH, cr as calculateResourceDrift, ct as planContributorInsightsOp, dt as reverseMapIndexContributorInsights, er as canonicalizeIpProtocolValue, et as planVectorIndexUpdates, fr as verbatimEchoDriftKeys, ft as reverseMapTableContributorInsights, ga as collectGroupsAddedBySiblings, gt as DYNAMODB_DELETE_POLL_COST_MS, ht as DYNAMODB_DELETE_MIN_RESOURCE_TIMEOUT_MS, in as revertNestedChildFromJournal, it as vectorIndexesShapeDetail, jo as s3BucketArn, jt as hasCdkAutoDeleteTag, kc as refuseMalformedNestedChildOutputs, kl as listNestedTemplateRows, kt as ECR_AUTO_DELETE_IMAGES_TAG, ln as withNestedStackContext, lo as maskedSecretSegment, lt as planIndexContributorInsightsOps, mt as DYNAMODB_DELETE_DEADLINE_MARGIN_MS, nl as withoutSdkUnwiredProperties, nt as vectorIndexesForCreate, ot as contributorInsightsRefusals, pt as stripIndexContributorInsights, q as streamPolicyMatchesDeclared, qt as lookupEachName, rt as vectorIndexesSettled, so as isSettledInstanceState, st as indexDeclaresContributorInsights, t as DeployEngine, ta as secretNamedAttributeNamesOf, tn as getNestedRevertRun, to as markWaitAbandoned, ts as getAccountInfo, tt as readbackVectorIndexes, ut as readContributorInsightsSpec, va as collectPrincipalsAttachingPolicy, vt as compensateRemovedDeletionProtection, ws as toCfnInteger, wt as TABLE_INDEX_NOUN, wu as displayAssemblyPath, xa as withoutSiblingOwned, xi as getStackRecords, xr as acquireIdempotencyToken, xs as WARM_THROUGHPUT_MEMBERS, xt as resolveDynamoDbDeleteBudgetMs, ya as isStoredExpression, yi as awaitInFlightSibling, yr as reserveStackCreateToken, yt as deleteBudgetKey, z as declaredStreamPolicyMember, zc as refuseMalformedResourcesForDestroy } from "./deploy-engine-DwpkRhxS.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-YKb1WUF2.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-CEAH5-4N.js";
|
|
12
12
|
import { n as canonicalizeRegion, r as derivePartitionAndUrlSuffix } from "./aws-partition-DA0r2sr-.js";
|
|
13
13
|
import { f as ambientRegion, r as awsEndpointOverrideActive } 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-Drt5nkqk.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-DOyuWYSl.js";
|
|
16
|
+
import { RDSProvider } from "./rds-provider-DJtzCaTQ.js";
|
|
17
|
+
import { NeptuneProvider } from "./neptune-provider-CpoLlf2R.js";
|
|
18
|
+
import { ASGProvider } from "./asg-provider-BP8oMti2.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";
|
|
@@ -3401,62 +3401,6 @@ var IAMUserGroupProvider = class {
|
|
|
3401
3401
|
}
|
|
3402
3402
|
};
|
|
3403
3403
|
|
|
3404
|
-
// src/provisioning/providers/s3-bucket/shared.ts
|
|
3405
|
-
function manualBucketDeletionClause(bucketName, maskSecrets, journaled) {
|
|
3406
|
-
const command = renderDisableCommand({
|
|
3407
|
-
before: "aws s3api delete-bucket --bucket",
|
|
3408
|
-
identifier: bucketName,
|
|
3409
|
-
maskSecrets
|
|
3410
|
-
});
|
|
3411
|
-
const lead = journaled ? `Outside a rollback's re-create, the failed deploy's rollback journal records the bucket for ${proseQuoted(cdkdRemedy("cdkd rollback", "--revert-failed"), "`")}; otherwise delete it yourself before the next deploy` : "Manual deletion may be required before the next deploy";
|
|
3412
|
-
return command ? `${lead}: ${command}` : `${lead}, via the console: the bucket name cannot be reproduced safely on a command line, so any command shown here could act on a different bucket or run part of the name as shell.`;
|
|
3413
|
-
}
|
|
3414
|
-
function configItemId(item) {
|
|
3415
|
-
if (!isPlainObject$3(item)) return void 0;
|
|
3416
|
-
const id = item["Id"];
|
|
3417
|
-
if (typeof id === "string") return id;
|
|
3418
|
-
if (typeof id === "number" && Number.isFinite(id)) return String(id);
|
|
3419
|
-
}
|
|
3420
|
-
function declaresBucketObjectLock(properties) {
|
|
3421
|
-
return properties["ObjectLockEnabled"] === true || properties["ObjectLockEnabled"] === "true";
|
|
3422
|
-
}
|
|
3423
|
-
function declaresNestedObjectLock(properties) {
|
|
3424
|
-
return properties["ObjectLockConfiguration"]?.["ObjectLockEnabled"] === "Enabled";
|
|
3425
|
-
}
|
|
3426
|
-
function caughtErrorName(error) {
|
|
3427
|
-
const name = error?.name;
|
|
3428
|
-
return typeof name === "string" && name !== "" ? name : "unknown error";
|
|
3429
|
-
}
|
|
3430
|
-
function isPlainObject$3(value) {
|
|
3431
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3432
|
-
}
|
|
3433
|
-
function describeValue$1(value, maskSecrets = (text) => text) {
|
|
3434
|
-
if (value === null) return "null";
|
|
3435
|
-
if (Array.isArray(value)) return "an array";
|
|
3436
|
-
if (typeof value === "string") return `a string ${displaySafe(JSON.stringify(maskDeep(value, maskSecrets)))}`;
|
|
3437
|
-
if (isPlainObject$3(value)) return `an object with keys [${Object.keys(value).map((key) => displaySafe(maskSecrets(key))).join(", ")}]`;
|
|
3438
|
-
return `a ${typeof value} (${maskSecrets(String(value))})`;
|
|
3439
|
-
}
|
|
3440
|
-
function coerceCfnNumber(value) {
|
|
3441
|
-
if (typeof value !== "number" && typeof value !== "string") return void 0;
|
|
3442
|
-
if (value === "") return void 0;
|
|
3443
|
-
const n = Number(value);
|
|
3444
|
-
return Number.isFinite(n) ? n : void 0;
|
|
3445
|
-
}
|
|
3446
|
-
function mergeLegacySingular(plural, singular, onCollision) {
|
|
3447
|
-
const out = (Array.isArray(plural) ? plural : []).filter(isPlainObject$3);
|
|
3448
|
-
if (!isPlainObject$3(singular)) return out;
|
|
3449
|
-
const sc = singular["StorageClass"];
|
|
3450
|
-
if (typeof sc === "string" && out.some((e) => e["StorageClass"] === sc)) {
|
|
3451
|
-
onCollision(sc);
|
|
3452
|
-
return out;
|
|
3453
|
-
}
|
|
3454
|
-
return [...out, singular];
|
|
3455
|
-
}
|
|
3456
|
-
function shownLifecycleRuleId(id) {
|
|
3457
|
-
return id === void 0 || id === null || id === "" ? "(no Id)" : displayIdent(id);
|
|
3458
|
-
}
|
|
3459
|
-
|
|
3460
3404
|
// src/provisioning/providers/s3-bucket/metadata.ts
|
|
3461
3405
|
const ABAC_DISABLED = "Disabled";
|
|
3462
3406
|
const ABAC_ENABLED = "Enabled";
|
|
@@ -4193,384 +4137,6 @@ function inventorySdkToCfn(c) {
|
|
|
4193
4137
|
return out;
|
|
4194
4138
|
}
|
|
4195
4139
|
|
|
4196
|
-
// src/provisioning/providers/s3-bucket/effective-items.ts
|
|
4197
|
-
function effectiveS3BucketDestination(declared, sentFormat) {
|
|
4198
|
-
if (!isPlainObject$3(declared)) return declared;
|
|
4199
|
-
if (!declared["BucketArn"]) return declared;
|
|
4200
|
-
const out = { BucketArn: declared["BucketArn"] };
|
|
4201
|
-
if (declared["BucketAccountId"] !== void 0) out["BucketAccountId"] = declared["BucketAccountId"];
|
|
4202
|
-
out["Format"] = sentFormat ?? declaredOrDefault(declared, "Format", "CSV");
|
|
4203
|
-
if (declared["Prefix"] !== void 0) out["Prefix"] = declared["Prefix"];
|
|
4204
|
-
return sameScalarRecord(out, declared) ? declared : out;
|
|
4205
|
-
}
|
|
4206
|
-
function declaredOrDefault(container, key, fallback) {
|
|
4207
|
-
return key in container ? container[key] : fallback;
|
|
4208
|
-
}
|
|
4209
|
-
const INVENTORY_DESTINATION_DEFAULT_FORMAT = "CSV";
|
|
4210
|
-
const INVENTORY_DEFAULT_ENABLED = true;
|
|
4211
|
-
const INVENTORY_DEFAULT_INCLUDED_OBJECT_VERSIONS = "All";
|
|
4212
|
-
const ANALYTICS_DEFAULT_OUTPUT_SCHEMA_VERSION = "V_1";
|
|
4213
|
-
function sameScalarRecord(a, b) {
|
|
4214
|
-
const aKeys = Object.keys(a);
|
|
4215
|
-
if (aKeys.length !== Object.keys(b).length) return false;
|
|
4216
|
-
return aKeys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && Object.is(a[k], b[k]));
|
|
4217
|
-
}
|
|
4218
|
-
const INVENTORY_DEFAULT_SCHEDULE_FREQUENCY = "Weekly";
|
|
4219
|
-
function effectiveInventoryItem(item, sent) {
|
|
4220
|
-
const patch = {};
|
|
4221
|
-
const declaredEnabled = item["Enabled"];
|
|
4222
|
-
if (declaredEnabled === void 0) patch["Enabled"] = true;
|
|
4223
|
-
else {
|
|
4224
|
-
const coercedEnabled = coerceCfnBoolean(declaredEnabled);
|
|
4225
|
-
if (coercedEnabled !== void 0 && !Object.is(declaredEnabled, coercedEnabled)) patch["Enabled"] = coercedEnabled;
|
|
4226
|
-
}
|
|
4227
|
-
if (item["IncludedObjectVersions"] === void 0) patch["IncludedObjectVersions"] = "All";
|
|
4228
|
-
const declaredSchedule = item["Schedule"];
|
|
4229
|
-
const declaresScheduleFrequency = item["ScheduleFrequency"] !== void 0;
|
|
4230
|
-
const scheduleFrequencyUsable = declaresScheduleFrequency && configStringRefusal(item, "ScheduleFrequency", "Weekly", "AWS::S3::Bucket InventoryConfigurations[]") === void 0;
|
|
4231
|
-
const scheduleContainerUsable = configStringRefusal(declaredSchedule, "Frequency", INVENTORY_DEFAULT_SCHEDULE_FREQUENCY, "AWS::S3::Bucket InventoryConfigurations[].Schedule") === void 0;
|
|
4232
|
-
const canFoldSchedule = sent?.frequency !== void 0 || scheduleFrequencyUsable || !declaresScheduleFrequency && scheduleContainerUsable;
|
|
4233
|
-
if (canFoldSchedule) {
|
|
4234
|
-
const declaredFrequency = declaresScheduleFrequency ? item["ScheduleFrequency"] : isPlainObject$3(declaredSchedule) && declaredSchedule["Frequency"] !== void 0 ? declaredSchedule["Frequency"] : INVENTORY_DEFAULT_SCHEDULE_FREQUENCY;
|
|
4235
|
-
const frequency = sent?.frequency ?? declaredFrequency;
|
|
4236
|
-
if (!Object.is(item["ScheduleFrequency"], frequency)) patch["ScheduleFrequency"] = frequency;
|
|
4237
|
-
}
|
|
4238
|
-
const destination = effectiveS3BucketDestination(item["Destination"], sent?.format);
|
|
4239
|
-
if (destination !== item["Destination"]) patch["Destination"] = destination;
|
|
4240
|
-
const dropsSchedule = declaredSchedule !== void 0 && canFoldSchedule;
|
|
4241
|
-
if (!dropsSchedule && Object.keys(patch).length === 0) return item;
|
|
4242
|
-
const out = {
|
|
4243
|
-
...item,
|
|
4244
|
-
...patch
|
|
4245
|
-
};
|
|
4246
|
-
if (dropsSchedule) delete out["Schedule"];
|
|
4247
|
-
return out;
|
|
4248
|
-
}
|
|
4249
|
-
function effectiveAnalyticsItem(item, sent) {
|
|
4250
|
-
const storageClassAnalysis = item["StorageClassAnalysis"];
|
|
4251
|
-
if (!isPlainObject$3(storageClassAnalysis)) return item;
|
|
4252
|
-
const dataExport = storageClassAnalysis["DataExport"];
|
|
4253
|
-
if (!isPlainObject$3(dataExport)) return item;
|
|
4254
|
-
const patch = {};
|
|
4255
|
-
const outputSchemaVersion = sent?.outputSchemaVersion ?? declaredOrDefault(dataExport, "OutputSchemaVersion", "V_1");
|
|
4256
|
-
if (!Object.is(dataExport["OutputSchemaVersion"], outputSchemaVersion)) patch["OutputSchemaVersion"] = outputSchemaVersion;
|
|
4257
|
-
const destination = effectiveS3BucketDestination(dataExport["Destination"], sent?.format);
|
|
4258
|
-
if (destination !== dataExport["Destination"]) patch["Destination"] = destination;
|
|
4259
|
-
if (Object.keys(patch).length === 0) return item;
|
|
4260
|
-
return {
|
|
4261
|
-
...item,
|
|
4262
|
-
StorageClassAnalysis: {
|
|
4263
|
-
...storageClassAnalysis,
|
|
4264
|
-
DataExport: {
|
|
4265
|
-
...dataExport,
|
|
4266
|
-
...patch
|
|
4267
|
-
}
|
|
4268
|
-
}
|
|
4269
|
-
};
|
|
4270
|
-
}
|
|
4271
|
-
const INTELLIGENT_TIERING_DEFAULT_STATUS = "Enabled";
|
|
4272
|
-
function effectiveIntelligentTieringItem(item) {
|
|
4273
|
-
if (item["Status"] !== void 0) return item;
|
|
4274
|
-
return {
|
|
4275
|
-
...item,
|
|
4276
|
-
Status: INTELLIGENT_TIERING_DEFAULT_STATUS
|
|
4277
|
-
};
|
|
4278
|
-
}
|
|
4279
|
-
function foldToleratedAliases(bag, aliases) {
|
|
4280
|
-
let out;
|
|
4281
|
-
for (const [emitted, tolerated] of aliases) {
|
|
4282
|
-
if (bag[tolerated] === void 0) continue;
|
|
4283
|
-
out ??= { ...bag };
|
|
4284
|
-
out[emitted] = bag[emitted] ?? bag[tolerated];
|
|
4285
|
-
delete out[tolerated];
|
|
4286
|
-
}
|
|
4287
|
-
return out ?? bag;
|
|
4288
|
-
}
|
|
4289
|
-
const TRANSITION_DATE_KEY = "TransitionDate";
|
|
4290
|
-
const TRANSITION_ALIASES = [["TransitionInDays", "Days"], ["TransitionDate", "Date"]];
|
|
4291
|
-
const EVENTBRIDGE_CONFIG_PATH = "AWS::S3::Bucket NotificationConfiguration.EventBridgeConfiguration";
|
|
4292
|
-
const EVENTBRIDGE_CONFIG_KEY = "EventBridgeConfiguration";
|
|
4293
|
-
const EVENTBRIDGE_DEFAULT_ENABLED = true;
|
|
4294
|
-
function eventBridgeEnabledOf(eb) {
|
|
4295
|
-
const declared = isPlainObject$3(eb) ? eb["EventBridgeEnabled"] : void 0;
|
|
4296
|
-
return coerceCfnBoolean(declared) ?? true;
|
|
4297
|
-
}
|
|
4298
|
-
const NOTIFICATION_LIST_KEYS = [
|
|
4299
|
-
"TopicConfigurations",
|
|
4300
|
-
"QueueConfigurations",
|
|
4301
|
-
"LambdaConfigurations"
|
|
4302
|
-
];
|
|
4303
|
-
function dropEmptyNotificationFamilies(config) {
|
|
4304
|
-
let out;
|
|
4305
|
-
for (const listKey of NOTIFICATION_LIST_KEYS) {
|
|
4306
|
-
const list = config[listKey];
|
|
4307
|
-
if (!Array.isArray(list) || list.length > 0) continue;
|
|
4308
|
-
out ??= { ...config };
|
|
4309
|
-
delete out[listKey];
|
|
4310
|
-
}
|
|
4311
|
-
return out ?? config;
|
|
4312
|
-
}
|
|
4313
|
-
function foldNotificationEvents(item) {
|
|
4314
|
-
const events = item["Events"];
|
|
4315
|
-
if (events === void 0) return item;
|
|
4316
|
-
const out = { ...item };
|
|
4317
|
-
if (item["Event"] === void 0) {
|
|
4318
|
-
if (!Array.isArray(events) || events.length !== 1) return item;
|
|
4319
|
-
out["Event"] = events[0];
|
|
4320
|
-
}
|
|
4321
|
-
delete out["Events"];
|
|
4322
|
-
return out;
|
|
4323
|
-
}
|
|
4324
|
-
function effectiveNotificationConfiguration(config) {
|
|
4325
|
-
if (!isPlainObject$3(config)) return config;
|
|
4326
|
-
let out = config;
|
|
4327
|
-
for (const listKey of NOTIFICATION_LIST_KEYS) out = canonicalizeItemList(out, listKey, foldNotificationEvents);
|
|
4328
|
-
out = dropEmptyNotificationFamilies(out);
|
|
4329
|
-
return foldEventBridgeConfiguration(out);
|
|
4330
|
-
}
|
|
4331
|
-
function foldEventBridgeConfiguration(config) {
|
|
4332
|
-
const eb = config[EVENTBRIDGE_CONFIG_KEY];
|
|
4333
|
-
if (eb === void 0) return config;
|
|
4334
|
-
if (eb !== null && configBooleanRefusal(eb, "EventBridgeEnabled", "AWS::S3::Bucket NotificationConfiguration.EventBridgeConfiguration")) return config;
|
|
4335
|
-
const enabled = eb === null ? false : eventBridgeEnabledOf(eb);
|
|
4336
|
-
const declared = isPlainObject$3(eb) ? eb["EventBridgeEnabled"] : void 0;
|
|
4337
|
-
if (isPlainObject$3(eb) && Object.keys(eb).length === 1 && Object.is(declared, enabled)) return config;
|
|
4338
|
-
return {
|
|
4339
|
-
...config,
|
|
4340
|
-
[EVENTBRIDGE_CONFIG_KEY]: { EventBridgeEnabled: enabled }
|
|
4341
|
-
};
|
|
4342
|
-
}
|
|
4343
|
-
|
|
4344
|
-
// src/utils/cfn-timestamp.ts
|
|
4345
|
-
const OFFSETLESS_DATE_TIME = /^\d{4}-\d{2}-\d{2}[Tt ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/;
|
|
4346
|
-
function parseCfnTimestamp(value) {
|
|
4347
|
-
return new Date(OFFSETLESS_DATE_TIME.test(value) ? `${value}Z` : value);
|
|
4348
|
-
}
|
|
4349
|
-
|
|
4350
|
-
// src/provisioning/providers/s3-bucket/lifecycle-fold.ts
|
|
4351
|
-
const LIFECYCLE_RULE_PATH = "AWS::S3::Bucket LifecycleConfiguration.Rules[]";
|
|
4352
|
-
const LIFECYCLE_FILTER_PATH = `${LIFECYCLE_RULE_PATH}.Filter`;
|
|
4353
|
-
const LIFECYCLE_TAG_FILTERS_PATH = `${LIFECYCLE_RULE_PATH}.TagFilters`;
|
|
4354
|
-
const LIFECYCLE_DEFAULT_STATUS = "Enabled";
|
|
4355
|
-
const LIFECYCLE_STATUS_KEY = "Status";
|
|
4356
|
-
function lifecycleRuleScope(rule) {
|
|
4357
|
-
const filter = rule["Filter"];
|
|
4358
|
-
return {
|
|
4359
|
-
prefix: filter?.["Prefix"] ?? rule["Prefix"],
|
|
4360
|
-
tagFilters: filter?.["TagFilters"] ?? rule["TagFilters"],
|
|
4361
|
-
sizeGt: filter?.["ObjectSizeGreaterThan"] ?? rule["ObjectSizeGreaterThan"],
|
|
4362
|
-
sizeLt: filter?.["ObjectSizeLessThan"] ?? rule["ObjectSizeLessThan"]
|
|
4363
|
-
};
|
|
4364
|
-
}
|
|
4365
|
-
function lifecycleRuleIsPlainPrefixOnly(rule) {
|
|
4366
|
-
if (rule["Filter"] != null) return false;
|
|
4367
|
-
const s = lifecycleRuleScope(rule);
|
|
4368
|
-
return s.prefix !== void 0 && (s.tagFilters == null || s.tagFilters.length === 0) && s.sizeGt === void 0 && s.sizeLt === void 0;
|
|
4369
|
-
}
|
|
4370
|
-
function lifecycleUsesFilterForm(rules) {
|
|
4371
|
-
return !rules.every(lifecycleRuleIsPlainPrefixOnly);
|
|
4372
|
-
}
|
|
4373
|
-
const IGNORE_REFUSAL_MESSAGE = () => {};
|
|
4374
|
-
function lifecycleRuleRefused(rule) {
|
|
4375
|
-
const rawFilter = rule["Filter"];
|
|
4376
|
-
if (rawFilter != null && requireConfigObject(rawFilter, "AWS::S3::Bucket LifecycleConfiguration.Rules[].Filter", { onUnusable: IGNORE_REFUSAL_MESSAGE }) === void 0) return true;
|
|
4377
|
-
const rawTagFilters = rawFilter?.["TagFilters"] ?? rule["TagFilters"];
|
|
4378
|
-
if (rawTagFilters != null && requireConfigArray(rawTagFilters, "AWS::S3::Bucket LifecycleConfiguration.Rules[].TagFilters", { onUnusable: IGNORE_REFUSAL_MESSAGE }) === void 0) return true;
|
|
4379
|
-
return configStringRefusal(rule, "Status", LIFECYCLE_DEFAULT_STATUS, LIFECYCLE_RULE_PATH) !== void 0;
|
|
4380
|
-
}
|
|
4381
|
-
function deepSameValue(a, b) {
|
|
4382
|
-
if (Object.is(a, b)) return true;
|
|
4383
|
-
if (Array.isArray(a) || Array.isArray(b)) {
|
|
4384
|
-
if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;
|
|
4385
|
-
return a.every((element, index) => deepSameValue(element, b[index]));
|
|
4386
|
-
}
|
|
4387
|
-
if (isPlainObject$3(a) && isPlainObject$3(b)) {
|
|
4388
|
-
const keysA = Object.keys(a);
|
|
4389
|
-
if (keysA.length !== Object.keys(b).length) return false;
|
|
4390
|
-
return keysA.every((key) => Object.hasOwn(b, key) && deepSameValue(a[key], b[key]));
|
|
4391
|
-
}
|
|
4392
|
-
return false;
|
|
4393
|
-
}
|
|
4394
|
-
const TIMEZONE_INDEPENDENT_DATE = /^\d{4}-\d{2}-\d{2}([Tt ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?)?$/;
|
|
4395
|
-
function cfnDateToIso(value) {
|
|
4396
|
-
let parsed;
|
|
4397
|
-
if (typeof value === "string") {
|
|
4398
|
-
if (!TIMEZONE_INDEPENDENT_DATE.test(value)) return void 0;
|
|
4399
|
-
parsed = parseCfnTimestamp(value);
|
|
4400
|
-
} else if (typeof value === "number") parsed = new Date(value);
|
|
4401
|
-
else return;
|
|
4402
|
-
return Number.isNaN(parsed.getTime()) ? void 0 : parsed.toISOString();
|
|
4403
|
-
}
|
|
4404
|
-
const LEGACY_SINGULAR_TRANSITIONS = [["Transitions", "Transition"], ["NoncurrentVersionTransitions", "NoncurrentVersionTransition"]];
|
|
4405
|
-
function foldLegacySingularTransitions(rule) {
|
|
4406
|
-
let out;
|
|
4407
|
-
for (const [pluralKey, singularKey] of LEGACY_SINGULAR_TRANSITIONS) {
|
|
4408
|
-
const singular = rule[singularKey];
|
|
4409
|
-
const hasSingular = isPlainObject$3(singular);
|
|
4410
|
-
const plural = rule[pluralKey];
|
|
4411
|
-
const needsFilter = Array.isArray(plural) && plural.some((element) => !isPlainObject$3(element));
|
|
4412
|
-
if (!hasSingular && !needsFilter) continue;
|
|
4413
|
-
let collided = false;
|
|
4414
|
-
const merged = mergeLegacySingular(plural, hasSingular ? singular : void 0, () => {
|
|
4415
|
-
collided = true;
|
|
4416
|
-
});
|
|
4417
|
-
out ??= { ...rule };
|
|
4418
|
-
if (collided) {
|
|
4419
|
-
if (needsFilter) out[pluralKey] = merged;
|
|
4420
|
-
continue;
|
|
4421
|
-
}
|
|
4422
|
-
out[pluralKey] = merged;
|
|
4423
|
-
if (hasSingular) delete out[singularKey];
|
|
4424
|
-
}
|
|
4425
|
-
return out ?? rule;
|
|
4426
|
-
}
|
|
4427
|
-
function foldTransitionDate(item) {
|
|
4428
|
-
const declared = item[TRANSITION_DATE_KEY];
|
|
4429
|
-
if (!declared) return item;
|
|
4430
|
-
const iso = cfnDateToIso(declared);
|
|
4431
|
-
if (iso === void 0 || iso === declared) return item;
|
|
4432
|
-
const out = { ...item };
|
|
4433
|
-
out[TRANSITION_DATE_KEY] = iso;
|
|
4434
|
-
return out;
|
|
4435
|
-
}
|
|
4436
|
-
function dropEmptyTransitionLists(rule) {
|
|
4437
|
-
let out;
|
|
4438
|
-
for (const [pluralKey] of LEGACY_SINGULAR_TRANSITIONS) {
|
|
4439
|
-
const list = rule[pluralKey];
|
|
4440
|
-
if (!Array.isArray(list) || list.length > 0) continue;
|
|
4441
|
-
out ??= { ...rule };
|
|
4442
|
-
delete out[pluralKey];
|
|
4443
|
-
}
|
|
4444
|
-
return out ?? rule;
|
|
4445
|
-
}
|
|
4446
|
-
function foldLifecycleExpiration(rule) {
|
|
4447
|
-
const declaredMarker = rule["ExpiredObjectDeleteMarker"];
|
|
4448
|
-
const ruleLevelMarker = coerceCfnBoolean(declaredMarker);
|
|
4449
|
-
if (declaredMarker !== void 0 && ruleLevelMarker === void 0) return rule;
|
|
4450
|
-
if (rule["ExpirationInDays"] === void 0 && rule["ExpirationDate"] === void 0 && rule["Expiration"] === void 0 && declaredMarker === void 0) return rule;
|
|
4451
|
-
const expiration = rule["ExpirationInDays"] || rule["ExpirationDate"] || rule["Expiration"];
|
|
4452
|
-
let days;
|
|
4453
|
-
let date;
|
|
4454
|
-
let marker;
|
|
4455
|
-
if (typeof expiration === "number") days = expiration;
|
|
4456
|
-
else if (typeof expiration === "string") {
|
|
4457
|
-
const iso = cfnDateToIso(expiration);
|
|
4458
|
-
if (iso === void 0) return rule;
|
|
4459
|
-
date = iso;
|
|
4460
|
-
} else if (isPlainObject$3(expiration)) {
|
|
4461
|
-
if (expiration["Days"] !== void 0) days = expiration["Days"];
|
|
4462
|
-
if (expiration["Date"]) {
|
|
4463
|
-
const iso = cfnDateToIso(expiration["Date"]);
|
|
4464
|
-
if (iso === void 0) return rule;
|
|
4465
|
-
date = iso;
|
|
4466
|
-
}
|
|
4467
|
-
const nested = expiration["ExpiredObjectDeleteMarker"];
|
|
4468
|
-
if (nested !== void 0) {
|
|
4469
|
-
if (typeof nested !== "boolean") return rule;
|
|
4470
|
-
marker = nested;
|
|
4471
|
-
}
|
|
4472
|
-
} else if (expiration) return rule;
|
|
4473
|
-
if (ruleLevelMarker === true) {
|
|
4474
|
-
if (days !== void 0 || date !== void 0) return rule;
|
|
4475
|
-
days = void 0;
|
|
4476
|
-
date = void 0;
|
|
4477
|
-
marker = true;
|
|
4478
|
-
}
|
|
4479
|
-
const out = { ...rule };
|
|
4480
|
-
delete out["ExpirationInDays"];
|
|
4481
|
-
delete out["ExpirationDate"];
|
|
4482
|
-
delete out["Expiration"];
|
|
4483
|
-
delete out["ExpiredObjectDeleteMarker"];
|
|
4484
|
-
if (days !== void 0) out["ExpirationInDays"] = days;
|
|
4485
|
-
if (date !== void 0) out["ExpirationDate"] = date;
|
|
4486
|
-
if (marker !== void 0) out["ExpiredObjectDeleteMarker"] = marker;
|
|
4487
|
-
return out;
|
|
4488
|
-
}
|
|
4489
|
-
function foldNoncurrentVersionExpiration(rule) {
|
|
4490
|
-
const legacy = rule["NoncurrentVersionExpirationInDays"];
|
|
4491
|
-
if (legacy === void 0) return rule;
|
|
4492
|
-
const declaredObject = rule["NoncurrentVersionExpiration"];
|
|
4493
|
-
if (declaredObject !== void 0 && !isPlainObject$3(declaredObject)) return rule;
|
|
4494
|
-
const out = { ...rule };
|
|
4495
|
-
delete out["NoncurrentVersionExpirationInDays"];
|
|
4496
|
-
if (isPlainObject$3(declaredObject)) return out;
|
|
4497
|
-
const days = coerceCfnNumber(legacy);
|
|
4498
|
-
if (days === void 0) return rule;
|
|
4499
|
-
out["NoncurrentVersionExpiration"] = { NoncurrentDays: days };
|
|
4500
|
-
return out;
|
|
4501
|
-
}
|
|
4502
|
-
function foldLifecycleScope(rule, useFilterForm) {
|
|
4503
|
-
const { prefix, tagFilters, sizeGt, sizeLt } = lifecycleRuleScope(rule);
|
|
4504
|
-
const hasTags = tagFilters != null && tagFilters.length > 0;
|
|
4505
|
-
const componentCount = (hasTags ? 1 : 0) + (prefix !== void 0 ? 1 : 0) + (sizeGt !== void 0 ? 1 : 0) + (sizeLt !== void 0 ? 1 : 0);
|
|
4506
|
-
let filter;
|
|
4507
|
-
if (componentCount > 1) {
|
|
4508
|
-
filter = {};
|
|
4509
|
-
if (prefix !== void 0) filter["Prefix"] = prefix;
|
|
4510
|
-
if (hasTags) filter["TagFilters"] = tagFilters;
|
|
4511
|
-
if (sizeGt !== void 0) filter["ObjectSizeGreaterThan"] = sizeGt;
|
|
4512
|
-
if (sizeLt !== void 0) filter["ObjectSizeLessThan"] = sizeLt;
|
|
4513
|
-
} else if (hasTags) filter = { TagFilters: tagFilters };
|
|
4514
|
-
else if (sizeGt !== void 0) filter = { ObjectSizeGreaterThan: sizeGt };
|
|
4515
|
-
else if (sizeLt !== void 0) filter = { ObjectSizeLessThan: sizeLt };
|
|
4516
|
-
else if (useFilterForm) filter = { Prefix: prefix ?? "" };
|
|
4517
|
-
const out = { ...rule };
|
|
4518
|
-
delete out["Filter"];
|
|
4519
|
-
delete out["Prefix"];
|
|
4520
|
-
delete out["TagFilters"];
|
|
4521
|
-
delete out["ObjectSizeGreaterThan"];
|
|
4522
|
-
delete out["ObjectSizeLessThan"];
|
|
4523
|
-
if (filter !== void 0) out["Filter"] = filter;
|
|
4524
|
-
else if (prefix !== void 0) out["Prefix"] = prefix;
|
|
4525
|
-
return out;
|
|
4526
|
-
}
|
|
4527
|
-
function effectiveLifecycleConfiguration(config) {
|
|
4528
|
-
if (!isPlainObject$3(config)) return config;
|
|
4529
|
-
const rules = config["Rules"];
|
|
4530
|
-
if (!Array.isArray(rules)) return config;
|
|
4531
|
-
const objectRules = rules.filter(isPlainObject$3);
|
|
4532
|
-
if (objectRules.length !== rules.length || objectRules.length === 0) return config;
|
|
4533
|
-
if (objectRules.some(lifecycleRuleRefused)) return config;
|
|
4534
|
-
const useFilterForm = lifecycleUsesFilterForm(objectRules);
|
|
4535
|
-
return canonicalizeItemList(config, "Rules", (rule) => effectiveLifecycleRule(rule, useFilterForm));
|
|
4536
|
-
}
|
|
4537
|
-
function effectiveLifecycleRule(rule, useFilterForm) {
|
|
4538
|
-
let out = foldLegacySingularTransitions(rule);
|
|
4539
|
-
out = canonicalizeItemList(out, "Transitions", (t) => foldTransitionDate(foldToleratedAliases(t, TRANSITION_ALIASES)));
|
|
4540
|
-
out = dropEmptyTransitionLists(out);
|
|
4541
|
-
out = foldLifecycleExpiration(out);
|
|
4542
|
-
out = foldNoncurrentVersionExpiration(out);
|
|
4543
|
-
out = foldLifecycleScope(out, useFilterForm);
|
|
4544
|
-
if (out["Status"] === void 0) {
|
|
4545
|
-
const withStatus = { ...out };
|
|
4546
|
-
withStatus[LIFECYCLE_STATUS_KEY] = LIFECYCLE_DEFAULT_STATUS;
|
|
4547
|
-
out = withStatus;
|
|
4548
|
-
}
|
|
4549
|
-
return deepSameValue(rule, out) ? rule : out;
|
|
4550
|
-
}
|
|
4551
|
-
function canonicalizeBlock(properties, key, fold) {
|
|
4552
|
-
const folded = fold(properties[key]);
|
|
4553
|
-
return folded === properties[key] ? properties : {
|
|
4554
|
-
...properties,
|
|
4555
|
-
[key]: folded
|
|
4556
|
-
};
|
|
4557
|
-
}
|
|
4558
|
-
function canonicalizeItemList(properties, key, fold) {
|
|
4559
|
-
const list = properties[key];
|
|
4560
|
-
if (!Array.isArray(list)) return properties;
|
|
4561
|
-
let changed = false;
|
|
4562
|
-
const mapped = list.map((element) => {
|
|
4563
|
-
if (!isPlainObject$3(element)) return element;
|
|
4564
|
-
const next = fold(element);
|
|
4565
|
-
if (next !== element) changed = true;
|
|
4566
|
-
return next;
|
|
4567
|
-
});
|
|
4568
|
-
return changed ? {
|
|
4569
|
-
...properties,
|
|
4570
|
-
[key]: mapped
|
|
4571
|
-
} : properties;
|
|
4572
|
-
}
|
|
4573
|
-
|
|
4574
4140
|
// src/provisioning/providers/s3-bucket/sub-config.ts
|
|
4575
4141
|
function emptyListConfigToUndefined(config, listKey) {
|
|
4576
4142
|
if (config === void 0 || config === null) return void 0;
|
|
@@ -5078,6 +4644,7 @@ async function applyLifecycleConfiguration(bucketName, lifecycleConfig, onUnusab
|
|
|
5078
4644
|
LifecycleConfiguration: { Rules: rules },
|
|
5079
4645
|
TransitionDefaultMinimumObjectSize: lifecycleConfig["TransitionDefaultMinimumObjectSize"]
|
|
5080
4646
|
}));
|
|
4647
|
+
recordLifecycleWrite(this, bucketName, "put");
|
|
5081
4648
|
this.logger.debug(`Applied lifecycle configuration to bucket ${this.shown(bucketName)}`);
|
|
5082
4649
|
return true;
|
|
5083
4650
|
}
|
|
@@ -5705,6 +5272,7 @@ async function applySubConfigDiffs(bucketName, properties, previousProperties, c
|
|
|
5705
5272
|
if (!cfg.Rules || !Array.isArray(cfg.Rules) || cfg.Rules.length === 0) {
|
|
5706
5273
|
if (context?.desiredFromAwsReadback === true) {
|
|
5707
5274
|
await this.s3Client.send(new DeleteBucketLifecycleCommand({ Bucket: bucketName }));
|
|
5275
|
+
recordLifecycleWrite(this, bucketName, "delete");
|
|
5708
5276
|
this.logger.debug(`Deleted lifecycle configuration on bucket ${this.shown(bucketName)} (reverting to an unset baseline)`);
|
|
5709
5277
|
return;
|
|
5710
5278
|
}
|
|
@@ -5715,6 +5283,7 @@ async function applySubConfigDiffs(bucketName, properties, previousProperties, c
|
|
|
5715
5283
|
else recordEffectiveFold("LifecycleConfiguration", effectiveLifecycleConfiguration(cfg));
|
|
5716
5284
|
}, async () => {
|
|
5717
5285
|
await this.s3Client.send(new DeleteBucketLifecycleCommand({ Bucket: bucketName }));
|
|
5286
|
+
recordLifecycleWrite(this, bucketName, "delete");
|
|
5718
5287
|
this.logger.debug(`Deleted lifecycle configuration on bucket ${this.shown(bucketName)}`);
|
|
5719
5288
|
});
|
|
5720
5289
|
await this.diffSubConfig(bucketName, previousProperties["CorsConfiguration"], properties["CorsConfiguration"], async (cfg) => {
|
|
@@ -5845,7 +5414,13 @@ async function applySubConfigDiffs(bucketName, properties, previousProperties, c
|
|
|
5845
5414
|
async function update$39(logicalId, physicalId, resourceType, properties, previousProperties, context) {
|
|
5846
5415
|
if (this.opMask === void 0) {
|
|
5847
5416
|
const sinks = withDerivedNameMasks(this.logger, createMaskedLogSinks(this.logger, context?.maskSecrets), [[previousProperties["BucketName"], physicalId], [previousProperties["BucketNamePrefix"], physicalId]]);
|
|
5848
|
-
|
|
5417
|
+
const view = this.maskedView(sinks);
|
|
5418
|
+
try {
|
|
5419
|
+
return await view.update(logicalId, physicalId, resourceType, properties, previousProperties, context);
|
|
5420
|
+
} catch (err) {
|
|
5421
|
+
clearLifecycleWritesOf(view);
|
|
5422
|
+
throw err;
|
|
5423
|
+
}
|
|
5849
5424
|
}
|
|
5850
5425
|
this.logger.debug(`Updating S3 bucket ${displaySafe(logicalId)}: ${this.shown(physicalId)}`);
|
|
5851
5426
|
refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId, physicalId);
|
|
@@ -6073,7 +5648,13 @@ async function create$38(logicalId, resourceType, properties, context) {
|
|
|
6073
5648
|
const prefix = properties["BucketNamePrefix"];
|
|
6074
5649
|
const derivedName = typeof prefix === "string" && prefix !== "" && bucketNameRefusal(properties) === void 0 ? await this.accountRegionalBucketName(prefix) : void 0;
|
|
6075
5650
|
const view = withDerivedNameMasks(this.logger, sinks, [[prefix, derivedName]]);
|
|
6076
|
-
|
|
5651
|
+
const opView = this.maskedView(view);
|
|
5652
|
+
try {
|
|
5653
|
+
return await opView.create(logicalId, resourceType, properties, context);
|
|
5654
|
+
} catch (err) {
|
|
5655
|
+
clearLifecycleWritesOf(opView);
|
|
5656
|
+
throw err;
|
|
5657
|
+
}
|
|
6077
5658
|
}
|
|
6078
5659
|
this.logger.debug(`Creating S3 bucket ${displaySafe(logicalId)}`);
|
|
6079
5660
|
const desiredTags = refuseMalformedDesiredTags(properties["Tags"], resourceType, logicalId);
|
|
@@ -6304,13 +5885,15 @@ async function readCurrentState$38(physicalId, logicalId, _resourceType, _proper
|
|
|
6304
5885
|
}
|
|
6305
5886
|
throw err;
|
|
6306
5887
|
}
|
|
5888
|
+
const lifecycleWrite = context?.afterOwnWrite === true ? takeLifecycleWrite(this.s3Client, physicalId) : void 0;
|
|
5889
|
+
const lifecycleDeclared = lifecycleSettleTarget(lifecycleWrite, _properties, () => warnUnsettledMember(this.logger, logicalId, "AWS::S3::Bucket", "LifecycleConfiguration"));
|
|
6307
5890
|
const [versioning, encryption, ownership, pab, tags, lifecycle, cors, website, logging, notification, replication, objectLock, accelerate, metrics, analytics, intelligentTier, inventory, abac, metadata] = await Promise.all([
|
|
6308
5891
|
this.readVersioning(physicalId),
|
|
6309
5892
|
this.readEncryption(physicalId),
|
|
6310
5893
|
this.readOwnershipControls(physicalId),
|
|
6311
5894
|
this.readPublicAccessBlock(physicalId),
|
|
6312
5895
|
this.readTags(physicalId),
|
|
6313
|
-
this.readLifecycle(physicalId),
|
|
5896
|
+
lifecycleDeclared === void 0 ? this.readLifecycle(physicalId) : this.readLifecycleBaseline(physicalId, lifecycleDeclared),
|
|
6314
5897
|
this.readCors(physicalId),
|
|
6315
5898
|
this.readWebsite(physicalId),
|
|
6316
5899
|
this.readLogging(physicalId),
|
|
@@ -6332,7 +5915,7 @@ async function readCurrentState$38(physicalId, logicalId, _resourceType, _proper
|
|
|
6332
5915
|
OwnershipControls: ownership,
|
|
6333
5916
|
PublicAccessBlockConfiguration: pab,
|
|
6334
5917
|
Tags: tags,
|
|
6335
|
-
LifecycleConfiguration: lifecycle,
|
|
5918
|
+
...lifecycle !== void 0 ? { LifecycleConfiguration: lifecycle } : {},
|
|
6336
5919
|
CorsConfiguration: cors,
|
|
6337
5920
|
WebsiteConfiguration: website,
|
|
6338
5921
|
LoggingConfiguration: logging,
|
|
@@ -6836,6 +6419,10 @@ var S3BucketProvider = class {
|
|
|
6836
6419
|
readLifecycle(bucket) {
|
|
6837
6420
|
return readLifecycle$1.call(this, bucket);
|
|
6838
6421
|
}
|
|
6422
|
+
lifecycleBaselineRereadDelaysMs = LIFECYCLE_BASELINE_REREAD_DELAYS_MS;
|
|
6423
|
+
readLifecycleBaseline(bucket, declared) {
|
|
6424
|
+
return settleLifecycleRead(() => this.readLifecycle(bucket), declared, this.lifecycleBaselineRereadDelaysMs);
|
|
6425
|
+
}
|
|
6839
6426
|
readCors(bucket) {
|
|
6840
6427
|
return readCors.call(this, bucket);
|
|
6841
6428
|
}
|
|
@@ -32022,7 +31609,7 @@ var AgentCoreRuntimeProvider = class {
|
|
|
32022
31609
|
};
|
|
32023
31610
|
if (properties["AgentRuntimeArtifact"] !== void 0) input["agentRuntimeArtifact"] = pascalToCamelCaseKeys(properties["AgentRuntimeArtifact"], CFN_MAP_KEYS);
|
|
32024
31611
|
if (properties["NetworkConfiguration"] !== void 0) input["networkConfiguration"] = pascalToCamelCaseKeys(properties["NetworkConfiguration"], CFN_MAP_KEYS);
|
|
32025
|
-
if (properties["Description"] !== void 0) input["description"] = properties["Description"];
|
|
31612
|
+
if (properties["Description"] !== void 0 && properties["Description"] !== "") input["description"] = properties["Description"];
|
|
32026
31613
|
if (properties["AuthorizerConfiguration"] !== void 0) input["authorizerConfiguration"] = pascalToCamelCaseKeys(properties["AuthorizerConfiguration"], CFN_MAP_KEYS);
|
|
32027
31614
|
if (properties["ProtocolConfiguration"] !== void 0) {
|
|
32028
31615
|
const proto = properties["ProtocolConfiguration"];
|
|
@@ -65817,4 +65404,4 @@ var ACMCertificateProvider = class {
|
|
|
65817
65404
|
};
|
|
65818
65405
|
|
|
65819
65406
|
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, EventBridgeArchiveProvider, EventBridgeBusProvider, EventBridgeRuleProvider, FSxFileSystemProvider, FirehoseProvider, GlueConnectionProvider, GlueCrawlerProvider, GlueJobProvider, GlueProvider, GlueSecurityConfigurationProvider, GlueTriggerProvider, GlueWorkflowProvider, IAMAccessKeyProvider, IAMInstanceProfileProvider, IAMManagedPolicyProvider, IAMPolicyProvider, IAMRoleProvider, IAMUserGroupProvider, KMSProvider, KinesisStreamConsumerProvider, KinesisStreamProvider, LambdaEventInvokeConfigProvider, LambdaEventSourceMappingProvider, LambdaFunctionProvider, LambdaLayerVersionProvider, LambdaMicrovmImageProvider, LambdaNetworkConnectorProvider, LambdaPermissionProvider, LambdaUrlProvider, LambdaWebFunctionEndpointProvider, LambdaWebFunctionRevisionProvider, LogsDeliveryDestinationProvider, LogsDeliveryProvider, LogsDeliverySourceProvider, LogsLogGroupProvider, NeptuneProvider, NestedStackProvider, PipesPipeProvider, RDSDBProxyEndpointProvider, RDSDBProxyProvider, RDSDBProxyTargetGroupProvider, RDSProvider, Route53Provider, S3BucketPolicyProvider, S3BucketProvider, S3DirectoryBucketProvider, S3TablesProvider, S3VectorsProvider, SNSSubscriptionProvider, SNSTopicPolicyProvider, SNSTopicProvider, SQSQueuePolicyProvider, SQSQueueProvider, SSMParameterProvider, SchedulerScheduleProvider, SecretsManagerSecretProvider, ServiceDiscoveryProvider, StepFunctionsProvider, WAFv2WebACLProvider, WaitConditionHandleProvider };
|
|
65820
|
-
//# sourceMappingURL=provider-classes-
|
|
65407
|
+
//# sourceMappingURL=provider-classes-CwIe3PGY.js.map
|