@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,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccessGrantsInstances = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAccessGrantsInstancesCommand_1 = require("../commands/ListAccessGrantsInstancesCommand");
|
|
5
6
|
const S3ControlClient_1 = require("../S3ControlClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAccessGrantsInstancesCommand_1.ListAccessGrantsInstancesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAccessGrantsInstances(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 S3ControlClient_1.S3ControlClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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.paginateListAccessGrantsInstances = paginateListAccessGrantsInstances;
|
|
7
|
+
exports.paginateListAccessGrantsInstances = (0, core_1.createPaginator)(S3ControlClient_1.S3ControlClient, ListAccessGrantsInstancesCommand_1.ListAccessGrantsInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccessGrantsLocations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAccessGrantsLocationsCommand_1 = require("../commands/ListAccessGrantsLocationsCommand");
|
|
5
6
|
const S3ControlClient_1 = require("../S3ControlClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAccessGrantsLocationsCommand_1.ListAccessGrantsLocationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAccessGrantsLocations(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 S3ControlClient_1.S3ControlClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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.paginateListAccessGrantsLocations = paginateListAccessGrantsLocations;
|
|
7
|
+
exports.paginateListAccessGrantsLocations = (0, core_1.createPaginator)(S3ControlClient_1.S3ControlClient, ListAccessGrantsLocationsCommand_1.ListAccessGrantsLocationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccessGrants = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAccessGrantsCommand_1 = require("../commands/ListAccessGrantsCommand");
|
|
5
6
|
const S3ControlClient_1 = require("../S3ControlClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAccessGrantsCommand_1.ListAccessGrantsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAccessGrants(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 S3ControlClient_1.S3ControlClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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.paginateListAccessGrants = paginateListAccessGrants;
|
|
7
|
+
exports.paginateListAccessGrants = (0, core_1.createPaginator)(S3ControlClient_1.S3ControlClient, ListAccessGrantsCommand_1.ListAccessGrantsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccessPointsForObjectLambda = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAccessPointsForObjectLambdaCommand_1 = require("../commands/ListAccessPointsForObjectLambdaCommand");
|
|
5
6
|
const S3ControlClient_1 = require("../S3ControlClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAccessPointsForObjectLambdaCommand_1.ListAccessPointsForObjectLambdaCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAccessPointsForObjectLambda(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 S3ControlClient_1.S3ControlClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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.paginateListAccessPointsForObjectLambda = paginateListAccessPointsForObjectLambda;
|
|
7
|
+
exports.paginateListAccessPointsForObjectLambda = (0, core_1.createPaginator)(S3ControlClient_1.S3ControlClient, ListAccessPointsForObjectLambdaCommand_1.ListAccessPointsForObjectLambdaCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccessPoints = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAccessPointsCommand_1 = require("../commands/ListAccessPointsCommand");
|
|
5
6
|
const S3ControlClient_1 = require("../S3ControlClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAccessPointsCommand_1.ListAccessPointsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAccessPoints(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 S3ControlClient_1.S3ControlClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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.paginateListAccessPoints = paginateListAccessPoints;
|
|
7
|
+
exports.paginateListAccessPoints = (0, core_1.createPaginator)(S3ControlClient_1.S3ControlClient, ListAccessPointsCommand_1.ListAccessPointsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListJobsCommand_1 = require("../commands/ListJobsCommand");
|
|
5
6
|
const S3ControlClient_1 = require("../S3ControlClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListJobsCommand_1.ListJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListJobs(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 S3ControlClient_1.S3ControlClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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.paginateListJobs = paginateListJobs;
|
|
7
|
+
exports.paginateListJobs = (0, core_1.createPaginator)(S3ControlClient_1.S3ControlClient, ListJobsCommand_1.ListJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMultiRegionAccessPoints = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListMultiRegionAccessPointsCommand_1 = require("../commands/ListMultiRegionAccessPointsCommand");
|
|
5
6
|
const S3ControlClient_1 = require("../S3ControlClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMultiRegionAccessPointsCommand_1.ListMultiRegionAccessPointsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMultiRegionAccessPoints(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 S3ControlClient_1.S3ControlClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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.paginateListMultiRegionAccessPoints = paginateListMultiRegionAccessPoints;
|
|
7
|
+
exports.paginateListMultiRegionAccessPoints = (0, core_1.createPaginator)(S3ControlClient_1.S3ControlClient, ListMultiRegionAccessPointsCommand_1.ListMultiRegionAccessPointsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRegionalBuckets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListRegionalBucketsCommand_1 = require("../commands/ListRegionalBucketsCommand");
|
|
5
6
|
const S3ControlClient_1 = require("../S3ControlClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRegionalBucketsCommand_1.ListRegionalBucketsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRegionalBuckets(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 S3ControlClient_1.S3ControlClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
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.paginateListRegionalBuckets = paginateListRegionalBuckets;
|
|
7
|
+
exports.paginateListRegionalBuckets = (0, core_1.createPaginator)(S3ControlClient_1.S3ControlClient, ListRegionalBucketsCommand_1.ListRegionalBucketsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListStorageLensConfigurations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListStorageLensConfigurationsCommand_1 = require("../commands/ListStorageLensConfigurationsCommand");
|
|
5
6
|
const S3ControlClient_1 = require("../S3ControlClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListStorageLensConfigurationsCommand_1.ListStorageLensConfigurationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListStorageLensConfigurations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
if (config.client instanceof S3ControlClient_1.S3ControlClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.NextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListStorageLensConfigurations = paginateListStorageLensConfigurations;
|
|
7
|
+
exports.paginateListStorageLensConfigurations = (0, core_1.createPaginator)(S3ControlClient_1.S3ControlClient, ListStorageLensConfigurationsCommand_1.ListStorageLensConfigurationsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListStorageLensGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListStorageLensGroupsCommand_1 = require("../commands/ListStorageLensGroupsCommand");
|
|
5
6
|
const S3ControlClient_1 = require("../S3ControlClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListStorageLensGroupsCommand_1.ListStorageLensGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListStorageLensGroups(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
if (config.client instanceof S3ControlClient_1.S3ControlClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected S3Control | S3ControlClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.NextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListStorageLensGroups = paginateListStorageLensGroups;
|
|
7
|
+
exports.paginateListStorageLensGroups = (0, core_1.createPaginator)(S3ControlClient_1.S3ControlClient, ListStorageLensGroupsCommand_1.ListStorageLensGroupsCommand, "NextToken", "NextToken", "");
|