@aws-sdk/client-savingsplans 3.306.0 → 3.310.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,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1DescribeSavingsPlansOfferingsCommand = exports.deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = exports.deserializeAws_restJson1DescribeSavingsPlansCommand = exports.deserializeAws_restJson1DescribeSavingsPlanRatesCommand = exports.deserializeAws_restJson1DeleteQueuedSavingsPlanCommand = exports.deserializeAws_restJson1CreateSavingsPlanCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1DescribeSavingsPlansOfferingsCommand = exports.serializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = exports.serializeAws_restJson1DescribeSavingsPlansCommand = exports.serializeAws_restJson1DescribeSavingsPlanRatesCommand = exports.serializeAws_restJson1DeleteQueuedSavingsPlanCommand = exports.serializeAws_restJson1CreateSavingsPlanCommand = void 0;
3
+ exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_DescribeSavingsPlansOfferingsCommand = exports.de_DescribeSavingsPlansOfferingRatesCommand = exports.de_DescribeSavingsPlansCommand = exports.de_DescribeSavingsPlanRatesCommand = exports.de_DeleteQueuedSavingsPlanCommand = exports.de_CreateSavingsPlanCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_DescribeSavingsPlansOfferingsCommand = exports.se_DescribeSavingsPlansOfferingRatesCommand = exports.se_DescribeSavingsPlansCommand = exports.se_DescribeSavingsPlanRatesCommand = exports.se_DeleteQueuedSavingsPlanCommand = exports.se_CreateSavingsPlanCommand = 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 uuid_1 = require("uuid");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const SavingsplansServiceException_1 = require("../models/SavingsplansServiceException");
9
- const serializeAws_restJson1CreateSavingsPlanCommand = async (input, context) => {
9
+ const se_CreateSavingsPlanCommand = async (input, context) => {
10
10
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
11
  const headers = {
12
12
  "content-type": "application/json",
@@ -18,7 +18,7 @@ const serializeAws_restJson1CreateSavingsPlanCommand = async (input, context) =>
18
18
  ...(input.commitment != null && { commitment: input.commitment }),
19
19
  ...(input.purchaseTime != null && { purchaseTime: Math.round(input.purchaseTime.getTime() / 1000) }),
20
20
  ...(input.savingsPlanOfferingId != null && { savingsPlanOfferingId: input.savingsPlanOfferingId }),
21
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
21
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
22
22
  ...(input.upfrontPaymentAmount != null && { upfrontPaymentAmount: input.upfrontPaymentAmount }),
23
23
  });
24
24
  return new protocol_http_1.HttpRequest({
@@ -31,8 +31,8 @@ const serializeAws_restJson1CreateSavingsPlanCommand = async (input, context) =>
31
31
  body,
32
32
  });
33
33
  };
34
- exports.serializeAws_restJson1CreateSavingsPlanCommand = serializeAws_restJson1CreateSavingsPlanCommand;
35
- const serializeAws_restJson1DeleteQueuedSavingsPlanCommand = async (input, context) => {
34
+ exports.se_CreateSavingsPlanCommand = se_CreateSavingsPlanCommand;
35
+ const se_DeleteQueuedSavingsPlanCommand = async (input, context) => {
36
36
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
37
37
  const headers = {
38
38
  "content-type": "application/json",
@@ -52,8 +52,8 @@ const serializeAws_restJson1DeleteQueuedSavingsPlanCommand = async (input, conte
52
52
  body,
53
53
  });
54
54
  };
55
- exports.serializeAws_restJson1DeleteQueuedSavingsPlanCommand = serializeAws_restJson1DeleteQueuedSavingsPlanCommand;
56
- const serializeAws_restJson1DescribeSavingsPlanRatesCommand = async (input, context) => {
55
+ exports.se_DeleteQueuedSavingsPlanCommand = se_DeleteQueuedSavingsPlanCommand;
56
+ const se_DescribeSavingsPlanRatesCommand = async (input, context) => {
57
57
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
58
58
  const headers = {
59
59
  "content-type": "application/json",
@@ -61,7 +61,7 @@ const serializeAws_restJson1DescribeSavingsPlanRatesCommand = async (input, cont
61
61
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSavingsPlanRates";
62
62
  let body;
63
63
  body = JSON.stringify({
64
- ...(input.filters != null && { filters: serializeAws_restJson1SavingsPlanRateFilterList(input.filters, context) }),
64
+ ...(input.filters != null && { filters: se_SavingsPlanRateFilterList(input.filters, context) }),
65
65
  ...(input.maxResults != null && { maxResults: input.maxResults }),
66
66
  ...(input.nextToken != null && { nextToken: input.nextToken }),
67
67
  ...(input.savingsPlanId != null && { savingsPlanId: input.savingsPlanId }),
@@ -76,8 +76,8 @@ const serializeAws_restJson1DescribeSavingsPlanRatesCommand = async (input, cont
76
76
  body,
77
77
  });
78
78
  };
79
- exports.serializeAws_restJson1DescribeSavingsPlanRatesCommand = serializeAws_restJson1DescribeSavingsPlanRatesCommand;
80
- const serializeAws_restJson1DescribeSavingsPlansCommand = async (input, context) => {
79
+ exports.se_DescribeSavingsPlanRatesCommand = se_DescribeSavingsPlanRatesCommand;
80
+ const se_DescribeSavingsPlansCommand = async (input, context) => {
81
81
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
82
82
  const headers = {
83
83
  "content-type": "application/json",
@@ -85,16 +85,12 @@ const serializeAws_restJson1DescribeSavingsPlansCommand = async (input, context)
85
85
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSavingsPlans";
86
86
  let body;
87
87
  body = JSON.stringify({
88
- ...(input.filters != null && { filters: serializeAws_restJson1SavingsPlanFilterList(input.filters, context) }),
88
+ ...(input.filters != null && { filters: se_SavingsPlanFilterList(input.filters, context) }),
89
89
  ...(input.maxResults != null && { maxResults: input.maxResults }),
90
90
  ...(input.nextToken != null && { nextToken: input.nextToken }),
91
- ...(input.savingsPlanArns != null && {
92
- savingsPlanArns: serializeAws_restJson1SavingsPlanArnList(input.savingsPlanArns, context),
93
- }),
94
- ...(input.savingsPlanIds != null && {
95
- savingsPlanIds: serializeAws_restJson1SavingsPlanIdList(input.savingsPlanIds, context),
96
- }),
97
- ...(input.states != null && { states: serializeAws_restJson1SavingsPlanStateList(input.states, context) }),
91
+ ...(input.savingsPlanArns != null && { savingsPlanArns: se_SavingsPlanArnList(input.savingsPlanArns, context) }),
92
+ ...(input.savingsPlanIds != null && { savingsPlanIds: se_SavingsPlanIdList(input.savingsPlanIds, context) }),
93
+ ...(input.states != null && { states: se_SavingsPlanStateList(input.states, context) }),
98
94
  });
99
95
  return new protocol_http_1.HttpRequest({
100
96
  protocol,
@@ -106,8 +102,8 @@ const serializeAws_restJson1DescribeSavingsPlansCommand = async (input, context)
106
102
  body,
107
103
  });
108
104
  };
109
- exports.serializeAws_restJson1DescribeSavingsPlansCommand = serializeAws_restJson1DescribeSavingsPlansCommand;
110
- const serializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = async (input, context) => {
105
+ exports.se_DescribeSavingsPlansCommand = se_DescribeSavingsPlansCommand;
106
+ const se_DescribeSavingsPlansOfferingRatesCommand = async (input, context) => {
111
107
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
112
108
  const headers = {
113
109
  "content-type": "application/json",
@@ -115,32 +111,22 @@ const serializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = async (in
115
111
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSavingsPlansOfferingRates";
116
112
  let body;
117
113
  body = JSON.stringify({
118
- ...(input.filters != null && {
119
- filters: serializeAws_restJson1SavingsPlanOfferingRateFiltersList(input.filters, context),
120
- }),
114
+ ...(input.filters != null && { filters: se_SavingsPlanOfferingRateFiltersList(input.filters, context) }),
121
115
  ...(input.maxResults != null && { maxResults: input.maxResults }),
122
116
  ...(input.nextToken != null && { nextToken: input.nextToken }),
123
- ...(input.operations != null && {
124
- operations: serializeAws_restJson1SavingsPlanRateOperationList(input.operations, context),
125
- }),
126
- ...(input.products != null && {
127
- products: serializeAws_restJson1SavingsPlanProductTypeList(input.products, context),
128
- }),
117
+ ...(input.operations != null && { operations: se_SavingsPlanRateOperationList(input.operations, context) }),
118
+ ...(input.products != null && { products: se_SavingsPlanProductTypeList(input.products, context) }),
129
119
  ...(input.savingsPlanOfferingIds != null && {
130
- savingsPlanOfferingIds: serializeAws_restJson1UUIDs(input.savingsPlanOfferingIds, context),
120
+ savingsPlanOfferingIds: se_UUIDs(input.savingsPlanOfferingIds, context),
131
121
  }),
132
122
  ...(input.savingsPlanPaymentOptions != null && {
133
- savingsPlanPaymentOptions: serializeAws_restJson1SavingsPlanPaymentOptionList(input.savingsPlanPaymentOptions, context),
123
+ savingsPlanPaymentOptions: se_SavingsPlanPaymentOptionList(input.savingsPlanPaymentOptions, context),
134
124
  }),
135
125
  ...(input.savingsPlanTypes != null && {
136
- savingsPlanTypes: serializeAws_restJson1SavingsPlanTypeList(input.savingsPlanTypes, context),
137
- }),
138
- ...(input.serviceCodes != null && {
139
- serviceCodes: serializeAws_restJson1SavingsPlanRateServiceCodeList(input.serviceCodes, context),
140
- }),
141
- ...(input.usageTypes != null && {
142
- usageTypes: serializeAws_restJson1SavingsPlanRateUsageTypeList(input.usageTypes, context),
126
+ savingsPlanTypes: se_SavingsPlanTypeList(input.savingsPlanTypes, context),
143
127
  }),
128
+ ...(input.serviceCodes != null && { serviceCodes: se_SavingsPlanRateServiceCodeList(input.serviceCodes, context) }),
129
+ ...(input.usageTypes != null && { usageTypes: se_SavingsPlanRateUsageTypeList(input.usageTypes, context) }),
144
130
  });
145
131
  return new protocol_http_1.HttpRequest({
146
132
  protocol,
@@ -152,8 +138,8 @@ const serializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = async (in
152
138
  body,
153
139
  });
154
140
  };
155
- exports.serializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = serializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand;
156
- const serializeAws_restJson1DescribeSavingsPlansOfferingsCommand = async (input, context) => {
141
+ exports.se_DescribeSavingsPlansOfferingRatesCommand = se_DescribeSavingsPlansOfferingRatesCommand;
142
+ const se_DescribeSavingsPlansOfferingsCommand = async (input, context) => {
157
143
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
144
  const headers = {
159
145
  "content-type": "application/json",
@@ -161,31 +147,21 @@ const serializeAws_restJson1DescribeSavingsPlansOfferingsCommand = async (input,
161
147
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeSavingsPlansOfferings";
162
148
  let body;
163
149
  body = JSON.stringify({
164
- ...(input.currencies != null && { currencies: serializeAws_restJson1CurrencyList(input.currencies, context) }),
165
- ...(input.descriptions != null && {
166
- descriptions: serializeAws_restJson1SavingsPlanDescriptionsList(input.descriptions, context),
167
- }),
168
- ...(input.durations != null && { durations: serializeAws_restJson1DurationsList(input.durations, context) }),
169
- ...(input.filters != null && {
170
- filters: serializeAws_restJson1SavingsPlanOfferingFiltersList(input.filters, context),
171
- }),
150
+ ...(input.currencies != null && { currencies: se_CurrencyList(input.currencies, context) }),
151
+ ...(input.descriptions != null && { descriptions: se_SavingsPlanDescriptionsList(input.descriptions, context) }),
152
+ ...(input.durations != null && { durations: se_DurationsList(input.durations, context) }),
153
+ ...(input.filters != null && { filters: se_SavingsPlanOfferingFiltersList(input.filters, context) }),
172
154
  ...(input.maxResults != null && { maxResults: input.maxResults }),
173
155
  ...(input.nextToken != null && { nextToken: input.nextToken }),
174
- ...(input.offeringIds != null && { offeringIds: serializeAws_restJson1UUIDs(input.offeringIds, context) }),
175
- ...(input.operations != null && {
176
- operations: serializeAws_restJson1SavingsPlanOperationList(input.operations, context),
177
- }),
156
+ ...(input.offeringIds != null && { offeringIds: se_UUIDs(input.offeringIds, context) }),
157
+ ...(input.operations != null && { operations: se_SavingsPlanOperationList(input.operations, context) }),
178
158
  ...(input.paymentOptions != null && {
179
- paymentOptions: serializeAws_restJson1SavingsPlanPaymentOptionList(input.paymentOptions, context),
159
+ paymentOptions: se_SavingsPlanPaymentOptionList(input.paymentOptions, context),
180
160
  }),
181
- ...(input.planTypes != null && { planTypes: serializeAws_restJson1SavingsPlanTypeList(input.planTypes, context) }),
161
+ ...(input.planTypes != null && { planTypes: se_SavingsPlanTypeList(input.planTypes, context) }),
182
162
  ...(input.productType != null && { productType: input.productType }),
183
- ...(input.serviceCodes != null && {
184
- serviceCodes: serializeAws_restJson1SavingsPlanServiceCodeList(input.serviceCodes, context),
185
- }),
186
- ...(input.usageTypes != null && {
187
- usageTypes: serializeAws_restJson1SavingsPlanUsageTypeList(input.usageTypes, context),
188
- }),
163
+ ...(input.serviceCodes != null && { serviceCodes: se_SavingsPlanServiceCodeList(input.serviceCodes, context) }),
164
+ ...(input.usageTypes != null && { usageTypes: se_SavingsPlanUsageTypeList(input.usageTypes, context) }),
189
165
  });
190
166
  return new protocol_http_1.HttpRequest({
191
167
  protocol,
@@ -197,8 +173,8 @@ const serializeAws_restJson1DescribeSavingsPlansOfferingsCommand = async (input,
197
173
  body,
198
174
  });
199
175
  };
200
- exports.serializeAws_restJson1DescribeSavingsPlansOfferingsCommand = serializeAws_restJson1DescribeSavingsPlansOfferingsCommand;
201
- const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
176
+ exports.se_DescribeSavingsPlansOfferingsCommand = se_DescribeSavingsPlansOfferingsCommand;
177
+ const se_ListTagsForResourceCommand = async (input, context) => {
202
178
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
203
179
  const headers = {
204
180
  "content-type": "application/json",
@@ -218,8 +194,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
218
194
  body,
219
195
  });
220
196
  };
221
- exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
222
- const serializeAws_restJson1TagResourceCommand = async (input, context) => {
197
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
198
+ const se_TagResourceCommand = async (input, context) => {
223
199
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
200
  const headers = {
225
201
  "content-type": "application/json",
@@ -228,7 +204,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
228
204
  let body;
229
205
  body = JSON.stringify({
230
206
  ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
231
- ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
207
+ ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
232
208
  });
233
209
  return new protocol_http_1.HttpRequest({
234
210
  protocol,
@@ -240,8 +216,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
240
216
  body,
241
217
  });
242
218
  };
243
- exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
244
- const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
219
+ exports.se_TagResourceCommand = se_TagResourceCommand;
220
+ const se_UntagResourceCommand = async (input, context) => {
245
221
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
246
222
  const headers = {
247
223
  "content-type": "application/json",
@@ -250,7 +226,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
250
226
  let body;
251
227
  body = JSON.stringify({
252
228
  ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
253
- ...(input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
229
+ ...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
254
230
  });
255
231
  return new protocol_http_1.HttpRequest({
256
232
  protocol,
@@ -262,10 +238,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
262
238
  body,
263
239
  });
264
240
  };
265
- exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
266
- const deserializeAws_restJson1CreateSavingsPlanCommand = async (output, context) => {
241
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
242
+ const de_CreateSavingsPlanCommand = async (output, context) => {
267
243
  if (output.statusCode !== 200 && output.statusCode >= 300) {
268
- return deserializeAws_restJson1CreateSavingsPlanCommandError(output, context);
244
+ return de_CreateSavingsPlanCommandError(output, context);
269
245
  }
270
246
  const contents = map({
271
247
  $metadata: deserializeMetadata(output),
@@ -276,8 +252,8 @@ const deserializeAws_restJson1CreateSavingsPlanCommand = async (output, context)
276
252
  }
277
253
  return contents;
278
254
  };
279
- exports.deserializeAws_restJson1CreateSavingsPlanCommand = deserializeAws_restJson1CreateSavingsPlanCommand;
280
- const deserializeAws_restJson1CreateSavingsPlanCommandError = async (output, context) => {
255
+ exports.de_CreateSavingsPlanCommand = de_CreateSavingsPlanCommand;
256
+ const de_CreateSavingsPlanCommandError = async (output, context) => {
281
257
  const parsedOutput = {
282
258
  ...output,
283
259
  body: await parseErrorBody(output.body, context),
@@ -286,16 +262,16 @@ const deserializeAws_restJson1CreateSavingsPlanCommandError = async (output, con
286
262
  switch (errorCode) {
287
263
  case "InternalServerException":
288
264
  case "com.amazonaws.savingsplans#InternalServerException":
289
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
265
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
290
266
  case "ResourceNotFoundException":
291
267
  case "com.amazonaws.savingsplans#ResourceNotFoundException":
292
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
268
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
293
269
  case "ServiceQuotaExceededException":
294
270
  case "com.amazonaws.savingsplans#ServiceQuotaExceededException":
295
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
271
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
296
272
  case "ValidationException":
297
273
  case "com.amazonaws.savingsplans#ValidationException":
298
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
274
+ throw await de_ValidationExceptionRes(parsedOutput, context);
299
275
  default:
300
276
  const parsedBody = parsedOutput.body;
301
277
  (0, smithy_client_1.throwDefaultError)({
@@ -306,9 +282,9 @@ const deserializeAws_restJson1CreateSavingsPlanCommandError = async (output, con
306
282
  });
307
283
  }
308
284
  };
309
- const deserializeAws_restJson1DeleteQueuedSavingsPlanCommand = async (output, context) => {
285
+ const de_DeleteQueuedSavingsPlanCommand = async (output, context) => {
310
286
  if (output.statusCode !== 200 && output.statusCode >= 300) {
311
- return deserializeAws_restJson1DeleteQueuedSavingsPlanCommandError(output, context);
287
+ return de_DeleteQueuedSavingsPlanCommandError(output, context);
312
288
  }
313
289
  const contents = map({
314
290
  $metadata: deserializeMetadata(output),
@@ -316,8 +292,8 @@ const deserializeAws_restJson1DeleteQueuedSavingsPlanCommand = async (output, co
316
292
  await collectBody(output.body, context);
317
293
  return contents;
318
294
  };
319
- exports.deserializeAws_restJson1DeleteQueuedSavingsPlanCommand = deserializeAws_restJson1DeleteQueuedSavingsPlanCommand;
320
- const deserializeAws_restJson1DeleteQueuedSavingsPlanCommandError = async (output, context) => {
295
+ exports.de_DeleteQueuedSavingsPlanCommand = de_DeleteQueuedSavingsPlanCommand;
296
+ const de_DeleteQueuedSavingsPlanCommandError = async (output, context) => {
321
297
  const parsedOutput = {
322
298
  ...output,
323
299
  body: await parseErrorBody(output.body, context),
@@ -326,16 +302,16 @@ const deserializeAws_restJson1DeleteQueuedSavingsPlanCommandError = async (outpu
326
302
  switch (errorCode) {
327
303
  case "InternalServerException":
328
304
  case "com.amazonaws.savingsplans#InternalServerException":
329
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
305
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
330
306
  case "ResourceNotFoundException":
331
307
  case "com.amazonaws.savingsplans#ResourceNotFoundException":
332
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
308
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
333
309
  case "ServiceQuotaExceededException":
334
310
  case "com.amazonaws.savingsplans#ServiceQuotaExceededException":
335
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
311
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
336
312
  case "ValidationException":
337
313
  case "com.amazonaws.savingsplans#ValidationException":
338
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
314
+ throw await de_ValidationExceptionRes(parsedOutput, context);
339
315
  default:
340
316
  const parsedBody = parsedOutput.body;
341
317
  (0, smithy_client_1.throwDefaultError)({
@@ -346,9 +322,9 @@ const deserializeAws_restJson1DeleteQueuedSavingsPlanCommandError = async (outpu
346
322
  });
347
323
  }
348
324
  };
349
- const deserializeAws_restJson1DescribeSavingsPlanRatesCommand = async (output, context) => {
325
+ const de_DescribeSavingsPlanRatesCommand = async (output, context) => {
350
326
  if (output.statusCode !== 200 && output.statusCode >= 300) {
351
- return deserializeAws_restJson1DescribeSavingsPlanRatesCommandError(output, context);
327
+ return de_DescribeSavingsPlanRatesCommandError(output, context);
352
328
  }
353
329
  const contents = map({
354
330
  $metadata: deserializeMetadata(output),
@@ -361,12 +337,12 @@ const deserializeAws_restJson1DescribeSavingsPlanRatesCommand = async (output, c
361
337
  contents.savingsPlanId = (0, smithy_client_1.expectString)(data.savingsPlanId);
362
338
  }
363
339
  if (data.searchResults != null) {
364
- contents.searchResults = deserializeAws_restJson1SavingsPlanRateList(data.searchResults, context);
340
+ contents.searchResults = de_SavingsPlanRateList(data.searchResults, context);
365
341
  }
366
342
  return contents;
367
343
  };
368
- exports.deserializeAws_restJson1DescribeSavingsPlanRatesCommand = deserializeAws_restJson1DescribeSavingsPlanRatesCommand;
369
- const deserializeAws_restJson1DescribeSavingsPlanRatesCommandError = async (output, context) => {
344
+ exports.de_DescribeSavingsPlanRatesCommand = de_DescribeSavingsPlanRatesCommand;
345
+ const de_DescribeSavingsPlanRatesCommandError = async (output, context) => {
370
346
  const parsedOutput = {
371
347
  ...output,
372
348
  body: await parseErrorBody(output.body, context),
@@ -375,10 +351,10 @@ const deserializeAws_restJson1DescribeSavingsPlanRatesCommandError = async (outp
375
351
  switch (errorCode) {
376
352
  case "ResourceNotFoundException":
377
353
  case "com.amazonaws.savingsplans#ResourceNotFoundException":
378
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
354
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
379
355
  case "ValidationException":
380
356
  case "com.amazonaws.savingsplans#ValidationException":
381
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
357
+ throw await de_ValidationExceptionRes(parsedOutput, context);
382
358
  default:
383
359
  const parsedBody = parsedOutput.body;
384
360
  (0, smithy_client_1.throwDefaultError)({
@@ -389,9 +365,9 @@ const deserializeAws_restJson1DescribeSavingsPlanRatesCommandError = async (outp
389
365
  });
390
366
  }
391
367
  };
392
- const deserializeAws_restJson1DescribeSavingsPlansCommand = async (output, context) => {
368
+ const de_DescribeSavingsPlansCommand = async (output, context) => {
393
369
  if (output.statusCode !== 200 && output.statusCode >= 300) {
394
- return deserializeAws_restJson1DescribeSavingsPlansCommandError(output, context);
370
+ return de_DescribeSavingsPlansCommandError(output, context);
395
371
  }
396
372
  const contents = map({
397
373
  $metadata: deserializeMetadata(output),
@@ -401,12 +377,12 @@ const deserializeAws_restJson1DescribeSavingsPlansCommand = async (output, conte
401
377
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
402
378
  }
403
379
  if (data.savingsPlans != null) {
404
- contents.savingsPlans = deserializeAws_restJson1SavingsPlanList(data.savingsPlans, context);
380
+ contents.savingsPlans = de_SavingsPlanList(data.savingsPlans, context);
405
381
  }
406
382
  return contents;
407
383
  };
408
- exports.deserializeAws_restJson1DescribeSavingsPlansCommand = deserializeAws_restJson1DescribeSavingsPlansCommand;
409
- const deserializeAws_restJson1DescribeSavingsPlansCommandError = async (output, context) => {
384
+ exports.de_DescribeSavingsPlansCommand = de_DescribeSavingsPlansCommand;
385
+ const de_DescribeSavingsPlansCommandError = async (output, context) => {
410
386
  const parsedOutput = {
411
387
  ...output,
412
388
  body: await parseErrorBody(output.body, context),
@@ -415,10 +391,10 @@ const deserializeAws_restJson1DescribeSavingsPlansCommandError = async (output,
415
391
  switch (errorCode) {
416
392
  case "InternalServerException":
417
393
  case "com.amazonaws.savingsplans#InternalServerException":
418
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
394
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
419
395
  case "ValidationException":
420
396
  case "com.amazonaws.savingsplans#ValidationException":
421
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
397
+ throw await de_ValidationExceptionRes(parsedOutput, context);
422
398
  default:
423
399
  const parsedBody = parsedOutput.body;
424
400
  (0, smithy_client_1.throwDefaultError)({
@@ -429,9 +405,9 @@ const deserializeAws_restJson1DescribeSavingsPlansCommandError = async (output,
429
405
  });
430
406
  }
431
407
  };
432
- const deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = async (output, context) => {
408
+ const de_DescribeSavingsPlansOfferingRatesCommand = async (output, context) => {
433
409
  if (output.statusCode !== 200 && output.statusCode >= 300) {
434
- return deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommandError(output, context);
410
+ return de_DescribeSavingsPlansOfferingRatesCommandError(output, context);
435
411
  }
436
412
  const contents = map({
437
413
  $metadata: deserializeMetadata(output),
@@ -441,12 +417,12 @@ const deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = async (
441
417
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
442
418
  }
443
419
  if (data.searchResults != null) {
444
- contents.searchResults = deserializeAws_restJson1SavingsPlanOfferingRatesList(data.searchResults, context);
420
+ contents.searchResults = de_SavingsPlanOfferingRatesList(data.searchResults, context);
445
421
  }
446
422
  return contents;
447
423
  };
448
- exports.deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand = deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommand;
449
- const deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommandError = async (output, context) => {
424
+ exports.de_DescribeSavingsPlansOfferingRatesCommand = de_DescribeSavingsPlansOfferingRatesCommand;
425
+ const de_DescribeSavingsPlansOfferingRatesCommandError = async (output, context) => {
450
426
  const parsedOutput = {
451
427
  ...output,
452
428
  body: await parseErrorBody(output.body, context),
@@ -455,10 +431,10 @@ const deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommandError = as
455
431
  switch (errorCode) {
456
432
  case "InternalServerException":
457
433
  case "com.amazonaws.savingsplans#InternalServerException":
458
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
434
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
459
435
  case "ValidationException":
460
436
  case "com.amazonaws.savingsplans#ValidationException":
461
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
437
+ throw await de_ValidationExceptionRes(parsedOutput, context);
462
438
  default:
463
439
  const parsedBody = parsedOutput.body;
464
440
  (0, smithy_client_1.throwDefaultError)({
@@ -469,9 +445,9 @@ const deserializeAws_restJson1DescribeSavingsPlansOfferingRatesCommandError = as
469
445
  });
470
446
  }
471
447
  };
472
- const deserializeAws_restJson1DescribeSavingsPlansOfferingsCommand = async (output, context) => {
448
+ const de_DescribeSavingsPlansOfferingsCommand = async (output, context) => {
473
449
  if (output.statusCode !== 200 && output.statusCode >= 300) {
474
- return deserializeAws_restJson1DescribeSavingsPlansOfferingsCommandError(output, context);
450
+ return de_DescribeSavingsPlansOfferingsCommandError(output, context);
475
451
  }
476
452
  const contents = map({
477
453
  $metadata: deserializeMetadata(output),
@@ -481,12 +457,12 @@ const deserializeAws_restJson1DescribeSavingsPlansOfferingsCommand = async (outp
481
457
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
482
458
  }
483
459
  if (data.searchResults != null) {
484
- contents.searchResults = deserializeAws_restJson1SavingsPlanOfferingsList(data.searchResults, context);
460
+ contents.searchResults = de_SavingsPlanOfferingsList(data.searchResults, context);
485
461
  }
486
462
  return contents;
487
463
  };
488
- exports.deserializeAws_restJson1DescribeSavingsPlansOfferingsCommand = deserializeAws_restJson1DescribeSavingsPlansOfferingsCommand;
489
- const deserializeAws_restJson1DescribeSavingsPlansOfferingsCommandError = async (output, context) => {
464
+ exports.de_DescribeSavingsPlansOfferingsCommand = de_DescribeSavingsPlansOfferingsCommand;
465
+ const de_DescribeSavingsPlansOfferingsCommandError = async (output, context) => {
490
466
  const parsedOutput = {
491
467
  ...output,
492
468
  body: await parseErrorBody(output.body, context),
@@ -495,10 +471,10 @@ const deserializeAws_restJson1DescribeSavingsPlansOfferingsCommandError = async
495
471
  switch (errorCode) {
496
472
  case "InternalServerException":
497
473
  case "com.amazonaws.savingsplans#InternalServerException":
498
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
474
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
499
475
  case "ValidationException":
500
476
  case "com.amazonaws.savingsplans#ValidationException":
501
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
477
+ throw await de_ValidationExceptionRes(parsedOutput, context);
502
478
  default:
503
479
  const parsedBody = parsedOutput.body;
504
480
  (0, smithy_client_1.throwDefaultError)({
@@ -509,21 +485,21 @@ const deserializeAws_restJson1DescribeSavingsPlansOfferingsCommandError = async
509
485
  });
510
486
  }
511
487
  };
512
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
488
+ const de_ListTagsForResourceCommand = async (output, context) => {
513
489
  if (output.statusCode !== 200 && output.statusCode >= 300) {
514
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
490
+ return de_ListTagsForResourceCommandError(output, context);
515
491
  }
516
492
  const contents = map({
517
493
  $metadata: deserializeMetadata(output),
518
494
  });
519
495
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
520
496
  if (data.tags != null) {
521
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
497
+ contents.tags = de_TagMap(data.tags, context);
522
498
  }
523
499
  return contents;
524
500
  };
525
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
526
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
501
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
502
+ const de_ListTagsForResourceCommandError = async (output, context) => {
527
503
  const parsedOutput = {
528
504
  ...output,
529
505
  body: await parseErrorBody(output.body, context),
@@ -532,13 +508,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
532
508
  switch (errorCode) {
533
509
  case "InternalServerException":
534
510
  case "com.amazonaws.savingsplans#InternalServerException":
535
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
511
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
536
512
  case "ResourceNotFoundException":
537
513
  case "com.amazonaws.savingsplans#ResourceNotFoundException":
538
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
514
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
539
515
  case "ValidationException":
540
516
  case "com.amazonaws.savingsplans#ValidationException":
541
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
517
+ throw await de_ValidationExceptionRes(parsedOutput, context);
542
518
  default:
543
519
  const parsedBody = parsedOutput.body;
544
520
  (0, smithy_client_1.throwDefaultError)({
@@ -549,9 +525,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
549
525
  });
550
526
  }
551
527
  };
552
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
528
+ const de_TagResourceCommand = async (output, context) => {
553
529
  if (output.statusCode !== 200 && output.statusCode >= 300) {
554
- return deserializeAws_restJson1TagResourceCommandError(output, context);
530
+ return de_TagResourceCommandError(output, context);
555
531
  }
556
532
  const contents = map({
557
533
  $metadata: deserializeMetadata(output),
@@ -559,8 +535,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
559
535
  await collectBody(output.body, context);
560
536
  return contents;
561
537
  };
562
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
563
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
538
+ exports.de_TagResourceCommand = de_TagResourceCommand;
539
+ const de_TagResourceCommandError = async (output, context) => {
564
540
  const parsedOutput = {
565
541
  ...output,
566
542
  body: await parseErrorBody(output.body, context),
@@ -569,16 +545,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
569
545
  switch (errorCode) {
570
546
  case "InternalServerException":
571
547
  case "com.amazonaws.savingsplans#InternalServerException":
572
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
548
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
573
549
  case "ResourceNotFoundException":
574
550
  case "com.amazonaws.savingsplans#ResourceNotFoundException":
575
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
551
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
576
552
  case "ServiceQuotaExceededException":
577
553
  case "com.amazonaws.savingsplans#ServiceQuotaExceededException":
578
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
554
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
579
555
  case "ValidationException":
580
556
  case "com.amazonaws.savingsplans#ValidationException":
581
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
557
+ throw await de_ValidationExceptionRes(parsedOutput, context);
582
558
  default:
583
559
  const parsedBody = parsedOutput.body;
584
560
  (0, smithy_client_1.throwDefaultError)({
@@ -589,9 +565,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
589
565
  });
590
566
  }
591
567
  };
592
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
568
+ const de_UntagResourceCommand = async (output, context) => {
593
569
  if (output.statusCode !== 200 && output.statusCode >= 300) {
594
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
570
+ return de_UntagResourceCommandError(output, context);
595
571
  }
596
572
  const contents = map({
597
573
  $metadata: deserializeMetadata(output),
@@ -599,8 +575,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
599
575
  await collectBody(output.body, context);
600
576
  return contents;
601
577
  };
602
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
603
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
578
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
579
+ const de_UntagResourceCommandError = async (output, context) => {
604
580
  const parsedOutput = {
605
581
  ...output,
606
582
  body: await parseErrorBody(output.body, context),
@@ -609,13 +585,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
609
585
  switch (errorCode) {
610
586
  case "InternalServerException":
611
587
  case "com.amazonaws.savingsplans#InternalServerException":
612
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
588
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
613
589
  case "ResourceNotFoundException":
614
590
  case "com.amazonaws.savingsplans#ResourceNotFoundException":
615
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
591
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
616
592
  case "ValidationException":
617
593
  case "com.amazonaws.savingsplans#ValidationException":
618
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
594
+ throw await de_ValidationExceptionRes(parsedOutput, context);
619
595
  default:
620
596
  const parsedBody = parsedOutput.body;
621
597
  (0, smithy_client_1.throwDefaultError)({
@@ -627,7 +603,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
627
603
  }
628
604
  };
629
605
  const map = smithy_client_1.map;
630
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
606
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
631
607
  const contents = map({});
632
608
  const data = parsedOutput.body;
633
609
  if (data.message != null) {
@@ -639,7 +615,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
639
615
  });
640
616
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
641
617
  };
642
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
618
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
643
619
  const contents = map({});
644
620
  const data = parsedOutput.body;
645
621
  if (data.message != null) {
@@ -651,7 +627,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
651
627
  });
652
628
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
653
629
  };
654
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
630
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
655
631
  const contents = map({});
656
632
  const data = parsedOutput.body;
657
633
  if (data.message != null) {
@@ -663,7 +639,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
663
639
  });
664
640
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
665
641
  };
666
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
642
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
667
643
  const contents = map({});
668
644
  const data = parsedOutput.body;
669
645
  if (data.message != null) {
@@ -675,185 +651,185 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
675
651
  });
676
652
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
677
653
  };
678
- const serializeAws_restJson1CurrencyList = (input, context) => {
654
+ const se_CurrencyList = (input, context) => {
679
655
  return input
680
656
  .filter((e) => e != null)
681
657
  .map((entry) => {
682
658
  return entry;
683
659
  });
684
660
  };
685
- const serializeAws_restJson1DurationsList = (input, context) => {
661
+ const se_DurationsList = (input, context) => {
686
662
  return input
687
663
  .filter((e) => e != null)
688
664
  .map((entry) => {
689
665
  return entry;
690
666
  });
691
667
  };
692
- const serializeAws_restJson1FilterValuesList = (input, context) => {
668
+ const se_FilterValuesList = (input, context) => {
693
669
  return input
694
670
  .filter((e) => e != null)
695
671
  .map((entry) => {
696
672
  return entry;
697
673
  });
698
674
  };
699
- const serializeAws_restJson1ListOfStrings = (input, context) => {
675
+ const se_ListOfStrings = (input, context) => {
700
676
  return input
701
677
  .filter((e) => e != null)
702
678
  .map((entry) => {
703
679
  return entry;
704
680
  });
705
681
  };
706
- const serializeAws_restJson1SavingsPlanArnList = (input, context) => {
682
+ const se_SavingsPlanArnList = (input, context) => {
707
683
  return input
708
684
  .filter((e) => e != null)
709
685
  .map((entry) => {
710
686
  return entry;
711
687
  });
712
688
  };
713
- const serializeAws_restJson1SavingsPlanDescriptionsList = (input, context) => {
689
+ const se_SavingsPlanDescriptionsList = (input, context) => {
714
690
  return input
715
691
  .filter((e) => e != null)
716
692
  .map((entry) => {
717
693
  return entry;
718
694
  });
719
695
  };
720
- const serializeAws_restJson1SavingsPlanFilter = (input, context) => {
696
+ const se_SavingsPlanFilter = (input, context) => {
721
697
  return {
722
698
  ...(input.name != null && { name: input.name }),
723
- ...(input.values != null && { values: serializeAws_restJson1ListOfStrings(input.values, context) }),
699
+ ...(input.values != null && { values: se_ListOfStrings(input.values, context) }),
724
700
  };
725
701
  };
726
- const serializeAws_restJson1SavingsPlanFilterList = (input, context) => {
702
+ const se_SavingsPlanFilterList = (input, context) => {
727
703
  return input
728
704
  .filter((e) => e != null)
729
705
  .map((entry) => {
730
- return serializeAws_restJson1SavingsPlanFilter(entry, context);
706
+ return se_SavingsPlanFilter(entry, context);
731
707
  });
732
708
  };
733
- const serializeAws_restJson1SavingsPlanIdList = (input, context) => {
709
+ const se_SavingsPlanIdList = (input, context) => {
734
710
  return input
735
711
  .filter((e) => e != null)
736
712
  .map((entry) => {
737
713
  return entry;
738
714
  });
739
715
  };
740
- const serializeAws_restJson1SavingsPlanOfferingFilterElement = (input, context) => {
716
+ const se_SavingsPlanOfferingFilterElement = (input, context) => {
741
717
  return {
742
718
  ...(input.name != null && { name: input.name }),
743
- ...(input.values != null && { values: serializeAws_restJson1FilterValuesList(input.values, context) }),
719
+ ...(input.values != null && { values: se_FilterValuesList(input.values, context) }),
744
720
  };
745
721
  };
746
- const serializeAws_restJson1SavingsPlanOfferingFiltersList = (input, context) => {
722
+ const se_SavingsPlanOfferingFiltersList = (input, context) => {
747
723
  return input
748
724
  .filter((e) => e != null)
749
725
  .map((entry) => {
750
- return serializeAws_restJson1SavingsPlanOfferingFilterElement(entry, context);
726
+ return se_SavingsPlanOfferingFilterElement(entry, context);
751
727
  });
752
728
  };
753
- const serializeAws_restJson1SavingsPlanOfferingRateFilterElement = (input, context) => {
729
+ const se_SavingsPlanOfferingRateFilterElement = (input, context) => {
754
730
  return {
755
731
  ...(input.name != null && { name: input.name }),
756
- ...(input.values != null && { values: serializeAws_restJson1FilterValuesList(input.values, context) }),
732
+ ...(input.values != null && { values: se_FilterValuesList(input.values, context) }),
757
733
  };
758
734
  };
759
- const serializeAws_restJson1SavingsPlanOfferingRateFiltersList = (input, context) => {
735
+ const se_SavingsPlanOfferingRateFiltersList = (input, context) => {
760
736
  return input
761
737
  .filter((e) => e != null)
762
738
  .map((entry) => {
763
- return serializeAws_restJson1SavingsPlanOfferingRateFilterElement(entry, context);
739
+ return se_SavingsPlanOfferingRateFilterElement(entry, context);
764
740
  });
765
741
  };
766
- const serializeAws_restJson1SavingsPlanOperationList = (input, context) => {
742
+ const se_SavingsPlanOperationList = (input, context) => {
767
743
  return input
768
744
  .filter((e) => e != null)
769
745
  .map((entry) => {
770
746
  return entry;
771
747
  });
772
748
  };
773
- const serializeAws_restJson1SavingsPlanPaymentOptionList = (input, context) => {
749
+ const se_SavingsPlanPaymentOptionList = (input, context) => {
774
750
  return input
775
751
  .filter((e) => e != null)
776
752
  .map((entry) => {
777
753
  return entry;
778
754
  });
779
755
  };
780
- const serializeAws_restJson1SavingsPlanProductTypeList = (input, context) => {
756
+ const se_SavingsPlanProductTypeList = (input, context) => {
781
757
  return input
782
758
  .filter((e) => e != null)
783
759
  .map((entry) => {
784
760
  return entry;
785
761
  });
786
762
  };
787
- const serializeAws_restJson1SavingsPlanRateFilter = (input, context) => {
763
+ const se_SavingsPlanRateFilter = (input, context) => {
788
764
  return {
789
765
  ...(input.name != null && { name: input.name }),
790
- ...(input.values != null && { values: serializeAws_restJson1ListOfStrings(input.values, context) }),
766
+ ...(input.values != null && { values: se_ListOfStrings(input.values, context) }),
791
767
  };
792
768
  };
793
- const serializeAws_restJson1SavingsPlanRateFilterList = (input, context) => {
769
+ const se_SavingsPlanRateFilterList = (input, context) => {
794
770
  return input
795
771
  .filter((e) => e != null)
796
772
  .map((entry) => {
797
- return serializeAws_restJson1SavingsPlanRateFilter(entry, context);
773
+ return se_SavingsPlanRateFilter(entry, context);
798
774
  });
799
775
  };
800
- const serializeAws_restJson1SavingsPlanRateOperationList = (input, context) => {
776
+ const se_SavingsPlanRateOperationList = (input, context) => {
801
777
  return input
802
778
  .filter((e) => e != null)
803
779
  .map((entry) => {
804
780
  return entry;
805
781
  });
806
782
  };
807
- const serializeAws_restJson1SavingsPlanRateServiceCodeList = (input, context) => {
783
+ const se_SavingsPlanRateServiceCodeList = (input, context) => {
808
784
  return input
809
785
  .filter((e) => e != null)
810
786
  .map((entry) => {
811
787
  return entry;
812
788
  });
813
789
  };
814
- const serializeAws_restJson1SavingsPlanRateUsageTypeList = (input, context) => {
790
+ const se_SavingsPlanRateUsageTypeList = (input, context) => {
815
791
  return input
816
792
  .filter((e) => e != null)
817
793
  .map((entry) => {
818
794
  return entry;
819
795
  });
820
796
  };
821
- const serializeAws_restJson1SavingsPlanServiceCodeList = (input, context) => {
797
+ const se_SavingsPlanServiceCodeList = (input, context) => {
822
798
  return input
823
799
  .filter((e) => e != null)
824
800
  .map((entry) => {
825
801
  return entry;
826
802
  });
827
803
  };
828
- const serializeAws_restJson1SavingsPlanStateList = (input, context) => {
804
+ const se_SavingsPlanStateList = (input, context) => {
829
805
  return input
830
806
  .filter((e) => e != null)
831
807
  .map((entry) => {
832
808
  return entry;
833
809
  });
834
810
  };
835
- const serializeAws_restJson1SavingsPlanTypeList = (input, context) => {
811
+ const se_SavingsPlanTypeList = (input, context) => {
836
812
  return input
837
813
  .filter((e) => e != null)
838
814
  .map((entry) => {
839
815
  return entry;
840
816
  });
841
817
  };
842
- const serializeAws_restJson1SavingsPlanUsageTypeList = (input, context) => {
818
+ const se_SavingsPlanUsageTypeList = (input, context) => {
843
819
  return input
844
820
  .filter((e) => e != null)
845
821
  .map((entry) => {
846
822
  return entry;
847
823
  });
848
824
  };
849
- const serializeAws_restJson1TagKeyList = (input, context) => {
825
+ const se_TagKeyList = (input, context) => {
850
826
  return input
851
827
  .filter((e) => e != null)
852
828
  .map((entry) => {
853
829
  return entry;
854
830
  });
855
831
  };
856
- const serializeAws_restJson1TagMap = (input, context) => {
832
+ const se_TagMap = (input, context) => {
857
833
  return Object.entries(input).reduce((acc, [key, value]) => {
858
834
  if (value === null) {
859
835
  return acc;
@@ -862,14 +838,14 @@ const serializeAws_restJson1TagMap = (input, context) => {
862
838
  return acc;
863
839
  }, {});
864
840
  };
865
- const serializeAws_restJson1UUIDs = (input, context) => {
841
+ const se_UUIDs = (input, context) => {
866
842
  return input
867
843
  .filter((e) => e != null)
868
844
  .map((entry) => {
869
845
  return entry;
870
846
  });
871
847
  };
872
- const deserializeAws_restJson1ParentSavingsPlanOffering = (output, context) => {
848
+ const de_ParentSavingsPlanOffering = (output, context) => {
873
849
  return {
874
850
  currency: (0, smithy_client_1.expectString)(output.currency),
875
851
  durationSeconds: (0, smithy_client_1.expectLong)(output.durationSeconds),
@@ -879,7 +855,7 @@ const deserializeAws_restJson1ParentSavingsPlanOffering = (output, context) => {
879
855
  planType: (0, smithy_client_1.expectString)(output.planType),
880
856
  };
881
857
  };
882
- const deserializeAws_restJson1SavingsPlan = (output, context) => {
858
+ const de_SavingsPlan = (output, context) => {
883
859
  return {
884
860
  commitment: (0, smithy_client_1.expectString)(output.commitment),
885
861
  currency: (0, smithy_client_1.expectString)(output.currency),
@@ -888,9 +864,7 @@ const deserializeAws_restJson1SavingsPlan = (output, context) => {
888
864
  end: (0, smithy_client_1.expectString)(output.end),
889
865
  offeringId: (0, smithy_client_1.expectString)(output.offeringId),
890
866
  paymentOption: (0, smithy_client_1.expectString)(output.paymentOption),
891
- productTypes: output.productTypes != null
892
- ? deserializeAws_restJson1SavingsPlanProductTypeList(output.productTypes, context)
893
- : undefined,
867
+ productTypes: output.productTypes != null ? de_SavingsPlanProductTypeList(output.productTypes, context) : undefined,
894
868
  recurringPaymentAmount: (0, smithy_client_1.expectString)(output.recurringPaymentAmount),
895
869
  region: (0, smithy_client_1.expectString)(output.region),
896
870
  savingsPlanArn: (0, smithy_client_1.expectString)(output.savingsPlanArn),
@@ -898,23 +872,23 @@ const deserializeAws_restJson1SavingsPlan = (output, context) => {
898
872
  savingsPlanType: (0, smithy_client_1.expectString)(output.savingsPlanType),
899
873
  start: (0, smithy_client_1.expectString)(output.start),
900
874
  state: (0, smithy_client_1.expectString)(output.state),
901
- tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
875
+ tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
902
876
  termDurationInSeconds: (0, smithy_client_1.expectLong)(output.termDurationInSeconds),
903
877
  upfrontPaymentAmount: (0, smithy_client_1.expectString)(output.upfrontPaymentAmount),
904
878
  };
905
879
  };
906
- const deserializeAws_restJson1SavingsPlanList = (output, context) => {
880
+ const de_SavingsPlanList = (output, context) => {
907
881
  const retVal = (output || [])
908
882
  .filter((e) => e != null)
909
883
  .map((entry) => {
910
884
  if (entry === null) {
911
885
  return null;
912
886
  }
913
- return deserializeAws_restJson1SavingsPlan(entry, context);
887
+ return de_SavingsPlan(entry, context);
914
888
  });
915
889
  return retVal;
916
890
  };
917
- const deserializeAws_restJson1SavingsPlanOffering = (output, context) => {
891
+ const de_SavingsPlanOffering = (output, context) => {
918
892
  return {
919
893
  currency: (0, smithy_client_1.expectString)(output.currency),
920
894
  description: (0, smithy_client_1.expectString)(output.description),
@@ -923,89 +897,83 @@ const deserializeAws_restJson1SavingsPlanOffering = (output, context) => {
923
897
  operation: (0, smithy_client_1.expectString)(output.operation),
924
898
  paymentOption: (0, smithy_client_1.expectString)(output.paymentOption),
925
899
  planType: (0, smithy_client_1.expectString)(output.planType),
926
- productTypes: output.productTypes != null
927
- ? deserializeAws_restJson1SavingsPlanProductTypeList(output.productTypes, context)
928
- : undefined,
929
- properties: output.properties != null
930
- ? deserializeAws_restJson1SavingsPlanOfferingPropertyList(output.properties, context)
931
- : undefined,
900
+ productTypes: output.productTypes != null ? de_SavingsPlanProductTypeList(output.productTypes, context) : undefined,
901
+ properties: output.properties != null ? de_SavingsPlanOfferingPropertyList(output.properties, context) : undefined,
932
902
  serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
933
903
  usageType: (0, smithy_client_1.expectString)(output.usageType),
934
904
  };
935
905
  };
936
- const deserializeAws_restJson1SavingsPlanOfferingProperty = (output, context) => {
906
+ const de_SavingsPlanOfferingProperty = (output, context) => {
937
907
  return {
938
908
  name: (0, smithy_client_1.expectString)(output.name),
939
909
  value: (0, smithy_client_1.expectString)(output.value),
940
910
  };
941
911
  };
942
- const deserializeAws_restJson1SavingsPlanOfferingPropertyList = (output, context) => {
912
+ const de_SavingsPlanOfferingPropertyList = (output, context) => {
943
913
  const retVal = (output || [])
944
914
  .filter((e) => e != null)
945
915
  .map((entry) => {
946
916
  if (entry === null) {
947
917
  return null;
948
918
  }
949
- return deserializeAws_restJson1SavingsPlanOfferingProperty(entry, context);
919
+ return de_SavingsPlanOfferingProperty(entry, context);
950
920
  });
951
921
  return retVal;
952
922
  };
953
- const deserializeAws_restJson1SavingsPlanOfferingRate = (output, context) => {
923
+ const de_SavingsPlanOfferingRate = (output, context) => {
954
924
  return {
955
925
  operation: (0, smithy_client_1.expectString)(output.operation),
956
926
  productType: (0, smithy_client_1.expectString)(output.productType),
957
- properties: output.properties != null
958
- ? deserializeAws_restJson1SavingsPlanOfferingRatePropertyList(output.properties, context)
959
- : undefined,
927
+ properties: output.properties != null ? de_SavingsPlanOfferingRatePropertyList(output.properties, context) : undefined,
960
928
  rate: (0, smithy_client_1.expectString)(output.rate),
961
929
  savingsPlanOffering: output.savingsPlanOffering != null
962
- ? deserializeAws_restJson1ParentSavingsPlanOffering(output.savingsPlanOffering, context)
930
+ ? de_ParentSavingsPlanOffering(output.savingsPlanOffering, context)
963
931
  : undefined,
964
932
  serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
965
933
  unit: (0, smithy_client_1.expectString)(output.unit),
966
934
  usageType: (0, smithy_client_1.expectString)(output.usageType),
967
935
  };
968
936
  };
969
- const deserializeAws_restJson1SavingsPlanOfferingRateProperty = (output, context) => {
937
+ const de_SavingsPlanOfferingRateProperty = (output, context) => {
970
938
  return {
971
939
  name: (0, smithy_client_1.expectString)(output.name),
972
940
  value: (0, smithy_client_1.expectString)(output.value),
973
941
  };
974
942
  };
975
- const deserializeAws_restJson1SavingsPlanOfferingRatePropertyList = (output, context) => {
943
+ const de_SavingsPlanOfferingRatePropertyList = (output, context) => {
976
944
  const retVal = (output || [])
977
945
  .filter((e) => e != null)
978
946
  .map((entry) => {
979
947
  if (entry === null) {
980
948
  return null;
981
949
  }
982
- return deserializeAws_restJson1SavingsPlanOfferingRateProperty(entry, context);
950
+ return de_SavingsPlanOfferingRateProperty(entry, context);
983
951
  });
984
952
  return retVal;
985
953
  };
986
- const deserializeAws_restJson1SavingsPlanOfferingRatesList = (output, context) => {
954
+ const de_SavingsPlanOfferingRatesList = (output, context) => {
987
955
  const retVal = (output || [])
988
956
  .filter((e) => e != null)
989
957
  .map((entry) => {
990
958
  if (entry === null) {
991
959
  return null;
992
960
  }
993
- return deserializeAws_restJson1SavingsPlanOfferingRate(entry, context);
961
+ return de_SavingsPlanOfferingRate(entry, context);
994
962
  });
995
963
  return retVal;
996
964
  };
997
- const deserializeAws_restJson1SavingsPlanOfferingsList = (output, context) => {
965
+ const de_SavingsPlanOfferingsList = (output, context) => {
998
966
  const retVal = (output || [])
999
967
  .filter((e) => e != null)
1000
968
  .map((entry) => {
1001
969
  if (entry === null) {
1002
970
  return null;
1003
971
  }
1004
- return deserializeAws_restJson1SavingsPlanOffering(entry, context);
972
+ return de_SavingsPlanOffering(entry, context);
1005
973
  });
1006
974
  return retVal;
1007
975
  };
1008
- const deserializeAws_restJson1SavingsPlanProductTypeList = (output, context) => {
976
+ const de_SavingsPlanProductTypeList = (output, context) => {
1009
977
  const retVal = (output || [])
1010
978
  .filter((e) => e != null)
1011
979
  .map((entry) => {
@@ -1016,49 +984,47 @@ const deserializeAws_restJson1SavingsPlanProductTypeList = (output, context) =>
1016
984
  });
1017
985
  return retVal;
1018
986
  };
1019
- const deserializeAws_restJson1SavingsPlanRate = (output, context) => {
987
+ const de_SavingsPlanRate = (output, context) => {
1020
988
  return {
1021
989
  currency: (0, smithy_client_1.expectString)(output.currency),
1022
990
  operation: (0, smithy_client_1.expectString)(output.operation),
1023
991
  productType: (0, smithy_client_1.expectString)(output.productType),
1024
- properties: output.properties != null
1025
- ? deserializeAws_restJson1SavingsPlanRatePropertyList(output.properties, context)
1026
- : undefined,
992
+ properties: output.properties != null ? de_SavingsPlanRatePropertyList(output.properties, context) : undefined,
1027
993
  rate: (0, smithy_client_1.expectString)(output.rate),
1028
994
  serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
1029
995
  unit: (0, smithy_client_1.expectString)(output.unit),
1030
996
  usageType: (0, smithy_client_1.expectString)(output.usageType),
1031
997
  };
1032
998
  };
1033
- const deserializeAws_restJson1SavingsPlanRateList = (output, context) => {
999
+ const de_SavingsPlanRateList = (output, context) => {
1034
1000
  const retVal = (output || [])
1035
1001
  .filter((e) => e != null)
1036
1002
  .map((entry) => {
1037
1003
  if (entry === null) {
1038
1004
  return null;
1039
1005
  }
1040
- return deserializeAws_restJson1SavingsPlanRate(entry, context);
1006
+ return de_SavingsPlanRate(entry, context);
1041
1007
  });
1042
1008
  return retVal;
1043
1009
  };
1044
- const deserializeAws_restJson1SavingsPlanRateProperty = (output, context) => {
1010
+ const de_SavingsPlanRateProperty = (output, context) => {
1045
1011
  return {
1046
1012
  name: (0, smithy_client_1.expectString)(output.name),
1047
1013
  value: (0, smithy_client_1.expectString)(output.value),
1048
1014
  };
1049
1015
  };
1050
- const deserializeAws_restJson1SavingsPlanRatePropertyList = (output, context) => {
1016
+ const de_SavingsPlanRatePropertyList = (output, context) => {
1051
1017
  const retVal = (output || [])
1052
1018
  .filter((e) => e != null)
1053
1019
  .map((entry) => {
1054
1020
  if (entry === null) {
1055
1021
  return null;
1056
1022
  }
1057
- return deserializeAws_restJson1SavingsPlanRateProperty(entry, context);
1023
+ return de_SavingsPlanRateProperty(entry, context);
1058
1024
  });
1059
1025
  return retVal;
1060
1026
  };
1061
- const deserializeAws_restJson1TagMap = (output, context) => {
1027
+ const de_TagMap = (output, context) => {
1062
1028
  return Object.entries(output).reduce((acc, [key, value]) => {
1063
1029
  if (value === null) {
1064
1030
  return acc;