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