@aws-sdk/client-billingconductor 3.204.0 → 3.208.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/README.md +3 -4
- package/dist-cjs/Billingconductor.js +15 -0
- package/dist-cjs/commands/ListCustomLineItemVersionsCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +5 -5
- package/dist-cjs/models/models_0.js +42 -3
- package/dist-cjs/pagination/ListCustomLineItemVersionsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +119 -2
- package/dist-es/Billingconductor.js +15 -0
- package/dist-es/commands/ListCustomLineItemVersionsCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +5 -5
- package/dist-es/models/models_0.js +34 -0
- package/dist-es/pagination/ListCustomLineItemVersionsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +115 -0
- package/dist-types/Billingconductor.d.ts +16 -15
- package/dist-types/BillingconductorClient.d.ts +6 -6
- package/dist-types/commands/DeletePricingRuleCommand.d.ts +1 -1
- package/dist-types/commands/ListAccountAssociationsCommand.d.ts +2 -7
- package/dist-types/commands/ListCustomLineItemVersionsCommand.d.ts +37 -0
- package/dist-types/commands/ListPricingPlansAssociatedWithPricingRuleCommand.d.ts +1 -1
- package/dist-types/commands/ListPricingRulesAssociatedToPricingPlanCommand.d.ts +1 -1
- package/dist-types/commands/ListResourcesAssociatedToCustomLineItemCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +200 -99
- package/dist-types/pagination/ListCustomLineItemVersionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Billingconductor.d.ts +17 -0
- package/dist-types/ts3.4/BillingconductorClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListCustomLineItemVersionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +60 -1
- package/dist-types/ts3.4/pagination/ListCustomLineItemVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +35 -35
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
AWS SDK for JavaScript Billingconductor Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
12
|
<p>Amazon Web Services Billing Conductor is a fully managed service that you can use
|
|
13
|
-
to customize a <a href="https://docs.aws.amazon.com/
|
|
13
|
+
to customize a <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/understanding-eb.html#eb-other-definitions">pro forma</a> version of your billing data each month, to accurately show or chargeback
|
|
14
14
|
your end customers. Amazon Web Services Billing Conductor doesn't change the way
|
|
15
15
|
you're billed by Amazon Web Services each month by design. Instead, it provides you with a
|
|
16
16
|
mechanism to configure, generate, and display rates to certain customers over a given billing
|
|
@@ -19,9 +19,8 @@ groupings relative to your actual rates from Amazon Web Services. As a result of
|
|
|
19
19
|
custom rate applied on the billing details page of the <a href="https://console.aws.amazon.com/billing">Amazon Web Services Billing console</a>, or configure a cost and usage report per
|
|
20
20
|
billing group.</p>
|
|
21
21
|
<p>This documentation shows how you can configure Amazon Web Services Billing Conductor using its
|
|
22
|
-
API. For more information about using the <a href="https://console.aws.amazon.com/
|
|
23
|
-
Billing Conductor</a> user interface, see the <a href="https://docs.aws.amazon.com/
|
|
24
|
-
Billing Console User Guide</a>.</p>
|
|
22
|
+
API. For more information about using the <a href="https://console.aws.amazon.com/billingconductor/">Amazon Web Services
|
|
23
|
+
Billing Conductor</a> user interface, see the <a href="https://docs.aws.amazon.com/billingconductor/latest/userguide/what-is-billingconductor.html"> Amazon Web Services Billing Conductor User Guide</a>.</p>
|
|
25
24
|
|
|
26
25
|
## Installing
|
|
27
26
|
|
|
@@ -20,6 +20,7 @@ const ListAccountAssociationsCommand_1 = require("./commands/ListAccountAssociat
|
|
|
20
20
|
const ListBillingGroupCostReportsCommand_1 = require("./commands/ListBillingGroupCostReportsCommand");
|
|
21
21
|
const ListBillingGroupsCommand_1 = require("./commands/ListBillingGroupsCommand");
|
|
22
22
|
const ListCustomLineItemsCommand_1 = require("./commands/ListCustomLineItemsCommand");
|
|
23
|
+
const ListCustomLineItemVersionsCommand_1 = require("./commands/ListCustomLineItemVersionsCommand");
|
|
23
24
|
const ListPricingPlansAssociatedWithPricingRuleCommand_1 = require("./commands/ListPricingPlansAssociatedWithPricingRuleCommand");
|
|
24
25
|
const ListPricingPlansCommand_1 = require("./commands/ListPricingPlansCommand");
|
|
25
26
|
const ListPricingRulesAssociatedToPricingPlanCommand_1 = require("./commands/ListPricingRulesAssociatedToPricingPlanCommand");
|
|
@@ -285,6 +286,20 @@ class Billingconductor extends BillingconductorClient_1.BillingconductorClient {
|
|
|
285
286
|
return this.send(command, optionsOrCb);
|
|
286
287
|
}
|
|
287
288
|
}
|
|
289
|
+
listCustomLineItemVersions(args, optionsOrCb, cb) {
|
|
290
|
+
const command = new ListCustomLineItemVersionsCommand_1.ListCustomLineItemVersionsCommand(args);
|
|
291
|
+
if (typeof optionsOrCb === "function") {
|
|
292
|
+
this.send(command, optionsOrCb);
|
|
293
|
+
}
|
|
294
|
+
else if (typeof cb === "function") {
|
|
295
|
+
if (typeof optionsOrCb !== "object")
|
|
296
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
297
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
return this.send(command, optionsOrCb);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
288
303
|
listPricingPlans(args, optionsOrCb, cb) {
|
|
289
304
|
const command = new ListPricingPlansCommand_1.ListPricingPlansCommand(args);
|
|
290
305
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListCustomLineItemVersionsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListCustomLineItemVersionsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListCustomLineItemVersionsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "BillingconductorClient";
|
|
28
|
+
const commandName = "ListCustomLineItemVersionsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListCustomLineItemVersionsInputFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListCustomLineItemVersionsOutputFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListCustomLineItemVersionsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListCustomLineItemVersionsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListCustomLineItemVersionsCommand = ListCustomLineItemVersionsCommand;
|
|
@@ -18,6 +18,7 @@ tslib_1.__exportStar(require("./DisassociatePricingRulesCommand"), exports);
|
|
|
18
18
|
tslib_1.__exportStar(require("./ListAccountAssociationsCommand"), exports);
|
|
19
19
|
tslib_1.__exportStar(require("./ListBillingGroupCostReportsCommand"), exports);
|
|
20
20
|
tslib_1.__exportStar(require("./ListBillingGroupsCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./ListCustomLineItemVersionsCommand"), exports);
|
|
21
22
|
tslib_1.__exportStar(require("./ListCustomLineItemsCommand"), exports);
|
|
22
23
|
tslib_1.__exportStar(require("./ListPricingPlansAssociatedWithPricingRuleCommand"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./ListPricingPlansCommand"), exports);
|
|
@@ -203,8 +203,8 @@ exports.ruleSet = {
|
|
|
203
203
|
authSchemes: [
|
|
204
204
|
{
|
|
205
205
|
name: "sigv4",
|
|
206
|
-
signingName: "billingconductor",
|
|
207
206
|
signingRegion: "us-east-1",
|
|
207
|
+
signingName: "billingconductor",
|
|
208
208
|
},
|
|
209
209
|
],
|
|
210
210
|
},
|
|
@@ -263,8 +263,8 @@ exports.ruleSet = {
|
|
|
263
263
|
authSchemes: [
|
|
264
264
|
{
|
|
265
265
|
name: "sigv4",
|
|
266
|
-
signingName: "billingconductor",
|
|
267
266
|
signingRegion: "us-east-1",
|
|
267
|
+
signingName: "billingconductor",
|
|
268
268
|
},
|
|
269
269
|
],
|
|
270
270
|
},
|
|
@@ -323,8 +323,8 @@ exports.ruleSet = {
|
|
|
323
323
|
authSchemes: [
|
|
324
324
|
{
|
|
325
325
|
name: "sigv4",
|
|
326
|
-
signingName: "billingconductor",
|
|
327
326
|
signingRegion: "us-east-1",
|
|
327
|
+
signingName: "billingconductor",
|
|
328
328
|
},
|
|
329
329
|
],
|
|
330
330
|
},
|
|
@@ -349,8 +349,8 @@ exports.ruleSet = {
|
|
|
349
349
|
authSchemes: [
|
|
350
350
|
{
|
|
351
351
|
name: "sigv4",
|
|
352
|
-
signingName: "billingconductor",
|
|
353
352
|
signingRegion: "us-east-1",
|
|
353
|
+
signingName: "billingconductor",
|
|
354
354
|
},
|
|
355
355
|
],
|
|
356
356
|
},
|
|
@@ -568,8 +568,8 @@ exports.ruleSet = {
|
|
|
568
568
|
authSchemes: [
|
|
569
569
|
{
|
|
570
570
|
name: "sigv4",
|
|
571
|
-
signingName: "billingconductor",
|
|
572
571
|
signingRegion: "us-east-1",
|
|
572
|
+
signingName: "billingconductor",
|
|
573
573
|
},
|
|
574
574
|
],
|
|
575
575
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdatePricingRuleOutputFilterSensitiveLog = void 0;
|
|
3
|
+
exports.DeleteCustomLineItemInputFilterSensitiveLog = exports.CreateCustomLineItemOutputFilterSensitiveLog = exports.CreateCustomLineItemInputFilterSensitiveLog = exports.CustomLineItemChargeDetailsFilterSensitiveLog = exports.CustomLineItemPercentageChargeDetailsFilterSensitiveLog = exports.CustomLineItemFlatChargeDetailsFilterSensitiveLog = exports.BatchDisassociateResourcesFromCustomLineItemOutputFilterSensitiveLog = exports.DisassociateResourceResponseElementFilterSensitiveLog = exports.BatchDisassociateResourcesFromCustomLineItemInputFilterSensitiveLog = exports.BatchAssociateResourcesToCustomLineItemOutputFilterSensitiveLog = exports.BatchAssociateResourcesToCustomLineItemInputFilterSensitiveLog = exports.CustomLineItemBillingPeriodRangeFilterSensitiveLog = exports.UpdateBillingGroupOutputFilterSensitiveLog = exports.UpdateBillingGroupInputFilterSensitiveLog = exports.ListBillingGroupsOutputFilterSensitiveLog = exports.BillingGroupListElementFilterSensitiveLog = exports.ListBillingGroupsInputFilterSensitiveLog = exports.ListBillingGroupsFilterFilterSensitiveLog = exports.DisassociateAccountsOutputFilterSensitiveLog = exports.DisassociateAccountsInputFilterSensitiveLog = exports.DeleteBillingGroupOutputFilterSensitiveLog = exports.DeleteBillingGroupInputFilterSensitiveLog = exports.CreateBillingGroupOutputFilterSensitiveLog = exports.CreateBillingGroupInputFilterSensitiveLog = exports.ComputationPreferenceFilterSensitiveLog = exports.AssociateResourceResponseElementFilterSensitiveLog = exports.AssociateResourceErrorFilterSensitiveLog = exports.AssociatePricingRulesOutputFilterSensitiveLog = exports.AssociatePricingRulesInputFilterSensitiveLog = exports.ValidationExceptionFieldFilterSensitiveLog = exports.AssociateAccountsOutputFilterSensitiveLog = exports.AssociateAccountsInputFilterSensitiveLog = exports.AccountGroupingFilterSensitiveLog = exports.AccountAssociationsListElementFilterSensitiveLog = exports.PricingRuleType = exports.PricingRuleScope = exports.CustomLineItemRelationship = exports.CurrencyCode = exports.CustomLineItemType = exports.BillingGroupStatus = exports.AssociateResourceErrorReason = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceLimitExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.ConflictExceptionReason = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.ListPricingRulesFilterFilterSensitiveLog = exports.DeletePricingRuleOutputFilterSensitiveLog = exports.DeletePricingRuleInputFilterSensitiveLog = exports.CreatePricingRuleOutputFilterSensitiveLog = exports.CreatePricingRuleInputFilterSensitiveLog = exports.UpdatePricingPlanOutputFilterSensitiveLog = exports.UpdatePricingPlanInputFilterSensitiveLog = exports.ListPricingPlansAssociatedWithPricingRuleOutputFilterSensitiveLog = exports.ListPricingPlansAssociatedWithPricingRuleInputFilterSensitiveLog = exports.ListPricingPlansOutputFilterSensitiveLog = exports.PricingPlanListElementFilterSensitiveLog = exports.ListPricingPlansInputFilterSensitiveLog = exports.ListPricingPlansFilterFilterSensitiveLog = exports.DisassociatePricingRulesOutputFilterSensitiveLog = exports.DisassociatePricingRulesInputFilterSensitiveLog = exports.DeletePricingPlanOutputFilterSensitiveLog = exports.DeletePricingPlanInputFilterSensitiveLog = exports.CreatePricingPlanOutputFilterSensitiveLog = exports.CreatePricingPlanInputFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListBillingGroupCostReportsOutputFilterSensitiveLog = exports.BillingGroupCostReportElementFilterSensitiveLog = exports.ListBillingGroupCostReportsInputFilterSensitiveLog = exports.ListBillingGroupCostReportsFilterFilterSensitiveLog = exports.ListAccountAssociationsOutputFilterSensitiveLog = exports.ListAccountAssociationsInputFilterSensitiveLog = exports.ListAccountAssociationsFilterFilterSensitiveLog = exports.UpdateCustomLineItemOutputFilterSensitiveLog = exports.UpdateCustomLineItemInputFilterSensitiveLog = exports.UpdateCustomLineItemChargeDetailsFilterSensitiveLog = exports.UpdateCustomLineItemPercentageChargeDetailsFilterSensitiveLog = exports.UpdateCustomLineItemFlatChargeDetailsFilterSensitiveLog = exports.ListResourcesAssociatedToCustomLineItemOutputFilterSensitiveLog = exports.ListResourcesAssociatedToCustomLineItemResponseElementFilterSensitiveLog = exports.ListResourcesAssociatedToCustomLineItemInputFilterSensitiveLog = exports.ListResourcesAssociatedToCustomLineItemFilterFilterSensitiveLog = exports.ListCustomLineItemVersionsOutputFilterSensitiveLog = exports.CustomLineItemVersionListElementFilterSensitiveLog = exports.ListCustomLineItemVersionsInputFilterSensitiveLog = exports.ListCustomLineItemVersionsFilterFilterSensitiveLog = exports.ListCustomLineItemVersionsBillingPeriodRangeFilterFilterSensitiveLog = exports.ListCustomLineItemsOutputFilterSensitiveLog = exports.CustomLineItemListElementFilterSensitiveLog = exports.ListCustomLineItemChargeDetailsFilterSensitiveLog = exports.ListCustomLineItemPercentageChargeDetailsFilterSensitiveLog = exports.ListCustomLineItemFlatChargeDetailsFilterSensitiveLog = exports.ListCustomLineItemsInputFilterSensitiveLog = exports.ListCustomLineItemsFilterFilterSensitiveLog = exports.DeleteCustomLineItemOutputFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdatePricingRuleOutputFilterSensitiveLog = exports.UpdatePricingRuleInputFilterSensitiveLog = exports.ListPricingRulesAssociatedToPricingPlanOutputFilterSensitiveLog = exports.ListPricingRulesAssociatedToPricingPlanInputFilterSensitiveLog = exports.ListPricingRulesOutputFilterSensitiveLog = exports.PricingRuleListElementFilterSensitiveLog = exports.ListPricingRulesInputFilterSensitiveLog = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const BillingconductorServiceException_1 = require("./BillingconductorServiceException");
|
|
8
8
|
class AccessDeniedException extends BillingconductorServiceException_1.BillingconductorServiceException {
|
|
@@ -19,6 +19,14 @@ class AccessDeniedException extends BillingconductorServiceException_1.Billingco
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
exports.AccessDeniedException = AccessDeniedException;
|
|
22
|
+
var ConflictExceptionReason;
|
|
23
|
+
(function (ConflictExceptionReason) {
|
|
24
|
+
ConflictExceptionReason["PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT"] = "PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT";
|
|
25
|
+
ConflictExceptionReason["PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT"] = "PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT";
|
|
26
|
+
ConflictExceptionReason["PRICING_RULE_IN_PRICING_PLAN_CONFLICT"] = "PRICING_RULE_IN_PRICING_PLAN_CONFLICT";
|
|
27
|
+
ConflictExceptionReason["RESOURCE_NAME_CONFLICT"] = "RESOURCE_NAME_CONFLICT";
|
|
28
|
+
ConflictExceptionReason["WRITE_CONFLICT_RETRY"] = "WRITE_CONFLICT_RETRY";
|
|
29
|
+
})(ConflictExceptionReason = exports.ConflictExceptionReason || (exports.ConflictExceptionReason = {}));
|
|
22
30
|
class ConflictException extends BillingconductorServiceException_1.BillingconductorServiceException {
|
|
23
31
|
constructor(opts) {
|
|
24
32
|
super({
|
|
@@ -32,6 +40,7 @@ class ConflictException extends BillingconductorServiceException_1.Billingconduc
|
|
|
32
40
|
this.Message = opts.Message;
|
|
33
41
|
this.ResourceId = opts.ResourceId;
|
|
34
42
|
this.ResourceType = opts.ResourceType;
|
|
43
|
+
this.Reason = opts.Reason;
|
|
35
44
|
}
|
|
36
45
|
}
|
|
37
46
|
exports.ConflictException = ConflictException;
|
|
@@ -104,6 +113,7 @@ var ValidationExceptionReason;
|
|
|
104
113
|
ValidationExceptionReason["ACCOUNTS_ALREADY_ASSOCIATED"] = "ACCOUNTS_ALREADY_ASSOCIATED";
|
|
105
114
|
ValidationExceptionReason["ACCOUNTS_NOT_ASSOCIATED"] = "ACCOUNTS_NOT_ASSOCIATED";
|
|
106
115
|
ValidationExceptionReason["CANNOT_PARSE"] = "CANNOT_PARSE";
|
|
116
|
+
ValidationExceptionReason["CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS"] = "CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS";
|
|
107
117
|
ValidationExceptionReason["DUPLICATE_ACCOUNT"] = "DUPLICATE_ACCOUNT";
|
|
108
118
|
ValidationExceptionReason["DUPLICATE_PRICINGRULE_ARNS"] = "DUPLICATE_PRICINGRULE_ARNS";
|
|
109
119
|
ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
|
|
@@ -111,6 +121,7 @@ var ValidationExceptionReason;
|
|
|
111
121
|
ValidationExceptionReason["ILLEGAL_BILLING_PERIOD"] = "ILLEGAL_BILLING_PERIOD";
|
|
112
122
|
ValidationExceptionReason["ILLEGAL_BILLING_PERIOD_RANGE"] = "ILLEGAL_BILLING_PERIOD_RANGE";
|
|
113
123
|
ValidationExceptionReason["ILLEGAL_CHARGE_DETAILS"] = "ILLEGAL_CHARGE_DETAILS";
|
|
124
|
+
ValidationExceptionReason["ILLEGAL_CHILD_ASSOCIATE_RESOURCE"] = "ILLEGAL_CHILD_ASSOCIATE_RESOURCE";
|
|
114
125
|
ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM"] = "ILLEGAL_CUSTOMLINEITEM";
|
|
115
126
|
ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM_MODIFICATION"] = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION";
|
|
116
127
|
ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM_UPDATE"] = "ILLEGAL_CUSTOMLINEITEM_UPDATE";
|
|
@@ -122,7 +133,9 @@ var ValidationExceptionReason;
|
|
|
122
133
|
ValidationExceptionReason["ILLEGAL_UPDATE_CHARGE_DETAILS"] = "ILLEGAL_UPDATE_CHARGE_DETAILS";
|
|
123
134
|
ValidationExceptionReason["INVALID_ARN"] = "INVALID_ARN";
|
|
124
135
|
ValidationExceptionReason["INVALID_BILLINGVIEW_ARN"] = "INVALID_BILLINGVIEW_ARN";
|
|
136
|
+
ValidationExceptionReason["INVALID_BILLING_GROUP"] = "INVALID_BILLING_GROUP";
|
|
125
137
|
ValidationExceptionReason["INVALID_BILLING_GROUP_STATUS"] = "INVALID_BILLING_GROUP_STATUS";
|
|
138
|
+
ValidationExceptionReason["INVALID_BILLING_PERIOD_FOR_OPERATION"] = "INVALID_BILLING_PERIOD_FOR_OPERATION";
|
|
126
139
|
ValidationExceptionReason["INVALID_TIME_RANGE"] = "INVALID_TIME_RANGE";
|
|
127
140
|
ValidationExceptionReason["MISMATCHED_BILLINGGROUP_ARN"] = "MISMATCHED_BILLINGGROUP_ARN";
|
|
128
141
|
ValidationExceptionReason["MISMATCHED_BILLINGVIEW_ARN"] = "MISMATCHED_BILLINGVIEW_ARN";
|
|
@@ -167,6 +180,7 @@ var AssociateResourceErrorReason;
|
|
|
167
180
|
AssociateResourceErrorReason["ILLEGAL_CUSTOMLINEITEM"] = "ILLEGAL_CUSTOMLINEITEM";
|
|
168
181
|
AssociateResourceErrorReason["INTERNAL_SERVER_EXCEPTION"] = "INTERNAL_SERVER_EXCEPTION";
|
|
169
182
|
AssociateResourceErrorReason["INVALID_ARN"] = "INVALID_ARN";
|
|
183
|
+
AssociateResourceErrorReason["INVALID_BILLING_PERIOD_RANGE"] = "INVALID_BILLING_PERIOD_RANGE";
|
|
170
184
|
AssociateResourceErrorReason["SERVICE_LIMIT_EXCEEDED"] = "SERVICE_LIMIT_EXCEEDED";
|
|
171
185
|
})(AssociateResourceErrorReason = exports.AssociateResourceErrorReason || (exports.AssociateResourceErrorReason = {}));
|
|
172
186
|
var BillingGroupStatus;
|
|
@@ -389,6 +403,31 @@ const ListCustomLineItemsOutputFilterSensitiveLog = (obj) => ({
|
|
|
389
403
|
}),
|
|
390
404
|
});
|
|
391
405
|
exports.ListCustomLineItemsOutputFilterSensitiveLog = ListCustomLineItemsOutputFilterSensitiveLog;
|
|
406
|
+
const ListCustomLineItemVersionsBillingPeriodRangeFilterFilterSensitiveLog = (obj) => ({
|
|
407
|
+
...obj,
|
|
408
|
+
});
|
|
409
|
+
exports.ListCustomLineItemVersionsBillingPeriodRangeFilterFilterSensitiveLog = ListCustomLineItemVersionsBillingPeriodRangeFilterFilterSensitiveLog;
|
|
410
|
+
const ListCustomLineItemVersionsFilterFilterSensitiveLog = (obj) => ({
|
|
411
|
+
...obj,
|
|
412
|
+
});
|
|
413
|
+
exports.ListCustomLineItemVersionsFilterFilterSensitiveLog = ListCustomLineItemVersionsFilterFilterSensitiveLog;
|
|
414
|
+
const ListCustomLineItemVersionsInputFilterSensitiveLog = (obj) => ({
|
|
415
|
+
...obj,
|
|
416
|
+
});
|
|
417
|
+
exports.ListCustomLineItemVersionsInputFilterSensitiveLog = ListCustomLineItemVersionsInputFilterSensitiveLog;
|
|
418
|
+
const CustomLineItemVersionListElementFilterSensitiveLog = (obj) => ({
|
|
419
|
+
...obj,
|
|
420
|
+
...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
|
|
421
|
+
...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }),
|
|
422
|
+
});
|
|
423
|
+
exports.CustomLineItemVersionListElementFilterSensitiveLog = CustomLineItemVersionListElementFilterSensitiveLog;
|
|
424
|
+
const ListCustomLineItemVersionsOutputFilterSensitiveLog = (obj) => ({
|
|
425
|
+
...obj,
|
|
426
|
+
...(obj.CustomLineItemVersions && {
|
|
427
|
+
CustomLineItemVersions: obj.CustomLineItemVersions.map((item) => (0, exports.CustomLineItemVersionListElementFilterSensitiveLog)(item)),
|
|
428
|
+
}),
|
|
429
|
+
});
|
|
430
|
+
exports.ListCustomLineItemVersionsOutputFilterSensitiveLog = ListCustomLineItemVersionsOutputFilterSensitiveLog;
|
|
392
431
|
const ListResourcesAssociatedToCustomLineItemFilterFilterSensitiveLog = (obj) => ({
|
|
393
432
|
...obj,
|
|
394
433
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListCustomLineItemVersions = void 0;
|
|
4
|
+
const Billingconductor_1 = require("../Billingconductor");
|
|
5
|
+
const BillingconductorClient_1 = require("../BillingconductorClient");
|
|
6
|
+
const ListCustomLineItemVersionsCommand_1 = require("../commands/ListCustomLineItemVersionsCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListCustomLineItemVersionsCommand_1.ListCustomLineItemVersionsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listCustomLineItemVersions(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListCustomLineItemVersions(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Billingconductor_1.Billingconductor) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListCustomLineItemVersions = paginateListCustomLineItemVersions;
|
|
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./ListAccountAssociationsPaginator"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ListBillingGroupCostReportsPaginator"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./ListBillingGroupsPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListCustomLineItemVersionsPaginator"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./ListCustomLineItemsPaginator"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./ListPricingPlansAssociatedWithPricingRulePaginator"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./ListPricingPlansPaginator"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdatePricingRuleCommand = exports.deserializeAws_restJson1UpdatePricingPlanCommand = exports.deserializeAws_restJson1UpdateCustomLineItemCommand = exports.deserializeAws_restJson1UpdateBillingGroupCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListResourcesAssociatedToCustomLineItemCommand = exports.deserializeAws_restJson1ListPricingRulesAssociatedToPricingPlanCommand = exports.deserializeAws_restJson1ListPricingRulesCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ListCustomLineItemVersionsCommand = exports.deserializeAws_restJson1ListCustomLineItemsCommand = exports.deserializeAws_restJson1ListBillingGroupsCommand = exports.deserializeAws_restJson1ListBillingGroupCostReportsCommand = exports.deserializeAws_restJson1ListAccountAssociationsCommand = exports.deserializeAws_restJson1DisassociatePricingRulesCommand = exports.deserializeAws_restJson1DisassociateAccountsCommand = exports.deserializeAws_restJson1DeletePricingRuleCommand = exports.deserializeAws_restJson1DeletePricingPlanCommand = exports.deserializeAws_restJson1DeleteCustomLineItemCommand = exports.deserializeAws_restJson1DeleteBillingGroupCommand = exports.deserializeAws_restJson1CreatePricingRuleCommand = exports.deserializeAws_restJson1CreatePricingPlanCommand = exports.deserializeAws_restJson1CreateCustomLineItemCommand = exports.deserializeAws_restJson1CreateBillingGroupCommand = exports.deserializeAws_restJson1BatchDisassociateResourcesFromCustomLineItemCommand = exports.deserializeAws_restJson1BatchAssociateResourcesToCustomLineItemCommand = exports.deserializeAws_restJson1AssociatePricingRulesCommand = exports.deserializeAws_restJson1AssociateAccountsCommand = exports.serializeAws_restJson1UpdatePricingRuleCommand = exports.serializeAws_restJson1UpdatePricingPlanCommand = exports.serializeAws_restJson1UpdateCustomLineItemCommand = exports.serializeAws_restJson1UpdateBillingGroupCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListResourcesAssociatedToCustomLineItemCommand = exports.serializeAws_restJson1ListPricingRulesAssociatedToPricingPlanCommand = exports.serializeAws_restJson1ListPricingRulesCommand = exports.serializeAws_restJson1ListPricingPlansAssociatedWithPricingRuleCommand = exports.serializeAws_restJson1ListPricingPlansCommand = exports.serializeAws_restJson1ListCustomLineItemVersionsCommand = exports.serializeAws_restJson1ListCustomLineItemsCommand = exports.serializeAws_restJson1ListBillingGroupsCommand = exports.serializeAws_restJson1ListBillingGroupCostReportsCommand = exports.serializeAws_restJson1ListAccountAssociationsCommand = exports.serializeAws_restJson1DisassociatePricingRulesCommand = exports.serializeAws_restJson1DisassociateAccountsCommand = exports.serializeAws_restJson1DeletePricingRuleCommand = exports.serializeAws_restJson1DeletePricingPlanCommand = exports.serializeAws_restJson1DeleteCustomLineItemCommand = exports.serializeAws_restJson1DeleteBillingGroupCommand = exports.serializeAws_restJson1CreatePricingRuleCommand = exports.serializeAws_restJson1CreatePricingPlanCommand = exports.serializeAws_restJson1CreateCustomLineItemCommand = exports.serializeAws_restJson1CreateBillingGroupCommand = exports.serializeAws_restJson1BatchDisassociateResourcesFromCustomLineItemCommand = exports.serializeAws_restJson1BatchAssociateResourcesToCustomLineItemCommand = exports.serializeAws_restJson1AssociatePricingRulesCommand = exports.serializeAws_restJson1AssociateAccountsCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdatePricingRuleCommand = exports.deserializeAws_restJson1UpdatePricingPlanCommand = exports.deserializeAws_restJson1UpdateCustomLineItemCommand = exports.deserializeAws_restJson1UpdateBillingGroupCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListResourcesAssociatedToCustomLineItemCommand = exports.deserializeAws_restJson1ListPricingRulesAssociatedToPricingPlanCommand = exports.deserializeAws_restJson1ListPricingRulesCommand = exports.deserializeAws_restJson1ListPricingPlansAssociatedWithPricingRuleCommand = exports.deserializeAws_restJson1ListPricingPlansCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const BillingconductorServiceException_1 = require("../models/BillingconductorServiceException");
|
|
@@ -457,6 +457,32 @@ const serializeAws_restJson1ListCustomLineItemsCommand = async (input, context)
|
|
|
457
457
|
});
|
|
458
458
|
};
|
|
459
459
|
exports.serializeAws_restJson1ListCustomLineItemsCommand = serializeAws_restJson1ListCustomLineItemsCommand;
|
|
460
|
+
const serializeAws_restJson1ListCustomLineItemVersionsCommand = async (input, context) => {
|
|
461
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
462
|
+
const headers = {
|
|
463
|
+
"content-type": "application/json",
|
|
464
|
+
};
|
|
465
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-custom-line-item-versions";
|
|
466
|
+
let body;
|
|
467
|
+
body = JSON.stringify({
|
|
468
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
469
|
+
...(input.Filters != null && {
|
|
470
|
+
Filters: serializeAws_restJson1ListCustomLineItemVersionsFilter(input.Filters, context),
|
|
471
|
+
}),
|
|
472
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
473
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
474
|
+
});
|
|
475
|
+
return new protocol_http_1.HttpRequest({
|
|
476
|
+
protocol,
|
|
477
|
+
hostname,
|
|
478
|
+
port,
|
|
479
|
+
method: "POST",
|
|
480
|
+
headers,
|
|
481
|
+
path: resolvedPath,
|
|
482
|
+
body,
|
|
483
|
+
});
|
|
484
|
+
};
|
|
485
|
+
exports.serializeAws_restJson1ListCustomLineItemVersionsCommand = serializeAws_restJson1ListCustomLineItemVersionsCommand;
|
|
460
486
|
const serializeAws_restJson1ListPricingPlansCommand = async (input, context) => {
|
|
461
487
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
462
488
|
const headers = {
|
|
@@ -1632,6 +1658,52 @@ const deserializeAws_restJson1ListCustomLineItemsCommandError = async (output, c
|
|
|
1632
1658
|
});
|
|
1633
1659
|
}
|
|
1634
1660
|
};
|
|
1661
|
+
const deserializeAws_restJson1ListCustomLineItemVersionsCommand = async (output, context) => {
|
|
1662
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1663
|
+
return deserializeAws_restJson1ListCustomLineItemVersionsCommandError(output, context);
|
|
1664
|
+
}
|
|
1665
|
+
const contents = map({
|
|
1666
|
+
$metadata: deserializeMetadata(output),
|
|
1667
|
+
});
|
|
1668
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1669
|
+
if (data.CustomLineItemVersions != null) {
|
|
1670
|
+
contents.CustomLineItemVersions = deserializeAws_restJson1CustomLineItemVersionList(data.CustomLineItemVersions, context);
|
|
1671
|
+
}
|
|
1672
|
+
if (data.NextToken != null) {
|
|
1673
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1674
|
+
}
|
|
1675
|
+
return contents;
|
|
1676
|
+
};
|
|
1677
|
+
exports.deserializeAws_restJson1ListCustomLineItemVersionsCommand = deserializeAws_restJson1ListCustomLineItemVersionsCommand;
|
|
1678
|
+
const deserializeAws_restJson1ListCustomLineItemVersionsCommandError = async (output, context) => {
|
|
1679
|
+
const parsedOutput = {
|
|
1680
|
+
...output,
|
|
1681
|
+
body: await parseErrorBody(output.body, context),
|
|
1682
|
+
};
|
|
1683
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1684
|
+
switch (errorCode) {
|
|
1685
|
+
case "AccessDeniedException":
|
|
1686
|
+
case "com.amazonaws.billingconductor#AccessDeniedException":
|
|
1687
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1688
|
+
case "InternalServerException":
|
|
1689
|
+
case "com.amazonaws.billingconductor#InternalServerException":
|
|
1690
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1691
|
+
case "ThrottlingException":
|
|
1692
|
+
case "com.amazonaws.billingconductor#ThrottlingException":
|
|
1693
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1694
|
+
case "ValidationException":
|
|
1695
|
+
case "com.amazonaws.billingconductor#ValidationException":
|
|
1696
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1697
|
+
default:
|
|
1698
|
+
const parsedBody = parsedOutput.body;
|
|
1699
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1700
|
+
output,
|
|
1701
|
+
parsedBody,
|
|
1702
|
+
exceptionCtor: BillingconductorServiceException_1.BillingconductorServiceException,
|
|
1703
|
+
errorCode,
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
};
|
|
1635
1707
|
const deserializeAws_restJson1ListPricingPlansCommand = async (output, context) => {
|
|
1636
1708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1637
1709
|
return deserializeAws_restJson1ListPricingPlansCommandError(output, context);
|
|
@@ -2314,6 +2386,9 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2314
2386
|
if (data.Message != null) {
|
|
2315
2387
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
2316
2388
|
}
|
|
2389
|
+
if (data.Reason != null) {
|
|
2390
|
+
contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
|
|
2391
|
+
}
|
|
2317
2392
|
if (data.ResourceId != null) {
|
|
2318
2393
|
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
2319
2394
|
}
|
|
@@ -2539,6 +2614,19 @@ const serializeAws_restJson1ListCustomLineItemsFilter = (input, context) => {
|
|
|
2539
2614
|
...(input.Names != null && { Names: serializeAws_restJson1CustomLineItemNameList(input.Names, context) }),
|
|
2540
2615
|
};
|
|
2541
2616
|
};
|
|
2617
|
+
const serializeAws_restJson1ListCustomLineItemVersionsBillingPeriodRangeFilter = (input, context) => {
|
|
2618
|
+
return {
|
|
2619
|
+
...(input.EndBillingPeriod != null && { EndBillingPeriod: input.EndBillingPeriod }),
|
|
2620
|
+
...(input.StartBillingPeriod != null && { StartBillingPeriod: input.StartBillingPeriod }),
|
|
2621
|
+
};
|
|
2622
|
+
};
|
|
2623
|
+
const serializeAws_restJson1ListCustomLineItemVersionsFilter = (input, context) => {
|
|
2624
|
+
return {
|
|
2625
|
+
...(input.BillingPeriodRange != null && {
|
|
2626
|
+
BillingPeriodRange: serializeAws_restJson1ListCustomLineItemVersionsBillingPeriodRangeFilter(input.BillingPeriodRange, context),
|
|
2627
|
+
}),
|
|
2628
|
+
};
|
|
2629
|
+
};
|
|
2542
2630
|
const serializeAws_restJson1ListPricingPlansFilter = (input, context) => {
|
|
2543
2631
|
return {
|
|
2544
2632
|
...(input.Arns != null && { Arns: serializeAws_restJson1PricingPlanArns(input.Arns, context) }),
|
|
@@ -2735,6 +2823,34 @@ const deserializeAws_restJson1CustomLineItemListElement = (output, context) => {
|
|
|
2735
2823
|
ProductCode: (0, smithy_client_1.expectString)(output.ProductCode),
|
|
2736
2824
|
};
|
|
2737
2825
|
};
|
|
2826
|
+
const deserializeAws_restJson1CustomLineItemVersionList = (output, context) => {
|
|
2827
|
+
const retVal = (output || [])
|
|
2828
|
+
.filter((e) => e != null)
|
|
2829
|
+
.map((entry) => {
|
|
2830
|
+
if (entry === null) {
|
|
2831
|
+
return null;
|
|
2832
|
+
}
|
|
2833
|
+
return deserializeAws_restJson1CustomLineItemVersionListElement(entry, context);
|
|
2834
|
+
});
|
|
2835
|
+
return retVal;
|
|
2836
|
+
};
|
|
2837
|
+
const deserializeAws_restJson1CustomLineItemVersionListElement = (output, context) => {
|
|
2838
|
+
return {
|
|
2839
|
+
AssociationSize: (0, smithy_client_1.expectLong)(output.AssociationSize),
|
|
2840
|
+
BillingGroupArn: (0, smithy_client_1.expectString)(output.BillingGroupArn),
|
|
2841
|
+
ChargeDetails: output.ChargeDetails != null
|
|
2842
|
+
? deserializeAws_restJson1ListCustomLineItemChargeDetails(output.ChargeDetails, context)
|
|
2843
|
+
: undefined,
|
|
2844
|
+
CreationTime: (0, smithy_client_1.expectLong)(output.CreationTime),
|
|
2845
|
+
CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
|
|
2846
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2847
|
+
EndBillingPeriod: (0, smithy_client_1.expectString)(output.EndBillingPeriod),
|
|
2848
|
+
LastModifiedTime: (0, smithy_client_1.expectLong)(output.LastModifiedTime),
|
|
2849
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2850
|
+
ProductCode: (0, smithy_client_1.expectString)(output.ProductCode),
|
|
2851
|
+
StartBillingPeriod: (0, smithy_client_1.expectString)(output.StartBillingPeriod),
|
|
2852
|
+
};
|
|
2853
|
+
};
|
|
2738
2854
|
const deserializeAws_restJson1DisassociateResourceResponseElement = (output, context) => {
|
|
2739
2855
|
return {
|
|
2740
2856
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -2776,6 +2892,7 @@ const deserializeAws_restJson1ListCustomLineItemPercentageChargeDetails = (outpu
|
|
|
2776
2892
|
const deserializeAws_restJson1ListResourcesAssociatedToCustomLineItemResponseElement = (output, context) => {
|
|
2777
2893
|
return {
|
|
2778
2894
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2895
|
+
EndBillingPeriod: (0, smithy_client_1.expectString)(output.EndBillingPeriod),
|
|
2779
2896
|
Relationship: (0, smithy_client_1.expectString)(output.Relationship),
|
|
2780
2897
|
};
|
|
2781
2898
|
};
|
|
@@ -17,6 +17,7 @@ import { ListAccountAssociationsCommand, } from "./commands/ListAccountAssociati
|
|
|
17
17
|
import { ListBillingGroupCostReportsCommand, } from "./commands/ListBillingGroupCostReportsCommand";
|
|
18
18
|
import { ListBillingGroupsCommand, } from "./commands/ListBillingGroupsCommand";
|
|
19
19
|
import { ListCustomLineItemsCommand, } from "./commands/ListCustomLineItemsCommand";
|
|
20
|
+
import { ListCustomLineItemVersionsCommand, } from "./commands/ListCustomLineItemVersionsCommand";
|
|
20
21
|
import { ListPricingPlansAssociatedWithPricingRuleCommand, } from "./commands/ListPricingPlansAssociatedWithPricingRuleCommand";
|
|
21
22
|
import { ListPricingPlansCommand, } from "./commands/ListPricingPlansCommand";
|
|
22
23
|
import { ListPricingRulesAssociatedToPricingPlanCommand, } from "./commands/ListPricingRulesAssociatedToPricingPlanCommand";
|
|
@@ -282,6 +283,20 @@ export class Billingconductor extends BillingconductorClient {
|
|
|
282
283
|
return this.send(command, optionsOrCb);
|
|
283
284
|
}
|
|
284
285
|
}
|
|
286
|
+
listCustomLineItemVersions(args, optionsOrCb, cb) {
|
|
287
|
+
const command = new ListCustomLineItemVersionsCommand(args);
|
|
288
|
+
if (typeof optionsOrCb === "function") {
|
|
289
|
+
this.send(command, optionsOrCb);
|
|
290
|
+
}
|
|
291
|
+
else if (typeof cb === "function") {
|
|
292
|
+
if (typeof optionsOrCb !== "object")
|
|
293
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
294
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
295
|
+
}
|
|
296
|
+
else {
|
|
297
|
+
return this.send(command, optionsOrCb);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
285
300
|
listPricingPlans(args, optionsOrCb, cb) {
|
|
286
301
|
const command = new ListPricingPlansCommand(args);
|
|
287
302
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListCustomLineItemVersionsInputFilterSensitiveLog, ListCustomLineItemVersionsOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListCustomLineItemVersionsCommand, serializeAws_restJson1ListCustomLineItemVersionsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListCustomLineItemVersionsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListCustomLineItemVersionsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "BillingconductorClient";
|
|
25
|
+
const commandName = "ListCustomLineItemVersionsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListCustomLineItemVersionsInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListCustomLineItemVersionsOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListCustomLineItemVersionsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListCustomLineItemVersionsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -15,6 +15,7 @@ export * from "./DisassociatePricingRulesCommand";
|
|
|
15
15
|
export * from "./ListAccountAssociationsCommand";
|
|
16
16
|
export * from "./ListBillingGroupCostReportsCommand";
|
|
17
17
|
export * from "./ListBillingGroupsCommand";
|
|
18
|
+
export * from "./ListCustomLineItemVersionsCommand";
|
|
18
19
|
export * from "./ListCustomLineItemsCommand";
|
|
19
20
|
export * from "./ListPricingPlansAssociatedWithPricingRuleCommand";
|
|
20
21
|
export * from "./ListPricingPlansCommand";
|
|
@@ -200,8 +200,8 @@ export const ruleSet = {
|
|
|
200
200
|
authSchemes: [
|
|
201
201
|
{
|
|
202
202
|
name: "sigv4",
|
|
203
|
-
signingName: "billingconductor",
|
|
204
203
|
signingRegion: "us-east-1",
|
|
204
|
+
signingName: "billingconductor",
|
|
205
205
|
},
|
|
206
206
|
],
|
|
207
207
|
},
|
|
@@ -260,8 +260,8 @@ export const ruleSet = {
|
|
|
260
260
|
authSchemes: [
|
|
261
261
|
{
|
|
262
262
|
name: "sigv4",
|
|
263
|
-
signingName: "billingconductor",
|
|
264
263
|
signingRegion: "us-east-1",
|
|
264
|
+
signingName: "billingconductor",
|
|
265
265
|
},
|
|
266
266
|
],
|
|
267
267
|
},
|
|
@@ -320,8 +320,8 @@ export const ruleSet = {
|
|
|
320
320
|
authSchemes: [
|
|
321
321
|
{
|
|
322
322
|
name: "sigv4",
|
|
323
|
-
signingName: "billingconductor",
|
|
324
323
|
signingRegion: "us-east-1",
|
|
324
|
+
signingName: "billingconductor",
|
|
325
325
|
},
|
|
326
326
|
],
|
|
327
327
|
},
|
|
@@ -346,8 +346,8 @@ export const ruleSet = {
|
|
|
346
346
|
authSchemes: [
|
|
347
347
|
{
|
|
348
348
|
name: "sigv4",
|
|
349
|
-
signingName: "billingconductor",
|
|
350
349
|
signingRegion: "us-east-1",
|
|
350
|
+
signingName: "billingconductor",
|
|
351
351
|
},
|
|
352
352
|
],
|
|
353
353
|
},
|
|
@@ -565,8 +565,8 @@ export const ruleSet = {
|
|
|
565
565
|
authSchemes: [
|
|
566
566
|
{
|
|
567
567
|
name: "sigv4",
|
|
568
|
-
signingName: "billingconductor",
|
|
569
568
|
signingRegion: "us-east-1",
|
|
569
|
+
signingName: "billingconductor",
|
|
570
570
|
},
|
|
571
571
|
],
|
|
572
572
|
},
|