@go-to-k/cdkd 0.47.0 → 0.48.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
@@ -9181,8 +9181,7 @@ var IAMRoleProvider = class {
9181
9181
  marker = tagsResp.Marker;
9182
9182
  }
9183
9183
  const tags = normalizeAwsTagsToCfn(collected);
9184
- if (tags.length > 0)
9185
- result["Tags"] = tags;
9184
+ result["Tags"] = tags;
9186
9185
  } catch (err) {
9187
9186
  if (!(err instanceof NoSuchEntityException))
9188
9187
  throw err;
@@ -12205,8 +12204,7 @@ var S3BucketProvider = class {
12205
12204
  try {
12206
12205
  const resp = await this.s3Client.send(new GetBucketTaggingCommand({ Bucket: physicalId }));
12207
12206
  const tags = normalizeAwsTagsToCfn(resp.TagSet);
12208
- if (tags.length > 0)
12209
- result["Tags"] = tags;
12207
+ result["Tags"] = tags;
12210
12208
  } catch (err) {
12211
12209
  const e = err;
12212
12210
  if (e.name !== "NoSuchTagSet") {
@@ -12892,8 +12890,7 @@ var SQSQueueProvider = class {
12892
12890
  new ListQueueTagsCommand({ QueueUrl: physicalId })
12893
12891
  );
12894
12892
  const tags = normalizeAwsTagsToCfn(tagsResp.Tags);
12895
- if (tags.length > 0)
12896
- result["Tags"] = tags;
12893
+ result["Tags"] = tags;
12897
12894
  } catch (err) {
12898
12895
  if (err instanceof QueueDoesNotExist)
12899
12896
  return void 0;
@@ -13585,8 +13582,7 @@ var SNSTopicProvider = class {
13585
13582
  new ListTagsForResourceCommand({ ResourceArn: physicalId })
13586
13583
  );
13587
13584
  const tags = normalizeAwsTagsToCfn(tagsResp.Tags);
13588
- if (tags.length > 0)
13589
- result["Tags"] = tags;
13585
+ result["Tags"] = tags;
13590
13586
  } catch (err) {
13591
13587
  if (err instanceof NotFoundException)
13592
13588
  return void 0;
@@ -14872,8 +14868,7 @@ var LambdaFunctionProvider = class {
14872
14868
  result["VpcConfig"] = vpc;
14873
14869
  }
14874
14870
  const tags = normalizeAwsTagsToCfn(resp.Tags);
14875
- if (tags.length > 0)
14876
- result["Tags"] = tags;
14871
+ result["Tags"] = tags;
14877
14872
  return result;
14878
14873
  } catch (err) {
14879
14874
  if (err instanceof ResourceNotFoundException)
@@ -16445,8 +16440,7 @@ var DynamoDBTableProvider = class {
16445
16440
  new ListTagsOfResourceCommand({ ResourceArn: table.TableArn })
16446
16441
  );
16447
16442
  const tags = normalizeAwsTagsToCfn(tagsResp.Tags);
16448
- if (tags.length > 0)
16449
- result["Tags"] = tags;
16443
+ result["Tags"] = tags;
16450
16444
  } catch (err) {
16451
16445
  if (err instanceof ResourceNotFoundException6)
16452
16446
  return void 0;
@@ -16811,8 +16805,7 @@ var LogsLogGroupProvider = class {
16811
16805
  new ListTagsForResourceCommand2({ resourceArn: arnForTags })
16812
16806
  );
16813
16807
  const tags = normalizeAwsTagsToCfn(tagsResp.tags);
16814
- if (tags.length > 0)
16815
- result["Tags"] = tags;
16808
+ result["Tags"] = tags;
16816
16809
  } catch (err) {
16817
16810
  if (err instanceof ResourceNotFoundException7)
16818
16811
  return void 0;
@@ -17194,8 +17187,7 @@ var CloudWatchAlarmProvider = class {
17194
17187
  new ListTagsForResourceCommand3({ ResourceARN: alarm.AlarmArn })
17195
17188
  );
17196
17189
  const tags = normalizeAwsTagsToCfn(tagsResp.Tags);
17197
- if (tags.length > 0)
17198
- result["Tags"] = tags;
17190
+ result["Tags"] = tags;
17199
17191
  } catch (err) {
17200
17192
  this.logger.debug(
17201
17193
  `CloudWatch ListTagsForResource(${alarm.AlarmArn}) failed: ${err instanceof Error ? err.message : String(err)}`
@@ -17569,8 +17561,7 @@ var SecretsManagerSecretProvider = class {
17569
17561
  });
17570
17562
  }
17571
17563
  const tags = normalizeAwsTagsToCfn(resp.Tags);
17572
- if (tags.length > 0)
17573
- result["Tags"] = tags;
17564
+ result["Tags"] = tags;
17574
17565
  return result;
17575
17566
  } catch (err) {
17576
17567
  if (err instanceof ResourceNotFoundException8)
@@ -17932,8 +17923,7 @@ var SSMParameterProvider = class {
17932
17923
  })
17933
17924
  );
17934
17925
  const tags = normalizeAwsTagsToCfn(tagsResp.TagList);
17935
- if (tags.length > 0)
17936
- result["Tags"] = tags;
17926
+ result["Tags"] = tags;
17937
17927
  } catch {
17938
17928
  }
17939
17929
  return result;
@@ -18345,8 +18335,7 @@ var EventBridgeRuleProvider = class {
18345
18335
  new ListTagsForResourceCommand5({ ResourceARN: physicalId })
18346
18336
  );
18347
18337
  const tags = normalizeAwsTagsToCfn(tagsResp.Tags);
18348
- if (tags.length > 0)
18349
- result["Tags"] = tags;
18338
+ result["Tags"] = tags;
18350
18339
  } catch (err) {
18351
18340
  if (!(err instanceof ResourceNotFoundException9)) {
18352
18341
  throw err;
@@ -18762,8 +18751,7 @@ var EventBridgeBusProvider = class {
18762
18751
  new ListTagsForResourceCommand6({ ResourceARN: resp.Arn })
18763
18752
  );
18764
18753
  const tags = normalizeAwsTagsToCfn(tagsResp.Tags);
18765
- if (tags.length > 0)
18766
- result["Tags"] = tags;
18754
+ result["Tags"] = tags;
18767
18755
  } catch (err) {
18768
18756
  if (err instanceof ResourceNotFoundException10)
18769
18757
  return void 0;
@@ -23069,8 +23057,7 @@ var ApiGatewayV2Provider = class {
23069
23057
  if (resp.CorsConfiguration)
23070
23058
  result["CorsConfiguration"] = resp.CorsConfiguration;
23071
23059
  const tags = normalizeAwsTagsToCfn(resp.Tags);
23072
- if (tags.length > 0)
23073
- result["Tags"] = tags;
23060
+ result["Tags"] = tags;
23074
23061
  return result;
23075
23062
  } catch (err) {
23076
23063
  if (err instanceof NotFoundException4)
@@ -24596,8 +24583,7 @@ var StepFunctionsProvider = class {
24596
24583
  new ListTagsForResourceCommand8({ resourceArn: physicalId })
24597
24584
  );
24598
24585
  const tags = normalizeAwsTagsToCfn(tagsResp.tags);
24599
- if (tags.length > 0)
24600
- result["Tags"] = tags;
24586
+ result["Tags"] = tags;
24601
24587
  } catch (err) {
24602
24588
  if (!(err instanceof StateMachineDoesNotExist))
24603
24589
  throw err;
@@ -25489,8 +25475,7 @@ var ECSProvider = class {
25489
25475
  }));
25490
25476
  }
25491
25477
  const tags = normalizeAwsTagsToCfn(c.tags);
25492
- if (tags.length > 0)
25493
- result["Tags"] = tags;
25478
+ result["Tags"] = tags;
25494
25479
  return result;
25495
25480
  }
25496
25481
  async readCurrentStateService(physicalId) {
@@ -25560,8 +25545,7 @@ var ECSProvider = class {
25560
25545
  result["ServiceRegistries"] = s.serviceRegistries;
25561
25546
  }
25562
25547
  const tags = normalizeAwsTagsToCfn(s.tags);
25563
- if (tags.length > 0)
25564
- result["Tags"] = tags;
25548
+ result["Tags"] = tags;
25565
25549
  return result;
25566
25550
  }
25567
25551
  async readCurrentStateTaskDefinition(physicalId) {
@@ -25612,8 +25596,7 @@ var ECSProvider = class {
25612
25596
  result["ContainerDefinitions"] = td.containerDefinitions;
25613
25597
  }
25614
25598
  const tags = normalizeAwsTagsToCfn(resp.tags);
25615
- if (tags.length > 0)
25616
- result["Tags"] = tags;
25599
+ result["Tags"] = tags;
25617
25600
  return result;
25618
25601
  }
25619
25602
  /**
@@ -26403,8 +26386,7 @@ var ELBv2Provider = class {
26403
26386
  const resp = await this.getClient().send(new DescribeTagsCommand({ ResourceArns: [arn] }));
26404
26387
  const tagDesc = resp.TagDescriptions?.[0];
26405
26388
  const tags = normalizeAwsTagsToCfn(tagDesc?.Tags);
26406
- if (tags.length > 0)
26407
- result["Tags"] = tags;
26389
+ result["Tags"] = tags;
26408
26390
  } catch (err) {
26409
26391
  this.logger.debug(
26410
26392
  `ELBv2 DescribeTags(${arn}) failed: ${err instanceof Error ? err.message : String(err)}`
@@ -27316,8 +27298,7 @@ var RDSProvider = class {
27316
27298
  new ListTagsForResourceCommand10({ ResourceName: arn })
27317
27299
  );
27318
27300
  const tags = normalizeAwsTagsToCfn(tagsResp.TagList);
27319
- if (tags.length > 0)
27320
- result["Tags"] = tags;
27301
+ result["Tags"] = tags;
27321
27302
  } catch (err) {
27322
27303
  this.logger.debug(
27323
27304
  `RDS ListTagsForResource(${arn}) failed: ${err instanceof Error ? err.message : String(err)}`
@@ -28615,8 +28596,7 @@ var WAFv2WebACLProvider = class {
28615
28596
  new ListTagsForResourceCommand12({ ResourceARN: physicalId })
28616
28597
  );
28617
28598
  const tags = normalizeAwsTagsToCfn(tagsResp.TagInfoForResource?.TagList);
28618
- if (tags.length > 0)
28619
- result["Tags"] = tags;
28599
+ result["Tags"] = tags;
28620
28600
  } catch (err) {
28621
28601
  this.logger.debug(
28622
28602
  `WAFv2 ListTagsForResource(${physicalId}) failed: ${err instanceof Error ? err.message : String(err)}`
@@ -29747,8 +29727,7 @@ var ElastiCacheProvider = class {
29747
29727
  new ListTagsForResourceCommand14({ ResourceName: arn })
29748
29728
  );
29749
29729
  const tags = normalizeAwsTagsToCfn(tagsResp.TagList);
29750
- if (tags.length > 0)
29751
- result["Tags"] = tags;
29730
+ result["Tags"] = tags;
29752
29731
  } catch (err) {
29753
29732
  this.logger.debug(
29754
29733
  `ElastiCache ListTagsForResource(${arn}) failed: ${err instanceof Error ? err.message : String(err)}`
@@ -30321,8 +30300,7 @@ var ServiceDiscoveryProvider = class {
30321
30300
  new ListTagsForResourceCommand15({ ResourceARN: arn })
30322
30301
  );
30323
30302
  const tags = normalizeAwsTagsToCfn(tagsResp.Tags);
30324
- if (tags.length > 0)
30325
- result["Tags"] = tags;
30303
+ result["Tags"] = tags;
30326
30304
  } catch (err) {
30327
30305
  this.logger.debug(
30328
30306
  `ServiceDiscovery ListTagsForResource(${arn}) failed: ${err instanceof Error ? err.message : String(err)}`
@@ -31046,8 +31024,7 @@ var AppSyncProvider = class {
31046
31024
  result["LogConfig"] = log;
31047
31025
  }
31048
31026
  const tags = normalizeAwsTagsToCfn(api.tags);
31049
- if (tags.length > 0)
31050
- result["Tags"] = tags;
31027
+ result["Tags"] = tags;
31051
31028
  return result;
31052
31029
  }
31053
31030
  async readDataSource(physicalId) {
@@ -32346,8 +32323,7 @@ var KMSProvider = class {
32346
32323
  new ListResourceTagsCommand({ KeyId: md.KeyId })
32347
32324
  );
32348
32325
  const tags = normalizeAwsTagsToCfn(tagsResp.Tags);
32349
- if (tags.length > 0)
32350
- result["Tags"] = tags;
32326
+ result["Tags"] = tags;
32351
32327
  } catch (err) {
32352
32328
  if (err instanceof NotFoundException5)
32353
32329
  return void 0;
@@ -32791,8 +32767,7 @@ var KinesisStreamProvider = class {
32791
32767
  new ListTagsForStreamCommand({ StreamName: physicalId })
32792
32768
  );
32793
32769
  const tags = normalizeAwsTagsToCfn(tagsResp.Tags);
32794
- if (tags.length > 0)
32795
- result["Tags"] = tags;
32770
+ result["Tags"] = tags;
32796
32771
  } catch (err) {
32797
32772
  if (err instanceof ResourceNotFoundException13)
32798
32773
  return void 0;
@@ -33992,8 +33967,7 @@ var FirehoseProvider = class {
33992
33967
  new ListTagsForDeliveryStreamCommand({ DeliveryStreamName: physicalId })
33993
33968
  );
33994
33969
  const tags = normalizeAwsTagsToCfn(tagsResp.Tags);
33995
- if (tags.length > 0)
33996
- result["Tags"] = tags;
33970
+ result["Tags"] = tags;
33997
33971
  } catch (err) {
33998
33972
  if (err instanceof ResourceNotFoundException14)
33999
33973
  return void 0;
@@ -34410,8 +34384,7 @@ var CloudTrailProvider = class {
34410
34384
  new ListTagsCommand3({ ResourceIdList: [trail.TrailARN] })
34411
34385
  );
34412
34386
  const tags = normalizeAwsTagsToCfn(tagsResp.ResourceTagList?.[0]?.TagsList);
34413
- if (tags.length > 0)
34414
- result["Tags"] = tags;
34387
+ result["Tags"] = tags;
34415
34388
  } catch (err) {
34416
34389
  this.logger.debug(
34417
34390
  `CloudTrail ListTags(${trail.TrailARN}) failed: ${err instanceof Error ? err.message : String(err)}`
@@ -34875,8 +34848,7 @@ var CodeBuildProvider = class {
34875
34848
  result["Environment"] = env;
34876
34849
  }
34877
34850
  const tags = normalizeAwsTagsToCfn(project.tags);
34878
- if (tags.length > 0)
34879
- result["Tags"] = tags;
34851
+ result["Tags"] = tags;
34880
34852
  return result;
34881
34853
  }
34882
34854
  async import(input) {
@@ -36471,8 +36443,7 @@ var ECRProvider = class {
36471
36443
  new ListTagsForResourceCommand18({ resourceArn: r.repositoryArn })
36472
36444
  );
36473
36445
  const tags = normalizeAwsTagsToCfn(tagsResp.tags);
36474
- if (tags.length > 0)
36475
- result["Tags"] = tags;
36446
+ result["Tags"] = tags;
36476
36447
  } catch (err) {
36477
36448
  if (!(err instanceof RepositoryNotFoundException))
36478
36449
  throw err;
@@ -42666,7 +42637,7 @@ function reorderArgs(argv) {
42666
42637
  }
42667
42638
  async function main() {
42668
42639
  const program = new Command14();
42669
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.47.0");
42640
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.48.0");
42670
42641
  program.addCommand(createBootstrapCommand());
42671
42642
  program.addCommand(createSynthCommand());
42672
42643
  program.addCommand(createListCommand());