@aws-sdk/client-auto-scaling 3.200.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 +22 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_query.js +178 -11
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/dist-es/protocols/Aws_query.js +171 -0
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
|
|
17
|
+
# [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @aws-sdk/client-auto-scaling
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
var _a, _b;
|
|
6
5
|
return {
|
|
7
6
|
...options,
|
|
8
|
-
useDualstackEndpoint:
|
|
9
|
-
useFipsEndpoint:
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
10
9
|
defaultSigningName: "autoscaling",
|
|
11
10
|
};
|
|
12
11
|
};
|
|
@@ -3119,6 +3119,9 @@ const serializeAws_queryAttachInstancesQuery = (input, context) => {
|
|
|
3119
3119
|
const entries = {};
|
|
3120
3120
|
if (input.InstanceIds != null) {
|
|
3121
3121
|
const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
|
|
3122
|
+
if (input.InstanceIds?.length === 0) {
|
|
3123
|
+
entries.InstanceIds = [];
|
|
3124
|
+
}
|
|
3122
3125
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3123
3126
|
const loc = `InstanceIds.${key}`;
|
|
3124
3127
|
entries[loc] = value;
|
|
@@ -3136,6 +3139,9 @@ const serializeAws_queryAttachLoadBalancersType = (input, context) => {
|
|
|
3136
3139
|
}
|
|
3137
3140
|
if (input.LoadBalancerNames != null) {
|
|
3138
3141
|
const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
|
|
3142
|
+
if (input.LoadBalancerNames?.length === 0) {
|
|
3143
|
+
entries.LoadBalancerNames = [];
|
|
3144
|
+
}
|
|
3139
3145
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3140
3146
|
const loc = `LoadBalancerNames.${key}`;
|
|
3141
3147
|
entries[loc] = value;
|
|
@@ -3150,6 +3156,9 @@ const serializeAws_queryAttachLoadBalancerTargetGroupsType = (input, context) =>
|
|
|
3150
3156
|
}
|
|
3151
3157
|
if (input.TargetGroupARNs != null) {
|
|
3152
3158
|
const memberEntries = serializeAws_queryTargetGroupARNs(input.TargetGroupARNs, context);
|
|
3159
|
+
if (input.TargetGroupARNs?.length === 0) {
|
|
3160
|
+
entries.TargetGroupARNs = [];
|
|
3161
|
+
}
|
|
3153
3162
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3154
3163
|
const loc = `TargetGroupARNs.${key}`;
|
|
3155
3164
|
entries[loc] = value;
|
|
@@ -3173,6 +3182,9 @@ const serializeAws_queryAutoScalingGroupNamesType = (input, context) => {
|
|
|
3173
3182
|
const entries = {};
|
|
3174
3183
|
if (input.AutoScalingGroupNames != null) {
|
|
3175
3184
|
const memberEntries = serializeAws_queryAutoScalingGroupNames(input.AutoScalingGroupNames, context);
|
|
3185
|
+
if (input.AutoScalingGroupNames?.length === 0) {
|
|
3186
|
+
entries.AutoScalingGroupNames = [];
|
|
3187
|
+
}
|
|
3176
3188
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3177
3189
|
const loc = `AutoScalingGroupNames.${key}`;
|
|
3178
3190
|
entries[loc] = value;
|
|
@@ -3186,6 +3198,9 @@ const serializeAws_queryAutoScalingGroupNamesType = (input, context) => {
|
|
|
3186
3198
|
}
|
|
3187
3199
|
if (input.Filters != null) {
|
|
3188
3200
|
const memberEntries = serializeAws_queryFilters(input.Filters, context);
|
|
3201
|
+
if (input.Filters?.length === 0) {
|
|
3202
|
+
entries.Filters = [];
|
|
3203
|
+
}
|
|
3189
3204
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3190
3205
|
const loc = `Filters.${key}`;
|
|
3191
3206
|
entries[loc] = value;
|
|
@@ -3234,6 +3249,9 @@ const serializeAws_queryBatchDeleteScheduledActionType = (input, context) => {
|
|
|
3234
3249
|
}
|
|
3235
3250
|
if (input.ScheduledActionNames != null) {
|
|
3236
3251
|
const memberEntries = serializeAws_queryScheduledActionNames(input.ScheduledActionNames, context);
|
|
3252
|
+
if (input.ScheduledActionNames?.length === 0) {
|
|
3253
|
+
entries.ScheduledActionNames = [];
|
|
3254
|
+
}
|
|
3237
3255
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3238
3256
|
const loc = `ScheduledActionNames.${key}`;
|
|
3239
3257
|
entries[loc] = value;
|
|
@@ -3248,6 +3266,9 @@ const serializeAws_queryBatchPutScheduledUpdateGroupActionType = (input, context
|
|
|
3248
3266
|
}
|
|
3249
3267
|
if (input.ScheduledUpdateGroupActions != null) {
|
|
3250
3268
|
const memberEntries = serializeAws_queryScheduledUpdateGroupActionRequests(input.ScheduledUpdateGroupActions, context);
|
|
3269
|
+
if (input.ScheduledUpdateGroupActions?.length === 0) {
|
|
3270
|
+
entries.ScheduledUpdateGroupActions = [];
|
|
3271
|
+
}
|
|
3251
3272
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3252
3273
|
const loc = `ScheduledUpdateGroupActions.${key}`;
|
|
3253
3274
|
entries[loc] = value;
|
|
@@ -3391,6 +3412,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
|
|
|
3391
3412
|
}
|
|
3392
3413
|
if (input.AvailabilityZones != null) {
|
|
3393
3414
|
const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
|
|
3415
|
+
if (input.AvailabilityZones?.length === 0) {
|
|
3416
|
+
entries.AvailabilityZones = [];
|
|
3417
|
+
}
|
|
3394
3418
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3395
3419
|
const loc = `AvailabilityZones.${key}`;
|
|
3396
3420
|
entries[loc] = value;
|
|
@@ -3398,6 +3422,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
|
|
|
3398
3422
|
}
|
|
3399
3423
|
if (input.LoadBalancerNames != null) {
|
|
3400
3424
|
const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
|
|
3425
|
+
if (input.LoadBalancerNames?.length === 0) {
|
|
3426
|
+
entries.LoadBalancerNames = [];
|
|
3427
|
+
}
|
|
3401
3428
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3402
3429
|
const loc = `LoadBalancerNames.${key}`;
|
|
3403
3430
|
entries[loc] = value;
|
|
@@ -3405,6 +3432,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
|
|
|
3405
3432
|
}
|
|
3406
3433
|
if (input.TargetGroupARNs != null) {
|
|
3407
3434
|
const memberEntries = serializeAws_queryTargetGroupARNs(input.TargetGroupARNs, context);
|
|
3435
|
+
if (input.TargetGroupARNs?.length === 0) {
|
|
3436
|
+
entries.TargetGroupARNs = [];
|
|
3437
|
+
}
|
|
3408
3438
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3409
3439
|
const loc = `TargetGroupARNs.${key}`;
|
|
3410
3440
|
entries[loc] = value;
|
|
@@ -3424,6 +3454,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
|
|
|
3424
3454
|
}
|
|
3425
3455
|
if (input.TerminationPolicies != null) {
|
|
3426
3456
|
const memberEntries = serializeAws_queryTerminationPolicies(input.TerminationPolicies, context);
|
|
3457
|
+
if (input.TerminationPolicies?.length === 0) {
|
|
3458
|
+
entries.TerminationPolicies = [];
|
|
3459
|
+
}
|
|
3427
3460
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3428
3461
|
const loc = `TerminationPolicies.${key}`;
|
|
3429
3462
|
entries[loc] = value;
|
|
@@ -3437,6 +3470,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
|
|
|
3437
3470
|
}
|
|
3438
3471
|
if (input.LifecycleHookSpecificationList != null) {
|
|
3439
3472
|
const memberEntries = serializeAws_queryLifecycleHookSpecifications(input.LifecycleHookSpecificationList, context);
|
|
3473
|
+
if (input.LifecycleHookSpecificationList?.length === 0) {
|
|
3474
|
+
entries.LifecycleHookSpecificationList = [];
|
|
3475
|
+
}
|
|
3440
3476
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3441
3477
|
const loc = `LifecycleHookSpecificationList.${key}`;
|
|
3442
3478
|
entries[loc] = value;
|
|
@@ -3444,6 +3480,9 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
|
|
|
3444
3480
|
}
|
|
3445
3481
|
if (input.Tags != null) {
|
|
3446
3482
|
const memberEntries = serializeAws_queryTags(input.Tags, context);
|
|
3483
|
+
if (input.Tags?.length === 0) {
|
|
3484
|
+
entries.Tags = [];
|
|
3485
|
+
}
|
|
3447
3486
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3448
3487
|
const loc = `Tags.${key}`;
|
|
3449
3488
|
entries[loc] = value;
|
|
@@ -3479,6 +3518,9 @@ const serializeAws_queryCreateLaunchConfigurationType = (input, context) => {
|
|
|
3479
3518
|
}
|
|
3480
3519
|
if (input.SecurityGroups != null) {
|
|
3481
3520
|
const memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
|
|
3521
|
+
if (input.SecurityGroups?.length === 0) {
|
|
3522
|
+
entries.SecurityGroups = [];
|
|
3523
|
+
}
|
|
3482
3524
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3483
3525
|
const loc = `SecurityGroups.${key}`;
|
|
3484
3526
|
entries[loc] = value;
|
|
@@ -3489,6 +3531,9 @@ const serializeAws_queryCreateLaunchConfigurationType = (input, context) => {
|
|
|
3489
3531
|
}
|
|
3490
3532
|
if (input.ClassicLinkVPCSecurityGroups != null) {
|
|
3491
3533
|
const memberEntries = serializeAws_queryClassicLinkVPCSecurityGroups(input.ClassicLinkVPCSecurityGroups, context);
|
|
3534
|
+
if (input.ClassicLinkVPCSecurityGroups?.length === 0) {
|
|
3535
|
+
entries.ClassicLinkVPCSecurityGroups = [];
|
|
3536
|
+
}
|
|
3492
3537
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3493
3538
|
const loc = `ClassicLinkVPCSecurityGroups.${key}`;
|
|
3494
3539
|
entries[loc] = value;
|
|
@@ -3511,6 +3556,9 @@ const serializeAws_queryCreateLaunchConfigurationType = (input, context) => {
|
|
|
3511
3556
|
}
|
|
3512
3557
|
if (input.BlockDeviceMappings != null) {
|
|
3513
3558
|
const memberEntries = serializeAws_queryBlockDeviceMappings(input.BlockDeviceMappings, context);
|
|
3559
|
+
if (input.BlockDeviceMappings?.length === 0) {
|
|
3560
|
+
entries.BlockDeviceMappings = [];
|
|
3561
|
+
}
|
|
3514
3562
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3515
3563
|
const loc = `BlockDeviceMappings.${key}`;
|
|
3516
3564
|
entries[loc] = value;
|
|
@@ -3551,6 +3599,9 @@ const serializeAws_queryCreateOrUpdateTagsType = (input, context) => {
|
|
|
3551
3599
|
const entries = {};
|
|
3552
3600
|
if (input.Tags != null) {
|
|
3553
3601
|
const memberEntries = serializeAws_queryTags(input.Tags, context);
|
|
3602
|
+
if (input.Tags?.length === 0) {
|
|
3603
|
+
entries.Tags = [];
|
|
3604
|
+
}
|
|
3554
3605
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3555
3606
|
const loc = `Tags.${key}`;
|
|
3556
3607
|
entries[loc] = value;
|
|
@@ -3568,6 +3619,9 @@ const serializeAws_queryCustomizedMetricSpecification = (input, context) => {
|
|
|
3568
3619
|
}
|
|
3569
3620
|
if (input.Dimensions != null) {
|
|
3570
3621
|
const memberEntries = serializeAws_queryMetricDimensions(input.Dimensions, context);
|
|
3622
|
+
if (input.Dimensions?.length === 0) {
|
|
3623
|
+
entries.Dimensions = [];
|
|
3624
|
+
}
|
|
3571
3625
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3572
3626
|
const loc = `Dimensions.${key}`;
|
|
3573
3627
|
entries[loc] = value;
|
|
@@ -3635,6 +3689,9 @@ const serializeAws_queryDeleteTagsType = (input, context) => {
|
|
|
3635
3689
|
const entries = {};
|
|
3636
3690
|
if (input.Tags != null) {
|
|
3637
3691
|
const memberEntries = serializeAws_queryTags(input.Tags, context);
|
|
3692
|
+
if (input.Tags?.length === 0) {
|
|
3693
|
+
entries.Tags = [];
|
|
3694
|
+
}
|
|
3638
3695
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3639
3696
|
const loc = `Tags.${key}`;
|
|
3640
3697
|
entries[loc] = value;
|
|
@@ -3656,6 +3713,9 @@ const serializeAws_queryDescribeAutoScalingInstancesType = (input, context) => {
|
|
|
3656
3713
|
const entries = {};
|
|
3657
3714
|
if (input.InstanceIds != null) {
|
|
3658
3715
|
const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
|
|
3716
|
+
if (input.InstanceIds?.length === 0) {
|
|
3717
|
+
entries.InstanceIds = [];
|
|
3718
|
+
}
|
|
3659
3719
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3660
3720
|
const loc = `InstanceIds.${key}`;
|
|
3661
3721
|
entries[loc] = value;
|
|
@@ -3676,6 +3736,9 @@ const serializeAws_queryDescribeInstanceRefreshesType = (input, context) => {
|
|
|
3676
3736
|
}
|
|
3677
3737
|
if (input.InstanceRefreshIds != null) {
|
|
3678
3738
|
const memberEntries = serializeAws_queryInstanceRefreshIds(input.InstanceRefreshIds, context);
|
|
3739
|
+
if (input.InstanceRefreshIds?.length === 0) {
|
|
3740
|
+
entries.InstanceRefreshIds = [];
|
|
3741
|
+
}
|
|
3679
3742
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3680
3743
|
const loc = `InstanceRefreshIds.${key}`;
|
|
3681
3744
|
entries[loc] = value;
|
|
@@ -3696,6 +3759,9 @@ const serializeAws_queryDescribeLifecycleHooksType = (input, context) => {
|
|
|
3696
3759
|
}
|
|
3697
3760
|
if (input.LifecycleHookNames != null) {
|
|
3698
3761
|
const memberEntries = serializeAws_queryLifecycleHookNames(input.LifecycleHookNames, context);
|
|
3762
|
+
if (input.LifecycleHookNames?.length === 0) {
|
|
3763
|
+
entries.LifecycleHookNames = [];
|
|
3764
|
+
}
|
|
3699
3765
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3700
3766
|
const loc = `LifecycleHookNames.${key}`;
|
|
3701
3767
|
entries[loc] = value;
|
|
@@ -3733,6 +3799,9 @@ const serializeAws_queryDescribeNotificationConfigurationsType = (input, context
|
|
|
3733
3799
|
const entries = {};
|
|
3734
3800
|
if (input.AutoScalingGroupNames != null) {
|
|
3735
3801
|
const memberEntries = serializeAws_queryAutoScalingGroupNames(input.AutoScalingGroupNames, context);
|
|
3802
|
+
if (input.AutoScalingGroupNames?.length === 0) {
|
|
3803
|
+
entries.AutoScalingGroupNames = [];
|
|
3804
|
+
}
|
|
3736
3805
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3737
3806
|
const loc = `AutoScalingGroupNames.${key}`;
|
|
3738
3807
|
entries[loc] = value;
|
|
@@ -3753,6 +3822,9 @@ const serializeAws_queryDescribePoliciesType = (input, context) => {
|
|
|
3753
3822
|
}
|
|
3754
3823
|
if (input.PolicyNames != null) {
|
|
3755
3824
|
const memberEntries = serializeAws_queryPolicyNames(input.PolicyNames, context);
|
|
3825
|
+
if (input.PolicyNames?.length === 0) {
|
|
3826
|
+
entries.PolicyNames = [];
|
|
3827
|
+
}
|
|
3756
3828
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3757
3829
|
const loc = `PolicyNames.${key}`;
|
|
3758
3830
|
entries[loc] = value;
|
|
@@ -3760,6 +3832,9 @@ const serializeAws_queryDescribePoliciesType = (input, context) => {
|
|
|
3760
3832
|
}
|
|
3761
3833
|
if (input.PolicyTypes != null) {
|
|
3762
3834
|
const memberEntries = serializeAws_queryPolicyTypes(input.PolicyTypes, context);
|
|
3835
|
+
if (input.PolicyTypes?.length === 0) {
|
|
3836
|
+
entries.PolicyTypes = [];
|
|
3837
|
+
}
|
|
3763
3838
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3764
3839
|
const loc = `PolicyTypes.${key}`;
|
|
3765
3840
|
entries[loc] = value;
|
|
@@ -3777,6 +3852,9 @@ const serializeAws_queryDescribeScalingActivitiesType = (input, context) => {
|
|
|
3777
3852
|
const entries = {};
|
|
3778
3853
|
if (input.ActivityIds != null) {
|
|
3779
3854
|
const memberEntries = serializeAws_queryActivityIds(input.ActivityIds, context);
|
|
3855
|
+
if (input.ActivityIds?.length === 0) {
|
|
3856
|
+
entries.ActivityIds = [];
|
|
3857
|
+
}
|
|
3780
3858
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3781
3859
|
const loc = `ActivityIds.${key}`;
|
|
3782
3860
|
entries[loc] = value;
|
|
@@ -3803,6 +3881,9 @@ const serializeAws_queryDescribeScheduledActionsType = (input, context) => {
|
|
|
3803
3881
|
}
|
|
3804
3882
|
if (input.ScheduledActionNames != null) {
|
|
3805
3883
|
const memberEntries = serializeAws_queryScheduledActionNames(input.ScheduledActionNames, context);
|
|
3884
|
+
if (input.ScheduledActionNames?.length === 0) {
|
|
3885
|
+
entries.ScheduledActionNames = [];
|
|
3886
|
+
}
|
|
3806
3887
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3807
3888
|
const loc = `ScheduledActionNames.${key}`;
|
|
3808
3889
|
entries[loc] = value;
|
|
@@ -3826,6 +3907,9 @@ const serializeAws_queryDescribeTagsType = (input, context) => {
|
|
|
3826
3907
|
const entries = {};
|
|
3827
3908
|
if (input.Filters != null) {
|
|
3828
3909
|
const memberEntries = serializeAws_queryFilters(input.Filters, context);
|
|
3910
|
+
if (input.Filters?.length === 0) {
|
|
3911
|
+
entries.Filters = [];
|
|
3912
|
+
}
|
|
3829
3913
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3830
3914
|
const loc = `Filters.${key}`;
|
|
3831
3915
|
entries[loc] = value;
|
|
@@ -3874,6 +3958,9 @@ const serializeAws_queryDetachInstancesQuery = (input, context) => {
|
|
|
3874
3958
|
const entries = {};
|
|
3875
3959
|
if (input.InstanceIds != null) {
|
|
3876
3960
|
const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
|
|
3961
|
+
if (input.InstanceIds?.length === 0) {
|
|
3962
|
+
entries.InstanceIds = [];
|
|
3963
|
+
}
|
|
3877
3964
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3878
3965
|
const loc = `InstanceIds.${key}`;
|
|
3879
3966
|
entries[loc] = value;
|
|
@@ -3894,6 +3981,9 @@ const serializeAws_queryDetachLoadBalancersType = (input, context) => {
|
|
|
3894
3981
|
}
|
|
3895
3982
|
if (input.LoadBalancerNames != null) {
|
|
3896
3983
|
const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
|
|
3984
|
+
if (input.LoadBalancerNames?.length === 0) {
|
|
3985
|
+
entries.LoadBalancerNames = [];
|
|
3986
|
+
}
|
|
3897
3987
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3898
3988
|
const loc = `LoadBalancerNames.${key}`;
|
|
3899
3989
|
entries[loc] = value;
|
|
@@ -3908,6 +3998,9 @@ const serializeAws_queryDetachLoadBalancerTargetGroupsType = (input, context) =>
|
|
|
3908
3998
|
}
|
|
3909
3999
|
if (input.TargetGroupARNs != null) {
|
|
3910
4000
|
const memberEntries = serializeAws_queryTargetGroupARNs(input.TargetGroupARNs, context);
|
|
4001
|
+
if (input.TargetGroupARNs?.length === 0) {
|
|
4002
|
+
entries.TargetGroupARNs = [];
|
|
4003
|
+
}
|
|
3911
4004
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3912
4005
|
const loc = `TargetGroupARNs.${key}`;
|
|
3913
4006
|
entries[loc] = value;
|
|
@@ -3922,6 +4015,9 @@ const serializeAws_queryDisableMetricsCollectionQuery = (input, context) => {
|
|
|
3922
4015
|
}
|
|
3923
4016
|
if (input.Metrics != null) {
|
|
3924
4017
|
const memberEntries = serializeAws_queryMetrics(input.Metrics, context);
|
|
4018
|
+
if (input.Metrics?.length === 0) {
|
|
4019
|
+
entries.Metrics = [];
|
|
4020
|
+
}
|
|
3925
4021
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3926
4022
|
const loc = `Metrics.${key}`;
|
|
3927
4023
|
entries[loc] = value;
|
|
@@ -3961,6 +4057,9 @@ const serializeAws_queryEnableMetricsCollectionQuery = (input, context) => {
|
|
|
3961
4057
|
}
|
|
3962
4058
|
if (input.Metrics != null) {
|
|
3963
4059
|
const memberEntries = serializeAws_queryMetrics(input.Metrics, context);
|
|
4060
|
+
if (input.Metrics?.length === 0) {
|
|
4061
|
+
entries.Metrics = [];
|
|
4062
|
+
}
|
|
3964
4063
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3965
4064
|
const loc = `Metrics.${key}`;
|
|
3966
4065
|
entries[loc] = value;
|
|
@@ -3975,6 +4074,9 @@ const serializeAws_queryEnterStandbyQuery = (input, context) => {
|
|
|
3975
4074
|
const entries = {};
|
|
3976
4075
|
if (input.InstanceIds != null) {
|
|
3977
4076
|
const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
|
|
4077
|
+
if (input.InstanceIds?.length === 0) {
|
|
4078
|
+
entries.InstanceIds = [];
|
|
4079
|
+
}
|
|
3978
4080
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3979
4081
|
const loc = `InstanceIds.${key}`;
|
|
3980
4082
|
entries[loc] = value;
|
|
@@ -4023,6 +4125,9 @@ const serializeAws_queryExitStandbyQuery = (input, context) => {
|
|
|
4023
4125
|
const entries = {};
|
|
4024
4126
|
if (input.InstanceIds != null) {
|
|
4025
4127
|
const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
|
|
4128
|
+
if (input.InstanceIds?.length === 0) {
|
|
4129
|
+
entries.InstanceIds = [];
|
|
4130
|
+
}
|
|
4026
4131
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4027
4132
|
const loc = `InstanceIds.${key}`;
|
|
4028
4133
|
entries[loc] = value;
|
|
@@ -4040,6 +4145,9 @@ const serializeAws_queryFilter = (input, context) => {
|
|
|
4040
4145
|
}
|
|
4041
4146
|
if (input.Values != null) {
|
|
4042
4147
|
const memberEntries = serializeAws_queryValues(input.Values, context);
|
|
4148
|
+
if (input.Values?.length === 0) {
|
|
4149
|
+
entries.Values = [];
|
|
4150
|
+
}
|
|
4043
4151
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4044
4152
|
const loc = `Values.${key}`;
|
|
4045
4153
|
entries[loc] = value;
|
|
@@ -4152,6 +4260,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
|
|
|
4152
4260
|
}
|
|
4153
4261
|
if (input.CpuManufacturers != null) {
|
|
4154
4262
|
const memberEntries = serializeAws_queryCpuManufacturers(input.CpuManufacturers, context);
|
|
4263
|
+
if (input.CpuManufacturers?.length === 0) {
|
|
4264
|
+
entries.CpuManufacturers = [];
|
|
4265
|
+
}
|
|
4155
4266
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4156
4267
|
const loc = `CpuManufacturers.${key}`;
|
|
4157
4268
|
entries[loc] = value;
|
|
@@ -4166,6 +4277,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
|
|
|
4166
4277
|
}
|
|
4167
4278
|
if (input.ExcludedInstanceTypes != null) {
|
|
4168
4279
|
const memberEntries = serializeAws_queryExcludedInstanceTypes(input.ExcludedInstanceTypes, context);
|
|
4280
|
+
if (input.ExcludedInstanceTypes?.length === 0) {
|
|
4281
|
+
entries.ExcludedInstanceTypes = [];
|
|
4282
|
+
}
|
|
4169
4283
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4170
4284
|
const loc = `ExcludedInstanceTypes.${key}`;
|
|
4171
4285
|
entries[loc] = value;
|
|
@@ -4173,6 +4287,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
|
|
|
4173
4287
|
}
|
|
4174
4288
|
if (input.InstanceGenerations != null) {
|
|
4175
4289
|
const memberEntries = serializeAws_queryInstanceGenerations(input.InstanceGenerations, context);
|
|
4290
|
+
if (input.InstanceGenerations?.length === 0) {
|
|
4291
|
+
entries.InstanceGenerations = [];
|
|
4292
|
+
}
|
|
4176
4293
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4177
4294
|
const loc = `InstanceGenerations.${key}`;
|
|
4178
4295
|
entries[loc] = value;
|
|
@@ -4205,6 +4322,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
|
|
|
4205
4322
|
}
|
|
4206
4323
|
if (input.LocalStorageTypes != null) {
|
|
4207
4324
|
const memberEntries = serializeAws_queryLocalStorageTypes(input.LocalStorageTypes, context);
|
|
4325
|
+
if (input.LocalStorageTypes?.length === 0) {
|
|
4326
|
+
entries.LocalStorageTypes = [];
|
|
4327
|
+
}
|
|
4208
4328
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4209
4329
|
const loc = `LocalStorageTypes.${key}`;
|
|
4210
4330
|
entries[loc] = value;
|
|
@@ -4226,6 +4346,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
|
|
|
4226
4346
|
}
|
|
4227
4347
|
if (input.AcceleratorTypes != null) {
|
|
4228
4348
|
const memberEntries = serializeAws_queryAcceleratorTypes(input.AcceleratorTypes, context);
|
|
4349
|
+
if (input.AcceleratorTypes?.length === 0) {
|
|
4350
|
+
entries.AcceleratorTypes = [];
|
|
4351
|
+
}
|
|
4229
4352
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4230
4353
|
const loc = `AcceleratorTypes.${key}`;
|
|
4231
4354
|
entries[loc] = value;
|
|
@@ -4240,6 +4363,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
|
|
|
4240
4363
|
}
|
|
4241
4364
|
if (input.AcceleratorManufacturers != null) {
|
|
4242
4365
|
const memberEntries = serializeAws_queryAcceleratorManufacturers(input.AcceleratorManufacturers, context);
|
|
4366
|
+
if (input.AcceleratorManufacturers?.length === 0) {
|
|
4367
|
+
entries.AcceleratorManufacturers = [];
|
|
4368
|
+
}
|
|
4243
4369
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4244
4370
|
const loc = `AcceleratorManufacturers.${key}`;
|
|
4245
4371
|
entries[loc] = value;
|
|
@@ -4247,6 +4373,9 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
|
|
|
4247
4373
|
}
|
|
4248
4374
|
if (input.AcceleratorNames != null) {
|
|
4249
4375
|
const memberEntries = serializeAws_queryAcceleratorNames(input.AcceleratorNames, context);
|
|
4376
|
+
if (input.AcceleratorNames?.length === 0) {
|
|
4377
|
+
entries.AcceleratorNames = [];
|
|
4378
|
+
}
|
|
4250
4379
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4251
4380
|
const loc = `AcceleratorNames.${key}`;
|
|
4252
4381
|
entries[loc] = value;
|
|
@@ -4306,6 +4435,9 @@ const serializeAws_queryLaunchConfigurationNamesType = (input, context) => {
|
|
|
4306
4435
|
const entries = {};
|
|
4307
4436
|
if (input.LaunchConfigurationNames != null) {
|
|
4308
4437
|
const memberEntries = serializeAws_queryLaunchConfigurationNames(input.LaunchConfigurationNames, context);
|
|
4438
|
+
if (input.LaunchConfigurationNames?.length === 0) {
|
|
4439
|
+
entries.LaunchConfigurationNames = [];
|
|
4440
|
+
}
|
|
4309
4441
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4310
4442
|
const loc = `LaunchConfigurationNames.${key}`;
|
|
4311
4443
|
entries[loc] = value;
|
|
@@ -4337,6 +4469,9 @@ const serializeAws_queryLaunchTemplate = (input, context) => {
|
|
|
4337
4469
|
}
|
|
4338
4470
|
if (input.Overrides != null) {
|
|
4339
4471
|
const memberEntries = serializeAws_queryOverrides(input.Overrides, context);
|
|
4472
|
+
if (input.Overrides?.length === 0) {
|
|
4473
|
+
entries.Overrides = [];
|
|
4474
|
+
}
|
|
4340
4475
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4341
4476
|
const loc = `Overrides.${key}`;
|
|
4342
4477
|
entries[loc] = value;
|
|
@@ -4487,6 +4622,9 @@ const serializeAws_queryMetric = (input, context) => {
|
|
|
4487
4622
|
}
|
|
4488
4623
|
if (input.Dimensions != null) {
|
|
4489
4624
|
const memberEntries = serializeAws_queryMetricDimensions(input.Dimensions, context);
|
|
4625
|
+
if (input.Dimensions?.length === 0) {
|
|
4626
|
+
entries.Dimensions = [];
|
|
4627
|
+
}
|
|
4490
4628
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4491
4629
|
const loc = `Dimensions.${key}`;
|
|
4492
4630
|
entries[loc] = value;
|
|
@@ -4667,6 +4805,9 @@ const serializeAws_queryPredictiveScalingConfiguration = (input, context) => {
|
|
|
4667
4805
|
const entries = {};
|
|
4668
4806
|
if (input.MetricSpecifications != null) {
|
|
4669
4807
|
const memberEntries = serializeAws_queryPredictiveScalingMetricSpecifications(input.MetricSpecifications, context);
|
|
4808
|
+
if (input.MetricSpecifications?.length === 0) {
|
|
4809
|
+
entries.MetricSpecifications = [];
|
|
4810
|
+
}
|
|
4670
4811
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4671
4812
|
const loc = `MetricSpecifications.${key}`;
|
|
4672
4813
|
entries[loc] = value;
|
|
@@ -4690,6 +4831,9 @@ const serializeAws_queryPredictiveScalingCustomizedCapacityMetric = (input, cont
|
|
|
4690
4831
|
const entries = {};
|
|
4691
4832
|
if (input.MetricDataQueries != null) {
|
|
4692
4833
|
const memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
|
|
4834
|
+
if (input.MetricDataQueries?.length === 0) {
|
|
4835
|
+
entries.MetricDataQueries = [];
|
|
4836
|
+
}
|
|
4693
4837
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4694
4838
|
const loc = `MetricDataQueries.${key}`;
|
|
4695
4839
|
entries[loc] = value;
|
|
@@ -4701,6 +4845,9 @@ const serializeAws_queryPredictiveScalingCustomizedLoadMetric = (input, context)
|
|
|
4701
4845
|
const entries = {};
|
|
4702
4846
|
if (input.MetricDataQueries != null) {
|
|
4703
4847
|
const memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
|
|
4848
|
+
if (input.MetricDataQueries?.length === 0) {
|
|
4849
|
+
entries.MetricDataQueries = [];
|
|
4850
|
+
}
|
|
4704
4851
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4705
4852
|
const loc = `MetricDataQueries.${key}`;
|
|
4706
4853
|
entries[loc] = value;
|
|
@@ -4712,6 +4859,9 @@ const serializeAws_queryPredictiveScalingCustomizedScalingMetric = (input, conte
|
|
|
4712
4859
|
const entries = {};
|
|
4713
4860
|
if (input.MetricDataQueries != null) {
|
|
4714
4861
|
const memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
|
|
4862
|
+
if (input.MetricDataQueries?.length === 0) {
|
|
4863
|
+
entries.MetricDataQueries = [];
|
|
4864
|
+
}
|
|
4715
4865
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4716
4866
|
const loc = `MetricDataQueries.${key}`;
|
|
4717
4867
|
entries[loc] = value;
|
|
@@ -4863,6 +5013,9 @@ const serializeAws_queryPutNotificationConfigurationType = (input, context) => {
|
|
|
4863
5013
|
}
|
|
4864
5014
|
if (input.NotificationTypes != null) {
|
|
4865
5015
|
const memberEntries = serializeAws_queryAutoScalingNotificationTypes(input.NotificationTypes, context);
|
|
5016
|
+
if (input.NotificationTypes?.length === 0) {
|
|
5017
|
+
entries.NotificationTypes = [];
|
|
5018
|
+
}
|
|
4866
5019
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4867
5020
|
const loc = `NotificationTypes.${key}`;
|
|
4868
5021
|
entries[loc] = value;
|
|
@@ -4901,6 +5054,9 @@ const serializeAws_queryPutScalingPolicyType = (input, context) => {
|
|
|
4901
5054
|
}
|
|
4902
5055
|
if (input.StepAdjustments != null) {
|
|
4903
5056
|
const memberEntries = serializeAws_queryStepAdjustments(input.StepAdjustments, context);
|
|
5057
|
+
if (input.StepAdjustments?.length === 0) {
|
|
5058
|
+
entries.StepAdjustments = [];
|
|
5059
|
+
}
|
|
4904
5060
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4905
5061
|
const loc = `StepAdjustments.${key}`;
|
|
4906
5062
|
entries[loc] = value;
|
|
@@ -5011,6 +5167,9 @@ const serializeAws_queryRefreshPreferences = (input, context) => {
|
|
|
5011
5167
|
}
|
|
5012
5168
|
if (input.CheckpointPercentages != null) {
|
|
5013
5169
|
const memberEntries = serializeAws_queryCheckpointPercentages(input.CheckpointPercentages, context);
|
|
5170
|
+
if (input.CheckpointPercentages?.length === 0) {
|
|
5171
|
+
entries.CheckpointPercentages = [];
|
|
5172
|
+
}
|
|
5014
5173
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5015
5174
|
const loc = `CheckpointPercentages.${key}`;
|
|
5016
5175
|
entries[loc] = value;
|
|
@@ -5031,6 +5190,9 @@ const serializeAws_queryScalingProcessQuery = (input, context) => {
|
|
|
5031
5190
|
}
|
|
5032
5191
|
if (input.ScalingProcesses != null) {
|
|
5033
5192
|
const memberEntries = serializeAws_queryProcessNames(input.ScalingProcesses, context);
|
|
5193
|
+
if (input.ScalingProcesses?.length === 0) {
|
|
5194
|
+
entries.ScalingProcesses = [];
|
|
5195
|
+
}
|
|
5034
5196
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5035
5197
|
const loc = `ScalingProcesses.${key}`;
|
|
5036
5198
|
entries[loc] = value;
|
|
@@ -5135,6 +5297,9 @@ const serializeAws_querySetInstanceProtectionQuery = (input, context) => {
|
|
|
5135
5297
|
const entries = {};
|
|
5136
5298
|
if (input.InstanceIds != null) {
|
|
5137
5299
|
const memberEntries = serializeAws_queryInstanceIds(input.InstanceIds, context);
|
|
5300
|
+
if (input.InstanceIds?.length === 0) {
|
|
5301
|
+
entries.InstanceIds = [];
|
|
5302
|
+
}
|
|
5138
5303
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5139
5304
|
const loc = `InstanceIds.${key}`;
|
|
5140
5305
|
entries[loc] = value;
|
|
@@ -5338,6 +5503,9 @@ const serializeAws_queryUpdateAutoScalingGroupType = (input, context) => {
|
|
|
5338
5503
|
}
|
|
5339
5504
|
if (input.AvailabilityZones != null) {
|
|
5340
5505
|
const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
|
|
5506
|
+
if (input.AvailabilityZones?.length === 0) {
|
|
5507
|
+
entries.AvailabilityZones = [];
|
|
5508
|
+
}
|
|
5341
5509
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5342
5510
|
const loc = `AvailabilityZones.${key}`;
|
|
5343
5511
|
entries[loc] = value;
|
|
@@ -5357,6 +5525,9 @@ const serializeAws_queryUpdateAutoScalingGroupType = (input, context) => {
|
|
|
5357
5525
|
}
|
|
5358
5526
|
if (input.TerminationPolicies != null) {
|
|
5359
5527
|
const memberEntries = serializeAws_queryTerminationPolicies(input.TerminationPolicies, context);
|
|
5528
|
+
if (input.TerminationPolicies?.length === 0) {
|
|
5529
|
+
entries.TerminationPolicies = [];
|
|
5530
|
+
}
|
|
5360
5531
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5361
5532
|
const loc = `TerminationPolicies.${key}`;
|
|
5362
5533
|
entries[loc] = value;
|
|
@@ -7891,15 +8062,12 @@ const deserializeAws_queryWarmPoolConfiguration = (output, context) => {
|
|
|
7891
8062
|
}
|
|
7892
8063
|
return contents;
|
|
7893
8064
|
};
|
|
7894
|
-
const deserializeMetadata = (output) => {
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
7901
|
-
});
|
|
7902
|
-
};
|
|
8065
|
+
const deserializeMetadata = (output) => ({
|
|
8066
|
+
httpStatusCode: output.statusCode,
|
|
8067
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
8068
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
8069
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
8070
|
+
});
|
|
7903
8071
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
7904
8072
|
if (streamBody instanceof Uint8Array) {
|
|
7905
8073
|
return Promise.resolve(streamBody);
|
|
@@ -7951,10 +8119,9 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
7951
8119
|
return {};
|
|
7952
8120
|
});
|
|
7953
8121
|
const parseErrorBody = async (errorBody, context) => {
|
|
7954
|
-
var _a;
|
|
7955
8122
|
const value = await parseBody(errorBody, context);
|
|
7956
8123
|
if (value.Error) {
|
|
7957
|
-
value.Error.message =
|
|
8124
|
+
value.Error.message = value.Error.message ?? value.Error.Message;
|
|
7958
8125
|
}
|
|
7959
8126
|
return value;
|
|
7960
8127
|
};
|