@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.
@@ -1,85 +1,85 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_json1_1UpdateScalingPlanCommand = exports.deserializeAws_json1_1GetScalingPlanResourceForecastDataCommand = exports.deserializeAws_json1_1DescribeScalingPlansCommand = exports.deserializeAws_json1_1DescribeScalingPlanResourcesCommand = exports.deserializeAws_json1_1DeleteScalingPlanCommand = exports.deserializeAws_json1_1CreateScalingPlanCommand = exports.serializeAws_json1_1UpdateScalingPlanCommand = exports.serializeAws_json1_1GetScalingPlanResourceForecastDataCommand = exports.serializeAws_json1_1DescribeScalingPlansCommand = exports.serializeAws_json1_1DescribeScalingPlanResourcesCommand = exports.serializeAws_json1_1DeleteScalingPlanCommand = exports.serializeAws_json1_1CreateScalingPlanCommand = void 0;
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 serializeAws_json1_1CreateScalingPlanCommand = async (input, context) => {
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(serializeAws_json1_1CreateScalingPlanRequest(input, context));
14
+ body = JSON.stringify(se_CreateScalingPlanRequest(input, context));
15
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
16
  };
17
- exports.serializeAws_json1_1CreateScalingPlanCommand = serializeAws_json1_1CreateScalingPlanCommand;
18
- const serializeAws_json1_1DeleteScalingPlanCommand = async (input, context) => {
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(serializeAws_json1_1DeleteScalingPlanRequest(input, context));
24
+ body = JSON.stringify(se_DeleteScalingPlanRequest(input, context));
25
25
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
26
26
  };
27
- exports.serializeAws_json1_1DeleteScalingPlanCommand = serializeAws_json1_1DeleteScalingPlanCommand;
28
- const serializeAws_json1_1DescribeScalingPlanResourcesCommand = async (input, context) => {
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(serializeAws_json1_1DescribeScalingPlanResourcesRequest(input, context));
34
+ body = JSON.stringify(se_DescribeScalingPlanResourcesRequest(input, context));
35
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
36
  };
37
- exports.serializeAws_json1_1DescribeScalingPlanResourcesCommand = serializeAws_json1_1DescribeScalingPlanResourcesCommand;
38
- const serializeAws_json1_1DescribeScalingPlansCommand = async (input, context) => {
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(serializeAws_json1_1DescribeScalingPlansRequest(input, context));
44
+ body = JSON.stringify(se_DescribeScalingPlansRequest(input, context));
45
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
46
  };
47
- exports.serializeAws_json1_1DescribeScalingPlansCommand = serializeAws_json1_1DescribeScalingPlansCommand;
48
- const serializeAws_json1_1GetScalingPlanResourceForecastDataCommand = async (input, context) => {
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(serializeAws_json1_1GetScalingPlanResourceForecastDataRequest(input, context));
54
+ body = JSON.stringify(se_GetScalingPlanResourceForecastDataRequest(input, context));
55
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
56
  };
57
- exports.serializeAws_json1_1GetScalingPlanResourceForecastDataCommand = serializeAws_json1_1GetScalingPlanResourceForecastDataCommand;
58
- const serializeAws_json1_1UpdateScalingPlanCommand = async (input, context) => {
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(serializeAws_json1_1UpdateScalingPlanRequest(input, context));
64
+ body = JSON.stringify(se_UpdateScalingPlanRequest(input, context));
65
65
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
66
  };
67
- exports.serializeAws_json1_1UpdateScalingPlanCommand = serializeAws_json1_1UpdateScalingPlanCommand;
68
- const deserializeAws_json1_1CreateScalingPlanCommand = async (output, context) => {
67
+ exports.se_UpdateScalingPlanCommand = se_UpdateScalingPlanCommand;
68
+ const de_CreateScalingPlanCommand = async (output, context) => {
69
69
  if (output.statusCode >= 300) {
70
- return deserializeAws_json1_1CreateScalingPlanCommandError(output, context);
70
+ return de_CreateScalingPlanCommandError(output, context);
71
71
  }
72
72
  const data = await parseBody(output.body, context);
73
73
  let contents = {};
74
- contents = deserializeAws_json1_1CreateScalingPlanResponse(data, context);
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.deserializeAws_json1_1CreateScalingPlanCommand = deserializeAws_json1_1CreateScalingPlanCommand;
82
- const deserializeAws_json1_1CreateScalingPlanCommandError = async (output, context) => {
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 deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context);
91
+ throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
92
92
  case "InternalServiceException":
93
93
  case "com.amazonaws.autoscalingplans#InternalServiceException":
94
- throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
94
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
95
95
  case "LimitExceededException":
96
96
  case "com.amazonaws.autoscalingplans#LimitExceededException":
97
- throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
97
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
98
98
  case "ValidationException":
99
99
  case "com.amazonaws.autoscalingplans#ValidationException":
100
- throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1DeleteScalingPlanCommand = async (output, context) => {
111
+ const de_DeleteScalingPlanCommand = async (output, context) => {
112
112
  if (output.statusCode >= 300) {
113
- return deserializeAws_json1_1DeleteScalingPlanCommandError(output, context);
113
+ return de_DeleteScalingPlanCommandError(output, context);
114
114
  }
115
115
  const data = await parseBody(output.body, context);
116
116
  let contents = {};
117
- contents = deserializeAws_json1_1DeleteScalingPlanResponse(data, context);
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.deserializeAws_json1_1DeleteScalingPlanCommand = deserializeAws_json1_1DeleteScalingPlanCommand;
125
- const deserializeAws_json1_1DeleteScalingPlanCommandError = async (output, context) => {
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 deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context);
134
+ throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
135
135
  case "InternalServiceException":
136
136
  case "com.amazonaws.autoscalingplans#InternalServiceException":
137
- throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
137
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
138
138
  case "ObjectNotFoundException":
139
139
  case "com.amazonaws.autoscalingplans#ObjectNotFoundException":
140
- throw await deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context);
140
+ throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
141
141
  case "ValidationException":
142
142
  case "com.amazonaws.autoscalingplans#ValidationException":
143
- throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1DescribeScalingPlanResourcesCommand = async (output, context) => {
154
+ const de_DescribeScalingPlanResourcesCommand = async (output, context) => {
155
155
  if (output.statusCode >= 300) {
156
- return deserializeAws_json1_1DescribeScalingPlanResourcesCommandError(output, context);
156
+ return de_DescribeScalingPlanResourcesCommandError(output, context);
157
157
  }
158
158
  const data = await parseBody(output.body, context);
159
159
  let contents = {};
160
- contents = deserializeAws_json1_1DescribeScalingPlanResourcesResponse(data, context);
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.deserializeAws_json1_1DescribeScalingPlanResourcesCommand = deserializeAws_json1_1DescribeScalingPlanResourcesCommand;
168
- const deserializeAws_json1_1DescribeScalingPlanResourcesCommandError = async (output, context) => {
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 deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context);
177
+ throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
178
178
  case "InternalServiceException":
179
179
  case "com.amazonaws.autoscalingplans#InternalServiceException":
180
- throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
180
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
181
181
  case "InvalidNextTokenException":
182
182
  case "com.amazonaws.autoscalingplans#InvalidNextTokenException":
183
- throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
183
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
184
184
  case "ValidationException":
185
185
  case "com.amazonaws.autoscalingplans#ValidationException":
186
- throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1DescribeScalingPlansCommand = async (output, context) => {
197
+ const de_DescribeScalingPlansCommand = async (output, context) => {
198
198
  if (output.statusCode >= 300) {
199
- return deserializeAws_json1_1DescribeScalingPlansCommandError(output, context);
199
+ return de_DescribeScalingPlansCommandError(output, context);
200
200
  }
201
201
  const data = await parseBody(output.body, context);
202
202
  let contents = {};
203
- contents = deserializeAws_json1_1DescribeScalingPlansResponse(data, context);
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.deserializeAws_json1_1DescribeScalingPlansCommand = deserializeAws_json1_1DescribeScalingPlansCommand;
211
- const deserializeAws_json1_1DescribeScalingPlansCommandError = async (output, context) => {
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 deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context);
220
+ throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
221
221
  case "InternalServiceException":
222
222
  case "com.amazonaws.autoscalingplans#InternalServiceException":
223
- throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
223
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
224
224
  case "InvalidNextTokenException":
225
225
  case "com.amazonaws.autoscalingplans#InvalidNextTokenException":
226
- throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
226
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
227
227
  case "ValidationException":
228
228
  case "com.amazonaws.autoscalingplans#ValidationException":
229
- throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1GetScalingPlanResourceForecastDataCommand = async (output, context) => {
240
+ const de_GetScalingPlanResourceForecastDataCommand = async (output, context) => {
241
241
  if (output.statusCode >= 300) {
242
- return deserializeAws_json1_1GetScalingPlanResourceForecastDataCommandError(output, context);
242
+ return de_GetScalingPlanResourceForecastDataCommandError(output, context);
243
243
  }
244
244
  const data = await parseBody(output.body, context);
245
245
  let contents = {};
246
- contents = deserializeAws_json1_1GetScalingPlanResourceForecastDataResponse(data, context);
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.deserializeAws_json1_1GetScalingPlanResourceForecastDataCommand = deserializeAws_json1_1GetScalingPlanResourceForecastDataCommand;
254
- const deserializeAws_json1_1GetScalingPlanResourceForecastDataCommandError = async (output, context) => {
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 deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
263
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
264
264
  case "ValidationException":
265
265
  case "com.amazonaws.autoscalingplans#ValidationException":
266
- throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1UpdateScalingPlanCommand = async (output, context) => {
277
+ const de_UpdateScalingPlanCommand = async (output, context) => {
278
278
  if (output.statusCode >= 300) {
279
- return deserializeAws_json1_1UpdateScalingPlanCommandError(output, context);
279
+ return de_UpdateScalingPlanCommandError(output, context);
280
280
  }
281
281
  const data = await parseBody(output.body, context);
282
282
  let contents = {};
283
- contents = deserializeAws_json1_1UpdateScalingPlanResponse(data, context);
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.deserializeAws_json1_1UpdateScalingPlanCommand = deserializeAws_json1_1UpdateScalingPlanCommand;
291
- const deserializeAws_json1_1UpdateScalingPlanCommandError = async (output, context) => {
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 deserializeAws_json1_1ConcurrentUpdateExceptionResponse(parsedOutput, context);
300
+ throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
301
301
  case "InternalServiceException":
302
302
  case "com.amazonaws.autoscalingplans#InternalServiceException":
303
- throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
303
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
304
304
  case "ObjectNotFoundException":
305
305
  case "com.amazonaws.autoscalingplans#ObjectNotFoundException":
306
- throw await deserializeAws_json1_1ObjectNotFoundExceptionResponse(parsedOutput, context);
306
+ throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
307
307
  case "ValidationException":
308
308
  case "com.amazonaws.autoscalingplans#ValidationException":
309
- throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1ConcurrentUpdateExceptionResponse = async (parsedOutput, context) => {
320
+ const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
321
321
  const body = parsedOutput.body;
322
- const deserialized = deserializeAws_json1_1ConcurrentUpdateException(body, context);
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 deserializeAws_json1_1InternalServiceExceptionResponse = async (parsedOutput, context) => {
329
+ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
330
330
  const body = parsedOutput.body;
331
- const deserialized = deserializeAws_json1_1InternalServiceException(body, context);
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 deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
338
+ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
339
339
  const body = parsedOutput.body;
340
- const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
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 deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
347
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
348
348
  const body = parsedOutput.body;
349
- const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
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 deserializeAws_json1_1ObjectNotFoundExceptionResponse = async (parsedOutput, context) => {
356
+ const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
357
357
  const body = parsedOutput.body;
358
- const deserialized = deserializeAws_json1_1ObjectNotFoundException(body, context);
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 deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
365
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
366
366
  const body = parsedOutput.body;
367
- const deserialized = deserializeAws_json1_1ValidationException(body, context);
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 serializeAws_json1_1ApplicationSource = (input, context) => {
374
+ const se_ApplicationSource = (input, context) => {
375
375
  return {
376
376
  ...(input.CloudFormationStackARN != null && { CloudFormationStackARN: input.CloudFormationStackARN }),
377
- ...(input.TagFilters != null && { TagFilters: serializeAws_json1_1TagFilters(input.TagFilters, context) }),
377
+ ...(input.TagFilters != null && { TagFilters: se_TagFilters(input.TagFilters, context) }),
378
378
  };
379
379
  };
380
- const serializeAws_json1_1ApplicationSources = (input, context) => {
380
+ const se_ApplicationSources = (input, context) => {
381
381
  return input
382
382
  .filter((e) => e != null)
383
383
  .map((entry) => {
384
- return serializeAws_json1_1ApplicationSource(entry, context);
384
+ return se_ApplicationSource(entry, context);
385
385
  });
386
386
  };
387
- const serializeAws_json1_1CreateScalingPlanRequest = (input, context) => {
387
+ const se_CreateScalingPlanRequest = (input, context) => {
388
388
  return {
389
389
  ...(input.ApplicationSource != null && {
390
- ApplicationSource: serializeAws_json1_1ApplicationSource(input.ApplicationSource, context),
390
+ ApplicationSource: se_ApplicationSource(input.ApplicationSource, context),
391
391
  }),
392
392
  ...(input.ScalingInstructions != null && {
393
- ScalingInstructions: serializeAws_json1_1ScalingInstructions(input.ScalingInstructions, context),
393
+ ScalingInstructions: se_ScalingInstructions(input.ScalingInstructions, context),
394
394
  }),
395
395
  ...(input.ScalingPlanName != null && { ScalingPlanName: input.ScalingPlanName }),
396
396
  };
397
397
  };
398
- const serializeAws_json1_1CustomizedLoadMetricSpecification = (input, context) => {
398
+ const se_CustomizedLoadMetricSpecification = (input, context) => {
399
399
  return {
400
- ...(input.Dimensions != null && { Dimensions: serializeAws_json1_1MetricDimensions(input.Dimensions, context) }),
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 serializeAws_json1_1CustomizedScalingMetricSpecification = (input, context) => {
407
+ const se_CustomizedScalingMetricSpecification = (input, context) => {
408
408
  return {
409
- ...(input.Dimensions != null && { Dimensions: serializeAws_json1_1MetricDimensions(input.Dimensions, context) }),
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 serializeAws_json1_1DeleteScalingPlanRequest = (input, context) => {
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 serializeAws_json1_1DescribeScalingPlanResourcesRequest = (input, context) => {
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 serializeAws_json1_1DescribeScalingPlansRequest = (input, context) => {
430
+ const se_DescribeScalingPlansRequest = (input, context) => {
431
431
  return {
432
432
  ...(input.ApplicationSources != null && {
433
- ApplicationSources: serializeAws_json1_1ApplicationSources(input.ApplicationSources, context),
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 serializeAws_json1_1GetScalingPlanResourceForecastDataRequest = (input, context) => {
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 serializeAws_json1_1MetricDimension = (input, context) => {
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 serializeAws_json1_1MetricDimensions = (input, context) => {
459
+ const se_MetricDimensions = (input, context) => {
462
460
  return input
463
461
  .filter((e) => e != null)
464
462
  .map((entry) => {
465
- return serializeAws_json1_1MetricDimension(entry, context);
463
+ return se_MetricDimension(entry, context);
466
464
  });
467
465
  };
468
- const serializeAws_json1_1PredefinedLoadMetricSpecification = (input, context) => {
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 serializeAws_json1_1PredefinedScalingMetricSpecification = (input, context) => {
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 serializeAws_json1_1ScalingInstruction = (input, context) => {
480
+ const se_ScalingInstruction = (input, context) => {
483
481
  return {
484
482
  ...(input.CustomizedLoadMetricSpecification != null && {
485
- CustomizedLoadMetricSpecification: serializeAws_json1_1CustomizedLoadMetricSpecification(input.CustomizedLoadMetricSpecification, context),
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: serializeAws_json1_1PredefinedLoadMetricSpecification(input.PredefinedLoadMetricSpecification, context),
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: serializeAws_json1_1TargetTrackingConfigurations(input.TargetTrackingConfigurations, context),
506
+ TargetTrackingConfigurations: se_TargetTrackingConfigurations(input.TargetTrackingConfigurations, context),
509
507
  }),
510
508
  };
511
509
  };
512
- const serializeAws_json1_1ScalingInstructions = (input, context) => {
510
+ const se_ScalingInstructions = (input, context) => {
513
511
  return input
514
512
  .filter((e) => e != null)
515
513
  .map((entry) => {
516
- return serializeAws_json1_1ScalingInstruction(entry, context);
514
+ return se_ScalingInstruction(entry, context);
517
515
  });
518
516
  };
519
- const serializeAws_json1_1ScalingPlanNames = (input, context) => {
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 serializeAws_json1_1TagFilter = (input, context) => {
524
+ const se_TagFilter = (input, context) => {
527
525
  return {
528
526
  ...(input.Key != null && { Key: input.Key }),
529
- ...(input.Values != null && { Values: serializeAws_json1_1TagValues(input.Values, context) }),
527
+ ...(input.Values != null && { Values: se_TagValues(input.Values, context) }),
530
528
  };
531
529
  };
532
- const serializeAws_json1_1TagFilters = (input, context) => {
530
+ const se_TagFilters = (input, context) => {
533
531
  return input
534
532
  .filter((e) => e != null)
535
533
  .map((entry) => {
536
- return serializeAws_json1_1TagFilter(entry, context);
534
+ return se_TagFilter(entry, context);
537
535
  });
538
536
  };
539
- const serializeAws_json1_1TagValues = (input, context) => {
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 serializeAws_json1_1TargetTrackingConfiguration = (input, context) => {
544
+ const se_TargetTrackingConfiguration = (input, context) => {
547
545
  return {
548
546
  ...(input.CustomizedScalingMetricSpecification != null && {
549
- CustomizedScalingMetricSpecification: serializeAws_json1_1CustomizedScalingMetricSpecification(input.CustomizedScalingMetricSpecification, context),
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: serializeAws_json1_1PredefinedScalingMetricSpecification(input.PredefinedScalingMetricSpecification, context),
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 serializeAws_json1_1TargetTrackingConfigurations = (input, context) => {
559
+ const se_TargetTrackingConfigurations = (input, context) => {
562
560
  return input
563
561
  .filter((e) => e != null)
564
562
  .map((entry) => {
565
- return serializeAws_json1_1TargetTrackingConfiguration(entry, context);
563
+ return se_TargetTrackingConfiguration(entry, context);
566
564
  });
567
565
  };
568
- const serializeAws_json1_1UpdateScalingPlanRequest = (input, context) => {
566
+ const se_UpdateScalingPlanRequest = (input, context) => {
569
567
  return {
570
568
  ...(input.ApplicationSource != null && {
571
- ApplicationSource: serializeAws_json1_1ApplicationSource(input.ApplicationSource, context),
569
+ ApplicationSource: se_ApplicationSource(input.ApplicationSource, context),
572
570
  }),
573
571
  ...(input.ScalingInstructions != null && {
574
- ScalingInstructions: serializeAws_json1_1ScalingInstructions(input.ScalingInstructions, context),
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 deserializeAws_json1_1ApplicationSource = (output, context) => {
578
+ const de_ApplicationSource = (output, context) => {
581
579
  return {
582
580
  CloudFormationStackARN: (0, smithy_client_1.expectString)(output.CloudFormationStackARN),
583
- TagFilters: output.TagFilters != null ? deserializeAws_json1_1TagFilters(output.TagFilters, context) : undefined,
581
+ TagFilters: output.TagFilters != null ? de_TagFilters(output.TagFilters, context) : undefined,
584
582
  };
585
583
  };
586
- const deserializeAws_json1_1ConcurrentUpdateException = (output, context) => {
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 deserializeAws_json1_1CreateScalingPlanResponse = (output, context) => {
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 deserializeAws_json1_1CustomizedLoadMetricSpecification = (output, context) => {
594
+ const de_CustomizedLoadMetricSpecification = (output, context) => {
597
595
  return {
598
- Dimensions: output.Dimensions != null ? deserializeAws_json1_1MetricDimensions(output.Dimensions, context) : undefined,
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 deserializeAws_json1_1CustomizedScalingMetricSpecification = (output, context) => {
603
+ const de_CustomizedScalingMetricSpecification = (output, context) => {
606
604
  return {
607
- Dimensions: output.Dimensions != null ? deserializeAws_json1_1MetricDimensions(output.Dimensions, context) : undefined,
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 deserializeAws_json1_1Datapoint = (output, context) => {
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 deserializeAws_json1_1Datapoints = (output, context) => {
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 deserializeAws_json1_1Datapoint(entry, context);
625
+ return de_Datapoint(entry, context);
628
626
  });
629
627
  return retVal;
630
628
  };
631
- const deserializeAws_json1_1DeleteScalingPlanResponse = (output, context) => {
629
+ const de_DeleteScalingPlanResponse = (output, context) => {
632
630
  return {};
633
631
  };
634
- const deserializeAws_json1_1DescribeScalingPlanResourcesResponse = (output, context) => {
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 deserializeAws_json1_1DescribeScalingPlansResponse = (output, context) => {
638
+ const de_DescribeScalingPlansResponse = (output, context) => {
643
639
  return {
644
640
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
645
- ScalingPlans: output.ScalingPlans != null ? deserializeAws_json1_1ScalingPlans(output.ScalingPlans, context) : undefined,
641
+ ScalingPlans: output.ScalingPlans != null ? de_ScalingPlans(output.ScalingPlans, context) : undefined,
646
642
  };
647
643
  };
648
- const deserializeAws_json1_1GetScalingPlanResourceForecastDataResponse = (output, context) => {
644
+ const de_GetScalingPlanResourceForecastDataResponse = (output, context) => {
649
645
  return {
650
- Datapoints: output.Datapoints != null ? deserializeAws_json1_1Datapoints(output.Datapoints, context) : undefined,
646
+ Datapoints: output.Datapoints != null ? de_Datapoints(output.Datapoints, context) : undefined,
651
647
  };
652
648
  };
653
- const deserializeAws_json1_1InternalServiceException = (output, context) => {
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 deserializeAws_json1_1InvalidNextTokenException = (output, context) => {
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 deserializeAws_json1_1LimitExceededException = (output, context) => {
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 deserializeAws_json1_1MetricDimension = (output, context) => {
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 deserializeAws_json1_1MetricDimensions = (output, context) => {
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 deserializeAws_json1_1MetricDimension(entry, context);
677
+ return de_MetricDimension(entry, context);
682
678
  });
683
679
  return retVal;
684
680
  };
685
- const deserializeAws_json1_1ObjectNotFoundException = (output, context) => {
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 deserializeAws_json1_1PredefinedLoadMetricSpecification = (output, context) => {
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 deserializeAws_json1_1PredefinedScalingMetricSpecification = (output, context) => {
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 deserializeAws_json1_1ScalingInstruction = (output, context) => {
698
+ const de_ScalingInstruction = (output, context) => {
703
699
  return {
704
700
  CustomizedLoadMetricSpecification: output.CustomizedLoadMetricSpecification != null
705
- ? deserializeAws_json1_1CustomizedLoadMetricSpecification(output.CustomizedLoadMetricSpecification, context)
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
- ? deserializeAws_json1_1PredefinedLoadMetricSpecification(output.PredefinedLoadMetricSpecification, context)
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
- ? deserializeAws_json1_1TargetTrackingConfigurations(output.TargetTrackingConfigurations, context)
718
+ ? de_TargetTrackingConfigurations(output.TargetTrackingConfigurations, context)
723
719
  : undefined,
724
720
  };
725
721
  };
726
- const deserializeAws_json1_1ScalingInstructions = (output, context) => {
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 deserializeAws_json1_1ScalingInstruction(entry, context);
729
+ return de_ScalingInstruction(entry, context);
734
730
  });
735
731
  return retVal;
736
732
  };
737
- const deserializeAws_json1_1ScalingPlan = (output, context) => {
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 deserializeAws_json1_1ScalingPlanResource = (output, context) => {
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 deserializeAws_json1_1ScalingPlanResources = (output, context) => {
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 deserializeAws_json1_1ScalingPlanResource(entry, context);
768
+ return de_ScalingPlanResource(entry, context);
779
769
  });
780
770
  return retVal;
781
771
  };
782
- const deserializeAws_json1_1ScalingPlans = (output, context) => {
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 deserializeAws_json1_1ScalingPlan(entry, context);
779
+ return de_ScalingPlan(entry, context);
790
780
  });
791
781
  return retVal;
792
782
  };
793
- const deserializeAws_json1_1ScalingPolicies = (output, context) => {
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 deserializeAws_json1_1ScalingPolicy(entry, context);
790
+ return de_ScalingPolicy(entry, context);
801
791
  });
802
792
  return retVal;
803
793
  };
804
- const deserializeAws_json1_1ScalingPolicy = (output, context) => {
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
- ? deserializeAws_json1_1TargetTrackingConfiguration(output.TargetTrackingConfiguration, context)
799
+ ? de_TargetTrackingConfiguration(output.TargetTrackingConfiguration, context)
810
800
  : undefined,
811
801
  };
812
802
  };
813
- const deserializeAws_json1_1TagFilter = (output, context) => {
803
+ const de_TagFilter = (output, context) => {
814
804
  return {
815
805
  Key: (0, smithy_client_1.expectString)(output.Key),
816
- Values: output.Values != null ? deserializeAws_json1_1TagValues(output.Values, context) : undefined,
806
+ Values: output.Values != null ? de_TagValues(output.Values, context) : undefined,
817
807
  };
818
808
  };
819
- const deserializeAws_json1_1TagFilters = (output, context) => {
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 deserializeAws_json1_1TagFilter(entry, context);
816
+ return de_TagFilter(entry, context);
827
817
  });
828
818
  return retVal;
829
819
  };
830
- const deserializeAws_json1_1TagValues = (output, context) => {
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 deserializeAws_json1_1TargetTrackingConfiguration = (output, context) => {
831
+ const de_TargetTrackingConfiguration = (output, context) => {
842
832
  return {
843
833
  CustomizedScalingMetricSpecification: output.CustomizedScalingMetricSpecification != null
844
- ? deserializeAws_json1_1CustomizedScalingMetricSpecification(output.CustomizedScalingMetricSpecification, context)
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
- ? deserializeAws_json1_1PredefinedScalingMetricSpecification(output.PredefinedScalingMetricSpecification, context)
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 deserializeAws_json1_1TargetTrackingConfigurations = (output, context) => {
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 deserializeAws_json1_1TargetTrackingConfiguration(entry, context);
853
+ return de_TargetTrackingConfiguration(entry, context);
864
854
  });
865
855
  return retVal;
866
856
  };
867
- const deserializeAws_json1_1UpdateScalingPlanResponse = (output, context) => {
857
+ const de_UpdateScalingPlanResponse = (output, context) => {
868
858
  return {};
869
859
  };
870
- const deserializeAws_json1_1ValidationException = (output, context) => {
860
+ const de_ValidationException = (output, context) => {
871
861
  return {
872
862
  Message: (0, smithy_client_1.expectString)(output.Message),
873
863
  };