@aws-sdk/client-cloudformation 3.201.0 → 3.202.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** aws-query protocol, distinguish explicit empty list ([#4003](https://github.com/aws/aws-sdk-js-v3/issues/4003)) ([8e10769](https://github.com/aws/aws-sdk-js-v3/commit/8e10769b6146f93c0674686fa547290292714917))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
7
18
 
8
19
 
@@ -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;
@@ -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;
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.202.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,9 +19,9 @@
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.202.0",
23
23
  "@aws-sdk/config-resolver": "3.201.0",
24
- "@aws-sdk/credential-provider-node": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.202.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.201.0",
26
26
  "@aws-sdk/hash-node": "3.201.0",
27
27
  "@aws-sdk/invalid-dependency": "3.201.0",
@@ -47,7 +47,7 @@
47
47
  "@aws-sdk/util-body-length-node": "3.201.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
49
  "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
- "@aws-sdk/util-endpoints": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.202.0",
51
51
  "@aws-sdk/util-user-agent-browser": "3.201.0",
52
52
  "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",