@aws-sdk/client-s3 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/ListDirectoryBucketsPaginator.js +2 -24
- package/dist-cjs/pagination/ListObjectsV2Paginator.js +2 -24
- package/dist-cjs/pagination/ListPartsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restXml.js +3603 -4456
- package/dist-es/pagination/ListDirectoryBucketsPaginator.js +2 -23
- package/dist-es/pagination/ListObjectsV2Paginator.js +2 -23
- package/dist-es/pagination/ListPartsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restXml.js +3605 -4458
- package/dist-types/pagination/ListDirectoryBucketsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListObjectsV2Paginator.d.ts +1 -1
- package/dist-types/pagination/ListPartsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListDirectoryBucketsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListObjectsV2Paginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPartsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDirectoryBuckets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDirectoryBucketsCommand_1 = require("../commands/ListDirectoryBucketsCommand");
|
|
5
6
|
const S3Client_1 = require("../S3Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDirectoryBucketsCommand_1.ListDirectoryBucketsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDirectoryBuckets(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.ContinuationToken = token;
|
|
15
|
-
input["MaxDirectoryBuckets"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof S3Client_1.S3Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3 | S3Client");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.ContinuationToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListDirectoryBuckets = paginateListDirectoryBuckets;
|
|
7
|
+
exports.paginateListDirectoryBuckets = (0, core_1.createPaginator)(S3Client_1.S3Client, ListDirectoryBucketsCommand_1.ListDirectoryBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxDirectoryBuckets");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListObjectsV2 = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListObjectsV2Command_1 = require("../commands/ListObjectsV2Command");
|
|
5
6
|
const S3Client_1 = require("../S3Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListObjectsV2Command_1.ListObjectsV2Command(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListObjectsV2(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.ContinuationToken = token;
|
|
15
|
-
input["MaxKeys"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof S3Client_1.S3Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3 | S3Client");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextContinuationToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListObjectsV2 = paginateListObjectsV2;
|
|
7
|
+
exports.paginateListObjectsV2 = (0, core_1.createPaginator)(S3Client_1.S3Client, ListObjectsV2Command_1.ListObjectsV2Command, "ContinuationToken", "NextContinuationToken", "MaxKeys");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListParts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPartsCommand_1 = require("../commands/ListPartsCommand");
|
|
5
6
|
const S3Client_1 = require("../S3Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPartsCommand_1.ListPartsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListParts(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.PartNumberMarker = token;
|
|
15
|
-
input["MaxParts"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof S3Client_1.S3Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected S3 | S3Client");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextPartNumberMarker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListParts = paginateListParts;
|
|
7
|
+
exports.paginateListParts = (0, core_1.createPaginator)(S3Client_1.S3Client, ListPartsCommand_1.ListPartsCommand, "PartNumberMarker", "NextPartNumberMarker", "MaxParts");
|