@go-to-k/cdkd 0.229.2 → 0.229.4
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-B_hrCxRx.js → asg-provider-Dgj3loIG.js} +2 -2
- package/dist/{asg-provider-B_hrCxRx.js.map → asg-provider-Dgj3loIG.js.map} +1 -1
- package/dist/cli.js +42 -14
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-DGgI1zCL.js → deploy-engine-Bqy4oNkR.js} +27 -13
- package/dist/deploy-engine-Bqy4oNkR.js.map +1 -0
- package/dist/{import-helpers-wLipXr5g.js → import-helpers-DayvBD4T.js} +25 -2
- package/dist/import-helpers-DayvBD4T.js.map +1 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/deploy-engine-DGgI1zCL.js.map +0 -1
- package/dist/import-helpers-wLipXr5g.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as SynthesisError, F as getLiveRenderer, M as getLogger, T as StateError, U as withStackName, V as generateResourceNameWithFallback, a as assertRegionMatch, b as ProvisioningError, c as AssetError, d as DependencyError, g as MacroExpansionError, h as LockError, i as resolveExplicitPhysicalId, k as normalizeAwsError, n as matchesCdkPath, o as disableInstanceApiTermination, r as normalizeAwsTagsToCfn, s as isTerminationProtectionPropagationError, x as ResourceTimeoutError, z as applyDefaultNameForFallback } from "./import-helpers-DayvBD4T.js";
|
|
2
2
|
import { r as getAwsClients } from "./aws-clients-pjPwZz1r.js";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { DeleteObjectCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, NoSuchKey, PutObjectCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -5598,10 +5598,20 @@ async function applyRoleArnIfSet(opts) {
|
|
|
5598
5598
|
const AWS_NO_VALUE = Symbol("AWS::NoValue");
|
|
5599
5599
|
/**
|
|
5600
5600
|
* Resource types whose CloudFormation `Ref` returns the segment AFTER the pipe
|
|
5601
|
-
* in cdkd's compound Cloud Control physical id `<
|
|
5602
|
-
*
|
|
5603
|
-
|
|
5604
|
-
|
|
5601
|
+
* in cdkd's compound Cloud Control physical id `<parent>|<ref>` (rather than the
|
|
5602
|
+
* whole physical id). These are Cloud-Control-provisioned types whose CC
|
|
5603
|
+
* primaryIdentifier is compound `<parentId>|<ref>` while CFn's `Ref` returns
|
|
5604
|
+
* only the trailing `<ref>` component:
|
|
5605
|
+
* - AWS::ApiGateway::Model `<restApiId>|<modelName>` -> model name
|
|
5606
|
+
* - AWS::ApiGateway::RequestValidator `<restApiId>|<validatorId>` -> validator id
|
|
5607
|
+
* - AWS::Cognito::UserPoolClient `<userPoolId>|<clientId>` -> client id
|
|
5608
|
+
* See {@link IntrinsicFunctionResolver.resolveRefValue}.
|
|
5609
|
+
*/
|
|
5610
|
+
const REF_RETURNS_SEGMENT_AFTER_PIPE = new Set([
|
|
5611
|
+
"AWS::ApiGateway::Model",
|
|
5612
|
+
"AWS::ApiGateway::RequestValidator",
|
|
5613
|
+
"AWS::Cognito::UserPoolClient"
|
|
5614
|
+
]);
|
|
5605
5615
|
/**
|
|
5606
5616
|
* Intrinsic-function keys the resolver knows how to handle.
|
|
5607
5617
|
*
|
|
@@ -5909,10 +5919,10 @@ var IntrinsicFunctionResolver = class {
|
|
|
5909
5919
|
* stores. But for a few types CFn's `Ref` returns a sub-component of the
|
|
5910
5920
|
* physical id, and returning the raw physical id breaks downstream consumers.
|
|
5911
5921
|
*
|
|
5912
|
-
*
|
|
5913
|
-
* provider), whose primary identifier — and thus cdkd's
|
|
5914
|
-
* compound `<
|
|
5915
|
-
* segment:
|
|
5922
|
+
* The {@link REF_RETURNS_SEGMENT_AFTER_PIPE} types are provisioned via Cloud
|
|
5923
|
+
* Control (no SDK provider), whose primary identifier — and thus cdkd's
|
|
5924
|
+
* physical id — is the compound `<parentId>|<ref>`, while CFn's `Ref` returns
|
|
5925
|
+
* only the trailing `<ref>` segment:
|
|
5916
5926
|
* - `AWS::ApiGateway::Model` → Ref is the model NAME; physical id is
|
|
5917
5927
|
* `<restApiId>|<modelName>`. A method wiring
|
|
5918
5928
|
* `RequestModels: { "application/json": { "Ref": <Model> } }` would
|
|
@@ -5923,8 +5933,12 @@ var IntrinsicFunctionResolver = class {
|
|
|
5923
5933
|
* `RequestValidatorId: { "Ref": <Validator> }` would otherwise get the
|
|
5924
5934
|
* compound id and API Gateway rejects it with
|
|
5925
5935
|
* "Invalid Request Validator identifier specified".
|
|
5926
|
-
*
|
|
5927
|
-
* the
|
|
5936
|
+
* - `AWS::Cognito::UserPoolClient` → Ref is the client id; physical id is
|
|
5937
|
+
* `<userPoolId>|<clientId>`. Any consumer of the client id (a CfnOutput,
|
|
5938
|
+
* a Lambda env var, `cognito-idp` API calls) would otherwise get the
|
|
5939
|
+
* compound id, which fails the `[\w+]+` client-id validation.
|
|
5940
|
+
* In every case the `Ref` value is the segment after the pipe (the parent id
|
|
5941
|
+
* is the first identifier component).
|
|
5928
5942
|
*/
|
|
5929
5943
|
resolveRefValue(resource) {
|
|
5930
5944
|
const physicalId = resource.physicalId;
|
|
@@ -7562,7 +7576,7 @@ var CloudControlProvider = class {
|
|
|
7562
7576
|
this.logger.debug(`Deleting resource ${logicalId} (${resourceType}), physical ID: ${physicalId}`);
|
|
7563
7577
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
7564
7578
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
7565
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
7579
|
+
const { ASGProvider } = await import("./asg-provider-Dgj3loIG.js").then((n) => n.n);
|
|
7566
7580
|
await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
|
|
7567
7581
|
return;
|
|
7568
7582
|
}
|
|
@@ -13481,4 +13495,4 @@ var DeployEngine = class {
|
|
|
13481
13495
|
|
|
13482
13496
|
//#endregion
|
|
13483
13497
|
export { findLargeInlineResources as $, shouldRetainResource as A, getDockerImageBySourceHash as B, applyRoleArnIfSet as C, LockManager as D, TemplateParser as E, formatDockerLoginError as F, resolveCaptureObservedState as G, getDefaultStateBucketName as H, getDockerCmd as I, resolveStateBucketWithDefaultAndSource as J, resolveSkipPrefix as K, runDockerForeground as L, stringifyValue as M, WorkGraph as N, S3StateBackend as O, buildDockerImage as P, MIGRATE_TMP_PREFIX as Q, runDockerStreaming as R, IntrinsicFunctionResolver as S, DagBuilder as T, getLegacyStateBucketName as U, Synthesizer as V, resolveApp as W, CFN_TEMPLATE_BODY_LIMIT as X, warnDeprecatedNoPrefixCliFlag as Y, CFN_TEMPLATE_URL_LIMIT as Z, IAMRoleProvider as _, withRetry as a, findActionableSilentDrops as b, computeImplicitDeleteEdges as c, bold as d, uploadCfnTemplate as et, cyan as f, yellow as g, red as h, withResourceDeadline as i, AssetPublisher as j, rebuildClientForBucketRegion as k, extractDeploymentEventError as l, green as m, DEFAULT_RESOURCE_WARN_AFTER_MS as n, clearBucketRegionCache as nt, isRetryableTransientError as o, gray as p, resolveStateBucketWithDefault as q, DeployEngine as r, resolveBucketRegion as rt, IMPLICIT_DELETE_DEPENDENCIES as s, DEFAULT_RESOURCE_TIMEOUT_MS as t, AssemblyReader as tt, formatResourceLine as u, collectInlinePolicyNamesManagedBySiblings as v, DiffCalculator as w, CloudControlProvider as x, ProviderRegistry as y, AssetManifestLoader as z };
|
|
13484
|
-
//# sourceMappingURL=deploy-engine-
|
|
13498
|
+
//# sourceMappingURL=deploy-engine-Bqy4oNkR.js.map
|