@aws-sdk/client-fms 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.
Files changed (33) hide show
  1. package/dist-cjs/pagination/ListAdminAccountsForOrganizationPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListAdminsManagingAccountPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListAppsListsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListComplianceStatusPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListMemberAccountsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListPoliciesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListProtocolsListsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.js +2 -24
  9. package/dist-es/pagination/ListAdminAccountsForOrganizationPaginator.js +2 -23
  10. package/dist-es/pagination/ListAdminsManagingAccountPaginator.js +2 -23
  11. package/dist-es/pagination/ListAppsListsPaginator.js +2 -23
  12. package/dist-es/pagination/ListComplianceStatusPaginator.js +2 -23
  13. package/dist-es/pagination/ListMemberAccountsPaginator.js +2 -23
  14. package/dist-es/pagination/ListPoliciesPaginator.js +2 -23
  15. package/dist-es/pagination/ListProtocolsListsPaginator.js +2 -23
  16. package/dist-es/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.js +2 -23
  17. package/dist-types/pagination/ListAdminAccountsForOrganizationPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListAdminsManagingAccountPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListAppsListsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListComplianceStatusPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListMemberAccountsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListPoliciesPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListProtocolsListsPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.d.ts +1 -1
  25. package/dist-types/ts3.4/pagination/ListAdminAccountsForOrganizationPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListAdminsManagingAccountPaginator.d.ts +3 -3
  27. package/dist-types/ts3.4/pagination/ListAppsListsPaginator.d.ts +3 -3
  28. package/dist-types/ts3.4/pagination/ListComplianceStatusPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListMemberAccountsPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +3 -3
  31. package/dist-types/ts3.4/pagination/ListProtocolsListsPaginator.d.ts +3 -3
  32. package/dist-types/ts3.4/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.d.ts +3 -3
  33. package/package.json +6 -5
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAdminAccountsForOrganization = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAdminAccountsForOrganizationCommand_1 = require("../commands/ListAdminAccountsForOrganizationCommand");
5
6
  const FMSClient_1 = require("../FMSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAdminAccountsForOrganizationCommand_1.ListAdminAccountsForOrganizationCommand(input), ...args);
8
- };
9
- async function* paginateListAdminAccountsForOrganization(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 FMSClient_1.FMSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FMS | FMSClient");
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.paginateListAdminAccountsForOrganization = paginateListAdminAccountsForOrganization;
7
+ exports.paginateListAdminAccountsForOrganization = (0, core_1.createPaginator)(FMSClient_1.FMSClient, ListAdminAccountsForOrganizationCommand_1.ListAdminAccountsForOrganizationCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAdminsManagingAccount = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAdminsManagingAccountCommand_1 = require("../commands/ListAdminsManagingAccountCommand");
5
6
  const FMSClient_1 = require("../FMSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAdminsManagingAccountCommand_1.ListAdminsManagingAccountCommand(input), ...args);
8
- };
9
- async function* paginateListAdminsManagingAccount(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 FMSClient_1.FMSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FMS | FMSClient");
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.paginateListAdminsManagingAccount = paginateListAdminsManagingAccount;
7
+ exports.paginateListAdminsManagingAccount = (0, core_1.createPaginator)(FMSClient_1.FMSClient, ListAdminsManagingAccountCommand_1.ListAdminsManagingAccountCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAppsLists = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAppsListsCommand_1 = require("../commands/ListAppsListsCommand");
5
6
  const FMSClient_1 = require("../FMSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAppsListsCommand_1.ListAppsListsCommand(input), ...args);
8
- };
9
- async function* paginateListAppsLists(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 FMSClient_1.FMSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FMS | FMSClient");
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.paginateListAppsLists = paginateListAppsLists;
7
+ exports.paginateListAppsLists = (0, core_1.createPaginator)(FMSClient_1.FMSClient, ListAppsListsCommand_1.ListAppsListsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListComplianceStatus = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListComplianceStatusCommand_1 = require("../commands/ListComplianceStatusCommand");
5
6
  const FMSClient_1 = require("../FMSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListComplianceStatusCommand_1.ListComplianceStatusCommand(input), ...args);
8
- };
9
- async function* paginateListComplianceStatus(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 FMSClient_1.FMSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FMS | FMSClient");
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.paginateListComplianceStatus = paginateListComplianceStatus;
7
+ exports.paginateListComplianceStatus = (0, core_1.createPaginator)(FMSClient_1.FMSClient, ListComplianceStatusCommand_1.ListComplianceStatusCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMemberAccounts = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMemberAccountsCommand_1 = require("../commands/ListMemberAccountsCommand");
5
6
  const FMSClient_1 = require("../FMSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMemberAccountsCommand_1.ListMemberAccountsCommand(input), ...args);
8
- };
9
- async function* paginateListMemberAccounts(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 FMSClient_1.FMSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FMS | FMSClient");
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.paginateListMemberAccounts = paginateListMemberAccounts;
7
+ exports.paginateListMemberAccounts = (0, core_1.createPaginator)(FMSClient_1.FMSClient, ListMemberAccountsCommand_1.ListMemberAccountsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPoliciesCommand_1 = require("../commands/ListPoliciesCommand");
5
6
  const FMSClient_1 = require("../FMSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPoliciesCommand_1.ListPoliciesCommand(input), ...args);
8
- };
9
- async function* paginateListPolicies(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 FMSClient_1.FMSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FMS | FMSClient");
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.paginateListPolicies = paginateListPolicies;
7
+ exports.paginateListPolicies = (0, core_1.createPaginator)(FMSClient_1.FMSClient, ListPoliciesCommand_1.ListPoliciesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProtocolsLists = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListProtocolsListsCommand_1 = require("../commands/ListProtocolsListsCommand");
5
6
  const FMSClient_1 = require("../FMSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListProtocolsListsCommand_1.ListProtocolsListsCommand(input), ...args);
8
- };
9
- async function* paginateListProtocolsLists(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 FMSClient_1.FMSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FMS | FMSClient");
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.paginateListProtocolsLists = paginateListProtocolsLists;
7
+ exports.paginateListProtocolsLists = (0, core_1.createPaginator)(FMSClient_1.FMSClient, ListProtocolsListsCommand_1.ListProtocolsListsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListThirdPartyFirewallFirewallPolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListThirdPartyFirewallFirewallPoliciesCommand_1 = require("../commands/ListThirdPartyFirewallFirewallPoliciesCommand");
5
6
  const FMSClient_1 = require("../FMSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListThirdPartyFirewallFirewallPoliciesCommand_1.ListThirdPartyFirewallFirewallPoliciesCommand(input), ...args);
8
- };
9
- async function* paginateListThirdPartyFirewallFirewallPolicies(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 FMSClient_1.FMSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected FMS | FMSClient");
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.paginateListThirdPartyFirewallFirewallPolicies = paginateListThirdPartyFirewallFirewallPolicies;
7
+ exports.paginateListThirdPartyFirewallFirewallPolicies = (0, core_1.createPaginator)(FMSClient_1.FMSClient, ListThirdPartyFirewallFirewallPoliciesCommand_1.ListThirdPartyFirewallFirewallPoliciesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAdminAccountsForOrganizationCommand, } from "../commands/ListAdminAccountsForOrganizationCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAdminAccountsForOrganizationCommand(input), ...args);
5
- };
6
- export async function* paginateListAdminAccountsForOrganization(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 FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
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 paginateListAdminAccountsForOrganization = createPaginator(FMSClient, ListAdminAccountsForOrganizationCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAdminsManagingAccountCommand, } from "../commands/ListAdminsManagingAccountCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAdminsManagingAccountCommand(input), ...args);
5
- };
6
- export async function* paginateListAdminsManagingAccount(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 FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
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 paginateListAdminsManagingAccount = createPaginator(FMSClient, ListAdminsManagingAccountCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAppsListsCommand, } from "../commands/ListAppsListsCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAppsListsCommand(input), ...args);
5
- };
6
- export async function* paginateListAppsLists(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 FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
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 paginateListAppsLists = createPaginator(FMSClient, ListAppsListsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListComplianceStatusCommand, } from "../commands/ListComplianceStatusCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListComplianceStatusCommand(input), ...args);
5
- };
6
- export async function* paginateListComplianceStatus(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 FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
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 paginateListComplianceStatus = createPaginator(FMSClient, ListComplianceStatusCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListMemberAccountsCommand, } from "../commands/ListMemberAccountsCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListMemberAccountsCommand(input), ...args);
5
- };
6
- export async function* paginateListMemberAccounts(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 FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
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 paginateListMemberAccounts = createPaginator(FMSClient, ListMemberAccountsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListPoliciesCommand, } from "../commands/ListPoliciesCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPoliciesCommand(input), ...args);
5
- };
6
- export async function* paginateListPolicies(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 FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
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 paginateListPolicies = createPaginator(FMSClient, ListPoliciesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListProtocolsListsCommand, } from "../commands/ListProtocolsListsCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListProtocolsListsCommand(input), ...args);
5
- };
6
- export async function* paginateListProtocolsLists(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 FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
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 paginateListProtocolsLists = createPaginator(FMSClient, ListProtocolsListsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListThirdPartyFirewallFirewallPoliciesCommand, } from "../commands/ListThirdPartyFirewallFirewallPoliciesCommand";
2
3
  import { FMSClient } from "../FMSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListThirdPartyFirewallFirewallPoliciesCommand(input), ...args);
5
- };
6
- export async function* paginateListThirdPartyFirewallFirewallPolicies(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 FMSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected FMS | FMSClient");
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 paginateListThirdPartyFirewallFirewallPolicies = createPaginator(FMSClient, ListThirdPartyFirewallFirewallPoliciesCommand, "NextToken", "NextToken", "MaxResults");
@@ -4,4 +4,4 @@ import { FMSPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAdminAccountsForOrganization(config: FMSPaginationConfiguration, input: ListAdminAccountsForOrganizationCommandInput, ...additionalArguments: any): Paginator<ListAdminAccountsForOrganizationCommandOutput>;
7
+ export declare const paginateListAdminAccountsForOrganization: (config: FMSPaginationConfiguration, input: ListAdminAccountsForOrganizationCommandInput, ...rest: any[]) => Paginator<ListAdminAccountsForOrganizationCommandOutput>;
@@ -4,4 +4,4 @@ import { FMSPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAdminsManagingAccount(config: FMSPaginationConfiguration, input: ListAdminsManagingAccountCommandInput, ...additionalArguments: any): Paginator<ListAdminsManagingAccountCommandOutput>;
7
+ export declare const paginateListAdminsManagingAccount: (config: FMSPaginationConfiguration, input: ListAdminsManagingAccountCommandInput, ...rest: any[]) => Paginator<ListAdminsManagingAccountCommandOutput>;
@@ -4,4 +4,4 @@ import { FMSPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAppsLists(config: FMSPaginationConfiguration, input: ListAppsListsCommandInput, ...additionalArguments: any): Paginator<ListAppsListsCommandOutput>;
7
+ export declare const paginateListAppsLists: (config: FMSPaginationConfiguration, input: ListAppsListsCommandInput, ...rest: any[]) => Paginator<ListAppsListsCommandOutput>;
@@ -4,4 +4,4 @@ import { FMSPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListComplianceStatus(config: FMSPaginationConfiguration, input: ListComplianceStatusCommandInput, ...additionalArguments: any): Paginator<ListComplianceStatusCommandOutput>;
7
+ export declare const paginateListComplianceStatus: (config: FMSPaginationConfiguration, input: ListComplianceStatusCommandInput, ...rest: any[]) => Paginator<ListComplianceStatusCommandOutput>;
@@ -4,4 +4,4 @@ import { FMSPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListMemberAccounts(config: FMSPaginationConfiguration, input: ListMemberAccountsCommandInput, ...additionalArguments: any): Paginator<ListMemberAccountsCommandOutput>;
7
+ export declare const paginateListMemberAccounts: (config: FMSPaginationConfiguration, input: ListMemberAccountsCommandInput, ...rest: any[]) => Paginator<ListMemberAccountsCommandOutput>;
@@ -4,4 +4,4 @@ import { FMSPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListPolicies(config: FMSPaginationConfiguration, input: ListPoliciesCommandInput, ...additionalArguments: any): Paginator<ListPoliciesCommandOutput>;
7
+ export declare const paginateListPolicies: (config: FMSPaginationConfiguration, input: ListPoliciesCommandInput, ...rest: any[]) => Paginator<ListPoliciesCommandOutput>;
@@ -4,4 +4,4 @@ import { FMSPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListProtocolsLists(config: FMSPaginationConfiguration, input: ListProtocolsListsCommandInput, ...additionalArguments: any): Paginator<ListProtocolsListsCommandOutput>;
7
+ export declare const paginateListProtocolsLists: (config: FMSPaginationConfiguration, input: ListProtocolsListsCommandInput, ...rest: any[]) => Paginator<ListProtocolsListsCommandOutput>;
@@ -4,4 +4,4 @@ import { FMSPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListThirdPartyFirewallFirewallPolicies(config: FMSPaginationConfiguration, input: ListThirdPartyFirewallFirewallPoliciesCommandInput, ...additionalArguments: any): Paginator<ListThirdPartyFirewallFirewallPoliciesCommandOutput>;
7
+ export declare const paginateListThirdPartyFirewallFirewallPolicies: (config: FMSPaginationConfiguration, input: ListThirdPartyFirewallFirewallPoliciesCommandInput, ...rest: any[]) => Paginator<ListThirdPartyFirewallFirewallPoliciesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAdminAccountsForOrganizationCommandOutput,
5
5
  } from "../commands/ListAdminAccountsForOrganizationCommand";
6
6
  import { FMSPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAdminAccountsForOrganization(
7
+ export declare const paginateListAdminAccountsForOrganization: (
8
8
  config: FMSPaginationConfiguration,
9
9
  input: ListAdminAccountsForOrganizationCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAdminAccountsForOrganizationCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAdminAccountsForOrganizationCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAdminsManagingAccountCommandOutput,
5
5
  } from "../commands/ListAdminsManagingAccountCommand";
6
6
  import { FMSPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAdminsManagingAccount(
7
+ export declare const paginateListAdminsManagingAccount: (
8
8
  config: FMSPaginationConfiguration,
9
9
  input: ListAdminsManagingAccountCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAdminsManagingAccountCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAdminsManagingAccountCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAppsListsCommandOutput,
5
5
  } from "../commands/ListAppsListsCommand";
6
6
  import { FMSPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAppsLists(
7
+ export declare const paginateListAppsLists: (
8
8
  config: FMSPaginationConfiguration,
9
9
  input: ListAppsListsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAppsListsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAppsListsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListComplianceStatusCommandOutput,
5
5
  } from "../commands/ListComplianceStatusCommand";
6
6
  import { FMSPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListComplianceStatus(
7
+ export declare const paginateListComplianceStatus: (
8
8
  config: FMSPaginationConfiguration,
9
9
  input: ListComplianceStatusCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListComplianceStatusCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListComplianceStatusCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListMemberAccountsCommandOutput,
5
5
  } from "../commands/ListMemberAccountsCommand";
6
6
  import { FMSPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListMemberAccounts(
7
+ export declare const paginateListMemberAccounts: (
8
8
  config: FMSPaginationConfiguration,
9
9
  input: ListMemberAccountsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListMemberAccountsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListMemberAccountsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListPoliciesCommandOutput,
5
5
  } from "../commands/ListPoliciesCommand";
6
6
  import { FMSPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListPolicies(
7
+ export declare const paginateListPolicies: (
8
8
  config: FMSPaginationConfiguration,
9
9
  input: ListPoliciesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListPoliciesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListPoliciesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListProtocolsListsCommandOutput,
5
5
  } from "../commands/ListProtocolsListsCommand";
6
6
  import { FMSPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListProtocolsLists(
7
+ export declare const paginateListProtocolsLists: (
8
8
  config: FMSPaginationConfiguration,
9
9
  input: ListProtocolsListsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListProtocolsListsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListProtocolsListsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListThirdPartyFirewallFirewallPoliciesCommandOutput,
5
5
  } from "../commands/ListThirdPartyFirewallFirewallPoliciesCommand";
6
6
  import { FMSPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListThirdPartyFirewallFirewallPolicies(
7
+ export declare const paginateListThirdPartyFirewallFirewallPolicies: (
8
8
  config: FMSPaginationConfiguration,
9
9
  input: ListThirdPartyFirewallFirewallPoliciesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListThirdPartyFirewallFirewallPoliciesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListThirdPartyFirewallFirewallPoliciesCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-fms",
3
3
  "description": "AWS SDK for JavaScript Fms Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
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.477.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
24
  "@aws-sdk/core": "3.477.0",
25
- "@aws-sdk/credential-provider-node": "3.477.0",
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.470.0",
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.470.0",
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",