@aws-sdk/client-s3-control 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/ListAccessGrantsInstancesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAccessGrantsLocationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAccessGrantsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAccessPointsForObjectLambdaPaginator.js +2 -24
- package/dist-cjs/pagination/ListAccessPointsPaginator.js +2 -24
- package/dist-cjs/pagination/ListJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMultiRegionAccessPointsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRegionalBucketsPaginator.js +2 -24
- package/dist-cjs/pagination/ListStorageLensConfigurationsPaginator.js +2 -23
- package/dist-cjs/pagination/ListStorageLensGroupsPaginator.js +2 -23
- package/dist-cjs/protocols/Aws_restXml.js +3245 -4061
- package/dist-es/pagination/ListAccessGrantsInstancesPaginator.js +2 -23
- package/dist-es/pagination/ListAccessGrantsLocationsPaginator.js +2 -23
- package/dist-es/pagination/ListAccessGrantsPaginator.js +2 -23
- package/dist-es/pagination/ListAccessPointsForObjectLambdaPaginator.js +2 -23
- package/dist-es/pagination/ListAccessPointsPaginator.js +2 -23
- package/dist-es/pagination/ListJobsPaginator.js +2 -23
- package/dist-es/pagination/ListMultiRegionAccessPointsPaginator.js +2 -23
- package/dist-es/pagination/ListRegionalBucketsPaginator.js +2 -23
- package/dist-es/pagination/ListStorageLensConfigurationsPaginator.js +2 -22
- package/dist-es/pagination/ListStorageLensGroupsPaginator.js +2 -22
- package/dist-es/protocols/Aws_restXml.js +3247 -4063
- package/dist-types/pagination/ListAccessGrantsInstancesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAccessGrantsLocationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAccessGrantsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAccessPointsForObjectLambdaPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAccessPointsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMultiRegionAccessPointsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRegionalBucketsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListStorageLensConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListStorageLensGroupsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAccessGrantsInstancesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccessGrantsLocationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccessGrantsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccessPointsForObjectLambdaPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccessPointsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMultiRegionAccessPointsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRegionalBucketsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListStorageLensConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListStorageLensGroupsPaginator.d.ts +3 -3
- package/package.json +8 -7
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAccessGrantsInstancesCommand, } from "../commands/ListAccessGrantsInstancesCommand";
|
|
2
3
|
import { S3ControlClient } from "../S3ControlClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccessGrantsInstancesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccessGrantsInstances(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 S3ControlClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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 paginateListAccessGrantsInstances = createPaginator(S3ControlClient, ListAccessGrantsInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAccessGrantsLocationsCommand, } from "../commands/ListAccessGrantsLocationsCommand";
|
|
2
3
|
import { S3ControlClient } from "../S3ControlClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccessGrantsLocationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccessGrantsLocations(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 S3ControlClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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 paginateListAccessGrantsLocations = createPaginator(S3ControlClient, ListAccessGrantsLocationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAccessGrantsCommand, } from "../commands/ListAccessGrantsCommand";
|
|
2
3
|
import { S3ControlClient } from "../S3ControlClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccessGrantsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccessGrants(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 S3ControlClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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 paginateListAccessGrants = createPaginator(S3ControlClient, ListAccessGrantsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAccessPointsForObjectLambdaCommand, } from "../commands/ListAccessPointsForObjectLambdaCommand";
|
|
2
3
|
import { S3ControlClient } from "../S3ControlClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccessPointsForObjectLambdaCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccessPointsForObjectLambda(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 S3ControlClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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 paginateListAccessPointsForObjectLambda = createPaginator(S3ControlClient, ListAccessPointsForObjectLambdaCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAccessPointsCommand, } from "../commands/ListAccessPointsCommand";
|
|
2
3
|
import { S3ControlClient } from "../S3ControlClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccessPointsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccessPoints(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 S3ControlClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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 paginateListAccessPoints = createPaginator(S3ControlClient, ListAccessPointsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListJobsCommand } from "../commands/ListJobsCommand";
|
|
2
3
|
import { S3ControlClient } from "../S3ControlClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListJobs(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 S3ControlClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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 paginateListJobs = createPaginator(S3ControlClient, ListJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMultiRegionAccessPointsCommand, } from "../commands/ListMultiRegionAccessPointsCommand";
|
|
2
3
|
import { S3ControlClient } from "../S3ControlClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMultiRegionAccessPointsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMultiRegionAccessPoints(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 S3ControlClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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 paginateListMultiRegionAccessPoints = createPaginator(S3ControlClient, ListMultiRegionAccessPointsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRegionalBucketsCommand, } from "../commands/ListRegionalBucketsCommand";
|
|
2
3
|
import { S3ControlClient } from "../S3ControlClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRegionalBucketsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRegionalBuckets(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 S3ControlClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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 paginateListRegionalBuckets = createPaginator(S3ControlClient, ListRegionalBucketsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListStorageLensConfigurationsCommand, } from "../commands/ListStorageLensConfigurationsCommand";
|
|
2
3
|
import { S3ControlClient } from "../S3ControlClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListStorageLensConfigurationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListStorageLensConfigurations(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 S3ControlClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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 paginateListStorageLensConfigurations = createPaginator(S3ControlClient, ListStorageLensConfigurationsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListStorageLensGroupsCommand, } from "../commands/ListStorageLensGroupsCommand";
|
|
2
3
|
import { S3ControlClient } from "../S3ControlClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListStorageLensGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListStorageLensGroups(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 S3ControlClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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 paginateListStorageLensGroups = createPaginator(S3ControlClient, ListStorageLensGroupsCommand, "NextToken", "NextToken", "");
|