@aws-sdk/client-billingconductor 3.476.0 → 3.478.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.
Files changed (47) hide show
  1. package/dist-cjs/pagination/GetBillingGroupCostReportPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListAccountAssociationsPaginator.js +2 -23
  3. package/dist-cjs/pagination/ListBillingGroupCostReportsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListBillingGroupsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListCustomLineItemVersionsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListCustomLineItemsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.js +2 -24
  8. package/dist-cjs/pagination/ListPricingPlansPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListPricingRulesPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListResourcesAssociatedToCustomLineItemPaginator.js +2 -24
  12. package/dist-cjs/protocols/Aws_restJson1.js +146 -376
  13. package/dist-es/pagination/GetBillingGroupCostReportPaginator.js +2 -23
  14. package/dist-es/pagination/ListAccountAssociationsPaginator.js +2 -22
  15. package/dist-es/pagination/ListBillingGroupCostReportsPaginator.js +2 -23
  16. package/dist-es/pagination/ListBillingGroupsPaginator.js +2 -23
  17. package/dist-es/pagination/ListCustomLineItemVersionsPaginator.js +2 -23
  18. package/dist-es/pagination/ListCustomLineItemsPaginator.js +2 -23
  19. package/dist-es/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.js +2 -23
  20. package/dist-es/pagination/ListPricingPlansPaginator.js +2 -23
  21. package/dist-es/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.js +2 -23
  22. package/dist-es/pagination/ListPricingRulesPaginator.js +2 -23
  23. package/dist-es/pagination/ListResourcesAssociatedToCustomLineItemPaginator.js +2 -23
  24. package/dist-es/protocols/Aws_restJson1.js +147 -377
  25. package/dist-types/pagination/GetBillingGroupCostReportPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListAccountAssociationsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListBillingGroupCostReportsPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListBillingGroupsPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListCustomLineItemVersionsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListCustomLineItemsPaginator.d.ts +1 -1
  31. package/dist-types/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.d.ts +1 -1
  32. package/dist-types/pagination/ListPricingPlansPaginator.d.ts +1 -1
  33. package/dist-types/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.d.ts +1 -1
  34. package/dist-types/pagination/ListPricingRulesPaginator.d.ts +1 -1
  35. package/dist-types/pagination/ListResourcesAssociatedToCustomLineItemPaginator.d.ts +1 -1
  36. package/dist-types/ts3.4/pagination/GetBillingGroupCostReportPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListAccountAssociationsPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListBillingGroupCostReportsPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListBillingGroupsPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListCustomLineItemVersionsPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/ListCustomLineItemsPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.d.ts +3 -3
  43. package/dist-types/ts3.4/pagination/ListPricingPlansPaginator.d.ts +3 -3
  44. package/dist-types/ts3.4/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.d.ts +3 -3
  45. package/dist-types/ts3.4/pagination/ListPricingRulesPaginator.d.ts +3 -3
  46. package/dist-types/ts3.4/pagination/ListResourcesAssociatedToCustomLineItemPaginator.d.ts +3 -3
  47. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetBillingGroupCostReport = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BillingconductorClient_1 = require("../BillingconductorClient");
5
6
  const GetBillingGroupCostReportCommand_1 = require("../commands/GetBillingGroupCostReportCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetBillingGroupCostReportCommand_1.GetBillingGroupCostReportCommand(input), ...args);
8
- };
9
- async function* paginateGetBillingGroupCostReport(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetBillingGroupCostReport = paginateGetBillingGroupCostReport;
7
+ exports.paginateGetBillingGroupCostReport = (0, core_1.createPaginator)(BillingconductorClient_1.BillingconductorClient, GetBillingGroupCostReportCommand_1.GetBillingGroupCostReportCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccountAssociations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BillingconductorClient_1 = require("../BillingconductorClient");
5
6
  const ListAccountAssociationsCommand_1 = require("../commands/ListAccountAssociationsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAccountAssociationsCommand_1.ListAccountAssociationsCommand(input), ...args);
8
- };
9
- async function* paginateListAccountAssociations(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateListAccountAssociations = paginateListAccountAssociations;
7
+ exports.paginateListAccountAssociations = (0, core_1.createPaginator)(BillingconductorClient_1.BillingconductorClient, ListAccountAssociationsCommand_1.ListAccountAssociationsCommand, "NextToken", "NextToken", "");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBillingGroupCostReports = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BillingconductorClient_1 = require("../BillingconductorClient");
5
6
  const ListBillingGroupCostReportsCommand_1 = require("../commands/ListBillingGroupCostReportsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBillingGroupCostReportsCommand_1.ListBillingGroupCostReportsCommand(input), ...args);
8
- };
9
- async function* paginateListBillingGroupCostReports(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBillingGroupCostReports = paginateListBillingGroupCostReports;
7
+ exports.paginateListBillingGroupCostReports = (0, core_1.createPaginator)(BillingconductorClient_1.BillingconductorClient, ListBillingGroupCostReportsCommand_1.ListBillingGroupCostReportsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBillingGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BillingconductorClient_1 = require("../BillingconductorClient");
5
6
  const ListBillingGroupsCommand_1 = require("../commands/ListBillingGroupsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBillingGroupsCommand_1.ListBillingGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListBillingGroups(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBillingGroups = paginateListBillingGroups;
7
+ exports.paginateListBillingGroups = (0, core_1.createPaginator)(BillingconductorClient_1.BillingconductorClient, ListBillingGroupsCommand_1.ListBillingGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCustomLineItemVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BillingconductorClient_1 = require("../BillingconductorClient");
5
6
  const ListCustomLineItemVersionsCommand_1 = require("../commands/ListCustomLineItemVersionsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCustomLineItemVersionsCommand_1.ListCustomLineItemVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListCustomLineItemVersions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListCustomLineItemVersions = paginateListCustomLineItemVersions;
7
+ exports.paginateListCustomLineItemVersions = (0, core_1.createPaginator)(BillingconductorClient_1.BillingconductorClient, ListCustomLineItemVersionsCommand_1.ListCustomLineItemVersionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCustomLineItems = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BillingconductorClient_1 = require("../BillingconductorClient");
5
6
  const ListCustomLineItemsCommand_1 = require("../commands/ListCustomLineItemsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCustomLineItemsCommand_1.ListCustomLineItemsCommand(input), ...args);
8
- };
9
- async function* paginateListCustomLineItems(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListCustomLineItems = paginateListCustomLineItems;
7
+ exports.paginateListCustomLineItems = (0, core_1.createPaginator)(BillingconductorClient_1.BillingconductorClient, ListCustomLineItemsCommand_1.ListCustomLineItemsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPricingPlansAssociatedWithPricingRule = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BillingconductorClient_1 = require("../BillingconductorClient");
5
6
  const ListPricingPlansAssociatedWithPricingRuleCommand_1 = require("../commands/ListPricingPlansAssociatedWithPricingRuleCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPricingPlansAssociatedWithPricingRuleCommand_1.ListPricingPlansAssociatedWithPricingRuleCommand(input), ...args);
8
- };
9
- async function* paginateListPricingPlansAssociatedWithPricingRule(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPricingPlansAssociatedWithPricingRule = paginateListPricingPlansAssociatedWithPricingRule;
7
+ exports.paginateListPricingPlansAssociatedWithPricingRule = (0, core_1.createPaginator)(BillingconductorClient_1.BillingconductorClient, ListPricingPlansAssociatedWithPricingRuleCommand_1.ListPricingPlansAssociatedWithPricingRuleCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPricingPlans = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BillingconductorClient_1 = require("../BillingconductorClient");
5
6
  const ListPricingPlansCommand_1 = require("../commands/ListPricingPlansCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPricingPlansCommand_1.ListPricingPlansCommand(input), ...args);
8
- };
9
- async function* paginateListPricingPlans(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPricingPlans = paginateListPricingPlans;
7
+ exports.paginateListPricingPlans = (0, core_1.createPaginator)(BillingconductorClient_1.BillingconductorClient, ListPricingPlansCommand_1.ListPricingPlansCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPricingRulesAssociatedToPricingPlan = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BillingconductorClient_1 = require("../BillingconductorClient");
5
6
  const ListPricingRulesAssociatedToPricingPlanCommand_1 = require("../commands/ListPricingRulesAssociatedToPricingPlanCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPricingRulesAssociatedToPricingPlanCommand_1.ListPricingRulesAssociatedToPricingPlanCommand(input), ...args);
8
- };
9
- async function* paginateListPricingRulesAssociatedToPricingPlan(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPricingRulesAssociatedToPricingPlan = paginateListPricingRulesAssociatedToPricingPlan;
7
+ exports.paginateListPricingRulesAssociatedToPricingPlan = (0, core_1.createPaginator)(BillingconductorClient_1.BillingconductorClient, ListPricingRulesAssociatedToPricingPlanCommand_1.ListPricingRulesAssociatedToPricingPlanCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPricingRules = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BillingconductorClient_1 = require("../BillingconductorClient");
5
6
  const ListPricingRulesCommand_1 = require("../commands/ListPricingRulesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPricingRulesCommand_1.ListPricingRulesCommand(input), ...args);
8
- };
9
- async function* paginateListPricingRules(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPricingRules = paginateListPricingRules;
7
+ exports.paginateListPricingRules = (0, core_1.createPaginator)(BillingconductorClient_1.BillingconductorClient, ListPricingRulesCommand_1.ListPricingRulesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListResourcesAssociatedToCustomLineItem = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BillingconductorClient_1 = require("../BillingconductorClient");
5
6
  const ListResourcesAssociatedToCustomLineItemCommand_1 = require("../commands/ListResourcesAssociatedToCustomLineItemCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListResourcesAssociatedToCustomLineItemCommand_1.ListResourcesAssociatedToCustomLineItemCommand(input), ...args);
8
- };
9
- async function* paginateListResourcesAssociatedToCustomLineItem(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof BillingconductorClient_1.BillingconductorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListResourcesAssociatedToCustomLineItem = paginateListResourcesAssociatedToCustomLineItem;
7
+ exports.paginateListResourcesAssociatedToCustomLineItem = (0, core_1.createPaginator)(BillingconductorClient_1.BillingconductorClient, ListResourcesAssociatedToCustomLineItemCommand_1.ListResourcesAssociatedToCustomLineItemCommand, "NextToken", "NextToken", "MaxResults");