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