@go-to-k/cdkd 0.50.1 → 0.50.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/cli.js CHANGED
@@ -17088,15 +17088,10 @@ var CloudWatchAlarmProvider = class {
17088
17088
  const result = {};
17089
17089
  if (alarm.AlarmName !== void 0)
17090
17090
  result["AlarmName"] = alarm.AlarmName;
17091
- if (alarm.AlarmDescription !== void 0 && alarm.AlarmDescription !== "") {
17092
- result["AlarmDescription"] = alarm.AlarmDescription;
17093
- }
17094
- if (alarm.MetricName !== void 0)
17095
- result["MetricName"] = alarm.MetricName;
17096
- if (alarm.Namespace !== void 0)
17097
- result["Namespace"] = alarm.Namespace;
17098
- if (alarm.Statistic !== void 0)
17099
- result["Statistic"] = alarm.Statistic;
17091
+ result["AlarmDescription"] = alarm.AlarmDescription ?? "";
17092
+ result["MetricName"] = alarm.MetricName ?? "";
17093
+ result["Namespace"] = alarm.Namespace ?? "";
17094
+ result["Statistic"] = alarm.Statistic ?? "";
17100
17095
  if (alarm.ComparisonOperator !== void 0) {
17101
17096
  result["ComparisonOperator"] = alarm.ComparisonOperator;
17102
17097
  }
@@ -17110,31 +17105,17 @@ var CloudWatchAlarmProvider = class {
17110
17105
  if (alarm.DatapointsToAlarm !== void 0) {
17111
17106
  result["DatapointsToAlarm"] = alarm.DatapointsToAlarm;
17112
17107
  }
17113
- if (alarm.ActionsEnabled !== void 0)
17114
- result["ActionsEnabled"] = alarm.ActionsEnabled;
17115
- if (alarm.AlarmActions && alarm.AlarmActions.length > 0) {
17116
- result["AlarmActions"] = [...alarm.AlarmActions];
17117
- }
17118
- if (alarm.OKActions && alarm.OKActions.length > 0) {
17119
- result["OKActions"] = [...alarm.OKActions];
17120
- }
17121
- if (alarm.InsufficientDataActions && alarm.InsufficientDataActions.length > 0) {
17122
- result["InsufficientDataActions"] = [...alarm.InsufficientDataActions];
17123
- }
17124
- if (alarm.TreatMissingData !== void 0) {
17125
- result["TreatMissingData"] = alarm.TreatMissingData;
17126
- }
17127
- if (alarm.Unit !== void 0)
17128
- result["Unit"] = alarm.Unit;
17129
- if (alarm.Dimensions && alarm.Dimensions.length > 0) {
17130
- result["Dimensions"] = alarm.Dimensions.map((d) => ({
17131
- ...d.Name !== void 0 ? { Name: d.Name } : {},
17132
- ...d.Value !== void 0 ? { Value: d.Value } : {}
17133
- }));
17134
- }
17135
- if (alarm.Metrics && alarm.Metrics.length > 0) {
17136
- result["Metrics"] = alarm.Metrics.map((m) => m);
17137
- }
17108
+ result["ActionsEnabled"] = alarm.ActionsEnabled ?? true;
17109
+ result["AlarmActions"] = alarm.AlarmActions ? [...alarm.AlarmActions] : [];
17110
+ result["OKActions"] = alarm.OKActions ? [...alarm.OKActions] : [];
17111
+ result["InsufficientDataActions"] = alarm.InsufficientDataActions ? [...alarm.InsufficientDataActions] : [];
17112
+ result["TreatMissingData"] = alarm.TreatMissingData ?? "";
17113
+ result["Unit"] = alarm.Unit ?? "";
17114
+ result["Dimensions"] = (alarm.Dimensions ?? []).map((d) => ({
17115
+ ...d.Name !== void 0 ? { Name: d.Name } : {},
17116
+ ...d.Value !== void 0 ? { Value: d.Value } : {}
17117
+ }));
17118
+ result["Metrics"] = (alarm.Metrics ?? []).map((m) => m);
17138
17119
  if (alarm.AlarmArn) {
17139
17120
  try {
17140
17121
  const tagsResp = await this.cloudWatchClient.send(
@@ -22223,23 +22204,14 @@ var ApiGatewayProvider = class _ApiGatewayProvider {
22223
22204
  new GetAuthorizerCommand({ restApiId, authorizerId: physicalId })
22224
22205
  );
22225
22206
  const result = { RestApiId: restApiId };
22226
- if (resp.name !== void 0)
22227
- result["Name"] = resp.name;
22207
+ result["Name"] = resp.name ?? "";
22228
22208
  if (resp.type !== void 0)
22229
22209
  result["Type"] = resp.type;
22230
- if (resp.providerARNs !== void 0 && resp.providerARNs.length > 0) {
22231
- result["ProviderARNs"] = [...resp.providerARNs];
22232
- }
22233
- if (resp.authorizerUri !== void 0)
22234
- result["AuthorizerUri"] = resp.authorizerUri;
22235
- if (resp.authorizerCredentials !== void 0) {
22236
- result["AuthorizerCredentials"] = resp.authorizerCredentials;
22237
- }
22238
- if (resp.identitySource !== void 0)
22239
- result["IdentitySource"] = resp.identitySource;
22240
- if (resp.identityValidationExpression !== void 0) {
22241
- result["IdentityValidationExpression"] = resp.identityValidationExpression;
22242
- }
22210
+ result["ProviderARNs"] = resp.providerARNs ? [...resp.providerARNs] : [];
22211
+ result["AuthorizerUri"] = resp.authorizerUri ?? "";
22212
+ result["AuthorizerCredentials"] = resp.authorizerCredentials ?? "";
22213
+ result["IdentitySource"] = resp.identitySource ?? "";
22214
+ result["IdentityValidationExpression"] = resp.identityValidationExpression ?? "";
22243
22215
  if (resp.authorizerResultTtlInSeconds !== void 0) {
22244
22216
  result["AuthorizerResultTtlInSeconds"] = resp.authorizerResultTtlInSeconds;
22245
22217
  }
@@ -22259,8 +22231,7 @@ var ApiGatewayProvider = class _ApiGatewayProvider {
22259
22231
  new GetResourceCommand3({ restApiId, resourceId: physicalId })
22260
22232
  );
22261
22233
  const result = { RestApiId: restApiId };
22262
- if (resp.parentId !== void 0)
22263
- result["ParentId"] = resp.parentId;
22234
+ result["ParentId"] = resp.parentId ?? "";
22264
22235
  if (resp.pathPart !== void 0)
22265
22236
  result["PathPart"] = resp.pathPart;
22266
22237
  return result;
@@ -22279,9 +22250,7 @@ var ApiGatewayProvider = class _ApiGatewayProvider {
22279
22250
  new GetDeploymentCommand({ restApiId, deploymentId: physicalId })
22280
22251
  );
22281
22252
  const result = { RestApiId: restApiId };
22282
- if (resp.description !== void 0 && resp.description !== "") {
22283
- result["Description"] = resp.description;
22284
- }
22253
+ result["Description"] = resp.description ?? "";
22285
22254
  return result;
22286
22255
  } catch (err) {
22287
22256
  if (err instanceof NotFoundException3)
@@ -22300,11 +22269,8 @@ var ApiGatewayProvider = class _ApiGatewayProvider {
22300
22269
  const result = { RestApiId: restApiId };
22301
22270
  if (resp.stageName !== void 0)
22302
22271
  result["StageName"] = resp.stageName;
22303
- if (resp.deploymentId !== void 0)
22304
- result["DeploymentId"] = resp.deploymentId;
22305
- if (resp.description !== void 0 && resp.description !== "") {
22306
- result["Description"] = resp.description;
22307
- }
22272
+ result["DeploymentId"] = resp.deploymentId ?? "";
22273
+ result["Description"] = resp.description ?? "";
22308
22274
  return result;
22309
22275
  } catch (err) {
22310
22276
  if (err instanceof NotFoundException3)
@@ -22316,9 +22282,7 @@ var ApiGatewayProvider = class _ApiGatewayProvider {
22316
22282
  try {
22317
22283
  const resp = await this.apiGatewayClient.send(new GetAccountCommand({}));
22318
22284
  const result = {};
22319
- if (resp.cloudwatchRoleArn !== void 0) {
22320
- result["CloudWatchRoleArn"] = resp.cloudwatchRoleArn;
22321
- }
22285
+ result["CloudWatchRoleArn"] = resp.cloudwatchRoleArn ?? "";
22322
22286
  return result;
22323
22287
  } catch (err) {
22324
22288
  if (err instanceof NotFoundException3)
@@ -22345,12 +22309,9 @@ var ApiGatewayProvider = class _ApiGatewayProvider {
22345
22309
  if (resp.authorizationType !== void 0) {
22346
22310
  result["AuthorizationType"] = resp.authorizationType;
22347
22311
  }
22348
- if (resp.authorizerId !== void 0)
22349
- result["AuthorizerId"] = resp.authorizerId;
22350
- if (resp.methodIntegration)
22351
- result["Integration"] = resp.methodIntegration;
22352
- if (resp.methodResponses)
22353
- result["MethodResponses"] = resp.methodResponses;
22312
+ result["AuthorizerId"] = resp.authorizerId ?? "";
22313
+ result["Integration"] = resp.methodIntegration ?? {};
22314
+ result["MethodResponses"] = resp.methodResponses ?? {};
22354
22315
  return result;
22355
22316
  } catch (err) {
22356
22317
  if (err instanceof NotFoundException3)
@@ -22980,15 +22941,11 @@ var ApiGatewayV2Provider = class {
22980
22941
  try {
22981
22942
  const resp = await this.getClient().send(new GetApiCommand({ ApiId: physicalId }));
22982
22943
  const result = {};
22983
- if (resp.Name !== void 0)
22984
- result["Name"] = resp.Name;
22944
+ result["Name"] = resp.Name ?? "";
22985
22945
  if (resp.ProtocolType !== void 0)
22986
22946
  result["ProtocolType"] = resp.ProtocolType;
22987
- if (resp.Description !== void 0 && resp.Description !== "") {
22988
- result["Description"] = resp.Description;
22989
- }
22990
- if (resp.CorsConfiguration)
22991
- result["CorsConfiguration"] = resp.CorsConfiguration;
22947
+ result["Description"] = resp.Description ?? "";
22948
+ result["CorsConfiguration"] = resp.CorsConfiguration ?? {};
22992
22949
  const tags = normalizeAwsTagsToCfn(resp.Tags);
22993
22950
  result["Tags"] = tags;
22994
22951
  return result;
@@ -23009,11 +22966,8 @@ var ApiGatewayV2Provider = class {
23009
22966
  const result = { ApiId: apiId };
23010
22967
  if (resp.StageName !== void 0)
23011
22968
  result["StageName"] = resp.StageName;
23012
- if (resp.AutoDeploy !== void 0)
23013
- result["AutoDeploy"] = resp.AutoDeploy;
23014
- if (resp.Description !== void 0 && resp.Description !== "") {
23015
- result["Description"] = resp.Description;
23016
- }
22969
+ result["AutoDeploy"] = resp.AutoDeploy ?? false;
22970
+ result["Description"] = resp.Description ?? "";
23017
22971
  return result;
23018
22972
  } catch (err) {
23019
22973
  if (err instanceof NotFoundException4)
@@ -23032,13 +22986,9 @@ var ApiGatewayV2Provider = class {
23032
22986
  const result = { ApiId: apiId };
23033
22987
  if (resp.IntegrationType !== void 0)
23034
22988
  result["IntegrationType"] = resp.IntegrationType;
23035
- if (resp.IntegrationUri !== void 0)
23036
- result["IntegrationUri"] = resp.IntegrationUri;
23037
- if (resp.IntegrationMethod !== void 0)
23038
- result["IntegrationMethod"] = resp.IntegrationMethod;
23039
- if (resp.PayloadFormatVersion !== void 0) {
23040
- result["PayloadFormatVersion"] = resp.PayloadFormatVersion;
23041
- }
22989
+ result["IntegrationUri"] = resp.IntegrationUri ?? "";
22990
+ result["IntegrationMethod"] = resp.IntegrationMethod ?? "";
22991
+ result["PayloadFormatVersion"] = resp.PayloadFormatVersion ?? "";
23042
22992
  return result;
23043
22993
  } catch (err) {
23044
22994
  if (err instanceof NotFoundException4)
@@ -23057,12 +23007,9 @@ var ApiGatewayV2Provider = class {
23057
23007
  const result = { ApiId: apiId };
23058
23008
  if (resp.RouteKey !== void 0)
23059
23009
  result["RouteKey"] = resp.RouteKey;
23060
- if (resp.Target !== void 0)
23061
- result["Target"] = resp.Target;
23062
- if (resp.AuthorizationType !== void 0)
23063
- result["AuthorizationType"] = resp.AuthorizationType;
23064
- if (resp.AuthorizerId !== void 0)
23065
- result["AuthorizerId"] = resp.AuthorizerId;
23010
+ result["Target"] = resp.Target ?? "";
23011
+ result["AuthorizationType"] = resp.AuthorizationType ?? "";
23012
+ result["AuthorizerId"] = resp.AuthorizerId ?? "";
23066
23013
  return result;
23067
23014
  } catch (err) {
23068
23015
  if (err instanceof NotFoundException4)
@@ -23081,18 +23028,11 @@ var ApiGatewayV2Provider = class {
23081
23028
  const result = { ApiId: apiId };
23082
23029
  if (resp.AuthorizerType !== void 0)
23083
23030
  result["AuthorizerType"] = resp.AuthorizerType;
23084
- if (resp.Name !== void 0)
23085
- result["Name"] = resp.Name;
23086
- if (resp.IdentitySource !== void 0 && resp.IdentitySource.length > 0) {
23087
- result["IdentitySource"] = [...resp.IdentitySource];
23088
- }
23089
- if (resp.JwtConfiguration)
23090
- result["JwtConfiguration"] = resp.JwtConfiguration;
23091
- if (resp.AuthorizerUri !== void 0)
23092
- result["AuthorizerUri"] = resp.AuthorizerUri;
23093
- if (resp.AuthorizerPayloadFormatVersion !== void 0) {
23094
- result["AuthorizerPayloadFormatVersion"] = resp.AuthorizerPayloadFormatVersion;
23095
- }
23031
+ result["Name"] = resp.Name ?? "";
23032
+ result["IdentitySource"] = resp.IdentitySource ? [...resp.IdentitySource] : [];
23033
+ result["JwtConfiguration"] = resp.JwtConfiguration ?? {};
23034
+ result["AuthorizerUri"] = resp.AuthorizerUri ?? "";
23035
+ result["AuthorizerPayloadFormatVersion"] = resp.AuthorizerPayloadFormatVersion ?? "";
23096
23036
  return result;
23097
23037
  } catch (err) {
23098
23038
  if (err instanceof NotFoundException4)
@@ -30858,21 +30798,19 @@ var AppSyncProvider = class {
30858
30798
  if (api.authenticationType !== void 0) {
30859
30799
  result["AuthenticationType"] = api.authenticationType;
30860
30800
  }
30861
- if (api.xrayEnabled !== void 0)
30862
- result["XrayEnabled"] = api.xrayEnabled;
30863
- if (api.logConfig) {
30801
+ result["XrayEnabled"] = api.xrayEnabled ?? false;
30802
+ {
30864
30803
  const log = {};
30865
- if (api.logConfig.cloudWatchLogsRoleArn !== void 0) {
30804
+ if (api.logConfig?.cloudWatchLogsRoleArn !== void 0) {
30866
30805
  log["CloudWatchLogsRoleArn"] = api.logConfig.cloudWatchLogsRoleArn;
30867
30806
  }
30868
- if (api.logConfig.fieldLogLevel !== void 0) {
30807
+ if (api.logConfig?.fieldLogLevel !== void 0) {
30869
30808
  log["FieldLogLevel"] = api.logConfig.fieldLogLevel;
30870
30809
  }
30871
- if (api.logConfig.excludeVerboseContent !== void 0) {
30810
+ if (api.logConfig?.excludeVerboseContent !== void 0) {
30872
30811
  log["ExcludeVerboseContent"] = api.logConfig.excludeVerboseContent;
30873
30812
  }
30874
- if (Object.keys(log).length > 0)
30875
- result["LogConfig"] = log;
30813
+ result["LogConfig"] = log;
30876
30814
  }
30877
30815
  const tags = normalizeAwsTagsToCfn(api.tags);
30878
30816
  result["Tags"] = tags;
@@ -30898,11 +30836,8 @@ var AppSyncProvider = class {
30898
30836
  result["Name"] = ds.name;
30899
30837
  if (ds.type !== void 0)
30900
30838
  result["Type"] = ds.type;
30901
- if (ds.description !== void 0 && ds.description !== "") {
30902
- result["Description"] = ds.description;
30903
- }
30904
- if (ds.serviceRoleArn !== void 0)
30905
- result["ServiceRoleArn"] = ds.serviceRoleArn;
30839
+ result["Description"] = ds.description ?? "";
30840
+ result["ServiceRoleArn"] = ds.serviceRoleArn ?? "";
30906
30841
  if (ds.dynamodbConfig) {
30907
30842
  const dynamo = {};
30908
30843
  if (ds.dynamodbConfig.tableName !== void 0)
@@ -30948,31 +30883,24 @@ var AppSyncProvider = class {
30948
30883
  result["TypeName"] = resolver.typeName;
30949
30884
  if (resolver.fieldName !== void 0)
30950
30885
  result["FieldName"] = resolver.fieldName;
30951
- if (resolver.dataSourceName !== void 0)
30952
- result["DataSourceName"] = resolver.dataSourceName;
30953
- if (resolver.requestMappingTemplate !== void 0) {
30954
- result["RequestMappingTemplate"] = resolver.requestMappingTemplate;
30955
- }
30956
- if (resolver.responseMappingTemplate !== void 0) {
30957
- result["ResponseMappingTemplate"] = resolver.responseMappingTemplate;
30958
- }
30886
+ result["DataSourceName"] = resolver.dataSourceName ?? "";
30887
+ result["RequestMappingTemplate"] = resolver.requestMappingTemplate ?? "";
30888
+ result["ResponseMappingTemplate"] = resolver.responseMappingTemplate ?? "";
30959
30889
  if (resolver.kind !== void 0)
30960
30890
  result["Kind"] = resolver.kind;
30961
- if (resolver.pipelineConfig?.functions && resolver.pipelineConfig.functions.length > 0) {
30962
- result["PipelineConfig"] = { Functions: [...resolver.pipelineConfig.functions] };
30963
- }
30964
- if (resolver.runtime) {
30891
+ result["PipelineConfig"] = {
30892
+ Functions: resolver.pipelineConfig?.functions ? [...resolver.pipelineConfig.functions] : []
30893
+ };
30894
+ {
30965
30895
  const runtime = {};
30966
- if (resolver.runtime.name !== void 0)
30896
+ if (resolver.runtime?.name !== void 0)
30967
30897
  runtime["Name"] = resolver.runtime.name;
30968
- if (resolver.runtime.runtimeVersion !== void 0) {
30898
+ if (resolver.runtime?.runtimeVersion !== void 0) {
30969
30899
  runtime["RuntimeVersion"] = resolver.runtime.runtimeVersion;
30970
30900
  }
30971
- if (Object.keys(runtime).length > 0)
30972
- result["Runtime"] = runtime;
30901
+ result["Runtime"] = runtime;
30973
30902
  }
30974
- if (resolver.code !== void 0)
30975
- result["Code"] = resolver.code;
30903
+ result["Code"] = resolver.code ?? "";
30976
30904
  return result;
30977
30905
  }
30978
30906
  async readApiKey(physicalId) {
@@ -30994,9 +30922,7 @@ var AppSyncProvider = class {
30994
30922
  for (const key of resp.apiKeys ?? []) {
30995
30923
  if (key.id === apiKeyId) {
30996
30924
  const result = { ApiId: apiId };
30997
- if (key.description !== void 0 && key.description !== "") {
30998
- result["Description"] = key.description;
30999
- }
30925
+ result["Description"] = key.description ?? "";
31000
30926
  if (key.expires !== void 0)
31001
30927
  result["Expires"] = key.expires;
31002
30928
  return result;
@@ -34583,105 +34509,93 @@ var CodeBuildProvider = class {
34583
34509
  const result = {};
34584
34510
  if (project.name !== void 0)
34585
34511
  result["Name"] = project.name;
34586
- if (project.description !== void 0 && project.description !== "") {
34587
- result["Description"] = project.description;
34588
- }
34589
- if (project.serviceRole !== void 0)
34590
- result["ServiceRole"] = project.serviceRole;
34512
+ result["Description"] = project.description ?? "";
34513
+ result["ServiceRole"] = project.serviceRole ?? "";
34591
34514
  if (project.timeoutInMinutes !== void 0) {
34592
34515
  result["TimeoutInMinutes"] = project.timeoutInMinutes;
34593
34516
  }
34594
34517
  if (project.queuedTimeoutInMinutes !== void 0) {
34595
34518
  result["QueuedTimeoutInMinutes"] = project.queuedTimeoutInMinutes;
34596
34519
  }
34597
- if (project.encryptionKey !== void 0)
34598
- result["EncryptionKey"] = project.encryptionKey;
34520
+ result["EncryptionKey"] = project.encryptionKey ?? "";
34599
34521
  if (project.concurrentBuildLimit !== void 0) {
34600
34522
  result["ConcurrentBuildLimit"] = project.concurrentBuildLimit;
34601
34523
  }
34602
- if (project.badge?.badgeEnabled !== void 0) {
34603
- result["BadgeEnabled"] = project.badge.badgeEnabled;
34604
- }
34605
- if (project.sourceVersion !== void 0)
34606
- result["SourceVersion"] = project.sourceVersion;
34607
- if (project.source) {
34524
+ result["BadgeEnabled"] = project.badge?.badgeEnabled ?? false;
34525
+ result["SourceVersion"] = project.sourceVersion ?? "";
34526
+ {
34608
34527
  const src = {};
34609
- if (project.source.type !== void 0)
34528
+ if (project.source?.type !== void 0)
34610
34529
  src["Type"] = project.source.type;
34611
- if (project.source.location !== void 0)
34530
+ if (project.source?.location !== void 0)
34612
34531
  src["Location"] = project.source.location;
34613
- if (project.source.buildspec !== void 0)
34532
+ if (project.source?.buildspec !== void 0)
34614
34533
  src["BuildSpec"] = project.source.buildspec;
34615
- if (project.source.gitCloneDepth !== void 0) {
34534
+ if (project.source?.gitCloneDepth !== void 0) {
34616
34535
  src["GitCloneDepth"] = project.source.gitCloneDepth;
34617
34536
  }
34618
- if (project.source.insecureSsl !== void 0)
34537
+ if (project.source?.insecureSsl !== void 0)
34619
34538
  src["InsecureSsl"] = project.source.insecureSsl;
34620
- if (project.source.reportBuildStatus !== void 0) {
34539
+ if (project.source?.reportBuildStatus !== void 0) {
34621
34540
  src["ReportBuildStatus"] = project.source.reportBuildStatus;
34622
34541
  }
34623
- if (Object.keys(src).length > 0)
34624
- result["Source"] = src;
34542
+ result["Source"] = src;
34625
34543
  }
34626
- if (project.artifacts) {
34544
+ {
34627
34545
  const art = {};
34628
- if (project.artifacts.type !== void 0)
34546
+ if (project.artifacts?.type !== void 0)
34629
34547
  art["Type"] = project.artifacts.type;
34630
- if (project.artifacts.location !== void 0)
34548
+ if (project.artifacts?.location !== void 0)
34631
34549
  art["Location"] = project.artifacts.location;
34632
- if (project.artifacts.path !== void 0)
34550
+ if (project.artifacts?.path !== void 0)
34633
34551
  art["Path"] = project.artifacts.path;
34634
- if (project.artifacts.name !== void 0)
34552
+ if (project.artifacts?.name !== void 0)
34635
34553
  art["Name"] = project.artifacts.name;
34636
- if (project.artifacts.namespaceType !== void 0) {
34554
+ if (project.artifacts?.namespaceType !== void 0) {
34637
34555
  art["NamespaceType"] = project.artifacts.namespaceType;
34638
34556
  }
34639
- if (project.artifacts.packaging !== void 0)
34557
+ if (project.artifacts?.packaging !== void 0)
34640
34558
  art["Packaging"] = project.artifacts.packaging;
34641
- if (project.artifacts.encryptionDisabled !== void 0) {
34559
+ if (project.artifacts?.encryptionDisabled !== void 0) {
34642
34560
  art["EncryptionDisabled"] = project.artifacts.encryptionDisabled;
34643
34561
  }
34644
- if (project.artifacts.overrideArtifactName !== void 0) {
34562
+ if (project.artifacts?.overrideArtifactName !== void 0) {
34645
34563
  art["OverrideArtifactName"] = project.artifacts.overrideArtifactName;
34646
34564
  }
34647
- if (project.artifacts.artifactIdentifier !== void 0) {
34565
+ if (project.artifacts?.artifactIdentifier !== void 0) {
34648
34566
  art["ArtifactIdentifier"] = project.artifacts.artifactIdentifier;
34649
34567
  }
34650
- if (Object.keys(art).length > 0)
34651
- result["Artifacts"] = art;
34568
+ result["Artifacts"] = art;
34652
34569
  }
34653
- if (project.environment) {
34570
+ {
34654
34571
  const env = {};
34655
- if (project.environment.type !== void 0)
34572
+ if (project.environment?.type !== void 0)
34656
34573
  env["Type"] = project.environment.type;
34657
- if (project.environment.image !== void 0)
34574
+ if (project.environment?.image !== void 0)
34658
34575
  env["Image"] = project.environment.image;
34659
- if (project.environment.computeType !== void 0) {
34576
+ if (project.environment?.computeType !== void 0) {
34660
34577
  env["ComputeType"] = project.environment.computeType;
34661
34578
  }
34662
- if (project.environment.privilegedMode !== void 0) {
34579
+ if (project.environment?.privilegedMode !== void 0) {
34663
34580
  env["PrivilegedMode"] = project.environment.privilegedMode;
34664
34581
  }
34665
- if (project.environment.imagePullCredentialsType !== void 0) {
34582
+ if (project.environment?.imagePullCredentialsType !== void 0) {
34666
34583
  env["ImagePullCredentialsType"] = project.environment.imagePullCredentialsType;
34667
34584
  }
34668
- if (project.environment.certificate !== void 0) {
34585
+ if (project.environment?.certificate !== void 0) {
34669
34586
  env["Certificate"] = project.environment.certificate;
34670
34587
  }
34671
- if (project.environment.environmentVariables && project.environment.environmentVariables.length > 0) {
34672
- env["EnvironmentVariables"] = project.environment.environmentVariables.map((ev) => {
34673
- const out = {};
34674
- if (ev.name !== void 0)
34675
- out["Name"] = ev.name;
34676
- if (ev.value !== void 0)
34677
- out["Value"] = ev.value;
34678
- if (ev.type !== void 0)
34679
- out["Type"] = ev.type;
34680
- return out;
34681
- });
34682
- }
34683
- if (Object.keys(env).length > 0)
34684
- result["Environment"] = env;
34588
+ env["EnvironmentVariables"] = (project.environment?.environmentVariables ?? []).map((ev) => {
34589
+ const out = {};
34590
+ if (ev.name !== void 0)
34591
+ out["Name"] = ev.name;
34592
+ if (ev.value !== void 0)
34593
+ out["Value"] = ev.value;
34594
+ if (ev.type !== void 0)
34595
+ out["Type"] = ev.type;
34596
+ return out;
34597
+ });
34598
+ result["Environment"] = env;
34685
34599
  }
34686
34600
  const tags = normalizeAwsTagsToCfn(project.tags);
34687
34601
  result["Tags"] = tags;
@@ -42690,7 +42604,7 @@ function reorderArgs(argv) {
42690
42604
  }
42691
42605
  async function main() {
42692
42606
  const program = new Command14();
42693
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.50.1");
42607
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.50.3");
42694
42608
  program.addCommand(createBootstrapCommand());
42695
42609
  program.addCommand(createSynthCommand());
42696
42610
  program.addCommand(createListCommand());