@aws-sdk/client-auto-scaling 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.
@@ -2992,6 +2992,9 @@ const serializeAws_queryAttachInstancesQuery = (input, context) => {
2992
2992
  const entries = {};
2993
2993
  if (input.InstanceIds != null) {
2994
2994
  const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
2995
+ if (input.InstanceIds?.length === 0) {
2996
+ entries.InstanceIds = [];
2997
+ }
2995
2998
  Object.entries(memberEntries).forEach(([key, value]) => {
2996
2999
  const loc = `InstanceIds.${key}`;
2997
3000
  entries[loc] = value;
@@ -3009,6 +3012,9 @@ const serializeAws_queryAttachLoadBalancersType = (input, context) => {
3009
3012
  }
3010
3013
  if (input.LoadBalancerNames != null) {
3011
3014
  const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
3015
+ if (input.LoadBalancerNames?.length === 0) {
3016
+ entries.LoadBalancerNames = [];
3017
+ }
3012
3018
  Object.entries(memberEntries).forEach(([key, value]) => {
3013
3019
  const loc = `LoadBalancerNames.${key}`;
3014
3020
  entries[loc] = value;
@@ -3023,6 +3029,9 @@ const serializeAws_queryAttachLoadBalancerTargetGroupsType = (input, context) =>
3023
3029
  }
3024
3030
  if (input.TargetGroupARNs != null) {
3025
3031
  const memberEntries = serializeAws_queryTargetGroupARNs(input.TargetGroupARNs, context);
3032
+ if (input.TargetGroupARNs?.length === 0) {
3033
+ entries.TargetGroupARNs = [];
3034
+ }
3026
3035
  Object.entries(memberEntries).forEach(([key, value]) => {
3027
3036
  const loc = `TargetGroupARNs.${key}`;
3028
3037
  entries[loc] = value;
@@ -3046,6 +3055,9 @@ const serializeAws_queryAutoScalingGroupNamesType = (input, context) => {
3046
3055
  const entries = {};
3047
3056
  if (input.AutoScalingGroupNames != null) {
3048
3057
  const memberEntries = serializeAws_queryAutoScalingGroupNames(input.AutoScalingGroupNames, context);
3058
+ if (input.AutoScalingGroupNames?.length === 0) {
3059
+ entries.AutoScalingGroupNames = [];
3060
+ }
3049
3061
  Object.entries(memberEntries).forEach(([key, value]) => {
3050
3062
  const loc = `AutoScalingGroupNames.${key}`;
3051
3063
  entries[loc] = value;
@@ -3059,6 +3071,9 @@ const serializeAws_queryAutoScalingGroupNamesType = (input, context) => {
3059
3071
  }
3060
3072
  if (input.Filters != null) {
3061
3073
  const memberEntries = serializeAws_queryFilters(input.Filters, context);
3074
+ if (input.Filters?.length === 0) {
3075
+ entries.Filters = [];
3076
+ }
3062
3077
  Object.entries(memberEntries).forEach(([key, value]) => {
3063
3078
  const loc = `Filters.${key}`;
3064
3079
  entries[loc] = value;
@@ -3107,6 +3122,9 @@ const serializeAws_queryBatchDeleteScheduledActionType = (input, context) => {
3107
3122
  }
3108
3123
  if (input.ScheduledActionNames != null) {
3109
3124
  const memberEntries = serializeAws_queryScheduledActionNames(input.ScheduledActionNames, context);
3125
+ if (input.ScheduledActionNames?.length === 0) {
3126
+ entries.ScheduledActionNames = [];
3127
+ }
3110
3128
  Object.entries(memberEntries).forEach(([key, value]) => {
3111
3129
  const loc = `ScheduledActionNames.${key}`;
3112
3130
  entries[loc] = value;
@@ -3121,6 +3139,9 @@ const serializeAws_queryBatchPutScheduledUpdateGroupActionType = (input, context
3121
3139
  }
3122
3140
  if (input.ScheduledUpdateGroupActions != null) {
3123
3141
  const memberEntries = serializeAws_queryScheduledUpdateGroupActionRequests(input.ScheduledUpdateGroupActions, context);
3142
+ if (input.ScheduledUpdateGroupActions?.length === 0) {
3143
+ entries.ScheduledUpdateGroupActions = [];
3144
+ }
3124
3145
  Object.entries(memberEntries).forEach(([key, value]) => {
3125
3146
  const loc = `ScheduledUpdateGroupActions.${key}`;
3126
3147
  entries[loc] = value;
@@ -3264,6 +3285,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
3264
3285
  }
3265
3286
  if (input.AvailabilityZones != null) {
3266
3287
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
3288
+ if (input.AvailabilityZones?.length === 0) {
3289
+ entries.AvailabilityZones = [];
3290
+ }
3267
3291
  Object.entries(memberEntries).forEach(([key, value]) => {
3268
3292
  const loc = `AvailabilityZones.${key}`;
3269
3293
  entries[loc] = value;
@@ -3271,6 +3295,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
3271
3295
  }
3272
3296
  if (input.LoadBalancerNames != null) {
3273
3297
  const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
3298
+ if (input.LoadBalancerNames?.length === 0) {
3299
+ entries.LoadBalancerNames = [];
3300
+ }
3274
3301
  Object.entries(memberEntries).forEach(([key, value]) => {
3275
3302
  const loc = `LoadBalancerNames.${key}`;
3276
3303
  entries[loc] = value;
@@ -3278,6 +3305,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
3278
3305
  }
3279
3306
  if (input.TargetGroupARNs != null) {
3280
3307
  const memberEntries = serializeAws_queryTargetGroupARNs(input.TargetGroupARNs, context);
3308
+ if (input.TargetGroupARNs?.length === 0) {
3309
+ entries.TargetGroupARNs = [];
3310
+ }
3281
3311
  Object.entries(memberEntries).forEach(([key, value]) => {
3282
3312
  const loc = `TargetGroupARNs.${key}`;
3283
3313
  entries[loc] = value;
@@ -3297,6 +3327,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
3297
3327
  }
3298
3328
  if (input.TerminationPolicies != null) {
3299
3329
  const memberEntries = serializeAws_queryTerminationPolicies(input.TerminationPolicies, context);
3330
+ if (input.TerminationPolicies?.length === 0) {
3331
+ entries.TerminationPolicies = [];
3332
+ }
3300
3333
  Object.entries(memberEntries).forEach(([key, value]) => {
3301
3334
  const loc = `TerminationPolicies.${key}`;
3302
3335
  entries[loc] = value;
@@ -3310,6 +3343,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
3310
3343
  }
3311
3344
  if (input.LifecycleHookSpecificationList != null) {
3312
3345
  const memberEntries = serializeAws_queryLifecycleHookSpecifications(input.LifecycleHookSpecificationList, context);
3346
+ if (input.LifecycleHookSpecificationList?.length === 0) {
3347
+ entries.LifecycleHookSpecificationList = [];
3348
+ }
3313
3349
  Object.entries(memberEntries).forEach(([key, value]) => {
3314
3350
  const loc = `LifecycleHookSpecificationList.${key}`;
3315
3351
  entries[loc] = value;
@@ -3317,6 +3353,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
3317
3353
  }
3318
3354
  if (input.Tags != null) {
3319
3355
  const memberEntries = serializeAws_queryTags(input.Tags, context);
3356
+ if (input.Tags?.length === 0) {
3357
+ entries.Tags = [];
3358
+ }
3320
3359
  Object.entries(memberEntries).forEach(([key, value]) => {
3321
3360
  const loc = `Tags.${key}`;
3322
3361
  entries[loc] = value;
@@ -3352,6 +3391,9 @@ const serializeAws_queryCreateLaunchConfigurationType = (input, context) => {
3352
3391
  }
3353
3392
  if (input.SecurityGroups != null) {
3354
3393
  const memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
3394
+ if (input.SecurityGroups?.length === 0) {
3395
+ entries.SecurityGroups = [];
3396
+ }
3355
3397
  Object.entries(memberEntries).forEach(([key, value]) => {
3356
3398
  const loc = `SecurityGroups.${key}`;
3357
3399
  entries[loc] = value;
@@ -3362,6 +3404,9 @@ const serializeAws_queryCreateLaunchConfigurationType = (input, context) => {
3362
3404
  }
3363
3405
  if (input.ClassicLinkVPCSecurityGroups != null) {
3364
3406
  const memberEntries = serializeAws_queryClassicLinkVPCSecurityGroups(input.ClassicLinkVPCSecurityGroups, context);
3407
+ if (input.ClassicLinkVPCSecurityGroups?.length === 0) {
3408
+ entries.ClassicLinkVPCSecurityGroups = [];
3409
+ }
3365
3410
  Object.entries(memberEntries).forEach(([key, value]) => {
3366
3411
  const loc = `ClassicLinkVPCSecurityGroups.${key}`;
3367
3412
  entries[loc] = value;
@@ -3384,6 +3429,9 @@ const serializeAws_queryCreateLaunchConfigurationType = (input, context) => {
3384
3429
  }
3385
3430
  if (input.BlockDeviceMappings != null) {
3386
3431
  const memberEntries = serializeAws_queryBlockDeviceMappings(input.BlockDeviceMappings, context);
3432
+ if (input.BlockDeviceMappings?.length === 0) {
3433
+ entries.BlockDeviceMappings = [];
3434
+ }
3387
3435
  Object.entries(memberEntries).forEach(([key, value]) => {
3388
3436
  const loc = `BlockDeviceMappings.${key}`;
3389
3437
  entries[loc] = value;
@@ -3424,6 +3472,9 @@ const serializeAws_queryCreateOrUpdateTagsType = (input, context) => {
3424
3472
  const entries = {};
3425
3473
  if (input.Tags != null) {
3426
3474
  const memberEntries = serializeAws_queryTags(input.Tags, context);
3475
+ if (input.Tags?.length === 0) {
3476
+ entries.Tags = [];
3477
+ }
3427
3478
  Object.entries(memberEntries).forEach(([key, value]) => {
3428
3479
  const loc = `Tags.${key}`;
3429
3480
  entries[loc] = value;
@@ -3441,6 +3492,9 @@ const serializeAws_queryCustomizedMetricSpecification = (input, context) => {
3441
3492
  }
3442
3493
  if (input.Dimensions != null) {
3443
3494
  const memberEntries = serializeAws_queryMetricDimensions(input.Dimensions, context);
3495
+ if (input.Dimensions?.length === 0) {
3496
+ entries.Dimensions = [];
3497
+ }
3444
3498
  Object.entries(memberEntries).forEach(([key, value]) => {
3445
3499
  const loc = `Dimensions.${key}`;
3446
3500
  entries[loc] = value;
@@ -3508,6 +3562,9 @@ const serializeAws_queryDeleteTagsType = (input, context) => {
3508
3562
  const entries = {};
3509
3563
  if (input.Tags != null) {
3510
3564
  const memberEntries = serializeAws_queryTags(input.Tags, context);
3565
+ if (input.Tags?.length === 0) {
3566
+ entries.Tags = [];
3567
+ }
3511
3568
  Object.entries(memberEntries).forEach(([key, value]) => {
3512
3569
  const loc = `Tags.${key}`;
3513
3570
  entries[loc] = value;
@@ -3529,6 +3586,9 @@ const serializeAws_queryDescribeAutoScalingInstancesType = (input, context) => {
3529
3586
  const entries = {};
3530
3587
  if (input.InstanceIds != null) {
3531
3588
  const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
3589
+ if (input.InstanceIds?.length === 0) {
3590
+ entries.InstanceIds = [];
3591
+ }
3532
3592
  Object.entries(memberEntries).forEach(([key, value]) => {
3533
3593
  const loc = `InstanceIds.${key}`;
3534
3594
  entries[loc] = value;
@@ -3549,6 +3609,9 @@ const serializeAws_queryDescribeInstanceRefreshesType = (input, context) => {
3549
3609
  }
3550
3610
  if (input.InstanceRefreshIds != null) {
3551
3611
  const memberEntries = serializeAws_queryInstanceRefreshIds(input.InstanceRefreshIds, context);
3612
+ if (input.InstanceRefreshIds?.length === 0) {
3613
+ entries.InstanceRefreshIds = [];
3614
+ }
3552
3615
  Object.entries(memberEntries).forEach(([key, value]) => {
3553
3616
  const loc = `InstanceRefreshIds.${key}`;
3554
3617
  entries[loc] = value;
@@ -3569,6 +3632,9 @@ const serializeAws_queryDescribeLifecycleHooksType = (input, context) => {
3569
3632
  }
3570
3633
  if (input.LifecycleHookNames != null) {
3571
3634
  const memberEntries = serializeAws_queryLifecycleHookNames(input.LifecycleHookNames, context);
3635
+ if (input.LifecycleHookNames?.length === 0) {
3636
+ entries.LifecycleHookNames = [];
3637
+ }
3572
3638
  Object.entries(memberEntries).forEach(([key, value]) => {
3573
3639
  const loc = `LifecycleHookNames.${key}`;
3574
3640
  entries[loc] = value;
@@ -3606,6 +3672,9 @@ const serializeAws_queryDescribeNotificationConfigurationsType = (input, context
3606
3672
  const entries = {};
3607
3673
  if (input.AutoScalingGroupNames != null) {
3608
3674
  const memberEntries = serializeAws_queryAutoScalingGroupNames(input.AutoScalingGroupNames, context);
3675
+ if (input.AutoScalingGroupNames?.length === 0) {
3676
+ entries.AutoScalingGroupNames = [];
3677
+ }
3609
3678
  Object.entries(memberEntries).forEach(([key, value]) => {
3610
3679
  const loc = `AutoScalingGroupNames.${key}`;
3611
3680
  entries[loc] = value;
@@ -3626,6 +3695,9 @@ const serializeAws_queryDescribePoliciesType = (input, context) => {
3626
3695
  }
3627
3696
  if (input.PolicyNames != null) {
3628
3697
  const memberEntries = serializeAws_queryPolicyNames(input.PolicyNames, context);
3698
+ if (input.PolicyNames?.length === 0) {
3699
+ entries.PolicyNames = [];
3700
+ }
3629
3701
  Object.entries(memberEntries).forEach(([key, value]) => {
3630
3702
  const loc = `PolicyNames.${key}`;
3631
3703
  entries[loc] = value;
@@ -3633,6 +3705,9 @@ const serializeAws_queryDescribePoliciesType = (input, context) => {
3633
3705
  }
3634
3706
  if (input.PolicyTypes != null) {
3635
3707
  const memberEntries = serializeAws_queryPolicyTypes(input.PolicyTypes, context);
3708
+ if (input.PolicyTypes?.length === 0) {
3709
+ entries.PolicyTypes = [];
3710
+ }
3636
3711
  Object.entries(memberEntries).forEach(([key, value]) => {
3637
3712
  const loc = `PolicyTypes.${key}`;
3638
3713
  entries[loc] = value;
@@ -3650,6 +3725,9 @@ const serializeAws_queryDescribeScalingActivitiesType = (input, context) => {
3650
3725
  const entries = {};
3651
3726
  if (input.ActivityIds != null) {
3652
3727
  const memberEntries = serializeAws_queryActivityIds(input.ActivityIds, context);
3728
+ if (input.ActivityIds?.length === 0) {
3729
+ entries.ActivityIds = [];
3730
+ }
3653
3731
  Object.entries(memberEntries).forEach(([key, value]) => {
3654
3732
  const loc = `ActivityIds.${key}`;
3655
3733
  entries[loc] = value;
@@ -3676,6 +3754,9 @@ const serializeAws_queryDescribeScheduledActionsType = (input, context) => {
3676
3754
  }
3677
3755
  if (input.ScheduledActionNames != null) {
3678
3756
  const memberEntries = serializeAws_queryScheduledActionNames(input.ScheduledActionNames, context);
3757
+ if (input.ScheduledActionNames?.length === 0) {
3758
+ entries.ScheduledActionNames = [];
3759
+ }
3679
3760
  Object.entries(memberEntries).forEach(([key, value]) => {
3680
3761
  const loc = `ScheduledActionNames.${key}`;
3681
3762
  entries[loc] = value;
@@ -3699,6 +3780,9 @@ const serializeAws_queryDescribeTagsType = (input, context) => {
3699
3780
  const entries = {};
3700
3781
  if (input.Filters != null) {
3701
3782
  const memberEntries = serializeAws_queryFilters(input.Filters, context);
3783
+ if (input.Filters?.length === 0) {
3784
+ entries.Filters = [];
3785
+ }
3702
3786
  Object.entries(memberEntries).forEach(([key, value]) => {
3703
3787
  const loc = `Filters.${key}`;
3704
3788
  entries[loc] = value;
@@ -3747,6 +3831,9 @@ const serializeAws_queryDetachInstancesQuery = (input, context) => {
3747
3831
  const entries = {};
3748
3832
  if (input.InstanceIds != null) {
3749
3833
  const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
3834
+ if (input.InstanceIds?.length === 0) {
3835
+ entries.InstanceIds = [];
3836
+ }
3750
3837
  Object.entries(memberEntries).forEach(([key, value]) => {
3751
3838
  const loc = `InstanceIds.${key}`;
3752
3839
  entries[loc] = value;
@@ -3767,6 +3854,9 @@ const serializeAws_queryDetachLoadBalancersType = (input, context) => {
3767
3854
  }
3768
3855
  if (input.LoadBalancerNames != null) {
3769
3856
  const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
3857
+ if (input.LoadBalancerNames?.length === 0) {
3858
+ entries.LoadBalancerNames = [];
3859
+ }
3770
3860
  Object.entries(memberEntries).forEach(([key, value]) => {
3771
3861
  const loc = `LoadBalancerNames.${key}`;
3772
3862
  entries[loc] = value;
@@ -3781,6 +3871,9 @@ const serializeAws_queryDetachLoadBalancerTargetGroupsType = (input, context) =>
3781
3871
  }
3782
3872
  if (input.TargetGroupARNs != null) {
3783
3873
  const memberEntries = serializeAws_queryTargetGroupARNs(input.TargetGroupARNs, context);
3874
+ if (input.TargetGroupARNs?.length === 0) {
3875
+ entries.TargetGroupARNs = [];
3876
+ }
3784
3877
  Object.entries(memberEntries).forEach(([key, value]) => {
3785
3878
  const loc = `TargetGroupARNs.${key}`;
3786
3879
  entries[loc] = value;
@@ -3795,6 +3888,9 @@ const serializeAws_queryDisableMetricsCollectionQuery = (input, context) => {
3795
3888
  }
3796
3889
  if (input.Metrics != null) {
3797
3890
  const memberEntries = serializeAws_queryMetrics(input.Metrics, context);
3891
+ if (input.Metrics?.length === 0) {
3892
+ entries.Metrics = [];
3893
+ }
3798
3894
  Object.entries(memberEntries).forEach(([key, value]) => {
3799
3895
  const loc = `Metrics.${key}`;
3800
3896
  entries[loc] = value;
@@ -3834,6 +3930,9 @@ const serializeAws_queryEnableMetricsCollectionQuery = (input, context) => {
3834
3930
  }
3835
3931
  if (input.Metrics != null) {
3836
3932
  const memberEntries = serializeAws_queryMetrics(input.Metrics, context);
3933
+ if (input.Metrics?.length === 0) {
3934
+ entries.Metrics = [];
3935
+ }
3837
3936
  Object.entries(memberEntries).forEach(([key, value]) => {
3838
3937
  const loc = `Metrics.${key}`;
3839
3938
  entries[loc] = value;
@@ -3848,6 +3947,9 @@ const serializeAws_queryEnterStandbyQuery = (input, context) => {
3848
3947
  const entries = {};
3849
3948
  if (input.InstanceIds != null) {
3850
3949
  const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
3950
+ if (input.InstanceIds?.length === 0) {
3951
+ entries.InstanceIds = [];
3952
+ }
3851
3953
  Object.entries(memberEntries).forEach(([key, value]) => {
3852
3954
  const loc = `InstanceIds.${key}`;
3853
3955
  entries[loc] = value;
@@ -3896,6 +3998,9 @@ const serializeAws_queryExitStandbyQuery = (input, context) => {
3896
3998
  const entries = {};
3897
3999
  if (input.InstanceIds != null) {
3898
4000
  const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
4001
+ if (input.InstanceIds?.length === 0) {
4002
+ entries.InstanceIds = [];
4003
+ }
3899
4004
  Object.entries(memberEntries).forEach(([key, value]) => {
3900
4005
  const loc = `InstanceIds.${key}`;
3901
4006
  entries[loc] = value;
@@ -3913,6 +4018,9 @@ const serializeAws_queryFilter = (input, context) => {
3913
4018
  }
3914
4019
  if (input.Values != null) {
3915
4020
  const memberEntries = serializeAws_queryValues(input.Values, context);
4021
+ if (input.Values?.length === 0) {
4022
+ entries.Values = [];
4023
+ }
3916
4024
  Object.entries(memberEntries).forEach(([key, value]) => {
3917
4025
  const loc = `Values.${key}`;
3918
4026
  entries[loc] = value;
@@ -4025,6 +4133,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
4025
4133
  }
4026
4134
  if (input.CpuManufacturers != null) {
4027
4135
  const memberEntries = serializeAws_queryCpuManufacturers(input.CpuManufacturers, context);
4136
+ if (input.CpuManufacturers?.length === 0) {
4137
+ entries.CpuManufacturers = [];
4138
+ }
4028
4139
  Object.entries(memberEntries).forEach(([key, value]) => {
4029
4140
  const loc = `CpuManufacturers.${key}`;
4030
4141
  entries[loc] = value;
@@ -4039,6 +4150,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
4039
4150
  }
4040
4151
  if (input.ExcludedInstanceTypes != null) {
4041
4152
  const memberEntries = serializeAws_queryExcludedInstanceTypes(input.ExcludedInstanceTypes, context);
4153
+ if (input.ExcludedInstanceTypes?.length === 0) {
4154
+ entries.ExcludedInstanceTypes = [];
4155
+ }
4042
4156
  Object.entries(memberEntries).forEach(([key, value]) => {
4043
4157
  const loc = `ExcludedInstanceTypes.${key}`;
4044
4158
  entries[loc] = value;
@@ -4046,6 +4160,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
4046
4160
  }
4047
4161
  if (input.InstanceGenerations != null) {
4048
4162
  const memberEntries = serializeAws_queryInstanceGenerations(input.InstanceGenerations, context);
4163
+ if (input.InstanceGenerations?.length === 0) {
4164
+ entries.InstanceGenerations = [];
4165
+ }
4049
4166
  Object.entries(memberEntries).forEach(([key, value]) => {
4050
4167
  const loc = `InstanceGenerations.${key}`;
4051
4168
  entries[loc] = value;
@@ -4078,6 +4195,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
4078
4195
  }
4079
4196
  if (input.LocalStorageTypes != null) {
4080
4197
  const memberEntries = serializeAws_queryLocalStorageTypes(input.LocalStorageTypes, context);
4198
+ if (input.LocalStorageTypes?.length === 0) {
4199
+ entries.LocalStorageTypes = [];
4200
+ }
4081
4201
  Object.entries(memberEntries).forEach(([key, value]) => {
4082
4202
  const loc = `LocalStorageTypes.${key}`;
4083
4203
  entries[loc] = value;
@@ -4099,6 +4219,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
4099
4219
  }
4100
4220
  if (input.AcceleratorTypes != null) {
4101
4221
  const memberEntries = serializeAws_queryAcceleratorTypes(input.AcceleratorTypes, context);
4222
+ if (input.AcceleratorTypes?.length === 0) {
4223
+ entries.AcceleratorTypes = [];
4224
+ }
4102
4225
  Object.entries(memberEntries).forEach(([key, value]) => {
4103
4226
  const loc = `AcceleratorTypes.${key}`;
4104
4227
  entries[loc] = value;
@@ -4113,6 +4236,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
4113
4236
  }
4114
4237
  if (input.AcceleratorManufacturers != null) {
4115
4238
  const memberEntries = serializeAws_queryAcceleratorManufacturers(input.AcceleratorManufacturers, context);
4239
+ if (input.AcceleratorManufacturers?.length === 0) {
4240
+ entries.AcceleratorManufacturers = [];
4241
+ }
4116
4242
  Object.entries(memberEntries).forEach(([key, value]) => {
4117
4243
  const loc = `AcceleratorManufacturers.${key}`;
4118
4244
  entries[loc] = value;
@@ -4120,6 +4246,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
4120
4246
  }
4121
4247
  if (input.AcceleratorNames != null) {
4122
4248
  const memberEntries = serializeAws_queryAcceleratorNames(input.AcceleratorNames, context);
4249
+ if (input.AcceleratorNames?.length === 0) {
4250
+ entries.AcceleratorNames = [];
4251
+ }
4123
4252
  Object.entries(memberEntries).forEach(([key, value]) => {
4124
4253
  const loc = `AcceleratorNames.${key}`;
4125
4254
  entries[loc] = value;
@@ -4179,6 +4308,9 @@ const serializeAws_queryLaunchConfigurationNamesType = (input, context) => {
4179
4308
  const entries = {};
4180
4309
  if (input.LaunchConfigurationNames != null) {
4181
4310
  const memberEntries = serializeAws_queryLaunchConfigurationNames(input.LaunchConfigurationNames, context);
4311
+ if (input.LaunchConfigurationNames?.length === 0) {
4312
+ entries.LaunchConfigurationNames = [];
4313
+ }
4182
4314
  Object.entries(memberEntries).forEach(([key, value]) => {
4183
4315
  const loc = `LaunchConfigurationNames.${key}`;
4184
4316
  entries[loc] = value;
@@ -4210,6 +4342,9 @@ const serializeAws_queryLaunchTemplate = (input, context) => {
4210
4342
  }
4211
4343
  if (input.Overrides != null) {
4212
4344
  const memberEntries = serializeAws_queryOverrides(input.Overrides, context);
4345
+ if (input.Overrides?.length === 0) {
4346
+ entries.Overrides = [];
4347
+ }
4213
4348
  Object.entries(memberEntries).forEach(([key, value]) => {
4214
4349
  const loc = `Overrides.${key}`;
4215
4350
  entries[loc] = value;
@@ -4360,6 +4495,9 @@ const serializeAws_queryMetric = (input, context) => {
4360
4495
  }
4361
4496
  if (input.Dimensions != null) {
4362
4497
  const memberEntries = serializeAws_queryMetricDimensions(input.Dimensions, context);
4498
+ if (input.Dimensions?.length === 0) {
4499
+ entries.Dimensions = [];
4500
+ }
4363
4501
  Object.entries(memberEntries).forEach(([key, value]) => {
4364
4502
  const loc = `Dimensions.${key}`;
4365
4503
  entries[loc] = value;
@@ -4540,6 +4678,9 @@ const serializeAws_queryPredictiveScalingConfiguration = (input, context) => {
4540
4678
  const entries = {};
4541
4679
  if (input.MetricSpecifications != null) {
4542
4680
  const memberEntries = serializeAws_queryPredictiveScalingMetricSpecifications(input.MetricSpecifications, context);
4681
+ if (input.MetricSpecifications?.length === 0) {
4682
+ entries.MetricSpecifications = [];
4683
+ }
4543
4684
  Object.entries(memberEntries).forEach(([key, value]) => {
4544
4685
  const loc = `MetricSpecifications.${key}`;
4545
4686
  entries[loc] = value;
@@ -4563,6 +4704,9 @@ const serializeAws_queryPredictiveScalingCustomizedCapacityMetric = (input, cont
4563
4704
  const entries = {};
4564
4705
  if (input.MetricDataQueries != null) {
4565
4706
  const memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
4707
+ if (input.MetricDataQueries?.length === 0) {
4708
+ entries.MetricDataQueries = [];
4709
+ }
4566
4710
  Object.entries(memberEntries).forEach(([key, value]) => {
4567
4711
  const loc = `MetricDataQueries.${key}`;
4568
4712
  entries[loc] = value;
@@ -4574,6 +4718,9 @@ const serializeAws_queryPredictiveScalingCustomizedLoadMetric = (input, context)
4574
4718
  const entries = {};
4575
4719
  if (input.MetricDataQueries != null) {
4576
4720
  const memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
4721
+ if (input.MetricDataQueries?.length === 0) {
4722
+ entries.MetricDataQueries = [];
4723
+ }
4577
4724
  Object.entries(memberEntries).forEach(([key, value]) => {
4578
4725
  const loc = `MetricDataQueries.${key}`;
4579
4726
  entries[loc] = value;
@@ -4585,6 +4732,9 @@ const serializeAws_queryPredictiveScalingCustomizedScalingMetric = (input, conte
4585
4732
  const entries = {};
4586
4733
  if (input.MetricDataQueries != null) {
4587
4734
  const memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
4735
+ if (input.MetricDataQueries?.length === 0) {
4736
+ entries.MetricDataQueries = [];
4737
+ }
4588
4738
  Object.entries(memberEntries).forEach(([key, value]) => {
4589
4739
  const loc = `MetricDataQueries.${key}`;
4590
4740
  entries[loc] = value;
@@ -4736,6 +4886,9 @@ const serializeAws_queryPutNotificationConfigurationType = (input, context) => {
4736
4886
  }
4737
4887
  if (input.NotificationTypes != null) {
4738
4888
  const memberEntries = serializeAws_queryAutoScalingNotificationTypes(input.NotificationTypes, context);
4889
+ if (input.NotificationTypes?.length === 0) {
4890
+ entries.NotificationTypes = [];
4891
+ }
4739
4892
  Object.entries(memberEntries).forEach(([key, value]) => {
4740
4893
  const loc = `NotificationTypes.${key}`;
4741
4894
  entries[loc] = value;
@@ -4774,6 +4927,9 @@ const serializeAws_queryPutScalingPolicyType = (input, context) => {
4774
4927
  }
4775
4928
  if (input.StepAdjustments != null) {
4776
4929
  const memberEntries = serializeAws_queryStepAdjustments(input.StepAdjustments, context);
4930
+ if (input.StepAdjustments?.length === 0) {
4931
+ entries.StepAdjustments = [];
4932
+ }
4777
4933
  Object.entries(memberEntries).forEach(([key, value]) => {
4778
4934
  const loc = `StepAdjustments.${key}`;
4779
4935
  entries[loc] = value;
@@ -4884,6 +5040,9 @@ const serializeAws_queryRefreshPreferences = (input, context) => {
4884
5040
  }
4885
5041
  if (input.CheckpointPercentages != null) {
4886
5042
  const memberEntries = serializeAws_queryCheckpointPercentages(input.CheckpointPercentages, context);
5043
+ if (input.CheckpointPercentages?.length === 0) {
5044
+ entries.CheckpointPercentages = [];
5045
+ }
4887
5046
  Object.entries(memberEntries).forEach(([key, value]) => {
4888
5047
  const loc = `CheckpointPercentages.${key}`;
4889
5048
  entries[loc] = value;
@@ -4904,6 +5063,9 @@ const serializeAws_queryScalingProcessQuery = (input, context) => {
4904
5063
  }
4905
5064
  if (input.ScalingProcesses != null) {
4906
5065
  const memberEntries = serializeAws_queryProcessNames(input.ScalingProcesses, context);
5066
+ if (input.ScalingProcesses?.length === 0) {
5067
+ entries.ScalingProcesses = [];
5068
+ }
4907
5069
  Object.entries(memberEntries).forEach(([key, value]) => {
4908
5070
  const loc = `ScalingProcesses.${key}`;
4909
5071
  entries[loc] = value;
@@ -5008,6 +5170,9 @@ const serializeAws_querySetInstanceProtectionQuery = (input, context) => {
5008
5170
  const entries = {};
5009
5171
  if (input.InstanceIds != null) {
5010
5172
  const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
5173
+ if (input.InstanceIds?.length === 0) {
5174
+ entries.InstanceIds = [];
5175
+ }
5011
5176
  Object.entries(memberEntries).forEach(([key, value]) => {
5012
5177
  const loc = `InstanceIds.${key}`;
5013
5178
  entries[loc] = value;
@@ -5211,6 +5376,9 @@ const serializeAws_queryUpdateAutoScalingGroupType = (input, context) => {
5211
5376
  }
5212
5377
  if (input.AvailabilityZones != null) {
5213
5378
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
5379
+ if (input.AvailabilityZones?.length === 0) {
5380
+ entries.AvailabilityZones = [];
5381
+ }
5214
5382
  Object.entries(memberEntries).forEach(([key, value]) => {
5215
5383
  const loc = `AvailabilityZones.${key}`;
5216
5384
  entries[loc] = value;
@@ -5230,6 +5398,9 @@ const serializeAws_queryUpdateAutoScalingGroupType = (input, context) => {
5230
5398
  }
5231
5399
  if (input.TerminationPolicies != null) {
5232
5400
  const memberEntries = serializeAws_queryTerminationPolicies(input.TerminationPolicies, context);
5401
+ if (input.TerminationPolicies?.length === 0) {
5402
+ entries.TerminationPolicies = [];
5403
+ }
5233
5404
  Object.entries(memberEntries).forEach(([key, value]) => {
5234
5405
  const loc = `TerminationPolicies.${key}`;
5235
5406
  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: "2011-01-01",
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 { AutoScalingClientConfig } from "./AutoScalingClient";
6
6
  export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
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: AutoScalingClientConfig) => {
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 { AutoScalingClientConfig } from "./AutoScalingClient";
6
6
  export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
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: AutoScalingClientConfig) => {
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 { AutoScalingClientConfig } from "./AutoScalingClient";
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
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: AutoScalingClientConfig) => {
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: AutoScalingClientConfig) => {
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;