@aws-sdk/client-billingconductor 3.121.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist-cjs/protocols/Aws_restJson1.js +133 -182
- package/dist-es/protocols/Aws_restJson1.js +74 -123
- package/package.json +26 -26
|
@@ -14,8 +14,7 @@ export var serializeAws_restJson1AssociateAccountsCommand = function (input, con
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/associate-accounts";
|
|
17
|
-
body = JSON.stringify(__assign(__assign({}, (input.AccountIds
|
|
18
|
-
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn })));
|
|
17
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.Arn != null && { Arn: input.Arn })));
|
|
19
18
|
return [2, new __HttpRequest({
|
|
20
19
|
protocol: protocol,
|
|
21
20
|
hostname: hostname,
|
|
@@ -39,8 +38,7 @@ export var serializeAws_restJson1AssociatePricingRulesCommand = function (input,
|
|
|
39
38
|
"content-type": "application/json",
|
|
40
39
|
};
|
|
41
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/associate-pricing-rules";
|
|
42
|
-
body = JSON.stringify(__assign(__assign({}, (input.Arn
|
|
43
|
-
input.PricingRuleArns !== null && {
|
|
41
|
+
body = JSON.stringify(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.PricingRuleArns != null && {
|
|
44
42
|
PricingRuleArns: serializeAws_restJson1PricingRuleArnsNonEmptyInput(input.PricingRuleArns, context),
|
|
45
43
|
})));
|
|
46
44
|
return [2, new __HttpRequest({
|
|
@@ -67,13 +65,11 @@ export var serializeAws_restJson1BatchAssociateResourcesToCustomLineItemCommand
|
|
|
67
65
|
};
|
|
68
66
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
69
67
|
"/batch-associate-resources-to-custom-line-item";
|
|
70
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.BillingPeriodRange
|
|
71
|
-
input.BillingPeriodRange !== null && {
|
|
68
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.BillingPeriodRange != null && {
|
|
72
69
|
BillingPeriodRange: serializeAws_restJson1CustomLineItemBillingPeriodRange(input.BillingPeriodRange, context),
|
|
73
|
-
})), (input.ResourceArns
|
|
74
|
-
input.ResourceArns !== null && {
|
|
70
|
+
})), (input.ResourceArns != null && {
|
|
75
71
|
ResourceArns: serializeAws_restJson1CustomLineItemBatchAssociationsList(input.ResourceArns, context),
|
|
76
|
-
})), (input.TargetArn
|
|
72
|
+
})), (input.TargetArn != null && { TargetArn: input.TargetArn })));
|
|
77
73
|
return [2, new __HttpRequest({
|
|
78
74
|
protocol: protocol,
|
|
79
75
|
hostname: hostname,
|
|
@@ -98,13 +94,11 @@ export var serializeAws_restJson1BatchDisassociateResourcesFromCustomLineItemCom
|
|
|
98
94
|
};
|
|
99
95
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
100
96
|
"/batch-disassociate-resources-from-custom-line-item";
|
|
101
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.BillingPeriodRange
|
|
102
|
-
input.BillingPeriodRange !== null && {
|
|
97
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.BillingPeriodRange != null && {
|
|
103
98
|
BillingPeriodRange: serializeAws_restJson1CustomLineItemBillingPeriodRange(input.BillingPeriodRange, context),
|
|
104
|
-
})), (input.ResourceArns
|
|
105
|
-
input.ResourceArns !== null && {
|
|
99
|
+
})), (input.ResourceArns != null && {
|
|
106
100
|
ResourceArns: serializeAws_restJson1CustomLineItemBatchDisassociationsList(input.ResourceArns, context),
|
|
107
|
-
})), (input.TargetArn
|
|
101
|
+
})), (input.TargetArn != null && { TargetArn: input.TargetArn })));
|
|
108
102
|
return [2, new __HttpRequest({
|
|
109
103
|
protocol: protocol,
|
|
110
104
|
hostname: hostname,
|
|
@@ -126,14 +120,11 @@ export var serializeAws_restJson1CreateBillingGroupCommand = function (input, co
|
|
|
126
120
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
127
121
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ClientToken) && { "x-amzn-client-token": input.ClientToken }));
|
|
128
122
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/create-billing-group";
|
|
129
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountGrouping
|
|
130
|
-
input.AccountGrouping !== null && {
|
|
123
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountGrouping != null && {
|
|
131
124
|
AccountGrouping: serializeAws_restJson1AccountGrouping(input.AccountGrouping, context),
|
|
132
|
-
})), (input.ComputationPreference
|
|
133
|
-
input.ComputationPreference !== null && {
|
|
125
|
+
})), (input.ComputationPreference != null && {
|
|
134
126
|
ComputationPreference: serializeAws_restJson1ComputationPreference(input.ComputationPreference, context),
|
|
135
|
-
})), (input.Description
|
|
136
|
-
input.PrimaryAccountId !== null && { PrimaryAccountId: input.PrimaryAccountId })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
127
|
+
})), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.PrimaryAccountId != null && { PrimaryAccountId: input.PrimaryAccountId })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
137
128
|
return [2, new __HttpRequest({
|
|
138
129
|
protocol: protocol,
|
|
139
130
|
hostname: hostname,
|
|
@@ -155,14 +146,11 @@ export var serializeAws_restJson1CreateCustomLineItemCommand = function (input,
|
|
|
155
146
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
156
147
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ClientToken) && { "x-amzn-client-token": input.ClientToken }));
|
|
157
148
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/create-custom-line-item";
|
|
158
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BillingGroupArn
|
|
159
|
-
input.BillingGroupArn !== null && { BillingGroupArn: input.BillingGroupArn })), (input.BillingPeriodRange !== undefined &&
|
|
160
|
-
input.BillingPeriodRange !== null && {
|
|
149
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BillingGroupArn != null && { BillingGroupArn: input.BillingGroupArn })), (input.BillingPeriodRange != null && {
|
|
161
150
|
BillingPeriodRange: serializeAws_restJson1CustomLineItemBillingPeriodRange(input.BillingPeriodRange, context),
|
|
162
|
-
})), (input.ChargeDetails
|
|
163
|
-
input.ChargeDetails !== null && {
|
|
151
|
+
})), (input.ChargeDetails != null && {
|
|
164
152
|
ChargeDetails: serializeAws_restJson1CustomLineItemChargeDetails(input.ChargeDetails, context),
|
|
165
|
-
})), (input.Description
|
|
153
|
+
})), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
166
154
|
return [2, new __HttpRequest({
|
|
167
155
|
protocol: protocol,
|
|
168
156
|
hostname: hostname,
|
|
@@ -184,10 +172,9 @@ export var serializeAws_restJson1CreatePricingPlanCommand = function (input, con
|
|
|
184
172
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
185
173
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ClientToken) && { "x-amzn-client-token": input.ClientToken }));
|
|
186
174
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/create-pricing-plan";
|
|
187
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
188
|
-
input.PricingRuleArns !== null && {
|
|
175
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.PricingRuleArns != null && {
|
|
189
176
|
PricingRuleArns: serializeAws_restJson1PricingRuleArnsInput(input.PricingRuleArns, context),
|
|
190
|
-
})), (input.Tags
|
|
177
|
+
})), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
191
178
|
return [2, new __HttpRequest({
|
|
192
179
|
protocol: protocol,
|
|
193
180
|
hostname: hostname,
|
|
@@ -209,8 +196,7 @@ export var serializeAws_restJson1CreatePricingRuleCommand = function (input, con
|
|
|
209
196
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
210
197
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ClientToken) && { "x-amzn-client-token": input.ClientToken }));
|
|
211
198
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/create-pricing-rule";
|
|
212
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
213
|
-
input.ModifierPercentage !== null && { ModifierPercentage: __serializeFloat(input.ModifierPercentage) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.Service !== undefined && input.Service !== null && { Service: input.Service })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
199
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.ModifierPercentage != null && { ModifierPercentage: __serializeFloat(input.ModifierPercentage) })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope })), (input.Service != null && { Service: input.Service })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Type != null && { Type: input.Type })));
|
|
214
200
|
return [2, new __HttpRequest({
|
|
215
201
|
protocol: protocol,
|
|
216
202
|
hostname: hostname,
|
|
@@ -234,7 +220,7 @@ export var serializeAws_restJson1DeleteBillingGroupCommand = function (input, co
|
|
|
234
220
|
"content-type": "application/json",
|
|
235
221
|
};
|
|
236
222
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delete-billing-group";
|
|
237
|
-
body = JSON.stringify(__assign({}, (input.Arn
|
|
223
|
+
body = JSON.stringify(__assign({}, (input.Arn != null && { Arn: input.Arn })));
|
|
238
224
|
return [2, new __HttpRequest({
|
|
239
225
|
protocol: protocol,
|
|
240
226
|
hostname: hostname,
|
|
@@ -258,8 +244,7 @@ export var serializeAws_restJson1DeleteCustomLineItemCommand = function (input,
|
|
|
258
244
|
"content-type": "application/json",
|
|
259
245
|
};
|
|
260
246
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delete-custom-line-item";
|
|
261
|
-
body = JSON.stringify(__assign(__assign({}, (input.Arn
|
|
262
|
-
input.BillingPeriodRange !== null && {
|
|
247
|
+
body = JSON.stringify(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.BillingPeriodRange != null && {
|
|
263
248
|
BillingPeriodRange: serializeAws_restJson1CustomLineItemBillingPeriodRange(input.BillingPeriodRange, context),
|
|
264
249
|
})));
|
|
265
250
|
return [2, new __HttpRequest({
|
|
@@ -285,7 +270,7 @@ export var serializeAws_restJson1DeletePricingPlanCommand = function (input, con
|
|
|
285
270
|
"content-type": "application/json",
|
|
286
271
|
};
|
|
287
272
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delete-pricing-plan";
|
|
288
|
-
body = JSON.stringify(__assign({}, (input.Arn
|
|
273
|
+
body = JSON.stringify(__assign({}, (input.Arn != null && { Arn: input.Arn })));
|
|
289
274
|
return [2, new __HttpRequest({
|
|
290
275
|
protocol: protocol,
|
|
291
276
|
hostname: hostname,
|
|
@@ -309,7 +294,7 @@ export var serializeAws_restJson1DeletePricingRuleCommand = function (input, con
|
|
|
309
294
|
"content-type": "application/json",
|
|
310
295
|
};
|
|
311
296
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delete-pricing-rule";
|
|
312
|
-
body = JSON.stringify(__assign({}, (input.Arn
|
|
297
|
+
body = JSON.stringify(__assign({}, (input.Arn != null && { Arn: input.Arn })));
|
|
313
298
|
return [2, new __HttpRequest({
|
|
314
299
|
protocol: protocol,
|
|
315
300
|
hostname: hostname,
|
|
@@ -333,8 +318,7 @@ export var serializeAws_restJson1DisassociateAccountsCommand = function (input,
|
|
|
333
318
|
"content-type": "application/json",
|
|
334
319
|
};
|
|
335
320
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/disassociate-accounts";
|
|
336
|
-
body = JSON.stringify(__assign(__assign({}, (input.AccountIds
|
|
337
|
-
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn })));
|
|
321
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.Arn != null && { Arn: input.Arn })));
|
|
338
322
|
return [2, new __HttpRequest({
|
|
339
323
|
protocol: protocol,
|
|
340
324
|
hostname: hostname,
|
|
@@ -358,8 +342,7 @@ export var serializeAws_restJson1DisassociatePricingRulesCommand = function (inp
|
|
|
358
342
|
"content-type": "application/json",
|
|
359
343
|
};
|
|
360
344
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/disassociate-pricing-rules";
|
|
361
|
-
body = JSON.stringify(__assign(__assign({}, (input.Arn
|
|
362
|
-
input.PricingRuleArns !== null && {
|
|
345
|
+
body = JSON.stringify(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.PricingRuleArns != null && {
|
|
363
346
|
PricingRuleArns: serializeAws_restJson1PricingRuleArnsNonEmptyInput(input.PricingRuleArns, context),
|
|
364
347
|
})));
|
|
365
348
|
return [2, new __HttpRequest({
|
|
@@ -385,10 +368,9 @@ export var serializeAws_restJson1ListAccountAssociationsCommand = function (inpu
|
|
|
385
368
|
"content-type": "application/json",
|
|
386
369
|
};
|
|
387
370
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-account-associations";
|
|
388
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.BillingPeriod
|
|
389
|
-
input.Filters !== null && {
|
|
371
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod })), (input.Filters != null && {
|
|
390
372
|
Filters: serializeAws_restJson1ListAccountAssociationsFilter(input.Filters, context),
|
|
391
|
-
})), (input.NextToken
|
|
373
|
+
})), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
392
374
|
return [2, new __HttpRequest({
|
|
393
375
|
protocol: protocol,
|
|
394
376
|
hostname: hostname,
|
|
@@ -412,10 +394,9 @@ export var serializeAws_restJson1ListBillingGroupCostReportsCommand = function (
|
|
|
412
394
|
"content-type": "application/json",
|
|
413
395
|
};
|
|
414
396
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-billing-group-cost-reports";
|
|
415
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod
|
|
416
|
-
input.Filters !== null && {
|
|
397
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod })), (input.Filters != null && {
|
|
417
398
|
Filters: serializeAws_restJson1ListBillingGroupCostReportsFilter(input.Filters, context),
|
|
418
|
-
})), (input.MaxResults
|
|
399
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
419
400
|
return [2, new __HttpRequest({
|
|
420
401
|
protocol: protocol,
|
|
421
402
|
hostname: hostname,
|
|
@@ -439,8 +420,7 @@ export var serializeAws_restJson1ListBillingGroupsCommand = function (input, con
|
|
|
439
420
|
"content-type": "application/json",
|
|
440
421
|
};
|
|
441
422
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-billing-groups";
|
|
442
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod
|
|
443
|
-
input.Filters !== null && { Filters: serializeAws_restJson1ListBillingGroupsFilter(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
423
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod })), (input.Filters != null && { Filters: serializeAws_restJson1ListBillingGroupsFilter(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
444
424
|
return [2, new __HttpRequest({
|
|
445
425
|
protocol: protocol,
|
|
446
426
|
hostname: hostname,
|
|
@@ -464,8 +444,7 @@ export var serializeAws_restJson1ListCustomLineItemsCommand = function (input, c
|
|
|
464
444
|
"content-type": "application/json",
|
|
465
445
|
};
|
|
466
446
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-custom-line-items";
|
|
467
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod
|
|
468
|
-
input.Filters !== null && { Filters: serializeAws_restJson1ListCustomLineItemsFilter(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
447
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod })), (input.Filters != null && { Filters: serializeAws_restJson1ListCustomLineItemsFilter(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
469
448
|
return [2, new __HttpRequest({
|
|
470
449
|
protocol: protocol,
|
|
471
450
|
hostname: hostname,
|
|
@@ -489,8 +468,7 @@ export var serializeAws_restJson1ListPricingPlansCommand = function (input, cont
|
|
|
489
468
|
"content-type": "application/json",
|
|
490
469
|
};
|
|
491
470
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-pricing-plans";
|
|
492
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod
|
|
493
|
-
input.Filters !== null && { Filters: serializeAws_restJson1ListPricingPlansFilter(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
471
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod })), (input.Filters != null && { Filters: serializeAws_restJson1ListPricingPlansFilter(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
494
472
|
return [2, new __HttpRequest({
|
|
495
473
|
protocol: protocol,
|
|
496
474
|
hostname: hostname,
|
|
@@ -515,8 +493,7 @@ export var serializeAws_restJson1ListPricingPlansAssociatedWithPricingRuleComman
|
|
|
515
493
|
};
|
|
516
494
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
517
495
|
"/list-pricing-plans-associated-with-pricing-rule";
|
|
518
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod
|
|
519
|
-
input.PricingRuleArn !== null && { PricingRuleArn: input.PricingRuleArn })));
|
|
496
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PricingRuleArn != null && { PricingRuleArn: input.PricingRuleArn })));
|
|
520
497
|
return [2, new __HttpRequest({
|
|
521
498
|
protocol: protocol,
|
|
522
499
|
hostname: hostname,
|
|
@@ -540,8 +517,7 @@ export var serializeAws_restJson1ListPricingRulesCommand = function (input, cont
|
|
|
540
517
|
"content-type": "application/json",
|
|
541
518
|
};
|
|
542
519
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-pricing-rules";
|
|
543
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod
|
|
544
|
-
input.Filters !== null && { Filters: serializeAws_restJson1ListPricingRulesFilter(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
520
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod })), (input.Filters != null && { Filters: serializeAws_restJson1ListPricingRulesFilter(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
545
521
|
return [2, new __HttpRequest({
|
|
546
522
|
protocol: protocol,
|
|
547
523
|
hostname: hostname,
|
|
@@ -566,8 +542,7 @@ export var serializeAws_restJson1ListPricingRulesAssociatedToPricingPlanCommand
|
|
|
566
542
|
};
|
|
567
543
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
568
544
|
"/list-pricing-rules-associated-to-pricing-plan";
|
|
569
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod
|
|
570
|
-
input.PricingPlanArn !== null && { PricingPlanArn: input.PricingPlanArn })));
|
|
545
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PricingPlanArn != null && { PricingPlanArn: input.PricingPlanArn })));
|
|
571
546
|
return [2, new __HttpRequest({
|
|
572
547
|
protocol: protocol,
|
|
573
548
|
hostname: hostname,
|
|
@@ -592,10 +567,9 @@ export var serializeAws_restJson1ListResourcesAssociatedToCustomLineItemCommand
|
|
|
592
567
|
};
|
|
593
568
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
594
569
|
"/list-resources-associated-to-custom-line-item";
|
|
595
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Arn
|
|
596
|
-
input.Filters !== null && {
|
|
570
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.BillingPeriod != null && { BillingPeriod: input.BillingPeriod })), (input.Filters != null && {
|
|
597
571
|
Filters: serializeAws_restJson1ListResourcesAssociatedToCustomLineItemFilter(input.Filters, context),
|
|
598
|
-
})), (input.MaxResults
|
|
572
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
599
573
|
return [2, new __HttpRequest({
|
|
600
574
|
protocol: protocol,
|
|
601
575
|
hostname: hostname,
|
|
@@ -660,7 +634,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
660
634
|
else {
|
|
661
635
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
662
636
|
}
|
|
663
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
637
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
664
638
|
return [2, new __HttpRequest({
|
|
665
639
|
protocol: protocol,
|
|
666
640
|
hostname: hostname,
|
|
@@ -717,10 +691,9 @@ export var serializeAws_restJson1UpdateBillingGroupCommand = function (input, co
|
|
|
717
691
|
"content-type": "application/json",
|
|
718
692
|
};
|
|
719
693
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-billing-group";
|
|
720
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Arn
|
|
721
|
-
input.ComputationPreference !== null && {
|
|
694
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.ComputationPreference != null && {
|
|
722
695
|
ComputationPreference: serializeAws_restJson1ComputationPreference(input.ComputationPreference, context),
|
|
723
|
-
})), (input.Description
|
|
696
|
+
})), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Status != null && { Status: input.Status })));
|
|
724
697
|
return [2, new __HttpRequest({
|
|
725
698
|
protocol: protocol,
|
|
726
699
|
hostname: hostname,
|
|
@@ -744,13 +717,11 @@ export var serializeAws_restJson1UpdateCustomLineItemCommand = function (input,
|
|
|
744
717
|
"content-type": "application/json",
|
|
745
718
|
};
|
|
746
719
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-custom-line-item";
|
|
747
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Arn
|
|
748
|
-
input.BillingPeriodRange !== null && {
|
|
720
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.BillingPeriodRange != null && {
|
|
749
721
|
BillingPeriodRange: serializeAws_restJson1CustomLineItemBillingPeriodRange(input.BillingPeriodRange, context),
|
|
750
|
-
})), (input.ChargeDetails
|
|
751
|
-
input.ChargeDetails !== null && {
|
|
722
|
+
})), (input.ChargeDetails != null && {
|
|
752
723
|
ChargeDetails: serializeAws_restJson1UpdateCustomLineItemChargeDetails(input.ChargeDetails, context),
|
|
753
|
-
})), (input.Description
|
|
724
|
+
})), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
754
725
|
return [2, new __HttpRequest({
|
|
755
726
|
protocol: protocol,
|
|
756
727
|
hostname: hostname,
|
|
@@ -774,7 +745,7 @@ export var serializeAws_restJson1UpdatePricingPlanCommand = function (input, con
|
|
|
774
745
|
"content-type": "application/json",
|
|
775
746
|
};
|
|
776
747
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-pricing-plan";
|
|
777
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Arn
|
|
748
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
778
749
|
return [2, new __HttpRequest({
|
|
779
750
|
protocol: protocol,
|
|
780
751
|
hostname: hostname,
|
|
@@ -798,8 +769,7 @@ export var serializeAws_restJson1UpdatePricingRuleCommand = function (input, con
|
|
|
798
769
|
"content-type": "application/json",
|
|
799
770
|
};
|
|
800
771
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-pricing-rule";
|
|
801
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Arn
|
|
802
|
-
input.ModifierPercentage !== null && { ModifierPercentage: __serializeFloat(input.ModifierPercentage) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
772
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.Description != null && { Description: input.Description })), (input.ModifierPercentage != null && { ModifierPercentage: __serializeFloat(input.ModifierPercentage) })), (input.Name != null && { Name: input.Name })), (input.Type != null && { Type: input.Type })));
|
|
803
773
|
return [2, new __HttpRequest({
|
|
804
774
|
protocol: protocol,
|
|
805
775
|
hostname: hostname,
|
|
@@ -3343,8 +3313,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
3343
3313
|
});
|
|
3344
3314
|
}); };
|
|
3345
3315
|
var serializeAws_restJson1AccountGrouping = function (input, context) {
|
|
3346
|
-
return __assign({}, (input.LinkedAccountIds
|
|
3347
|
-
input.LinkedAccountIds !== null && {
|
|
3316
|
+
return __assign({}, (input.LinkedAccountIds != null && {
|
|
3348
3317
|
LinkedAccountIds: serializeAws_restJson1AccountIdList(input.LinkedAccountIds, context),
|
|
3349
3318
|
}));
|
|
3350
3319
|
};
|
|
@@ -3369,8 +3338,7 @@ var serializeAws_restJson1BillingGroupArnList = function (input, context) {
|
|
|
3369
3338
|
});
|
|
3370
3339
|
};
|
|
3371
3340
|
var serializeAws_restJson1ComputationPreference = function (input, context) {
|
|
3372
|
-
return __assign({}, (input.PricingPlanArn
|
|
3373
|
-
input.PricingPlanArn !== null && { PricingPlanArn: input.PricingPlanArn }));
|
|
3341
|
+
return __assign({}, (input.PricingPlanArn != null && { PricingPlanArn: input.PricingPlanArn }));
|
|
3374
3342
|
};
|
|
3375
3343
|
var serializeAws_restJson1CustomLineItemArns = function (input, context) {
|
|
3376
3344
|
return input
|
|
@@ -3413,20 +3381,17 @@ var serializeAws_restJson1CustomLineItemBatchDisassociationsList = function (inp
|
|
|
3413
3381
|
});
|
|
3414
3382
|
};
|
|
3415
3383
|
var serializeAws_restJson1CustomLineItemBillingPeriodRange = function (input, context) {
|
|
3416
|
-
return __assign(__assign({}, (input.ExclusiveEndBillingPeriod
|
|
3417
|
-
|
|
3418
|
-
|
|
3384
|
+
return __assign(__assign({}, (input.ExclusiveEndBillingPeriod != null && { ExclusiveEndBillingPeriod: input.ExclusiveEndBillingPeriod })), (input.InclusiveStartBillingPeriod != null && {
|
|
3385
|
+
InclusiveStartBillingPeriod: input.InclusiveStartBillingPeriod,
|
|
3386
|
+
}));
|
|
3419
3387
|
};
|
|
3420
3388
|
var serializeAws_restJson1CustomLineItemChargeDetails = function (input, context) {
|
|
3421
|
-
return __assign(__assign(__assign({}, (input.Flat
|
|
3422
|
-
input.Flat !== null && { Flat: serializeAws_restJson1CustomLineItemFlatChargeDetails(input.Flat, context) })), (input.Percentage !== undefined &&
|
|
3423
|
-
input.Percentage !== null && {
|
|
3389
|
+
return __assign(__assign(__assign({}, (input.Flat != null && { Flat: serializeAws_restJson1CustomLineItemFlatChargeDetails(input.Flat, context) })), (input.Percentage != null && {
|
|
3424
3390
|
Percentage: serializeAws_restJson1CustomLineItemPercentageChargeDetails(input.Percentage, context),
|
|
3425
|
-
})), (input.Type
|
|
3391
|
+
})), (input.Type != null && { Type: input.Type }));
|
|
3426
3392
|
};
|
|
3427
3393
|
var serializeAws_restJson1CustomLineItemFlatChargeDetails = function (input, context) {
|
|
3428
|
-
return __assign({}, (input.ChargeValue
|
|
3429
|
-
input.ChargeValue !== null && { ChargeValue: __serializeFloat(input.ChargeValue) }));
|
|
3394
|
+
return __assign({}, (input.ChargeValue != null && { ChargeValue: __serializeFloat(input.ChargeValue) }));
|
|
3430
3395
|
};
|
|
3431
3396
|
var serializeAws_restJson1CustomLineItemNameList = function (input, context) {
|
|
3432
3397
|
return input
|
|
@@ -3439,43 +3404,34 @@ var serializeAws_restJson1CustomLineItemNameList = function (input, context) {
|
|
|
3439
3404
|
});
|
|
3440
3405
|
};
|
|
3441
3406
|
var serializeAws_restJson1CustomLineItemPercentageChargeDetails = function (input, context) {
|
|
3442
|
-
return __assign(__assign({}, (input.AssociatedValues
|
|
3443
|
-
input.AssociatedValues !== null && {
|
|
3407
|
+
return __assign(__assign({}, (input.AssociatedValues != null && {
|
|
3444
3408
|
AssociatedValues: serializeAws_restJson1CustomLineItemAssociationsList(input.AssociatedValues, context),
|
|
3445
|
-
})), (input.PercentageValue
|
|
3446
|
-
input.PercentageValue !== null && { PercentageValue: __serializeFloat(input.PercentageValue) }));
|
|
3409
|
+
})), (input.PercentageValue != null && { PercentageValue: __serializeFloat(input.PercentageValue) }));
|
|
3447
3410
|
};
|
|
3448
3411
|
var serializeAws_restJson1ListAccountAssociationsFilter = function (input, context) {
|
|
3449
|
-
return __assign(__assign({}, (input.AccountId
|
|
3412
|
+
return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.Association != null && { Association: input.Association }));
|
|
3450
3413
|
};
|
|
3451
3414
|
var serializeAws_restJson1ListBillingGroupCostReportsFilter = function (input, context) {
|
|
3452
|
-
return __assign({}, (input.BillingGroupArns
|
|
3453
|
-
input.BillingGroupArns !== null && {
|
|
3415
|
+
return __assign({}, (input.BillingGroupArns != null && {
|
|
3454
3416
|
BillingGroupArns: serializeAws_restJson1BillingGroupArnList(input.BillingGroupArns, context),
|
|
3455
3417
|
}));
|
|
3456
3418
|
};
|
|
3457
3419
|
var serializeAws_restJson1ListBillingGroupsFilter = function (input, context) {
|
|
3458
|
-
return __assign(__assign({}, (input.Arns
|
|
3459
|
-
input.Arns !== null && { Arns: serializeAws_restJson1BillingGroupArnList(input.Arns, context) })), (input.PricingPlan !== undefined && input.PricingPlan !== null && { PricingPlan: input.PricingPlan }));
|
|
3420
|
+
return __assign(__assign({}, (input.Arns != null && { Arns: serializeAws_restJson1BillingGroupArnList(input.Arns, context) })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan }));
|
|
3460
3421
|
};
|
|
3461
3422
|
var serializeAws_restJson1ListCustomLineItemsFilter = function (input, context) {
|
|
3462
|
-
return __assign(__assign(__assign({}, (input.Arns
|
|
3463
|
-
input.Arns !== null && { Arns: serializeAws_restJson1CustomLineItemArns(input.Arns, context) })), (input.BillingGroups !== undefined &&
|
|
3464
|
-
input.BillingGroups !== null && {
|
|
3423
|
+
return __assign(__assign(__assign({}, (input.Arns != null && { Arns: serializeAws_restJson1CustomLineItemArns(input.Arns, context) })), (input.BillingGroups != null && {
|
|
3465
3424
|
BillingGroups: serializeAws_restJson1BillingGroupArnList(input.BillingGroups, context),
|
|
3466
|
-
})), (input.Names
|
|
3467
|
-
input.Names !== null && { Names: serializeAws_restJson1CustomLineItemNameList(input.Names, context) }));
|
|
3425
|
+
})), (input.Names != null && { Names: serializeAws_restJson1CustomLineItemNameList(input.Names, context) }));
|
|
3468
3426
|
};
|
|
3469
3427
|
var serializeAws_restJson1ListPricingPlansFilter = function (input, context) {
|
|
3470
|
-
return __assign({}, (input.Arns
|
|
3471
|
-
input.Arns !== null && { Arns: serializeAws_restJson1PricingPlanArns(input.Arns, context) }));
|
|
3428
|
+
return __assign({}, (input.Arns != null && { Arns: serializeAws_restJson1PricingPlanArns(input.Arns, context) }));
|
|
3472
3429
|
};
|
|
3473
3430
|
var serializeAws_restJson1ListPricingRulesFilter = function (input, context) {
|
|
3474
|
-
return __assign({}, (input.Arns
|
|
3475
|
-
input.Arns !== null && { Arns: serializeAws_restJson1PricingRuleArns(input.Arns, context) }));
|
|
3431
|
+
return __assign({}, (input.Arns != null && { Arns: serializeAws_restJson1PricingRuleArns(input.Arns, context) }));
|
|
3476
3432
|
};
|
|
3477
3433
|
var serializeAws_restJson1ListResourcesAssociatedToCustomLineItemFilter = function (input, context) {
|
|
3478
|
-
return __assign({}, (input.Relationship
|
|
3434
|
+
return __assign({}, (input.Relationship != null && { Relationship: input.Relationship }));
|
|
3479
3435
|
};
|
|
3480
3436
|
var serializeAws_restJson1PricingPlanArns = function (input, context) {
|
|
3481
3437
|
return input
|
|
@@ -3528,21 +3484,17 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
3528
3484
|
}, {});
|
|
3529
3485
|
};
|
|
3530
3486
|
var serializeAws_restJson1UpdateCustomLineItemChargeDetails = function (input, context) {
|
|
3531
|
-
return __assign(__assign({}, (input.Flat
|
|
3532
|
-
input.Flat !== null && {
|
|
3487
|
+
return __assign(__assign({}, (input.Flat != null && {
|
|
3533
3488
|
Flat: serializeAws_restJson1UpdateCustomLineItemFlatChargeDetails(input.Flat, context),
|
|
3534
|
-
})), (input.Percentage
|
|
3535
|
-
input.Percentage !== null && {
|
|
3489
|
+
})), (input.Percentage != null && {
|
|
3536
3490
|
Percentage: serializeAws_restJson1UpdateCustomLineItemPercentageChargeDetails(input.Percentage, context),
|
|
3537
3491
|
}));
|
|
3538
3492
|
};
|
|
3539
3493
|
var serializeAws_restJson1UpdateCustomLineItemFlatChargeDetails = function (input, context) {
|
|
3540
|
-
return __assign({}, (input.ChargeValue
|
|
3541
|
-
input.ChargeValue !== null && { ChargeValue: __serializeFloat(input.ChargeValue) }));
|
|
3494
|
+
return __assign({}, (input.ChargeValue != null && { ChargeValue: __serializeFloat(input.ChargeValue) }));
|
|
3542
3495
|
};
|
|
3543
3496
|
var serializeAws_restJson1UpdateCustomLineItemPercentageChargeDetails = function (input, context) {
|
|
3544
|
-
return __assign({}, (input.PercentageValue
|
|
3545
|
-
input.PercentageValue !== null && { PercentageValue: __serializeFloat(input.PercentageValue) }));
|
|
3497
|
+
return __assign({}, (input.PercentageValue != null && { PercentageValue: __serializeFloat(input.PercentageValue) }));
|
|
3546
3498
|
};
|
|
3547
3499
|
var deserializeAws_restJson1AccountAssociationsList = function (output, context) {
|
|
3548
3500
|
var retVal = (output || [])
|
|
@@ -3572,9 +3524,7 @@ var deserializeAws_restJson1AssociateResourceError = function (output, context)
|
|
|
3572
3524
|
var deserializeAws_restJson1AssociateResourceResponseElement = function (output, context) {
|
|
3573
3525
|
return {
|
|
3574
3526
|
Arn: __expectString(output.Arn),
|
|
3575
|
-
Error: output.Error
|
|
3576
|
-
? deserializeAws_restJson1AssociateResourceError(output.Error, context)
|
|
3577
|
-
: undefined,
|
|
3527
|
+
Error: output.Error != null ? deserializeAws_restJson1AssociateResourceError(output.Error, context) : undefined,
|
|
3578
3528
|
};
|
|
3579
3529
|
};
|
|
3580
3530
|
var deserializeAws_restJson1AssociateResourcesResponseList = function (output, context) {
|
|
@@ -3623,7 +3573,7 @@ var deserializeAws_restJson1BillingGroupList = function (output, context) {
|
|
|
3623
3573
|
var deserializeAws_restJson1BillingGroupListElement = function (output, context) {
|
|
3624
3574
|
return {
|
|
3625
3575
|
Arn: __expectString(output.Arn),
|
|
3626
|
-
ComputationPreference: output.ComputationPreference
|
|
3576
|
+
ComputationPreference: output.ComputationPreference != null
|
|
3627
3577
|
? deserializeAws_restJson1ComputationPreference(output.ComputationPreference, context)
|
|
3628
3578
|
: undefined,
|
|
3629
3579
|
CreationTime: __expectLong(output.CreationTime),
|
|
@@ -3657,7 +3607,7 @@ var deserializeAws_restJson1CustomLineItemListElement = function (output, contex
|
|
|
3657
3607
|
Arn: __expectString(output.Arn),
|
|
3658
3608
|
AssociationSize: __expectLong(output.AssociationSize),
|
|
3659
3609
|
BillingGroupArn: __expectString(output.BillingGroupArn),
|
|
3660
|
-
ChargeDetails: output.ChargeDetails
|
|
3610
|
+
ChargeDetails: output.ChargeDetails != null
|
|
3661
3611
|
? deserializeAws_restJson1ListCustomLineItemChargeDetails(output.ChargeDetails, context)
|
|
3662
3612
|
: undefined,
|
|
3663
3613
|
CreationTime: __expectLong(output.CreationTime),
|
|
@@ -3671,9 +3621,7 @@ var deserializeAws_restJson1CustomLineItemListElement = function (output, contex
|
|
|
3671
3621
|
var deserializeAws_restJson1DisassociateResourceResponseElement = function (output, context) {
|
|
3672
3622
|
return {
|
|
3673
3623
|
Arn: __expectString(output.Arn),
|
|
3674
|
-
Error: output.Error
|
|
3675
|
-
? deserializeAws_restJson1AssociateResourceError(output.Error, context)
|
|
3676
|
-
: undefined,
|
|
3624
|
+
Error: output.Error != null ? deserializeAws_restJson1AssociateResourceError(output.Error, context) : undefined,
|
|
3677
3625
|
};
|
|
3678
3626
|
};
|
|
3679
3627
|
var deserializeAws_restJson1DisassociateResourcesResponseList = function (output, context) {
|
|
@@ -3689,10 +3637,10 @@ var deserializeAws_restJson1DisassociateResourcesResponseList = function (output
|
|
|
3689
3637
|
};
|
|
3690
3638
|
var deserializeAws_restJson1ListCustomLineItemChargeDetails = function (output, context) {
|
|
3691
3639
|
return {
|
|
3692
|
-
Flat: output.Flat
|
|
3640
|
+
Flat: output.Flat != null
|
|
3693
3641
|
? deserializeAws_restJson1ListCustomLineItemFlatChargeDetails(output.Flat, context)
|
|
3694
3642
|
: undefined,
|
|
3695
|
-
Percentage: output.Percentage
|
|
3643
|
+
Percentage: output.Percentage != null
|
|
3696
3644
|
? deserializeAws_restJson1ListCustomLineItemPercentageChargeDetails(output.Percentage, context)
|
|
3697
3645
|
: undefined,
|
|
3698
3646
|
Type: __expectString(output.Type),
|
|
@@ -3858,6 +3806,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3858
3806
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3859
3807
|
var sanitizeErrorCode = function (rawValue) {
|
|
3860
3808
|
var cleanValue = rawValue;
|
|
3809
|
+
if (typeof cleanValue === "number") {
|
|
3810
|
+
cleanValue = cleanValue.toString();
|
|
3811
|
+
}
|
|
3861
3812
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3862
3813
|
cleanValue = cleanValue.split(":")[0];
|
|
3863
3814
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-billingconductor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Billingconductor Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1",
|