@go-to-k/cdkd 0.252.1 → 0.252.3
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/{asg-provider-BzBdoSYp.js → asg-provider-D4zKdIrY.js} +2 -2
- package/dist/{asg-provider-BzBdoSYp.js.map → asg-provider-D4zKdIrY.js.map} +1 -1
- package/dist/cli.js +33 -35
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-IkhnJXWR.js → deploy-engine-BHpSZlZr.js} +48 -11
- package/dist/{deploy-engine-IkhnJXWR.js.map → deploy-engine-BHpSZlZr.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -10873,7 +10873,7 @@ var CloudControlProvider = class {
|
|
|
10873
10873
|
this.logger.debug(`Deleting resource ${logicalId} (${resourceType}), physical ID: ${physicalId}`);
|
|
10874
10874
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
10875
10875
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
10876
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
10876
|
+
const { ASGProvider } = await import("./asg-provider-D4zKdIrY.js").then((n) => n.n);
|
|
10877
10877
|
await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
|
|
10878
10878
|
return;
|
|
10879
10879
|
}
|
|
@@ -11190,7 +11190,7 @@ var CloudControlProvider = class {
|
|
|
11190
11190
|
break;
|
|
11191
11191
|
case "AWS::Backup::BackupVault":
|
|
11192
11192
|
if (!enriched["BackupVaultArn"]) {
|
|
11193
|
-
const model = await this.
|
|
11193
|
+
const model = await this.readCcResourceModel(resourceType, physicalId);
|
|
11194
11194
|
if (model) {
|
|
11195
11195
|
if (typeof model["BackupVaultArn"] === "string") enriched["BackupVaultArn"] = model["BackupVaultArn"];
|
|
11196
11196
|
if (!enriched["BackupVaultName"] && typeof model["BackupVaultName"] === "string") enriched["BackupVaultName"] = model["BackupVaultName"];
|
|
@@ -11201,7 +11201,7 @@ var CloudControlProvider = class {
|
|
|
11201
11201
|
break;
|
|
11202
11202
|
case "AWS::Backup::BackupPlan":
|
|
11203
11203
|
if (!enriched["BackupPlanArn"] || !enriched["VersionId"]) {
|
|
11204
|
-
const model = await this.
|
|
11204
|
+
const model = await this.readCcResourceModel(resourceType, physicalId);
|
|
11205
11205
|
if (model) {
|
|
11206
11206
|
if (!enriched["BackupPlanArn"] && typeof model["BackupPlanArn"] === "string") enriched["BackupPlanArn"] = model["BackupPlanArn"];
|
|
11207
11207
|
if (!enriched["VersionId"] && typeof model["VersionId"] === "string") enriched["VersionId"] = model["VersionId"];
|
|
@@ -11218,7 +11218,7 @@ var CloudControlProvider = class {
|
|
|
11218
11218
|
if (!enriched["SelectionId"]) enriched["SelectionId"] = physicalId.substring(0, firstUnderscore);
|
|
11219
11219
|
if (!enriched["BackupPlanId"]) enriched["BackupPlanId"] = physicalId.substring(firstUnderscore + 1);
|
|
11220
11220
|
}
|
|
11221
|
-
const model = await this.
|
|
11221
|
+
const model = await this.readCcResourceModel(resourceType, physicalId);
|
|
11222
11222
|
if (model) {
|
|
11223
11223
|
if (typeof model["SelectionId"] === "string") enriched["SelectionId"] = model["SelectionId"];
|
|
11224
11224
|
if (typeof model["BackupPlanId"] === "string") enriched["BackupPlanId"] = model["BackupPlanId"];
|
|
@@ -11226,18 +11226,55 @@ var CloudControlProvider = class {
|
|
|
11226
11226
|
}
|
|
11227
11227
|
}
|
|
11228
11228
|
break;
|
|
11229
|
+
case "AWS::Pipes::Pipe":
|
|
11230
|
+
if (!enriched["Arn"]) {
|
|
11231
|
+
const model = await this.readCcResourceModel(resourceType, physicalId);
|
|
11232
|
+
if (model) {
|
|
11233
|
+
if (typeof model["Arn"] === "string") enriched["Arn"] = model["Arn"];
|
|
11234
|
+
if (!enriched["CurrentState"] && typeof model["CurrentState"] === "string") enriched["CurrentState"] = model["CurrentState"];
|
|
11235
|
+
if (!enriched["StateReason"] && typeof model["StateReason"] === "string") enriched["StateReason"] = model["StateReason"];
|
|
11236
|
+
if (!enriched["CreationTime"] && typeof model["CreationTime"] === "string") enriched["CreationTime"] = model["CreationTime"];
|
|
11237
|
+
if (!enriched["LastModifiedTime"] && typeof model["LastModifiedTime"] === "string") enriched["LastModifiedTime"] = model["LastModifiedTime"];
|
|
11238
|
+
this.logger.debug(`Enriched Pipes Pipe ${physicalId} with Arn from CC GetResource`);
|
|
11239
|
+
}
|
|
11240
|
+
}
|
|
11241
|
+
break;
|
|
11242
|
+
case "AWS::S3::AccessPoint":
|
|
11243
|
+
if (!enriched["Arn"] || !enriched["Alias"]) {
|
|
11244
|
+
const model = await this.readCcResourceModel(resourceType, physicalId);
|
|
11245
|
+
if (model) {
|
|
11246
|
+
if (!enriched["Arn"] && typeof model["Arn"] === "string") enriched["Arn"] = model["Arn"];
|
|
11247
|
+
if (!enriched["Alias"] && typeof model["Alias"] === "string") enriched["Alias"] = model["Alias"];
|
|
11248
|
+
if (!enriched["NetworkOrigin"] && typeof model["NetworkOrigin"] === "string") enriched["NetworkOrigin"] = model["NetworkOrigin"];
|
|
11249
|
+
this.logger.debug(`Enriched S3 AccessPoint ${physicalId} with Arn/Alias from CC GetResource`);
|
|
11250
|
+
}
|
|
11251
|
+
}
|
|
11252
|
+
break;
|
|
11253
|
+
case "AWS::ResourceGroups::Group":
|
|
11254
|
+
if (!enriched["Arn"]) {
|
|
11255
|
+
const model = await this.readCcResourceModel(resourceType, physicalId);
|
|
11256
|
+
if (model) {
|
|
11257
|
+
if (typeof model["Arn"] === "string") enriched["Arn"] = model["Arn"];
|
|
11258
|
+
this.logger.debug(`Enriched ResourceGroups Group ${physicalId} with Arn from CC GetResource`);
|
|
11259
|
+
}
|
|
11260
|
+
}
|
|
11261
|
+
break;
|
|
11229
11262
|
default: break;
|
|
11230
11263
|
}
|
|
11231
11264
|
return enriched;
|
|
11232
11265
|
}
|
|
11233
11266
|
/**
|
|
11234
|
-
* Read the Cloud Control GetResource model for a pure-CC
|
|
11235
|
-
* return its parsed property map, or `undefined` on any failure.
|
|
11236
|
-
*
|
|
11237
|
-
*
|
|
11238
|
-
*
|
|
11267
|
+
* Read the Cloud Control GetResource model for a pure-CC resource and
|
|
11268
|
+
* return its parsed property map, or `undefined` on any failure. Types with
|
|
11269
|
+
* no SDK provider always route through Cloud Control, whose async CREATE
|
|
11270
|
+
* ResourceModel is sparse for several types, so this generic CC read-back is
|
|
11271
|
+
* the cleanest source of their readOnly attributes (ARNs, aliases,
|
|
11272
|
+
* VersionId, SelectionId) — the type's registry schema lists them under
|
|
11273
|
+
* readOnlyProperties, which the CC read handler does return. Originally
|
|
11274
|
+
* Backup-scoped (issue #984); generalized for Pipes / S3 AccessPoint /
|
|
11275
|
+
* ResourceGroups in issue #1103. Best-effort: never throws.
|
|
11239
11276
|
*/
|
|
11240
|
-
async
|
|
11277
|
+
async readCcResourceModel(resourceType, physicalId) {
|
|
11241
11278
|
try {
|
|
11242
11279
|
const raw = (await this.cloudControlClient.send(new GetResourceCommand({
|
|
11243
11280
|
TypeName: resourceType,
|
|
@@ -17402,4 +17439,4 @@ var DeployEngine = class {
|
|
|
17402
17439
|
|
|
17403
17440
|
//#endregion
|
|
17404
17441
|
export { BOOTSTRAP_MARKER_PREFIX as $, StateError as $t, refStateLookupFromResource as A, AssemblyReader as At, TemplateParser as B, DependencyError as Bt, ProviderRegistry as C, warnDeprecatedNoPrefixCliFlag as Ct, isTerminationProtectionPropagationError as D, findLargeInlineResources as Dt, disableInstanceApiTermination as E, MIGRATE_TMP_PREFIX as Et, resolveExplicitPhysicalId as F, resetAwsClients as Ft, AssetPublisher as G, MissingCdkCliError as Gt, S3StateBackend as H, LocalMigrateError as Ht, assertRegionMatch as I, setAwsClients as It, buildAssetRedirectMap as J, ProvisioningError as Jt, stringifyValue as K, NestedStackChildDirectDestroyError as Kt, applyRoleArnIfSet as L, AssetError as Lt, CDK_PATH_TAG as M, resolveBucketRegion as Mt, matchesCdkPath as N, AwsClients as Nt, IntrinsicFunctionResolver as O, uploadCfnTemplate as Ot, normalizeAwsTagsToCfn as P, getAwsClients as Pt, AssetModeResolver as Q, StackTerminationProtectionError as Qt, DiffCalculator as R, CdkdError as Rt, collectInlinePolicyNamesManagedBySiblings as S, resolveUseCdkBootstrapAssets as St, CloudControlProvider as T, CFN_TEMPLATE_URL_LIMIT as Tt, rebuildClientForBucketRegion as U, LocalStartServiceError as Ut, LockManager as V, LocalInvokeBuildError as Vt, shouldRetainResource as W, LockError as Wt, loadPublishableAssetManifest as X, ResourceUpdateNotSupportedError as Xt, createAssetRedirectResolver as Y, ResourceTimeoutError as Yt, rewriteTemplateAssetReferences as Z, StackHasActiveImportsError as Zt, gray as _, resolveAutoAssetStorage as _t, withRetry as a, __exportAll as an, buildDockerImage as at, yellow as b, resolveStateBucketWithDefault as bt, IMPLICIT_DELETE_DEPENDENCIES as c, runDockerForeground as ct, MULTI_REGION_RECREATE_BLOCKED_TYPES as d, getDockerImageBySourceHash as dt, SynthesisError as en, ensureAssetStorage as et, isStatefulRecreateTargetSync as f, Synthesizer as ft, cyan as g, resolveApp as gt, bold as h, getLegacyStateBucketName as ht, withResourceDeadline as i, withErrorHandling as in, validateContainerRepoName as it, WAFv2WebACLProvider as j, clearBucketRegionCache as jt, cfnRefValueFromPhysicalId as k, expectedOwnerParam as kt, computeImplicitDeleteEdges as l, runDockerStreaming as lt, formatResourceLine as m, getDefaultStateBucketName as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, isCdkdError as nn, parseBootstrapMarker as nt, isRetryableTransientError as o, formatDockerLoginError as ot, renderStatefulReason as p, synthesisStatusMessage as pt, WorkGraph as q, PartialFailureError as qt, DeployEngine as r, normalizeAwsError as rn, validateAssetBucketName as rt, isThrottlingError as s, getDockerCmd as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, formatError as tn, getBootstrapMarkerKey as tt, extractDeploymentEventError as u, AssetManifestLoader as ut, green as v, resolveCaptureObservedState as vt, findActionableSilentDrops as w, CFN_TEMPLATE_BODY_LIMIT as wt, IAMRoleProvider as x, resolveStateBucketWithDefaultAndSource as xt, red as y, resolveSkipPrefix as yt, DagBuilder as z, ConfigError as zt };
|
|
17405
|
-
//# sourceMappingURL=deploy-engine-
|
|
17442
|
+
//# sourceMappingURL=deploy-engine-BHpSZlZr.js.map
|