@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.
@@ -3397,6 +3397,9 @@ const serializeAws_queryBatchDescribeTypeConfigurationsInput = (input, context)
3397
3397
  const entries = {};
3398
3398
  if (input.TypeConfigurationIdentifiers != null) {
3399
3399
  const memberEntries = serializeAws_queryTypeConfigurationIdentifiers(input.TypeConfigurationIdentifiers, context);
3400
+ if (input.TypeConfigurationIdentifiers?.length === 0) {
3401
+ entries.TypeConfigurationIdentifiers = [];
3402
+ }
3400
3403
  Object.entries(memberEntries).forEach(([key, value]) => {
3401
3404
  const loc = `TypeConfigurationIdentifiers.${key}`;
3402
3405
  entries[loc] = value;
@@ -3436,6 +3439,9 @@ const serializeAws_queryContinueUpdateRollbackInput = (input, context) => {
3436
3439
  }
3437
3440
  if (input.ResourcesToSkip != null) {
3438
3441
  const memberEntries = serializeAws_queryResourcesToSkip(input.ResourcesToSkip, context);
3442
+ if (input.ResourcesToSkip?.length === 0) {
3443
+ entries.ResourcesToSkip = [];
3444
+ }
3439
3445
  Object.entries(memberEntries).forEach(([key, value]) => {
3440
3446
  const loc = `ResourcesToSkip.${key}`;
3441
3447
  entries[loc] = value;
@@ -3462,6 +3468,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3462
3468
  }
3463
3469
  if (input.Parameters != null) {
3464
3470
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
3471
+ if (input.Parameters?.length === 0) {
3472
+ entries.Parameters = [];
3473
+ }
3465
3474
  Object.entries(memberEntries).forEach(([key, value]) => {
3466
3475
  const loc = `Parameters.${key}`;
3467
3476
  entries[loc] = value;
@@ -3469,6 +3478,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3469
3478
  }
3470
3479
  if (input.Capabilities != null) {
3471
3480
  const memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
3481
+ if (input.Capabilities?.length === 0) {
3482
+ entries.Capabilities = [];
3483
+ }
3472
3484
  Object.entries(memberEntries).forEach(([key, value]) => {
3473
3485
  const loc = `Capabilities.${key}`;
3474
3486
  entries[loc] = value;
@@ -3476,6 +3488,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3476
3488
  }
3477
3489
  if (input.ResourceTypes != null) {
3478
3490
  const memberEntries = serializeAws_queryResourceTypes(input.ResourceTypes, context);
3491
+ if (input.ResourceTypes?.length === 0) {
3492
+ entries.ResourceTypes = [];
3493
+ }
3479
3494
  Object.entries(memberEntries).forEach(([key, value]) => {
3480
3495
  const loc = `ResourceTypes.${key}`;
3481
3496
  entries[loc] = value;
@@ -3493,6 +3508,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3493
3508
  }
3494
3509
  if (input.NotificationARNs != null) {
3495
3510
  const memberEntries = serializeAws_queryNotificationARNs(input.NotificationARNs, context);
3511
+ if (input.NotificationARNs?.length === 0) {
3512
+ entries.NotificationARNs = [];
3513
+ }
3496
3514
  Object.entries(memberEntries).forEach(([key, value]) => {
3497
3515
  const loc = `NotificationARNs.${key}`;
3498
3516
  entries[loc] = value;
@@ -3500,6 +3518,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3500
3518
  }
3501
3519
  if (input.Tags != null) {
3502
3520
  const memberEntries = serializeAws_queryTags(input.Tags, context);
3521
+ if (input.Tags?.length === 0) {
3522
+ entries.Tags = [];
3523
+ }
3503
3524
  Object.entries(memberEntries).forEach(([key, value]) => {
3504
3525
  const loc = `Tags.${key}`;
3505
3526
  entries[loc] = value;
@@ -3519,6 +3540,9 @@ const serializeAws_queryCreateChangeSetInput = (input, context) => {
3519
3540
  }
3520
3541
  if (input.ResourcesToImport != null) {
3521
3542
  const memberEntries = serializeAws_queryResourcesToImport(input.ResourcesToImport, context);
3543
+ if (input.ResourcesToImport?.length === 0) {
3544
+ entries.ResourcesToImport = [];
3545
+ }
3522
3546
  Object.entries(memberEntries).forEach(([key, value]) => {
3523
3547
  const loc = `ResourcesToImport.${key}`;
3524
3548
  entries[loc] = value;
@@ -3542,6 +3566,9 @@ const serializeAws_queryCreateStackInput = (input, context) => {
3542
3566
  }
3543
3567
  if (input.Parameters != null) {
3544
3568
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
3569
+ if (input.Parameters?.length === 0) {
3570
+ entries.Parameters = [];
3571
+ }
3545
3572
  Object.entries(memberEntries).forEach(([key, value]) => {
3546
3573
  const loc = `Parameters.${key}`;
3547
3574
  entries[loc] = value;
@@ -3562,6 +3589,9 @@ const serializeAws_queryCreateStackInput = (input, context) => {
3562
3589
  }
3563
3590
  if (input.NotificationARNs != null) {
3564
3591
  const memberEntries = serializeAws_queryNotificationARNs(input.NotificationARNs, context);
3592
+ if (input.NotificationARNs?.length === 0) {
3593
+ entries.NotificationARNs = [];
3594
+ }
3565
3595
  Object.entries(memberEntries).forEach(([key, value]) => {
3566
3596
  const loc = `NotificationARNs.${key}`;
3567
3597
  entries[loc] = value;
@@ -3569,6 +3599,9 @@ const serializeAws_queryCreateStackInput = (input, context) => {
3569
3599
  }
3570
3600
  if (input.Capabilities != null) {
3571
3601
  const memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
3602
+ if (input.Capabilities?.length === 0) {
3603
+ entries.Capabilities = [];
3604
+ }
3572
3605
  Object.entries(memberEntries).forEach(([key, value]) => {
3573
3606
  const loc = `Capabilities.${key}`;
3574
3607
  entries[loc] = value;
@@ -3576,6 +3609,9 @@ const serializeAws_queryCreateStackInput = (input, context) => {
3576
3609
  }
3577
3610
  if (input.ResourceTypes != null) {
3578
3611
  const memberEntries = serializeAws_queryResourceTypes(input.ResourceTypes, context);
3612
+ if (input.ResourceTypes?.length === 0) {
3613
+ entries.ResourceTypes = [];
3614
+ }
3579
3615
  Object.entries(memberEntries).forEach(([key, value]) => {
3580
3616
  const loc = `ResourceTypes.${key}`;
3581
3617
  entries[loc] = value;
@@ -3595,6 +3631,9 @@ const serializeAws_queryCreateStackInput = (input, context) => {
3595
3631
  }
3596
3632
  if (input.Tags != null) {
3597
3633
  const memberEntries = serializeAws_queryTags(input.Tags, context);
3634
+ if (input.Tags?.length === 0) {
3635
+ entries.Tags = [];
3636
+ }
3598
3637
  Object.entries(memberEntries).forEach(([key, value]) => {
3599
3638
  const loc = `Tags.${key}`;
3600
3639
  entries[loc] = value;
@@ -3615,6 +3654,9 @@ const serializeAws_queryCreateStackInstancesInput = (input, context) => {
3615
3654
  }
3616
3655
  if (input.Accounts != null) {
3617
3656
  const memberEntries = serializeAws_queryAccountList(input.Accounts, context);
3657
+ if (input.Accounts?.length === 0) {
3658
+ entries.Accounts = [];
3659
+ }
3618
3660
  Object.entries(memberEntries).forEach(([key, value]) => {
3619
3661
  const loc = `Accounts.${key}`;
3620
3662
  entries[loc] = value;
@@ -3629,6 +3671,9 @@ const serializeAws_queryCreateStackInstancesInput = (input, context) => {
3629
3671
  }
3630
3672
  if (input.Regions != null) {
3631
3673
  const memberEntries = serializeAws_queryRegionList(input.Regions, context);
3674
+ if (input.Regions?.length === 0) {
3675
+ entries.Regions = [];
3676
+ }
3632
3677
  Object.entries(memberEntries).forEach(([key, value]) => {
3633
3678
  const loc = `Regions.${key}`;
3634
3679
  entries[loc] = value;
@@ -3636,6 +3681,9 @@ const serializeAws_queryCreateStackInstancesInput = (input, context) => {
3636
3681
  }
3637
3682
  if (input.ParameterOverrides != null) {
3638
3683
  const memberEntries = serializeAws_queryParameters(input.ParameterOverrides, context);
3684
+ if (input.ParameterOverrides?.length === 0) {
3685
+ entries.ParameterOverrides = [];
3686
+ }
3639
3687
  Object.entries(memberEntries).forEach(([key, value]) => {
3640
3688
  const loc = `ParameterOverrides.${key}`;
3641
3689
  entries[loc] = value;
@@ -3678,6 +3726,9 @@ const serializeAws_queryCreateStackSetInput = (input, context) => {
3678
3726
  }
3679
3727
  if (input.Parameters != null) {
3680
3728
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
3729
+ if (input.Parameters?.length === 0) {
3730
+ entries.Parameters = [];
3731
+ }
3681
3732
  Object.entries(memberEntries).forEach(([key, value]) => {
3682
3733
  const loc = `Parameters.${key}`;
3683
3734
  entries[loc] = value;
@@ -3685,6 +3736,9 @@ const serializeAws_queryCreateStackSetInput = (input, context) => {
3685
3736
  }
3686
3737
  if (input.Capabilities != null) {
3687
3738
  const memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
3739
+ if (input.Capabilities?.length === 0) {
3740
+ entries.Capabilities = [];
3741
+ }
3688
3742
  Object.entries(memberEntries).forEach(([key, value]) => {
3689
3743
  const loc = `Capabilities.${key}`;
3690
3744
  entries[loc] = value;
@@ -3692,6 +3746,9 @@ const serializeAws_queryCreateStackSetInput = (input, context) => {
3692
3746
  }
3693
3747
  if (input.Tags != null) {
3694
3748
  const memberEntries = serializeAws_queryTags(input.Tags, context);
3749
+ if (input.Tags?.length === 0) {
3750
+ entries.Tags = [];
3751
+ }
3695
3752
  Object.entries(memberEntries).forEach(([key, value]) => {
3696
3753
  const loc = `Tags.${key}`;
3697
3754
  entries[loc] = value;
@@ -3761,6 +3818,9 @@ const serializeAws_queryDeleteStackInput = (input, context) => {
3761
3818
  }
3762
3819
  if (input.RetainResources != null) {
3763
3820
  const memberEntries = serializeAws_queryRetainResources(input.RetainResources, context);
3821
+ if (input.RetainResources?.length === 0) {
3822
+ entries.RetainResources = [];
3823
+ }
3764
3824
  Object.entries(memberEntries).forEach(([key, value]) => {
3765
3825
  const loc = `RetainResources.${key}`;
3766
3826
  entries[loc] = value;
@@ -3781,6 +3841,9 @@ const serializeAws_queryDeleteStackInstancesInput = (input, context) => {
3781
3841
  }
3782
3842
  if (input.Accounts != null) {
3783
3843
  const memberEntries = serializeAws_queryAccountList(input.Accounts, context);
3844
+ if (input.Accounts?.length === 0) {
3845
+ entries.Accounts = [];
3846
+ }
3784
3847
  Object.entries(memberEntries).forEach(([key, value]) => {
3785
3848
  const loc = `Accounts.${key}`;
3786
3849
  entries[loc] = value;
@@ -3795,6 +3858,9 @@ const serializeAws_queryDeleteStackInstancesInput = (input, context) => {
3795
3858
  }
3796
3859
  if (input.Regions != null) {
3797
3860
  const memberEntries = serializeAws_queryRegionList(input.Regions, context);
3861
+ if (input.Regions?.length === 0) {
3862
+ entries.Regions = [];
3863
+ }
3798
3864
  Object.entries(memberEntries).forEach(([key, value]) => {
3799
3865
  const loc = `Regions.${key}`;
3800
3866
  entries[loc] = value;
@@ -3835,6 +3901,9 @@ const serializeAws_queryDeploymentTargets = (input, context) => {
3835
3901
  const entries = {};
3836
3902
  if (input.Accounts != null) {
3837
3903
  const memberEntries = serializeAws_queryAccountList(input.Accounts, context);
3904
+ if (input.Accounts?.length === 0) {
3905
+ entries.Accounts = [];
3906
+ }
3838
3907
  Object.entries(memberEntries).forEach(([key, value]) => {
3839
3908
  const loc = `Accounts.${key}`;
3840
3909
  entries[loc] = value;
@@ -3845,6 +3914,9 @@ const serializeAws_queryDeploymentTargets = (input, context) => {
3845
3914
  }
3846
3915
  if (input.OrganizationalUnitIds != null) {
3847
3916
  const memberEntries = serializeAws_queryOrganizationalUnitIdList(input.OrganizationalUnitIds, context);
3917
+ if (input.OrganizationalUnitIds?.length === 0) {
3918
+ entries.OrganizationalUnitIds = [];
3919
+ }
3848
3920
  Object.entries(memberEntries).forEach(([key, value]) => {
3849
3921
  const loc = `OrganizationalUnitIds.${key}`;
3850
3922
  entries[loc] = value;
@@ -3954,6 +4026,9 @@ const serializeAws_queryDescribeStackResourceDriftsInput = (input, context) => {
3954
4026
  }
3955
4027
  if (input.StackResourceDriftStatusFilters != null) {
3956
4028
  const memberEntries = serializeAws_queryStackResourceDriftStatusFilters(input.StackResourceDriftStatusFilters, context);
4029
+ if (input.StackResourceDriftStatusFilters?.length === 0) {
4030
+ entries.StackResourceDriftStatusFilters = [];
4031
+ }
3957
4032
  Object.entries(memberEntries).forEach(([key, value]) => {
3958
4033
  const loc = `StackResourceDriftStatusFilters.${key}`;
3959
4034
  entries[loc] = value;
@@ -4059,6 +4134,9 @@ const serializeAws_queryDetectStackDriftInput = (input, context) => {
4059
4134
  }
4060
4135
  if (input.LogicalResourceIds != null) {
4061
4136
  const memberEntries = serializeAws_queryLogicalResourceIds(input.LogicalResourceIds, context);
4137
+ if (input.LogicalResourceIds?.length === 0) {
4138
+ entries.LogicalResourceIds = [];
4139
+ }
4062
4140
  Object.entries(memberEntries).forEach(([key, value]) => {
4063
4141
  const loc = `LogicalResourceIds.${key}`;
4064
4142
  entries[loc] = value;
@@ -4109,6 +4187,9 @@ const serializeAws_queryEstimateTemplateCostInput = (input, context) => {
4109
4187
  }
4110
4188
  if (input.Parameters != null) {
4111
4189
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
4190
+ if (input.Parameters?.length === 0) {
4191
+ entries.Parameters = [];
4192
+ }
4112
4193
  Object.entries(memberEntries).forEach(([key, value]) => {
4113
4194
  const loc = `Parameters.${key}`;
4114
4195
  entries[loc] = value;
@@ -4178,6 +4259,9 @@ const serializeAws_queryImportStacksToStackSetInput = (input, context) => {
4178
4259
  }
4179
4260
  if (input.StackIds != null) {
4180
4261
  const memberEntries = serializeAws_queryStackIdList(input.StackIds, context);
4262
+ if (input.StackIds?.length === 0) {
4263
+ entries.StackIds = [];
4264
+ }
4181
4265
  Object.entries(memberEntries).forEach(([key, value]) => {
4182
4266
  const loc = `StackIds.${key}`;
4183
4267
  entries[loc] = value;
@@ -4188,6 +4272,9 @@ const serializeAws_queryImportStacksToStackSetInput = (input, context) => {
4188
4272
  }
4189
4273
  if (input.OrganizationalUnitIds != null) {
4190
4274
  const memberEntries = serializeAws_queryOrganizationalUnitIdList(input.OrganizationalUnitIds, context);
4275
+ if (input.OrganizationalUnitIds?.length === 0) {
4276
+ entries.OrganizationalUnitIds = [];
4277
+ }
4191
4278
  Object.entries(memberEntries).forEach(([key, value]) => {
4192
4279
  const loc = `OrganizationalUnitIds.${key}`;
4193
4280
  entries[loc] = value;
@@ -4251,6 +4338,9 @@ const serializeAws_queryListStackInstancesInput = (input, context) => {
4251
4338
  }
4252
4339
  if (input.Filters != null) {
4253
4340
  const memberEntries = serializeAws_queryStackInstanceFilters(input.Filters, context);
4341
+ if (input.Filters?.length === 0) {
4342
+ entries.Filters = [];
4343
+ }
4254
4344
  Object.entries(memberEntries).forEach(([key, value]) => {
4255
4345
  const loc = `Filters.${key}`;
4256
4346
  entries[loc] = value;
@@ -4296,6 +4386,9 @@ const serializeAws_queryListStackSetOperationResultsInput = (input, context) =>
4296
4386
  }
4297
4387
  if (input.Filters != null) {
4298
4388
  const memberEntries = serializeAws_queryOperationResultFilters(input.Filters, context);
4389
+ if (input.Filters?.length === 0) {
4390
+ entries.Filters = [];
4391
+ }
4299
4392
  Object.entries(memberEntries).forEach(([key, value]) => {
4300
4393
  const loc = `Filters.${key}`;
4301
4394
  entries[loc] = value;
@@ -4342,6 +4435,9 @@ const serializeAws_queryListStacksInput = (input, context) => {
4342
4435
  }
4343
4436
  if (input.StackStatusFilter != null) {
4344
4437
  const memberEntries = serializeAws_queryStackStatusFilter(input.StackStatusFilter, context);
4438
+ if (input.StackStatusFilter?.length === 0) {
4439
+ entries.StackStatusFilter = [];
4440
+ }
4345
4441
  Object.entries(memberEntries).forEach(([key, value]) => {
4346
4442
  const loc = `StackStatusFilter.${key}`;
4347
4443
  entries[loc] = value;
@@ -4707,6 +4803,9 @@ const serializeAws_queryRollbackConfiguration = (input, context) => {
4707
4803
  const entries = {};
4708
4804
  if (input.RollbackTriggers != null) {
4709
4805
  const memberEntries = serializeAws_queryRollbackTriggers(input.RollbackTriggers, context);
4806
+ if (input.RollbackTriggers?.length === 0) {
4807
+ entries.RollbackTriggers = [];
4808
+ }
4710
4809
  Object.entries(memberEntries).forEach(([key, value]) => {
4711
4810
  const loc = `RollbackTriggers.${key}`;
4712
4811
  entries[loc] = value;
@@ -4875,6 +4974,9 @@ const serializeAws_queryStackSetOperationPreferences = (input, context) => {
4875
4974
  }
4876
4975
  if (input.RegionOrder != null) {
4877
4976
  const memberEntries = serializeAws_queryRegionList(input.RegionOrder, context);
4977
+ if (input.RegionOrder?.length === 0) {
4978
+ entries.RegionOrder = [];
4979
+ }
4878
4980
  Object.entries(memberEntries).forEach(([key, value]) => {
4879
4981
  const loc = `RegionOrder.${key}`;
4880
4982
  entries[loc] = value;
@@ -5032,6 +5134,9 @@ const serializeAws_queryUpdateStackInput = (input, context) => {
5032
5134
  }
5033
5135
  if (input.Parameters != null) {
5034
5136
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
5137
+ if (input.Parameters?.length === 0) {
5138
+ entries.Parameters = [];
5139
+ }
5035
5140
  Object.entries(memberEntries).forEach(([key, value]) => {
5036
5141
  const loc = `Parameters.${key}`;
5037
5142
  entries[loc] = value;
@@ -5039,6 +5144,9 @@ const serializeAws_queryUpdateStackInput = (input, context) => {
5039
5144
  }
5040
5145
  if (input.Capabilities != null) {
5041
5146
  const memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
5147
+ if (input.Capabilities?.length === 0) {
5148
+ entries.Capabilities = [];
5149
+ }
5042
5150
  Object.entries(memberEntries).forEach(([key, value]) => {
5043
5151
  const loc = `Capabilities.${key}`;
5044
5152
  entries[loc] = value;
@@ -5046,6 +5154,9 @@ const serializeAws_queryUpdateStackInput = (input, context) => {
5046
5154
  }
5047
5155
  if (input.ResourceTypes != null) {
5048
5156
  const memberEntries = serializeAws_queryResourceTypes(input.ResourceTypes, context);
5157
+ if (input.ResourceTypes?.length === 0) {
5158
+ entries.ResourceTypes = [];
5159
+ }
5049
5160
  Object.entries(memberEntries).forEach(([key, value]) => {
5050
5161
  const loc = `ResourceTypes.${key}`;
5051
5162
  entries[loc] = value;
@@ -5069,6 +5180,9 @@ const serializeAws_queryUpdateStackInput = (input, context) => {
5069
5180
  }
5070
5181
  if (input.NotificationARNs != null) {
5071
5182
  const memberEntries = serializeAws_queryNotificationARNs(input.NotificationARNs, context);
5183
+ if (input.NotificationARNs?.length === 0) {
5184
+ entries.NotificationARNs = [];
5185
+ }
5072
5186
  Object.entries(memberEntries).forEach(([key, value]) => {
5073
5187
  const loc = `NotificationARNs.${key}`;
5074
5188
  entries[loc] = value;
@@ -5076,6 +5190,9 @@ const serializeAws_queryUpdateStackInput = (input, context) => {
5076
5190
  }
5077
5191
  if (input.Tags != null) {
5078
5192
  const memberEntries = serializeAws_queryTags(input.Tags, context);
5193
+ if (input.Tags?.length === 0) {
5194
+ entries.Tags = [];
5195
+ }
5079
5196
  Object.entries(memberEntries).forEach(([key, value]) => {
5080
5197
  const loc = `Tags.${key}`;
5081
5198
  entries[loc] = value;
@@ -5096,6 +5213,9 @@ const serializeAws_queryUpdateStackInstancesInput = (input, context) => {
5096
5213
  }
5097
5214
  if (input.Accounts != null) {
5098
5215
  const memberEntries = serializeAws_queryAccountList(input.Accounts, context);
5216
+ if (input.Accounts?.length === 0) {
5217
+ entries.Accounts = [];
5218
+ }
5099
5219
  Object.entries(memberEntries).forEach(([key, value]) => {
5100
5220
  const loc = `Accounts.${key}`;
5101
5221
  entries[loc] = value;
@@ -5110,6 +5230,9 @@ const serializeAws_queryUpdateStackInstancesInput = (input, context) => {
5110
5230
  }
5111
5231
  if (input.Regions != null) {
5112
5232
  const memberEntries = serializeAws_queryRegionList(input.Regions, context);
5233
+ if (input.Regions?.length === 0) {
5234
+ entries.Regions = [];
5235
+ }
5113
5236
  Object.entries(memberEntries).forEach(([key, value]) => {
5114
5237
  const loc = `Regions.${key}`;
5115
5238
  entries[loc] = value;
@@ -5117,6 +5240,9 @@ const serializeAws_queryUpdateStackInstancesInput = (input, context) => {
5117
5240
  }
5118
5241
  if (input.ParameterOverrides != null) {
5119
5242
  const memberEntries = serializeAws_queryParameters(input.ParameterOverrides, context);
5243
+ if (input.ParameterOverrides?.length === 0) {
5244
+ entries.ParameterOverrides = [];
5245
+ }
5120
5246
  Object.entries(memberEntries).forEach(([key, value]) => {
5121
5247
  const loc = `ParameterOverrides.${key}`;
5122
5248
  entries[loc] = value;
@@ -5159,6 +5285,9 @@ const serializeAws_queryUpdateStackSetInput = (input, context) => {
5159
5285
  }
5160
5286
  if (input.Parameters != null) {
5161
5287
  const memberEntries = serializeAws_queryParameters(input.Parameters, context);
5288
+ if (input.Parameters?.length === 0) {
5289
+ entries.Parameters = [];
5290
+ }
5162
5291
  Object.entries(memberEntries).forEach(([key, value]) => {
5163
5292
  const loc = `Parameters.${key}`;
5164
5293
  entries[loc] = value;
@@ -5166,6 +5295,9 @@ const serializeAws_queryUpdateStackSetInput = (input, context) => {
5166
5295
  }
5167
5296
  if (input.Capabilities != null) {
5168
5297
  const memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
5298
+ if (input.Capabilities?.length === 0) {
5299
+ entries.Capabilities = [];
5300
+ }
5169
5301
  Object.entries(memberEntries).forEach(([key, value]) => {
5170
5302
  const loc = `Capabilities.${key}`;
5171
5303
  entries[loc] = value;
@@ -5173,6 +5305,9 @@ const serializeAws_queryUpdateStackSetInput = (input, context) => {
5173
5305
  }
5174
5306
  if (input.Tags != null) {
5175
5307
  const memberEntries = serializeAws_queryTags(input.Tags, context);
5308
+ if (input.Tags?.length === 0) {
5309
+ entries.Tags = [];
5310
+ }
5176
5311
  Object.entries(memberEntries).forEach(([key, value]) => {
5177
5312
  const loc = `Tags.${key}`;
5178
5313
  entries[loc] = value;
@@ -5216,6 +5351,9 @@ const serializeAws_queryUpdateStackSetInput = (input, context) => {
5216
5351
  }
5217
5352
  if (input.Accounts != null) {
5218
5353
  const memberEntries = serializeAws_queryAccountList(input.Accounts, context);
5354
+ if (input.Accounts?.length === 0) {
5355
+ entries.Accounts = [];
5356
+ }
5219
5357
  Object.entries(memberEntries).forEach(([key, value]) => {
5220
5358
  const loc = `Accounts.${key}`;
5221
5359
  entries[loc] = value;
@@ -5223,6 +5361,9 @@ const serializeAws_queryUpdateStackSetInput = (input, context) => {
5223
5361
  }
5224
5362
  if (input.Regions != null) {
5225
5363
  const memberEntries = serializeAws_queryRegionList(input.Regions, context);
5364
+ if (input.Regions?.length === 0) {
5365
+ entries.Regions = [];
5366
+ }
5226
5367
  Object.entries(memberEntries).forEach(([key, value]) => {
5227
5368
  const loc = `Regions.${key}`;
5228
5369
  entries[loc] = value;
@@ -8,7 +8,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
8
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
10
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
- const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
12
11
  const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
@@ -24,8 +23,6 @@ const getRuntimeConfig = (config) => {
24
23
  ...config,
25
24
  runtime: "browser",
26
25
  defaultsMode,
27
- base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
- base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
26
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
27
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
28
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -10,7 +10,6 @@ const hash_node_1 = require("@aws-sdk/hash-node");
10
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
11
  const node_config_provider_1 = require("@aws-sdk/node-config-provider");
12
12
  const node_http_handler_1 = require("@aws-sdk/node-http-handler");
13
- const util_base64_node_1 = require("@aws-sdk/util-base64-node");
14
13
  const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
14
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
15
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
@@ -28,8 +27,6 @@ const getRuntimeConfig = (config) => {
28
27
  ...config,
29
28
  runtime: "node",
30
29
  defaultsMode,
31
- base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
- base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
30
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
31
  credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
32
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -2,9 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
+ const util_base64_1 = require("@aws-sdk/util-base64");
5
6
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
7
  const getRuntimeConfig = (config) => ({
7
8
  apiVersion: "2010-05-15",
9
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
10
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
8
11
  disableHostPrefix: config?.disableHostPrefix ?? false,
9
12
  endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
13
  logger: config?.logger ?? {},