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