@aws-sdk/client-billingconductor 3.310.0 → 3.315.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/protocols/Aws_restJson1.js +513 -1080
- package/dist-es/protocols/Aws_restJson1.js +471 -1038
- package/package.json +6 -6
|
@@ -13,10 +13,10 @@ const se_AssociateAccountsCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associate-accounts";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
+
Arn: [],
|
|
19
|
+
}));
|
|
20
20
|
return new protocol_http_1.HttpRequest({
|
|
21
21
|
protocol,
|
|
22
22
|
hostname,
|
|
@@ -35,12 +35,10 @@ const se_AssociatePricingRulesCommand = async (input, context) => {
|
|
|
35
35
|
};
|
|
36
36
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associate-pricing-rules";
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify({
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}),
|
|
43
|
-
});
|
|
38
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
39
|
+
Arn: [],
|
|
40
|
+
PricingRuleArns: (_) => (0, smithy_client_1._json)(_),
|
|
41
|
+
}));
|
|
44
42
|
return new protocol_http_1.HttpRequest({
|
|
45
43
|
protocol,
|
|
46
44
|
hostname,
|
|
@@ -60,15 +58,11 @@ const se_BatchAssociateResourcesToCustomLineItemCommand = async (input, context)
|
|
|
60
58
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
61
59
|
"/batch-associate-resources-to-custom-line-item";
|
|
62
60
|
let body;
|
|
63
|
-
body = JSON.stringify({
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
ResourceArns: se_CustomLineItemBatchAssociationsList(input.ResourceArns, context),
|
|
69
|
-
}),
|
|
70
|
-
...(input.TargetArn != null && { TargetArn: input.TargetArn }),
|
|
71
|
-
});
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
62
|
+
BillingPeriodRange: (_) => (0, smithy_client_1._json)(_),
|
|
63
|
+
ResourceArns: (_) => (0, smithy_client_1._json)(_),
|
|
64
|
+
TargetArn: [],
|
|
65
|
+
}));
|
|
72
66
|
return new protocol_http_1.HttpRequest({
|
|
73
67
|
protocol,
|
|
74
68
|
hostname,
|
|
@@ -88,15 +82,11 @@ const se_BatchDisassociateResourcesFromCustomLineItemCommand = async (input, con
|
|
|
88
82
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
89
83
|
"/batch-disassociate-resources-from-custom-line-item";
|
|
90
84
|
let body;
|
|
91
|
-
body = JSON.stringify({
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
ResourceArns: se_CustomLineItemBatchDisassociationsList(input.ResourceArns, context),
|
|
97
|
-
}),
|
|
98
|
-
...(input.TargetArn != null && { TargetArn: input.TargetArn }),
|
|
99
|
-
});
|
|
85
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
86
|
+
BillingPeriodRange: (_) => (0, smithy_client_1._json)(_),
|
|
87
|
+
ResourceArns: (_) => (0, smithy_client_1._json)(_),
|
|
88
|
+
TargetArn: [],
|
|
89
|
+
}));
|
|
100
90
|
return new protocol_http_1.HttpRequest({
|
|
101
91
|
protocol,
|
|
102
92
|
hostname,
|
|
@@ -110,22 +100,20 @@ const se_BatchDisassociateResourcesFromCustomLineItemCommand = async (input, con
|
|
|
110
100
|
exports.se_BatchDisassociateResourcesFromCustomLineItemCommand = se_BatchDisassociateResourcesFromCustomLineItemCommand;
|
|
111
101
|
const se_CreateBillingGroupCommand = async (input, context) => {
|
|
112
102
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
113
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
103
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
114
104
|
"content-type": "application/json",
|
|
115
105
|
"x-amzn-client-token": input.ClientToken,
|
|
116
106
|
});
|
|
117
107
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-billing-group";
|
|
118
108
|
let body;
|
|
119
|
-
body = JSON.stringify({
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
128
|
-
});
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
110
|
+
AccountGrouping: (_) => (0, smithy_client_1._json)(_),
|
|
111
|
+
ComputationPreference: (_) => (0, smithy_client_1._json)(_),
|
|
112
|
+
Description: [],
|
|
113
|
+
Name: [],
|
|
114
|
+
PrimaryAccountId: [],
|
|
115
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
116
|
+
}));
|
|
129
117
|
return new protocol_http_1.HttpRequest({
|
|
130
118
|
protocol,
|
|
131
119
|
hostname,
|
|
@@ -139,22 +127,20 @@ const se_CreateBillingGroupCommand = async (input, context) => {
|
|
|
139
127
|
exports.se_CreateBillingGroupCommand = se_CreateBillingGroupCommand;
|
|
140
128
|
const se_CreateCustomLineItemCommand = async (input, context) => {
|
|
141
129
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
142
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
130
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
143
131
|
"content-type": "application/json",
|
|
144
132
|
"x-amzn-client-token": input.ClientToken,
|
|
145
133
|
});
|
|
146
134
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-custom-line-item";
|
|
147
135
|
let body;
|
|
148
|
-
body = JSON.stringify({
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
157
|
-
});
|
|
136
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
137
|
+
BillingGroupArn: [],
|
|
138
|
+
BillingPeriodRange: (_) => (0, smithy_client_1._json)(_),
|
|
139
|
+
ChargeDetails: (_) => se_CustomLineItemChargeDetails(_, context),
|
|
140
|
+
Description: [],
|
|
141
|
+
Name: [],
|
|
142
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
143
|
+
}));
|
|
158
144
|
return new protocol_http_1.HttpRequest({
|
|
159
145
|
protocol,
|
|
160
146
|
hostname,
|
|
@@ -168,18 +154,18 @@ const se_CreateCustomLineItemCommand = async (input, context) => {
|
|
|
168
154
|
exports.se_CreateCustomLineItemCommand = se_CreateCustomLineItemCommand;
|
|
169
155
|
const se_CreatePricingPlanCommand = async (input, context) => {
|
|
170
156
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
171
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
157
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
172
158
|
"content-type": "application/json",
|
|
173
159
|
"x-amzn-client-token": input.ClientToken,
|
|
174
160
|
});
|
|
175
161
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-pricing-plan";
|
|
176
162
|
let body;
|
|
177
|
-
body = JSON.stringify({
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
});
|
|
163
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
164
|
+
Description: [],
|
|
165
|
+
Name: [],
|
|
166
|
+
PricingRuleArns: (_) => (0, smithy_client_1._json)(_),
|
|
167
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
168
|
+
}));
|
|
183
169
|
return new protocol_http_1.HttpRequest({
|
|
184
170
|
protocol,
|
|
185
171
|
hostname,
|
|
@@ -193,25 +179,25 @@ const se_CreatePricingPlanCommand = async (input, context) => {
|
|
|
193
179
|
exports.se_CreatePricingPlanCommand = se_CreatePricingPlanCommand;
|
|
194
180
|
const se_CreatePricingRuleCommand = async (input, context) => {
|
|
195
181
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
196
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
182
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
197
183
|
"content-type": "application/json",
|
|
198
184
|
"x-amzn-client-token": input.ClientToken,
|
|
199
185
|
});
|
|
200
186
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-pricing-rule";
|
|
201
187
|
let body;
|
|
202
|
-
body = JSON.stringify({
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
});
|
|
188
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
189
|
+
BillingEntity: [],
|
|
190
|
+
Description: [],
|
|
191
|
+
ModifierPercentage: (_) => (0, smithy_client_1.serializeFloat)(_),
|
|
192
|
+
Name: [],
|
|
193
|
+
Operation: [],
|
|
194
|
+
Scope: [],
|
|
195
|
+
Service: [],
|
|
196
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
197
|
+
Tiering: (_) => (0, smithy_client_1._json)(_),
|
|
198
|
+
Type: [],
|
|
199
|
+
UsageType: [],
|
|
200
|
+
}));
|
|
215
201
|
return new protocol_http_1.HttpRequest({
|
|
216
202
|
protocol,
|
|
217
203
|
hostname,
|
|
@@ -230,9 +216,9 @@ const se_DeleteBillingGroupCommand = async (input, context) => {
|
|
|
230
216
|
};
|
|
231
217
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-billing-group";
|
|
232
218
|
let body;
|
|
233
|
-
body = JSON.stringify({
|
|
234
|
-
|
|
235
|
-
});
|
|
219
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
220
|
+
Arn: [],
|
|
221
|
+
}));
|
|
236
222
|
return new protocol_http_1.HttpRequest({
|
|
237
223
|
protocol,
|
|
238
224
|
hostname,
|
|
@@ -251,12 +237,10 @@ const se_DeleteCustomLineItemCommand = async (input, context) => {
|
|
|
251
237
|
};
|
|
252
238
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-custom-line-item";
|
|
253
239
|
let body;
|
|
254
|
-
body = JSON.stringify({
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}),
|
|
259
|
-
});
|
|
240
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
241
|
+
Arn: [],
|
|
242
|
+
BillingPeriodRange: (_) => (0, smithy_client_1._json)(_),
|
|
243
|
+
}));
|
|
260
244
|
return new protocol_http_1.HttpRequest({
|
|
261
245
|
protocol,
|
|
262
246
|
hostname,
|
|
@@ -275,9 +259,9 @@ const se_DeletePricingPlanCommand = async (input, context) => {
|
|
|
275
259
|
};
|
|
276
260
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-pricing-plan";
|
|
277
261
|
let body;
|
|
278
|
-
body = JSON.stringify({
|
|
279
|
-
|
|
280
|
-
});
|
|
262
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
263
|
+
Arn: [],
|
|
264
|
+
}));
|
|
281
265
|
return new protocol_http_1.HttpRequest({
|
|
282
266
|
protocol,
|
|
283
267
|
hostname,
|
|
@@ -296,9 +280,9 @@ const se_DeletePricingRuleCommand = async (input, context) => {
|
|
|
296
280
|
};
|
|
297
281
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-pricing-rule";
|
|
298
282
|
let body;
|
|
299
|
-
body = JSON.stringify({
|
|
300
|
-
|
|
301
|
-
});
|
|
283
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
284
|
+
Arn: [],
|
|
285
|
+
}));
|
|
302
286
|
return new protocol_http_1.HttpRequest({
|
|
303
287
|
protocol,
|
|
304
288
|
hostname,
|
|
@@ -317,10 +301,10 @@ const se_DisassociateAccountsCommand = async (input, context) => {
|
|
|
317
301
|
};
|
|
318
302
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disassociate-accounts";
|
|
319
303
|
let body;
|
|
320
|
-
body = JSON.stringify({
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
});
|
|
304
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
305
|
+
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
306
|
+
Arn: [],
|
|
307
|
+
}));
|
|
324
308
|
return new protocol_http_1.HttpRequest({
|
|
325
309
|
protocol,
|
|
326
310
|
hostname,
|
|
@@ -339,12 +323,10 @@ const se_DisassociatePricingRulesCommand = async (input, context) => {
|
|
|
339
323
|
};
|
|
340
324
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disassociate-pricing-rules";
|
|
341
325
|
let body;
|
|
342
|
-
body = JSON.stringify({
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}),
|
|
347
|
-
});
|
|
326
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
327
|
+
Arn: [],
|
|
328
|
+
PricingRuleArns: (_) => (0, smithy_client_1._json)(_),
|
|
329
|
+
}));
|
|
348
330
|
return new protocol_http_1.HttpRequest({
|
|
349
331
|
protocol,
|
|
350
332
|
hostname,
|
|
@@ -363,11 +345,11 @@ const se_ListAccountAssociationsCommand = async (input, context) => {
|
|
|
363
345
|
};
|
|
364
346
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-account-associations";
|
|
365
347
|
let body;
|
|
366
|
-
body = JSON.stringify({
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
});
|
|
348
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
349
|
+
BillingPeriod: [],
|
|
350
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
351
|
+
NextToken: [],
|
|
352
|
+
}));
|
|
371
353
|
return new protocol_http_1.HttpRequest({
|
|
372
354
|
protocol,
|
|
373
355
|
hostname,
|
|
@@ -386,12 +368,12 @@ const se_ListBillingGroupCostReportsCommand = async (input, context) => {
|
|
|
386
368
|
};
|
|
387
369
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-billing-group-cost-reports";
|
|
388
370
|
let body;
|
|
389
|
-
body = JSON.stringify({
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
});
|
|
371
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
372
|
+
BillingPeriod: [],
|
|
373
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
374
|
+
MaxResults: [],
|
|
375
|
+
NextToken: [],
|
|
376
|
+
}));
|
|
395
377
|
return new protocol_http_1.HttpRequest({
|
|
396
378
|
protocol,
|
|
397
379
|
hostname,
|
|
@@ -410,12 +392,12 @@ const se_ListBillingGroupsCommand = async (input, context) => {
|
|
|
410
392
|
};
|
|
411
393
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-billing-groups";
|
|
412
394
|
let body;
|
|
413
|
-
body = JSON.stringify({
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
});
|
|
395
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
396
|
+
BillingPeriod: [],
|
|
397
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
398
|
+
MaxResults: [],
|
|
399
|
+
NextToken: [],
|
|
400
|
+
}));
|
|
419
401
|
return new protocol_http_1.HttpRequest({
|
|
420
402
|
protocol,
|
|
421
403
|
hostname,
|
|
@@ -434,12 +416,12 @@ const se_ListCustomLineItemsCommand = async (input, context) => {
|
|
|
434
416
|
};
|
|
435
417
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-custom-line-items";
|
|
436
418
|
let body;
|
|
437
|
-
body = JSON.stringify({
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
});
|
|
419
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
420
|
+
BillingPeriod: [],
|
|
421
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
422
|
+
MaxResults: [],
|
|
423
|
+
NextToken: [],
|
|
424
|
+
}));
|
|
443
425
|
return new protocol_http_1.HttpRequest({
|
|
444
426
|
protocol,
|
|
445
427
|
hostname,
|
|
@@ -458,12 +440,12 @@ const se_ListCustomLineItemVersionsCommand = async (input, context) => {
|
|
|
458
440
|
};
|
|
459
441
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-custom-line-item-versions";
|
|
460
442
|
let body;
|
|
461
|
-
body = JSON.stringify({
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
});
|
|
443
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
444
|
+
Arn: [],
|
|
445
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
446
|
+
MaxResults: [],
|
|
447
|
+
NextToken: [],
|
|
448
|
+
}));
|
|
467
449
|
return new protocol_http_1.HttpRequest({
|
|
468
450
|
protocol,
|
|
469
451
|
hostname,
|
|
@@ -482,12 +464,12 @@ const se_ListPricingPlansCommand = async (input, context) => {
|
|
|
482
464
|
};
|
|
483
465
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-pricing-plans";
|
|
484
466
|
let body;
|
|
485
|
-
body = JSON.stringify({
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
});
|
|
467
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
468
|
+
BillingPeriod: [],
|
|
469
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
470
|
+
MaxResults: [],
|
|
471
|
+
NextToken: [],
|
|
472
|
+
}));
|
|
491
473
|
return new protocol_http_1.HttpRequest({
|
|
492
474
|
protocol,
|
|
493
475
|
hostname,
|
|
@@ -507,12 +489,12 @@ const se_ListPricingPlansAssociatedWithPricingRuleCommand = async (input, contex
|
|
|
507
489
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
508
490
|
"/list-pricing-plans-associated-with-pricing-rule";
|
|
509
491
|
let body;
|
|
510
|
-
body = JSON.stringify({
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
});
|
|
492
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
493
|
+
BillingPeriod: [],
|
|
494
|
+
MaxResults: [],
|
|
495
|
+
NextToken: [],
|
|
496
|
+
PricingRuleArn: [],
|
|
497
|
+
}));
|
|
516
498
|
return new protocol_http_1.HttpRequest({
|
|
517
499
|
protocol,
|
|
518
500
|
hostname,
|
|
@@ -531,12 +513,12 @@ const se_ListPricingRulesCommand = async (input, context) => {
|
|
|
531
513
|
};
|
|
532
514
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-pricing-rules";
|
|
533
515
|
let body;
|
|
534
|
-
body = JSON.stringify({
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
});
|
|
516
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
517
|
+
BillingPeriod: [],
|
|
518
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
519
|
+
MaxResults: [],
|
|
520
|
+
NextToken: [],
|
|
521
|
+
}));
|
|
540
522
|
return new protocol_http_1.HttpRequest({
|
|
541
523
|
protocol,
|
|
542
524
|
hostname,
|
|
@@ -556,12 +538,12 @@ const se_ListPricingRulesAssociatedToPricingPlanCommand = async (input, context)
|
|
|
556
538
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
557
539
|
"/list-pricing-rules-associated-to-pricing-plan";
|
|
558
540
|
let body;
|
|
559
|
-
body = JSON.stringify({
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
});
|
|
541
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
542
|
+
BillingPeriod: [],
|
|
543
|
+
MaxResults: [],
|
|
544
|
+
NextToken: [],
|
|
545
|
+
PricingPlanArn: [],
|
|
546
|
+
}));
|
|
565
547
|
return new protocol_http_1.HttpRequest({
|
|
566
548
|
protocol,
|
|
567
549
|
hostname,
|
|
@@ -581,13 +563,13 @@ const se_ListResourcesAssociatedToCustomLineItemCommand = async (input, context)
|
|
|
581
563
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
582
564
|
"/list-resources-associated-to-custom-line-item";
|
|
583
565
|
let body;
|
|
584
|
-
body = JSON.stringify({
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
});
|
|
566
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
567
|
+
Arn: [],
|
|
568
|
+
BillingPeriod: [],
|
|
569
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
570
|
+
MaxResults: [],
|
|
571
|
+
NextToken: [],
|
|
572
|
+
}));
|
|
591
573
|
return new protocol_http_1.HttpRequest({
|
|
592
574
|
protocol,
|
|
593
575
|
hostname,
|
|
@@ -624,9 +606,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
624
606
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
625
607
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
626
608
|
let body;
|
|
627
|
-
body = JSON.stringify({
|
|
628
|
-
|
|
629
|
-
});
|
|
609
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
610
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
611
|
+
}));
|
|
630
612
|
return new protocol_http_1.HttpRequest({
|
|
631
613
|
protocol,
|
|
632
614
|
hostname,
|
|
@@ -643,7 +625,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
643
625
|
const headers = {};
|
|
644
626
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
645
627
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
646
|
-
const query = map({
|
|
628
|
+
const query = (0, smithy_client_1.map)({
|
|
647
629
|
tagKeys: [
|
|
648
630
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
649
631
|
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
@@ -669,15 +651,13 @@ const se_UpdateBillingGroupCommand = async (input, context) => {
|
|
|
669
651
|
};
|
|
670
652
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-billing-group";
|
|
671
653
|
let body;
|
|
672
|
-
body = JSON.stringify({
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
...(input.Status != null && { Status: input.Status }),
|
|
680
|
-
});
|
|
654
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
655
|
+
Arn: [],
|
|
656
|
+
ComputationPreference: (_) => (0, smithy_client_1._json)(_),
|
|
657
|
+
Description: [],
|
|
658
|
+
Name: [],
|
|
659
|
+
Status: [],
|
|
660
|
+
}));
|
|
681
661
|
return new protocol_http_1.HttpRequest({
|
|
682
662
|
protocol,
|
|
683
663
|
hostname,
|
|
@@ -696,17 +676,13 @@ const se_UpdateCustomLineItemCommand = async (input, context) => {
|
|
|
696
676
|
};
|
|
697
677
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-custom-line-item";
|
|
698
678
|
let body;
|
|
699
|
-
body = JSON.stringify({
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
}),
|
|
707
|
-
...(input.Description != null && { Description: input.Description }),
|
|
708
|
-
...(input.Name != null && { Name: input.Name }),
|
|
709
|
-
});
|
|
679
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
680
|
+
Arn: [],
|
|
681
|
+
BillingPeriodRange: (_) => (0, smithy_client_1._json)(_),
|
|
682
|
+
ChargeDetails: (_) => se_UpdateCustomLineItemChargeDetails(_, context),
|
|
683
|
+
Description: [],
|
|
684
|
+
Name: [],
|
|
685
|
+
}));
|
|
710
686
|
return new protocol_http_1.HttpRequest({
|
|
711
687
|
protocol,
|
|
712
688
|
hostname,
|
|
@@ -725,11 +701,11 @@ const se_UpdatePricingPlanCommand = async (input, context) => {
|
|
|
725
701
|
};
|
|
726
702
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-pricing-plan";
|
|
727
703
|
let body;
|
|
728
|
-
body = JSON.stringify({
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
});
|
|
704
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
705
|
+
Arn: [],
|
|
706
|
+
Description: [],
|
|
707
|
+
Name: [],
|
|
708
|
+
}));
|
|
733
709
|
return new protocol_http_1.HttpRequest({
|
|
734
710
|
protocol,
|
|
735
711
|
hostname,
|
|
@@ -748,14 +724,14 @@ const se_UpdatePricingRuleCommand = async (input, context) => {
|
|
|
748
724
|
};
|
|
749
725
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-pricing-rule";
|
|
750
726
|
let body;
|
|
751
|
-
body = JSON.stringify({
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
});
|
|
727
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
728
|
+
Arn: [],
|
|
729
|
+
Description: [],
|
|
730
|
+
ModifierPercentage: (_) => (0, smithy_client_1.serializeFloat)(_),
|
|
731
|
+
Name: [],
|
|
732
|
+
Tiering: (_) => (0, smithy_client_1._json)(_),
|
|
733
|
+
Type: [],
|
|
734
|
+
}));
|
|
759
735
|
return new protocol_http_1.HttpRequest({
|
|
760
736
|
protocol,
|
|
761
737
|
hostname,
|
|
@@ -771,13 +747,14 @@ const de_AssociateAccountsCommand = async (output, context) => {
|
|
|
771
747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
772
748
|
return de_AssociateAccountsCommandError(output, context);
|
|
773
749
|
}
|
|
774
|
-
const contents = map({
|
|
750
|
+
const contents = (0, smithy_client_1.map)({
|
|
775
751
|
$metadata: deserializeMetadata(output),
|
|
776
752
|
});
|
|
777
753
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
}
|
|
754
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
755
|
+
Arn: smithy_client_1.expectString,
|
|
756
|
+
});
|
|
757
|
+
Object.assign(contents, doc);
|
|
781
758
|
return contents;
|
|
782
759
|
};
|
|
783
760
|
exports.de_AssociateAccountsCommand = de_AssociateAccountsCommand;
|
|
@@ -811,10 +788,9 @@ const de_AssociateAccountsCommandError = async (output, context) => {
|
|
|
811
788
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
812
789
|
default:
|
|
813
790
|
const parsedBody = parsedOutput.body;
|
|
814
|
-
|
|
791
|
+
return throwDefaultError({
|
|
815
792
|
output,
|
|
816
793
|
parsedBody,
|
|
817
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
818
794
|
errorCode,
|
|
819
795
|
});
|
|
820
796
|
}
|
|
@@ -823,13 +799,14 @@ const de_AssociatePricingRulesCommand = async (output, context) => {
|
|
|
823
799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
800
|
return de_AssociatePricingRulesCommandError(output, context);
|
|
825
801
|
}
|
|
826
|
-
const contents = map({
|
|
802
|
+
const contents = (0, smithy_client_1.map)({
|
|
827
803
|
$metadata: deserializeMetadata(output),
|
|
828
804
|
});
|
|
829
805
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
}
|
|
806
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
807
|
+
Arn: smithy_client_1.expectString,
|
|
808
|
+
});
|
|
809
|
+
Object.assign(contents, doc);
|
|
833
810
|
return contents;
|
|
834
811
|
};
|
|
835
812
|
exports.de_AssociatePricingRulesCommand = de_AssociatePricingRulesCommand;
|
|
@@ -863,10 +840,9 @@ const de_AssociatePricingRulesCommandError = async (output, context) => {
|
|
|
863
840
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
864
841
|
default:
|
|
865
842
|
const parsedBody = parsedOutput.body;
|
|
866
|
-
|
|
843
|
+
return throwDefaultError({
|
|
867
844
|
output,
|
|
868
845
|
parsedBody,
|
|
869
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
870
846
|
errorCode,
|
|
871
847
|
});
|
|
872
848
|
}
|
|
@@ -875,16 +851,15 @@ const de_BatchAssociateResourcesToCustomLineItemCommand = async (output, context
|
|
|
875
851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
852
|
return de_BatchAssociateResourcesToCustomLineItemCommandError(output, context);
|
|
877
853
|
}
|
|
878
|
-
const contents = map({
|
|
854
|
+
const contents = (0, smithy_client_1.map)({
|
|
879
855
|
$metadata: deserializeMetadata(output),
|
|
880
856
|
});
|
|
881
857
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
}
|
|
858
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
859
|
+
FailedAssociatedResources: smithy_client_1._json,
|
|
860
|
+
SuccessfullyAssociatedResources: smithy_client_1._json,
|
|
861
|
+
});
|
|
862
|
+
Object.assign(contents, doc);
|
|
888
863
|
return contents;
|
|
889
864
|
};
|
|
890
865
|
exports.de_BatchAssociateResourcesToCustomLineItemCommand = de_BatchAssociateResourcesToCustomLineItemCommand;
|
|
@@ -918,10 +893,9 @@ const de_BatchAssociateResourcesToCustomLineItemCommandError = async (output, co
|
|
|
918
893
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
919
894
|
default:
|
|
920
895
|
const parsedBody = parsedOutput.body;
|
|
921
|
-
|
|
896
|
+
return throwDefaultError({
|
|
922
897
|
output,
|
|
923
898
|
parsedBody,
|
|
924
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
925
899
|
errorCode,
|
|
926
900
|
});
|
|
927
901
|
}
|
|
@@ -930,16 +904,15 @@ const de_BatchDisassociateResourcesFromCustomLineItemCommand = async (output, co
|
|
|
930
904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
931
905
|
return de_BatchDisassociateResourcesFromCustomLineItemCommandError(output, context);
|
|
932
906
|
}
|
|
933
|
-
const contents = map({
|
|
907
|
+
const contents = (0, smithy_client_1.map)({
|
|
934
908
|
$metadata: deserializeMetadata(output),
|
|
935
909
|
});
|
|
936
910
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}
|
|
911
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
912
|
+
FailedDisassociatedResources: smithy_client_1._json,
|
|
913
|
+
SuccessfullyDisassociatedResources: smithy_client_1._json,
|
|
914
|
+
});
|
|
915
|
+
Object.assign(contents, doc);
|
|
943
916
|
return contents;
|
|
944
917
|
};
|
|
945
918
|
exports.de_BatchDisassociateResourcesFromCustomLineItemCommand = de_BatchDisassociateResourcesFromCustomLineItemCommand;
|
|
@@ -970,10 +943,9 @@ const de_BatchDisassociateResourcesFromCustomLineItemCommandError = async (outpu
|
|
|
970
943
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
971
944
|
default:
|
|
972
945
|
const parsedBody = parsedOutput.body;
|
|
973
|
-
|
|
946
|
+
return throwDefaultError({
|
|
974
947
|
output,
|
|
975
948
|
parsedBody,
|
|
976
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
977
949
|
errorCode,
|
|
978
950
|
});
|
|
979
951
|
}
|
|
@@ -982,13 +954,14 @@ const de_CreateBillingGroupCommand = async (output, context) => {
|
|
|
982
954
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
983
955
|
return de_CreateBillingGroupCommandError(output, context);
|
|
984
956
|
}
|
|
985
|
-
const contents = map({
|
|
957
|
+
const contents = (0, smithy_client_1.map)({
|
|
986
958
|
$metadata: deserializeMetadata(output),
|
|
987
959
|
});
|
|
988
960
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
}
|
|
961
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
962
|
+
Arn: smithy_client_1.expectString,
|
|
963
|
+
});
|
|
964
|
+
Object.assign(contents, doc);
|
|
992
965
|
return contents;
|
|
993
966
|
};
|
|
994
967
|
exports.de_CreateBillingGroupCommand = de_CreateBillingGroupCommand;
|
|
@@ -1019,10 +992,9 @@ const de_CreateBillingGroupCommandError = async (output, context) => {
|
|
|
1019
992
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1020
993
|
default:
|
|
1021
994
|
const parsedBody = parsedOutput.body;
|
|
1022
|
-
|
|
995
|
+
return throwDefaultError({
|
|
1023
996
|
output,
|
|
1024
997
|
parsedBody,
|
|
1025
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1026
998
|
errorCode,
|
|
1027
999
|
});
|
|
1028
1000
|
}
|
|
@@ -1031,13 +1003,14 @@ const de_CreateCustomLineItemCommand = async (output, context) => {
|
|
|
1031
1003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
1004
|
return de_CreateCustomLineItemCommandError(output, context);
|
|
1033
1005
|
}
|
|
1034
|
-
const contents = map({
|
|
1006
|
+
const contents = (0, smithy_client_1.map)({
|
|
1035
1007
|
$metadata: deserializeMetadata(output),
|
|
1036
1008
|
});
|
|
1037
1009
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
}
|
|
1010
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1011
|
+
Arn: smithy_client_1.expectString,
|
|
1012
|
+
});
|
|
1013
|
+
Object.assign(contents, doc);
|
|
1041
1014
|
return contents;
|
|
1042
1015
|
};
|
|
1043
1016
|
exports.de_CreateCustomLineItemCommand = de_CreateCustomLineItemCommand;
|
|
@@ -1068,10 +1041,9 @@ const de_CreateCustomLineItemCommandError = async (output, context) => {
|
|
|
1068
1041
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1069
1042
|
default:
|
|
1070
1043
|
const parsedBody = parsedOutput.body;
|
|
1071
|
-
|
|
1044
|
+
return throwDefaultError({
|
|
1072
1045
|
output,
|
|
1073
1046
|
parsedBody,
|
|
1074
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1075
1047
|
errorCode,
|
|
1076
1048
|
});
|
|
1077
1049
|
}
|
|
@@ -1080,13 +1052,14 @@ const de_CreatePricingPlanCommand = async (output, context) => {
|
|
|
1080
1052
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1081
1053
|
return de_CreatePricingPlanCommandError(output, context);
|
|
1082
1054
|
}
|
|
1083
|
-
const contents = map({
|
|
1055
|
+
const contents = (0, smithy_client_1.map)({
|
|
1084
1056
|
$metadata: deserializeMetadata(output),
|
|
1085
1057
|
});
|
|
1086
1058
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
}
|
|
1059
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1060
|
+
Arn: smithy_client_1.expectString,
|
|
1061
|
+
});
|
|
1062
|
+
Object.assign(contents, doc);
|
|
1090
1063
|
return contents;
|
|
1091
1064
|
};
|
|
1092
1065
|
exports.de_CreatePricingPlanCommand = de_CreatePricingPlanCommand;
|
|
@@ -1120,10 +1093,9 @@ const de_CreatePricingPlanCommandError = async (output, context) => {
|
|
|
1120
1093
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1121
1094
|
default:
|
|
1122
1095
|
const parsedBody = parsedOutput.body;
|
|
1123
|
-
|
|
1096
|
+
return throwDefaultError({
|
|
1124
1097
|
output,
|
|
1125
1098
|
parsedBody,
|
|
1126
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1127
1099
|
errorCode,
|
|
1128
1100
|
});
|
|
1129
1101
|
}
|
|
@@ -1132,13 +1104,14 @@ const de_CreatePricingRuleCommand = async (output, context) => {
|
|
|
1132
1104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1133
1105
|
return de_CreatePricingRuleCommandError(output, context);
|
|
1134
1106
|
}
|
|
1135
|
-
const contents = map({
|
|
1107
|
+
const contents = (0, smithy_client_1.map)({
|
|
1136
1108
|
$metadata: deserializeMetadata(output),
|
|
1137
1109
|
});
|
|
1138
1110
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
}
|
|
1111
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1112
|
+
Arn: smithy_client_1.expectString,
|
|
1113
|
+
});
|
|
1114
|
+
Object.assign(contents, doc);
|
|
1142
1115
|
return contents;
|
|
1143
1116
|
};
|
|
1144
1117
|
exports.de_CreatePricingRuleCommand = de_CreatePricingRuleCommand;
|
|
@@ -1169,10 +1142,9 @@ const de_CreatePricingRuleCommandError = async (output, context) => {
|
|
|
1169
1142
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1170
1143
|
default:
|
|
1171
1144
|
const parsedBody = parsedOutput.body;
|
|
1172
|
-
|
|
1145
|
+
return throwDefaultError({
|
|
1173
1146
|
output,
|
|
1174
1147
|
parsedBody,
|
|
1175
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1176
1148
|
errorCode,
|
|
1177
1149
|
});
|
|
1178
1150
|
}
|
|
@@ -1181,13 +1153,14 @@ const de_DeleteBillingGroupCommand = async (output, context) => {
|
|
|
1181
1153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1182
1154
|
return de_DeleteBillingGroupCommandError(output, context);
|
|
1183
1155
|
}
|
|
1184
|
-
const contents = map({
|
|
1156
|
+
const contents = (0, smithy_client_1.map)({
|
|
1185
1157
|
$metadata: deserializeMetadata(output),
|
|
1186
1158
|
});
|
|
1187
1159
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
}
|
|
1160
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1161
|
+
Arn: smithy_client_1.expectString,
|
|
1162
|
+
});
|
|
1163
|
+
Object.assign(contents, doc);
|
|
1191
1164
|
return contents;
|
|
1192
1165
|
};
|
|
1193
1166
|
exports.de_DeleteBillingGroupCommand = de_DeleteBillingGroupCommand;
|
|
@@ -1212,10 +1185,9 @@ const de_DeleteBillingGroupCommandError = async (output, context) => {
|
|
|
1212
1185
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1213
1186
|
default:
|
|
1214
1187
|
const parsedBody = parsedOutput.body;
|
|
1215
|
-
|
|
1188
|
+
return throwDefaultError({
|
|
1216
1189
|
output,
|
|
1217
1190
|
parsedBody,
|
|
1218
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1219
1191
|
errorCode,
|
|
1220
1192
|
});
|
|
1221
1193
|
}
|
|
@@ -1224,13 +1196,14 @@ const de_DeleteCustomLineItemCommand = async (output, context) => {
|
|
|
1224
1196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1225
1197
|
return de_DeleteCustomLineItemCommandError(output, context);
|
|
1226
1198
|
}
|
|
1227
|
-
const contents = map({
|
|
1199
|
+
const contents = (0, smithy_client_1.map)({
|
|
1228
1200
|
$metadata: deserializeMetadata(output),
|
|
1229
1201
|
});
|
|
1230
1202
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
}
|
|
1203
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1204
|
+
Arn: smithy_client_1.expectString,
|
|
1205
|
+
});
|
|
1206
|
+
Object.assign(contents, doc);
|
|
1234
1207
|
return contents;
|
|
1235
1208
|
};
|
|
1236
1209
|
exports.de_DeleteCustomLineItemCommand = de_DeleteCustomLineItemCommand;
|
|
@@ -1258,10 +1231,9 @@ const de_DeleteCustomLineItemCommandError = async (output, context) => {
|
|
|
1258
1231
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1259
1232
|
default:
|
|
1260
1233
|
const parsedBody = parsedOutput.body;
|
|
1261
|
-
|
|
1234
|
+
return throwDefaultError({
|
|
1262
1235
|
output,
|
|
1263
1236
|
parsedBody,
|
|
1264
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1265
1237
|
errorCode,
|
|
1266
1238
|
});
|
|
1267
1239
|
}
|
|
@@ -1270,13 +1242,14 @@ const de_DeletePricingPlanCommand = async (output, context) => {
|
|
|
1270
1242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1271
1243
|
return de_DeletePricingPlanCommandError(output, context);
|
|
1272
1244
|
}
|
|
1273
|
-
const contents = map({
|
|
1245
|
+
const contents = (0, smithy_client_1.map)({
|
|
1274
1246
|
$metadata: deserializeMetadata(output),
|
|
1275
1247
|
});
|
|
1276
1248
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
}
|
|
1249
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1250
|
+
Arn: smithy_client_1.expectString,
|
|
1251
|
+
});
|
|
1252
|
+
Object.assign(contents, doc);
|
|
1280
1253
|
return contents;
|
|
1281
1254
|
};
|
|
1282
1255
|
exports.de_DeletePricingPlanCommand = de_DeletePricingPlanCommand;
|
|
@@ -1304,10 +1277,9 @@ const de_DeletePricingPlanCommandError = async (output, context) => {
|
|
|
1304
1277
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1305
1278
|
default:
|
|
1306
1279
|
const parsedBody = parsedOutput.body;
|
|
1307
|
-
|
|
1280
|
+
return throwDefaultError({
|
|
1308
1281
|
output,
|
|
1309
1282
|
parsedBody,
|
|
1310
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1311
1283
|
errorCode,
|
|
1312
1284
|
});
|
|
1313
1285
|
}
|
|
@@ -1316,13 +1288,14 @@ const de_DeletePricingRuleCommand = async (output, context) => {
|
|
|
1316
1288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1317
1289
|
return de_DeletePricingRuleCommandError(output, context);
|
|
1318
1290
|
}
|
|
1319
|
-
const contents = map({
|
|
1291
|
+
const contents = (0, smithy_client_1.map)({
|
|
1320
1292
|
$metadata: deserializeMetadata(output),
|
|
1321
1293
|
});
|
|
1322
1294
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
}
|
|
1295
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1296
|
+
Arn: smithy_client_1.expectString,
|
|
1297
|
+
});
|
|
1298
|
+
Object.assign(contents, doc);
|
|
1326
1299
|
return contents;
|
|
1327
1300
|
};
|
|
1328
1301
|
exports.de_DeletePricingRuleCommand = de_DeletePricingRuleCommand;
|
|
@@ -1350,10 +1323,9 @@ const de_DeletePricingRuleCommandError = async (output, context) => {
|
|
|
1350
1323
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1351
1324
|
default:
|
|
1352
1325
|
const parsedBody = parsedOutput.body;
|
|
1353
|
-
|
|
1326
|
+
return throwDefaultError({
|
|
1354
1327
|
output,
|
|
1355
1328
|
parsedBody,
|
|
1356
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1357
1329
|
errorCode,
|
|
1358
1330
|
});
|
|
1359
1331
|
}
|
|
@@ -1362,13 +1334,14 @@ const de_DisassociateAccountsCommand = async (output, context) => {
|
|
|
1362
1334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1363
1335
|
return de_DisassociateAccountsCommandError(output, context);
|
|
1364
1336
|
}
|
|
1365
|
-
const contents = map({
|
|
1337
|
+
const contents = (0, smithy_client_1.map)({
|
|
1366
1338
|
$metadata: deserializeMetadata(output),
|
|
1367
1339
|
});
|
|
1368
1340
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
}
|
|
1341
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1342
|
+
Arn: smithy_client_1.expectString,
|
|
1343
|
+
});
|
|
1344
|
+
Object.assign(contents, doc);
|
|
1372
1345
|
return contents;
|
|
1373
1346
|
};
|
|
1374
1347
|
exports.de_DisassociateAccountsCommand = de_DisassociateAccountsCommand;
|
|
@@ -1399,10 +1372,9 @@ const de_DisassociateAccountsCommandError = async (output, context) => {
|
|
|
1399
1372
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1400
1373
|
default:
|
|
1401
1374
|
const parsedBody = parsedOutput.body;
|
|
1402
|
-
|
|
1375
|
+
return throwDefaultError({
|
|
1403
1376
|
output,
|
|
1404
1377
|
parsedBody,
|
|
1405
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1406
1378
|
errorCode,
|
|
1407
1379
|
});
|
|
1408
1380
|
}
|
|
@@ -1411,13 +1383,14 @@ const de_DisassociatePricingRulesCommand = async (output, context) => {
|
|
|
1411
1383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1412
1384
|
return de_DisassociatePricingRulesCommandError(output, context);
|
|
1413
1385
|
}
|
|
1414
|
-
const contents = map({
|
|
1386
|
+
const contents = (0, smithy_client_1.map)({
|
|
1415
1387
|
$metadata: deserializeMetadata(output),
|
|
1416
1388
|
});
|
|
1417
1389
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
}
|
|
1390
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1391
|
+
Arn: smithy_client_1.expectString,
|
|
1392
|
+
});
|
|
1393
|
+
Object.assign(contents, doc);
|
|
1421
1394
|
return contents;
|
|
1422
1395
|
};
|
|
1423
1396
|
exports.de_DisassociatePricingRulesCommand = de_DisassociatePricingRulesCommand;
|
|
@@ -1448,10 +1421,9 @@ const de_DisassociatePricingRulesCommandError = async (output, context) => {
|
|
|
1448
1421
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1449
1422
|
default:
|
|
1450
1423
|
const parsedBody = parsedOutput.body;
|
|
1451
|
-
|
|
1424
|
+
return throwDefaultError({
|
|
1452
1425
|
output,
|
|
1453
1426
|
parsedBody,
|
|
1454
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1455
1427
|
errorCode,
|
|
1456
1428
|
});
|
|
1457
1429
|
}
|
|
@@ -1460,16 +1432,15 @@ const de_ListAccountAssociationsCommand = async (output, context) => {
|
|
|
1460
1432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1461
1433
|
return de_ListAccountAssociationsCommandError(output, context);
|
|
1462
1434
|
}
|
|
1463
|
-
const contents = map({
|
|
1435
|
+
const contents = (0, smithy_client_1.map)({
|
|
1464
1436
|
$metadata: deserializeMetadata(output),
|
|
1465
1437
|
});
|
|
1466
1438
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
}
|
|
1439
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1440
|
+
LinkedAccounts: smithy_client_1._json,
|
|
1441
|
+
NextToken: smithy_client_1.expectString,
|
|
1442
|
+
});
|
|
1443
|
+
Object.assign(contents, doc);
|
|
1473
1444
|
return contents;
|
|
1474
1445
|
};
|
|
1475
1446
|
exports.de_ListAccountAssociationsCommand = de_ListAccountAssociationsCommand;
|
|
@@ -1497,10 +1468,9 @@ const de_ListAccountAssociationsCommandError = async (output, context) => {
|
|
|
1497
1468
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1498
1469
|
default:
|
|
1499
1470
|
const parsedBody = parsedOutput.body;
|
|
1500
|
-
|
|
1471
|
+
return throwDefaultError({
|
|
1501
1472
|
output,
|
|
1502
1473
|
parsedBody,
|
|
1503
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1504
1474
|
errorCode,
|
|
1505
1475
|
});
|
|
1506
1476
|
}
|
|
@@ -1509,16 +1479,15 @@ const de_ListBillingGroupCostReportsCommand = async (output, context) => {
|
|
|
1509
1479
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1510
1480
|
return de_ListBillingGroupCostReportsCommandError(output, context);
|
|
1511
1481
|
}
|
|
1512
|
-
const contents = map({
|
|
1482
|
+
const contents = (0, smithy_client_1.map)({
|
|
1513
1483
|
$metadata: deserializeMetadata(output),
|
|
1514
1484
|
});
|
|
1515
1485
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
}
|
|
1486
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1487
|
+
BillingGroupCostReports: smithy_client_1._json,
|
|
1488
|
+
NextToken: smithy_client_1.expectString,
|
|
1489
|
+
});
|
|
1490
|
+
Object.assign(contents, doc);
|
|
1522
1491
|
return contents;
|
|
1523
1492
|
};
|
|
1524
1493
|
exports.de_ListBillingGroupCostReportsCommand = de_ListBillingGroupCostReportsCommand;
|
|
@@ -1546,10 +1515,9 @@ const de_ListBillingGroupCostReportsCommandError = async (output, context) => {
|
|
|
1546
1515
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1547
1516
|
default:
|
|
1548
1517
|
const parsedBody = parsedOutput.body;
|
|
1549
|
-
|
|
1518
|
+
return throwDefaultError({
|
|
1550
1519
|
output,
|
|
1551
1520
|
parsedBody,
|
|
1552
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1553
1521
|
errorCode,
|
|
1554
1522
|
});
|
|
1555
1523
|
}
|
|
@@ -1558,16 +1526,15 @@ const de_ListBillingGroupsCommand = async (output, context) => {
|
|
|
1558
1526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1559
1527
|
return de_ListBillingGroupsCommandError(output, context);
|
|
1560
1528
|
}
|
|
1561
|
-
const contents = map({
|
|
1529
|
+
const contents = (0, smithy_client_1.map)({
|
|
1562
1530
|
$metadata: deserializeMetadata(output),
|
|
1563
1531
|
});
|
|
1564
1532
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
}
|
|
1533
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1534
|
+
BillingGroups: smithy_client_1._json,
|
|
1535
|
+
NextToken: smithy_client_1.expectString,
|
|
1536
|
+
});
|
|
1537
|
+
Object.assign(contents, doc);
|
|
1571
1538
|
return contents;
|
|
1572
1539
|
};
|
|
1573
1540
|
exports.de_ListBillingGroupsCommand = de_ListBillingGroupsCommand;
|
|
@@ -1595,10 +1562,9 @@ const de_ListBillingGroupsCommandError = async (output, context) => {
|
|
|
1595
1562
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1596
1563
|
default:
|
|
1597
1564
|
const parsedBody = parsedOutput.body;
|
|
1598
|
-
|
|
1565
|
+
return throwDefaultError({
|
|
1599
1566
|
output,
|
|
1600
1567
|
parsedBody,
|
|
1601
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1602
1568
|
errorCode,
|
|
1603
1569
|
});
|
|
1604
1570
|
}
|
|
@@ -1607,16 +1573,15 @@ const de_ListCustomLineItemsCommand = async (output, context) => {
|
|
|
1607
1573
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1608
1574
|
return de_ListCustomLineItemsCommandError(output, context);
|
|
1609
1575
|
}
|
|
1610
|
-
const contents = map({
|
|
1576
|
+
const contents = (0, smithy_client_1.map)({
|
|
1611
1577
|
$metadata: deserializeMetadata(output),
|
|
1612
1578
|
});
|
|
1613
1579
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
}
|
|
1580
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1581
|
+
CustomLineItems: (_) => de_CustomLineItemList(_, context),
|
|
1582
|
+
NextToken: smithy_client_1.expectString,
|
|
1583
|
+
});
|
|
1584
|
+
Object.assign(contents, doc);
|
|
1620
1585
|
return contents;
|
|
1621
1586
|
};
|
|
1622
1587
|
exports.de_ListCustomLineItemsCommand = de_ListCustomLineItemsCommand;
|
|
@@ -1644,10 +1609,9 @@ const de_ListCustomLineItemsCommandError = async (output, context) => {
|
|
|
1644
1609
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1645
1610
|
default:
|
|
1646
1611
|
const parsedBody = parsedOutput.body;
|
|
1647
|
-
|
|
1612
|
+
return throwDefaultError({
|
|
1648
1613
|
output,
|
|
1649
1614
|
parsedBody,
|
|
1650
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1651
1615
|
errorCode,
|
|
1652
1616
|
});
|
|
1653
1617
|
}
|
|
@@ -1656,16 +1620,15 @@ const de_ListCustomLineItemVersionsCommand = async (output, context) => {
|
|
|
1656
1620
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1657
1621
|
return de_ListCustomLineItemVersionsCommandError(output, context);
|
|
1658
1622
|
}
|
|
1659
|
-
const contents = map({
|
|
1623
|
+
const contents = (0, smithy_client_1.map)({
|
|
1660
1624
|
$metadata: deserializeMetadata(output),
|
|
1661
1625
|
});
|
|
1662
1626
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
}
|
|
1627
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1628
|
+
CustomLineItemVersions: (_) => de_CustomLineItemVersionList(_, context),
|
|
1629
|
+
NextToken: smithy_client_1.expectString,
|
|
1630
|
+
});
|
|
1631
|
+
Object.assign(contents, doc);
|
|
1669
1632
|
return contents;
|
|
1670
1633
|
};
|
|
1671
1634
|
exports.de_ListCustomLineItemVersionsCommand = de_ListCustomLineItemVersionsCommand;
|
|
@@ -1690,10 +1653,9 @@ const de_ListCustomLineItemVersionsCommandError = async (output, context) => {
|
|
|
1690
1653
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1691
1654
|
default:
|
|
1692
1655
|
const parsedBody = parsedOutput.body;
|
|
1693
|
-
|
|
1656
|
+
return throwDefaultError({
|
|
1694
1657
|
output,
|
|
1695
1658
|
parsedBody,
|
|
1696
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1697
1659
|
errorCode,
|
|
1698
1660
|
});
|
|
1699
1661
|
}
|
|
@@ -1702,19 +1664,16 @@ const de_ListPricingPlansCommand = async (output, context) => {
|
|
|
1702
1664
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1703
1665
|
return de_ListPricingPlansCommandError(output, context);
|
|
1704
1666
|
}
|
|
1705
|
-
const contents = map({
|
|
1667
|
+
const contents = (0, smithy_client_1.map)({
|
|
1706
1668
|
$metadata: deserializeMetadata(output),
|
|
1707
1669
|
});
|
|
1708
1670
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
if (data.PricingPlans != null) {
|
|
1716
|
-
contents.PricingPlans = de_PricingPlanList(data.PricingPlans, context);
|
|
1717
|
-
}
|
|
1671
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1672
|
+
BillingPeriod: smithy_client_1.expectString,
|
|
1673
|
+
NextToken: smithy_client_1.expectString,
|
|
1674
|
+
PricingPlans: smithy_client_1._json,
|
|
1675
|
+
});
|
|
1676
|
+
Object.assign(contents, doc);
|
|
1718
1677
|
return contents;
|
|
1719
1678
|
};
|
|
1720
1679
|
exports.de_ListPricingPlansCommand = de_ListPricingPlansCommand;
|
|
@@ -1739,10 +1698,9 @@ const de_ListPricingPlansCommandError = async (output, context) => {
|
|
|
1739
1698
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1740
1699
|
default:
|
|
1741
1700
|
const parsedBody = parsedOutput.body;
|
|
1742
|
-
|
|
1701
|
+
return throwDefaultError({
|
|
1743
1702
|
output,
|
|
1744
1703
|
parsedBody,
|
|
1745
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1746
1704
|
errorCode,
|
|
1747
1705
|
});
|
|
1748
1706
|
}
|
|
@@ -1751,22 +1709,17 @@ const de_ListPricingPlansAssociatedWithPricingRuleCommand = async (output, conte
|
|
|
1751
1709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1752
1710
|
return de_ListPricingPlansAssociatedWithPricingRuleCommandError(output, context);
|
|
1753
1711
|
}
|
|
1754
|
-
const contents = map({
|
|
1712
|
+
const contents = (0, smithy_client_1.map)({
|
|
1755
1713
|
$metadata: deserializeMetadata(output),
|
|
1756
1714
|
});
|
|
1757
1715
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
contents.PricingPlanArns = de_PricingPlanArns(data.PricingPlanArns, context);
|
|
1766
|
-
}
|
|
1767
|
-
if (data.PricingRuleArn != null) {
|
|
1768
|
-
contents.PricingRuleArn = (0, smithy_client_1.expectString)(data.PricingRuleArn);
|
|
1769
|
-
}
|
|
1716
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1717
|
+
BillingPeriod: smithy_client_1.expectString,
|
|
1718
|
+
NextToken: smithy_client_1.expectString,
|
|
1719
|
+
PricingPlanArns: smithy_client_1._json,
|
|
1720
|
+
PricingRuleArn: smithy_client_1.expectString,
|
|
1721
|
+
});
|
|
1722
|
+
Object.assign(contents, doc);
|
|
1770
1723
|
return contents;
|
|
1771
1724
|
};
|
|
1772
1725
|
exports.de_ListPricingPlansAssociatedWithPricingRuleCommand = de_ListPricingPlansAssociatedWithPricingRuleCommand;
|
|
@@ -1794,10 +1747,9 @@ const de_ListPricingPlansAssociatedWithPricingRuleCommandError = async (output,
|
|
|
1794
1747
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1795
1748
|
default:
|
|
1796
1749
|
const parsedBody = parsedOutput.body;
|
|
1797
|
-
|
|
1750
|
+
return throwDefaultError({
|
|
1798
1751
|
output,
|
|
1799
1752
|
parsedBody,
|
|
1800
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1801
1753
|
errorCode,
|
|
1802
1754
|
});
|
|
1803
1755
|
}
|
|
@@ -1806,19 +1758,16 @@ const de_ListPricingRulesCommand = async (output, context) => {
|
|
|
1806
1758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1807
1759
|
return de_ListPricingRulesCommandError(output, context);
|
|
1808
1760
|
}
|
|
1809
|
-
const contents = map({
|
|
1761
|
+
const contents = (0, smithy_client_1.map)({
|
|
1810
1762
|
$metadata: deserializeMetadata(output),
|
|
1811
1763
|
});
|
|
1812
1764
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
if (data.PricingRules != null) {
|
|
1820
|
-
contents.PricingRules = de_PricingRuleList(data.PricingRules, context);
|
|
1821
|
-
}
|
|
1765
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1766
|
+
BillingPeriod: smithy_client_1.expectString,
|
|
1767
|
+
NextToken: smithy_client_1.expectString,
|
|
1768
|
+
PricingRules: (_) => de_PricingRuleList(_, context),
|
|
1769
|
+
});
|
|
1770
|
+
Object.assign(contents, doc);
|
|
1822
1771
|
return contents;
|
|
1823
1772
|
};
|
|
1824
1773
|
exports.de_ListPricingRulesCommand = de_ListPricingRulesCommand;
|
|
@@ -1843,10 +1792,9 @@ const de_ListPricingRulesCommandError = async (output, context) => {
|
|
|
1843
1792
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1844
1793
|
default:
|
|
1845
1794
|
const parsedBody = parsedOutput.body;
|
|
1846
|
-
|
|
1795
|
+
return throwDefaultError({
|
|
1847
1796
|
output,
|
|
1848
1797
|
parsedBody,
|
|
1849
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1850
1798
|
errorCode,
|
|
1851
1799
|
});
|
|
1852
1800
|
}
|
|
@@ -1855,22 +1803,17 @@ const de_ListPricingRulesAssociatedToPricingPlanCommand = async (output, context
|
|
|
1855
1803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1856
1804
|
return de_ListPricingRulesAssociatedToPricingPlanCommandError(output, context);
|
|
1857
1805
|
}
|
|
1858
|
-
const contents = map({
|
|
1806
|
+
const contents = (0, smithy_client_1.map)({
|
|
1859
1807
|
$metadata: deserializeMetadata(output),
|
|
1860
1808
|
});
|
|
1861
1809
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
contents.PricingPlanArn = (0, smithy_client_1.expectString)(data.PricingPlanArn);
|
|
1870
|
-
}
|
|
1871
|
-
if (data.PricingRuleArns != null) {
|
|
1872
|
-
contents.PricingRuleArns = de_PricingRuleArns(data.PricingRuleArns, context);
|
|
1873
|
-
}
|
|
1810
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1811
|
+
BillingPeriod: smithy_client_1.expectString,
|
|
1812
|
+
NextToken: smithy_client_1.expectString,
|
|
1813
|
+
PricingPlanArn: smithy_client_1.expectString,
|
|
1814
|
+
PricingRuleArns: smithy_client_1._json,
|
|
1815
|
+
});
|
|
1816
|
+
Object.assign(contents, doc);
|
|
1874
1817
|
return contents;
|
|
1875
1818
|
};
|
|
1876
1819
|
exports.de_ListPricingRulesAssociatedToPricingPlanCommand = de_ListPricingRulesAssociatedToPricingPlanCommand;
|
|
@@ -1898,10 +1841,9 @@ const de_ListPricingRulesAssociatedToPricingPlanCommandError = async (output, co
|
|
|
1898
1841
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1899
1842
|
default:
|
|
1900
1843
|
const parsedBody = parsedOutput.body;
|
|
1901
|
-
|
|
1844
|
+
return throwDefaultError({
|
|
1902
1845
|
output,
|
|
1903
1846
|
parsedBody,
|
|
1904
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1905
1847
|
errorCode,
|
|
1906
1848
|
});
|
|
1907
1849
|
}
|
|
@@ -1910,19 +1852,16 @@ const de_ListResourcesAssociatedToCustomLineItemCommand = async (output, context
|
|
|
1910
1852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1911
1853
|
return de_ListResourcesAssociatedToCustomLineItemCommandError(output, context);
|
|
1912
1854
|
}
|
|
1913
|
-
const contents = map({
|
|
1855
|
+
const contents = (0, smithy_client_1.map)({
|
|
1914
1856
|
$metadata: deserializeMetadata(output),
|
|
1915
1857
|
});
|
|
1916
1858
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
if (data.NextToken != null) {
|
|
1924
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1925
|
-
}
|
|
1859
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1860
|
+
Arn: smithy_client_1.expectString,
|
|
1861
|
+
AssociatedResources: smithy_client_1._json,
|
|
1862
|
+
NextToken: smithy_client_1.expectString,
|
|
1863
|
+
});
|
|
1864
|
+
Object.assign(contents, doc);
|
|
1926
1865
|
return contents;
|
|
1927
1866
|
};
|
|
1928
1867
|
exports.de_ListResourcesAssociatedToCustomLineItemCommand = de_ListResourcesAssociatedToCustomLineItemCommand;
|
|
@@ -1950,10 +1889,9 @@ const de_ListResourcesAssociatedToCustomLineItemCommandError = async (output, co
|
|
|
1950
1889
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1951
1890
|
default:
|
|
1952
1891
|
const parsedBody = parsedOutput.body;
|
|
1953
|
-
|
|
1892
|
+
return throwDefaultError({
|
|
1954
1893
|
output,
|
|
1955
1894
|
parsedBody,
|
|
1956
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1957
1895
|
errorCode,
|
|
1958
1896
|
});
|
|
1959
1897
|
}
|
|
@@ -1962,13 +1900,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1962
1900
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1963
1901
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1964
1902
|
}
|
|
1965
|
-
const contents = map({
|
|
1903
|
+
const contents = (0, smithy_client_1.map)({
|
|
1966
1904
|
$metadata: deserializeMetadata(output),
|
|
1967
1905
|
});
|
|
1968
1906
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
}
|
|
1907
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1908
|
+
Tags: smithy_client_1._json,
|
|
1909
|
+
});
|
|
1910
|
+
Object.assign(contents, doc);
|
|
1972
1911
|
return contents;
|
|
1973
1912
|
};
|
|
1974
1913
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1996,10 +1935,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1996
1935
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1997
1936
|
default:
|
|
1998
1937
|
const parsedBody = parsedOutput.body;
|
|
1999
|
-
|
|
1938
|
+
return throwDefaultError({
|
|
2000
1939
|
output,
|
|
2001
1940
|
parsedBody,
|
|
2002
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
2003
1941
|
errorCode,
|
|
2004
1942
|
});
|
|
2005
1943
|
}
|
|
@@ -2008,7 +1946,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2008
1946
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2009
1947
|
return de_TagResourceCommandError(output, context);
|
|
2010
1948
|
}
|
|
2011
|
-
const contents = map({
|
|
1949
|
+
const contents = (0, smithy_client_1.map)({
|
|
2012
1950
|
$metadata: deserializeMetadata(output),
|
|
2013
1951
|
});
|
|
2014
1952
|
await collectBody(output.body, context);
|
|
@@ -2039,10 +1977,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2039
1977
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2040
1978
|
default:
|
|
2041
1979
|
const parsedBody = parsedOutput.body;
|
|
2042
|
-
|
|
1980
|
+
return throwDefaultError({
|
|
2043
1981
|
output,
|
|
2044
1982
|
parsedBody,
|
|
2045
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
2046
1983
|
errorCode,
|
|
2047
1984
|
});
|
|
2048
1985
|
}
|
|
@@ -2051,7 +1988,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2051
1988
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2052
1989
|
return de_UntagResourceCommandError(output, context);
|
|
2053
1990
|
}
|
|
2054
|
-
const contents = map({
|
|
1991
|
+
const contents = (0, smithy_client_1.map)({
|
|
2055
1992
|
$metadata: deserializeMetadata(output),
|
|
2056
1993
|
});
|
|
2057
1994
|
await collectBody(output.body, context);
|
|
@@ -2082,10 +2019,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2082
2019
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2083
2020
|
default:
|
|
2084
2021
|
const parsedBody = parsedOutput.body;
|
|
2085
|
-
|
|
2022
|
+
return throwDefaultError({
|
|
2086
2023
|
output,
|
|
2087
2024
|
parsedBody,
|
|
2088
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
2089
2025
|
errorCode,
|
|
2090
2026
|
});
|
|
2091
2027
|
}
|
|
@@ -2094,37 +2030,22 @@ const de_UpdateBillingGroupCommand = async (output, context) => {
|
|
|
2094
2030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2095
2031
|
return de_UpdateBillingGroupCommandError(output, context);
|
|
2096
2032
|
}
|
|
2097
|
-
const contents = map({
|
|
2033
|
+
const contents = (0, smithy_client_1.map)({
|
|
2098
2034
|
$metadata: deserializeMetadata(output),
|
|
2099
2035
|
});
|
|
2100
2036
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
if (data.PricingPlanArn != null) {
|
|
2114
|
-
contents.PricingPlanArn = (0, smithy_client_1.expectString)(data.PricingPlanArn);
|
|
2115
|
-
}
|
|
2116
|
-
if (data.PrimaryAccountId != null) {
|
|
2117
|
-
contents.PrimaryAccountId = (0, smithy_client_1.expectString)(data.PrimaryAccountId);
|
|
2118
|
-
}
|
|
2119
|
-
if (data.Size != null) {
|
|
2120
|
-
contents.Size = (0, smithy_client_1.expectLong)(data.Size);
|
|
2121
|
-
}
|
|
2122
|
-
if (data.Status != null) {
|
|
2123
|
-
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
2124
|
-
}
|
|
2125
|
-
if (data.StatusReason != null) {
|
|
2126
|
-
contents.StatusReason = (0, smithy_client_1.expectString)(data.StatusReason);
|
|
2127
|
-
}
|
|
2037
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2038
|
+
Arn: smithy_client_1.expectString,
|
|
2039
|
+
Description: smithy_client_1.expectString,
|
|
2040
|
+
LastModifiedTime: smithy_client_1.expectLong,
|
|
2041
|
+
Name: smithy_client_1.expectString,
|
|
2042
|
+
PricingPlanArn: smithy_client_1.expectString,
|
|
2043
|
+
PrimaryAccountId: smithy_client_1.expectString,
|
|
2044
|
+
Size: smithy_client_1.expectLong,
|
|
2045
|
+
Status: smithy_client_1.expectString,
|
|
2046
|
+
StatusReason: smithy_client_1.expectString,
|
|
2047
|
+
});
|
|
2048
|
+
Object.assign(contents, doc);
|
|
2128
2049
|
return contents;
|
|
2129
2050
|
};
|
|
2130
2051
|
exports.de_UpdateBillingGroupCommand = de_UpdateBillingGroupCommand;
|
|
@@ -2155,10 +2076,9 @@ const de_UpdateBillingGroupCommandError = async (output, context) => {
|
|
|
2155
2076
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2156
2077
|
default:
|
|
2157
2078
|
const parsedBody = parsedOutput.body;
|
|
2158
|
-
|
|
2079
|
+
return throwDefaultError({
|
|
2159
2080
|
output,
|
|
2160
2081
|
parsedBody,
|
|
2161
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
2162
2082
|
errorCode,
|
|
2163
2083
|
});
|
|
2164
2084
|
}
|
|
@@ -2167,31 +2087,20 @@ const de_UpdateCustomLineItemCommand = async (output, context) => {
|
|
|
2167
2087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2168
2088
|
return de_UpdateCustomLineItemCommandError(output, context);
|
|
2169
2089
|
}
|
|
2170
|
-
const contents = map({
|
|
2090
|
+
const contents = (0, smithy_client_1.map)({
|
|
2171
2091
|
$metadata: deserializeMetadata(output),
|
|
2172
2092
|
});
|
|
2173
2093
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2184
|
-
contents.ChargeDetails = de_ListCustomLineItemChargeDetails(data.ChargeDetails, context);
|
|
2185
|
-
}
|
|
2186
|
-
if (data.Description != null) {
|
|
2187
|
-
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
2188
|
-
}
|
|
2189
|
-
if (data.LastModifiedTime != null) {
|
|
2190
|
-
contents.LastModifiedTime = (0, smithy_client_1.expectLong)(data.LastModifiedTime);
|
|
2191
|
-
}
|
|
2192
|
-
if (data.Name != null) {
|
|
2193
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
2194
|
-
}
|
|
2094
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2095
|
+
Arn: smithy_client_1.expectString,
|
|
2096
|
+
AssociationSize: smithy_client_1.expectLong,
|
|
2097
|
+
BillingGroupArn: smithy_client_1.expectString,
|
|
2098
|
+
ChargeDetails: (_) => de_ListCustomLineItemChargeDetails(_, context),
|
|
2099
|
+
Description: smithy_client_1.expectString,
|
|
2100
|
+
LastModifiedTime: smithy_client_1.expectLong,
|
|
2101
|
+
Name: smithy_client_1.expectString,
|
|
2102
|
+
});
|
|
2103
|
+
Object.assign(contents, doc);
|
|
2195
2104
|
return contents;
|
|
2196
2105
|
};
|
|
2197
2106
|
exports.de_UpdateCustomLineItemCommand = de_UpdateCustomLineItemCommand;
|
|
@@ -2219,10 +2128,9 @@ const de_UpdateCustomLineItemCommandError = async (output, context) => {
|
|
|
2219
2128
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2220
2129
|
default:
|
|
2221
2130
|
const parsedBody = parsedOutput.body;
|
|
2222
|
-
|
|
2131
|
+
return throwDefaultError({
|
|
2223
2132
|
output,
|
|
2224
2133
|
parsedBody,
|
|
2225
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
2226
2134
|
errorCode,
|
|
2227
2135
|
});
|
|
2228
2136
|
}
|
|
@@ -2231,25 +2139,18 @@ const de_UpdatePricingPlanCommand = async (output, context) => {
|
|
|
2231
2139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2232
2140
|
return de_UpdatePricingPlanCommandError(output, context);
|
|
2233
2141
|
}
|
|
2234
|
-
const contents = map({
|
|
2142
|
+
const contents = (0, smithy_client_1.map)({
|
|
2235
2143
|
$metadata: deserializeMetadata(output),
|
|
2236
2144
|
});
|
|
2237
2145
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
}
|
|
2247
|
-
if (data.Name != null) {
|
|
2248
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
2249
|
-
}
|
|
2250
|
-
if (data.Size != null) {
|
|
2251
|
-
contents.Size = (0, smithy_client_1.expectLong)(data.Size);
|
|
2252
|
-
}
|
|
2146
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2147
|
+
Arn: smithy_client_1.expectString,
|
|
2148
|
+
Description: smithy_client_1.expectString,
|
|
2149
|
+
LastModifiedTime: smithy_client_1.expectLong,
|
|
2150
|
+
Name: smithy_client_1.expectString,
|
|
2151
|
+
Size: smithy_client_1.expectLong,
|
|
2152
|
+
});
|
|
2153
|
+
Object.assign(contents, doc);
|
|
2253
2154
|
return contents;
|
|
2254
2155
|
};
|
|
2255
2156
|
exports.de_UpdatePricingPlanCommand = de_UpdatePricingPlanCommand;
|
|
@@ -2280,10 +2181,9 @@ const de_UpdatePricingPlanCommandError = async (output, context) => {
|
|
|
2280
2181
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2281
2182
|
default:
|
|
2282
2183
|
const parsedBody = parsedOutput.body;
|
|
2283
|
-
|
|
2184
|
+
return throwDefaultError({
|
|
2284
2185
|
output,
|
|
2285
2186
|
parsedBody,
|
|
2286
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
2287
2187
|
errorCode,
|
|
2288
2188
|
});
|
|
2289
2189
|
}
|
|
@@ -2292,49 +2192,26 @@ const de_UpdatePricingRuleCommand = async (output, context) => {
|
|
|
2292
2192
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2293
2193
|
return de_UpdatePricingRuleCommandError(output, context);
|
|
2294
2194
|
}
|
|
2295
|
-
const contents = map({
|
|
2195
|
+
const contents = (0, smithy_client_1.map)({
|
|
2296
2196
|
$metadata: deserializeMetadata(output),
|
|
2297
2197
|
});
|
|
2298
2198
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
}
|
|
2314
|
-
|
|
2315
|
-
contents.ModifierPercentage = (0, smithy_client_1.limitedParseDouble)(data.ModifierPercentage);
|
|
2316
|
-
}
|
|
2317
|
-
if (data.Name != null) {
|
|
2318
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
2319
|
-
}
|
|
2320
|
-
if (data.Operation != null) {
|
|
2321
|
-
contents.Operation = (0, smithy_client_1.expectString)(data.Operation);
|
|
2322
|
-
}
|
|
2323
|
-
if (data.Scope != null) {
|
|
2324
|
-
contents.Scope = (0, smithy_client_1.expectString)(data.Scope);
|
|
2325
|
-
}
|
|
2326
|
-
if (data.Service != null) {
|
|
2327
|
-
contents.Service = (0, smithy_client_1.expectString)(data.Service);
|
|
2328
|
-
}
|
|
2329
|
-
if (data.Tiering != null) {
|
|
2330
|
-
contents.Tiering = de_UpdateTieringInput(data.Tiering, context);
|
|
2331
|
-
}
|
|
2332
|
-
if (data.Type != null) {
|
|
2333
|
-
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
2334
|
-
}
|
|
2335
|
-
if (data.UsageType != null) {
|
|
2336
|
-
contents.UsageType = (0, smithy_client_1.expectString)(data.UsageType);
|
|
2337
|
-
}
|
|
2199
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2200
|
+
Arn: smithy_client_1.expectString,
|
|
2201
|
+
AssociatedPricingPlanCount: smithy_client_1.expectLong,
|
|
2202
|
+
BillingEntity: smithy_client_1.expectString,
|
|
2203
|
+
Description: smithy_client_1.expectString,
|
|
2204
|
+
LastModifiedTime: smithy_client_1.expectLong,
|
|
2205
|
+
ModifierPercentage: smithy_client_1.limitedParseDouble,
|
|
2206
|
+
Name: smithy_client_1.expectString,
|
|
2207
|
+
Operation: smithy_client_1.expectString,
|
|
2208
|
+
Scope: smithy_client_1.expectString,
|
|
2209
|
+
Service: smithy_client_1.expectString,
|
|
2210
|
+
Tiering: smithy_client_1._json,
|
|
2211
|
+
Type: smithy_client_1.expectString,
|
|
2212
|
+
UsageType: smithy_client_1.expectString,
|
|
2213
|
+
});
|
|
2214
|
+
Object.assign(contents, doc);
|
|
2338
2215
|
return contents;
|
|
2339
2216
|
};
|
|
2340
2217
|
exports.de_UpdatePricingRuleCommand = de_UpdatePricingRuleCommand;
|
|
@@ -2365,21 +2242,21 @@ const de_UpdatePricingRuleCommandError = async (output, context) => {
|
|
|
2365
2242
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2366
2243
|
default:
|
|
2367
2244
|
const parsedBody = parsedOutput.body;
|
|
2368
|
-
|
|
2245
|
+
return throwDefaultError({
|
|
2369
2246
|
output,
|
|
2370
2247
|
parsedBody,
|
|
2371
|
-
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
2372
2248
|
errorCode,
|
|
2373
2249
|
});
|
|
2374
2250
|
}
|
|
2375
2251
|
};
|
|
2376
|
-
const
|
|
2252
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(BillingconductorServiceException_1.BillingconductorServiceException);
|
|
2377
2253
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2378
|
-
const contents = map({});
|
|
2254
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2379
2255
|
const data = parsedOutput.body;
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
}
|
|
2256
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2257
|
+
Message: smithy_client_1.expectString,
|
|
2258
|
+
});
|
|
2259
|
+
Object.assign(contents, doc);
|
|
2383
2260
|
const exception = new models_0_1.AccessDeniedException({
|
|
2384
2261
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2385
2262
|
...contents,
|
|
@@ -2387,20 +2264,15 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2387
2264
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2388
2265
|
};
|
|
2389
2266
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2390
|
-
const contents = map({});
|
|
2267
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2391
2268
|
const data = parsedOutput.body;
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
}
|
|
2398
|
-
|
|
2399
|
-
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
2400
|
-
}
|
|
2401
|
-
if (data.ResourceType != null) {
|
|
2402
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2403
|
-
}
|
|
2269
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2270
|
+
Message: smithy_client_1.expectString,
|
|
2271
|
+
Reason: smithy_client_1.expectString,
|
|
2272
|
+
ResourceId: smithy_client_1.expectString,
|
|
2273
|
+
ResourceType: smithy_client_1.expectString,
|
|
2274
|
+
});
|
|
2275
|
+
Object.assign(contents, doc);
|
|
2404
2276
|
const exception = new models_0_1.ConflictException({
|
|
2405
2277
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2406
2278
|
...contents,
|
|
@@ -2408,16 +2280,17 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2408
2280
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2409
2281
|
};
|
|
2410
2282
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2411
|
-
const contents = map({
|
|
2283
|
+
const contents = (0, smithy_client_1.map)({
|
|
2412
2284
|
RetryAfterSeconds: [
|
|
2413
2285
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2414
2286
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2415
2287
|
],
|
|
2416
2288
|
});
|
|
2417
2289
|
const data = parsedOutput.body;
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
}
|
|
2290
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2291
|
+
Message: smithy_client_1.expectString,
|
|
2292
|
+
});
|
|
2293
|
+
Object.assign(contents, doc);
|
|
2421
2294
|
const exception = new models_0_1.InternalServerException({
|
|
2422
2295
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2423
2296
|
...contents,
|
|
@@ -2425,17 +2298,14 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2425
2298
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2426
2299
|
};
|
|
2427
2300
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2428
|
-
const contents = map({});
|
|
2301
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2429
2302
|
const data = parsedOutput.body;
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
if (data.ResourceType != null) {
|
|
2437
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2438
|
-
}
|
|
2303
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2304
|
+
Message: smithy_client_1.expectString,
|
|
2305
|
+
ResourceId: smithy_client_1.expectString,
|
|
2306
|
+
ResourceType: smithy_client_1.expectString,
|
|
2307
|
+
});
|
|
2308
|
+
Object.assign(contents, doc);
|
|
2439
2309
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2440
2310
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2441
2311
|
...contents,
|
|
@@ -2443,23 +2313,16 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2443
2313
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2444
2314
|
};
|
|
2445
2315
|
const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2446
|
-
const contents = map({});
|
|
2316
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2447
2317
|
const data = parsedOutput.body;
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
}
|
|
2457
|
-
if (data.ResourceType != null) {
|
|
2458
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2459
|
-
}
|
|
2460
|
-
if (data.ServiceCode != null) {
|
|
2461
|
-
contents.ServiceCode = (0, smithy_client_1.expectString)(data.ServiceCode);
|
|
2462
|
-
}
|
|
2318
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2319
|
+
LimitCode: smithy_client_1.expectString,
|
|
2320
|
+
Message: smithy_client_1.expectString,
|
|
2321
|
+
ResourceId: smithy_client_1.expectString,
|
|
2322
|
+
ResourceType: smithy_client_1.expectString,
|
|
2323
|
+
ServiceCode: smithy_client_1.expectString,
|
|
2324
|
+
});
|
|
2325
|
+
Object.assign(contents, doc);
|
|
2463
2326
|
const exception = new models_0_1.ServiceLimitExceededException({
|
|
2464
2327
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2465
2328
|
...contents,
|
|
@@ -2467,16 +2330,17 @@ const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2467
2330
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2468
2331
|
};
|
|
2469
2332
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2470
|
-
const contents = map({
|
|
2333
|
+
const contents = (0, smithy_client_1.map)({
|
|
2471
2334
|
RetryAfterSeconds: [
|
|
2472
2335
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2473
2336
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2474
2337
|
],
|
|
2475
2338
|
});
|
|
2476
2339
|
const data = parsedOutput.body;
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
}
|
|
2340
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2341
|
+
Message: smithy_client_1.expectString,
|
|
2342
|
+
});
|
|
2343
|
+
Object.assign(contents, doc);
|
|
2480
2344
|
const exception = new models_0_1.ThrottlingException({
|
|
2481
2345
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2482
2346
|
...contents,
|
|
@@ -2484,574 +2348,143 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2484
2348
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2485
2349
|
};
|
|
2486
2350
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2487
|
-
const contents = map({});
|
|
2351
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2488
2352
|
const data = parsedOutput.body;
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
if (data.Reason != null) {
|
|
2496
|
-
contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
|
|
2497
|
-
}
|
|
2353
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2354
|
+
Fields: smithy_client_1._json,
|
|
2355
|
+
Message: smithy_client_1.expectString,
|
|
2356
|
+
Reason: smithy_client_1.expectString,
|
|
2357
|
+
});
|
|
2358
|
+
Object.assign(contents, doc);
|
|
2498
2359
|
const exception = new models_0_1.ValidationException({
|
|
2499
2360
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2500
2361
|
...contents,
|
|
2501
2362
|
});
|
|
2502
2363
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2503
2364
|
};
|
|
2504
|
-
const se_AccountGrouping = (input, context) => {
|
|
2505
|
-
return {
|
|
2506
|
-
...(input.LinkedAccountIds != null && { LinkedAccountIds: se_AccountIdList(input.LinkedAccountIds, context) }),
|
|
2507
|
-
};
|
|
2508
|
-
};
|
|
2509
|
-
const se_AccountIdFilterList = (input, context) => {
|
|
2510
|
-
return input
|
|
2511
|
-
.filter((e) => e != null)
|
|
2512
|
-
.map((entry) => {
|
|
2513
|
-
return entry;
|
|
2514
|
-
});
|
|
2515
|
-
};
|
|
2516
|
-
const se_AccountIdList = (input, context) => {
|
|
2517
|
-
return input
|
|
2518
|
-
.filter((e) => e != null)
|
|
2519
|
-
.map((entry) => {
|
|
2520
|
-
return entry;
|
|
2521
|
-
});
|
|
2522
|
-
};
|
|
2523
|
-
const se_BillingGroupArnList = (input, context) => {
|
|
2524
|
-
return input
|
|
2525
|
-
.filter((e) => e != null)
|
|
2526
|
-
.map((entry) => {
|
|
2527
|
-
return entry;
|
|
2528
|
-
});
|
|
2529
|
-
};
|
|
2530
|
-
const se_BillingGroupStatusList = (input, context) => {
|
|
2531
|
-
return input
|
|
2532
|
-
.filter((e) => e != null)
|
|
2533
|
-
.map((entry) => {
|
|
2534
|
-
return entry;
|
|
2535
|
-
});
|
|
2536
|
-
};
|
|
2537
|
-
const se_ComputationPreference = (input, context) => {
|
|
2538
|
-
return {
|
|
2539
|
-
...(input.PricingPlanArn != null && { PricingPlanArn: input.PricingPlanArn }),
|
|
2540
|
-
};
|
|
2541
|
-
};
|
|
2542
|
-
const se_CreateFreeTierConfig = (input, context) => {
|
|
2543
|
-
return {
|
|
2544
|
-
...(input.Activated != null && { Activated: input.Activated }),
|
|
2545
|
-
};
|
|
2546
|
-
};
|
|
2547
|
-
const se_CreateTieringInput = (input, context) => {
|
|
2548
|
-
return {
|
|
2549
|
-
...(input.FreeTier != null && { FreeTier: se_CreateFreeTierConfig(input.FreeTier, context) }),
|
|
2550
|
-
};
|
|
2551
|
-
};
|
|
2552
|
-
const se_CustomLineItemArns = (input, context) => {
|
|
2553
|
-
return input
|
|
2554
|
-
.filter((e) => e != null)
|
|
2555
|
-
.map((entry) => {
|
|
2556
|
-
return entry;
|
|
2557
|
-
});
|
|
2558
|
-
};
|
|
2559
|
-
const se_CustomLineItemAssociationsList = (input, context) => {
|
|
2560
|
-
return input
|
|
2561
|
-
.filter((e) => e != null)
|
|
2562
|
-
.map((entry) => {
|
|
2563
|
-
return entry;
|
|
2564
|
-
});
|
|
2565
|
-
};
|
|
2566
|
-
const se_CustomLineItemBatchAssociationsList = (input, context) => {
|
|
2567
|
-
return input
|
|
2568
|
-
.filter((e) => e != null)
|
|
2569
|
-
.map((entry) => {
|
|
2570
|
-
return entry;
|
|
2571
|
-
});
|
|
2572
|
-
};
|
|
2573
|
-
const se_CustomLineItemBatchDisassociationsList = (input, context) => {
|
|
2574
|
-
return input
|
|
2575
|
-
.filter((e) => e != null)
|
|
2576
|
-
.map((entry) => {
|
|
2577
|
-
return entry;
|
|
2578
|
-
});
|
|
2579
|
-
};
|
|
2580
|
-
const se_CustomLineItemBillingPeriodRange = (input, context) => {
|
|
2581
|
-
return {
|
|
2582
|
-
...(input.ExclusiveEndBillingPeriod != null && { ExclusiveEndBillingPeriod: input.ExclusiveEndBillingPeriod }),
|
|
2583
|
-
...(input.InclusiveStartBillingPeriod != null && {
|
|
2584
|
-
InclusiveStartBillingPeriod: input.InclusiveStartBillingPeriod,
|
|
2585
|
-
}),
|
|
2586
|
-
};
|
|
2587
|
-
};
|
|
2588
2365
|
const se_CustomLineItemChargeDetails = (input, context) => {
|
|
2589
|
-
return {
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2595
|
-
};
|
|
2366
|
+
return (0, smithy_client_1.take)(input, {
|
|
2367
|
+
Flat: (_) => se_CustomLineItemFlatChargeDetails(_, context),
|
|
2368
|
+
Percentage: (_) => se_CustomLineItemPercentageChargeDetails(_, context),
|
|
2369
|
+
Type: [],
|
|
2370
|
+
});
|
|
2596
2371
|
};
|
|
2597
2372
|
const se_CustomLineItemFlatChargeDetails = (input, context) => {
|
|
2598
|
-
return {
|
|
2599
|
-
|
|
2600
|
-
};
|
|
2601
|
-
};
|
|
2602
|
-
const se_CustomLineItemNameList = (input, context) => {
|
|
2603
|
-
return input
|
|
2604
|
-
.filter((e) => e != null)
|
|
2605
|
-
.map((entry) => {
|
|
2606
|
-
return entry;
|
|
2373
|
+
return (0, smithy_client_1.take)(input, {
|
|
2374
|
+
ChargeValue: smithy_client_1.serializeFloat,
|
|
2607
2375
|
});
|
|
2608
2376
|
};
|
|
2609
2377
|
const se_CustomLineItemPercentageChargeDetails = (input, context) => {
|
|
2610
|
-
return {
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
}),
|
|
2614
|
-
...(input.PercentageValue != null && { PercentageValue: (0, smithy_client_1.serializeFloat)(input.PercentageValue) }),
|
|
2615
|
-
};
|
|
2616
|
-
};
|
|
2617
|
-
const se_ListAccountAssociationsFilter = (input, context) => {
|
|
2618
|
-
return {
|
|
2619
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
2620
|
-
...(input.AccountIds != null && { AccountIds: se_AccountIdFilterList(input.AccountIds, context) }),
|
|
2621
|
-
...(input.Association != null && { Association: input.Association }),
|
|
2622
|
-
};
|
|
2623
|
-
};
|
|
2624
|
-
const se_ListBillingGroupCostReportsFilter = (input, context) => {
|
|
2625
|
-
return {
|
|
2626
|
-
...(input.BillingGroupArns != null && {
|
|
2627
|
-
BillingGroupArns: se_BillingGroupArnList(input.BillingGroupArns, context),
|
|
2628
|
-
}),
|
|
2629
|
-
};
|
|
2630
|
-
};
|
|
2631
|
-
const se_ListBillingGroupsFilter = (input, context) => {
|
|
2632
|
-
return {
|
|
2633
|
-
...(input.Arns != null && { Arns: se_BillingGroupArnList(input.Arns, context) }),
|
|
2634
|
-
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
2635
|
-
...(input.Statuses != null && { Statuses: se_BillingGroupStatusList(input.Statuses, context) }),
|
|
2636
|
-
};
|
|
2637
|
-
};
|
|
2638
|
-
const se_ListCustomLineItemsFilter = (input, context) => {
|
|
2639
|
-
return {
|
|
2640
|
-
...(input.Arns != null && { Arns: se_CustomLineItemArns(input.Arns, context) }),
|
|
2641
|
-
...(input.BillingGroups != null && { BillingGroups: se_BillingGroupArnList(input.BillingGroups, context) }),
|
|
2642
|
-
...(input.Names != null && { Names: se_CustomLineItemNameList(input.Names, context) }),
|
|
2643
|
-
};
|
|
2644
|
-
};
|
|
2645
|
-
const se_ListCustomLineItemVersionsBillingPeriodRangeFilter = (input, context) => {
|
|
2646
|
-
return {
|
|
2647
|
-
...(input.EndBillingPeriod != null && { EndBillingPeriod: input.EndBillingPeriod }),
|
|
2648
|
-
...(input.StartBillingPeriod != null && { StartBillingPeriod: input.StartBillingPeriod }),
|
|
2649
|
-
};
|
|
2650
|
-
};
|
|
2651
|
-
const se_ListCustomLineItemVersionsFilter = (input, context) => {
|
|
2652
|
-
return {
|
|
2653
|
-
...(input.BillingPeriodRange != null && {
|
|
2654
|
-
BillingPeriodRange: se_ListCustomLineItemVersionsBillingPeriodRangeFilter(input.BillingPeriodRange, context),
|
|
2655
|
-
}),
|
|
2656
|
-
};
|
|
2657
|
-
};
|
|
2658
|
-
const se_ListPricingPlansFilter = (input, context) => {
|
|
2659
|
-
return {
|
|
2660
|
-
...(input.Arns != null && { Arns: se_PricingPlanArns(input.Arns, context) }),
|
|
2661
|
-
};
|
|
2662
|
-
};
|
|
2663
|
-
const se_ListPricingRulesFilter = (input, context) => {
|
|
2664
|
-
return {
|
|
2665
|
-
...(input.Arns != null && { Arns: se_PricingRuleArns(input.Arns, context) }),
|
|
2666
|
-
};
|
|
2667
|
-
};
|
|
2668
|
-
const se_ListResourcesAssociatedToCustomLineItemFilter = (input, context) => {
|
|
2669
|
-
return {
|
|
2670
|
-
...(input.Relationship != null && { Relationship: input.Relationship }),
|
|
2671
|
-
};
|
|
2672
|
-
};
|
|
2673
|
-
const se_PricingPlanArns = (input, context) => {
|
|
2674
|
-
return input
|
|
2675
|
-
.filter((e) => e != null)
|
|
2676
|
-
.map((entry) => {
|
|
2677
|
-
return entry;
|
|
2678
|
-
});
|
|
2679
|
-
};
|
|
2680
|
-
const se_PricingRuleArns = (input, context) => {
|
|
2681
|
-
return input
|
|
2682
|
-
.filter((e) => e != null)
|
|
2683
|
-
.map((entry) => {
|
|
2684
|
-
return entry;
|
|
2685
|
-
});
|
|
2686
|
-
};
|
|
2687
|
-
const se_PricingRuleArnsInput = (input, context) => {
|
|
2688
|
-
return input
|
|
2689
|
-
.filter((e) => e != null)
|
|
2690
|
-
.map((entry) => {
|
|
2691
|
-
return entry;
|
|
2692
|
-
});
|
|
2693
|
-
};
|
|
2694
|
-
const se_PricingRuleArnsNonEmptyInput = (input, context) => {
|
|
2695
|
-
return input
|
|
2696
|
-
.filter((e) => e != null)
|
|
2697
|
-
.map((entry) => {
|
|
2698
|
-
return entry;
|
|
2378
|
+
return (0, smithy_client_1.take)(input, {
|
|
2379
|
+
AssociatedValues: smithy_client_1._json,
|
|
2380
|
+
PercentageValue: smithy_client_1.serializeFloat,
|
|
2699
2381
|
});
|
|
2700
2382
|
};
|
|
2701
|
-
const se_TagMap = (input, context) => {
|
|
2702
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2703
|
-
if (value === null) {
|
|
2704
|
-
return acc;
|
|
2705
|
-
}
|
|
2706
|
-
acc[key] = value;
|
|
2707
|
-
return acc;
|
|
2708
|
-
}, {});
|
|
2709
|
-
};
|
|
2710
2383
|
const se_UpdateCustomLineItemChargeDetails = (input, context) => {
|
|
2711
|
-
return {
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
Percentage: se_UpdateCustomLineItemPercentageChargeDetails(input.Percentage, context),
|
|
2715
|
-
}),
|
|
2716
|
-
};
|
|
2717
|
-
};
|
|
2718
|
-
const se_UpdateCustomLineItemFlatChargeDetails = (input, context) => {
|
|
2719
|
-
return {
|
|
2720
|
-
...(input.ChargeValue != null && { ChargeValue: (0, smithy_client_1.serializeFloat)(input.ChargeValue) }),
|
|
2721
|
-
};
|
|
2722
|
-
};
|
|
2723
|
-
const se_UpdateCustomLineItemPercentageChargeDetails = (input, context) => {
|
|
2724
|
-
return {
|
|
2725
|
-
...(input.PercentageValue != null && { PercentageValue: (0, smithy_client_1.serializeFloat)(input.PercentageValue) }),
|
|
2726
|
-
};
|
|
2727
|
-
};
|
|
2728
|
-
const se_UpdateFreeTierConfig = (input, context) => {
|
|
2729
|
-
return {
|
|
2730
|
-
...(input.Activated != null && { Activated: input.Activated }),
|
|
2731
|
-
};
|
|
2732
|
-
};
|
|
2733
|
-
const se_UpdateTieringInput = (input, context) => {
|
|
2734
|
-
return {
|
|
2735
|
-
...(input.FreeTier != null && { FreeTier: se_UpdateFreeTierConfig(input.FreeTier, context) }),
|
|
2736
|
-
};
|
|
2737
|
-
};
|
|
2738
|
-
const de_AccountAssociationsList = (output, context) => {
|
|
2739
|
-
const retVal = (output || [])
|
|
2740
|
-
.filter((e) => e != null)
|
|
2741
|
-
.map((entry) => {
|
|
2742
|
-
if (entry === null) {
|
|
2743
|
-
return null;
|
|
2744
|
-
}
|
|
2745
|
-
return de_AccountAssociationsListElement(entry, context);
|
|
2746
|
-
});
|
|
2747
|
-
return retVal;
|
|
2748
|
-
};
|
|
2749
|
-
const de_AccountAssociationsListElement = (output, context) => {
|
|
2750
|
-
return {
|
|
2751
|
-
AccountEmail: (0, smithy_client_1.expectString)(output.AccountEmail),
|
|
2752
|
-
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2753
|
-
AccountName: (0, smithy_client_1.expectString)(output.AccountName),
|
|
2754
|
-
BillingGroupArn: (0, smithy_client_1.expectString)(output.BillingGroupArn),
|
|
2755
|
-
};
|
|
2756
|
-
};
|
|
2757
|
-
const de_AssociateResourceError = (output, context) => {
|
|
2758
|
-
return {
|
|
2759
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2760
|
-
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
2761
|
-
};
|
|
2762
|
-
};
|
|
2763
|
-
const de_AssociateResourceResponseElement = (output, context) => {
|
|
2764
|
-
return {
|
|
2765
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2766
|
-
Error: output.Error != null ? de_AssociateResourceError(output.Error, context) : undefined,
|
|
2767
|
-
};
|
|
2768
|
-
};
|
|
2769
|
-
const de_AssociateResourcesResponseList = (output, context) => {
|
|
2770
|
-
const retVal = (output || [])
|
|
2771
|
-
.filter((e) => e != null)
|
|
2772
|
-
.map((entry) => {
|
|
2773
|
-
if (entry === null) {
|
|
2774
|
-
return null;
|
|
2775
|
-
}
|
|
2776
|
-
return de_AssociateResourceResponseElement(entry, context);
|
|
2384
|
+
return (0, smithy_client_1.take)(input, {
|
|
2385
|
+
Flat: (_) => se_UpdateCustomLineItemFlatChargeDetails(_, context),
|
|
2386
|
+
Percentage: (_) => se_UpdateCustomLineItemPercentageChargeDetails(_, context),
|
|
2777
2387
|
});
|
|
2778
|
-
return retVal;
|
|
2779
|
-
};
|
|
2780
|
-
const de_BillingGroupCostReportElement = (output, context) => {
|
|
2781
|
-
return {
|
|
2782
|
-
AWSCost: (0, smithy_client_1.expectString)(output.AWSCost),
|
|
2783
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2784
|
-
Currency: (0, smithy_client_1.expectString)(output.Currency),
|
|
2785
|
-
Margin: (0, smithy_client_1.expectString)(output.Margin),
|
|
2786
|
-
MarginPercentage: (0, smithy_client_1.expectString)(output.MarginPercentage),
|
|
2787
|
-
ProformaCost: (0, smithy_client_1.expectString)(output.ProformaCost),
|
|
2788
|
-
};
|
|
2789
2388
|
};
|
|
2790
|
-
const
|
|
2791
|
-
|
|
2792
|
-
.
|
|
2793
|
-
.map((entry) => {
|
|
2794
|
-
if (entry === null) {
|
|
2795
|
-
return null;
|
|
2796
|
-
}
|
|
2797
|
-
return de_BillingGroupCostReportElement(entry, context);
|
|
2389
|
+
const se_UpdateCustomLineItemFlatChargeDetails = (input, context) => {
|
|
2390
|
+
return (0, smithy_client_1.take)(input, {
|
|
2391
|
+
ChargeValue: smithy_client_1.serializeFloat,
|
|
2798
2392
|
});
|
|
2799
|
-
return retVal;
|
|
2800
2393
|
};
|
|
2801
|
-
const
|
|
2802
|
-
|
|
2803
|
-
.
|
|
2804
|
-
.map((entry) => {
|
|
2805
|
-
if (entry === null) {
|
|
2806
|
-
return null;
|
|
2807
|
-
}
|
|
2808
|
-
return de_BillingGroupListElement(entry, context);
|
|
2394
|
+
const se_UpdateCustomLineItemPercentageChargeDetails = (input, context) => {
|
|
2395
|
+
return (0, smithy_client_1.take)(input, {
|
|
2396
|
+
PercentageValue: smithy_client_1.serializeFloat,
|
|
2809
2397
|
});
|
|
2810
|
-
return retVal;
|
|
2811
|
-
};
|
|
2812
|
-
const de_BillingGroupListElement = (output, context) => {
|
|
2813
|
-
return {
|
|
2814
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2815
|
-
ComputationPreference: output.ComputationPreference != null
|
|
2816
|
-
? de_ComputationPreference(output.ComputationPreference, context)
|
|
2817
|
-
: undefined,
|
|
2818
|
-
CreationTime: (0, smithy_client_1.expectLong)(output.CreationTime),
|
|
2819
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2820
|
-
LastModifiedTime: (0, smithy_client_1.expectLong)(output.LastModifiedTime),
|
|
2821
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2822
|
-
PrimaryAccountId: (0, smithy_client_1.expectString)(output.PrimaryAccountId),
|
|
2823
|
-
Size: (0, smithy_client_1.expectLong)(output.Size),
|
|
2824
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2825
|
-
StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
|
|
2826
|
-
};
|
|
2827
|
-
};
|
|
2828
|
-
const de_ComputationPreference = (output, context) => {
|
|
2829
|
-
return {
|
|
2830
|
-
PricingPlanArn: (0, smithy_client_1.expectString)(output.PricingPlanArn),
|
|
2831
|
-
};
|
|
2832
2398
|
};
|
|
2833
2399
|
const de_CustomLineItemList = (output, context) => {
|
|
2834
2400
|
const retVal = (output || [])
|
|
2835
2401
|
.filter((e) => e != null)
|
|
2836
2402
|
.map((entry) => {
|
|
2837
|
-
if (entry === null) {
|
|
2838
|
-
return null;
|
|
2839
|
-
}
|
|
2840
2403
|
return de_CustomLineItemListElement(entry, context);
|
|
2841
2404
|
});
|
|
2842
2405
|
return retVal;
|
|
2843
2406
|
};
|
|
2844
2407
|
const de_CustomLineItemListElement = (output, context) => {
|
|
2845
|
-
return {
|
|
2846
|
-
Arn:
|
|
2847
|
-
AssociationSize:
|
|
2848
|
-
BillingGroupArn:
|
|
2849
|
-
ChargeDetails:
|
|
2850
|
-
CreationTime:
|
|
2851
|
-
CurrencyCode:
|
|
2852
|
-
Description:
|
|
2853
|
-
LastModifiedTime:
|
|
2854
|
-
Name:
|
|
2855
|
-
ProductCode:
|
|
2856
|
-
};
|
|
2408
|
+
return (0, smithy_client_1.take)(output, {
|
|
2409
|
+
Arn: smithy_client_1.expectString,
|
|
2410
|
+
AssociationSize: smithy_client_1.expectLong,
|
|
2411
|
+
BillingGroupArn: smithy_client_1.expectString,
|
|
2412
|
+
ChargeDetails: (_) => de_ListCustomLineItemChargeDetails(_, context),
|
|
2413
|
+
CreationTime: smithy_client_1.expectLong,
|
|
2414
|
+
CurrencyCode: smithy_client_1.expectString,
|
|
2415
|
+
Description: smithy_client_1.expectString,
|
|
2416
|
+
LastModifiedTime: smithy_client_1.expectLong,
|
|
2417
|
+
Name: smithy_client_1.expectString,
|
|
2418
|
+
ProductCode: smithy_client_1.expectString,
|
|
2419
|
+
});
|
|
2857
2420
|
};
|
|
2858
2421
|
const de_CustomLineItemVersionList = (output, context) => {
|
|
2859
2422
|
const retVal = (output || [])
|
|
2860
2423
|
.filter((e) => e != null)
|
|
2861
2424
|
.map((entry) => {
|
|
2862
|
-
if (entry === null) {
|
|
2863
|
-
return null;
|
|
2864
|
-
}
|
|
2865
2425
|
return de_CustomLineItemVersionListElement(entry, context);
|
|
2866
2426
|
});
|
|
2867
2427
|
return retVal;
|
|
2868
2428
|
};
|
|
2869
2429
|
const de_CustomLineItemVersionListElement = (output, context) => {
|
|
2870
|
-
return {
|
|
2871
|
-
Arn:
|
|
2872
|
-
AssociationSize:
|
|
2873
|
-
BillingGroupArn:
|
|
2874
|
-
ChargeDetails:
|
|
2875
|
-
CreationTime:
|
|
2876
|
-
CurrencyCode:
|
|
2877
|
-
Description:
|
|
2878
|
-
EndBillingPeriod:
|
|
2879
|
-
LastModifiedTime:
|
|
2880
|
-
Name:
|
|
2881
|
-
ProductCode:
|
|
2882
|
-
StartBillingPeriod:
|
|
2883
|
-
StartTime:
|
|
2884
|
-
};
|
|
2885
|
-
};
|
|
2886
|
-
const de_DisassociateResourceResponseElement = (output, context) => {
|
|
2887
|
-
return {
|
|
2888
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2889
|
-
Error: output.Error != null ? de_AssociateResourceError(output.Error, context) : undefined,
|
|
2890
|
-
};
|
|
2891
|
-
};
|
|
2892
|
-
const de_DisassociateResourcesResponseList = (output, context) => {
|
|
2893
|
-
const retVal = (output || [])
|
|
2894
|
-
.filter((e) => e != null)
|
|
2895
|
-
.map((entry) => {
|
|
2896
|
-
if (entry === null) {
|
|
2897
|
-
return null;
|
|
2898
|
-
}
|
|
2899
|
-
return de_DisassociateResourceResponseElement(entry, context);
|
|
2430
|
+
return (0, smithy_client_1.take)(output, {
|
|
2431
|
+
Arn: smithy_client_1.expectString,
|
|
2432
|
+
AssociationSize: smithy_client_1.expectLong,
|
|
2433
|
+
BillingGroupArn: smithy_client_1.expectString,
|
|
2434
|
+
ChargeDetails: (_) => de_ListCustomLineItemChargeDetails(_, context),
|
|
2435
|
+
CreationTime: smithy_client_1.expectLong,
|
|
2436
|
+
CurrencyCode: smithy_client_1.expectString,
|
|
2437
|
+
Description: smithy_client_1.expectString,
|
|
2438
|
+
EndBillingPeriod: smithy_client_1.expectString,
|
|
2439
|
+
LastModifiedTime: smithy_client_1.expectLong,
|
|
2440
|
+
Name: smithy_client_1.expectString,
|
|
2441
|
+
ProductCode: smithy_client_1.expectString,
|
|
2442
|
+
StartBillingPeriod: smithy_client_1.expectString,
|
|
2443
|
+
StartTime: smithy_client_1.expectLong,
|
|
2900
2444
|
});
|
|
2901
|
-
return retVal;
|
|
2902
|
-
};
|
|
2903
|
-
const de_FreeTierConfig = (output, context) => {
|
|
2904
|
-
return {
|
|
2905
|
-
Activated: (0, smithy_client_1.expectBoolean)(output.Activated),
|
|
2906
|
-
};
|
|
2907
2445
|
};
|
|
2908
2446
|
const de_ListCustomLineItemChargeDetails = (output, context) => {
|
|
2909
|
-
return {
|
|
2910
|
-
Flat:
|
|
2911
|
-
Percentage:
|
|
2912
|
-
Type:
|
|
2913
|
-
};
|
|
2914
|
-
};
|
|
2915
|
-
const de_ListCustomLineItemFlatChargeDetails = (output, context) => {
|
|
2916
|
-
return {
|
|
2917
|
-
ChargeValue: (0, smithy_client_1.limitedParseDouble)(output.ChargeValue),
|
|
2918
|
-
};
|
|
2919
|
-
};
|
|
2920
|
-
const de_ListCustomLineItemPercentageChargeDetails = (output, context) => {
|
|
2921
|
-
return {
|
|
2922
|
-
PercentageValue: (0, smithy_client_1.limitedParseDouble)(output.PercentageValue),
|
|
2923
|
-
};
|
|
2924
|
-
};
|
|
2925
|
-
const de_ListResourcesAssociatedToCustomLineItemResponseElement = (output, context) => {
|
|
2926
|
-
return {
|
|
2927
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2928
|
-
EndBillingPeriod: (0, smithy_client_1.expectString)(output.EndBillingPeriod),
|
|
2929
|
-
Relationship: (0, smithy_client_1.expectString)(output.Relationship),
|
|
2930
|
-
};
|
|
2931
|
-
};
|
|
2932
|
-
const de_ListResourcesAssociatedToCustomLineItemResponseList = (output, context) => {
|
|
2933
|
-
const retVal = (output || [])
|
|
2934
|
-
.filter((e) => e != null)
|
|
2935
|
-
.map((entry) => {
|
|
2936
|
-
if (entry === null) {
|
|
2937
|
-
return null;
|
|
2938
|
-
}
|
|
2939
|
-
return de_ListResourcesAssociatedToCustomLineItemResponseElement(entry, context);
|
|
2940
|
-
});
|
|
2941
|
-
return retVal;
|
|
2942
|
-
};
|
|
2943
|
-
const de_PricingPlanArns = (output, context) => {
|
|
2944
|
-
const retVal = (output || [])
|
|
2945
|
-
.filter((e) => e != null)
|
|
2946
|
-
.map((entry) => {
|
|
2947
|
-
if (entry === null) {
|
|
2948
|
-
return null;
|
|
2949
|
-
}
|
|
2950
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2447
|
+
return (0, smithy_client_1.take)(output, {
|
|
2448
|
+
Flat: (_) => de_ListCustomLineItemFlatChargeDetails(_, context),
|
|
2449
|
+
Percentage: (_) => de_ListCustomLineItemPercentageChargeDetails(_, context),
|
|
2450
|
+
Type: smithy_client_1.expectString,
|
|
2951
2451
|
});
|
|
2952
|
-
return retVal;
|
|
2953
2452
|
};
|
|
2954
|
-
const
|
|
2955
|
-
|
|
2956
|
-
.
|
|
2957
|
-
.map((entry) => {
|
|
2958
|
-
if (entry === null) {
|
|
2959
|
-
return null;
|
|
2960
|
-
}
|
|
2961
|
-
return de_PricingPlanListElement(entry, context);
|
|
2453
|
+
const de_ListCustomLineItemFlatChargeDetails = (output, context) => {
|
|
2454
|
+
return (0, smithy_client_1.take)(output, {
|
|
2455
|
+
ChargeValue: smithy_client_1.limitedParseDouble,
|
|
2962
2456
|
});
|
|
2963
|
-
return retVal;
|
|
2964
|
-
};
|
|
2965
|
-
const de_PricingPlanListElement = (output, context) => {
|
|
2966
|
-
return {
|
|
2967
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2968
|
-
CreationTime: (0, smithy_client_1.expectLong)(output.CreationTime),
|
|
2969
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2970
|
-
LastModifiedTime: (0, smithy_client_1.expectLong)(output.LastModifiedTime),
|
|
2971
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2972
|
-
Size: (0, smithy_client_1.expectLong)(output.Size),
|
|
2973
|
-
};
|
|
2974
2457
|
};
|
|
2975
|
-
const
|
|
2976
|
-
|
|
2977
|
-
.
|
|
2978
|
-
.map((entry) => {
|
|
2979
|
-
if (entry === null) {
|
|
2980
|
-
return null;
|
|
2981
|
-
}
|
|
2982
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2458
|
+
const de_ListCustomLineItemPercentageChargeDetails = (output, context) => {
|
|
2459
|
+
return (0, smithy_client_1.take)(output, {
|
|
2460
|
+
PercentageValue: smithy_client_1.limitedParseDouble,
|
|
2983
2461
|
});
|
|
2984
|
-
return retVal;
|
|
2985
2462
|
};
|
|
2986
2463
|
const de_PricingRuleList = (output, context) => {
|
|
2987
2464
|
const retVal = (output || [])
|
|
2988
2465
|
.filter((e) => e != null)
|
|
2989
2466
|
.map((entry) => {
|
|
2990
|
-
if (entry === null) {
|
|
2991
|
-
return null;
|
|
2992
|
-
}
|
|
2993
2467
|
return de_PricingRuleListElement(entry, context);
|
|
2994
2468
|
});
|
|
2995
2469
|
return retVal;
|
|
2996
2470
|
};
|
|
2997
2471
|
const de_PricingRuleListElement = (output, context) => {
|
|
2998
|
-
return {
|
|
2999
|
-
Arn:
|
|
3000
|
-
AssociatedPricingPlanCount:
|
|
3001
|
-
BillingEntity:
|
|
3002
|
-
CreationTime:
|
|
3003
|
-
Description:
|
|
3004
|
-
LastModifiedTime:
|
|
3005
|
-
ModifierPercentage:
|
|
3006
|
-
Name:
|
|
3007
|
-
Operation:
|
|
3008
|
-
Scope:
|
|
3009
|
-
Service:
|
|
3010
|
-
Tiering:
|
|
3011
|
-
Type:
|
|
3012
|
-
UsageType:
|
|
3013
|
-
};
|
|
3014
|
-
};
|
|
3015
|
-
const de_TagMap = (output, context) => {
|
|
3016
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3017
|
-
if (value === null) {
|
|
3018
|
-
return acc;
|
|
3019
|
-
}
|
|
3020
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3021
|
-
return acc;
|
|
3022
|
-
}, {});
|
|
3023
|
-
};
|
|
3024
|
-
const de_Tiering = (output, context) => {
|
|
3025
|
-
return {
|
|
3026
|
-
FreeTier: output.FreeTier != null ? de_FreeTierConfig(output.FreeTier, context) : undefined,
|
|
3027
|
-
};
|
|
3028
|
-
};
|
|
3029
|
-
const de_UpdateFreeTierConfig = (output, context) => {
|
|
3030
|
-
return {
|
|
3031
|
-
Activated: (0, smithy_client_1.expectBoolean)(output.Activated),
|
|
3032
|
-
};
|
|
3033
|
-
};
|
|
3034
|
-
const de_UpdateTieringInput = (output, context) => {
|
|
3035
|
-
return {
|
|
3036
|
-
FreeTier: output.FreeTier != null ? de_UpdateFreeTierConfig(output.FreeTier, context) : undefined,
|
|
3037
|
-
};
|
|
3038
|
-
};
|
|
3039
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
3040
|
-
return {
|
|
3041
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3042
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3043
|
-
};
|
|
3044
|
-
};
|
|
3045
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
3046
|
-
const retVal = (output || [])
|
|
3047
|
-
.filter((e) => e != null)
|
|
3048
|
-
.map((entry) => {
|
|
3049
|
-
if (entry === null) {
|
|
3050
|
-
return null;
|
|
3051
|
-
}
|
|
3052
|
-
return de_ValidationExceptionField(entry, context);
|
|
2472
|
+
return (0, smithy_client_1.take)(output, {
|
|
2473
|
+
Arn: smithy_client_1.expectString,
|
|
2474
|
+
AssociatedPricingPlanCount: smithy_client_1.expectLong,
|
|
2475
|
+
BillingEntity: smithy_client_1.expectString,
|
|
2476
|
+
CreationTime: smithy_client_1.expectLong,
|
|
2477
|
+
Description: smithy_client_1.expectString,
|
|
2478
|
+
LastModifiedTime: smithy_client_1.expectLong,
|
|
2479
|
+
ModifierPercentage: smithy_client_1.limitedParseDouble,
|
|
2480
|
+
Name: smithy_client_1.expectString,
|
|
2481
|
+
Operation: smithy_client_1.expectString,
|
|
2482
|
+
Scope: smithy_client_1.expectString,
|
|
2483
|
+
Service: smithy_client_1.expectString,
|
|
2484
|
+
Tiering: smithy_client_1._json,
|
|
2485
|
+
Type: smithy_client_1.expectString,
|
|
2486
|
+
UsageType: smithy_client_1.expectString,
|
|
3053
2487
|
});
|
|
3054
|
-
return retVal;
|
|
3055
2488
|
};
|
|
3056
2489
|
const deserializeMetadata = (output) => ({
|
|
3057
2490
|
httpStatusCode: output.statusCode,
|