@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.
- package/dist-cjs/pagination/GetBillingGroupCostReportPaginator.js +2 -24
- package/dist-cjs/pagination/ListAccountAssociationsPaginator.js +2 -23
- package/dist-cjs/pagination/ListBillingGroupCostReportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListBillingGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCustomLineItemVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCustomLineItemsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.js +2 -24
- package/dist-cjs/pagination/ListPricingPlansPaginator.js +2 -24
- package/dist-cjs/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.js +2 -24
- package/dist-cjs/pagination/ListPricingRulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourcesAssociatedToCustomLineItemPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +146 -376
- package/dist-es/pagination/GetBillingGroupCostReportPaginator.js +2 -23
- package/dist-es/pagination/ListAccountAssociationsPaginator.js +2 -22
- package/dist-es/pagination/ListBillingGroupCostReportsPaginator.js +2 -23
- package/dist-es/pagination/ListBillingGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListCustomLineItemVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListCustomLineItemsPaginator.js +2 -23
- package/dist-es/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.js +2 -23
- package/dist-es/pagination/ListPricingPlansPaginator.js +2 -23
- package/dist-es/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.js +2 -23
- package/dist-es/pagination/ListPricingRulesPaginator.js +2 -23
- package/dist-es/pagination/ListResourcesAssociatedToCustomLineItemPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +147 -377
- package/dist-types/pagination/GetBillingGroupCostReportPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAccountAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBillingGroupCostReportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBillingGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCustomLineItemVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCustomLineItemsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.d.ts +1 -1
- package/dist-types/pagination/ListPricingPlansPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPricingRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourcesAssociatedToCustomLineItemPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetBillingGroupCostReportPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccountAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBillingGroupCostReportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBillingGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCustomLineItemVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCustomLineItemsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPricingPlansPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPricingRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourcesAssociatedToCustomLineItemPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BillingconductorClient } from "../BillingconductorClient";
|
|
2
3
|
import { GetBillingGroupCostReportCommand, } from "../commands/GetBillingGroupCostReportCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetBillingGroupCostReportCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetBillingGroupCostReport(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BillingconductorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetBillingGroupCostReport = createPaginator(BillingconductorClient, GetBillingGroupCostReportCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BillingconductorClient } from "../BillingconductorClient";
|
|
2
3
|
import { ListAccountAssociationsCommand, } from "../commands/ListAccountAssociationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccountAssociationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccountAssociations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
if (config.client instanceof BillingconductorClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListAccountAssociations = createPaginator(BillingconductorClient, ListAccountAssociationsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BillingconductorClient } from "../BillingconductorClient";
|
|
2
3
|
import { ListBillingGroupCostReportsCommand, } from "../commands/ListBillingGroupCostReportsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListBillingGroupCostReportsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListBillingGroupCostReports(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BillingconductorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListBillingGroupCostReports = createPaginator(BillingconductorClient, ListBillingGroupCostReportsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BillingconductorClient } from "../BillingconductorClient";
|
|
2
3
|
import { ListBillingGroupsCommand, } from "../commands/ListBillingGroupsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListBillingGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListBillingGroups(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BillingconductorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListBillingGroups = createPaginator(BillingconductorClient, ListBillingGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BillingconductorClient } from "../BillingconductorClient";
|
|
2
3
|
import { ListCustomLineItemVersionsCommand, } from "../commands/ListCustomLineItemVersionsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCustomLineItemVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCustomLineItemVersions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BillingconductorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListCustomLineItemVersions = createPaginator(BillingconductorClient, ListCustomLineItemVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BillingconductorClient } from "../BillingconductorClient";
|
|
2
3
|
import { ListCustomLineItemsCommand, } from "../commands/ListCustomLineItemsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCustomLineItemsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCustomLineItems(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BillingconductorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListCustomLineItems = createPaginator(BillingconductorClient, ListCustomLineItemsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BillingconductorClient } from "../BillingconductorClient";
|
|
2
3
|
import { ListPricingPlansAssociatedWithPricingRuleCommand, } from "../commands/ListPricingPlansAssociatedWithPricingRuleCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPricingPlansAssociatedWithPricingRuleCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPricingPlansAssociatedWithPricingRule(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BillingconductorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPricingPlansAssociatedWithPricingRule = createPaginator(BillingconductorClient, ListPricingPlansAssociatedWithPricingRuleCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BillingconductorClient } from "../BillingconductorClient";
|
|
2
3
|
import { ListPricingPlansCommand, } from "../commands/ListPricingPlansCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPricingPlansCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPricingPlans(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BillingconductorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPricingPlans = createPaginator(BillingconductorClient, ListPricingPlansCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BillingconductorClient } from "../BillingconductorClient";
|
|
2
3
|
import { ListPricingRulesAssociatedToPricingPlanCommand, } from "../commands/ListPricingRulesAssociatedToPricingPlanCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPricingRulesAssociatedToPricingPlanCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPricingRulesAssociatedToPricingPlan(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BillingconductorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPricingRulesAssociatedToPricingPlan = createPaginator(BillingconductorClient, ListPricingRulesAssociatedToPricingPlanCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BillingconductorClient } from "../BillingconductorClient";
|
|
2
3
|
import { ListPricingRulesCommand, } from "../commands/ListPricingRulesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPricingRulesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPricingRules(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BillingconductorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPricingRules = createPaginator(BillingconductorClient, ListPricingRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BillingconductorClient } from "../BillingconductorClient";
|
|
2
3
|
import { ListResourcesAssociatedToCustomLineItemCommand, } from "../commands/ListResourcesAssociatedToCustomLineItemCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListResourcesAssociatedToCustomLineItemCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListResourcesAssociatedToCustomLineItem(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BillingconductorClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Billingconductor | BillingconductorClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListResourcesAssociatedToCustomLineItem = createPaginator(BillingconductorClient, ListResourcesAssociatedToCustomLineItemCommand, "NextToken", "NextToken", "MaxResults");
|