@go-to-k/cdkd 0.230.1 → 0.230.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.
@@ -11,6 +11,7 @@ import { DescribeAvailabilityZonesCommand, DescribeImagesCommand, DescribeInstan
11
11
  import { DescribeTableCommand } from "@aws-sdk/client-dynamodb";
12
12
  import { CloudFormationClient, CreateChangeSetCommand, DeleteStackCommand, DescribeChangeSetCommand, DescribeTypeCommand, GetTemplateCommand, waitUntilChangeSetCreateComplete } from "@aws-sdk/client-cloudformation";
13
13
  import { GetRestApiCommand } from "@aws-sdk/client-api-gateway";
14
+ import { DescribeApiDestinationCommand, DescribeConnectionCommand } from "@aws-sdk/client-eventbridge";
14
15
  import { GetSecretValueCommand } from "@aws-sdk/client-secrets-manager";
15
16
  import { GetParameterCommand, SSMClient } from "@aws-sdk/client-ssm";
16
17
  import { GetCloudFrontOriginAccessIdentityCommand } from "@aws-sdk/client-cloudfront";
@@ -4917,6 +4918,14 @@ var ReplacementRulesRegistry = class {
4917
4918
  "ProvisionedConcurrencyConfig",
4918
4919
  "RuntimePolicy"
4919
4920
  ]) });
4921
+ this.rules.set("AWS::Lambda::EventInvokeConfig", {
4922
+ replacementProperties: new Set(["FunctionName", "Qualifier"]),
4923
+ updateableProperties: new Set([
4924
+ "MaximumEventAgeInSeconds",
4925
+ "MaximumRetryAttempts",
4926
+ "DestinationConfig"
4927
+ ])
4928
+ });
4920
4929
  this.rules.set("AWS::DynamoDB::Table", {
4921
4930
  replacementProperties: new Set(["TableName", "KeySchema"]),
4922
4931
  updateableProperties: new Set([
@@ -7269,9 +7278,6 @@ const NON_PROVISIONABLE_TYPES = new Set([
7269
7278
  "AWS::AppMesh::VirtualRouter",
7270
7279
  "AWS::AppMesh::VirtualService",
7271
7280
  "AWS::AppStream::Fleet",
7272
- "AWS::AppStream::StackFleetAssociation",
7273
- "AWS::AppStream::StackUserAssociation",
7274
- "AWS::AppStream::User",
7275
7281
  "AWS::AppSync::ApiCache",
7276
7282
  "AWS::AutoScalingPlans::ScalingPlan",
7277
7283
  "AWS::BedrockAgentCore::Browser",
@@ -7313,7 +7319,6 @@ const NON_PROVISIONABLE_TYPES = new Set([
7313
7319
  "AWS::EC2::VPNGatewayRoutePropagation",
7314
7320
  "AWS::ElastiCache::SecurityGroup",
7315
7321
  "AWS::ElastiCache::SecurityGroupIngress",
7316
- "AWS::ElasticLoadBalancing::LoadBalancer",
7317
7322
  "AWS::ElasticLoadBalancingV2::ListenerCertificate",
7318
7323
  "AWS::Elasticsearch::Domain",
7319
7324
  "AWS::EMR::Cluster",
@@ -7347,6 +7352,7 @@ const NON_PROVISIONABLE_TYPES = new Set([
7347
7352
  "AWS::Greengrass::ResourceDefinitionVersion",
7348
7353
  "AWS::Greengrass::SubscriptionDefinition",
7349
7354
  "AWS::Greengrass::SubscriptionDefinitionVersion",
7355
+ "AWS::GuardDuty::ThreatEntitySet",
7350
7356
  "AWS::IAM::AccessKey",
7351
7357
  "AWS::IoT::PolicyPrincipalAttachment",
7352
7358
  "AWS::IoT::ThingPrincipalAttachment",
@@ -7360,7 +7366,6 @@ const NON_PROVISIONABLE_TYPES = new Set([
7360
7366
  "AWS::LakeFormation::DataLakeSettings",
7361
7367
  "AWS::LakeFormation::Permissions",
7362
7368
  "AWS::LakeFormation::Resource",
7363
- "AWS::LicenseManager::License",
7364
7369
  "AWS::ManagedBlockchain::Member",
7365
7370
  "AWS::ManagedBlockchain::Node",
7366
7371
  "AWS::MediaConvert::JobTemplate",
@@ -7838,6 +7843,37 @@ var CloudControlProvider = class {
7838
7843
  this.logger.debug(`Failed to get Lambda URL config for ${physicalId}: ${error instanceof Error ? error.message : String(error)}`);
7839
7844
  }
7840
7845
  break;
7846
+ case "AWS::Events::Connection":
7847
+ if (!enriched["Arn"] || !enriched["SecretArn"] || !enriched["ArnForPolicy"]) try {
7848
+ const conn = await getAwsClients().eventBridge.send(new DescribeConnectionCommand({ Name: physicalId }));
7849
+ if (conn.ConnectionArn) {
7850
+ if (!enriched["Arn"]) enriched["Arn"] = conn.ConnectionArn;
7851
+ if (!enriched["ArnForPolicy"]) {
7852
+ const lastSlash = conn.ConnectionArn.lastIndexOf("/");
7853
+ if (lastSlash > 0) enriched["ArnForPolicy"] = conn.ConnectionArn.slice(0, lastSlash);
7854
+ }
7855
+ }
7856
+ if (conn.SecretArn && !enriched["SecretArn"]) enriched["SecretArn"] = conn.SecretArn;
7857
+ this.logger.debug(`Enriched Events Connection ${physicalId} with Arn/SecretArn/ArnForPolicy from DescribeConnection`);
7858
+ } catch (error) {
7859
+ this.logger.debug(`Failed to enrich Events Connection ${physicalId}: ${error instanceof Error ? error.message : String(error)}`);
7860
+ }
7861
+ break;
7862
+ case "AWS::Events::ApiDestination":
7863
+ if (!enriched["Arn"] || !enriched["ArnForPolicy"]) try {
7864
+ const dest = await getAwsClients().eventBridge.send(new DescribeApiDestinationCommand({ Name: physicalId }));
7865
+ if (dest.ApiDestinationArn) {
7866
+ if (!enriched["Arn"]) enriched["Arn"] = dest.ApiDestinationArn;
7867
+ if (!enriched["ArnForPolicy"]) {
7868
+ const lastSlash = dest.ApiDestinationArn.lastIndexOf("/");
7869
+ if (lastSlash > 0) enriched["ArnForPolicy"] = dest.ApiDestinationArn.slice(0, lastSlash);
7870
+ }
7871
+ }
7872
+ this.logger.debug(`Enriched Events ApiDestination ${physicalId} with Arn/ArnForPolicy from DescribeApiDestination`);
7873
+ } catch (error) {
7874
+ this.logger.debug(`Failed to enrich Events ApiDestination ${physicalId}: ${error instanceof Error ? error.message : String(error)}`);
7875
+ }
7876
+ break;
7841
7877
  case "AWS::ElastiCache::ReplicationGroup":
7842
7878
  try {
7843
7879
  const rg = (await new ElastiCacheClient({}).send(new DescribeReplicationGroupsCommand({ ReplicationGroupId: physicalId }))).ReplicationGroups?.[0];
@@ -9938,6 +9974,16 @@ const PROPERTY_COVERAGE_BY_TYPE = new Map([
9938
9974
  ]),
9939
9975
  silentDrop: /* @__PURE__ */ new Map()
9940
9976
  }],
9977
+ ["AWS::Lambda::EventInvokeConfig", {
9978
+ handled: new Set([
9979
+ "DestinationConfig",
9980
+ "FunctionName",
9981
+ "MaximumEventAgeInSeconds",
9982
+ "MaximumRetryAttempts",
9983
+ "Qualifier"
9984
+ ]),
9985
+ silentDrop: /* @__PURE__ */ new Map()
9986
+ }],
9941
9987
  ["AWS::Lambda::EventSourceMapping", {
9942
9988
  handled: new Set([
9943
9989
  "AmazonManagedKafkaEventSourceConfig",
@@ -13664,4 +13710,4 @@ var DeployEngine = class {
13664
13710
 
13665
13711
  //#endregion
13666
13712
  export { CFN_TEMPLATE_BODY_LIMIT as $, LockManager as A, runDockerForeground as B, findActionableSilentDrops as C, DiffCalculator as D, applyRoleArnIfSet as E, stringifyValue as F, getDefaultStateBucketName as G, AssetManifestLoader as H, WorkGraph as I, resolveCaptureObservedState as J, getLegacyStateBucketName as K, buildDockerImage as L, rebuildClientForBucketRegion as M, shouldRetainResource as N, DagBuilder as O, AssetPublisher as P, warnDeprecatedNoPrefixCliFlag as Q, formatDockerLoginError as R, ProviderRegistry as S, IntrinsicFunctionResolver as T, getDockerImageBySourceHash as U, runDockerStreaming as V, Synthesizer as W, resolveStateBucketWithDefault as X, resolveSkipPrefix as Y, resolveStateBucketWithDefaultAndSource as Z, green as _, withRetry as a, clearBucketRegionCache as at, IAMRoleProvider as b, computeImplicitDeleteEdges as c, isStatefulRecreateTargetSync as d, CFN_TEMPLATE_URL_LIMIT as et, renderStatefulReason as f, gray as g, cyan as h, withResourceDeadline as i, AssemblyReader as it, S3StateBackend as j, TemplateParser as k, extractDeploymentEventError as l, bold as m, DEFAULT_RESOURCE_WARN_AFTER_MS as n, findLargeInlineResources as nt, isRetryableTransientError as o, resolveBucketRegion as ot, formatResourceLine as p, resolveApp as q, DeployEngine as r, uploadCfnTemplate as rt, IMPLICIT_DELETE_DEPENDENCIES as s, DEFAULT_RESOURCE_TIMEOUT_MS as t, MIGRATE_TMP_PREFIX as tt, MULTI_REGION_RECREATE_BLOCKED_TYPES as u, red as v, CloudControlProvider as w, collectInlinePolicyNamesManagedBySiblings as x, yellow as y, getDockerCmd as z };
13667
- //# sourceMappingURL=deploy-engine-_N5kVjZN.js.map
13713
+ //# sourceMappingURL=deploy-engine-BGL0DPBv.js.map