@aws-sdk/client-application-auto-scaling 3.303.0 → 3.309.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/commands/DeleteScalingPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteScheduledActionCommand.js +2 -2
- package/dist-cjs/commands/DeregisterScalableTargetCommand.js +2 -2
- package/dist-cjs/commands/DescribeScalableTargetsCommand.js +2 -2
- package/dist-cjs/commands/DescribeScalingActivitiesCommand.js +2 -2
- package/dist-cjs/commands/DescribeScalingPoliciesCommand.js +2 -2
- package/dist-cjs/commands/DescribeScheduledActionsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutScalingPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutScheduledActionCommand.js +2 -2
- package/dist-cjs/commands/RegisterScalableTargetCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +308 -342
- package/dist-es/commands/DeleteScalingPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteScheduledActionCommand.js +3 -3
- package/dist-es/commands/DeregisterScalableTargetCommand.js +3 -3
- package/dist-es/commands/DescribeScalableTargetsCommand.js +3 -3
- package/dist-es/commands/DescribeScalingActivitiesCommand.js +3 -3
- package/dist-es/commands/DescribeScalingPoliciesCommand.js +3 -3
- package/dist-es/commands/DescribeScheduledActionsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutScalingPolicyCommand.js +3 -3
- package/dist-es/commands/PutScheduledActionCommand.js +3 -3
- package/dist-es/commands/RegisterScalableTargetCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +281 -315
- package/dist-types/protocols/Aws_json1_1.d.ts +104 -26
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +26 -26
- package/package.json +29 -29
|
@@ -1,155 +1,155 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterScalableTargetCommand = exports.de_PutScheduledActionCommand = exports.de_PutScalingPolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_DescribeScheduledActionsCommand = exports.de_DescribeScalingPoliciesCommand = exports.de_DescribeScalingActivitiesCommand = exports.de_DescribeScalableTargetsCommand = exports.de_DeregisterScalableTargetCommand = exports.de_DeleteScheduledActionCommand = exports.de_DeleteScalingPolicyCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterScalableTargetCommand = exports.se_PutScheduledActionCommand = exports.se_PutScalingPolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_DescribeScheduledActionsCommand = exports.se_DescribeScalingPoliciesCommand = exports.se_DescribeScalingActivitiesCommand = exports.se_DescribeScalableTargetsCommand = exports.se_DeregisterScalableTargetCommand = exports.se_DeleteScheduledActionCommand = exports.se_DeleteScalingPolicyCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const ApplicationAutoScalingServiceException_1 = require("../models/ApplicationAutoScalingServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_DeleteScalingPolicyCommand = async (input, context) => {
|
|
9
9
|
const headers = {
|
|
10
10
|
"content-type": "application/x-amz-json-1.1",
|
|
11
11
|
"x-amz-target": "AnyScaleFrontendService.DeleteScalingPolicy",
|
|
12
12
|
};
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(se_DeleteScalingPolicyRequest(input, context));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
const
|
|
17
|
+
exports.se_DeleteScalingPolicyCommand = se_DeleteScalingPolicyCommand;
|
|
18
|
+
const se_DeleteScheduledActionCommand = async (input, context) => {
|
|
19
19
|
const headers = {
|
|
20
20
|
"content-type": "application/x-amz-json-1.1",
|
|
21
21
|
"x-amz-target": "AnyScaleFrontendService.DeleteScheduledAction",
|
|
22
22
|
};
|
|
23
23
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
24
|
+
body = JSON.stringify(se_DeleteScheduledActionRequest(input, context));
|
|
25
25
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_DeleteScheduledActionCommand = se_DeleteScheduledActionCommand;
|
|
28
|
+
const se_DeregisterScalableTargetCommand = async (input, context) => {
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/x-amz-json-1.1",
|
|
31
31
|
"x-amz-target": "AnyScaleFrontendService.DeregisterScalableTarget",
|
|
32
32
|
};
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify(se_DeregisterScalableTargetRequest(input, context));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
37
|
+
exports.se_DeregisterScalableTargetCommand = se_DeregisterScalableTargetCommand;
|
|
38
|
+
const se_DescribeScalableTargetsCommand = async (input, context) => {
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/x-amz-json-1.1",
|
|
41
41
|
"x-amz-target": "AnyScaleFrontendService.DescribeScalableTargets",
|
|
42
42
|
};
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(se_DescribeScalableTargetsRequest(input, context));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_DescribeScalableTargetsCommand = se_DescribeScalableTargetsCommand;
|
|
48
|
+
const se_DescribeScalingActivitiesCommand = async (input, context) => {
|
|
49
49
|
const headers = {
|
|
50
50
|
"content-type": "application/x-amz-json-1.1",
|
|
51
51
|
"x-amz-target": "AnyScaleFrontendService.DescribeScalingActivities",
|
|
52
52
|
};
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify(se_DescribeScalingActivitiesRequest(input, context));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
57
|
+
exports.se_DescribeScalingActivitiesCommand = se_DescribeScalingActivitiesCommand;
|
|
58
|
+
const se_DescribeScalingPoliciesCommand = async (input, context) => {
|
|
59
59
|
const headers = {
|
|
60
60
|
"content-type": "application/x-amz-json-1.1",
|
|
61
61
|
"x-amz-target": "AnyScaleFrontendService.DescribeScalingPolicies",
|
|
62
62
|
};
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
64
|
+
body = JSON.stringify(se_DescribeScalingPoliciesRequest(input, context));
|
|
65
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
66
|
};
|
|
67
|
-
exports.
|
|
68
|
-
const
|
|
67
|
+
exports.se_DescribeScalingPoliciesCommand = se_DescribeScalingPoliciesCommand;
|
|
68
|
+
const se_DescribeScheduledActionsCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "AnyScaleFrontendService.DescribeScheduledActions",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DescribeScheduledActionsRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_DescribeScheduledActionsCommand = se_DescribeScheduledActionsCommand;
|
|
78
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.1",
|
|
81
81
|
"x-amz-target": "AnyScaleFrontendService.ListTagsForResource",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
exports.
|
|
88
|
-
const
|
|
87
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
88
|
+
const se_PutScalingPolicyCommand = async (input, context) => {
|
|
89
89
|
const headers = {
|
|
90
90
|
"content-type": "application/x-amz-json-1.1",
|
|
91
91
|
"x-amz-target": "AnyScaleFrontendService.PutScalingPolicy",
|
|
92
92
|
};
|
|
93
93
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
94
|
+
body = JSON.stringify(se_PutScalingPolicyRequest(input, context));
|
|
95
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
96
|
};
|
|
97
|
-
exports.
|
|
98
|
-
const
|
|
97
|
+
exports.se_PutScalingPolicyCommand = se_PutScalingPolicyCommand;
|
|
98
|
+
const se_PutScheduledActionCommand = async (input, context) => {
|
|
99
99
|
const headers = {
|
|
100
100
|
"content-type": "application/x-amz-json-1.1",
|
|
101
101
|
"x-amz-target": "AnyScaleFrontendService.PutScheduledAction",
|
|
102
102
|
};
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(se_PutScheduledActionRequest(input, context));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
107
|
+
exports.se_PutScheduledActionCommand = se_PutScheduledActionCommand;
|
|
108
|
+
const se_RegisterScalableTargetCommand = async (input, context) => {
|
|
109
109
|
const headers = {
|
|
110
110
|
"content-type": "application/x-amz-json-1.1",
|
|
111
111
|
"x-amz-target": "AnyScaleFrontendService.RegisterScalableTarget",
|
|
112
112
|
};
|
|
113
113
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
114
|
+
body = JSON.stringify(se_RegisterScalableTargetRequest(input, context));
|
|
115
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.se_RegisterScalableTargetCommand = se_RegisterScalableTargetCommand;
|
|
118
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
119
119
|
const headers = {
|
|
120
120
|
"content-type": "application/x-amz-json-1.1",
|
|
121
121
|
"x-amz-target": "AnyScaleFrontendService.TagResource",
|
|
122
122
|
};
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
|
-
exports.
|
|
128
|
-
const
|
|
127
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
128
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
129
129
|
const headers = {
|
|
130
130
|
"content-type": "application/x-amz-json-1.1",
|
|
131
131
|
"x-amz-target": "AnyScaleFrontendService.UntagResource",
|
|
132
132
|
};
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
137
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
138
|
+
const de_DeleteScalingPolicyCommand = async (output, context) => {
|
|
139
139
|
if (output.statusCode >= 300) {
|
|
140
|
-
return
|
|
140
|
+
return de_DeleteScalingPolicyCommandError(output, context);
|
|
141
141
|
}
|
|
142
142
|
const data = await parseBody(output.body, context);
|
|
143
143
|
let contents = {};
|
|
144
|
-
contents =
|
|
144
|
+
contents = de_DeleteScalingPolicyResponse(data, context);
|
|
145
145
|
const response = {
|
|
146
146
|
$metadata: deserializeMetadata(output),
|
|
147
147
|
...contents,
|
|
148
148
|
};
|
|
149
149
|
return Promise.resolve(response);
|
|
150
150
|
};
|
|
151
|
-
exports.
|
|
152
|
-
const
|
|
151
|
+
exports.de_DeleteScalingPolicyCommand = de_DeleteScalingPolicyCommand;
|
|
152
|
+
const de_DeleteScalingPolicyCommandError = async (output, context) => {
|
|
153
153
|
const parsedOutput = {
|
|
154
154
|
...output,
|
|
155
155
|
body: await parseErrorBody(output.body, context),
|
|
@@ -158,16 +158,16 @@ const deserializeAws_json1_1DeleteScalingPolicyCommandError = async (output, con
|
|
|
158
158
|
switch (errorCode) {
|
|
159
159
|
case "ConcurrentUpdateException":
|
|
160
160
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
161
|
-
throw await
|
|
161
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
162
162
|
case "InternalServiceException":
|
|
163
163
|
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
164
|
-
throw await
|
|
164
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
165
165
|
case "ObjectNotFoundException":
|
|
166
166
|
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
167
|
-
throw await
|
|
167
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
168
168
|
case "ValidationException":
|
|
169
169
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
170
|
-
throw await
|
|
170
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
171
171
|
default:
|
|
172
172
|
const parsedBody = parsedOutput.body;
|
|
173
173
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -178,21 +178,21 @@ const deserializeAws_json1_1DeleteScalingPolicyCommandError = async (output, con
|
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
|
-
const
|
|
181
|
+
const de_DeleteScheduledActionCommand = async (output, context) => {
|
|
182
182
|
if (output.statusCode >= 300) {
|
|
183
|
-
return
|
|
183
|
+
return de_DeleteScheduledActionCommandError(output, context);
|
|
184
184
|
}
|
|
185
185
|
const data = await parseBody(output.body, context);
|
|
186
186
|
let contents = {};
|
|
187
|
-
contents =
|
|
187
|
+
contents = de_DeleteScheduledActionResponse(data, context);
|
|
188
188
|
const response = {
|
|
189
189
|
$metadata: deserializeMetadata(output),
|
|
190
190
|
...contents,
|
|
191
191
|
};
|
|
192
192
|
return Promise.resolve(response);
|
|
193
193
|
};
|
|
194
|
-
exports.
|
|
195
|
-
const
|
|
194
|
+
exports.de_DeleteScheduledActionCommand = de_DeleteScheduledActionCommand;
|
|
195
|
+
const de_DeleteScheduledActionCommandError = async (output, context) => {
|
|
196
196
|
const parsedOutput = {
|
|
197
197
|
...output,
|
|
198
198
|
body: await parseErrorBody(output.body, context),
|
|
@@ -201,16 +201,16 @@ const deserializeAws_json1_1DeleteScheduledActionCommandError = async (output, c
|
|
|
201
201
|
switch (errorCode) {
|
|
202
202
|
case "ConcurrentUpdateException":
|
|
203
203
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
204
|
-
throw await
|
|
204
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
205
205
|
case "InternalServiceException":
|
|
206
206
|
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
207
|
-
throw await
|
|
207
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
208
208
|
case "ObjectNotFoundException":
|
|
209
209
|
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
210
|
-
throw await
|
|
210
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
211
211
|
case "ValidationException":
|
|
212
212
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
213
|
-
throw await
|
|
213
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
214
214
|
default:
|
|
215
215
|
const parsedBody = parsedOutput.body;
|
|
216
216
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -221,21 +221,21 @@ const deserializeAws_json1_1DeleteScheduledActionCommandError = async (output, c
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
|
-
const
|
|
224
|
+
const de_DeregisterScalableTargetCommand = async (output, context) => {
|
|
225
225
|
if (output.statusCode >= 300) {
|
|
226
|
-
return
|
|
226
|
+
return de_DeregisterScalableTargetCommandError(output, context);
|
|
227
227
|
}
|
|
228
228
|
const data = await parseBody(output.body, context);
|
|
229
229
|
let contents = {};
|
|
230
|
-
contents =
|
|
230
|
+
contents = de_DeregisterScalableTargetResponse(data, context);
|
|
231
231
|
const response = {
|
|
232
232
|
$metadata: deserializeMetadata(output),
|
|
233
233
|
...contents,
|
|
234
234
|
};
|
|
235
235
|
return Promise.resolve(response);
|
|
236
236
|
};
|
|
237
|
-
exports.
|
|
238
|
-
const
|
|
237
|
+
exports.de_DeregisterScalableTargetCommand = de_DeregisterScalableTargetCommand;
|
|
238
|
+
const de_DeregisterScalableTargetCommandError = async (output, context) => {
|
|
239
239
|
const parsedOutput = {
|
|
240
240
|
...output,
|
|
241
241
|
body: await parseErrorBody(output.body, context),
|
|
@@ -244,16 +244,16 @@ const deserializeAws_json1_1DeregisterScalableTargetCommandError = async (output
|
|
|
244
244
|
switch (errorCode) {
|
|
245
245
|
case "ConcurrentUpdateException":
|
|
246
246
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
247
|
-
throw await
|
|
247
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
248
248
|
case "InternalServiceException":
|
|
249
249
|
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
250
|
-
throw await
|
|
250
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
251
251
|
case "ObjectNotFoundException":
|
|
252
252
|
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
253
|
-
throw await
|
|
253
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
254
254
|
case "ValidationException":
|
|
255
255
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
256
|
-
throw await
|
|
256
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
257
257
|
default:
|
|
258
258
|
const parsedBody = parsedOutput.body;
|
|
259
259
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -264,21 +264,21 @@ const deserializeAws_json1_1DeregisterScalableTargetCommandError = async (output
|
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
|
-
const
|
|
267
|
+
const de_DescribeScalableTargetsCommand = async (output, context) => {
|
|
268
268
|
if (output.statusCode >= 300) {
|
|
269
|
-
return
|
|
269
|
+
return de_DescribeScalableTargetsCommandError(output, context);
|
|
270
270
|
}
|
|
271
271
|
const data = await parseBody(output.body, context);
|
|
272
272
|
let contents = {};
|
|
273
|
-
contents =
|
|
273
|
+
contents = de_DescribeScalableTargetsResponse(data, context);
|
|
274
274
|
const response = {
|
|
275
275
|
$metadata: deserializeMetadata(output),
|
|
276
276
|
...contents,
|
|
277
277
|
};
|
|
278
278
|
return Promise.resolve(response);
|
|
279
279
|
};
|
|
280
|
-
exports.
|
|
281
|
-
const
|
|
280
|
+
exports.de_DescribeScalableTargetsCommand = de_DescribeScalableTargetsCommand;
|
|
281
|
+
const de_DescribeScalableTargetsCommandError = async (output, context) => {
|
|
282
282
|
const parsedOutput = {
|
|
283
283
|
...output,
|
|
284
284
|
body: await parseErrorBody(output.body, context),
|
|
@@ -287,16 +287,16 @@ const deserializeAws_json1_1DescribeScalableTargetsCommandError = async (output,
|
|
|
287
287
|
switch (errorCode) {
|
|
288
288
|
case "ConcurrentUpdateException":
|
|
289
289
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
290
|
-
throw await
|
|
290
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
291
291
|
case "InternalServiceException":
|
|
292
292
|
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
293
|
-
throw await
|
|
293
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
294
294
|
case "InvalidNextTokenException":
|
|
295
295
|
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
296
|
-
throw await
|
|
296
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
297
297
|
case "ValidationException":
|
|
298
298
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
299
|
-
throw await
|
|
299
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
300
300
|
default:
|
|
301
301
|
const parsedBody = parsedOutput.body;
|
|
302
302
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -307,21 +307,21 @@ const deserializeAws_json1_1DescribeScalableTargetsCommandError = async (output,
|
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
|
-
const
|
|
310
|
+
const de_DescribeScalingActivitiesCommand = async (output, context) => {
|
|
311
311
|
if (output.statusCode >= 300) {
|
|
312
|
-
return
|
|
312
|
+
return de_DescribeScalingActivitiesCommandError(output, context);
|
|
313
313
|
}
|
|
314
314
|
const data = await parseBody(output.body, context);
|
|
315
315
|
let contents = {};
|
|
316
|
-
contents =
|
|
316
|
+
contents = de_DescribeScalingActivitiesResponse(data, context);
|
|
317
317
|
const response = {
|
|
318
318
|
$metadata: deserializeMetadata(output),
|
|
319
319
|
...contents,
|
|
320
320
|
};
|
|
321
321
|
return Promise.resolve(response);
|
|
322
322
|
};
|
|
323
|
-
exports.
|
|
324
|
-
const
|
|
323
|
+
exports.de_DescribeScalingActivitiesCommand = de_DescribeScalingActivitiesCommand;
|
|
324
|
+
const de_DescribeScalingActivitiesCommandError = async (output, context) => {
|
|
325
325
|
const parsedOutput = {
|
|
326
326
|
...output,
|
|
327
327
|
body: await parseErrorBody(output.body, context),
|
|
@@ -330,16 +330,16 @@ const deserializeAws_json1_1DescribeScalingActivitiesCommandError = async (outpu
|
|
|
330
330
|
switch (errorCode) {
|
|
331
331
|
case "ConcurrentUpdateException":
|
|
332
332
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
333
|
-
throw await
|
|
333
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
334
334
|
case "InternalServiceException":
|
|
335
335
|
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
336
|
-
throw await
|
|
336
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
337
337
|
case "InvalidNextTokenException":
|
|
338
338
|
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
339
|
-
throw await
|
|
339
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
340
340
|
case "ValidationException":
|
|
341
341
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
342
|
-
throw await
|
|
342
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
343
343
|
default:
|
|
344
344
|
const parsedBody = parsedOutput.body;
|
|
345
345
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -350,21 +350,21 @@ const deserializeAws_json1_1DescribeScalingActivitiesCommandError = async (outpu
|
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
|
-
const
|
|
353
|
+
const de_DescribeScalingPoliciesCommand = async (output, context) => {
|
|
354
354
|
if (output.statusCode >= 300) {
|
|
355
|
-
return
|
|
355
|
+
return de_DescribeScalingPoliciesCommandError(output, context);
|
|
356
356
|
}
|
|
357
357
|
const data = await parseBody(output.body, context);
|
|
358
358
|
let contents = {};
|
|
359
|
-
contents =
|
|
359
|
+
contents = de_DescribeScalingPoliciesResponse(data, context);
|
|
360
360
|
const response = {
|
|
361
361
|
$metadata: deserializeMetadata(output),
|
|
362
362
|
...contents,
|
|
363
363
|
};
|
|
364
364
|
return Promise.resolve(response);
|
|
365
365
|
};
|
|
366
|
-
exports.
|
|
367
|
-
const
|
|
366
|
+
exports.de_DescribeScalingPoliciesCommand = de_DescribeScalingPoliciesCommand;
|
|
367
|
+
const de_DescribeScalingPoliciesCommandError = async (output, context) => {
|
|
368
368
|
const parsedOutput = {
|
|
369
369
|
...output,
|
|
370
370
|
body: await parseErrorBody(output.body, context),
|
|
@@ -373,19 +373,19 @@ const deserializeAws_json1_1DescribeScalingPoliciesCommandError = async (output,
|
|
|
373
373
|
switch (errorCode) {
|
|
374
374
|
case "ConcurrentUpdateException":
|
|
375
375
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
376
|
-
throw await
|
|
376
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
377
377
|
case "FailedResourceAccessException":
|
|
378
378
|
case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
|
|
379
|
-
throw await
|
|
379
|
+
throw await de_FailedResourceAccessExceptionRes(parsedOutput, context);
|
|
380
380
|
case "InternalServiceException":
|
|
381
381
|
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
382
|
-
throw await
|
|
382
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
383
383
|
case "InvalidNextTokenException":
|
|
384
384
|
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
385
|
-
throw await
|
|
385
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
386
386
|
case "ValidationException":
|
|
387
387
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
388
|
-
throw await
|
|
388
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
389
389
|
default:
|
|
390
390
|
const parsedBody = parsedOutput.body;
|
|
391
391
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -396,21 +396,21 @@ const deserializeAws_json1_1DescribeScalingPoliciesCommandError = async (output,
|
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
398
|
};
|
|
399
|
-
const
|
|
399
|
+
const de_DescribeScheduledActionsCommand = async (output, context) => {
|
|
400
400
|
if (output.statusCode >= 300) {
|
|
401
|
-
return
|
|
401
|
+
return de_DescribeScheduledActionsCommandError(output, context);
|
|
402
402
|
}
|
|
403
403
|
const data = await parseBody(output.body, context);
|
|
404
404
|
let contents = {};
|
|
405
|
-
contents =
|
|
405
|
+
contents = de_DescribeScheduledActionsResponse(data, context);
|
|
406
406
|
const response = {
|
|
407
407
|
$metadata: deserializeMetadata(output),
|
|
408
408
|
...contents,
|
|
409
409
|
};
|
|
410
410
|
return Promise.resolve(response);
|
|
411
411
|
};
|
|
412
|
-
exports.
|
|
413
|
-
const
|
|
412
|
+
exports.de_DescribeScheduledActionsCommand = de_DescribeScheduledActionsCommand;
|
|
413
|
+
const de_DescribeScheduledActionsCommandError = async (output, context) => {
|
|
414
414
|
const parsedOutput = {
|
|
415
415
|
...output,
|
|
416
416
|
body: await parseErrorBody(output.body, context),
|
|
@@ -419,16 +419,16 @@ const deserializeAws_json1_1DescribeScheduledActionsCommandError = async (output
|
|
|
419
419
|
switch (errorCode) {
|
|
420
420
|
case "ConcurrentUpdateException":
|
|
421
421
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
422
|
-
throw await
|
|
422
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
423
423
|
case "InternalServiceException":
|
|
424
424
|
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
425
|
-
throw await
|
|
425
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
426
426
|
case "InvalidNextTokenException":
|
|
427
427
|
case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
|
|
428
|
-
throw await
|
|
428
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
429
429
|
case "ValidationException":
|
|
430
430
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
431
|
-
throw await
|
|
431
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
432
432
|
default:
|
|
433
433
|
const parsedBody = parsedOutput.body;
|
|
434
434
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -439,21 +439,21 @@ const deserializeAws_json1_1DescribeScheduledActionsCommandError = async (output
|
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
|
-
const
|
|
442
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
443
443
|
if (output.statusCode >= 300) {
|
|
444
|
-
return
|
|
444
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
445
445
|
}
|
|
446
446
|
const data = await parseBody(output.body, context);
|
|
447
447
|
let contents = {};
|
|
448
|
-
contents =
|
|
448
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
449
449
|
const response = {
|
|
450
450
|
$metadata: deserializeMetadata(output),
|
|
451
451
|
...contents,
|
|
452
452
|
};
|
|
453
453
|
return Promise.resolve(response);
|
|
454
454
|
};
|
|
455
|
-
exports.
|
|
456
|
-
const
|
|
455
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
456
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
457
457
|
const parsedOutput = {
|
|
458
458
|
...output,
|
|
459
459
|
body: await parseErrorBody(output.body, context),
|
|
@@ -462,7 +462,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
462
462
|
switch (errorCode) {
|
|
463
463
|
case "ResourceNotFoundException":
|
|
464
464
|
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
465
|
-
throw await
|
|
465
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
466
466
|
default:
|
|
467
467
|
const parsedBody = parsedOutput.body;
|
|
468
468
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -473,21 +473,21 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
|
-
const
|
|
476
|
+
const de_PutScalingPolicyCommand = async (output, context) => {
|
|
477
477
|
if (output.statusCode >= 300) {
|
|
478
|
-
return
|
|
478
|
+
return de_PutScalingPolicyCommandError(output, context);
|
|
479
479
|
}
|
|
480
480
|
const data = await parseBody(output.body, context);
|
|
481
481
|
let contents = {};
|
|
482
|
-
contents =
|
|
482
|
+
contents = de_PutScalingPolicyResponse(data, context);
|
|
483
483
|
const response = {
|
|
484
484
|
$metadata: deserializeMetadata(output),
|
|
485
485
|
...contents,
|
|
486
486
|
};
|
|
487
487
|
return Promise.resolve(response);
|
|
488
488
|
};
|
|
489
|
-
exports.
|
|
490
|
-
const
|
|
489
|
+
exports.de_PutScalingPolicyCommand = de_PutScalingPolicyCommand;
|
|
490
|
+
const de_PutScalingPolicyCommandError = async (output, context) => {
|
|
491
491
|
const parsedOutput = {
|
|
492
492
|
...output,
|
|
493
493
|
body: await parseErrorBody(output.body, context),
|
|
@@ -496,22 +496,22 @@ const deserializeAws_json1_1PutScalingPolicyCommandError = async (output, contex
|
|
|
496
496
|
switch (errorCode) {
|
|
497
497
|
case "ConcurrentUpdateException":
|
|
498
498
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
499
|
-
throw await
|
|
499
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
500
500
|
case "FailedResourceAccessException":
|
|
501
501
|
case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
|
|
502
|
-
throw await
|
|
502
|
+
throw await de_FailedResourceAccessExceptionRes(parsedOutput, context);
|
|
503
503
|
case "InternalServiceException":
|
|
504
504
|
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
505
|
-
throw await
|
|
505
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
506
506
|
case "LimitExceededException":
|
|
507
507
|
case "com.amazonaws.applicationautoscaling#LimitExceededException":
|
|
508
|
-
throw await
|
|
508
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
509
509
|
case "ObjectNotFoundException":
|
|
510
510
|
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
511
|
-
throw await
|
|
511
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
512
512
|
case "ValidationException":
|
|
513
513
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
514
|
-
throw await
|
|
514
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
515
515
|
default:
|
|
516
516
|
const parsedBody = parsedOutput.body;
|
|
517
517
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -522,21 +522,21 @@ const deserializeAws_json1_1PutScalingPolicyCommandError = async (output, contex
|
|
|
522
522
|
});
|
|
523
523
|
}
|
|
524
524
|
};
|
|
525
|
-
const
|
|
525
|
+
const de_PutScheduledActionCommand = async (output, context) => {
|
|
526
526
|
if (output.statusCode >= 300) {
|
|
527
|
-
return
|
|
527
|
+
return de_PutScheduledActionCommandError(output, context);
|
|
528
528
|
}
|
|
529
529
|
const data = await parseBody(output.body, context);
|
|
530
530
|
let contents = {};
|
|
531
|
-
contents =
|
|
531
|
+
contents = de_PutScheduledActionResponse(data, context);
|
|
532
532
|
const response = {
|
|
533
533
|
$metadata: deserializeMetadata(output),
|
|
534
534
|
...contents,
|
|
535
535
|
};
|
|
536
536
|
return Promise.resolve(response);
|
|
537
537
|
};
|
|
538
|
-
exports.
|
|
539
|
-
const
|
|
538
|
+
exports.de_PutScheduledActionCommand = de_PutScheduledActionCommand;
|
|
539
|
+
const de_PutScheduledActionCommandError = async (output, context) => {
|
|
540
540
|
const parsedOutput = {
|
|
541
541
|
...output,
|
|
542
542
|
body: await parseErrorBody(output.body, context),
|
|
@@ -545,19 +545,19 @@ const deserializeAws_json1_1PutScheduledActionCommandError = async (output, cont
|
|
|
545
545
|
switch (errorCode) {
|
|
546
546
|
case "ConcurrentUpdateException":
|
|
547
547
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
548
|
-
throw await
|
|
548
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
549
549
|
case "InternalServiceException":
|
|
550
550
|
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
551
|
-
throw await
|
|
551
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
552
552
|
case "LimitExceededException":
|
|
553
553
|
case "com.amazonaws.applicationautoscaling#LimitExceededException":
|
|
554
|
-
throw await
|
|
554
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
555
555
|
case "ObjectNotFoundException":
|
|
556
556
|
case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
|
|
557
|
-
throw await
|
|
557
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
558
558
|
case "ValidationException":
|
|
559
559
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
560
|
-
throw await
|
|
560
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
561
561
|
default:
|
|
562
562
|
const parsedBody = parsedOutput.body;
|
|
563
563
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -568,21 +568,21 @@ const deserializeAws_json1_1PutScheduledActionCommandError = async (output, cont
|
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
570
|
};
|
|
571
|
-
const
|
|
571
|
+
const de_RegisterScalableTargetCommand = async (output, context) => {
|
|
572
572
|
if (output.statusCode >= 300) {
|
|
573
|
-
return
|
|
573
|
+
return de_RegisterScalableTargetCommandError(output, context);
|
|
574
574
|
}
|
|
575
575
|
const data = await parseBody(output.body, context);
|
|
576
576
|
let contents = {};
|
|
577
|
-
contents =
|
|
577
|
+
contents = de_RegisterScalableTargetResponse(data, context);
|
|
578
578
|
const response = {
|
|
579
579
|
$metadata: deserializeMetadata(output),
|
|
580
580
|
...contents,
|
|
581
581
|
};
|
|
582
582
|
return Promise.resolve(response);
|
|
583
583
|
};
|
|
584
|
-
exports.
|
|
585
|
-
const
|
|
584
|
+
exports.de_RegisterScalableTargetCommand = de_RegisterScalableTargetCommand;
|
|
585
|
+
const de_RegisterScalableTargetCommandError = async (output, context) => {
|
|
586
586
|
const parsedOutput = {
|
|
587
587
|
...output,
|
|
588
588
|
body: await parseErrorBody(output.body, context),
|
|
@@ -591,16 +591,16 @@ const deserializeAws_json1_1RegisterScalableTargetCommandError = async (output,
|
|
|
591
591
|
switch (errorCode) {
|
|
592
592
|
case "ConcurrentUpdateException":
|
|
593
593
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
594
|
-
throw await
|
|
594
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
595
595
|
case "InternalServiceException":
|
|
596
596
|
case "com.amazonaws.applicationautoscaling#InternalServiceException":
|
|
597
|
-
throw await
|
|
597
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
598
598
|
case "LimitExceededException":
|
|
599
599
|
case "com.amazonaws.applicationautoscaling#LimitExceededException":
|
|
600
|
-
throw await
|
|
600
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
601
601
|
case "ValidationException":
|
|
602
602
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
603
|
-
throw await
|
|
603
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
604
604
|
default:
|
|
605
605
|
const parsedBody = parsedOutput.body;
|
|
606
606
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -611,21 +611,21 @@ const deserializeAws_json1_1RegisterScalableTargetCommandError = async (output,
|
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
613
|
};
|
|
614
|
-
const
|
|
614
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
615
615
|
if (output.statusCode >= 300) {
|
|
616
|
-
return
|
|
616
|
+
return de_TagResourceCommandError(output, context);
|
|
617
617
|
}
|
|
618
618
|
const data = await parseBody(output.body, context);
|
|
619
619
|
let contents = {};
|
|
620
|
-
contents =
|
|
620
|
+
contents = de_TagResourceResponse(data, context);
|
|
621
621
|
const response = {
|
|
622
622
|
$metadata: deserializeMetadata(output),
|
|
623
623
|
...contents,
|
|
624
624
|
};
|
|
625
625
|
return Promise.resolve(response);
|
|
626
626
|
};
|
|
627
|
-
exports.
|
|
628
|
-
const
|
|
627
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
628
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
629
629
|
const parsedOutput = {
|
|
630
630
|
...output,
|
|
631
631
|
body: await parseErrorBody(output.body, context),
|
|
@@ -634,13 +634,13 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
634
634
|
switch (errorCode) {
|
|
635
635
|
case "ResourceNotFoundException":
|
|
636
636
|
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
637
|
-
throw await
|
|
637
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
638
638
|
case "TooManyTagsException":
|
|
639
639
|
case "com.amazonaws.applicationautoscaling#TooManyTagsException":
|
|
640
|
-
throw await
|
|
640
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
641
641
|
case "ValidationException":
|
|
642
642
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
643
|
-
throw await
|
|
643
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
644
644
|
default:
|
|
645
645
|
const parsedBody = parsedOutput.body;
|
|
646
646
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -651,21 +651,21 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
};
|
|
654
|
-
const
|
|
654
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
655
655
|
if (output.statusCode >= 300) {
|
|
656
|
-
return
|
|
656
|
+
return de_UntagResourceCommandError(output, context);
|
|
657
657
|
}
|
|
658
658
|
const data = await parseBody(output.body, context);
|
|
659
659
|
let contents = {};
|
|
660
|
-
contents =
|
|
660
|
+
contents = de_UntagResourceResponse(data, context);
|
|
661
661
|
const response = {
|
|
662
662
|
$metadata: deserializeMetadata(output),
|
|
663
663
|
...contents,
|
|
664
664
|
};
|
|
665
665
|
return Promise.resolve(response);
|
|
666
666
|
};
|
|
667
|
-
exports.
|
|
668
|
-
const
|
|
667
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
668
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
669
669
|
const parsedOutput = {
|
|
670
670
|
...output,
|
|
671
671
|
body: await parseErrorBody(output.body, context),
|
|
@@ -674,10 +674,10 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
674
674
|
switch (errorCode) {
|
|
675
675
|
case "ResourceNotFoundException":
|
|
676
676
|
case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
|
|
677
|
-
throw await
|
|
677
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
678
678
|
case "ValidationException":
|
|
679
679
|
case "com.amazonaws.applicationautoscaling#ValidationException":
|
|
680
|
-
throw await
|
|
680
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
681
681
|
default:
|
|
682
682
|
const parsedBody = parsedOutput.body;
|
|
683
683
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -688,100 +688,98 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
688
688
|
});
|
|
689
689
|
}
|
|
690
690
|
};
|
|
691
|
-
const
|
|
691
|
+
const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
|
|
692
692
|
const body = parsedOutput.body;
|
|
693
|
-
const deserialized =
|
|
693
|
+
const deserialized = de_ConcurrentUpdateException(body, context);
|
|
694
694
|
const exception = new models_0_1.ConcurrentUpdateException({
|
|
695
695
|
$metadata: deserializeMetadata(parsedOutput),
|
|
696
696
|
...deserialized,
|
|
697
697
|
});
|
|
698
698
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
699
699
|
};
|
|
700
|
-
const
|
|
700
|
+
const de_FailedResourceAccessExceptionRes = async (parsedOutput, context) => {
|
|
701
701
|
const body = parsedOutput.body;
|
|
702
|
-
const deserialized =
|
|
702
|
+
const deserialized = de_FailedResourceAccessException(body, context);
|
|
703
703
|
const exception = new models_0_1.FailedResourceAccessException({
|
|
704
704
|
$metadata: deserializeMetadata(parsedOutput),
|
|
705
705
|
...deserialized,
|
|
706
706
|
});
|
|
707
707
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
708
708
|
};
|
|
709
|
-
const
|
|
709
|
+
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
710
710
|
const body = parsedOutput.body;
|
|
711
|
-
const deserialized =
|
|
711
|
+
const deserialized = de_InternalServiceException(body, context);
|
|
712
712
|
const exception = new models_0_1.InternalServiceException({
|
|
713
713
|
$metadata: deserializeMetadata(parsedOutput),
|
|
714
714
|
...deserialized,
|
|
715
715
|
});
|
|
716
716
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
717
717
|
};
|
|
718
|
-
const
|
|
718
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
719
719
|
const body = parsedOutput.body;
|
|
720
|
-
const deserialized =
|
|
720
|
+
const deserialized = de_InvalidNextTokenException(body, context);
|
|
721
721
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
722
722
|
$metadata: deserializeMetadata(parsedOutput),
|
|
723
723
|
...deserialized,
|
|
724
724
|
});
|
|
725
725
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
726
726
|
};
|
|
727
|
-
const
|
|
727
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
728
728
|
const body = parsedOutput.body;
|
|
729
|
-
const deserialized =
|
|
729
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
730
730
|
const exception = new models_0_1.LimitExceededException({
|
|
731
731
|
$metadata: deserializeMetadata(parsedOutput),
|
|
732
732
|
...deserialized,
|
|
733
733
|
});
|
|
734
734
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
735
735
|
};
|
|
736
|
-
const
|
|
736
|
+
const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
737
737
|
const body = parsedOutput.body;
|
|
738
|
-
const deserialized =
|
|
738
|
+
const deserialized = de_ObjectNotFoundException(body, context);
|
|
739
739
|
const exception = new models_0_1.ObjectNotFoundException({
|
|
740
740
|
$metadata: deserializeMetadata(parsedOutput),
|
|
741
741
|
...deserialized,
|
|
742
742
|
});
|
|
743
743
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
744
744
|
};
|
|
745
|
-
const
|
|
745
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
746
746
|
const body = parsedOutput.body;
|
|
747
|
-
const deserialized =
|
|
747
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
748
748
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
749
749
|
$metadata: deserializeMetadata(parsedOutput),
|
|
750
750
|
...deserialized,
|
|
751
751
|
});
|
|
752
752
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
753
753
|
};
|
|
754
|
-
const
|
|
754
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
755
755
|
const body = parsedOutput.body;
|
|
756
|
-
const deserialized =
|
|
756
|
+
const deserialized = de_TooManyTagsException(body, context);
|
|
757
757
|
const exception = new models_0_1.TooManyTagsException({
|
|
758
758
|
$metadata: deserializeMetadata(parsedOutput),
|
|
759
759
|
...deserialized,
|
|
760
760
|
});
|
|
761
761
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
762
762
|
};
|
|
763
|
-
const
|
|
763
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
764
764
|
const body = parsedOutput.body;
|
|
765
|
-
const deserialized =
|
|
765
|
+
const deserialized = de_ValidationException(body, context);
|
|
766
766
|
const exception = new models_0_1.ValidationException({
|
|
767
767
|
$metadata: deserializeMetadata(parsedOutput),
|
|
768
768
|
...deserialized,
|
|
769
769
|
});
|
|
770
770
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
771
771
|
};
|
|
772
|
-
const
|
|
772
|
+
const se_CustomizedMetricSpecification = (input, context) => {
|
|
773
773
|
return {
|
|
774
|
-
...(input.Dimensions != null && { Dimensions:
|
|
774
|
+
...(input.Dimensions != null && { Dimensions: se_MetricDimensions(input.Dimensions, context) }),
|
|
775
775
|
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
776
|
-
...(input.Metrics != null && {
|
|
777
|
-
Metrics: serializeAws_json1_1TargetTrackingMetricDataQueries(input.Metrics, context),
|
|
778
|
-
}),
|
|
776
|
+
...(input.Metrics != null && { Metrics: se_TargetTrackingMetricDataQueries(input.Metrics, context) }),
|
|
779
777
|
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
780
778
|
...(input.Statistic != null && { Statistic: input.Statistic }),
|
|
781
779
|
...(input.Unit != null && { Unit: input.Unit }),
|
|
782
780
|
};
|
|
783
781
|
};
|
|
784
|
-
const
|
|
782
|
+
const se_DeleteScalingPolicyRequest = (input, context) => {
|
|
785
783
|
return {
|
|
786
784
|
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
787
785
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
@@ -789,7 +787,7 @@ const serializeAws_json1_1DeleteScalingPolicyRequest = (input, context) => {
|
|
|
789
787
|
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
790
788
|
};
|
|
791
789
|
};
|
|
792
|
-
const
|
|
790
|
+
const se_DeleteScheduledActionRequest = (input, context) => {
|
|
793
791
|
return {
|
|
794
792
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
795
793
|
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
@@ -797,25 +795,23 @@ const serializeAws_json1_1DeleteScheduledActionRequest = (input, context) => {
|
|
|
797
795
|
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
798
796
|
};
|
|
799
797
|
};
|
|
800
|
-
const
|
|
798
|
+
const se_DeregisterScalableTargetRequest = (input, context) => {
|
|
801
799
|
return {
|
|
802
800
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
803
801
|
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
804
802
|
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
805
803
|
};
|
|
806
804
|
};
|
|
807
|
-
const
|
|
805
|
+
const se_DescribeScalableTargetsRequest = (input, context) => {
|
|
808
806
|
return {
|
|
809
807
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
810
808
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
811
|
-
...(input.ResourceIds != null && {
|
|
812
|
-
ResourceIds: serializeAws_json1_1ResourceIdsMaxLen1600(input.ResourceIds, context),
|
|
813
|
-
}),
|
|
809
|
+
...(input.ResourceIds != null && { ResourceIds: se_ResourceIdsMaxLen1600(input.ResourceIds, context) }),
|
|
814
810
|
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
815
811
|
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
816
812
|
};
|
|
817
813
|
};
|
|
818
|
-
const
|
|
814
|
+
const se_DescribeScalingActivitiesRequest = (input, context) => {
|
|
819
815
|
return {
|
|
820
816
|
...(input.IncludeNotScaledActivities != null && { IncludeNotScaledActivities: input.IncludeNotScaledActivities }),
|
|
821
817
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -825,55 +821,53 @@ const serializeAws_json1_1DescribeScalingActivitiesRequest = (input, context) =>
|
|
|
825
821
|
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
826
822
|
};
|
|
827
823
|
};
|
|
828
|
-
const
|
|
824
|
+
const se_DescribeScalingPoliciesRequest = (input, context) => {
|
|
829
825
|
return {
|
|
830
826
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
831
827
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
832
|
-
...(input.PolicyNames != null && {
|
|
833
|
-
PolicyNames: serializeAws_json1_1ResourceIdsMaxLen1600(input.PolicyNames, context),
|
|
834
|
-
}),
|
|
828
|
+
...(input.PolicyNames != null && { PolicyNames: se_ResourceIdsMaxLen1600(input.PolicyNames, context) }),
|
|
835
829
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
836
830
|
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
837
831
|
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
838
832
|
};
|
|
839
833
|
};
|
|
840
|
-
const
|
|
834
|
+
const se_DescribeScheduledActionsRequest = (input, context) => {
|
|
841
835
|
return {
|
|
842
836
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
843
837
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
844
838
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
845
839
|
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
846
840
|
...(input.ScheduledActionNames != null && {
|
|
847
|
-
ScheduledActionNames:
|
|
841
|
+
ScheduledActionNames: se_ResourceIdsMaxLen1600(input.ScheduledActionNames, context),
|
|
848
842
|
}),
|
|
849
843
|
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
850
844
|
};
|
|
851
845
|
};
|
|
852
|
-
const
|
|
846
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
853
847
|
return {
|
|
854
848
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
855
849
|
};
|
|
856
850
|
};
|
|
857
|
-
const
|
|
851
|
+
const se_MetricDimension = (input, context) => {
|
|
858
852
|
return {
|
|
859
853
|
...(input.Name != null && { Name: input.Name }),
|
|
860
854
|
...(input.Value != null && { Value: input.Value }),
|
|
861
855
|
};
|
|
862
856
|
};
|
|
863
|
-
const
|
|
857
|
+
const se_MetricDimensions = (input, context) => {
|
|
864
858
|
return input
|
|
865
859
|
.filter((e) => e != null)
|
|
866
860
|
.map((entry) => {
|
|
867
|
-
return
|
|
861
|
+
return se_MetricDimension(entry, context);
|
|
868
862
|
});
|
|
869
863
|
};
|
|
870
|
-
const
|
|
864
|
+
const se_PredefinedMetricSpecification = (input, context) => {
|
|
871
865
|
return {
|
|
872
866
|
...(input.PredefinedMetricType != null && { PredefinedMetricType: input.PredefinedMetricType }),
|
|
873
867
|
...(input.ResourceLabel != null && { ResourceLabel: input.ResourceLabel }),
|
|
874
868
|
};
|
|
875
869
|
};
|
|
876
|
-
const
|
|
870
|
+
const se_PutScalingPolicyRequest = (input, context) => {
|
|
877
871
|
return {
|
|
878
872
|
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
879
873
|
...(input.PolicyType != null && { PolicyType: input.PolicyType }),
|
|
@@ -881,20 +875,20 @@ const serializeAws_json1_1PutScalingPolicyRequest = (input, context) => {
|
|
|
881
875
|
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
882
876
|
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
883
877
|
...(input.StepScalingPolicyConfiguration != null && {
|
|
884
|
-
StepScalingPolicyConfiguration:
|
|
878
|
+
StepScalingPolicyConfiguration: se_StepScalingPolicyConfiguration(input.StepScalingPolicyConfiguration, context),
|
|
885
879
|
}),
|
|
886
880
|
...(input.TargetTrackingScalingPolicyConfiguration != null && {
|
|
887
|
-
TargetTrackingScalingPolicyConfiguration:
|
|
881
|
+
TargetTrackingScalingPolicyConfiguration: se_TargetTrackingScalingPolicyConfiguration(input.TargetTrackingScalingPolicyConfiguration, context),
|
|
888
882
|
}),
|
|
889
883
|
};
|
|
890
884
|
};
|
|
891
|
-
const
|
|
885
|
+
const se_PutScheduledActionRequest = (input, context) => {
|
|
892
886
|
return {
|
|
893
887
|
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
894
888
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
895
889
|
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
896
890
|
...(input.ScalableTargetAction != null && {
|
|
897
|
-
ScalableTargetAction:
|
|
891
|
+
ScalableTargetAction: se_ScalableTargetAction(input.ScalableTargetAction, context),
|
|
898
892
|
}),
|
|
899
893
|
...(input.Schedule != null && { Schedule: input.Schedule }),
|
|
900
894
|
...(input.ScheduledActionName != null && { ScheduledActionName: input.ScheduledActionName }),
|
|
@@ -903,7 +897,7 @@ const serializeAws_json1_1PutScheduledActionRequest = (input, context) => {
|
|
|
903
897
|
...(input.Timezone != null && { Timezone: input.Timezone }),
|
|
904
898
|
};
|
|
905
899
|
};
|
|
906
|
-
const
|
|
900
|
+
const se_RegisterScalableTargetRequest = (input, context) => {
|
|
907
901
|
return {
|
|
908
902
|
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
909
903
|
...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
|
|
@@ -911,26 +905,24 @@ const serializeAws_json1_1RegisterScalableTargetRequest = (input, context) => {
|
|
|
911
905
|
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
912
906
|
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
913
907
|
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
914
|
-
...(input.SuspendedState != null && {
|
|
915
|
-
|
|
916
|
-
}),
|
|
917
|
-
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
908
|
+
...(input.SuspendedState != null && { SuspendedState: se_SuspendedState(input.SuspendedState, context) }),
|
|
909
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
918
910
|
};
|
|
919
911
|
};
|
|
920
|
-
const
|
|
912
|
+
const se_ResourceIdsMaxLen1600 = (input, context) => {
|
|
921
913
|
return input
|
|
922
914
|
.filter((e) => e != null)
|
|
923
915
|
.map((entry) => {
|
|
924
916
|
return entry;
|
|
925
917
|
});
|
|
926
918
|
};
|
|
927
|
-
const
|
|
919
|
+
const se_ScalableTargetAction = (input, context) => {
|
|
928
920
|
return {
|
|
929
921
|
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
930
922
|
...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
|
|
931
923
|
};
|
|
932
924
|
};
|
|
933
|
-
const
|
|
925
|
+
const se_StepAdjustment = (input, context) => {
|
|
934
926
|
return {
|
|
935
927
|
...(input.MetricIntervalLowerBound != null && {
|
|
936
928
|
MetricIntervalLowerBound: (0, smithy_client_1.serializeFloat)(input.MetricIntervalLowerBound),
|
|
@@ -941,39 +933,37 @@ const serializeAws_json1_1StepAdjustment = (input, context) => {
|
|
|
941
933
|
...(input.ScalingAdjustment != null && { ScalingAdjustment: input.ScalingAdjustment }),
|
|
942
934
|
};
|
|
943
935
|
};
|
|
944
|
-
const
|
|
936
|
+
const se_StepAdjustments = (input, context) => {
|
|
945
937
|
return input
|
|
946
938
|
.filter((e) => e != null)
|
|
947
939
|
.map((entry) => {
|
|
948
|
-
return
|
|
940
|
+
return se_StepAdjustment(entry, context);
|
|
949
941
|
});
|
|
950
942
|
};
|
|
951
|
-
const
|
|
943
|
+
const se_StepScalingPolicyConfiguration = (input, context) => {
|
|
952
944
|
return {
|
|
953
945
|
...(input.AdjustmentType != null && { AdjustmentType: input.AdjustmentType }),
|
|
954
946
|
...(input.Cooldown != null && { Cooldown: input.Cooldown }),
|
|
955
947
|
...(input.MetricAggregationType != null && { MetricAggregationType: input.MetricAggregationType }),
|
|
956
948
|
...(input.MinAdjustmentMagnitude != null && { MinAdjustmentMagnitude: input.MinAdjustmentMagnitude }),
|
|
957
|
-
...(input.StepAdjustments != null && {
|
|
958
|
-
StepAdjustments: serializeAws_json1_1StepAdjustments(input.StepAdjustments, context),
|
|
959
|
-
}),
|
|
949
|
+
...(input.StepAdjustments != null && { StepAdjustments: se_StepAdjustments(input.StepAdjustments, context) }),
|
|
960
950
|
};
|
|
961
951
|
};
|
|
962
|
-
const
|
|
952
|
+
const se_SuspendedState = (input, context) => {
|
|
963
953
|
return {
|
|
964
954
|
...(input.DynamicScalingInSuspended != null && { DynamicScalingInSuspended: input.DynamicScalingInSuspended }),
|
|
965
955
|
...(input.DynamicScalingOutSuspended != null && { DynamicScalingOutSuspended: input.DynamicScalingOutSuspended }),
|
|
966
956
|
...(input.ScheduledScalingSuspended != null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }),
|
|
967
957
|
};
|
|
968
958
|
};
|
|
969
|
-
const
|
|
959
|
+
const se_TagKeyList = (input, context) => {
|
|
970
960
|
return input
|
|
971
961
|
.filter((e) => e != null)
|
|
972
962
|
.map((entry) => {
|
|
973
963
|
return entry;
|
|
974
964
|
});
|
|
975
965
|
};
|
|
976
|
-
const
|
|
966
|
+
const se_TagMap = (input, context) => {
|
|
977
967
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
978
968
|
if (value === null) {
|
|
979
969
|
return acc;
|
|
@@ -982,197 +972,183 @@ const serializeAws_json1_1TagMap = (input, context) => {
|
|
|
982
972
|
return acc;
|
|
983
973
|
}, {});
|
|
984
974
|
};
|
|
985
|
-
const
|
|
975
|
+
const se_TagResourceRequest = (input, context) => {
|
|
986
976
|
return {
|
|
987
977
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
988
|
-
...(input.Tags != null && { Tags:
|
|
978
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
989
979
|
};
|
|
990
980
|
};
|
|
991
|
-
const
|
|
981
|
+
const se_TargetTrackingMetric = (input, context) => {
|
|
992
982
|
return {
|
|
993
|
-
...(input.Dimensions != null && {
|
|
994
|
-
Dimensions: serializeAws_json1_1TargetTrackingMetricDimensions(input.Dimensions, context),
|
|
995
|
-
}),
|
|
983
|
+
...(input.Dimensions != null && { Dimensions: se_TargetTrackingMetricDimensions(input.Dimensions, context) }),
|
|
996
984
|
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
997
985
|
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
998
986
|
};
|
|
999
987
|
};
|
|
1000
|
-
const
|
|
988
|
+
const se_TargetTrackingMetricDataQueries = (input, context) => {
|
|
1001
989
|
return input
|
|
1002
990
|
.filter((e) => e != null)
|
|
1003
991
|
.map((entry) => {
|
|
1004
|
-
return
|
|
992
|
+
return se_TargetTrackingMetricDataQuery(entry, context);
|
|
1005
993
|
});
|
|
1006
994
|
};
|
|
1007
|
-
const
|
|
995
|
+
const se_TargetTrackingMetricDataQuery = (input, context) => {
|
|
1008
996
|
return {
|
|
1009
997
|
...(input.Expression != null && { Expression: input.Expression }),
|
|
1010
998
|
...(input.Id != null && { Id: input.Id }),
|
|
1011
999
|
...(input.Label != null && { Label: input.Label }),
|
|
1012
|
-
...(input.MetricStat != null && {
|
|
1013
|
-
MetricStat: serializeAws_json1_1TargetTrackingMetricStat(input.MetricStat, context),
|
|
1014
|
-
}),
|
|
1000
|
+
...(input.MetricStat != null && { MetricStat: se_TargetTrackingMetricStat(input.MetricStat, context) }),
|
|
1015
1001
|
...(input.ReturnData != null && { ReturnData: input.ReturnData }),
|
|
1016
1002
|
};
|
|
1017
1003
|
};
|
|
1018
|
-
const
|
|
1004
|
+
const se_TargetTrackingMetricDimension = (input, context) => {
|
|
1019
1005
|
return {
|
|
1020
1006
|
...(input.Name != null && { Name: input.Name }),
|
|
1021
1007
|
...(input.Value != null && { Value: input.Value }),
|
|
1022
1008
|
};
|
|
1023
1009
|
};
|
|
1024
|
-
const
|
|
1010
|
+
const se_TargetTrackingMetricDimensions = (input, context) => {
|
|
1025
1011
|
return input
|
|
1026
1012
|
.filter((e) => e != null)
|
|
1027
1013
|
.map((entry) => {
|
|
1028
|
-
return
|
|
1014
|
+
return se_TargetTrackingMetricDimension(entry, context);
|
|
1029
1015
|
});
|
|
1030
1016
|
};
|
|
1031
|
-
const
|
|
1017
|
+
const se_TargetTrackingMetricStat = (input, context) => {
|
|
1032
1018
|
return {
|
|
1033
|
-
...(input.Metric != null && { Metric:
|
|
1019
|
+
...(input.Metric != null && { Metric: se_TargetTrackingMetric(input.Metric, context) }),
|
|
1034
1020
|
...(input.Stat != null && { Stat: input.Stat }),
|
|
1035
1021
|
...(input.Unit != null && { Unit: input.Unit }),
|
|
1036
1022
|
};
|
|
1037
1023
|
};
|
|
1038
|
-
const
|
|
1024
|
+
const se_TargetTrackingScalingPolicyConfiguration = (input, context) => {
|
|
1039
1025
|
return {
|
|
1040
1026
|
...(input.CustomizedMetricSpecification != null && {
|
|
1041
|
-
CustomizedMetricSpecification:
|
|
1027
|
+
CustomizedMetricSpecification: se_CustomizedMetricSpecification(input.CustomizedMetricSpecification, context),
|
|
1042
1028
|
}),
|
|
1043
1029
|
...(input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn }),
|
|
1044
1030
|
...(input.PredefinedMetricSpecification != null && {
|
|
1045
|
-
PredefinedMetricSpecification:
|
|
1031
|
+
PredefinedMetricSpecification: se_PredefinedMetricSpecification(input.PredefinedMetricSpecification, context),
|
|
1046
1032
|
}),
|
|
1047
1033
|
...(input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }),
|
|
1048
1034
|
...(input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }),
|
|
1049
1035
|
...(input.TargetValue != null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) }),
|
|
1050
1036
|
};
|
|
1051
1037
|
};
|
|
1052
|
-
const
|
|
1038
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
1053
1039
|
return {
|
|
1054
1040
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1055
|
-
...(input.TagKeys != null && { TagKeys:
|
|
1041
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1056
1042
|
};
|
|
1057
1043
|
};
|
|
1058
|
-
const
|
|
1044
|
+
const de_Alarm = (output, context) => {
|
|
1059
1045
|
return {
|
|
1060
1046
|
AlarmARN: (0, smithy_client_1.expectString)(output.AlarmARN),
|
|
1061
1047
|
AlarmName: (0, smithy_client_1.expectString)(output.AlarmName),
|
|
1062
1048
|
};
|
|
1063
1049
|
};
|
|
1064
|
-
const
|
|
1050
|
+
const de_Alarms = (output, context) => {
|
|
1065
1051
|
const retVal = (output || [])
|
|
1066
1052
|
.filter((e) => e != null)
|
|
1067
1053
|
.map((entry) => {
|
|
1068
1054
|
if (entry === null) {
|
|
1069
1055
|
return null;
|
|
1070
1056
|
}
|
|
1071
|
-
return
|
|
1057
|
+
return de_Alarm(entry, context);
|
|
1072
1058
|
});
|
|
1073
1059
|
return retVal;
|
|
1074
1060
|
};
|
|
1075
|
-
const
|
|
1061
|
+
const de_ConcurrentUpdateException = (output, context) => {
|
|
1076
1062
|
return {
|
|
1077
1063
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1078
1064
|
};
|
|
1079
1065
|
};
|
|
1080
|
-
const
|
|
1066
|
+
const de_CustomizedMetricSpecification = (output, context) => {
|
|
1081
1067
|
return {
|
|
1082
|
-
Dimensions: output.Dimensions != null ?
|
|
1068
|
+
Dimensions: output.Dimensions != null ? de_MetricDimensions(output.Dimensions, context) : undefined,
|
|
1083
1069
|
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
1084
|
-
Metrics: output.Metrics != null
|
|
1085
|
-
? deserializeAws_json1_1TargetTrackingMetricDataQueries(output.Metrics, context)
|
|
1086
|
-
: undefined,
|
|
1070
|
+
Metrics: output.Metrics != null ? de_TargetTrackingMetricDataQueries(output.Metrics, context) : undefined,
|
|
1087
1071
|
Namespace: (0, smithy_client_1.expectString)(output.Namespace),
|
|
1088
1072
|
Statistic: (0, smithy_client_1.expectString)(output.Statistic),
|
|
1089
1073
|
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
1090
1074
|
};
|
|
1091
1075
|
};
|
|
1092
|
-
const
|
|
1076
|
+
const de_DeleteScalingPolicyResponse = (output, context) => {
|
|
1093
1077
|
return {};
|
|
1094
1078
|
};
|
|
1095
|
-
const
|
|
1079
|
+
const de_DeleteScheduledActionResponse = (output, context) => {
|
|
1096
1080
|
return {};
|
|
1097
1081
|
};
|
|
1098
|
-
const
|
|
1082
|
+
const de_DeregisterScalableTargetResponse = (output, context) => {
|
|
1099
1083
|
return {};
|
|
1100
1084
|
};
|
|
1101
|
-
const
|
|
1085
|
+
const de_DescribeScalableTargetsResponse = (output, context) => {
|
|
1102
1086
|
return {
|
|
1103
1087
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1104
|
-
ScalableTargets: output.ScalableTargets != null
|
|
1105
|
-
? deserializeAws_json1_1ScalableTargets(output.ScalableTargets, context)
|
|
1106
|
-
: undefined,
|
|
1088
|
+
ScalableTargets: output.ScalableTargets != null ? de_ScalableTargets(output.ScalableTargets, context) : undefined,
|
|
1107
1089
|
};
|
|
1108
1090
|
};
|
|
1109
|
-
const
|
|
1091
|
+
const de_DescribeScalingActivitiesResponse = (output, context) => {
|
|
1110
1092
|
return {
|
|
1111
1093
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1112
|
-
ScalingActivities: output.ScalingActivities != null
|
|
1113
|
-
? deserializeAws_json1_1ScalingActivities(output.ScalingActivities, context)
|
|
1114
|
-
: undefined,
|
|
1094
|
+
ScalingActivities: output.ScalingActivities != null ? de_ScalingActivities(output.ScalingActivities, context) : undefined,
|
|
1115
1095
|
};
|
|
1116
1096
|
};
|
|
1117
|
-
const
|
|
1097
|
+
const de_DescribeScalingPoliciesResponse = (output, context) => {
|
|
1118
1098
|
return {
|
|
1119
1099
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1120
|
-
ScalingPolicies: output.ScalingPolicies != null
|
|
1121
|
-
? deserializeAws_json1_1ScalingPolicies(output.ScalingPolicies, context)
|
|
1122
|
-
: undefined,
|
|
1100
|
+
ScalingPolicies: output.ScalingPolicies != null ? de_ScalingPolicies(output.ScalingPolicies, context) : undefined,
|
|
1123
1101
|
};
|
|
1124
1102
|
};
|
|
1125
|
-
const
|
|
1103
|
+
const de_DescribeScheduledActionsResponse = (output, context) => {
|
|
1126
1104
|
return {
|
|
1127
1105
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1128
|
-
ScheduledActions: output.ScheduledActions != null
|
|
1129
|
-
? deserializeAws_json1_1ScheduledActions(output.ScheduledActions, context)
|
|
1130
|
-
: undefined,
|
|
1106
|
+
ScheduledActions: output.ScheduledActions != null ? de_ScheduledActions(output.ScheduledActions, context) : undefined,
|
|
1131
1107
|
};
|
|
1132
1108
|
};
|
|
1133
|
-
const
|
|
1109
|
+
const de_FailedResourceAccessException = (output, context) => {
|
|
1134
1110
|
return {
|
|
1135
1111
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1136
1112
|
};
|
|
1137
1113
|
};
|
|
1138
|
-
const
|
|
1114
|
+
const de_InternalServiceException = (output, context) => {
|
|
1139
1115
|
return {
|
|
1140
1116
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1141
1117
|
};
|
|
1142
1118
|
};
|
|
1143
|
-
const
|
|
1119
|
+
const de_InvalidNextTokenException = (output, context) => {
|
|
1144
1120
|
return {
|
|
1145
1121
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1146
1122
|
};
|
|
1147
1123
|
};
|
|
1148
|
-
const
|
|
1124
|
+
const de_LimitExceededException = (output, context) => {
|
|
1149
1125
|
return {
|
|
1150
1126
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1151
1127
|
};
|
|
1152
1128
|
};
|
|
1153
|
-
const
|
|
1129
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1154
1130
|
return {
|
|
1155
|
-
Tags: output.Tags != null ?
|
|
1131
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1156
1132
|
};
|
|
1157
1133
|
};
|
|
1158
|
-
const
|
|
1134
|
+
const de_MetricDimension = (output, context) => {
|
|
1159
1135
|
return {
|
|
1160
1136
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1161
1137
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1162
1138
|
};
|
|
1163
1139
|
};
|
|
1164
|
-
const
|
|
1140
|
+
const de_MetricDimensions = (output, context) => {
|
|
1165
1141
|
const retVal = (output || [])
|
|
1166
1142
|
.filter((e) => e != null)
|
|
1167
1143
|
.map((entry) => {
|
|
1168
1144
|
if (entry === null) {
|
|
1169
1145
|
return null;
|
|
1170
1146
|
}
|
|
1171
|
-
return
|
|
1147
|
+
return de_MetricDimension(entry, context);
|
|
1172
1148
|
});
|
|
1173
1149
|
return retVal;
|
|
1174
1150
|
};
|
|
1175
|
-
const
|
|
1151
|
+
const de_NotScaledReason = (output, context) => {
|
|
1176
1152
|
return {
|
|
1177
1153
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1178
1154
|
CurrentCapacity: (0, smithy_client_1.expectInt32)(output.CurrentCapacity),
|
|
@@ -1180,49 +1156,49 @@ const deserializeAws_json1_1NotScaledReason = (output, context) => {
|
|
|
1180
1156
|
MinCapacity: (0, smithy_client_1.expectInt32)(output.MinCapacity),
|
|
1181
1157
|
};
|
|
1182
1158
|
};
|
|
1183
|
-
const
|
|
1159
|
+
const de_NotScaledReasons = (output, context) => {
|
|
1184
1160
|
const retVal = (output || [])
|
|
1185
1161
|
.filter((e) => e != null)
|
|
1186
1162
|
.map((entry) => {
|
|
1187
1163
|
if (entry === null) {
|
|
1188
1164
|
return null;
|
|
1189
1165
|
}
|
|
1190
|
-
return
|
|
1166
|
+
return de_NotScaledReason(entry, context);
|
|
1191
1167
|
});
|
|
1192
1168
|
return retVal;
|
|
1193
1169
|
};
|
|
1194
|
-
const
|
|
1170
|
+
const de_ObjectNotFoundException = (output, context) => {
|
|
1195
1171
|
return {
|
|
1196
1172
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1197
1173
|
};
|
|
1198
1174
|
};
|
|
1199
|
-
const
|
|
1175
|
+
const de_PredefinedMetricSpecification = (output, context) => {
|
|
1200
1176
|
return {
|
|
1201
1177
|
PredefinedMetricType: (0, smithy_client_1.expectString)(output.PredefinedMetricType),
|
|
1202
1178
|
ResourceLabel: (0, smithy_client_1.expectString)(output.ResourceLabel),
|
|
1203
1179
|
};
|
|
1204
1180
|
};
|
|
1205
|
-
const
|
|
1181
|
+
const de_PutScalingPolicyResponse = (output, context) => {
|
|
1206
1182
|
return {
|
|
1207
|
-
Alarms: output.Alarms != null ?
|
|
1183
|
+
Alarms: output.Alarms != null ? de_Alarms(output.Alarms, context) : undefined,
|
|
1208
1184
|
PolicyARN: (0, smithy_client_1.expectString)(output.PolicyARN),
|
|
1209
1185
|
};
|
|
1210
1186
|
};
|
|
1211
|
-
const
|
|
1187
|
+
const de_PutScheduledActionResponse = (output, context) => {
|
|
1212
1188
|
return {};
|
|
1213
1189
|
};
|
|
1214
|
-
const
|
|
1190
|
+
const de_RegisterScalableTargetResponse = (output, context) => {
|
|
1215
1191
|
return {
|
|
1216
1192
|
ScalableTargetARN: (0, smithy_client_1.expectString)(output.ScalableTargetARN),
|
|
1217
1193
|
};
|
|
1218
1194
|
};
|
|
1219
|
-
const
|
|
1195
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
1220
1196
|
return {
|
|
1221
1197
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1222
1198
|
ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
|
|
1223
1199
|
};
|
|
1224
1200
|
};
|
|
1225
|
-
const
|
|
1201
|
+
const de_ScalableTarget = (output, context) => {
|
|
1226
1202
|
return {
|
|
1227
1203
|
CreationTime: output.CreationTime != null
|
|
1228
1204
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
@@ -1234,47 +1210,45 @@ const deserializeAws_json1_1ScalableTarget = (output, context) => {
|
|
|
1234
1210
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1235
1211
|
ScalableTargetARN: (0, smithy_client_1.expectString)(output.ScalableTargetARN),
|
|
1236
1212
|
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
1237
|
-
SuspendedState: output.SuspendedState != null ?
|
|
1213
|
+
SuspendedState: output.SuspendedState != null ? de_SuspendedState(output.SuspendedState, context) : undefined,
|
|
1238
1214
|
};
|
|
1239
1215
|
};
|
|
1240
|
-
const
|
|
1216
|
+
const de_ScalableTargetAction = (output, context) => {
|
|
1241
1217
|
return {
|
|
1242
1218
|
MaxCapacity: (0, smithy_client_1.expectInt32)(output.MaxCapacity),
|
|
1243
1219
|
MinCapacity: (0, smithy_client_1.expectInt32)(output.MinCapacity),
|
|
1244
1220
|
};
|
|
1245
1221
|
};
|
|
1246
|
-
const
|
|
1222
|
+
const de_ScalableTargets = (output, context) => {
|
|
1247
1223
|
const retVal = (output || [])
|
|
1248
1224
|
.filter((e) => e != null)
|
|
1249
1225
|
.map((entry) => {
|
|
1250
1226
|
if (entry === null) {
|
|
1251
1227
|
return null;
|
|
1252
1228
|
}
|
|
1253
|
-
return
|
|
1229
|
+
return de_ScalableTarget(entry, context);
|
|
1254
1230
|
});
|
|
1255
1231
|
return retVal;
|
|
1256
1232
|
};
|
|
1257
|
-
const
|
|
1233
|
+
const de_ScalingActivities = (output, context) => {
|
|
1258
1234
|
const retVal = (output || [])
|
|
1259
1235
|
.filter((e) => e != null)
|
|
1260
1236
|
.map((entry) => {
|
|
1261
1237
|
if (entry === null) {
|
|
1262
1238
|
return null;
|
|
1263
1239
|
}
|
|
1264
|
-
return
|
|
1240
|
+
return de_ScalingActivity(entry, context);
|
|
1265
1241
|
});
|
|
1266
1242
|
return retVal;
|
|
1267
1243
|
};
|
|
1268
|
-
const
|
|
1244
|
+
const de_ScalingActivity = (output, context) => {
|
|
1269
1245
|
return {
|
|
1270
1246
|
ActivityId: (0, smithy_client_1.expectString)(output.ActivityId),
|
|
1271
1247
|
Cause: (0, smithy_client_1.expectString)(output.Cause),
|
|
1272
1248
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1273
1249
|
Details: (0, smithy_client_1.expectString)(output.Details),
|
|
1274
1250
|
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
1275
|
-
NotScaledReasons: output.NotScaledReasons != null
|
|
1276
|
-
? deserializeAws_json1_1NotScaledReasons(output.NotScaledReasons, context)
|
|
1277
|
-
: undefined,
|
|
1251
|
+
NotScaledReasons: output.NotScaledReasons != null ? de_NotScaledReasons(output.NotScaledReasons, context) : undefined,
|
|
1278
1252
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1279
1253
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1280
1254
|
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
@@ -1283,20 +1257,20 @@ const deserializeAws_json1_1ScalingActivity = (output, context) => {
|
|
|
1283
1257
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1284
1258
|
};
|
|
1285
1259
|
};
|
|
1286
|
-
const
|
|
1260
|
+
const de_ScalingPolicies = (output, context) => {
|
|
1287
1261
|
const retVal = (output || [])
|
|
1288
1262
|
.filter((e) => e != null)
|
|
1289
1263
|
.map((entry) => {
|
|
1290
1264
|
if (entry === null) {
|
|
1291
1265
|
return null;
|
|
1292
1266
|
}
|
|
1293
|
-
return
|
|
1267
|
+
return de_ScalingPolicy(entry, context);
|
|
1294
1268
|
});
|
|
1295
1269
|
return retVal;
|
|
1296
1270
|
};
|
|
1297
|
-
const
|
|
1271
|
+
const de_ScalingPolicy = (output, context) => {
|
|
1298
1272
|
return {
|
|
1299
|
-
Alarms: output.Alarms != null ?
|
|
1273
|
+
Alarms: output.Alarms != null ? de_Alarms(output.Alarms, context) : undefined,
|
|
1300
1274
|
CreationTime: output.CreationTime != null
|
|
1301
1275
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1302
1276
|
: undefined,
|
|
@@ -1307,14 +1281,14 @@ const deserializeAws_json1_1ScalingPolicy = (output, context) => {
|
|
|
1307
1281
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1308
1282
|
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
1309
1283
|
StepScalingPolicyConfiguration: output.StepScalingPolicyConfiguration != null
|
|
1310
|
-
?
|
|
1284
|
+
? de_StepScalingPolicyConfiguration(output.StepScalingPolicyConfiguration, context)
|
|
1311
1285
|
: undefined,
|
|
1312
1286
|
TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null
|
|
1313
|
-
?
|
|
1287
|
+
? de_TargetTrackingScalingPolicyConfiguration(output.TargetTrackingScalingPolicyConfiguration, context)
|
|
1314
1288
|
: undefined,
|
|
1315
1289
|
};
|
|
1316
1290
|
};
|
|
1317
|
-
const
|
|
1291
|
+
const de_ScheduledAction = (output, context) => {
|
|
1318
1292
|
return {
|
|
1319
1293
|
CreationTime: output.CreationTime != null
|
|
1320
1294
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
@@ -1322,9 +1296,7 @@ const deserializeAws_json1_1ScheduledAction = (output, context) => {
|
|
|
1322
1296
|
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
1323
1297
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1324
1298
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1325
|
-
ScalableTargetAction: output.ScalableTargetAction != null
|
|
1326
|
-
? deserializeAws_json1_1ScalableTargetAction(output.ScalableTargetAction, context)
|
|
1327
|
-
: undefined,
|
|
1299
|
+
ScalableTargetAction: output.ScalableTargetAction != null ? de_ScalableTargetAction(output.ScalableTargetAction, context) : undefined,
|
|
1328
1300
|
Schedule: (0, smithy_client_1.expectString)(output.Schedule),
|
|
1329
1301
|
ScheduledActionARN: (0, smithy_client_1.expectString)(output.ScheduledActionARN),
|
|
1330
1302
|
ScheduledActionName: (0, smithy_client_1.expectString)(output.ScheduledActionName),
|
|
@@ -1333,54 +1305,52 @@ const deserializeAws_json1_1ScheduledAction = (output, context) => {
|
|
|
1333
1305
|
Timezone: (0, smithy_client_1.expectString)(output.Timezone),
|
|
1334
1306
|
};
|
|
1335
1307
|
};
|
|
1336
|
-
const
|
|
1308
|
+
const de_ScheduledActions = (output, context) => {
|
|
1337
1309
|
const retVal = (output || [])
|
|
1338
1310
|
.filter((e) => e != null)
|
|
1339
1311
|
.map((entry) => {
|
|
1340
1312
|
if (entry === null) {
|
|
1341
1313
|
return null;
|
|
1342
1314
|
}
|
|
1343
|
-
return
|
|
1315
|
+
return de_ScheduledAction(entry, context);
|
|
1344
1316
|
});
|
|
1345
1317
|
return retVal;
|
|
1346
1318
|
};
|
|
1347
|
-
const
|
|
1319
|
+
const de_StepAdjustment = (output, context) => {
|
|
1348
1320
|
return {
|
|
1349
1321
|
MetricIntervalLowerBound: (0, smithy_client_1.limitedParseDouble)(output.MetricIntervalLowerBound),
|
|
1350
1322
|
MetricIntervalUpperBound: (0, smithy_client_1.limitedParseDouble)(output.MetricIntervalUpperBound),
|
|
1351
1323
|
ScalingAdjustment: (0, smithy_client_1.expectInt32)(output.ScalingAdjustment),
|
|
1352
1324
|
};
|
|
1353
1325
|
};
|
|
1354
|
-
const
|
|
1326
|
+
const de_StepAdjustments = (output, context) => {
|
|
1355
1327
|
const retVal = (output || [])
|
|
1356
1328
|
.filter((e) => e != null)
|
|
1357
1329
|
.map((entry) => {
|
|
1358
1330
|
if (entry === null) {
|
|
1359
1331
|
return null;
|
|
1360
1332
|
}
|
|
1361
|
-
return
|
|
1333
|
+
return de_StepAdjustment(entry, context);
|
|
1362
1334
|
});
|
|
1363
1335
|
return retVal;
|
|
1364
1336
|
};
|
|
1365
|
-
const
|
|
1337
|
+
const de_StepScalingPolicyConfiguration = (output, context) => {
|
|
1366
1338
|
return {
|
|
1367
1339
|
AdjustmentType: (0, smithy_client_1.expectString)(output.AdjustmentType),
|
|
1368
1340
|
Cooldown: (0, smithy_client_1.expectInt32)(output.Cooldown),
|
|
1369
1341
|
MetricAggregationType: (0, smithy_client_1.expectString)(output.MetricAggregationType),
|
|
1370
1342
|
MinAdjustmentMagnitude: (0, smithy_client_1.expectInt32)(output.MinAdjustmentMagnitude),
|
|
1371
|
-
StepAdjustments: output.StepAdjustments != null
|
|
1372
|
-
? deserializeAws_json1_1StepAdjustments(output.StepAdjustments, context)
|
|
1373
|
-
: undefined,
|
|
1343
|
+
StepAdjustments: output.StepAdjustments != null ? de_StepAdjustments(output.StepAdjustments, context) : undefined,
|
|
1374
1344
|
};
|
|
1375
1345
|
};
|
|
1376
|
-
const
|
|
1346
|
+
const de_SuspendedState = (output, context) => {
|
|
1377
1347
|
return {
|
|
1378
1348
|
DynamicScalingInSuspended: (0, smithy_client_1.expectBoolean)(output.DynamicScalingInSuspended),
|
|
1379
1349
|
DynamicScalingOutSuspended: (0, smithy_client_1.expectBoolean)(output.DynamicScalingOutSuspended),
|
|
1380
1350
|
ScheduledScalingSuspended: (0, smithy_client_1.expectBoolean)(output.ScheduledScalingSuspended),
|
|
1381
1351
|
};
|
|
1382
1352
|
};
|
|
1383
|
-
const
|
|
1353
|
+
const de_TagMap = (output, context) => {
|
|
1384
1354
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1385
1355
|
if (value === null) {
|
|
1386
1356
|
return acc;
|
|
@@ -1389,88 +1359,84 @@ const deserializeAws_json1_1TagMap = (output, context) => {
|
|
|
1389
1359
|
return acc;
|
|
1390
1360
|
}, {});
|
|
1391
1361
|
};
|
|
1392
|
-
const
|
|
1362
|
+
const de_TagResourceResponse = (output, context) => {
|
|
1393
1363
|
return {};
|
|
1394
1364
|
};
|
|
1395
|
-
const
|
|
1365
|
+
const de_TargetTrackingMetric = (output, context) => {
|
|
1396
1366
|
return {
|
|
1397
|
-
Dimensions: output.Dimensions != null
|
|
1398
|
-
? deserializeAws_json1_1TargetTrackingMetricDimensions(output.Dimensions, context)
|
|
1399
|
-
: undefined,
|
|
1367
|
+
Dimensions: output.Dimensions != null ? de_TargetTrackingMetricDimensions(output.Dimensions, context) : undefined,
|
|
1400
1368
|
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
1401
1369
|
Namespace: (0, smithy_client_1.expectString)(output.Namespace),
|
|
1402
1370
|
};
|
|
1403
1371
|
};
|
|
1404
|
-
const
|
|
1372
|
+
const de_TargetTrackingMetricDataQueries = (output, context) => {
|
|
1405
1373
|
const retVal = (output || [])
|
|
1406
1374
|
.filter((e) => e != null)
|
|
1407
1375
|
.map((entry) => {
|
|
1408
1376
|
if (entry === null) {
|
|
1409
1377
|
return null;
|
|
1410
1378
|
}
|
|
1411
|
-
return
|
|
1379
|
+
return de_TargetTrackingMetricDataQuery(entry, context);
|
|
1412
1380
|
});
|
|
1413
1381
|
return retVal;
|
|
1414
1382
|
};
|
|
1415
|
-
const
|
|
1383
|
+
const de_TargetTrackingMetricDataQuery = (output, context) => {
|
|
1416
1384
|
return {
|
|
1417
1385
|
Expression: (0, smithy_client_1.expectString)(output.Expression),
|
|
1418
1386
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1419
1387
|
Label: (0, smithy_client_1.expectString)(output.Label),
|
|
1420
|
-
MetricStat: output.MetricStat != null
|
|
1421
|
-
? deserializeAws_json1_1TargetTrackingMetricStat(output.MetricStat, context)
|
|
1422
|
-
: undefined,
|
|
1388
|
+
MetricStat: output.MetricStat != null ? de_TargetTrackingMetricStat(output.MetricStat, context) : undefined,
|
|
1423
1389
|
ReturnData: (0, smithy_client_1.expectBoolean)(output.ReturnData),
|
|
1424
1390
|
};
|
|
1425
1391
|
};
|
|
1426
|
-
const
|
|
1392
|
+
const de_TargetTrackingMetricDimension = (output, context) => {
|
|
1427
1393
|
return {
|
|
1428
1394
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1429
1395
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1430
1396
|
};
|
|
1431
1397
|
};
|
|
1432
|
-
const
|
|
1398
|
+
const de_TargetTrackingMetricDimensions = (output, context) => {
|
|
1433
1399
|
const retVal = (output || [])
|
|
1434
1400
|
.filter((e) => e != null)
|
|
1435
1401
|
.map((entry) => {
|
|
1436
1402
|
if (entry === null) {
|
|
1437
1403
|
return null;
|
|
1438
1404
|
}
|
|
1439
|
-
return
|
|
1405
|
+
return de_TargetTrackingMetricDimension(entry, context);
|
|
1440
1406
|
});
|
|
1441
1407
|
return retVal;
|
|
1442
1408
|
};
|
|
1443
|
-
const
|
|
1409
|
+
const de_TargetTrackingMetricStat = (output, context) => {
|
|
1444
1410
|
return {
|
|
1445
|
-
Metric: output.Metric != null ?
|
|
1411
|
+
Metric: output.Metric != null ? de_TargetTrackingMetric(output.Metric, context) : undefined,
|
|
1446
1412
|
Stat: (0, smithy_client_1.expectString)(output.Stat),
|
|
1447
1413
|
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
1448
1414
|
};
|
|
1449
1415
|
};
|
|
1450
|
-
const
|
|
1416
|
+
const de_TargetTrackingScalingPolicyConfiguration = (output, context) => {
|
|
1451
1417
|
return {
|
|
1452
1418
|
CustomizedMetricSpecification: output.CustomizedMetricSpecification != null
|
|
1453
|
-
?
|
|
1419
|
+
? de_CustomizedMetricSpecification(output.CustomizedMetricSpecification, context)
|
|
1454
1420
|
: undefined,
|
|
1455
1421
|
DisableScaleIn: (0, smithy_client_1.expectBoolean)(output.DisableScaleIn),
|
|
1456
1422
|
PredefinedMetricSpecification: output.PredefinedMetricSpecification != null
|
|
1457
|
-
?
|
|
1423
|
+
? de_PredefinedMetricSpecification(output.PredefinedMetricSpecification, context)
|
|
1458
1424
|
: undefined,
|
|
1459
1425
|
ScaleInCooldown: (0, smithy_client_1.expectInt32)(output.ScaleInCooldown),
|
|
1460
1426
|
ScaleOutCooldown: (0, smithy_client_1.expectInt32)(output.ScaleOutCooldown),
|
|
1461
1427
|
TargetValue: (0, smithy_client_1.limitedParseDouble)(output.TargetValue),
|
|
1462
1428
|
};
|
|
1463
1429
|
};
|
|
1464
|
-
const
|
|
1430
|
+
const de_TooManyTagsException = (output, context) => {
|
|
1465
1431
|
return {
|
|
1466
1432
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1467
1433
|
ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
|
|
1468
1434
|
};
|
|
1469
1435
|
};
|
|
1470
|
-
const
|
|
1436
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
1471
1437
|
return {};
|
|
1472
1438
|
};
|
|
1473
|
-
const
|
|
1439
|
+
const de_ValidationException = (output, context) => {
|
|
1474
1440
|
return {
|
|
1475
1441
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1476
1442
|
};
|