@aws-sdk/client-efs 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist-cjs/pagination/DescribeAccessPointsPaginator.js +2 -24
  2. package/dist-cjs/pagination/DescribeFileSystemsPaginator.js +2 -24
  3. package/dist-cjs/pagination/DescribeMountTargetsPaginator.js +2 -24
  4. package/dist-cjs/pagination/DescribeReplicationConfigurationsPaginator.js +2 -24
  5. package/dist-cjs/pagination/DescribeTagsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -24
  7. package/dist-cjs/protocols/Aws_restJson1.js +179 -406
  8. package/dist-es/pagination/DescribeAccessPointsPaginator.js +2 -23
  9. package/dist-es/pagination/DescribeFileSystemsPaginator.js +2 -23
  10. package/dist-es/pagination/DescribeMountTargetsPaginator.js +2 -23
  11. package/dist-es/pagination/DescribeReplicationConfigurationsPaginator.js +2 -23
  12. package/dist-es/pagination/DescribeTagsPaginator.js +2 -23
  13. package/dist-es/pagination/ListTagsForResourcePaginator.js +2 -23
  14. package/dist-es/protocols/Aws_restJson1.js +180 -407
  15. package/dist-types/pagination/DescribeAccessPointsPaginator.d.ts +1 -1
  16. package/dist-types/pagination/DescribeFileSystemsPaginator.d.ts +1 -1
  17. package/dist-types/pagination/DescribeMountTargetsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/DescribeReplicationConfigurationsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/DescribeTagsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  21. package/dist-types/ts3.4/pagination/DescribeAccessPointsPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/DescribeFileSystemsPaginator.d.ts +3 -3
  23. package/dist-types/ts3.4/pagination/DescribeMountTargetsPaginator.d.ts +3 -3
  24. package/dist-types/ts3.4/pagination/DescribeReplicationConfigurationsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/DescribeTagsPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +3 -3
  27. package/package.json +7 -6
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeAccessPointsCommand, } from "../commands/DescribeAccessPointsCommand";
2
3
  import { EFSClient } from "../EFSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeAccessPointsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeAccessPoints(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 EFSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EFS | EFSClient");
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 paginateDescribeAccessPoints = createPaginator(EFSClient, DescribeAccessPointsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeFileSystemsCommand, } from "../commands/DescribeFileSystemsCommand";
2
3
  import { EFSClient } from "../EFSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeFileSystemsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeFileSystems(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof EFSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EFS | EFSClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeFileSystems = createPaginator(EFSClient, DescribeFileSystemsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeMountTargetsCommand, } from "../commands/DescribeMountTargetsCommand";
2
3
  import { EFSClient } from "../EFSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeMountTargetsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeMountTargets(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof EFSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EFS | EFSClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeMountTargets = createPaginator(EFSClient, DescribeMountTargetsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeReplicationConfigurationsCommand, } from "../commands/DescribeReplicationConfigurationsCommand";
2
3
  import { EFSClient } from "../EFSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeReplicationConfigurationsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeReplicationConfigurations(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 EFSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EFS | EFSClient");
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 paginateDescribeReplicationConfigurations = createPaginator(EFSClient, DescribeReplicationConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeTagsCommand, } from "../commands/DescribeTagsCommand";
2
3
  import { EFSClient } from "../EFSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeTagsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeTags(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.Marker = token;
12
- input["MaxItems"] = config.pageSize;
13
- if (config.client instanceof EFSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EFS | EFSClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextMarker;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeTags = createPaginator(EFSClient, DescribeTagsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTagsForResourceCommand, } from "../commands/ListTagsForResourceCommand";
2
3
  import { EFSClient } from "../EFSClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTagsForResourceCommand(input), ...args);
5
- };
6
- export async function* paginateListTagsForResource(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 EFSClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected EFS | EFSClient");
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 paginateListTagsForResource = createPaginator(EFSClient, ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");