@aws-sdk/client-budgets 3.477.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/DescribeBudgetActionHistoriesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeBudgetActionsForAccountPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeBudgetActionsForBudgetPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeBudgetNotificationsForAccountPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeBudgetPerformanceHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeBudgetsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeNotificationsForBudgetPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeSubscribersForNotificationPaginator.js +2 -24
- package/dist-es/pagination/DescribeBudgetActionHistoriesPaginator.js +2 -23
- package/dist-es/pagination/DescribeBudgetActionsForAccountPaginator.js +2 -23
- package/dist-es/pagination/DescribeBudgetActionsForBudgetPaginator.js +2 -23
- package/dist-es/pagination/DescribeBudgetNotificationsForAccountPaginator.js +2 -23
- package/dist-es/pagination/DescribeBudgetPerformanceHistoryPaginator.js +2 -23
- package/dist-es/pagination/DescribeBudgetsPaginator.js +2 -23
- package/dist-es/pagination/DescribeNotificationsForBudgetPaginator.js +2 -23
- package/dist-es/pagination/DescribeSubscribersForNotificationPaginator.js +2 -23
- package/dist-types/pagination/DescribeBudgetActionHistoriesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeBudgetActionsForAccountPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeBudgetActionsForBudgetPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeBudgetNotificationsForAccountPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeBudgetPerformanceHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeBudgetsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeNotificationsForBudgetPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeSubscribersForNotificationPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeBudgetActionHistoriesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeBudgetActionsForAccountPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeBudgetActionsForBudgetPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeBudgetNotificationsForAccountPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeBudgetPerformanceHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeBudgetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeNotificationsForBudgetPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeSubscribersForNotificationPaginator.d.ts +3 -3
- package/package.json +6 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeBudgetActionHistories = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BudgetsClient_1 = require("../BudgetsClient");
|
|
5
6
|
const DescribeBudgetActionHistoriesCommand_1 = require("../commands/DescribeBudgetActionHistoriesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeBudgetActionHistoriesCommand_1.DescribeBudgetActionHistoriesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeBudgetActionHistories(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 BudgetsClient_1.BudgetsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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.paginateDescribeBudgetActionHistories = paginateDescribeBudgetActionHistories;
|
|
7
|
+
exports.paginateDescribeBudgetActionHistories = (0, core_1.createPaginator)(BudgetsClient_1.BudgetsClient, DescribeBudgetActionHistoriesCommand_1.DescribeBudgetActionHistoriesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeBudgetActionsForAccount = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BudgetsClient_1 = require("../BudgetsClient");
|
|
5
6
|
const DescribeBudgetActionsForAccountCommand_1 = require("../commands/DescribeBudgetActionsForAccountCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeBudgetActionsForAccountCommand_1.DescribeBudgetActionsForAccountCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeBudgetActionsForAccount(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 BudgetsClient_1.BudgetsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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.paginateDescribeBudgetActionsForAccount = paginateDescribeBudgetActionsForAccount;
|
|
7
|
+
exports.paginateDescribeBudgetActionsForAccount = (0, core_1.createPaginator)(BudgetsClient_1.BudgetsClient, DescribeBudgetActionsForAccountCommand_1.DescribeBudgetActionsForAccountCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeBudgetActionsForBudget = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BudgetsClient_1 = require("../BudgetsClient");
|
|
5
6
|
const DescribeBudgetActionsForBudgetCommand_1 = require("../commands/DescribeBudgetActionsForBudgetCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeBudgetActionsForBudgetCommand_1.DescribeBudgetActionsForBudgetCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeBudgetActionsForBudget(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 BudgetsClient_1.BudgetsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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.paginateDescribeBudgetActionsForBudget = paginateDescribeBudgetActionsForBudget;
|
|
7
|
+
exports.paginateDescribeBudgetActionsForBudget = (0, core_1.createPaginator)(BudgetsClient_1.BudgetsClient, DescribeBudgetActionsForBudgetCommand_1.DescribeBudgetActionsForBudgetCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeBudgetNotificationsForAccount = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BudgetsClient_1 = require("../BudgetsClient");
|
|
5
6
|
const DescribeBudgetNotificationsForAccountCommand_1 = require("../commands/DescribeBudgetNotificationsForAccountCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeBudgetNotificationsForAccountCommand_1.DescribeBudgetNotificationsForAccountCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeBudgetNotificationsForAccount(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 BudgetsClient_1.BudgetsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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.paginateDescribeBudgetNotificationsForAccount = paginateDescribeBudgetNotificationsForAccount;
|
|
7
|
+
exports.paginateDescribeBudgetNotificationsForAccount = (0, core_1.createPaginator)(BudgetsClient_1.BudgetsClient, DescribeBudgetNotificationsForAccountCommand_1.DescribeBudgetNotificationsForAccountCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeBudgetPerformanceHistory = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BudgetsClient_1 = require("../BudgetsClient");
|
|
5
6
|
const DescribeBudgetPerformanceHistoryCommand_1 = require("../commands/DescribeBudgetPerformanceHistoryCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeBudgetPerformanceHistoryCommand_1.DescribeBudgetPerformanceHistoryCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeBudgetPerformanceHistory(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 BudgetsClient_1.BudgetsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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.paginateDescribeBudgetPerformanceHistory = paginateDescribeBudgetPerformanceHistory;
|
|
7
|
+
exports.paginateDescribeBudgetPerformanceHistory = (0, core_1.createPaginator)(BudgetsClient_1.BudgetsClient, DescribeBudgetPerformanceHistoryCommand_1.DescribeBudgetPerformanceHistoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeBudgets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BudgetsClient_1 = require("../BudgetsClient");
|
|
5
6
|
const DescribeBudgetsCommand_1 = require("../commands/DescribeBudgetsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeBudgetsCommand_1.DescribeBudgetsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeBudgets(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 BudgetsClient_1.BudgetsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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.paginateDescribeBudgets = paginateDescribeBudgets;
|
|
7
|
+
exports.paginateDescribeBudgets = (0, core_1.createPaginator)(BudgetsClient_1.BudgetsClient, DescribeBudgetsCommand_1.DescribeBudgetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeNotificationsForBudget = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BudgetsClient_1 = require("../BudgetsClient");
|
|
5
6
|
const DescribeNotificationsForBudgetCommand_1 = require("../commands/DescribeNotificationsForBudgetCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeNotificationsForBudgetCommand_1.DescribeNotificationsForBudgetCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeNotificationsForBudget(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 BudgetsClient_1.BudgetsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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.paginateDescribeNotificationsForBudget = paginateDescribeNotificationsForBudget;
|
|
7
|
+
exports.paginateDescribeNotificationsForBudget = (0, core_1.createPaginator)(BudgetsClient_1.BudgetsClient, DescribeNotificationsForBudgetCommand_1.DescribeNotificationsForBudgetCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeSubscribersForNotification = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BudgetsClient_1 = require("../BudgetsClient");
|
|
5
6
|
const DescribeSubscribersForNotificationCommand_1 = require("../commands/DescribeSubscribersForNotificationCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeSubscribersForNotificationCommand_1.DescribeSubscribersForNotificationCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeSubscribersForNotification(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 BudgetsClient_1.BudgetsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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.paginateDescribeSubscribersForNotification = paginateDescribeSubscribersForNotification;
|
|
7
|
+
exports.paginateDescribeSubscribersForNotification = (0, core_1.createPaginator)(BudgetsClient_1.BudgetsClient, DescribeSubscribersForNotificationCommand_1.DescribeSubscribersForNotificationCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BudgetsClient } from "../BudgetsClient";
|
|
2
3
|
import { DescribeBudgetActionHistoriesCommand, } from "../commands/DescribeBudgetActionHistoriesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeBudgetActionHistoriesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeBudgetActionHistories(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 BudgetsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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 paginateDescribeBudgetActionHistories = createPaginator(BudgetsClient, DescribeBudgetActionHistoriesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BudgetsClient } from "../BudgetsClient";
|
|
2
3
|
import { DescribeBudgetActionsForAccountCommand, } from "../commands/DescribeBudgetActionsForAccountCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeBudgetActionsForAccountCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeBudgetActionsForAccount(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 BudgetsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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 paginateDescribeBudgetActionsForAccount = createPaginator(BudgetsClient, DescribeBudgetActionsForAccountCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BudgetsClient } from "../BudgetsClient";
|
|
2
3
|
import { DescribeBudgetActionsForBudgetCommand, } from "../commands/DescribeBudgetActionsForBudgetCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeBudgetActionsForBudgetCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeBudgetActionsForBudget(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 BudgetsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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 paginateDescribeBudgetActionsForBudget = createPaginator(BudgetsClient, DescribeBudgetActionsForBudgetCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BudgetsClient } from "../BudgetsClient";
|
|
2
3
|
import { DescribeBudgetNotificationsForAccountCommand, } from "../commands/DescribeBudgetNotificationsForAccountCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeBudgetNotificationsForAccountCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeBudgetNotificationsForAccount(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 BudgetsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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 paginateDescribeBudgetNotificationsForAccount = createPaginator(BudgetsClient, DescribeBudgetNotificationsForAccountCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BudgetsClient } from "../BudgetsClient";
|
|
2
3
|
import { DescribeBudgetPerformanceHistoryCommand, } from "../commands/DescribeBudgetPerformanceHistoryCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeBudgetPerformanceHistoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeBudgetPerformanceHistory(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 BudgetsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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 paginateDescribeBudgetPerformanceHistory = createPaginator(BudgetsClient, DescribeBudgetPerformanceHistoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BudgetsClient } from "../BudgetsClient";
|
|
2
3
|
import { DescribeBudgetsCommand, } from "../commands/DescribeBudgetsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeBudgetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeBudgets(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 BudgetsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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 paginateDescribeBudgets = createPaginator(BudgetsClient, DescribeBudgetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BudgetsClient } from "../BudgetsClient";
|
|
2
3
|
import { DescribeNotificationsForBudgetCommand, } from "../commands/DescribeNotificationsForBudgetCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeNotificationsForBudgetCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeNotificationsForBudget(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 BudgetsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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 paginateDescribeNotificationsForBudget = createPaginator(BudgetsClient, DescribeNotificationsForBudgetCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BudgetsClient } from "../BudgetsClient";
|
|
2
3
|
import { DescribeSubscribersForNotificationCommand, } from "../commands/DescribeSubscribersForNotificationCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeSubscribersForNotificationCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeSubscribersForNotification(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 BudgetsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
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 paginateDescribeSubscribersForNotification = createPaginator(BudgetsClient, DescribeSubscribersForNotificationCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -4,4 +4,4 @@ import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgetActionHistories: (config: BudgetsPaginationConfiguration, input: DescribeBudgetActionHistoriesCommandInput, ...rest: any[]) => Paginator<DescribeBudgetActionHistoriesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgetActionsForAccount: (config: BudgetsPaginationConfiguration, input: DescribeBudgetActionsForAccountCommandInput, ...rest: any[]) => Paginator<DescribeBudgetActionsForAccountCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgetActionsForBudget: (config: BudgetsPaginationConfiguration, input: DescribeBudgetActionsForBudgetCommandInput, ...rest: any[]) => Paginator<DescribeBudgetActionsForBudgetCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgetNotificationsForAccount: (config: BudgetsPaginationConfiguration, input: DescribeBudgetNotificationsForAccountCommandInput, ...rest: any[]) => Paginator<DescribeBudgetNotificationsForAccountCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgetPerformanceHistory: (config: BudgetsPaginationConfiguration, input: DescribeBudgetPerformanceHistoryCommandInput, ...rest: any[]) => Paginator<DescribeBudgetPerformanceHistoryCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgets: (config: BudgetsPaginationConfiguration, input: DescribeBudgetsCommandInput, ...rest: any[]) => Paginator<DescribeBudgetsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeNotificationsForBudget: (config: BudgetsPaginationConfiguration, input: DescribeNotificationsForBudgetCommandInput, ...rest: any[]) => Paginator<DescribeNotificationsForBudgetCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeSubscribersForNotification: (config: BudgetsPaginationConfiguration, input: DescribeSubscribersForNotificationCommandInput, ...rest: any[]) => Paginator<DescribeSubscribersForNotificationCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeBudgetActionHistoriesCommandOutput,
|
|
5
5
|
} from "../commands/DescribeBudgetActionHistoriesCommand";
|
|
6
6
|
import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgetActionHistories: (
|
|
8
8
|
config: BudgetsPaginationConfiguration,
|
|
9
9
|
input: DescribeBudgetActionHistoriesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeBudgetActionHistoriesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeBudgetActionsForAccountCommandOutput,
|
|
5
5
|
} from "../commands/DescribeBudgetActionsForAccountCommand";
|
|
6
6
|
import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgetActionsForAccount: (
|
|
8
8
|
config: BudgetsPaginationConfiguration,
|
|
9
9
|
input: DescribeBudgetActionsForAccountCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeBudgetActionsForAccountCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeBudgetActionsForBudgetCommandOutput,
|
|
5
5
|
} from "../commands/DescribeBudgetActionsForBudgetCommand";
|
|
6
6
|
import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgetActionsForBudget: (
|
|
8
8
|
config: BudgetsPaginationConfiguration,
|
|
9
9
|
input: DescribeBudgetActionsForBudgetCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeBudgetActionsForBudgetCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeBudgetNotificationsForAccountCommandOutput,
|
|
5
5
|
} from "../commands/DescribeBudgetNotificationsForAccountCommand";
|
|
6
6
|
import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgetNotificationsForAccount: (
|
|
8
8
|
config: BudgetsPaginationConfiguration,
|
|
9
9
|
input: DescribeBudgetNotificationsForAccountCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeBudgetNotificationsForAccountCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeBudgetPerformanceHistoryCommandOutput,
|
|
5
5
|
} from "../commands/DescribeBudgetPerformanceHistoryCommand";
|
|
6
6
|
import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgetPerformanceHistory: (
|
|
8
8
|
config: BudgetsPaginationConfiguration,
|
|
9
9
|
input: DescribeBudgetPerformanceHistoryCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeBudgetPerformanceHistoryCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeBudgetsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeBudgetsCommand";
|
|
6
6
|
import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeBudgets: (
|
|
8
8
|
config: BudgetsPaginationConfiguration,
|
|
9
9
|
input: DescribeBudgetsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeBudgetsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeNotificationsForBudgetCommandOutput,
|
|
5
5
|
} from "../commands/DescribeNotificationsForBudgetCommand";
|
|
6
6
|
import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeNotificationsForBudget: (
|
|
8
8
|
config: BudgetsPaginationConfiguration,
|
|
9
9
|
input: DescribeNotificationsForBudgetCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeNotificationsForBudgetCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeSubscribersForNotificationCommandOutput,
|
|
5
5
|
} from "../commands/DescribeSubscribersForNotificationCommand";
|
|
6
6
|
import { BudgetsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeSubscribersForNotification: (
|
|
8
8
|
config: BudgetsPaginationConfiguration,
|
|
9
9
|
input: DescribeSubscribersForNotificationCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeSubscribersForNotificationCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-budgets",
|
|
3
3
|
"description": "AWS SDK for JavaScript Budgets Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.478.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",
|
|
@@ -20,20 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
24
|
"@aws-sdk/core": "3.477.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|