@aws-sdk/client-billingconductor 3.121.0 → 3.130.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/CHANGELOG.md +24 -0
- package/dist-cjs/protocols/Aws_restJson1.js +133 -182
- package/dist-es/protocols/Aws_restJson1.js +74 -123
- package/package.json +26 -26
|
@@ -14,9 +14,8 @@ const serializeAws_restJson1AssociateAccountsCommand = async (input, context) =>
|
|
|
14
14
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/associate-accounts";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.AccountIds
|
|
18
|
-
|
|
19
|
-
...(input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn }),
|
|
17
|
+
...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
18
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
20
19
|
});
|
|
21
20
|
return new protocol_http_1.HttpRequest({
|
|
22
21
|
protocol,
|
|
@@ -37,9 +36,8 @@ const serializeAws_restJson1AssociatePricingRulesCommand = async (input, context
|
|
|
37
36
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/associate-pricing-rules";
|
|
38
37
|
let body;
|
|
39
38
|
body = JSON.stringify({
|
|
40
|
-
...(input.Arn
|
|
41
|
-
...(input.PricingRuleArns
|
|
42
|
-
input.PricingRuleArns !== null && {
|
|
39
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
40
|
+
...(input.PricingRuleArns != null && {
|
|
43
41
|
PricingRuleArns: serializeAws_restJson1PricingRuleArnsNonEmptyInput(input.PricingRuleArns, context),
|
|
44
42
|
}),
|
|
45
43
|
});
|
|
@@ -63,15 +61,13 @@ const serializeAws_restJson1BatchAssociateResourcesToCustomLineItemCommand = asy
|
|
|
63
61
|
"/batch-associate-resources-to-custom-line-item";
|
|
64
62
|
let body;
|
|
65
63
|
body = JSON.stringify({
|
|
66
|
-
...(input.BillingPeriodRange
|
|
67
|
-
input.BillingPeriodRange !== null && {
|
|
64
|
+
...(input.BillingPeriodRange != null && {
|
|
68
65
|
BillingPeriodRange: serializeAws_restJson1CustomLineItemBillingPeriodRange(input.BillingPeriodRange, context),
|
|
69
66
|
}),
|
|
70
|
-
...(input.ResourceArns
|
|
71
|
-
input.ResourceArns !== null && {
|
|
67
|
+
...(input.ResourceArns != null && {
|
|
72
68
|
ResourceArns: serializeAws_restJson1CustomLineItemBatchAssociationsList(input.ResourceArns, context),
|
|
73
69
|
}),
|
|
74
|
-
...(input.TargetArn
|
|
70
|
+
...(input.TargetArn != null && { TargetArn: input.TargetArn }),
|
|
75
71
|
});
|
|
76
72
|
return new protocol_http_1.HttpRequest({
|
|
77
73
|
protocol,
|
|
@@ -93,15 +89,13 @@ const serializeAws_restJson1BatchDisassociateResourcesFromCustomLineItemCommand
|
|
|
93
89
|
"/batch-disassociate-resources-from-custom-line-item";
|
|
94
90
|
let body;
|
|
95
91
|
body = JSON.stringify({
|
|
96
|
-
...(input.BillingPeriodRange
|
|
97
|
-
input.BillingPeriodRange !== null && {
|
|
92
|
+
...(input.BillingPeriodRange != null && {
|
|
98
93
|
BillingPeriodRange: serializeAws_restJson1CustomLineItemBillingPeriodRange(input.BillingPeriodRange, context),
|
|
99
94
|
}),
|
|
100
|
-
...(input.ResourceArns
|
|
101
|
-
input.ResourceArns !== null && {
|
|
95
|
+
...(input.ResourceArns != null && {
|
|
102
96
|
ResourceArns: serializeAws_restJson1CustomLineItemBatchDisassociationsList(input.ResourceArns, context),
|
|
103
97
|
}),
|
|
104
|
-
...(input.TargetArn
|
|
98
|
+
...(input.TargetArn != null && { TargetArn: input.TargetArn }),
|
|
105
99
|
});
|
|
106
100
|
return new protocol_http_1.HttpRequest({
|
|
107
101
|
protocol,
|
|
@@ -123,19 +117,16 @@ const serializeAws_restJson1CreateBillingGroupCommand = async (input, context) =
|
|
|
123
117
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/create-billing-group";
|
|
124
118
|
let body;
|
|
125
119
|
body = JSON.stringify({
|
|
126
|
-
...(input.AccountGrouping
|
|
127
|
-
input.AccountGrouping !== null && {
|
|
120
|
+
...(input.AccountGrouping != null && {
|
|
128
121
|
AccountGrouping: serializeAws_restJson1AccountGrouping(input.AccountGrouping, context),
|
|
129
122
|
}),
|
|
130
|
-
...(input.ComputationPreference
|
|
131
|
-
input.ComputationPreference !== null && {
|
|
123
|
+
...(input.ComputationPreference != null && {
|
|
132
124
|
ComputationPreference: serializeAws_restJson1ComputationPreference(input.ComputationPreference, context),
|
|
133
125
|
}),
|
|
134
|
-
...(input.Description
|
|
135
|
-
...(input.Name
|
|
136
|
-
...(input.PrimaryAccountId
|
|
137
|
-
|
|
138
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
126
|
+
...(input.Description != null && { Description: input.Description }),
|
|
127
|
+
...(input.Name != null && { Name: input.Name }),
|
|
128
|
+
...(input.PrimaryAccountId != null && { PrimaryAccountId: input.PrimaryAccountId }),
|
|
129
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
139
130
|
});
|
|
140
131
|
return new protocol_http_1.HttpRequest({
|
|
141
132
|
protocol,
|
|
@@ -157,19 +148,16 @@ const serializeAws_restJson1CreateCustomLineItemCommand = async (input, context)
|
|
|
157
148
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/create-custom-line-item";
|
|
158
149
|
let body;
|
|
159
150
|
body = JSON.stringify({
|
|
160
|
-
...(input.BillingGroupArn
|
|
161
|
-
|
|
162
|
-
...(input.BillingPeriodRange !== undefined &&
|
|
163
|
-
input.BillingPeriodRange !== null && {
|
|
151
|
+
...(input.BillingGroupArn != null && { BillingGroupArn: input.BillingGroupArn }),
|
|
152
|
+
...(input.BillingPeriodRange != null && {
|
|
164
153
|
BillingPeriodRange: serializeAws_restJson1CustomLineItemBillingPeriodRange(input.BillingPeriodRange, context),
|
|
165
154
|
}),
|
|
166
|
-
...(input.ChargeDetails
|
|
167
|
-
input.ChargeDetails !== null && {
|
|
155
|
+
...(input.ChargeDetails != null && {
|
|
168
156
|
ChargeDetails: serializeAws_restJson1CustomLineItemChargeDetails(input.ChargeDetails, context),
|
|
169
157
|
}),
|
|
170
|
-
...(input.Description
|
|
171
|
-
...(input.Name
|
|
172
|
-
...(input.Tags
|
|
158
|
+
...(input.Description != null && { Description: input.Description }),
|
|
159
|
+
...(input.Name != null && { Name: input.Name }),
|
|
160
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
173
161
|
});
|
|
174
162
|
return new protocol_http_1.HttpRequest({
|
|
175
163
|
protocol,
|
|
@@ -191,13 +179,12 @@ const serializeAws_restJson1CreatePricingPlanCommand = async (input, context) =>
|
|
|
191
179
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/create-pricing-plan";
|
|
192
180
|
let body;
|
|
193
181
|
body = JSON.stringify({
|
|
194
|
-
...(input.Description
|
|
195
|
-
...(input.Name
|
|
196
|
-
...(input.PricingRuleArns
|
|
197
|
-
input.PricingRuleArns !== null && {
|
|
182
|
+
...(input.Description != null && { Description: input.Description }),
|
|
183
|
+
...(input.Name != null && { Name: input.Name }),
|
|
184
|
+
...(input.PricingRuleArns != null && {
|
|
198
185
|
PricingRuleArns: serializeAws_restJson1PricingRuleArnsInput(input.PricingRuleArns, context),
|
|
199
186
|
}),
|
|
200
|
-
...(input.Tags
|
|
187
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
201
188
|
});
|
|
202
189
|
return new protocol_http_1.HttpRequest({
|
|
203
190
|
protocol,
|
|
@@ -219,14 +206,13 @@ const serializeAws_restJson1CreatePricingRuleCommand = async (input, context) =>
|
|
|
219
206
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/create-pricing-rule";
|
|
220
207
|
let body;
|
|
221
208
|
body = JSON.stringify({
|
|
222
|
-
...(input.Description
|
|
223
|
-
...(input.ModifierPercentage
|
|
224
|
-
|
|
225
|
-
...(input.
|
|
226
|
-
...(input.
|
|
227
|
-
...(input.
|
|
228
|
-
...(input.
|
|
229
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
209
|
+
...(input.Description != null && { Description: input.Description }),
|
|
210
|
+
...(input.ModifierPercentage != null && { ModifierPercentage: (0, smithy_client_1.serializeFloat)(input.ModifierPercentage) }),
|
|
211
|
+
...(input.Name != null && { Name: input.Name }),
|
|
212
|
+
...(input.Scope != null && { Scope: input.Scope }),
|
|
213
|
+
...(input.Service != null && { Service: input.Service }),
|
|
214
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
215
|
+
...(input.Type != null && { Type: input.Type }),
|
|
230
216
|
});
|
|
231
217
|
return new protocol_http_1.HttpRequest({
|
|
232
218
|
protocol,
|
|
@@ -247,7 +233,7 @@ const serializeAws_restJson1DeleteBillingGroupCommand = async (input, context) =
|
|
|
247
233
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delete-billing-group";
|
|
248
234
|
let body;
|
|
249
235
|
body = JSON.stringify({
|
|
250
|
-
...(input.Arn
|
|
236
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
251
237
|
});
|
|
252
238
|
return new protocol_http_1.HttpRequest({
|
|
253
239
|
protocol,
|
|
@@ -268,9 +254,8 @@ const serializeAws_restJson1DeleteCustomLineItemCommand = async (input, context)
|
|
|
268
254
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delete-custom-line-item";
|
|
269
255
|
let body;
|
|
270
256
|
body = JSON.stringify({
|
|
271
|
-
...(input.Arn
|
|
272
|
-
...(input.BillingPeriodRange
|
|
273
|
-
input.BillingPeriodRange !== null && {
|
|
257
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
258
|
+
...(input.BillingPeriodRange != null && {
|
|
274
259
|
BillingPeriodRange: serializeAws_restJson1CustomLineItemBillingPeriodRange(input.BillingPeriodRange, context),
|
|
275
260
|
}),
|
|
276
261
|
});
|
|
@@ -293,7 +278,7 @@ const serializeAws_restJson1DeletePricingPlanCommand = async (input, context) =>
|
|
|
293
278
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delete-pricing-plan";
|
|
294
279
|
let body;
|
|
295
280
|
body = JSON.stringify({
|
|
296
|
-
...(input.Arn
|
|
281
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
297
282
|
});
|
|
298
283
|
return new protocol_http_1.HttpRequest({
|
|
299
284
|
protocol,
|
|
@@ -314,7 +299,7 @@ const serializeAws_restJson1DeletePricingRuleCommand = async (input, context) =>
|
|
|
314
299
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delete-pricing-rule";
|
|
315
300
|
let body;
|
|
316
301
|
body = JSON.stringify({
|
|
317
|
-
...(input.Arn
|
|
302
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
318
303
|
});
|
|
319
304
|
return new protocol_http_1.HttpRequest({
|
|
320
305
|
protocol,
|
|
@@ -335,9 +320,8 @@ const serializeAws_restJson1DisassociateAccountsCommand = async (input, context)
|
|
|
335
320
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/disassociate-accounts";
|
|
336
321
|
let body;
|
|
337
322
|
body = JSON.stringify({
|
|
338
|
-
...(input.AccountIds
|
|
339
|
-
|
|
340
|
-
...(input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn }),
|
|
323
|
+
...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
324
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
341
325
|
});
|
|
342
326
|
return new protocol_http_1.HttpRequest({
|
|
343
327
|
protocol,
|
|
@@ -358,9 +342,8 @@ const serializeAws_restJson1DisassociatePricingRulesCommand = async (input, cont
|
|
|
358
342
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/disassociate-pricing-rules";
|
|
359
343
|
let body;
|
|
360
344
|
body = JSON.stringify({
|
|
361
|
-
...(input.Arn
|
|
362
|
-
...(input.PricingRuleArns
|
|
363
|
-
input.PricingRuleArns !== null && {
|
|
345
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
346
|
+
...(input.PricingRuleArns != null && {
|
|
364
347
|
PricingRuleArns: serializeAws_restJson1PricingRuleArnsNonEmptyInput(input.PricingRuleArns, context),
|
|
365
348
|
}),
|
|
366
349
|
});
|
|
@@ -383,12 +366,11 @@ const serializeAws_restJson1ListAccountAssociationsCommand = async (input, conte
|
|
|
383
366
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-account-associations";
|
|
384
367
|
let body;
|
|
385
368
|
body = JSON.stringify({
|
|
386
|
-
...(input.BillingPeriod
|
|
387
|
-
...(input.Filters
|
|
388
|
-
input.Filters !== null && {
|
|
369
|
+
...(input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod }),
|
|
370
|
+
...(input.Filters != null && {
|
|
389
371
|
Filters: serializeAws_restJson1ListAccountAssociationsFilter(input.Filters, context),
|
|
390
372
|
}),
|
|
391
|
-
...(input.NextToken
|
|
373
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
392
374
|
});
|
|
393
375
|
return new protocol_http_1.HttpRequest({
|
|
394
376
|
protocol,
|
|
@@ -409,13 +391,12 @@ const serializeAws_restJson1ListBillingGroupCostReportsCommand = async (input, c
|
|
|
409
391
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-billing-group-cost-reports";
|
|
410
392
|
let body;
|
|
411
393
|
body = JSON.stringify({
|
|
412
|
-
...(input.BillingPeriod
|
|
413
|
-
...(input.Filters
|
|
414
|
-
input.Filters !== null && {
|
|
394
|
+
...(input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod }),
|
|
395
|
+
...(input.Filters != null && {
|
|
415
396
|
Filters: serializeAws_restJson1ListBillingGroupCostReportsFilter(input.Filters, context),
|
|
416
397
|
}),
|
|
417
|
-
...(input.MaxResults
|
|
418
|
-
...(input.NextToken
|
|
398
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
399
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
419
400
|
});
|
|
420
401
|
return new protocol_http_1.HttpRequest({
|
|
421
402
|
protocol,
|
|
@@ -436,11 +417,10 @@ const serializeAws_restJson1ListBillingGroupsCommand = async (input, context) =>
|
|
|
436
417
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-billing-groups";
|
|
437
418
|
let body;
|
|
438
419
|
body = JSON.stringify({
|
|
439
|
-
...(input.BillingPeriod
|
|
440
|
-
...(input.Filters
|
|
441
|
-
|
|
442
|
-
...(input.
|
|
443
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
420
|
+
...(input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod }),
|
|
421
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1ListBillingGroupsFilter(input.Filters, context) }),
|
|
422
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
423
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
444
424
|
});
|
|
445
425
|
return new protocol_http_1.HttpRequest({
|
|
446
426
|
protocol,
|
|
@@ -461,11 +441,10 @@ const serializeAws_restJson1ListCustomLineItemsCommand = async (input, context)
|
|
|
461
441
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-custom-line-items";
|
|
462
442
|
let body;
|
|
463
443
|
body = JSON.stringify({
|
|
464
|
-
...(input.BillingPeriod
|
|
465
|
-
...(input.Filters
|
|
466
|
-
|
|
467
|
-
...(input.
|
|
468
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
444
|
+
...(input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod }),
|
|
445
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1ListCustomLineItemsFilter(input.Filters, context) }),
|
|
446
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
447
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
469
448
|
});
|
|
470
449
|
return new protocol_http_1.HttpRequest({
|
|
471
450
|
protocol,
|
|
@@ -486,11 +465,10 @@ const serializeAws_restJson1ListPricingPlansCommand = async (input, context) =>
|
|
|
486
465
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-pricing-plans";
|
|
487
466
|
let body;
|
|
488
467
|
body = JSON.stringify({
|
|
489
|
-
...(input.BillingPeriod
|
|
490
|
-
...(input.Filters
|
|
491
|
-
|
|
492
|
-
...(input.
|
|
493
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
468
|
+
...(input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod }),
|
|
469
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1ListPricingPlansFilter(input.Filters, context) }),
|
|
470
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
471
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
494
472
|
});
|
|
495
473
|
return new protocol_http_1.HttpRequest({
|
|
496
474
|
protocol,
|
|
@@ -512,11 +490,10 @@ const serializeAws_restJson1ListPricingPlansAssociatedWithPricingRuleCommand = a
|
|
|
512
490
|
"/list-pricing-plans-associated-with-pricing-rule";
|
|
513
491
|
let body;
|
|
514
492
|
body = JSON.stringify({
|
|
515
|
-
...(input.BillingPeriod
|
|
516
|
-
...(input.MaxResults
|
|
517
|
-
...(input.NextToken
|
|
518
|
-
...(input.PricingRuleArn
|
|
519
|
-
input.PricingRuleArn !== null && { PricingRuleArn: input.PricingRuleArn }),
|
|
493
|
+
...(input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod }),
|
|
494
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
495
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
496
|
+
...(input.PricingRuleArn != null && { PricingRuleArn: input.PricingRuleArn }),
|
|
520
497
|
});
|
|
521
498
|
return new protocol_http_1.HttpRequest({
|
|
522
499
|
protocol,
|
|
@@ -537,11 +514,10 @@ const serializeAws_restJson1ListPricingRulesCommand = async (input, context) =>
|
|
|
537
514
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-pricing-rules";
|
|
538
515
|
let body;
|
|
539
516
|
body = JSON.stringify({
|
|
540
|
-
...(input.BillingPeriod
|
|
541
|
-
...(input.Filters
|
|
542
|
-
|
|
543
|
-
...(input.
|
|
544
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
517
|
+
...(input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod }),
|
|
518
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1ListPricingRulesFilter(input.Filters, context) }),
|
|
519
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
520
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
545
521
|
});
|
|
546
522
|
return new protocol_http_1.HttpRequest({
|
|
547
523
|
protocol,
|
|
@@ -563,11 +539,10 @@ const serializeAws_restJson1ListPricingRulesAssociatedToPricingPlanCommand = asy
|
|
|
563
539
|
"/list-pricing-rules-associated-to-pricing-plan";
|
|
564
540
|
let body;
|
|
565
541
|
body = JSON.stringify({
|
|
566
|
-
...(input.BillingPeriod
|
|
567
|
-
...(input.MaxResults
|
|
568
|
-
...(input.NextToken
|
|
569
|
-
...(input.PricingPlanArn
|
|
570
|
-
input.PricingPlanArn !== null && { PricingPlanArn: input.PricingPlanArn }),
|
|
542
|
+
...(input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod }),
|
|
543
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
544
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
545
|
+
...(input.PricingPlanArn != null && { PricingPlanArn: input.PricingPlanArn }),
|
|
571
546
|
});
|
|
572
547
|
return new protocol_http_1.HttpRequest({
|
|
573
548
|
protocol,
|
|
@@ -589,14 +564,13 @@ const serializeAws_restJson1ListResourcesAssociatedToCustomLineItemCommand = asy
|
|
|
589
564
|
"/list-resources-associated-to-custom-line-item";
|
|
590
565
|
let body;
|
|
591
566
|
body = JSON.stringify({
|
|
592
|
-
...(input.Arn
|
|
593
|
-
...(input.BillingPeriod
|
|
594
|
-
...(input.Filters
|
|
595
|
-
input.Filters !== null && {
|
|
567
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
568
|
+
...(input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod }),
|
|
569
|
+
...(input.Filters != null && {
|
|
596
570
|
Filters: serializeAws_restJson1ListResourcesAssociatedToCustomLineItemFilter(input.Filters, context),
|
|
597
571
|
}),
|
|
598
|
-
...(input.MaxResults
|
|
599
|
-
...(input.NextToken
|
|
572
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
573
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
600
574
|
});
|
|
601
575
|
return new protocol_http_1.HttpRequest({
|
|
602
576
|
protocol,
|
|
@@ -653,7 +627,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
653
627
|
}
|
|
654
628
|
let body;
|
|
655
629
|
body = JSON.stringify({
|
|
656
|
-
...(input.Tags
|
|
630
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
657
631
|
});
|
|
658
632
|
return new protocol_http_1.HttpRequest({
|
|
659
633
|
protocol,
|
|
@@ -704,14 +678,13 @@ const serializeAws_restJson1UpdateBillingGroupCommand = async (input, context) =
|
|
|
704
678
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-billing-group";
|
|
705
679
|
let body;
|
|
706
680
|
body = JSON.stringify({
|
|
707
|
-
...(input.Arn
|
|
708
|
-
...(input.ComputationPreference
|
|
709
|
-
input.ComputationPreference !== null && {
|
|
681
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
682
|
+
...(input.ComputationPreference != null && {
|
|
710
683
|
ComputationPreference: serializeAws_restJson1ComputationPreference(input.ComputationPreference, context),
|
|
711
684
|
}),
|
|
712
|
-
...(input.Description
|
|
713
|
-
...(input.Name
|
|
714
|
-
...(input.Status
|
|
685
|
+
...(input.Description != null && { Description: input.Description }),
|
|
686
|
+
...(input.Name != null && { Name: input.Name }),
|
|
687
|
+
...(input.Status != null && { Status: input.Status }),
|
|
715
688
|
});
|
|
716
689
|
return new protocol_http_1.HttpRequest({
|
|
717
690
|
protocol,
|
|
@@ -732,17 +705,15 @@ const serializeAws_restJson1UpdateCustomLineItemCommand = async (input, context)
|
|
|
732
705
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-custom-line-item";
|
|
733
706
|
let body;
|
|
734
707
|
body = JSON.stringify({
|
|
735
|
-
...(input.Arn
|
|
736
|
-
...(input.BillingPeriodRange
|
|
737
|
-
input.BillingPeriodRange !== null && {
|
|
708
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
709
|
+
...(input.BillingPeriodRange != null && {
|
|
738
710
|
BillingPeriodRange: serializeAws_restJson1CustomLineItemBillingPeriodRange(input.BillingPeriodRange, context),
|
|
739
711
|
}),
|
|
740
|
-
...(input.ChargeDetails
|
|
741
|
-
input.ChargeDetails !== null && {
|
|
712
|
+
...(input.ChargeDetails != null && {
|
|
742
713
|
ChargeDetails: serializeAws_restJson1UpdateCustomLineItemChargeDetails(input.ChargeDetails, context),
|
|
743
714
|
}),
|
|
744
|
-
...(input.Description
|
|
745
|
-
...(input.Name
|
|
715
|
+
...(input.Description != null && { Description: input.Description }),
|
|
716
|
+
...(input.Name != null && { Name: input.Name }),
|
|
746
717
|
});
|
|
747
718
|
return new protocol_http_1.HttpRequest({
|
|
748
719
|
protocol,
|
|
@@ -763,9 +734,9 @@ const serializeAws_restJson1UpdatePricingPlanCommand = async (input, context) =>
|
|
|
763
734
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-pricing-plan";
|
|
764
735
|
let body;
|
|
765
736
|
body = JSON.stringify({
|
|
766
|
-
...(input.Arn
|
|
767
|
-
...(input.Description
|
|
768
|
-
...(input.Name
|
|
737
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
738
|
+
...(input.Description != null && { Description: input.Description }),
|
|
739
|
+
...(input.Name != null && { Name: input.Name }),
|
|
769
740
|
});
|
|
770
741
|
return new protocol_http_1.HttpRequest({
|
|
771
742
|
protocol,
|
|
@@ -786,12 +757,11 @@ const serializeAws_restJson1UpdatePricingRuleCommand = async (input, context) =>
|
|
|
786
757
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-pricing-rule";
|
|
787
758
|
let body;
|
|
788
759
|
body = JSON.stringify({
|
|
789
|
-
...(input.Arn
|
|
790
|
-
...(input.Description
|
|
791
|
-
...(input.ModifierPercentage
|
|
792
|
-
|
|
793
|
-
...(input.
|
|
794
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
760
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
761
|
+
...(input.Description != null && { Description: input.Description }),
|
|
762
|
+
...(input.ModifierPercentage != null && { ModifierPercentage: (0, smithy_client_1.serializeFloat)(input.ModifierPercentage) }),
|
|
763
|
+
...(input.Name != null && { Name: input.Name }),
|
|
764
|
+
...(input.Type != null && { Type: input.Type }),
|
|
795
765
|
});
|
|
796
766
|
return new protocol_http_1.HttpRequest({
|
|
797
767
|
protocol,
|
|
@@ -2636,8 +2606,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2636
2606
|
};
|
|
2637
2607
|
const serializeAws_restJson1AccountGrouping = (input, context) => {
|
|
2638
2608
|
return {
|
|
2639
|
-
...(input.LinkedAccountIds
|
|
2640
|
-
input.LinkedAccountIds !== null && {
|
|
2609
|
+
...(input.LinkedAccountIds != null && {
|
|
2641
2610
|
LinkedAccountIds: serializeAws_restJson1AccountIdList(input.LinkedAccountIds, context),
|
|
2642
2611
|
}),
|
|
2643
2612
|
};
|
|
@@ -2664,8 +2633,7 @@ const serializeAws_restJson1BillingGroupArnList = (input, context) => {
|
|
|
2664
2633
|
};
|
|
2665
2634
|
const serializeAws_restJson1ComputationPreference = (input, context) => {
|
|
2666
2635
|
return {
|
|
2667
|
-
...(input.PricingPlanArn
|
|
2668
|
-
input.PricingPlanArn !== null && { PricingPlanArn: input.PricingPlanArn }),
|
|
2636
|
+
...(input.PricingPlanArn != null && { PricingPlanArn: input.PricingPlanArn }),
|
|
2669
2637
|
};
|
|
2670
2638
|
};
|
|
2671
2639
|
const serializeAws_restJson1CustomLineItemArns = (input, context) => {
|
|
@@ -2710,27 +2678,24 @@ const serializeAws_restJson1CustomLineItemBatchDisassociationsList = (input, con
|
|
|
2710
2678
|
};
|
|
2711
2679
|
const serializeAws_restJson1CustomLineItemBillingPeriodRange = (input, context) => {
|
|
2712
2680
|
return {
|
|
2713
|
-
...(input.ExclusiveEndBillingPeriod
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2681
|
+
...(input.ExclusiveEndBillingPeriod != null && { ExclusiveEndBillingPeriod: input.ExclusiveEndBillingPeriod }),
|
|
2682
|
+
...(input.InclusiveStartBillingPeriod != null && {
|
|
2683
|
+
InclusiveStartBillingPeriod: input.InclusiveStartBillingPeriod,
|
|
2684
|
+
}),
|
|
2717
2685
|
};
|
|
2718
2686
|
};
|
|
2719
2687
|
const serializeAws_restJson1CustomLineItemChargeDetails = (input, context) => {
|
|
2720
2688
|
return {
|
|
2721
|
-
...(input.Flat
|
|
2722
|
-
|
|
2723
|
-
...(input.Percentage !== undefined &&
|
|
2724
|
-
input.Percentage !== null && {
|
|
2689
|
+
...(input.Flat != null && { Flat: serializeAws_restJson1CustomLineItemFlatChargeDetails(input.Flat, context) }),
|
|
2690
|
+
...(input.Percentage != null && {
|
|
2725
2691
|
Percentage: serializeAws_restJson1CustomLineItemPercentageChargeDetails(input.Percentage, context),
|
|
2726
2692
|
}),
|
|
2727
|
-
...(input.Type
|
|
2693
|
+
...(input.Type != null && { Type: input.Type }),
|
|
2728
2694
|
};
|
|
2729
2695
|
};
|
|
2730
2696
|
const serializeAws_restJson1CustomLineItemFlatChargeDetails = (input, context) => {
|
|
2731
2697
|
return {
|
|
2732
|
-
...(input.ChargeValue
|
|
2733
|
-
input.ChargeValue !== null && { ChargeValue: (0, smithy_client_1.serializeFloat)(input.ChargeValue) }),
|
|
2698
|
+
...(input.ChargeValue != null && { ChargeValue: (0, smithy_client_1.serializeFloat)(input.ChargeValue) }),
|
|
2734
2699
|
};
|
|
2735
2700
|
};
|
|
2736
2701
|
const serializeAws_restJson1CustomLineItemNameList = (input, context) => {
|
|
@@ -2745,62 +2710,53 @@ const serializeAws_restJson1CustomLineItemNameList = (input, context) => {
|
|
|
2745
2710
|
};
|
|
2746
2711
|
const serializeAws_restJson1CustomLineItemPercentageChargeDetails = (input, context) => {
|
|
2747
2712
|
return {
|
|
2748
|
-
...(input.AssociatedValues
|
|
2749
|
-
input.AssociatedValues !== null && {
|
|
2713
|
+
...(input.AssociatedValues != null && {
|
|
2750
2714
|
AssociatedValues: serializeAws_restJson1CustomLineItemAssociationsList(input.AssociatedValues, context),
|
|
2751
2715
|
}),
|
|
2752
|
-
...(input.PercentageValue
|
|
2753
|
-
input.PercentageValue !== null && { PercentageValue: (0, smithy_client_1.serializeFloat)(input.PercentageValue) }),
|
|
2716
|
+
...(input.PercentageValue != null && { PercentageValue: (0, smithy_client_1.serializeFloat)(input.PercentageValue) }),
|
|
2754
2717
|
};
|
|
2755
2718
|
};
|
|
2756
2719
|
const serializeAws_restJson1ListAccountAssociationsFilter = (input, context) => {
|
|
2757
2720
|
return {
|
|
2758
|
-
...(input.AccountId
|
|
2759
|
-
...(input.Association
|
|
2721
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
2722
|
+
...(input.Association != null && { Association: input.Association }),
|
|
2760
2723
|
};
|
|
2761
2724
|
};
|
|
2762
2725
|
const serializeAws_restJson1ListBillingGroupCostReportsFilter = (input, context) => {
|
|
2763
2726
|
return {
|
|
2764
|
-
...(input.BillingGroupArns
|
|
2765
|
-
input.BillingGroupArns !== null && {
|
|
2727
|
+
...(input.BillingGroupArns != null && {
|
|
2766
2728
|
BillingGroupArns: serializeAws_restJson1BillingGroupArnList(input.BillingGroupArns, context),
|
|
2767
2729
|
}),
|
|
2768
2730
|
};
|
|
2769
2731
|
};
|
|
2770
2732
|
const serializeAws_restJson1ListBillingGroupsFilter = (input, context) => {
|
|
2771
2733
|
return {
|
|
2772
|
-
...(input.Arns
|
|
2773
|
-
|
|
2774
|
-
...(input.PricingPlan !== undefined && input.PricingPlan !== null && { PricingPlan: input.PricingPlan }),
|
|
2734
|
+
...(input.Arns != null && { Arns: serializeAws_restJson1BillingGroupArnList(input.Arns, context) }),
|
|
2735
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
2775
2736
|
};
|
|
2776
2737
|
};
|
|
2777
2738
|
const serializeAws_restJson1ListCustomLineItemsFilter = (input, context) => {
|
|
2778
2739
|
return {
|
|
2779
|
-
...(input.Arns
|
|
2780
|
-
|
|
2781
|
-
...(input.BillingGroups !== undefined &&
|
|
2782
|
-
input.BillingGroups !== null && {
|
|
2740
|
+
...(input.Arns != null && { Arns: serializeAws_restJson1CustomLineItemArns(input.Arns, context) }),
|
|
2741
|
+
...(input.BillingGroups != null && {
|
|
2783
2742
|
BillingGroups: serializeAws_restJson1BillingGroupArnList(input.BillingGroups, context),
|
|
2784
2743
|
}),
|
|
2785
|
-
...(input.Names
|
|
2786
|
-
input.Names !== null && { Names: serializeAws_restJson1CustomLineItemNameList(input.Names, context) }),
|
|
2744
|
+
...(input.Names != null && { Names: serializeAws_restJson1CustomLineItemNameList(input.Names, context) }),
|
|
2787
2745
|
};
|
|
2788
2746
|
};
|
|
2789
2747
|
const serializeAws_restJson1ListPricingPlansFilter = (input, context) => {
|
|
2790
2748
|
return {
|
|
2791
|
-
...(input.Arns
|
|
2792
|
-
input.Arns !== null && { Arns: serializeAws_restJson1PricingPlanArns(input.Arns, context) }),
|
|
2749
|
+
...(input.Arns != null && { Arns: serializeAws_restJson1PricingPlanArns(input.Arns, context) }),
|
|
2793
2750
|
};
|
|
2794
2751
|
};
|
|
2795
2752
|
const serializeAws_restJson1ListPricingRulesFilter = (input, context) => {
|
|
2796
2753
|
return {
|
|
2797
|
-
...(input.Arns
|
|
2798
|
-
input.Arns !== null && { Arns: serializeAws_restJson1PricingRuleArns(input.Arns, context) }),
|
|
2754
|
+
...(input.Arns != null && { Arns: serializeAws_restJson1PricingRuleArns(input.Arns, context) }),
|
|
2799
2755
|
};
|
|
2800
2756
|
};
|
|
2801
2757
|
const serializeAws_restJson1ListResourcesAssociatedToCustomLineItemFilter = (input, context) => {
|
|
2802
2758
|
return {
|
|
2803
|
-
...(input.Relationship
|
|
2759
|
+
...(input.Relationship != null && { Relationship: input.Relationship }),
|
|
2804
2760
|
};
|
|
2805
2761
|
};
|
|
2806
2762
|
const serializeAws_restJson1PricingPlanArns = (input, context) => {
|
|
@@ -2856,26 +2812,22 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2856
2812
|
};
|
|
2857
2813
|
const serializeAws_restJson1UpdateCustomLineItemChargeDetails = (input, context) => {
|
|
2858
2814
|
return {
|
|
2859
|
-
...(input.Flat
|
|
2860
|
-
input.Flat !== null && {
|
|
2815
|
+
...(input.Flat != null && {
|
|
2861
2816
|
Flat: serializeAws_restJson1UpdateCustomLineItemFlatChargeDetails(input.Flat, context),
|
|
2862
2817
|
}),
|
|
2863
|
-
...(input.Percentage
|
|
2864
|
-
input.Percentage !== null && {
|
|
2818
|
+
...(input.Percentage != null && {
|
|
2865
2819
|
Percentage: serializeAws_restJson1UpdateCustomLineItemPercentageChargeDetails(input.Percentage, context),
|
|
2866
2820
|
}),
|
|
2867
2821
|
};
|
|
2868
2822
|
};
|
|
2869
2823
|
const serializeAws_restJson1UpdateCustomLineItemFlatChargeDetails = (input, context) => {
|
|
2870
2824
|
return {
|
|
2871
|
-
...(input.ChargeValue
|
|
2872
|
-
input.ChargeValue !== null && { ChargeValue: (0, smithy_client_1.serializeFloat)(input.ChargeValue) }),
|
|
2825
|
+
...(input.ChargeValue != null && { ChargeValue: (0, smithy_client_1.serializeFloat)(input.ChargeValue) }),
|
|
2873
2826
|
};
|
|
2874
2827
|
};
|
|
2875
2828
|
const serializeAws_restJson1UpdateCustomLineItemPercentageChargeDetails = (input, context) => {
|
|
2876
2829
|
return {
|
|
2877
|
-
...(input.PercentageValue
|
|
2878
|
-
input.PercentageValue !== null && { PercentageValue: (0, smithy_client_1.serializeFloat)(input.PercentageValue) }),
|
|
2830
|
+
...(input.PercentageValue != null && { PercentageValue: (0, smithy_client_1.serializeFloat)(input.PercentageValue) }),
|
|
2879
2831
|
};
|
|
2880
2832
|
};
|
|
2881
2833
|
const deserializeAws_restJson1AccountAssociationsList = (output, context) => {
|
|
@@ -2906,9 +2858,7 @@ const deserializeAws_restJson1AssociateResourceError = (output, context) => {
|
|
|
2906
2858
|
const deserializeAws_restJson1AssociateResourceResponseElement = (output, context) => {
|
|
2907
2859
|
return {
|
|
2908
2860
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2909
|
-
Error: output.Error
|
|
2910
|
-
? deserializeAws_restJson1AssociateResourceError(output.Error, context)
|
|
2911
|
-
: undefined,
|
|
2861
|
+
Error: output.Error != null ? deserializeAws_restJson1AssociateResourceError(output.Error, context) : undefined,
|
|
2912
2862
|
};
|
|
2913
2863
|
};
|
|
2914
2864
|
const deserializeAws_restJson1AssociateResourcesResponseList = (output, context) => {
|
|
@@ -2957,7 +2907,7 @@ const deserializeAws_restJson1BillingGroupList = (output, context) => {
|
|
|
2957
2907
|
const deserializeAws_restJson1BillingGroupListElement = (output, context) => {
|
|
2958
2908
|
return {
|
|
2959
2909
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2960
|
-
ComputationPreference: output.ComputationPreference
|
|
2910
|
+
ComputationPreference: output.ComputationPreference != null
|
|
2961
2911
|
? deserializeAws_restJson1ComputationPreference(output.ComputationPreference, context)
|
|
2962
2912
|
: undefined,
|
|
2963
2913
|
CreationTime: (0, smithy_client_1.expectLong)(output.CreationTime),
|
|
@@ -2991,7 +2941,7 @@ const deserializeAws_restJson1CustomLineItemListElement = (output, context) => {
|
|
|
2991
2941
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2992
2942
|
AssociationSize: (0, smithy_client_1.expectLong)(output.AssociationSize),
|
|
2993
2943
|
BillingGroupArn: (0, smithy_client_1.expectString)(output.BillingGroupArn),
|
|
2994
|
-
ChargeDetails: output.ChargeDetails
|
|
2944
|
+
ChargeDetails: output.ChargeDetails != null
|
|
2995
2945
|
? deserializeAws_restJson1ListCustomLineItemChargeDetails(output.ChargeDetails, context)
|
|
2996
2946
|
: undefined,
|
|
2997
2947
|
CreationTime: (0, smithy_client_1.expectLong)(output.CreationTime),
|
|
@@ -3005,9 +2955,7 @@ const deserializeAws_restJson1CustomLineItemListElement = (output, context) => {
|
|
|
3005
2955
|
const deserializeAws_restJson1DisassociateResourceResponseElement = (output, context) => {
|
|
3006
2956
|
return {
|
|
3007
2957
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
3008
|
-
Error: output.Error
|
|
3009
|
-
? deserializeAws_restJson1AssociateResourceError(output.Error, context)
|
|
3010
|
-
: undefined,
|
|
2958
|
+
Error: output.Error != null ? deserializeAws_restJson1AssociateResourceError(output.Error, context) : undefined,
|
|
3011
2959
|
};
|
|
3012
2960
|
};
|
|
3013
2961
|
const deserializeAws_restJson1DisassociateResourcesResponseList = (output, context) => {
|
|
@@ -3023,10 +2971,10 @@ const deserializeAws_restJson1DisassociateResourcesResponseList = (output, conte
|
|
|
3023
2971
|
};
|
|
3024
2972
|
const deserializeAws_restJson1ListCustomLineItemChargeDetails = (output, context) => {
|
|
3025
2973
|
return {
|
|
3026
|
-
Flat: output.Flat
|
|
2974
|
+
Flat: output.Flat != null
|
|
3027
2975
|
? deserializeAws_restJson1ListCustomLineItemFlatChargeDetails(output.Flat, context)
|
|
3028
2976
|
: undefined,
|
|
3029
|
-
Percentage: output.Percentage
|
|
2977
|
+
Percentage: output.Percentage != null
|
|
3030
2978
|
? deserializeAws_restJson1ListCustomLineItemPercentageChargeDetails(output.Percentage, context)
|
|
3031
2979
|
: undefined,
|
|
3032
2980
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -3186,6 +3134,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3186
3134
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3187
3135
|
const sanitizeErrorCode = (rawValue) => {
|
|
3188
3136
|
let cleanValue = rawValue;
|
|
3137
|
+
if (typeof cleanValue === "number") {
|
|
3138
|
+
cleanValue = cleanValue.toString();
|
|
3139
|
+
}
|
|
3189
3140
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3190
3141
|
cleanValue = cleanValue.split(":")[0];
|
|
3191
3142
|
}
|