@aws-sdk/client-auto-scaling 3.226.0 → 3.229.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/dist-cjs/AutoScaling.js +45 -0
- package/dist-cjs/commands/AttachTrafficSourcesCommand.js +46 -0
- package/dist-cjs/commands/DescribeTrafficSourcesCommand.js +46 -0
- package/dist-cjs/commands/DetachTrafficSourcesCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +1 -10
- package/dist-cjs/models/models_0.js +45 -4
- package/dist-cjs/protocols/Aws_query.js +420 -3
- package/dist-cjs/runtimeConfig.browser.js +3 -3
- package/dist-cjs/runtimeConfig.js +2 -1
- package/dist-es/AutoScaling.js +45 -0
- package/dist-es/commands/AttachTrafficSourcesCommand.js +42 -0
- package/dist-es/commands/DescribeTrafficSourcesCommand.js +42 -0
- package/dist-es/commands/DetachTrafficSourcesCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +1 -10
- package/dist-es/models/models_0.js +30 -0
- package/dist-es/protocols/Aws_query.js +411 -0
- package/dist-es/runtimeConfig.browser.js +1 -1
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-types/AutoScaling.d.ts +217 -183
- package/dist-types/AutoScalingClient.d.ts +7 -17
- package/dist-types/commands/AttachInstancesCommand.d.ts +3 -3
- package/dist-types/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +8 -8
- package/dist-types/commands/AttachLoadBalancersCommand.d.ts +5 -5
- package/dist-types/commands/AttachTrafficSourcesCommand.d.ts +45 -0
- package/dist-types/commands/CancelInstanceRefreshCommand.d.ts +1 -1
- package/dist-types/commands/CompleteLifecycleActionCommand.d.ts +11 -11
- package/dist-types/commands/CreateAutoScalingGroupCommand.d.ts +4 -4
- package/dist-types/commands/CreateLaunchConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/CreateOrUpdateTagsCommand.d.ts +2 -2
- package/dist-types/commands/DeleteAutoScalingGroupCommand.d.ts +5 -5
- package/dist-types/commands/DeleteLaunchConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DeleteLifecycleHookCommand.d.ts +1 -1
- package/dist-types/commands/DeletePolicyCommand.d.ts +2 -2
- package/dist-types/commands/DeleteWarmPoolCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAdjustmentTypesCommand.d.ts +11 -11
- package/dist-types/commands/DescribeAutoScalingGroupsCommand.d.ts +2 -2
- package/dist-types/commands/DescribeInstanceRefreshesCommand.d.ts +10 -10
- package/dist-types/commands/DescribeLifecycleHookTypesCommand.d.ts +8 -8
- package/dist-types/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +8 -3
- package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +4 -4
- package/dist-types/commands/DescribeScalingActivitiesCommand.d.ts +2 -2
- package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTagsCommand.d.ts +3 -3
- package/dist-types/commands/DescribeTerminationPolicyTypesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTrafficSourcesCommand.d.ts +41 -0
- package/dist-types/commands/DescribeWarmPoolCommand.d.ts +1 -1
- package/dist-types/commands/DetachInstancesCommand.d.ts +4 -4
- package/dist-types/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +6 -1
- package/dist-types/commands/DetachLoadBalancersCommand.d.ts +2 -2
- package/dist-types/commands/DetachTrafficSourcesCommand.d.ts +41 -0
- package/dist-types/commands/EnableMetricsCollectionCommand.d.ts +1 -1
- package/dist-types/commands/EnterStandbyCommand.d.ts +3 -3
- package/dist-types/commands/ExitStandbyCommand.d.ts +2 -2
- package/dist-types/commands/GetPredictiveScalingForecastCommand.d.ts +3 -3
- package/dist-types/commands/PutLifecycleHookCommand.d.ts +14 -14
- package/dist-types/commands/PutNotificationConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/PutScalingPolicyCommand.d.ts +3 -3
- package/dist-types/commands/PutScheduledUpdateGroupActionCommand.d.ts +3 -3
- package/dist-types/commands/PutWarmPoolCommand.d.ts +2 -2
- package/dist-types/commands/RecordLifecycleActionHeartbeatCommand.d.ts +11 -11
- package/dist-types/commands/ResumeProcessesCommand.d.ts +1 -1
- package/dist-types/commands/SetDesiredCapacityCommand.d.ts +2 -2
- package/dist-types/commands/SetInstanceHealthCommand.d.ts +1 -1
- package/dist-types/commands/SetInstanceProtectionCommand.d.ts +2 -2
- package/dist-types/commands/StartInstanceRefreshCommand.d.ts +2 -2
- package/dist-types/commands/SuspendProcessesCommand.d.ts +2 -2
- package/dist-types/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +3 -3
- package/dist-types/commands/UpdateAutoScalingGroupCommand.d.ts +9 -9
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1040 -790
- package/dist-types/protocols/Aws_query.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/AutoScaling.d.ts +51 -0
- package/dist-types/ts3.4/AutoScalingClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/AttachTrafficSourcesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeTrafficSourcesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DetachTrafficSourcesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +75 -3
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -1
- package/package.json +5 -4
|
@@ -39,6 +39,18 @@ export const serializeAws_queryAttachLoadBalancerTargetGroupsCommand = async (in
|
|
|
39
39
|
});
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
|
+
export const serializeAws_queryAttachTrafficSourcesCommand = async (input, context) => {
|
|
43
|
+
const headers = {
|
|
44
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
45
|
+
};
|
|
46
|
+
let body;
|
|
47
|
+
body = buildFormUrlencodedString({
|
|
48
|
+
...serializeAws_queryAttachTrafficSourcesType(input, context),
|
|
49
|
+
Action: "AttachTrafficSources",
|
|
50
|
+
Version: "2011-01-01",
|
|
51
|
+
});
|
|
52
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
+
};
|
|
42
54
|
export const serializeAws_queryBatchDeleteScheduledActionCommand = async (input, context) => {
|
|
43
55
|
const headers = {
|
|
44
56
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -433,6 +445,18 @@ export const serializeAws_queryDescribeTerminationPolicyTypesCommand = async (in
|
|
|
433
445
|
});
|
|
434
446
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
435
447
|
};
|
|
448
|
+
export const serializeAws_queryDescribeTrafficSourcesCommand = async (input, context) => {
|
|
449
|
+
const headers = {
|
|
450
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
451
|
+
};
|
|
452
|
+
let body;
|
|
453
|
+
body = buildFormUrlencodedString({
|
|
454
|
+
...serializeAws_queryDescribeTrafficSourcesRequest(input, context),
|
|
455
|
+
Action: "DescribeTrafficSources",
|
|
456
|
+
Version: "2011-01-01",
|
|
457
|
+
});
|
|
458
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
459
|
+
};
|
|
436
460
|
export const serializeAws_queryDescribeWarmPoolCommand = async (input, context) => {
|
|
437
461
|
const headers = {
|
|
438
462
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -481,6 +505,18 @@ export const serializeAws_queryDetachLoadBalancerTargetGroupsCommand = async (in
|
|
|
481
505
|
});
|
|
482
506
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
483
507
|
};
|
|
508
|
+
export const serializeAws_queryDetachTrafficSourcesCommand = async (input, context) => {
|
|
509
|
+
const headers = {
|
|
510
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
511
|
+
};
|
|
512
|
+
let body;
|
|
513
|
+
body = buildFormUrlencodedString({
|
|
514
|
+
...serializeAws_queryDetachTrafficSourcesType(input, context),
|
|
515
|
+
Action: "DetachTrafficSources",
|
|
516
|
+
Version: "2011-01-01",
|
|
517
|
+
});
|
|
518
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
519
|
+
};
|
|
484
520
|
export const serializeAws_queryDisableMetricsCollectionCommand = async (input, context) => {
|
|
485
521
|
const headers = {
|
|
486
522
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -826,6 +862,42 @@ const deserializeAws_queryAttachLoadBalancerTargetGroupsCommandError = async (ou
|
|
|
826
862
|
});
|
|
827
863
|
}
|
|
828
864
|
};
|
|
865
|
+
export const deserializeAws_queryAttachTrafficSourcesCommand = async (output, context) => {
|
|
866
|
+
if (output.statusCode >= 300) {
|
|
867
|
+
return deserializeAws_queryAttachTrafficSourcesCommandError(output, context);
|
|
868
|
+
}
|
|
869
|
+
const data = await parseBody(output.body, context);
|
|
870
|
+
let contents = {};
|
|
871
|
+
contents = deserializeAws_queryAttachTrafficSourcesResultType(data.AttachTrafficSourcesResult, context);
|
|
872
|
+
const response = {
|
|
873
|
+
$metadata: deserializeMetadata(output),
|
|
874
|
+
...contents,
|
|
875
|
+
};
|
|
876
|
+
return Promise.resolve(response);
|
|
877
|
+
};
|
|
878
|
+
const deserializeAws_queryAttachTrafficSourcesCommandError = async (output, context) => {
|
|
879
|
+
const parsedOutput = {
|
|
880
|
+
...output,
|
|
881
|
+
body: await parseErrorBody(output.body, context),
|
|
882
|
+
};
|
|
883
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
884
|
+
switch (errorCode) {
|
|
885
|
+
case "ResourceContention":
|
|
886
|
+
case "com.amazonaws.autoscaling#ResourceContentionFault":
|
|
887
|
+
throw await deserializeAws_queryResourceContentionFaultResponse(parsedOutput, context);
|
|
888
|
+
case "ServiceLinkedRoleFailure":
|
|
889
|
+
case "com.amazonaws.autoscaling#ServiceLinkedRoleFailure":
|
|
890
|
+
throw await deserializeAws_queryServiceLinkedRoleFailureResponse(parsedOutput, context);
|
|
891
|
+
default:
|
|
892
|
+
const parsedBody = parsedOutput.body;
|
|
893
|
+
throwDefaultError({
|
|
894
|
+
output,
|
|
895
|
+
parsedBody: parsedBody.Error,
|
|
896
|
+
exceptionCtor: __BaseException,
|
|
897
|
+
errorCode,
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
};
|
|
829
901
|
export const deserializeAws_queryBatchDeleteScheduledActionCommand = async (output, context) => {
|
|
830
902
|
if (output.statusCode >= 300) {
|
|
831
903
|
return deserializeAws_queryBatchDeleteScheduledActionCommandError(output, context);
|
|
@@ -2017,6 +2089,42 @@ const deserializeAws_queryDescribeTerminationPolicyTypesCommandError = async (ou
|
|
|
2017
2089
|
});
|
|
2018
2090
|
}
|
|
2019
2091
|
};
|
|
2092
|
+
export const deserializeAws_queryDescribeTrafficSourcesCommand = async (output, context) => {
|
|
2093
|
+
if (output.statusCode >= 300) {
|
|
2094
|
+
return deserializeAws_queryDescribeTrafficSourcesCommandError(output, context);
|
|
2095
|
+
}
|
|
2096
|
+
const data = await parseBody(output.body, context);
|
|
2097
|
+
let contents = {};
|
|
2098
|
+
contents = deserializeAws_queryDescribeTrafficSourcesResponse(data.DescribeTrafficSourcesResult, context);
|
|
2099
|
+
const response = {
|
|
2100
|
+
$metadata: deserializeMetadata(output),
|
|
2101
|
+
...contents,
|
|
2102
|
+
};
|
|
2103
|
+
return Promise.resolve(response);
|
|
2104
|
+
};
|
|
2105
|
+
const deserializeAws_queryDescribeTrafficSourcesCommandError = async (output, context) => {
|
|
2106
|
+
const parsedOutput = {
|
|
2107
|
+
...output,
|
|
2108
|
+
body: await parseErrorBody(output.body, context),
|
|
2109
|
+
};
|
|
2110
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2111
|
+
switch (errorCode) {
|
|
2112
|
+
case "InvalidNextToken":
|
|
2113
|
+
case "com.amazonaws.autoscaling#InvalidNextToken":
|
|
2114
|
+
throw await deserializeAws_queryInvalidNextTokenResponse(parsedOutput, context);
|
|
2115
|
+
case "ResourceContention":
|
|
2116
|
+
case "com.amazonaws.autoscaling#ResourceContentionFault":
|
|
2117
|
+
throw await deserializeAws_queryResourceContentionFaultResponse(parsedOutput, context);
|
|
2118
|
+
default:
|
|
2119
|
+
const parsedBody = parsedOutput.body;
|
|
2120
|
+
throwDefaultError({
|
|
2121
|
+
output,
|
|
2122
|
+
parsedBody: parsedBody.Error,
|
|
2123
|
+
exceptionCtor: __BaseException,
|
|
2124
|
+
errorCode,
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
};
|
|
2020
2128
|
export const deserializeAws_queryDescribeWarmPoolCommand = async (output, context) => {
|
|
2021
2129
|
if (output.statusCode >= 300) {
|
|
2022
2130
|
return deserializeAws_queryDescribeWarmPoolCommandError(output, context);
|
|
@@ -2155,6 +2263,39 @@ const deserializeAws_queryDetachLoadBalancerTargetGroupsCommandError = async (ou
|
|
|
2155
2263
|
});
|
|
2156
2264
|
}
|
|
2157
2265
|
};
|
|
2266
|
+
export const deserializeAws_queryDetachTrafficSourcesCommand = async (output, context) => {
|
|
2267
|
+
if (output.statusCode >= 300) {
|
|
2268
|
+
return deserializeAws_queryDetachTrafficSourcesCommandError(output, context);
|
|
2269
|
+
}
|
|
2270
|
+
const data = await parseBody(output.body, context);
|
|
2271
|
+
let contents = {};
|
|
2272
|
+
contents = deserializeAws_queryDetachTrafficSourcesResultType(data.DetachTrafficSourcesResult, context);
|
|
2273
|
+
const response = {
|
|
2274
|
+
$metadata: deserializeMetadata(output),
|
|
2275
|
+
...contents,
|
|
2276
|
+
};
|
|
2277
|
+
return Promise.resolve(response);
|
|
2278
|
+
};
|
|
2279
|
+
const deserializeAws_queryDetachTrafficSourcesCommandError = async (output, context) => {
|
|
2280
|
+
const parsedOutput = {
|
|
2281
|
+
...output,
|
|
2282
|
+
body: await parseErrorBody(output.body, context),
|
|
2283
|
+
};
|
|
2284
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2285
|
+
switch (errorCode) {
|
|
2286
|
+
case "ResourceContention":
|
|
2287
|
+
case "com.amazonaws.autoscaling#ResourceContentionFault":
|
|
2288
|
+
throw await deserializeAws_queryResourceContentionFaultResponse(parsedOutput, context);
|
|
2289
|
+
default:
|
|
2290
|
+
const parsedBody = parsedOutput.body;
|
|
2291
|
+
throwDefaultError({
|
|
2292
|
+
output,
|
|
2293
|
+
parsedBody: parsedBody.Error,
|
|
2294
|
+
exceptionCtor: __BaseException,
|
|
2295
|
+
errorCode,
|
|
2296
|
+
});
|
|
2297
|
+
}
|
|
2298
|
+
};
|
|
2158
2299
|
export const deserializeAws_queryDisableMetricsCollectionCommand = async (output, context) => {
|
|
2159
2300
|
if (output.statusCode >= 300) {
|
|
2160
2301
|
return deserializeAws_queryDisableMetricsCollectionCommandError(output, context);
|
|
@@ -3051,6 +3192,23 @@ const serializeAws_queryAttachLoadBalancerTargetGroupsType = (input, context) =>
|
|
|
3051
3192
|
}
|
|
3052
3193
|
return entries;
|
|
3053
3194
|
};
|
|
3195
|
+
const serializeAws_queryAttachTrafficSourcesType = (input, context) => {
|
|
3196
|
+
const entries = {};
|
|
3197
|
+
if (input.AutoScalingGroupName != null) {
|
|
3198
|
+
entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
|
|
3199
|
+
}
|
|
3200
|
+
if (input.TrafficSources != null) {
|
|
3201
|
+
const memberEntries = serializeAws_queryTrafficSources(input.TrafficSources, context);
|
|
3202
|
+
if (input.TrafficSources?.length === 0) {
|
|
3203
|
+
entries.TrafficSources = [];
|
|
3204
|
+
}
|
|
3205
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3206
|
+
const loc = `TrafficSources.${key}`;
|
|
3207
|
+
entries[loc] = value;
|
|
3208
|
+
});
|
|
3209
|
+
}
|
|
3210
|
+
return entries;
|
|
3211
|
+
};
|
|
3054
3212
|
const serializeAws_queryAutoScalingGroupNames = (input, context) => {
|
|
3055
3213
|
const entries = {};
|
|
3056
3214
|
let counter = 1;
|
|
@@ -3388,6 +3546,16 @@ const serializeAws_queryCreateAutoScalingGroupType = (input, context) => {
|
|
|
3388
3546
|
if (input.DefaultInstanceWarmup != null) {
|
|
3389
3547
|
entries["DefaultInstanceWarmup"] = input.DefaultInstanceWarmup;
|
|
3390
3548
|
}
|
|
3549
|
+
if (input.TrafficSources != null) {
|
|
3550
|
+
const memberEntries = serializeAws_queryTrafficSources(input.TrafficSources, context);
|
|
3551
|
+
if (input.TrafficSources?.length === 0) {
|
|
3552
|
+
entries.TrafficSources = [];
|
|
3553
|
+
}
|
|
3554
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3555
|
+
const loc = `TrafficSources.${key}`;
|
|
3556
|
+
entries[loc] = value;
|
|
3557
|
+
});
|
|
3558
|
+
}
|
|
3391
3559
|
return entries;
|
|
3392
3560
|
};
|
|
3393
3561
|
const serializeAws_queryCreateLaunchConfigurationType = (input, context) => {
|
|
@@ -3518,6 +3686,16 @@ const serializeAws_queryCustomizedMetricSpecification = (input, context) => {
|
|
|
3518
3686
|
if (input.Unit != null) {
|
|
3519
3687
|
entries["Unit"] = input.Unit;
|
|
3520
3688
|
}
|
|
3689
|
+
if (input.Metrics != null) {
|
|
3690
|
+
const memberEntries = serializeAws_queryTargetTrackingMetricDataQueries(input.Metrics, context);
|
|
3691
|
+
if (input.Metrics?.length === 0) {
|
|
3692
|
+
entries.Metrics = [];
|
|
3693
|
+
}
|
|
3694
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3695
|
+
const loc = `Metrics.${key}`;
|
|
3696
|
+
entries[loc] = value;
|
|
3697
|
+
});
|
|
3698
|
+
}
|
|
3521
3699
|
return entries;
|
|
3522
3700
|
};
|
|
3523
3701
|
const serializeAws_queryDeleteAutoScalingGroupType = (input, context) => {
|
|
@@ -3808,6 +3986,22 @@ const serializeAws_queryDescribeTagsType = (input, context) => {
|
|
|
3808
3986
|
}
|
|
3809
3987
|
return entries;
|
|
3810
3988
|
};
|
|
3989
|
+
const serializeAws_queryDescribeTrafficSourcesRequest = (input, context) => {
|
|
3990
|
+
const entries = {};
|
|
3991
|
+
if (input.AutoScalingGroupName != null) {
|
|
3992
|
+
entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
|
|
3993
|
+
}
|
|
3994
|
+
if (input.TrafficSourceType != null) {
|
|
3995
|
+
entries["TrafficSourceType"] = input.TrafficSourceType;
|
|
3996
|
+
}
|
|
3997
|
+
if (input.NextToken != null) {
|
|
3998
|
+
entries["NextToken"] = input.NextToken;
|
|
3999
|
+
}
|
|
4000
|
+
if (input.MaxRecords != null) {
|
|
4001
|
+
entries["MaxRecords"] = input.MaxRecords;
|
|
4002
|
+
}
|
|
4003
|
+
return entries;
|
|
4004
|
+
};
|
|
3811
4005
|
const serializeAws_queryDescribeWarmPoolType = (input, context) => {
|
|
3812
4006
|
const entries = {};
|
|
3813
4007
|
if (input.AutoScalingGroupName != null) {
|
|
@@ -3893,6 +4087,23 @@ const serializeAws_queryDetachLoadBalancerTargetGroupsType = (input, context) =>
|
|
|
3893
4087
|
}
|
|
3894
4088
|
return entries;
|
|
3895
4089
|
};
|
|
4090
|
+
const serializeAws_queryDetachTrafficSourcesType = (input, context) => {
|
|
4091
|
+
const entries = {};
|
|
4092
|
+
if (input.AutoScalingGroupName != null) {
|
|
4093
|
+
entries["AutoScalingGroupName"] = input.AutoScalingGroupName;
|
|
4094
|
+
}
|
|
4095
|
+
if (input.TrafficSources != null) {
|
|
4096
|
+
const memberEntries = serializeAws_queryTrafficSources(input.TrafficSources, context);
|
|
4097
|
+
if (input.TrafficSources?.length === 0) {
|
|
4098
|
+
entries.TrafficSources = [];
|
|
4099
|
+
}
|
|
4100
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4101
|
+
const loc = `TrafficSources.${key}`;
|
|
4102
|
+
entries[loc] = value;
|
|
4103
|
+
});
|
|
4104
|
+
}
|
|
4105
|
+
return entries;
|
|
4106
|
+
};
|
|
3896
4107
|
const serializeAws_queryDisableMetricsCollectionQuery = (input, context) => {
|
|
3897
4108
|
const entries = {};
|
|
3898
4109
|
if (input.AutoScalingGroupName != null) {
|
|
@@ -5347,6 +5558,61 @@ const serializeAws_queryTargetTrackingConfiguration = (input, context) => {
|
|
|
5347
5558
|
}
|
|
5348
5559
|
return entries;
|
|
5349
5560
|
};
|
|
5561
|
+
const serializeAws_queryTargetTrackingMetricDataQueries = (input, context) => {
|
|
5562
|
+
const entries = {};
|
|
5563
|
+
let counter = 1;
|
|
5564
|
+
for (const entry of input) {
|
|
5565
|
+
if (entry === null) {
|
|
5566
|
+
continue;
|
|
5567
|
+
}
|
|
5568
|
+
const memberEntries = serializeAws_queryTargetTrackingMetricDataQuery(entry, context);
|
|
5569
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5570
|
+
entries[`member.${counter}.${key}`] = value;
|
|
5571
|
+
});
|
|
5572
|
+
counter++;
|
|
5573
|
+
}
|
|
5574
|
+
return entries;
|
|
5575
|
+
};
|
|
5576
|
+
const serializeAws_queryTargetTrackingMetricDataQuery = (input, context) => {
|
|
5577
|
+
const entries = {};
|
|
5578
|
+
if (input.Id != null) {
|
|
5579
|
+
entries["Id"] = input.Id;
|
|
5580
|
+
}
|
|
5581
|
+
if (input.Expression != null) {
|
|
5582
|
+
entries["Expression"] = input.Expression;
|
|
5583
|
+
}
|
|
5584
|
+
if (input.MetricStat != null) {
|
|
5585
|
+
const memberEntries = serializeAws_queryTargetTrackingMetricStat(input.MetricStat, context);
|
|
5586
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5587
|
+
const loc = `MetricStat.${key}`;
|
|
5588
|
+
entries[loc] = value;
|
|
5589
|
+
});
|
|
5590
|
+
}
|
|
5591
|
+
if (input.Label != null) {
|
|
5592
|
+
entries["Label"] = input.Label;
|
|
5593
|
+
}
|
|
5594
|
+
if (input.ReturnData != null) {
|
|
5595
|
+
entries["ReturnData"] = input.ReturnData;
|
|
5596
|
+
}
|
|
5597
|
+
return entries;
|
|
5598
|
+
};
|
|
5599
|
+
const serializeAws_queryTargetTrackingMetricStat = (input, context) => {
|
|
5600
|
+
const entries = {};
|
|
5601
|
+
if (input.Metric != null) {
|
|
5602
|
+
const memberEntries = serializeAws_queryMetric(input.Metric, context);
|
|
5603
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5604
|
+
const loc = `Metric.${key}`;
|
|
5605
|
+
entries[loc] = value;
|
|
5606
|
+
});
|
|
5607
|
+
}
|
|
5608
|
+
if (input.Stat != null) {
|
|
5609
|
+
entries["Stat"] = input.Stat;
|
|
5610
|
+
}
|
|
5611
|
+
if (input.Unit != null) {
|
|
5612
|
+
entries["Unit"] = input.Unit;
|
|
5613
|
+
}
|
|
5614
|
+
return entries;
|
|
5615
|
+
};
|
|
5350
5616
|
const serializeAws_queryTerminateInstanceInAutoScalingGroupType = (input, context) => {
|
|
5351
5617
|
const entries = {};
|
|
5352
5618
|
if (input.InstanceId != null) {
|
|
@@ -5379,6 +5645,28 @@ const serializeAws_queryTotalLocalStorageGBRequest = (input, context) => {
|
|
|
5379
5645
|
}
|
|
5380
5646
|
return entries;
|
|
5381
5647
|
};
|
|
5648
|
+
const serializeAws_queryTrafficSourceIdentifier = (input, context) => {
|
|
5649
|
+
const entries = {};
|
|
5650
|
+
if (input.Identifier != null) {
|
|
5651
|
+
entries["Identifier"] = input.Identifier;
|
|
5652
|
+
}
|
|
5653
|
+
return entries;
|
|
5654
|
+
};
|
|
5655
|
+
const serializeAws_queryTrafficSources = (input, context) => {
|
|
5656
|
+
const entries = {};
|
|
5657
|
+
let counter = 1;
|
|
5658
|
+
for (const entry of input) {
|
|
5659
|
+
if (entry === null) {
|
|
5660
|
+
continue;
|
|
5661
|
+
}
|
|
5662
|
+
const memberEntries = serializeAws_queryTrafficSourceIdentifier(entry, context);
|
|
5663
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
5664
|
+
entries[`member.${counter}.${key}`] = value;
|
|
5665
|
+
});
|
|
5666
|
+
counter++;
|
|
5667
|
+
}
|
|
5668
|
+
return entries;
|
|
5669
|
+
};
|
|
5382
5670
|
const serializeAws_queryUpdateAutoScalingGroupType = (input, context) => {
|
|
5383
5671
|
const entries = {};
|
|
5384
5672
|
if (input.AutoScalingGroupName != null) {
|
|
@@ -5691,6 +5979,10 @@ const deserializeAws_queryAttachLoadBalancerTargetGroupsResultType = (output, co
|
|
|
5691
5979
|
const contents = {};
|
|
5692
5980
|
return contents;
|
|
5693
5981
|
};
|
|
5982
|
+
const deserializeAws_queryAttachTrafficSourcesResultType = (output, context) => {
|
|
5983
|
+
const contents = {};
|
|
5984
|
+
return contents;
|
|
5985
|
+
};
|
|
5694
5986
|
const deserializeAws_queryAutoScalingGroup = (output, context) => {
|
|
5695
5987
|
const contents = {
|
|
5696
5988
|
AutoScalingGroupName: undefined,
|
|
@@ -5726,6 +6018,7 @@ const deserializeAws_queryAutoScalingGroup = (output, context) => {
|
|
|
5726
6018
|
Context: undefined,
|
|
5727
6019
|
DesiredCapacityType: undefined,
|
|
5728
6020
|
DefaultInstanceWarmup: undefined,
|
|
6021
|
+
TrafficSources: undefined,
|
|
5729
6022
|
};
|
|
5730
6023
|
if (output["AutoScalingGroupName"] !== undefined) {
|
|
5731
6024
|
contents.AutoScalingGroupName = __expectString(output["AutoScalingGroupName"]);
|
|
@@ -5850,6 +6143,12 @@ const deserializeAws_queryAutoScalingGroup = (output, context) => {
|
|
|
5850
6143
|
if (output["DefaultInstanceWarmup"] !== undefined) {
|
|
5851
6144
|
contents.DefaultInstanceWarmup = __strictParseInt32(output["DefaultInstanceWarmup"]);
|
|
5852
6145
|
}
|
|
6146
|
+
if (output.TrafficSources === "") {
|
|
6147
|
+
contents.TrafficSources = [];
|
|
6148
|
+
}
|
|
6149
|
+
else if (output["TrafficSources"] !== undefined && output["TrafficSources"]["member"] !== undefined) {
|
|
6150
|
+
contents.TrafficSources = deserializeAws_queryTrafficSources(__getArrayIfSingleItem(output["TrafficSources"]["member"]), context);
|
|
6151
|
+
}
|
|
5853
6152
|
return contents;
|
|
5854
6153
|
};
|
|
5855
6154
|
const deserializeAws_queryAutoScalingGroups = (output, context) => {
|
|
@@ -6084,6 +6383,7 @@ const deserializeAws_queryCustomizedMetricSpecification = (output, context) => {
|
|
|
6084
6383
|
Dimensions: undefined,
|
|
6085
6384
|
Statistic: undefined,
|
|
6086
6385
|
Unit: undefined,
|
|
6386
|
+
Metrics: undefined,
|
|
6087
6387
|
};
|
|
6088
6388
|
if (output["MetricName"] !== undefined) {
|
|
6089
6389
|
contents.MetricName = __expectString(output["MetricName"]);
|
|
@@ -6103,6 +6403,12 @@ const deserializeAws_queryCustomizedMetricSpecification = (output, context) => {
|
|
|
6103
6403
|
if (output["Unit"] !== undefined) {
|
|
6104
6404
|
contents.Unit = __expectString(output["Unit"]);
|
|
6105
6405
|
}
|
|
6406
|
+
if (output.Metrics === "") {
|
|
6407
|
+
contents.Metrics = [];
|
|
6408
|
+
}
|
|
6409
|
+
else if (output["Metrics"] !== undefined && output["Metrics"]["member"] !== undefined) {
|
|
6410
|
+
contents.Metrics = deserializeAws_queryTargetTrackingMetricDataQueries(__getArrayIfSingleItem(output["Metrics"]["member"]), context);
|
|
6411
|
+
}
|
|
6106
6412
|
return contents;
|
|
6107
6413
|
};
|
|
6108
6414
|
const deserializeAws_queryDeleteLifecycleHookAnswer = (output, context) => {
|
|
@@ -6281,6 +6587,22 @@ const deserializeAws_queryDescribeTerminationPolicyTypesAnswer = (output, contex
|
|
|
6281
6587
|
}
|
|
6282
6588
|
return contents;
|
|
6283
6589
|
};
|
|
6590
|
+
const deserializeAws_queryDescribeTrafficSourcesResponse = (output, context) => {
|
|
6591
|
+
const contents = {
|
|
6592
|
+
TrafficSources: undefined,
|
|
6593
|
+
NextToken: undefined,
|
|
6594
|
+
};
|
|
6595
|
+
if (output.TrafficSources === "") {
|
|
6596
|
+
contents.TrafficSources = [];
|
|
6597
|
+
}
|
|
6598
|
+
else if (output["TrafficSources"] !== undefined && output["TrafficSources"]["member"] !== undefined) {
|
|
6599
|
+
contents.TrafficSources = deserializeAws_queryTrafficSourceStates(__getArrayIfSingleItem(output["TrafficSources"]["member"]), context);
|
|
6600
|
+
}
|
|
6601
|
+
if (output["NextToken"] !== undefined) {
|
|
6602
|
+
contents.NextToken = __expectString(output["NextToken"]);
|
|
6603
|
+
}
|
|
6604
|
+
return contents;
|
|
6605
|
+
};
|
|
6284
6606
|
const deserializeAws_queryDescribeWarmPoolAnswer = (output, context) => {
|
|
6285
6607
|
const contents = {
|
|
6286
6608
|
WarmPoolConfiguration: undefined,
|
|
@@ -6334,6 +6656,10 @@ const deserializeAws_queryDetachLoadBalancerTargetGroupsResultType = (output, co
|
|
|
6334
6656
|
const contents = {};
|
|
6335
6657
|
return contents;
|
|
6336
6658
|
};
|
|
6659
|
+
const deserializeAws_queryDetachTrafficSourcesResultType = (output, context) => {
|
|
6660
|
+
const contents = {};
|
|
6661
|
+
return contents;
|
|
6662
|
+
};
|
|
6337
6663
|
const deserializeAws_queryEbs = (output, context) => {
|
|
6338
6664
|
const contents = {
|
|
6339
6665
|
SnapshotId: undefined,
|
|
@@ -7947,6 +8273,55 @@ const deserializeAws_queryTargetTrackingConfiguration = (output, context) => {
|
|
|
7947
8273
|
}
|
|
7948
8274
|
return contents;
|
|
7949
8275
|
};
|
|
8276
|
+
const deserializeAws_queryTargetTrackingMetricDataQueries = (output, context) => {
|
|
8277
|
+
return (output || [])
|
|
8278
|
+
.filter((e) => e != null)
|
|
8279
|
+
.map((entry) => {
|
|
8280
|
+
return deserializeAws_queryTargetTrackingMetricDataQuery(entry, context);
|
|
8281
|
+
});
|
|
8282
|
+
};
|
|
8283
|
+
const deserializeAws_queryTargetTrackingMetricDataQuery = (output, context) => {
|
|
8284
|
+
const contents = {
|
|
8285
|
+
Id: undefined,
|
|
8286
|
+
Expression: undefined,
|
|
8287
|
+
MetricStat: undefined,
|
|
8288
|
+
Label: undefined,
|
|
8289
|
+
ReturnData: undefined,
|
|
8290
|
+
};
|
|
8291
|
+
if (output["Id"] !== undefined) {
|
|
8292
|
+
contents.Id = __expectString(output["Id"]);
|
|
8293
|
+
}
|
|
8294
|
+
if (output["Expression"] !== undefined) {
|
|
8295
|
+
contents.Expression = __expectString(output["Expression"]);
|
|
8296
|
+
}
|
|
8297
|
+
if (output["MetricStat"] !== undefined) {
|
|
8298
|
+
contents.MetricStat = deserializeAws_queryTargetTrackingMetricStat(output["MetricStat"], context);
|
|
8299
|
+
}
|
|
8300
|
+
if (output["Label"] !== undefined) {
|
|
8301
|
+
contents.Label = __expectString(output["Label"]);
|
|
8302
|
+
}
|
|
8303
|
+
if (output["ReturnData"] !== undefined) {
|
|
8304
|
+
contents.ReturnData = __parseBoolean(output["ReturnData"]);
|
|
8305
|
+
}
|
|
8306
|
+
return contents;
|
|
8307
|
+
};
|
|
8308
|
+
const deserializeAws_queryTargetTrackingMetricStat = (output, context) => {
|
|
8309
|
+
const contents = {
|
|
8310
|
+
Metric: undefined,
|
|
8311
|
+
Stat: undefined,
|
|
8312
|
+
Unit: undefined,
|
|
8313
|
+
};
|
|
8314
|
+
if (output["Metric"] !== undefined) {
|
|
8315
|
+
contents.Metric = deserializeAws_queryMetric(output["Metric"], context);
|
|
8316
|
+
}
|
|
8317
|
+
if (output["Stat"] !== undefined) {
|
|
8318
|
+
contents.Stat = __expectString(output["Stat"]);
|
|
8319
|
+
}
|
|
8320
|
+
if (output["Unit"] !== undefined) {
|
|
8321
|
+
contents.Unit = __expectString(output["Unit"]);
|
|
8322
|
+
}
|
|
8323
|
+
return contents;
|
|
8324
|
+
};
|
|
7950
8325
|
const deserializeAws_queryTerminationPolicies = (output, context) => {
|
|
7951
8326
|
return (output || [])
|
|
7952
8327
|
.filter((e) => e != null)
|
|
@@ -7967,6 +8342,42 @@ const deserializeAws_queryTotalLocalStorageGBRequest = (output, context) => {
|
|
|
7967
8342
|
}
|
|
7968
8343
|
return contents;
|
|
7969
8344
|
};
|
|
8345
|
+
const deserializeAws_queryTrafficSourceIdentifier = (output, context) => {
|
|
8346
|
+
const contents = {
|
|
8347
|
+
Identifier: undefined,
|
|
8348
|
+
};
|
|
8349
|
+
if (output["Identifier"] !== undefined) {
|
|
8350
|
+
contents.Identifier = __expectString(output["Identifier"]);
|
|
8351
|
+
}
|
|
8352
|
+
return contents;
|
|
8353
|
+
};
|
|
8354
|
+
const deserializeAws_queryTrafficSources = (output, context) => {
|
|
8355
|
+
return (output || [])
|
|
8356
|
+
.filter((e) => e != null)
|
|
8357
|
+
.map((entry) => {
|
|
8358
|
+
return deserializeAws_queryTrafficSourceIdentifier(entry, context);
|
|
8359
|
+
});
|
|
8360
|
+
};
|
|
8361
|
+
const deserializeAws_queryTrafficSourceState = (output, context) => {
|
|
8362
|
+
const contents = {
|
|
8363
|
+
TrafficSource: undefined,
|
|
8364
|
+
State: undefined,
|
|
8365
|
+
};
|
|
8366
|
+
if (output["TrafficSource"] !== undefined) {
|
|
8367
|
+
contents.TrafficSource = __expectString(output["TrafficSource"]);
|
|
8368
|
+
}
|
|
8369
|
+
if (output["State"] !== undefined) {
|
|
8370
|
+
contents.State = __expectString(output["State"]);
|
|
8371
|
+
}
|
|
8372
|
+
return contents;
|
|
8373
|
+
};
|
|
8374
|
+
const deserializeAws_queryTrafficSourceStates = (output, context) => {
|
|
8375
|
+
return (output || [])
|
|
8376
|
+
.filter((e) => e != null)
|
|
8377
|
+
.map((entry) => {
|
|
8378
|
+
return deserializeAws_queryTrafficSourceState(entry, context);
|
|
8379
|
+
});
|
|
8380
|
+
};
|
|
7970
8381
|
const deserializeAws_queryVCpuCountRequest = (output, context) => {
|
|
7971
8382
|
const contents = {
|
|
7972
8383
|
Min: undefined,
|
|
@@ -3,8 +3,8 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
|
3
3
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
4
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
7
6
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
7
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
8
8
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
9
9
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -3,10 +3,11 @@ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
|
3
3
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
4
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
5
|
import { Hash } from "@aws-sdk/hash-node";
|
|
6
|
-
import {
|
|
6
|
+
import { 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
9
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
10
|
+
import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
10
11
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
11
12
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
12
13
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|