@aws-sdk/client-cloudformation 3.201.0 → 3.204.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.
@@ -3260,6 +3260,9 @@ const serializeAws_queryBatchDescribeTypeConfigurationsInput = (input, context)
3260
3260
  const entries = {};
3261
3261
  if (input.TypeConfigurationIdentifiers != null) {
3262
3262
  const memberEntries = serializeAws_queryTypeConfigurationIdentifiers(input.TypeConfigurationIdentifiers, context);
3263
+ if (input.TypeConfigurationIdentifiers?.length === 0) {
3264
+ entries.TypeConfigurationIdentifiers = [];
3265
+ }
3263
3266
  Object.entries(memberEntries).forEach(([key, value]) => {
3264
3267
  const loc = `TypeConfigurationIdentifiers.${key}`;
3265
3268
  entries[loc] = value;
@@ -3299,6 +3302,9 @@ const serializeAws_queryContinueUpdateRollbackInput = (input, context) => {
3299
3302
  }
3300
3303
  if (input.ResourcesToSkip != null) {
3301
3304
  const memberEntries = serializeAws_queryResourcesToSkip(input.ResourcesToSkip, context);
3305
+ if (input.ResourcesToSkip?.length === 0) {
3306
+ entries.ResourcesToSkip = [];
3307
+ }
3302
3308
  Object.entries(memberEntries).forEach(([key, value]) => {
3303
3309
  const loc = `ResourcesToSkip.${key}`;
3304
3310
  entries[loc] = value;
@@ -3325,6 +3331,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3325
3331
  }
3326
3332
  if (input.Parameters != null) {
3327
3333
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
3334
+ if (input.Parameters?.length === 0) {
3335
+ entries.Parameters = [];
3336
+ }
3328
3337
  Object.entries(memberEntries).forEach(([key, value]) => {
3329
3338
  const loc = `Parameters.${key}`;
3330
3339
  entries[loc] = value;
@@ -3332,6 +3341,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3332
3341
  }
3333
3342
  if (input.Capabilities != null) {
3334
3343
  const memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
3344
+ if (input.Capabilities?.length === 0) {
3345
+ entries.Capabilities = [];
3346
+ }
3335
3347
  Object.entries(memberEntries).forEach(([key, value]) => {
3336
3348
  const loc = `Capabilities.${key}`;
3337
3349
  entries[loc] = value;
@@ -3339,6 +3351,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3339
3351
  }
3340
3352
  if (input.ResourceTypes != null) {
3341
3353
  const memberEntries = serializeAws_queryResourceTypes(input.ResourceTypes, context);
3354
+ if (input.ResourceTypes?.length === 0) {
3355
+ entries.ResourceTypes = [];
3356
+ }
3342
3357
  Object.entries(memberEntries).forEach(([key, value]) => {
3343
3358
  const loc = `ResourceTypes.${key}`;
3344
3359
  entries[loc] = value;
@@ -3356,6 +3371,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3356
3371
  }
3357
3372
  if (input.NotificationARNs != null) {
3358
3373
  const memberEntries = serializeAws_queryNotificationARNs(input.NotificationARNs, context);
3374
+ if (input.NotificationARNs?.length === 0) {
3375
+ entries.NotificationARNs = [];
3376
+ }
3359
3377
  Object.entries(memberEntries).forEach(([key, value]) => {
3360
3378
  const loc = `NotificationARNs.${key}`;
3361
3379
  entries[loc] = value;
@@ -3363,6 +3381,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3363
3381
  }
3364
3382
  if (input.Tags != null) {
3365
3383
  const memberEntries = serializeAws_queryTags(input.Tags, context);
3384
+ if (input.Tags?.length === 0) {
3385
+ entries.Tags = [];
3386
+ }
3366
3387
  Object.entries(memberEntries).forEach(([key, value]) => {
3367
3388
  const loc = `Tags.${key}`;
3368
3389
  entries[loc] = value;
@@ -3382,6 +3403,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3382
3403
  }
3383
3404
  if (input.ResourcesToImport != null) {
3384
3405
  const memberEntries = serializeAws_queryResourcesToImport(input.ResourcesToImport, context);
3406
+ if (input.ResourcesToImport?.length === 0) {
3407
+ entries.ResourcesToImport = [];
3408
+ }
3385
3409
  Object.entries(memberEntries).forEach(([key, value]) => {
3386
3410
  const loc = `ResourcesToImport.${key}`;
3387
3411
  entries[loc] = value;
@@ -3405,6 +3429,9 @@ const serializeAws_queryCreateStackInput = (input, context) => {
3405
3429
  }
3406
3430
  if (input.Parameters != null) {
3407
3431
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
3432
+ if (input.Parameters?.length === 0) {
3433
+ entries.Parameters = [];
3434
+ }
3408
3435
  Object.entries(memberEntries).forEach(([key, value]) => {
3409
3436
  const loc = `Parameters.${key}`;
3410
3437
  entries[loc] = value;
@@ -3425,6 +3452,9 @@ const serializeAws_queryCreateStackInput = (input, context) => {
3425
3452
  }
3426
3453
  if (input.NotificationARNs != null) {
3427
3454
  const memberEntries = serializeAws_queryNotificationARNs(input.NotificationARNs, context);
3455
+ if (input.NotificationARNs?.length === 0) {
3456
+ entries.NotificationARNs = [];
3457
+ }
3428
3458
  Object.entries(memberEntries).forEach(([key, value]) => {
3429
3459
  const loc = `NotificationARNs.${key}`;
3430
3460
  entries[loc] = value;
@@ -3432,6 +3462,9 @@ const serializeAws_queryCreateStackInput = (input, context) => {
3432
3462
  }
3433
3463
  if (input.Capabilities != null) {
3434
3464
  const memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
3465
+ if (input.Capabilities?.length === 0) {
3466
+ entries.Capabilities = [];
3467
+ }
3435
3468
  Object.entries(memberEntries).forEach(([key, value]) => {
3436
3469
  const loc = `Capabilities.${key}`;
3437
3470
  entries[loc] = value;
@@ -3439,6 +3472,9 @@ const serializeAws_queryCreateStackInput = (input, context) => {
3439
3472
  }
3440
3473
  if (input.ResourceTypes != null) {
3441
3474
  const memberEntries = serializeAws_queryResourceTypes(input.ResourceTypes, context);
3475
+ if (input.ResourceTypes?.length === 0) {
3476
+ entries.ResourceTypes = [];
3477
+ }
3442
3478
  Object.entries(memberEntries).forEach(([key, value]) => {
3443
3479
  const loc = `ResourceTypes.${key}`;
3444
3480
  entries[loc] = value;
@@ -3458,6 +3494,9 @@ const serializeAws_queryCreateStackInput = (input, context) => {
3458
3494
  }
3459
3495
  if (input.Tags != null) {
3460
3496
  const memberEntries = serializeAws_queryTags(input.Tags, context);
3497
+ if (input.Tags?.length === 0) {
3498
+ entries.Tags = [];
3499
+ }
3461
3500
  Object.entries(memberEntries).forEach(([key, value]) => {
3462
3501
  const loc = `Tags.${key}`;
3463
3502
  entries[loc] = value;
@@ -3478,6 +3517,9 @@ const serializeAws_queryCreateStackInstancesInput = (input, context) => {
3478
3517
  }
3479
3518
  if (input.Accounts != null) {
3480
3519
  const memberEntries = serializeAws_queryAccountList(input.Accounts, context);
3520
+ if (input.Accounts?.length === 0) {
3521
+ entries.Accounts = [];
3522
+ }
3481
3523
  Object.entries(memberEntries).forEach(([key, value]) => {
3482
3524
  const loc = `Accounts.${key}`;
3483
3525
  entries[loc] = value;
@@ -3492,6 +3534,9 @@ const serializeAws_queryCreateStackInstancesInput = (input, context) => {
3492
3534
  }
3493
3535
  if (input.Regions != null) {
3494
3536
  const memberEntries = serializeAws_queryRegionList(input.Regions, context);
3537
+ if (input.Regions?.length === 0) {
3538
+ entries.Regions = [];
3539
+ }
3495
3540
  Object.entries(memberEntries).forEach(([key, value]) => {
3496
3541
  const loc = `Regions.${key}`;
3497
3542
  entries[loc] = value;
@@ -3499,6 +3544,9 @@ const serializeAws_queryCreateStackInstancesInput = (input, context) => {
3499
3544
  }
3500
3545
  if (input.ParameterOverrides != null) {
3501
3546
  const memberEntries = serializeAws_queryParameters(input.ParameterOverrides, context);
3547
+ if (input.ParameterOverrides?.length === 0) {
3548
+ entries.ParameterOverrides = [];
3549
+ }
3502
3550
  Object.entries(memberEntries).forEach(([key, value]) => {
3503
3551
  const loc = `ParameterOverrides.${key}`;
3504
3552
  entries[loc] = value;
@@ -3541,6 +3589,9 @@ const serializeAws_queryCreateStackSetInput = (input, context) => {
3541
3589
  }
3542
3590
  if (input.Parameters != null) {
3543
3591
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
3592
+ if (input.Parameters?.length === 0) {
3593
+ entries.Parameters = [];
3594
+ }
3544
3595
  Object.entries(memberEntries).forEach(([key, value]) => {
3545
3596
  const loc = `Parameters.${key}`;
3546
3597
  entries[loc] = value;
@@ -3548,6 +3599,9 @@ const serializeAws_queryCreateStackSetInput = (input, context) => {
3548
3599
  }
3549
3600
  if (input.Capabilities != null) {
3550
3601
  const memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
3602
+ if (input.Capabilities?.length === 0) {
3603
+ entries.Capabilities = [];
3604
+ }
3551
3605
  Object.entries(memberEntries).forEach(([key, value]) => {
3552
3606
  const loc = `Capabilities.${key}`;
3553
3607
  entries[loc] = value;
@@ -3555,6 +3609,9 @@ const serializeAws_queryCreateStackSetInput = (input, context) => {
3555
3609
  }
3556
3610
  if (input.Tags != null) {
3557
3611
  const memberEntries = serializeAws_queryTags(input.Tags, context);
3612
+ if (input.Tags?.length === 0) {
3613
+ entries.Tags = [];
3614
+ }
3558
3615
  Object.entries(memberEntries).forEach(([key, value]) => {
3559
3616
  const loc = `Tags.${key}`;
3560
3617
  entries[loc] = value;
@@ -3624,6 +3681,9 @@ const serializeAws_queryDeleteStackInput = (input, context) => {
3624
3681
  }
3625
3682
  if (input.RetainResources != null) {
3626
3683
  const memberEntries = serializeAws_queryRetainResources(input.RetainResources, context);
3684
+ if (input.RetainResources?.length === 0) {
3685
+ entries.RetainResources = [];
3686
+ }
3627
3687
  Object.entries(memberEntries).forEach(([key, value]) => {
3628
3688
  const loc = `RetainResources.${key}`;
3629
3689
  entries[loc] = value;
@@ -3644,6 +3704,9 @@ const serializeAws_queryDeleteStackInstancesInput = (input, context) => {
3644
3704
  }
3645
3705
  if (input.Accounts != null) {
3646
3706
  const memberEntries = serializeAws_queryAccountList(input.Accounts, context);
3707
+ if (input.Accounts?.length === 0) {
3708
+ entries.Accounts = [];
3709
+ }
3647
3710
  Object.entries(memberEntries).forEach(([key, value]) => {
3648
3711
  const loc = `Accounts.${key}`;
3649
3712
  entries[loc] = value;
@@ -3658,6 +3721,9 @@ const serializeAws_queryDeleteStackInstancesInput = (input, context) => {
3658
3721
  }
3659
3722
  if (input.Regions != null) {
3660
3723
  const memberEntries = serializeAws_queryRegionList(input.Regions, context);
3724
+ if (input.Regions?.length === 0) {
3725
+ entries.Regions = [];
3726
+ }
3661
3727
  Object.entries(memberEntries).forEach(([key, value]) => {
3662
3728
  const loc = `Regions.${key}`;
3663
3729
  entries[loc] = value;
@@ -3698,6 +3764,9 @@ const serializeAws_queryDeploymentTargets = (input, context) => {
3698
3764
  const entries = {};
3699
3765
  if (input.Accounts != null) {
3700
3766
  const memberEntries = serializeAws_queryAccountList(input.Accounts, context);
3767
+ if (input.Accounts?.length === 0) {
3768
+ entries.Accounts = [];
3769
+ }
3701
3770
  Object.entries(memberEntries).forEach(([key, value]) => {
3702
3771
  const loc = `Accounts.${key}`;
3703
3772
  entries[loc] = value;
@@ -3708,6 +3777,9 @@ const serializeAws_queryDeploymentTargets = (input, context) => {
3708
3777
  }
3709
3778
  if (input.OrganizationalUnitIds != null) {
3710
3779
  const memberEntries = serializeAws_queryOrganizationalUnitIdList(input.OrganizationalUnitIds, context);
3780
+ if (input.OrganizationalUnitIds?.length === 0) {
3781
+ entries.OrganizationalUnitIds = [];
3782
+ }
3711
3783
  Object.entries(memberEntries).forEach(([key, value]) => {
3712
3784
  const loc = `OrganizationalUnitIds.${key}`;
3713
3785
  entries[loc] = value;
@@ -3817,6 +3889,9 @@ const serializeAws_queryDescribeStackResourceDriftsInput = (input, context) => {
3817
3889
  }
3818
3890
  if (input.StackResourceDriftStatusFilters != null) {
3819
3891
  const memberEntries = serializeAws_queryStackResourceDriftStatusFilters(input.StackResourceDriftStatusFilters, context);
3892
+ if (input.StackResourceDriftStatusFilters?.length === 0) {
3893
+ entries.StackResourceDriftStatusFilters = [];
3894
+ }
3820
3895
  Object.entries(memberEntries).forEach(([key, value]) => {
3821
3896
  const loc = `StackResourceDriftStatusFilters.${key}`;
3822
3897
  entries[loc] = value;
@@ -3922,6 +3997,9 @@ const serializeAws_queryDetectStackDriftInput = (input, context) => {
3922
3997
  }
3923
3998
  if (input.LogicalResourceIds != null) {
3924
3999
  const memberEntries = serializeAws_queryLogicalResourceIds(input.LogicalResourceIds, context);
4000
+ if (input.LogicalResourceIds?.length === 0) {
4001
+ entries.LogicalResourceIds = [];
4002
+ }
3925
4003
  Object.entries(memberEntries).forEach(([key, value]) => {
3926
4004
  const loc = `LogicalResourceIds.${key}`;
3927
4005
  entries[loc] = value;
@@ -3972,6 +4050,9 @@ const serializeAws_queryEstimateTemplateCostInput = (input, context) => {
3972
4050
  }
3973
4051
  if (input.Parameters != null) {
3974
4052
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
4053
+ if (input.Parameters?.length === 0) {
4054
+ entries.Parameters = [];
4055
+ }
3975
4056
  Object.entries(memberEntries).forEach(([key, value]) => {
3976
4057
  const loc = `Parameters.${key}`;
3977
4058
  entries[loc] = value;
@@ -4041,6 +4122,9 @@ const serializeAws_queryImportStacksToStackSetInput = (input, context) => {
4041
4122
  }
4042
4123
  if (input.StackIds != null) {
4043
4124
  const memberEntries = serializeAws_queryStackIdList(input.StackIds, context);
4125
+ if (input.StackIds?.length === 0) {
4126
+ entries.StackIds = [];
4127
+ }
4044
4128
  Object.entries(memberEntries).forEach(([key, value]) => {
4045
4129
  const loc = `StackIds.${key}`;
4046
4130
  entries[loc] = value;
@@ -4051,6 +4135,9 @@ const serializeAws_queryImportStacksToStackSetInput = (input, context) => {
4051
4135
  }
4052
4136
  if (input.OrganizationalUnitIds != null) {
4053
4137
  const memberEntries = serializeAws_queryOrganizationalUnitIdList(input.OrganizationalUnitIds, context);
4138
+ if (input.OrganizationalUnitIds?.length === 0) {
4139
+ entries.OrganizationalUnitIds = [];
4140
+ }
4054
4141
  Object.entries(memberEntries).forEach(([key, value]) => {
4055
4142
  const loc = `OrganizationalUnitIds.${key}`;
4056
4143
  entries[loc] = value;
@@ -4114,6 +4201,9 @@ const serializeAws_queryListStackInstancesInput = (input, context) => {
4114
4201
  }
4115
4202
  if (input.Filters != null) {
4116
4203
  const memberEntries = serializeAws_queryStackInstanceFilters(input.Filters, context);
4204
+ if (input.Filters?.length === 0) {
4205
+ entries.Filters = [];
4206
+ }
4117
4207
  Object.entries(memberEntries).forEach(([key, value]) => {
4118
4208
  const loc = `Filters.${key}`;
4119
4209
  entries[loc] = value;
@@ -4159,6 +4249,9 @@ const serializeAws_queryListStackSetOperationResultsInput = (input, context) =>
4159
4249
  }
4160
4250
  if (input.Filters != null) {
4161
4251
  const memberEntries = serializeAws_queryOperationResultFilters(input.Filters, context);
4252
+ if (input.Filters?.length === 0) {
4253
+ entries.Filters = [];
4254
+ }
4162
4255
  Object.entries(memberEntries).forEach(([key, value]) => {
4163
4256
  const loc = `Filters.${key}`;
4164
4257
  entries[loc] = value;
@@ -4205,6 +4298,9 @@ const serializeAws_queryListStacksInput = (input, context) => {
4205
4298
  }
4206
4299
  if (input.StackStatusFilter != null) {
4207
4300
  const memberEntries = serializeAws_queryStackStatusFilter(input.StackStatusFilter, context);
4301
+ if (input.StackStatusFilter?.length === 0) {
4302
+ entries.StackStatusFilter = [];
4303
+ }
4208
4304
  Object.entries(memberEntries).forEach(([key, value]) => {
4209
4305
  const loc = `StackStatusFilter.${key}`;
4210
4306
  entries[loc] = value;
@@ -4570,6 +4666,9 @@ const serializeAws_queryRollbackConfiguration = (input, context) => {
4570
4666
  const entries = {};
4571
4667
  if (input.RollbackTriggers != null) {
4572
4668
  const memberEntries = serializeAws_queryRollbackTriggers(input.RollbackTriggers, context);
4669
+ if (input.RollbackTriggers?.length === 0) {
4670
+ entries.RollbackTriggers = [];
4671
+ }
4573
4672
  Object.entries(memberEntries).forEach(([key, value]) => {
4574
4673
  const loc = `RollbackTriggers.${key}`;
4575
4674
  entries[loc] = value;
@@ -4738,6 +4837,9 @@ const serializeAws_queryStackSetOperationPreferences = (input, context) => {
4738
4837
  }
4739
4838
  if (input.RegionOrder != null) {
4740
4839
  const memberEntries = serializeAws_queryRegionList(input.RegionOrder, context);
4840
+ if (input.RegionOrder?.length === 0) {
4841
+ entries.RegionOrder = [];
4842
+ }
4741
4843
  Object.entries(memberEntries).forEach(([key, value]) => {
4742
4844
  const loc = `RegionOrder.${key}`;
4743
4845
  entries[loc] = value;
@@ -4895,6 +4997,9 @@ const serializeAws_queryUpdateStackInput = (input, context) => {
4895
4997
  }
4896
4998
  if (input.Parameters != null) {
4897
4999
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
5000
+ if (input.Parameters?.length === 0) {
5001
+ entries.Parameters = [];
5002
+ }
4898
5003
  Object.entries(memberEntries).forEach(([key, value]) => {
4899
5004
  const loc = `Parameters.${key}`;
4900
5005
  entries[loc] = value;
@@ -4902,6 +5007,9 @@ const serializeAws_queryUpdateStackInput = (input, context) => {
4902
5007
  }
4903
5008
  if (input.Capabilities != null) {
4904
5009
  const memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
5010
+ if (input.Capabilities?.length === 0) {
5011
+ entries.Capabilities = [];
5012
+ }
4905
5013
  Object.entries(memberEntries).forEach(([key, value]) => {
4906
5014
  const loc = `Capabilities.${key}`;
4907
5015
  entries[loc] = value;
@@ -4909,6 +5017,9 @@ const serializeAws_queryUpdateStackInput = (input, context) => {
4909
5017
  }
4910
5018
  if (input.ResourceTypes != null) {
4911
5019
  const memberEntries = serializeAws_queryResourceTypes(input.ResourceTypes, context);
5020
+ if (input.ResourceTypes?.length === 0) {
5021
+ entries.ResourceTypes = [];
5022
+ }
4912
5023
  Object.entries(memberEntries).forEach(([key, value]) => {
4913
5024
  const loc = `ResourceTypes.${key}`;
4914
5025
  entries[loc] = value;
@@ -4932,6 +5043,9 @@ const serializeAws_queryUpdateStackInput = (input, context) => {
4932
5043
  }
4933
5044
  if (input.NotificationARNs != null) {
4934
5045
  const memberEntries = serializeAws_queryNotificationARNs(input.NotificationARNs, context);
5046
+ if (input.NotificationARNs?.length === 0) {
5047
+ entries.NotificationARNs = [];
5048
+ }
4935
5049
  Object.entries(memberEntries).forEach(([key, value]) => {
4936
5050
  const loc = `NotificationARNs.${key}`;
4937
5051
  entries[loc] = value;
@@ -4939,6 +5053,9 @@ const serializeAws_queryUpdateStackInput = (input, context) => {
4939
5053
  }
4940
5054
  if (input.Tags != null) {
4941
5055
  const memberEntries = serializeAws_queryTags(input.Tags, context);
5056
+ if (input.Tags?.length === 0) {
5057
+ entries.Tags = [];
5058
+ }
4942
5059
  Object.entries(memberEntries).forEach(([key, value]) => {
4943
5060
  const loc = `Tags.${key}`;
4944
5061
  entries[loc] = value;
@@ -4959,6 +5076,9 @@ const serializeAws_queryUpdateStackInstancesInput = (input, context) => {
4959
5076
  }
4960
5077
  if (input.Accounts != null) {
4961
5078
  const memberEntries = serializeAws_queryAccountList(input.Accounts, context);
5079
+ if (input.Accounts?.length === 0) {
5080
+ entries.Accounts = [];
5081
+ }
4962
5082
  Object.entries(memberEntries).forEach(([key, value]) => {
4963
5083
  const loc = `Accounts.${key}`;
4964
5084
  entries[loc] = value;
@@ -4973,6 +5093,9 @@ const serializeAws_queryUpdateStackInstancesInput = (input, context) => {
4973
5093
  }
4974
5094
  if (input.Regions != null) {
4975
5095
  const memberEntries = serializeAws_queryRegionList(input.Regions, context);
5096
+ if (input.Regions?.length === 0) {
5097
+ entries.Regions = [];
5098
+ }
4976
5099
  Object.entries(memberEntries).forEach(([key, value]) => {
4977
5100
  const loc = `Regions.${key}`;
4978
5101
  entries[loc] = value;
@@ -4980,6 +5103,9 @@ const serializeAws_queryUpdateStackInstancesInput = (input, context) => {
4980
5103
  }
4981
5104
  if (input.ParameterOverrides != null) {
4982
5105
  const memberEntries = serializeAws_queryParameters(input.ParameterOverrides, context);
5106
+ if (input.ParameterOverrides?.length === 0) {
5107
+ entries.ParameterOverrides = [];
5108
+ }
4983
5109
  Object.entries(memberEntries).forEach(([key, value]) => {
4984
5110
  const loc = `ParameterOverrides.${key}`;
4985
5111
  entries[loc] = value;
@@ -5022,6 +5148,9 @@ const serializeAws_queryUpdateStackSetInput = (input, context) => {
5022
5148
  }
5023
5149
  if (input.Parameters != null) {
5024
5150
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
5151
+ if (input.Parameters?.length === 0) {
5152
+ entries.Parameters = [];
5153
+ }
5025
5154
  Object.entries(memberEntries).forEach(([key, value]) => {
5026
5155
  const loc = `Parameters.${key}`;
5027
5156
  entries[loc] = value;
@@ -5029,6 +5158,9 @@ const serializeAws_queryUpdateStackSetInput = (input, context) => {
5029
5158
  }
5030
5159
  if (input.Capabilities != null) {
5031
5160
  const memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
5161
+ if (input.Capabilities?.length === 0) {
5162
+ entries.Capabilities = [];
5163
+ }
5032
5164
  Object.entries(memberEntries).forEach(([key, value]) => {
5033
5165
  const loc = `Capabilities.${key}`;
5034
5166
  entries[loc] = value;
@@ -5036,6 +5168,9 @@ const serializeAws_queryUpdateStackSetInput = (input, context) => {
5036
5168
  }
5037
5169
  if (input.Tags != null) {
5038
5170
  const memberEntries = serializeAws_queryTags(input.Tags, context);
5171
+ if (input.Tags?.length === 0) {
5172
+ entries.Tags = [];
5173
+ }
5039
5174
  Object.entries(memberEntries).forEach(([key, value]) => {
5040
5175
  const loc = `Tags.${key}`;
5041
5176
  entries[loc] = value;
@@ -5079,6 +5214,9 @@ const serializeAws_queryUpdateStackSetInput = (input, context) => {
5079
5214
  }
5080
5215
  if (input.Accounts != null) {
5081
5216
  const memberEntries = serializeAws_queryAccountList(input.Accounts, context);
5217
+ if (input.Accounts?.length === 0) {
5218
+ entries.Accounts = [];
5219
+ }
5082
5220
  Object.entries(memberEntries).forEach(([key, value]) => {
5083
5221
  const loc = `Accounts.${key}`;
5084
5222
  entries[loc] = value;
@@ -5086,6 +5224,9 @@ const serializeAws_queryUpdateStackSetInput = (input, context) => {
5086
5224
  }
5087
5225
  if (input.Regions != null) {
5088
5226
  const memberEntries = serializeAws_queryRegionList(input.Regions, context);
5227
+ if (input.Regions?.length === 0) {
5228
+ entries.Regions = [];
5229
+ }
5089
5230
  Object.entries(memberEntries).forEach(([key, value]) => {
5090
5231
  const loc = `Regions.${key}`;
5091
5232
  entries[loc] = value;
@@ -4,7 +4,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-
4
4
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
6
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
7
- import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
8
7
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
9
8
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
9
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
@@ -20,8 +19,6 @@ export const getRuntimeConfig = (config) => {
20
19
  ...config,
21
20
  runtime: "browser",
22
21
  defaultsMode,
23
- base64Decoder: config?.base64Decoder ?? fromBase64,
24
- base64Encoder: config?.base64Encoder ?? toBase64,
25
22
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
23
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
24
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
6
6
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
7
7
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
8
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
- import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
10
9
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
11
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
12
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
@@ -24,8 +23,6 @@ export const getRuntimeConfig = (config) => {
24
23
  ...config,
25
24
  runtime: "node",
26
25
  defaultsMode,
27
- base64Decoder: config?.base64Decoder ?? fromBase64,
28
- base64Encoder: config?.base64Encoder ?? toBase64,
29
26
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
27
  credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
31
28
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -1,7 +1,10 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
2
3
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
3
4
  export const getRuntimeConfig = (config) => ({
4
5
  apiVersion: "2010-05-15",
6
+ base64Decoder: config?.base64Decoder ?? fromBase64,
7
+ base64Encoder: config?.base64Encoder ?? toBase64,
5
8
  disableHostPrefix: config?.disableHostPrefix ?? false,
6
9
  endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
7
10
  logger: config?.logger ?? {},
@@ -6,8 +6,6 @@ import { CloudFormationClientConfig } from "./CloudFormationClient";
6
6
  export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
- base64Decoder: import("@aws-sdk/types").Decoder;
10
- base64Encoder: import("@aws-sdk/types").Encoder;
11
9
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
@@ -23,6 +21,8 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
23
21
  utf8Encoder: import("@aws-sdk/types").Encoder;
24
22
  apiVersion: string;
25
23
  urlParser: import("@aws-sdk/types").UrlParser;
24
+ base64Decoder: import("@aws-sdk/types").Decoder;
25
+ base64Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
@@ -6,8 +6,6 @@ import { CloudFormationClientConfig } from "./CloudFormationClient";
6
6
  export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
- base64Decoder: import("@aws-sdk/types").Decoder;
10
- base64Encoder: import("@aws-sdk/types").Encoder;
11
9
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
@@ -23,6 +21,8 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
23
21
  utf8Encoder: import("@aws-sdk/types").Encoder;
24
22
  apiVersion: string;
25
23
  urlParser: import("@aws-sdk/types").UrlParser;
24
+ base64Decoder: import("@aws-sdk/types").Decoder;
25
+ base64Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
@@ -5,6 +5,8 @@ import { CloudFormationClientConfig } from "./CloudFormationClient";
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
7
7
  apiVersion: string;
8
+ base64Decoder: import("@aws-sdk/types").Decoder;
9
+ base64Encoder: import("@aws-sdk/types").Encoder;
8
10
  disableHostPrefix: boolean;
9
11
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
10
12
  logger?: __Logger | undefined;
@@ -5,8 +5,6 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
5
5
  defaultsMode: import("@aws-sdk/types").Provider<
6
6
  import("@aws-sdk/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
- base64Decoder: import("@aws-sdk/types").Decoder;
9
- base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
11
9
  credentialDefaultProvider: (
12
10
  input: any
@@ -33,6 +31,8 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
33
31
  utf8Encoder: import("@aws-sdk/types").Encoder;
34
32
  apiVersion: string;
35
33
  urlParser: import("@aws-sdk/types").UrlParser;
34
+ base64Decoder: import("@aws-sdk/types").Decoder;
35
+ base64Encoder: import("@aws-sdk/types").Encoder;
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
@@ -5,8 +5,6 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
5
5
  defaultsMode: import("@aws-sdk/types").Provider<
6
6
  import("@aws-sdk/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
- base64Decoder: import("@aws-sdk/types").Decoder;
9
- base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
11
9
  credentialDefaultProvider: (
12
10
  input: any
@@ -33,6 +31,8 @@ export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
33
31
  utf8Encoder: import("@aws-sdk/types").Encoder;
34
32
  apiVersion: string;
35
33
  urlParser: import("@aws-sdk/types").UrlParser;
34
+ base64Decoder: import("@aws-sdk/types").Decoder;
35
+ base64Encoder: import("@aws-sdk/types").Encoder;
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
@@ -2,6 +2,8 @@ import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { CloudFormationClientConfig } from "./CloudFormationClient";
3
3
  export declare const getRuntimeConfig: (config: CloudFormationClientConfig) => {
4
4
  apiVersion: string;
5
+ base64Decoder: import("@aws-sdk/types").Decoder;
6
+ base64Encoder: import("@aws-sdk/types").Encoder;
5
7
  disableHostPrefix: boolean;
6
8
  endpointProvider: (
7
9
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudformation",
3
3
  "description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
4
- "version": "3.201.0",
4
+ "version": "3.204.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,10 +19,10 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.201.0",
22
+ "@aws-sdk/client-sts": "3.204.0",
23
23
  "@aws-sdk/config-resolver": "3.201.0",
24
- "@aws-sdk/credential-provider-node": "3.201.0",
25
- "@aws-sdk/fetch-http-handler": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.204.0",
25
+ "@aws-sdk/fetch-http-handler": "3.204.0",
26
26
  "@aws-sdk/hash-node": "3.201.0",
27
27
  "@aws-sdk/invalid-dependency": "3.201.0",
28
28
  "@aws-sdk/middleware-content-length": "3.201.0",
@@ -41,13 +41,14 @@
41
41
  "@aws-sdk/smithy-client": "3.201.0",
42
42
  "@aws-sdk/types": "3.201.0",
43
43
  "@aws-sdk/url-parser": "3.201.0",
44
+ "@aws-sdk/util-base64": "3.202.0",
44
45
  "@aws-sdk/util-base64-browser": "3.188.0",
45
46
  "@aws-sdk/util-base64-node": "3.201.0",
46
47
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
48
  "@aws-sdk/util-body-length-node": "3.201.0",
48
49
  "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
50
  "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
- "@aws-sdk/util-endpoints": "3.201.0",
51
+ "@aws-sdk/util-endpoints": "3.202.0",
51
52
  "@aws-sdk/util-user-agent-browser": "3.201.0",
52
53
  "@aws-sdk/util-user-agent-node": "3.201.0",
53
54
  "@aws-sdk/util-utf8-browser": "3.188.0",