@go-to-k/cdkd 0.188.0 → 0.190.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/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { _ as withSkipPrefix, a as runDockerStreaming, c as getLogger, d as getLiveRenderer, f as PATTERN_B_NAME_PROPERTIES, g as generateResourceNameWithFallback, h as generateResourceName, i as runDockerForeground, n as formatDockerLoginError, p as PATTERN_B_RESOURCE_TYPES, r as getDockerCmd, u as runStackBuffered, v as withStackName } from "./docker-cmd-iDMcWcre.js";
|
|
3
|
-
import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as withErrorHandling, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackTerminationProtectionError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as StackHasActiveImportsError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError$1, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, yt as normalizeAwsError, z as resolveApp } from "./deploy-engine-
|
|
3
|
+
import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as withErrorHandling, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackTerminationProtectionError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as StackHasActiveImportsError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError$1, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, yt as normalizeAwsError, z as resolveApp } from "./deploy-engine-CapyHC2m.js";
|
|
4
4
|
import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-B15NAPbL.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
@@ -12358,7 +12358,8 @@ var EventBridgeBusProvider = class {
|
|
|
12358
12358
|
"Description",
|
|
12359
12359
|
"KmsKeyIdentifier",
|
|
12360
12360
|
"Policy",
|
|
12361
|
-
"DeadLetterConfig"
|
|
12361
|
+
"DeadLetterConfig",
|
|
12362
|
+
"LogConfig"
|
|
12362
12363
|
])]]);
|
|
12363
12364
|
constructor() {
|
|
12364
12365
|
this.eventBridgeClient = getAwsClients().eventBridge;
|
|
@@ -12375,6 +12376,7 @@ var EventBridgeBusProvider = class {
|
|
|
12375
12376
|
if (properties["Tags"]) createParams.Tags = properties["Tags"];
|
|
12376
12377
|
const dlcCreate = sanitizeDeadLetterConfig(properties["DeadLetterConfig"]);
|
|
12377
12378
|
if (dlcCreate) createParams.DeadLetterConfig = dlcCreate;
|
|
12379
|
+
if (properties["LogConfig"] !== void 0) createParams.LogConfig = properties["LogConfig"];
|
|
12378
12380
|
const eventBusArn = (await this.eventBridgeClient.send(new CreateEventBusCommand(createParams))).EventBusArn ?? "";
|
|
12379
12381
|
if (properties["Policy"]) {}
|
|
12380
12382
|
return {
|
|
@@ -12394,7 +12396,8 @@ var EventBridgeBusProvider = class {
|
|
|
12394
12396
|
const descChanged = properties["Description"] !== previousProperties["Description"];
|
|
12395
12397
|
const kmsChanged = properties["KmsKeyIdentifier"] !== previousProperties["KmsKeyIdentifier"];
|
|
12396
12398
|
const dlcChanged = JSON.stringify(properties["DeadLetterConfig"]) !== JSON.stringify(previousProperties["DeadLetterConfig"]);
|
|
12397
|
-
|
|
12399
|
+
const logCfgChanged = JSON.stringify(properties["LogConfig"]) !== JSON.stringify(previousProperties["LogConfig"]);
|
|
12400
|
+
if (descChanged || kmsChanged || dlcChanged || logCfgChanged) {
|
|
12398
12401
|
const updateParams = { Name: physicalId };
|
|
12399
12402
|
if (properties["Description"] !== void 0) updateParams.Description = properties["Description"];
|
|
12400
12403
|
if (properties["KmsKeyIdentifier"] !== void 0) updateParams.KmsKeyIdentifier = properties["KmsKeyIdentifier"];
|
|
@@ -12402,6 +12405,7 @@ var EventBridgeBusProvider = class {
|
|
|
12402
12405
|
const dlcUpdate = sanitizeDeadLetterConfig(properties["DeadLetterConfig"]);
|
|
12403
12406
|
if (dlcUpdate) updateParams.DeadLetterConfig = dlcUpdate;
|
|
12404
12407
|
}
|
|
12408
|
+
if (properties["LogConfig"] !== void 0) updateParams.LogConfig = properties["LogConfig"];
|
|
12405
12409
|
await this.eventBridgeClient.send(new UpdateEventBusCommand(updateParams));
|
|
12406
12410
|
}
|
|
12407
12411
|
const newTags = properties["Tags"];
|
|
@@ -12516,6 +12520,12 @@ var EventBridgeBusProvider = class {
|
|
|
12516
12520
|
result["Description"] = resp.Description ?? "";
|
|
12517
12521
|
result["KmsKeyIdentifier"] = resp.KmsKeyIdentifier ?? "";
|
|
12518
12522
|
result["DeadLetterConfig"] = { Arn: resp.DeadLetterConfig?.Arn ?? "" };
|
|
12523
|
+
if (resp.LogConfig !== void 0) {
|
|
12524
|
+
const lc = {};
|
|
12525
|
+
if (resp.LogConfig.IncludeDetail !== void 0) lc["IncludeDetail"] = resp.LogConfig.IncludeDetail;
|
|
12526
|
+
if (resp.LogConfig.Level !== void 0) lc["Level"] = resp.LogConfig.Level;
|
|
12527
|
+
if (Object.keys(lc).length > 0) result["LogConfig"] = lc;
|
|
12528
|
+
}
|
|
12519
12529
|
if (resp.Policy) try {
|
|
12520
12530
|
result["Policy"] = JSON.parse(resp.Policy);
|
|
12521
12531
|
} catch {
|
|
@@ -14784,6 +14794,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
14784
14794
|
"RestApiId",
|
|
14785
14795
|
"Name",
|
|
14786
14796
|
"Type",
|
|
14797
|
+
"AuthType",
|
|
14787
14798
|
"ProviderARNs",
|
|
14788
14799
|
"AuthorizerUri",
|
|
14789
14800
|
"AuthorizerCredentials",
|
|
@@ -14990,6 +15001,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
14990
15001
|
restApiId,
|
|
14991
15002
|
name,
|
|
14992
15003
|
type,
|
|
15004
|
+
authType: properties["AuthType"],
|
|
14993
15005
|
providerARNs: providerArns,
|
|
14994
15006
|
authorizerUri: properties["AuthorizerUri"],
|
|
14995
15007
|
authorizerCredentials: properties["AuthorizerCredentials"],
|
|
@@ -15790,6 +15802,7 @@ var ApiGatewayProvider = class ApiGatewayProvider {
|
|
|
15790
15802
|
const result = { RestApiId: restApiId };
|
|
15791
15803
|
result["Name"] = resp.name ?? "";
|
|
15792
15804
|
if (resp.type !== void 0) result["Type"] = resp.type;
|
|
15805
|
+
if (resp.authType !== void 0) result["AuthType"] = resp.authType;
|
|
15793
15806
|
result["ProviderARNs"] = resp.providerARNs ? [...resp.providerARNs] : [];
|
|
15794
15807
|
result["AuthorizerUri"] = resp.authorizerUri ?? "";
|
|
15795
15808
|
result["AuthorizerCredentials"] = resp.authorizerCredentials ?? "";
|
|
@@ -51594,7 +51607,7 @@ function reorderArgs(argv) {
|
|
|
51594
51607
|
*/
|
|
51595
51608
|
async function main() {
|
|
51596
51609
|
const program = new Command();
|
|
51597
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
51610
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.190.0");
|
|
51598
51611
|
program.addCommand(createBootstrapCommand());
|
|
51599
51612
|
program.addCommand(createSynthCommand());
|
|
51600
51613
|
program.addCommand(createListCommand());
|