@aws-sdk/client-auto-scaling-plans 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/CreateScalingPlanCommand.js +2 -2
- package/dist-cjs/commands/DeleteScalingPlanCommand.js +2 -2
- package/dist-cjs/commands/DescribeScalingPlanResourcesCommand.js +2 -2
- package/dist-cjs/commands/DescribeScalingPlansCommand.js +2 -2
- package/dist-cjs/commands/GetScalingPlanResourceForecastDataCommand.js +2 -2
- package/dist-cjs/commands/UpdateScalingPlanCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +183 -193
- package/dist-es/commands/CreateScalingPlanCommand.js +3 -3
- package/dist-es/commands/DeleteScalingPlanCommand.js +3 -3
- package/dist-es/commands/DescribeScalingPlanResourcesCommand.js +3 -3
- package/dist-es/commands/DescribeScalingPlansCommand.js +3 -3
- package/dist-es/commands/GetScalingPlanResourceForecastDataCommand.js +3 -3
- package/dist-es/commands/UpdateScalingPlanCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +170 -180
- package/dist-types/protocols/Aws_json1_1.d.ts +48 -12
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -12
- package/package.json +29 -29
|
@@ -2,74 +2,74 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, 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 { AutoScalingPlansServiceException as __BaseException } from "../models/AutoScalingPlansServiceException";
|
|
4
4
|
import { ConcurrentUpdateException, InternalServiceException, InvalidNextTokenException, LimitExceededException, ObjectNotFoundException, ValidationException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateScalingPlanCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
8
8
|
"x-amz-target": "AnyScaleScalingPlannerFrontendService.CreateScalingPlan",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_CreateScalingPlanRequest(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_DeleteScalingPlanCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.1",
|
|
17
17
|
"x-amz-target": "AnyScaleScalingPlannerFrontendService.DeleteScalingPlan",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_DeleteScalingPlanRequest(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_DescribeScalingPlanResourcesCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.1",
|
|
26
26
|
"x-amz-target": "AnyScaleScalingPlannerFrontendService.DescribeScalingPlanResources",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_DescribeScalingPlanResourcesRequest(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_DescribeScalingPlansCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.1",
|
|
35
35
|
"x-amz-target": "AnyScaleScalingPlannerFrontendService.DescribeScalingPlans",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_DescribeScalingPlansRequest(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_GetScalingPlanResourceForecastDataCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.1",
|
|
44
44
|
"x-amz-target": "AnyScaleScalingPlannerFrontendService.GetScalingPlanResourceForecastData",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_GetScalingPlanResourceForecastDataRequest(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_UpdateScalingPlanCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.1",
|
|
53
53
|
"x-amz-target": "AnyScaleScalingPlannerFrontendService.UpdateScalingPlan",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_UpdateScalingPlanRequest(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const de_CreateScalingPlanCommand = async (output, context) => {
|
|
60
60
|
if (output.statusCode >= 300) {
|
|
61
|
-
return
|
|
61
|
+
return de_CreateScalingPlanCommandError(output, context);
|
|
62
62
|
}
|
|
63
63
|
const data = await parseBody(output.body, context);
|
|
64
64
|
let contents = {};
|
|
65
|
-
contents =
|
|
65
|
+
contents = de_CreateScalingPlanResponse(data, context);
|
|
66
66
|
const response = {
|
|
67
67
|
$metadata: deserializeMetadata(output),
|
|
68
68
|
...contents,
|
|
69
69
|
};
|
|
70
70
|
return Promise.resolve(response);
|
|
71
71
|
};
|
|
72
|
-
const
|
|
72
|
+
const de_CreateScalingPlanCommandError = async (output, context) => {
|
|
73
73
|
const parsedOutput = {
|
|
74
74
|
...output,
|
|
75
75
|
body: await parseErrorBody(output.body, context),
|
|
@@ -78,16 +78,16 @@ const deserializeAws_json1_1CreateScalingPlanCommandError = async (output, conte
|
|
|
78
78
|
switch (errorCode) {
|
|
79
79
|
case "ConcurrentUpdateException":
|
|
80
80
|
case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
|
|
81
|
-
throw await
|
|
81
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
82
82
|
case "InternalServiceException":
|
|
83
83
|
case "com.amazonaws.autoscalingplans#InternalServiceException":
|
|
84
|
-
throw await
|
|
84
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
85
85
|
case "LimitExceededException":
|
|
86
86
|
case "com.amazonaws.autoscalingplans#LimitExceededException":
|
|
87
|
-
throw await
|
|
87
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
88
88
|
case "ValidationException":
|
|
89
89
|
case "com.amazonaws.autoscalingplans#ValidationException":
|
|
90
|
-
throw await
|
|
90
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
91
91
|
default:
|
|
92
92
|
const parsedBody = parsedOutput.body;
|
|
93
93
|
throwDefaultError({
|
|
@@ -98,20 +98,20 @@ const deserializeAws_json1_1CreateScalingPlanCommandError = async (output, conte
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
|
-
export const
|
|
101
|
+
export const de_DeleteScalingPlanCommand = async (output, context) => {
|
|
102
102
|
if (output.statusCode >= 300) {
|
|
103
|
-
return
|
|
103
|
+
return de_DeleteScalingPlanCommandError(output, context);
|
|
104
104
|
}
|
|
105
105
|
const data = await parseBody(output.body, context);
|
|
106
106
|
let contents = {};
|
|
107
|
-
contents =
|
|
107
|
+
contents = de_DeleteScalingPlanResponse(data, context);
|
|
108
108
|
const response = {
|
|
109
109
|
$metadata: deserializeMetadata(output),
|
|
110
110
|
...contents,
|
|
111
111
|
};
|
|
112
112
|
return Promise.resolve(response);
|
|
113
113
|
};
|
|
114
|
-
const
|
|
114
|
+
const de_DeleteScalingPlanCommandError = async (output, context) => {
|
|
115
115
|
const parsedOutput = {
|
|
116
116
|
...output,
|
|
117
117
|
body: await parseErrorBody(output.body, context),
|
|
@@ -120,16 +120,16 @@ const deserializeAws_json1_1DeleteScalingPlanCommandError = async (output, conte
|
|
|
120
120
|
switch (errorCode) {
|
|
121
121
|
case "ConcurrentUpdateException":
|
|
122
122
|
case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
|
|
123
|
-
throw await
|
|
123
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
124
124
|
case "InternalServiceException":
|
|
125
125
|
case "com.amazonaws.autoscalingplans#InternalServiceException":
|
|
126
|
-
throw await
|
|
126
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
127
127
|
case "ObjectNotFoundException":
|
|
128
128
|
case "com.amazonaws.autoscalingplans#ObjectNotFoundException":
|
|
129
|
-
throw await
|
|
129
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
130
130
|
case "ValidationException":
|
|
131
131
|
case "com.amazonaws.autoscalingplans#ValidationException":
|
|
132
|
-
throw await
|
|
132
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
133
133
|
default:
|
|
134
134
|
const parsedBody = parsedOutput.body;
|
|
135
135
|
throwDefaultError({
|
|
@@ -140,20 +140,20 @@ const deserializeAws_json1_1DeleteScalingPlanCommandError = async (output, conte
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
export const
|
|
143
|
+
export const de_DescribeScalingPlanResourcesCommand = async (output, context) => {
|
|
144
144
|
if (output.statusCode >= 300) {
|
|
145
|
-
return
|
|
145
|
+
return de_DescribeScalingPlanResourcesCommandError(output, context);
|
|
146
146
|
}
|
|
147
147
|
const data = await parseBody(output.body, context);
|
|
148
148
|
let contents = {};
|
|
149
|
-
contents =
|
|
149
|
+
contents = de_DescribeScalingPlanResourcesResponse(data, context);
|
|
150
150
|
const response = {
|
|
151
151
|
$metadata: deserializeMetadata(output),
|
|
152
152
|
...contents,
|
|
153
153
|
};
|
|
154
154
|
return Promise.resolve(response);
|
|
155
155
|
};
|
|
156
|
-
const
|
|
156
|
+
const de_DescribeScalingPlanResourcesCommandError = async (output, context) => {
|
|
157
157
|
const parsedOutput = {
|
|
158
158
|
...output,
|
|
159
159
|
body: await parseErrorBody(output.body, context),
|
|
@@ -162,16 +162,16 @@ const deserializeAws_json1_1DescribeScalingPlanResourcesCommandError = async (ou
|
|
|
162
162
|
switch (errorCode) {
|
|
163
163
|
case "ConcurrentUpdateException":
|
|
164
164
|
case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
|
|
165
|
-
throw await
|
|
165
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
166
166
|
case "InternalServiceException":
|
|
167
167
|
case "com.amazonaws.autoscalingplans#InternalServiceException":
|
|
168
|
-
throw await
|
|
168
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
169
169
|
case "InvalidNextTokenException":
|
|
170
170
|
case "com.amazonaws.autoscalingplans#InvalidNextTokenException":
|
|
171
|
-
throw await
|
|
171
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
172
172
|
case "ValidationException":
|
|
173
173
|
case "com.amazonaws.autoscalingplans#ValidationException":
|
|
174
|
-
throw await
|
|
174
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
175
175
|
default:
|
|
176
176
|
const parsedBody = parsedOutput.body;
|
|
177
177
|
throwDefaultError({
|
|
@@ -182,20 +182,20 @@ const deserializeAws_json1_1DescribeScalingPlanResourcesCommandError = async (ou
|
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
export const
|
|
185
|
+
export const de_DescribeScalingPlansCommand = async (output, context) => {
|
|
186
186
|
if (output.statusCode >= 300) {
|
|
187
|
-
return
|
|
187
|
+
return de_DescribeScalingPlansCommandError(output, context);
|
|
188
188
|
}
|
|
189
189
|
const data = await parseBody(output.body, context);
|
|
190
190
|
let contents = {};
|
|
191
|
-
contents =
|
|
191
|
+
contents = de_DescribeScalingPlansResponse(data, context);
|
|
192
192
|
const response = {
|
|
193
193
|
$metadata: deserializeMetadata(output),
|
|
194
194
|
...contents,
|
|
195
195
|
};
|
|
196
196
|
return Promise.resolve(response);
|
|
197
197
|
};
|
|
198
|
-
const
|
|
198
|
+
const de_DescribeScalingPlansCommandError = async (output, context) => {
|
|
199
199
|
const parsedOutput = {
|
|
200
200
|
...output,
|
|
201
201
|
body: await parseErrorBody(output.body, context),
|
|
@@ -204,16 +204,16 @@ const deserializeAws_json1_1DescribeScalingPlansCommandError = async (output, co
|
|
|
204
204
|
switch (errorCode) {
|
|
205
205
|
case "ConcurrentUpdateException":
|
|
206
206
|
case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
|
|
207
|
-
throw await
|
|
207
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
208
208
|
case "InternalServiceException":
|
|
209
209
|
case "com.amazonaws.autoscalingplans#InternalServiceException":
|
|
210
|
-
throw await
|
|
210
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
211
211
|
case "InvalidNextTokenException":
|
|
212
212
|
case "com.amazonaws.autoscalingplans#InvalidNextTokenException":
|
|
213
|
-
throw await
|
|
213
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
214
214
|
case "ValidationException":
|
|
215
215
|
case "com.amazonaws.autoscalingplans#ValidationException":
|
|
216
|
-
throw await
|
|
216
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
217
217
|
default:
|
|
218
218
|
const parsedBody = parsedOutput.body;
|
|
219
219
|
throwDefaultError({
|
|
@@ -224,20 +224,20 @@ const deserializeAws_json1_1DescribeScalingPlansCommandError = async (output, co
|
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
|
-
export const
|
|
227
|
+
export const de_GetScalingPlanResourceForecastDataCommand = async (output, context) => {
|
|
228
228
|
if (output.statusCode >= 300) {
|
|
229
|
-
return
|
|
229
|
+
return de_GetScalingPlanResourceForecastDataCommandError(output, context);
|
|
230
230
|
}
|
|
231
231
|
const data = await parseBody(output.body, context);
|
|
232
232
|
let contents = {};
|
|
233
|
-
contents =
|
|
233
|
+
contents = de_GetScalingPlanResourceForecastDataResponse(data, context);
|
|
234
234
|
const response = {
|
|
235
235
|
$metadata: deserializeMetadata(output),
|
|
236
236
|
...contents,
|
|
237
237
|
};
|
|
238
238
|
return Promise.resolve(response);
|
|
239
239
|
};
|
|
240
|
-
const
|
|
240
|
+
const de_GetScalingPlanResourceForecastDataCommandError = async (output, context) => {
|
|
241
241
|
const parsedOutput = {
|
|
242
242
|
...output,
|
|
243
243
|
body: await parseErrorBody(output.body, context),
|
|
@@ -246,10 +246,10 @@ const deserializeAws_json1_1GetScalingPlanResourceForecastDataCommandError = asy
|
|
|
246
246
|
switch (errorCode) {
|
|
247
247
|
case "InternalServiceException":
|
|
248
248
|
case "com.amazonaws.autoscalingplans#InternalServiceException":
|
|
249
|
-
throw await
|
|
249
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
250
250
|
case "ValidationException":
|
|
251
251
|
case "com.amazonaws.autoscalingplans#ValidationException":
|
|
252
|
-
throw await
|
|
252
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
253
253
|
default:
|
|
254
254
|
const parsedBody = parsedOutput.body;
|
|
255
255
|
throwDefaultError({
|
|
@@ -260,20 +260,20 @@ const deserializeAws_json1_1GetScalingPlanResourceForecastDataCommandError = asy
|
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
262
|
};
|
|
263
|
-
export const
|
|
263
|
+
export const de_UpdateScalingPlanCommand = async (output, context) => {
|
|
264
264
|
if (output.statusCode >= 300) {
|
|
265
|
-
return
|
|
265
|
+
return de_UpdateScalingPlanCommandError(output, context);
|
|
266
266
|
}
|
|
267
267
|
const data = await parseBody(output.body, context);
|
|
268
268
|
let contents = {};
|
|
269
|
-
contents =
|
|
269
|
+
contents = de_UpdateScalingPlanResponse(data, context);
|
|
270
270
|
const response = {
|
|
271
271
|
$metadata: deserializeMetadata(output),
|
|
272
272
|
...contents,
|
|
273
273
|
};
|
|
274
274
|
return Promise.resolve(response);
|
|
275
275
|
};
|
|
276
|
-
const
|
|
276
|
+
const de_UpdateScalingPlanCommandError = async (output, context) => {
|
|
277
277
|
const parsedOutput = {
|
|
278
278
|
...output,
|
|
279
279
|
body: await parseErrorBody(output.body, context),
|
|
@@ -282,16 +282,16 @@ const deserializeAws_json1_1UpdateScalingPlanCommandError = async (output, conte
|
|
|
282
282
|
switch (errorCode) {
|
|
283
283
|
case "ConcurrentUpdateException":
|
|
284
284
|
case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
|
|
285
|
-
throw await
|
|
285
|
+
throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
|
|
286
286
|
case "InternalServiceException":
|
|
287
287
|
case "com.amazonaws.autoscalingplans#InternalServiceException":
|
|
288
|
-
throw await
|
|
288
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
289
289
|
case "ObjectNotFoundException":
|
|
290
290
|
case "com.amazonaws.autoscalingplans#ObjectNotFoundException":
|
|
291
|
-
throw await
|
|
291
|
+
throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
|
|
292
292
|
case "ValidationException":
|
|
293
293
|
case "com.amazonaws.autoscalingplans#ValidationException":
|
|
294
|
-
throw await
|
|
294
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
295
295
|
default:
|
|
296
296
|
const parsedBody = parsedOutput.body;
|
|
297
297
|
throwDefaultError({
|
|
@@ -302,109 +302,109 @@ const deserializeAws_json1_1UpdateScalingPlanCommandError = async (output, conte
|
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
|
-
const
|
|
305
|
+
const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
|
|
306
306
|
const body = parsedOutput.body;
|
|
307
|
-
const deserialized =
|
|
307
|
+
const deserialized = de_ConcurrentUpdateException(body, context);
|
|
308
308
|
const exception = new ConcurrentUpdateException({
|
|
309
309
|
$metadata: deserializeMetadata(parsedOutput),
|
|
310
310
|
...deserialized,
|
|
311
311
|
});
|
|
312
312
|
return __decorateServiceException(exception, body);
|
|
313
313
|
};
|
|
314
|
-
const
|
|
314
|
+
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
315
315
|
const body = parsedOutput.body;
|
|
316
|
-
const deserialized =
|
|
316
|
+
const deserialized = de_InternalServiceException(body, context);
|
|
317
317
|
const exception = new InternalServiceException({
|
|
318
318
|
$metadata: deserializeMetadata(parsedOutput),
|
|
319
319
|
...deserialized,
|
|
320
320
|
});
|
|
321
321
|
return __decorateServiceException(exception, body);
|
|
322
322
|
};
|
|
323
|
-
const
|
|
323
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
324
324
|
const body = parsedOutput.body;
|
|
325
|
-
const deserialized =
|
|
325
|
+
const deserialized = de_InvalidNextTokenException(body, context);
|
|
326
326
|
const exception = new InvalidNextTokenException({
|
|
327
327
|
$metadata: deserializeMetadata(parsedOutput),
|
|
328
328
|
...deserialized,
|
|
329
329
|
});
|
|
330
330
|
return __decorateServiceException(exception, body);
|
|
331
331
|
};
|
|
332
|
-
const
|
|
332
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
333
333
|
const body = parsedOutput.body;
|
|
334
|
-
const deserialized =
|
|
334
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
335
335
|
const exception = new LimitExceededException({
|
|
336
336
|
$metadata: deserializeMetadata(parsedOutput),
|
|
337
337
|
...deserialized,
|
|
338
338
|
});
|
|
339
339
|
return __decorateServiceException(exception, body);
|
|
340
340
|
};
|
|
341
|
-
const
|
|
341
|
+
const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
342
342
|
const body = parsedOutput.body;
|
|
343
|
-
const deserialized =
|
|
343
|
+
const deserialized = de_ObjectNotFoundException(body, context);
|
|
344
344
|
const exception = new ObjectNotFoundException({
|
|
345
345
|
$metadata: deserializeMetadata(parsedOutput),
|
|
346
346
|
...deserialized,
|
|
347
347
|
});
|
|
348
348
|
return __decorateServiceException(exception, body);
|
|
349
349
|
};
|
|
350
|
-
const
|
|
350
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
351
351
|
const body = parsedOutput.body;
|
|
352
|
-
const deserialized =
|
|
352
|
+
const deserialized = de_ValidationException(body, context);
|
|
353
353
|
const exception = new ValidationException({
|
|
354
354
|
$metadata: deserializeMetadata(parsedOutput),
|
|
355
355
|
...deserialized,
|
|
356
356
|
});
|
|
357
357
|
return __decorateServiceException(exception, body);
|
|
358
358
|
};
|
|
359
|
-
const
|
|
359
|
+
const se_ApplicationSource = (input, context) => {
|
|
360
360
|
return {
|
|
361
361
|
...(input.CloudFormationStackARN != null && { CloudFormationStackARN: input.CloudFormationStackARN }),
|
|
362
|
-
...(input.TagFilters != null && { TagFilters:
|
|
362
|
+
...(input.TagFilters != null && { TagFilters: se_TagFilters(input.TagFilters, context) }),
|
|
363
363
|
};
|
|
364
364
|
};
|
|
365
|
-
const
|
|
365
|
+
const se_ApplicationSources = (input, context) => {
|
|
366
366
|
return input
|
|
367
367
|
.filter((e) => e != null)
|
|
368
368
|
.map((entry) => {
|
|
369
|
-
return
|
|
369
|
+
return se_ApplicationSource(entry, context);
|
|
370
370
|
});
|
|
371
371
|
};
|
|
372
|
-
const
|
|
372
|
+
const se_CreateScalingPlanRequest = (input, context) => {
|
|
373
373
|
return {
|
|
374
374
|
...(input.ApplicationSource != null && {
|
|
375
|
-
ApplicationSource:
|
|
375
|
+
ApplicationSource: se_ApplicationSource(input.ApplicationSource, context),
|
|
376
376
|
}),
|
|
377
377
|
...(input.ScalingInstructions != null && {
|
|
378
|
-
ScalingInstructions:
|
|
378
|
+
ScalingInstructions: se_ScalingInstructions(input.ScalingInstructions, context),
|
|
379
379
|
}),
|
|
380
380
|
...(input.ScalingPlanName != null && { ScalingPlanName: input.ScalingPlanName }),
|
|
381
381
|
};
|
|
382
382
|
};
|
|
383
|
-
const
|
|
383
|
+
const se_CustomizedLoadMetricSpecification = (input, context) => {
|
|
384
384
|
return {
|
|
385
|
-
...(input.Dimensions != null && { Dimensions:
|
|
385
|
+
...(input.Dimensions != null && { Dimensions: se_MetricDimensions(input.Dimensions, context) }),
|
|
386
386
|
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
387
387
|
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
388
388
|
...(input.Statistic != null && { Statistic: input.Statistic }),
|
|
389
389
|
...(input.Unit != null && { Unit: input.Unit }),
|
|
390
390
|
};
|
|
391
391
|
};
|
|
392
|
-
const
|
|
392
|
+
const se_CustomizedScalingMetricSpecification = (input, context) => {
|
|
393
393
|
return {
|
|
394
|
-
...(input.Dimensions != null && { Dimensions:
|
|
394
|
+
...(input.Dimensions != null && { Dimensions: se_MetricDimensions(input.Dimensions, context) }),
|
|
395
395
|
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
396
396
|
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
397
397
|
...(input.Statistic != null && { Statistic: input.Statistic }),
|
|
398
398
|
...(input.Unit != null && { Unit: input.Unit }),
|
|
399
399
|
};
|
|
400
400
|
};
|
|
401
|
-
const
|
|
401
|
+
const se_DeleteScalingPlanRequest = (input, context) => {
|
|
402
402
|
return {
|
|
403
403
|
...(input.ScalingPlanName != null && { ScalingPlanName: input.ScalingPlanName }),
|
|
404
404
|
...(input.ScalingPlanVersion != null && { ScalingPlanVersion: input.ScalingPlanVersion }),
|
|
405
405
|
};
|
|
406
406
|
};
|
|
407
|
-
const
|
|
407
|
+
const se_DescribeScalingPlanResourcesRequest = (input, context) => {
|
|
408
408
|
return {
|
|
409
409
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
410
410
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
@@ -412,20 +412,18 @@ const serializeAws_json1_1DescribeScalingPlanResourcesRequest = (input, context)
|
|
|
412
412
|
...(input.ScalingPlanVersion != null && { ScalingPlanVersion: input.ScalingPlanVersion }),
|
|
413
413
|
};
|
|
414
414
|
};
|
|
415
|
-
const
|
|
415
|
+
const se_DescribeScalingPlansRequest = (input, context) => {
|
|
416
416
|
return {
|
|
417
417
|
...(input.ApplicationSources != null && {
|
|
418
|
-
ApplicationSources:
|
|
418
|
+
ApplicationSources: se_ApplicationSources(input.ApplicationSources, context),
|
|
419
419
|
}),
|
|
420
420
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
421
421
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
422
|
-
...(input.ScalingPlanNames != null && {
|
|
423
|
-
ScalingPlanNames: serializeAws_json1_1ScalingPlanNames(input.ScalingPlanNames, context),
|
|
424
|
-
}),
|
|
422
|
+
...(input.ScalingPlanNames != null && { ScalingPlanNames: se_ScalingPlanNames(input.ScalingPlanNames, context) }),
|
|
425
423
|
...(input.ScalingPlanVersion != null && { ScalingPlanVersion: input.ScalingPlanVersion }),
|
|
426
424
|
};
|
|
427
425
|
};
|
|
428
|
-
const
|
|
426
|
+
const se_GetScalingPlanResourceForecastDataRequest = (input, context) => {
|
|
429
427
|
return {
|
|
430
428
|
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
431
429
|
...(input.ForecastDataType != null && { ForecastDataType: input.ForecastDataType }),
|
|
@@ -437,26 +435,26 @@ const serializeAws_json1_1GetScalingPlanResourceForecastDataRequest = (input, co
|
|
|
437
435
|
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
438
436
|
};
|
|
439
437
|
};
|
|
440
|
-
const
|
|
438
|
+
const se_MetricDimension = (input, context) => {
|
|
441
439
|
return {
|
|
442
440
|
...(input.Name != null && { Name: input.Name }),
|
|
443
441
|
...(input.Value != null && { Value: input.Value }),
|
|
444
442
|
};
|
|
445
443
|
};
|
|
446
|
-
const
|
|
444
|
+
const se_MetricDimensions = (input, context) => {
|
|
447
445
|
return input
|
|
448
446
|
.filter((e) => e != null)
|
|
449
447
|
.map((entry) => {
|
|
450
|
-
return
|
|
448
|
+
return se_MetricDimension(entry, context);
|
|
451
449
|
});
|
|
452
450
|
};
|
|
453
|
-
const
|
|
451
|
+
const se_PredefinedLoadMetricSpecification = (input, context) => {
|
|
454
452
|
return {
|
|
455
453
|
...(input.PredefinedLoadMetricType != null && { PredefinedLoadMetricType: input.PredefinedLoadMetricType }),
|
|
456
454
|
...(input.ResourceLabel != null && { ResourceLabel: input.ResourceLabel }),
|
|
457
455
|
};
|
|
458
456
|
};
|
|
459
|
-
const
|
|
457
|
+
const se_PredefinedScalingMetricSpecification = (input, context) => {
|
|
460
458
|
return {
|
|
461
459
|
...(input.PredefinedScalingMetricType != null && {
|
|
462
460
|
PredefinedScalingMetricType: input.PredefinedScalingMetricType,
|
|
@@ -464,16 +462,16 @@ const serializeAws_json1_1PredefinedScalingMetricSpecification = (input, context
|
|
|
464
462
|
...(input.ResourceLabel != null && { ResourceLabel: input.ResourceLabel }),
|
|
465
463
|
};
|
|
466
464
|
};
|
|
467
|
-
const
|
|
465
|
+
const se_ScalingInstruction = (input, context) => {
|
|
468
466
|
return {
|
|
469
467
|
...(input.CustomizedLoadMetricSpecification != null && {
|
|
470
|
-
CustomizedLoadMetricSpecification:
|
|
468
|
+
CustomizedLoadMetricSpecification: se_CustomizedLoadMetricSpecification(input.CustomizedLoadMetricSpecification, context),
|
|
471
469
|
}),
|
|
472
470
|
...(input.DisableDynamicScaling != null && { DisableDynamicScaling: input.DisableDynamicScaling }),
|
|
473
471
|
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
474
472
|
...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
|
|
475
473
|
...(input.PredefinedLoadMetricSpecification != null && {
|
|
476
|
-
PredefinedLoadMetricSpecification:
|
|
474
|
+
PredefinedLoadMetricSpecification: se_PredefinedLoadMetricSpecification(input.PredefinedLoadMetricSpecification, context),
|
|
477
475
|
}),
|
|
478
476
|
...(input.PredictiveScalingMaxCapacityBehavior != null && {
|
|
479
477
|
PredictiveScalingMaxCapacityBehavior: input.PredictiveScalingMaxCapacityBehavior,
|
|
@@ -490,210 +488,208 @@ const serializeAws_json1_1ScalingInstruction = (input, context) => {
|
|
|
490
488
|
...(input.ScheduledActionBufferTime != null && { ScheduledActionBufferTime: input.ScheduledActionBufferTime }),
|
|
491
489
|
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
492
490
|
...(input.TargetTrackingConfigurations != null && {
|
|
493
|
-
TargetTrackingConfigurations:
|
|
491
|
+
TargetTrackingConfigurations: se_TargetTrackingConfigurations(input.TargetTrackingConfigurations, context),
|
|
494
492
|
}),
|
|
495
493
|
};
|
|
496
494
|
};
|
|
497
|
-
const
|
|
495
|
+
const se_ScalingInstructions = (input, context) => {
|
|
498
496
|
return input
|
|
499
497
|
.filter((e) => e != null)
|
|
500
498
|
.map((entry) => {
|
|
501
|
-
return
|
|
499
|
+
return se_ScalingInstruction(entry, context);
|
|
502
500
|
});
|
|
503
501
|
};
|
|
504
|
-
const
|
|
502
|
+
const se_ScalingPlanNames = (input, context) => {
|
|
505
503
|
return input
|
|
506
504
|
.filter((e) => e != null)
|
|
507
505
|
.map((entry) => {
|
|
508
506
|
return entry;
|
|
509
507
|
});
|
|
510
508
|
};
|
|
511
|
-
const
|
|
509
|
+
const se_TagFilter = (input, context) => {
|
|
512
510
|
return {
|
|
513
511
|
...(input.Key != null && { Key: input.Key }),
|
|
514
|
-
...(input.Values != null && { Values:
|
|
512
|
+
...(input.Values != null && { Values: se_TagValues(input.Values, context) }),
|
|
515
513
|
};
|
|
516
514
|
};
|
|
517
|
-
const
|
|
515
|
+
const se_TagFilters = (input, context) => {
|
|
518
516
|
return input
|
|
519
517
|
.filter((e) => e != null)
|
|
520
518
|
.map((entry) => {
|
|
521
|
-
return
|
|
519
|
+
return se_TagFilter(entry, context);
|
|
522
520
|
});
|
|
523
521
|
};
|
|
524
|
-
const
|
|
522
|
+
const se_TagValues = (input, context) => {
|
|
525
523
|
return input
|
|
526
524
|
.filter((e) => e != null)
|
|
527
525
|
.map((entry) => {
|
|
528
526
|
return entry;
|
|
529
527
|
});
|
|
530
528
|
};
|
|
531
|
-
const
|
|
529
|
+
const se_TargetTrackingConfiguration = (input, context) => {
|
|
532
530
|
return {
|
|
533
531
|
...(input.CustomizedScalingMetricSpecification != null && {
|
|
534
|
-
CustomizedScalingMetricSpecification:
|
|
532
|
+
CustomizedScalingMetricSpecification: se_CustomizedScalingMetricSpecification(input.CustomizedScalingMetricSpecification, context),
|
|
535
533
|
}),
|
|
536
534
|
...(input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn }),
|
|
537
535
|
...(input.EstimatedInstanceWarmup != null && { EstimatedInstanceWarmup: input.EstimatedInstanceWarmup }),
|
|
538
536
|
...(input.PredefinedScalingMetricSpecification != null && {
|
|
539
|
-
PredefinedScalingMetricSpecification:
|
|
537
|
+
PredefinedScalingMetricSpecification: se_PredefinedScalingMetricSpecification(input.PredefinedScalingMetricSpecification, context),
|
|
540
538
|
}),
|
|
541
539
|
...(input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }),
|
|
542
540
|
...(input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }),
|
|
543
541
|
...(input.TargetValue != null && { TargetValue: __serializeFloat(input.TargetValue) }),
|
|
544
542
|
};
|
|
545
543
|
};
|
|
546
|
-
const
|
|
544
|
+
const se_TargetTrackingConfigurations = (input, context) => {
|
|
547
545
|
return input
|
|
548
546
|
.filter((e) => e != null)
|
|
549
547
|
.map((entry) => {
|
|
550
|
-
return
|
|
548
|
+
return se_TargetTrackingConfiguration(entry, context);
|
|
551
549
|
});
|
|
552
550
|
};
|
|
553
|
-
const
|
|
551
|
+
const se_UpdateScalingPlanRequest = (input, context) => {
|
|
554
552
|
return {
|
|
555
553
|
...(input.ApplicationSource != null && {
|
|
556
|
-
ApplicationSource:
|
|
554
|
+
ApplicationSource: se_ApplicationSource(input.ApplicationSource, context),
|
|
557
555
|
}),
|
|
558
556
|
...(input.ScalingInstructions != null && {
|
|
559
|
-
ScalingInstructions:
|
|
557
|
+
ScalingInstructions: se_ScalingInstructions(input.ScalingInstructions, context),
|
|
560
558
|
}),
|
|
561
559
|
...(input.ScalingPlanName != null && { ScalingPlanName: input.ScalingPlanName }),
|
|
562
560
|
...(input.ScalingPlanVersion != null && { ScalingPlanVersion: input.ScalingPlanVersion }),
|
|
563
561
|
};
|
|
564
562
|
};
|
|
565
|
-
const
|
|
563
|
+
const de_ApplicationSource = (output, context) => {
|
|
566
564
|
return {
|
|
567
565
|
CloudFormationStackARN: __expectString(output.CloudFormationStackARN),
|
|
568
|
-
TagFilters: output.TagFilters != null ?
|
|
566
|
+
TagFilters: output.TagFilters != null ? de_TagFilters(output.TagFilters, context) : undefined,
|
|
569
567
|
};
|
|
570
568
|
};
|
|
571
|
-
const
|
|
569
|
+
const de_ConcurrentUpdateException = (output, context) => {
|
|
572
570
|
return {
|
|
573
571
|
Message: __expectString(output.Message),
|
|
574
572
|
};
|
|
575
573
|
};
|
|
576
|
-
const
|
|
574
|
+
const de_CreateScalingPlanResponse = (output, context) => {
|
|
577
575
|
return {
|
|
578
576
|
ScalingPlanVersion: __expectLong(output.ScalingPlanVersion),
|
|
579
577
|
};
|
|
580
578
|
};
|
|
581
|
-
const
|
|
579
|
+
const de_CustomizedLoadMetricSpecification = (output, context) => {
|
|
582
580
|
return {
|
|
583
|
-
Dimensions: output.Dimensions != null ?
|
|
581
|
+
Dimensions: output.Dimensions != null ? de_MetricDimensions(output.Dimensions, context) : undefined,
|
|
584
582
|
MetricName: __expectString(output.MetricName),
|
|
585
583
|
Namespace: __expectString(output.Namespace),
|
|
586
584
|
Statistic: __expectString(output.Statistic),
|
|
587
585
|
Unit: __expectString(output.Unit),
|
|
588
586
|
};
|
|
589
587
|
};
|
|
590
|
-
const
|
|
588
|
+
const de_CustomizedScalingMetricSpecification = (output, context) => {
|
|
591
589
|
return {
|
|
592
|
-
Dimensions: output.Dimensions != null ?
|
|
590
|
+
Dimensions: output.Dimensions != null ? de_MetricDimensions(output.Dimensions, context) : undefined,
|
|
593
591
|
MetricName: __expectString(output.MetricName),
|
|
594
592
|
Namespace: __expectString(output.Namespace),
|
|
595
593
|
Statistic: __expectString(output.Statistic),
|
|
596
594
|
Unit: __expectString(output.Unit),
|
|
597
595
|
};
|
|
598
596
|
};
|
|
599
|
-
const
|
|
597
|
+
const de_Datapoint = (output, context) => {
|
|
600
598
|
return {
|
|
601
599
|
Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
|
|
602
600
|
Value: __limitedParseDouble(output.Value),
|
|
603
601
|
};
|
|
604
602
|
};
|
|
605
|
-
const
|
|
603
|
+
const de_Datapoints = (output, context) => {
|
|
606
604
|
const retVal = (output || [])
|
|
607
605
|
.filter((e) => e != null)
|
|
608
606
|
.map((entry) => {
|
|
609
607
|
if (entry === null) {
|
|
610
608
|
return null;
|
|
611
609
|
}
|
|
612
|
-
return
|
|
610
|
+
return de_Datapoint(entry, context);
|
|
613
611
|
});
|
|
614
612
|
return retVal;
|
|
615
613
|
};
|
|
616
|
-
const
|
|
614
|
+
const de_DeleteScalingPlanResponse = (output, context) => {
|
|
617
615
|
return {};
|
|
618
616
|
};
|
|
619
|
-
const
|
|
617
|
+
const de_DescribeScalingPlanResourcesResponse = (output, context) => {
|
|
620
618
|
return {
|
|
621
619
|
NextToken: __expectString(output.NextToken),
|
|
622
|
-
ScalingPlanResources: output.ScalingPlanResources != null
|
|
623
|
-
? deserializeAws_json1_1ScalingPlanResources(output.ScalingPlanResources, context)
|
|
624
|
-
: undefined,
|
|
620
|
+
ScalingPlanResources: output.ScalingPlanResources != null ? de_ScalingPlanResources(output.ScalingPlanResources, context) : undefined,
|
|
625
621
|
};
|
|
626
622
|
};
|
|
627
|
-
const
|
|
623
|
+
const de_DescribeScalingPlansResponse = (output, context) => {
|
|
628
624
|
return {
|
|
629
625
|
NextToken: __expectString(output.NextToken),
|
|
630
|
-
ScalingPlans: output.ScalingPlans != null ?
|
|
626
|
+
ScalingPlans: output.ScalingPlans != null ? de_ScalingPlans(output.ScalingPlans, context) : undefined,
|
|
631
627
|
};
|
|
632
628
|
};
|
|
633
|
-
const
|
|
629
|
+
const de_GetScalingPlanResourceForecastDataResponse = (output, context) => {
|
|
634
630
|
return {
|
|
635
|
-
Datapoints: output.Datapoints != null ?
|
|
631
|
+
Datapoints: output.Datapoints != null ? de_Datapoints(output.Datapoints, context) : undefined,
|
|
636
632
|
};
|
|
637
633
|
};
|
|
638
|
-
const
|
|
634
|
+
const de_InternalServiceException = (output, context) => {
|
|
639
635
|
return {
|
|
640
636
|
Message: __expectString(output.Message),
|
|
641
637
|
};
|
|
642
638
|
};
|
|
643
|
-
const
|
|
639
|
+
const de_InvalidNextTokenException = (output, context) => {
|
|
644
640
|
return {
|
|
645
641
|
Message: __expectString(output.Message),
|
|
646
642
|
};
|
|
647
643
|
};
|
|
648
|
-
const
|
|
644
|
+
const de_LimitExceededException = (output, context) => {
|
|
649
645
|
return {
|
|
650
646
|
Message: __expectString(output.Message),
|
|
651
647
|
};
|
|
652
648
|
};
|
|
653
|
-
const
|
|
649
|
+
const de_MetricDimension = (output, context) => {
|
|
654
650
|
return {
|
|
655
651
|
Name: __expectString(output.Name),
|
|
656
652
|
Value: __expectString(output.Value),
|
|
657
653
|
};
|
|
658
654
|
};
|
|
659
|
-
const
|
|
655
|
+
const de_MetricDimensions = (output, context) => {
|
|
660
656
|
const retVal = (output || [])
|
|
661
657
|
.filter((e) => e != null)
|
|
662
658
|
.map((entry) => {
|
|
663
659
|
if (entry === null) {
|
|
664
660
|
return null;
|
|
665
661
|
}
|
|
666
|
-
return
|
|
662
|
+
return de_MetricDimension(entry, context);
|
|
667
663
|
});
|
|
668
664
|
return retVal;
|
|
669
665
|
};
|
|
670
|
-
const
|
|
666
|
+
const de_ObjectNotFoundException = (output, context) => {
|
|
671
667
|
return {
|
|
672
668
|
Message: __expectString(output.Message),
|
|
673
669
|
};
|
|
674
670
|
};
|
|
675
|
-
const
|
|
671
|
+
const de_PredefinedLoadMetricSpecification = (output, context) => {
|
|
676
672
|
return {
|
|
677
673
|
PredefinedLoadMetricType: __expectString(output.PredefinedLoadMetricType),
|
|
678
674
|
ResourceLabel: __expectString(output.ResourceLabel),
|
|
679
675
|
};
|
|
680
676
|
};
|
|
681
|
-
const
|
|
677
|
+
const de_PredefinedScalingMetricSpecification = (output, context) => {
|
|
682
678
|
return {
|
|
683
679
|
PredefinedScalingMetricType: __expectString(output.PredefinedScalingMetricType),
|
|
684
680
|
ResourceLabel: __expectString(output.ResourceLabel),
|
|
685
681
|
};
|
|
686
682
|
};
|
|
687
|
-
const
|
|
683
|
+
const de_ScalingInstruction = (output, context) => {
|
|
688
684
|
return {
|
|
689
685
|
CustomizedLoadMetricSpecification: output.CustomizedLoadMetricSpecification != null
|
|
690
|
-
?
|
|
686
|
+
? de_CustomizedLoadMetricSpecification(output.CustomizedLoadMetricSpecification, context)
|
|
691
687
|
: undefined,
|
|
692
688
|
DisableDynamicScaling: __expectBoolean(output.DisableDynamicScaling),
|
|
693
689
|
MaxCapacity: __expectInt32(output.MaxCapacity),
|
|
694
690
|
MinCapacity: __expectInt32(output.MinCapacity),
|
|
695
691
|
PredefinedLoadMetricSpecification: output.PredefinedLoadMetricSpecification != null
|
|
696
|
-
?
|
|
692
|
+
? de_PredefinedLoadMetricSpecification(output.PredefinedLoadMetricSpecification, context)
|
|
697
693
|
: undefined,
|
|
698
694
|
PredictiveScalingMaxCapacityBehavior: __expectString(output.PredictiveScalingMaxCapacityBehavior),
|
|
699
695
|
PredictiveScalingMaxCapacityBuffer: __expectInt32(output.PredictiveScalingMaxCapacityBuffer),
|
|
@@ -704,32 +700,28 @@ const deserializeAws_json1_1ScalingInstruction = (output, context) => {
|
|
|
704
700
|
ScheduledActionBufferTime: __expectInt32(output.ScheduledActionBufferTime),
|
|
705
701
|
ServiceNamespace: __expectString(output.ServiceNamespace),
|
|
706
702
|
TargetTrackingConfigurations: output.TargetTrackingConfigurations != null
|
|
707
|
-
?
|
|
703
|
+
? de_TargetTrackingConfigurations(output.TargetTrackingConfigurations, context)
|
|
708
704
|
: undefined,
|
|
709
705
|
};
|
|
710
706
|
};
|
|
711
|
-
const
|
|
707
|
+
const de_ScalingInstructions = (output, context) => {
|
|
712
708
|
const retVal = (output || [])
|
|
713
709
|
.filter((e) => e != null)
|
|
714
710
|
.map((entry) => {
|
|
715
711
|
if (entry === null) {
|
|
716
712
|
return null;
|
|
717
713
|
}
|
|
718
|
-
return
|
|
714
|
+
return de_ScalingInstruction(entry, context);
|
|
719
715
|
});
|
|
720
716
|
return retVal;
|
|
721
717
|
};
|
|
722
|
-
const
|
|
718
|
+
const de_ScalingPlan = (output, context) => {
|
|
723
719
|
return {
|
|
724
|
-
ApplicationSource: output.ApplicationSource != null
|
|
725
|
-
? deserializeAws_json1_1ApplicationSource(output.ApplicationSource, context)
|
|
726
|
-
: undefined,
|
|
720
|
+
ApplicationSource: output.ApplicationSource != null ? de_ApplicationSource(output.ApplicationSource, context) : undefined,
|
|
727
721
|
CreationTime: output.CreationTime != null
|
|
728
722
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
729
723
|
: undefined,
|
|
730
|
-
ScalingInstructions: output.ScalingInstructions != null
|
|
731
|
-
? deserializeAws_json1_1ScalingInstructions(output.ScalingInstructions, context)
|
|
732
|
-
: undefined,
|
|
724
|
+
ScalingInstructions: output.ScalingInstructions != null ? de_ScalingInstructions(output.ScalingInstructions, context) : undefined,
|
|
733
725
|
ScalingPlanName: __expectString(output.ScalingPlanName),
|
|
734
726
|
ScalingPlanVersion: __expectLong(output.ScalingPlanVersion),
|
|
735
727
|
StatusCode: __expectString(output.StatusCode),
|
|
@@ -739,80 +731,78 @@ const deserializeAws_json1_1ScalingPlan = (output, context) => {
|
|
|
739
731
|
: undefined,
|
|
740
732
|
};
|
|
741
733
|
};
|
|
742
|
-
const
|
|
734
|
+
const de_ScalingPlanResource = (output, context) => {
|
|
743
735
|
return {
|
|
744
736
|
ResourceId: __expectString(output.ResourceId),
|
|
745
737
|
ScalableDimension: __expectString(output.ScalableDimension),
|
|
746
738
|
ScalingPlanName: __expectString(output.ScalingPlanName),
|
|
747
739
|
ScalingPlanVersion: __expectLong(output.ScalingPlanVersion),
|
|
748
|
-
ScalingPolicies: output.ScalingPolicies != null
|
|
749
|
-
? deserializeAws_json1_1ScalingPolicies(output.ScalingPolicies, context)
|
|
750
|
-
: undefined,
|
|
740
|
+
ScalingPolicies: output.ScalingPolicies != null ? de_ScalingPolicies(output.ScalingPolicies, context) : undefined,
|
|
751
741
|
ScalingStatusCode: __expectString(output.ScalingStatusCode),
|
|
752
742
|
ScalingStatusMessage: __expectString(output.ScalingStatusMessage),
|
|
753
743
|
ServiceNamespace: __expectString(output.ServiceNamespace),
|
|
754
744
|
};
|
|
755
745
|
};
|
|
756
|
-
const
|
|
746
|
+
const de_ScalingPlanResources = (output, context) => {
|
|
757
747
|
const retVal = (output || [])
|
|
758
748
|
.filter((e) => e != null)
|
|
759
749
|
.map((entry) => {
|
|
760
750
|
if (entry === null) {
|
|
761
751
|
return null;
|
|
762
752
|
}
|
|
763
|
-
return
|
|
753
|
+
return de_ScalingPlanResource(entry, context);
|
|
764
754
|
});
|
|
765
755
|
return retVal;
|
|
766
756
|
};
|
|
767
|
-
const
|
|
757
|
+
const de_ScalingPlans = (output, context) => {
|
|
768
758
|
const retVal = (output || [])
|
|
769
759
|
.filter((e) => e != null)
|
|
770
760
|
.map((entry) => {
|
|
771
761
|
if (entry === null) {
|
|
772
762
|
return null;
|
|
773
763
|
}
|
|
774
|
-
return
|
|
764
|
+
return de_ScalingPlan(entry, context);
|
|
775
765
|
});
|
|
776
766
|
return retVal;
|
|
777
767
|
};
|
|
778
|
-
const
|
|
768
|
+
const de_ScalingPolicies = (output, context) => {
|
|
779
769
|
const retVal = (output || [])
|
|
780
770
|
.filter((e) => e != null)
|
|
781
771
|
.map((entry) => {
|
|
782
772
|
if (entry === null) {
|
|
783
773
|
return null;
|
|
784
774
|
}
|
|
785
|
-
return
|
|
775
|
+
return de_ScalingPolicy(entry, context);
|
|
786
776
|
});
|
|
787
777
|
return retVal;
|
|
788
778
|
};
|
|
789
|
-
const
|
|
779
|
+
const de_ScalingPolicy = (output, context) => {
|
|
790
780
|
return {
|
|
791
781
|
PolicyName: __expectString(output.PolicyName),
|
|
792
782
|
PolicyType: __expectString(output.PolicyType),
|
|
793
783
|
TargetTrackingConfiguration: output.TargetTrackingConfiguration != null
|
|
794
|
-
?
|
|
784
|
+
? de_TargetTrackingConfiguration(output.TargetTrackingConfiguration, context)
|
|
795
785
|
: undefined,
|
|
796
786
|
};
|
|
797
787
|
};
|
|
798
|
-
const
|
|
788
|
+
const de_TagFilter = (output, context) => {
|
|
799
789
|
return {
|
|
800
790
|
Key: __expectString(output.Key),
|
|
801
|
-
Values: output.Values != null ?
|
|
791
|
+
Values: output.Values != null ? de_TagValues(output.Values, context) : undefined,
|
|
802
792
|
};
|
|
803
793
|
};
|
|
804
|
-
const
|
|
794
|
+
const de_TagFilters = (output, context) => {
|
|
805
795
|
const retVal = (output || [])
|
|
806
796
|
.filter((e) => e != null)
|
|
807
797
|
.map((entry) => {
|
|
808
798
|
if (entry === null) {
|
|
809
799
|
return null;
|
|
810
800
|
}
|
|
811
|
-
return
|
|
801
|
+
return de_TagFilter(entry, context);
|
|
812
802
|
});
|
|
813
803
|
return retVal;
|
|
814
804
|
};
|
|
815
|
-
const
|
|
805
|
+
const de_TagValues = (output, context) => {
|
|
816
806
|
const retVal = (output || [])
|
|
817
807
|
.filter((e) => e != null)
|
|
818
808
|
.map((entry) => {
|
|
@@ -823,36 +813,36 @@ const deserializeAws_json1_1TagValues = (output, context) => {
|
|
|
823
813
|
});
|
|
824
814
|
return retVal;
|
|
825
815
|
};
|
|
826
|
-
const
|
|
816
|
+
const de_TargetTrackingConfiguration = (output, context) => {
|
|
827
817
|
return {
|
|
828
818
|
CustomizedScalingMetricSpecification: output.CustomizedScalingMetricSpecification != null
|
|
829
|
-
?
|
|
819
|
+
? de_CustomizedScalingMetricSpecification(output.CustomizedScalingMetricSpecification, context)
|
|
830
820
|
: undefined,
|
|
831
821
|
DisableScaleIn: __expectBoolean(output.DisableScaleIn),
|
|
832
822
|
EstimatedInstanceWarmup: __expectInt32(output.EstimatedInstanceWarmup),
|
|
833
823
|
PredefinedScalingMetricSpecification: output.PredefinedScalingMetricSpecification != null
|
|
834
|
-
?
|
|
824
|
+
? de_PredefinedScalingMetricSpecification(output.PredefinedScalingMetricSpecification, context)
|
|
835
825
|
: undefined,
|
|
836
826
|
ScaleInCooldown: __expectInt32(output.ScaleInCooldown),
|
|
837
827
|
ScaleOutCooldown: __expectInt32(output.ScaleOutCooldown),
|
|
838
828
|
TargetValue: __limitedParseDouble(output.TargetValue),
|
|
839
829
|
};
|
|
840
830
|
};
|
|
841
|
-
const
|
|
831
|
+
const de_TargetTrackingConfigurations = (output, context) => {
|
|
842
832
|
const retVal = (output || [])
|
|
843
833
|
.filter((e) => e != null)
|
|
844
834
|
.map((entry) => {
|
|
845
835
|
if (entry === null) {
|
|
846
836
|
return null;
|
|
847
837
|
}
|
|
848
|
-
return
|
|
838
|
+
return de_TargetTrackingConfiguration(entry, context);
|
|
849
839
|
});
|
|
850
840
|
return retVal;
|
|
851
841
|
};
|
|
852
|
-
const
|
|
842
|
+
const de_UpdateScalingPlanResponse = (output, context) => {
|
|
853
843
|
return {};
|
|
854
844
|
};
|
|
855
|
-
const
|
|
845
|
+
const de_ValidationException = (output, context) => {
|
|
856
846
|
return {
|
|
857
847
|
Message: __expectString(output.Message),
|
|
858
848
|
};
|