@aws-sdk/client-transfer 3.131.0 → 3.142.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/CHANGELOG.md +34 -0
- package/README.md +10 -10
- package/dist-cjs/Transfer.js +315 -0
- package/dist-cjs/commands/CreateAccessCommand.js +2 -2
- package/dist-cjs/commands/CreateAgreementCommand.js +36 -0
- package/dist-cjs/commands/CreateConnectorCommand.js +36 -0
- package/dist-cjs/commands/CreateProfileCommand.js +36 -0
- package/dist-cjs/commands/CreateServerCommand.js +2 -2
- package/dist-cjs/commands/CreateUserCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkflowCommand.js +2 -2
- package/dist-cjs/commands/DeleteAccessCommand.js +1 -1
- package/dist-cjs/commands/DeleteAgreementCommand.js +36 -0
- package/dist-cjs/commands/DeleteCertificateCommand.js +36 -0
- package/dist-cjs/commands/DeleteConnectorCommand.js +36 -0
- package/dist-cjs/commands/DeleteProfileCommand.js +36 -0
- package/dist-cjs/commands/DeleteServerCommand.js +1 -1
- package/dist-cjs/commands/DeleteSshPublicKeyCommand.js +1 -1
- package/dist-cjs/commands/DeleteUserCommand.js +1 -1
- package/dist-cjs/commands/DeleteWorkflowCommand.js +1 -1
- package/dist-cjs/commands/DescribeAccessCommand.js +2 -2
- package/dist-cjs/commands/DescribeAgreementCommand.js +36 -0
- package/dist-cjs/commands/DescribeCertificateCommand.js +36 -0
- package/dist-cjs/commands/DescribeConnectorCommand.js +36 -0
- package/dist-cjs/commands/DescribeExecutionCommand.js +2 -2
- package/dist-cjs/commands/DescribeProfileCommand.js +36 -0
- package/dist-cjs/commands/DescribeSecurityPolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeServerCommand.js +2 -2
- package/dist-cjs/commands/DescribeUserCommand.js +2 -2
- package/dist-cjs/commands/DescribeWorkflowCommand.js +2 -2
- package/dist-cjs/commands/ImportCertificateCommand.js +36 -0
- package/dist-cjs/commands/ImportSshPublicKeyCommand.js +2 -2
- package/dist-cjs/commands/ListAccessesCommand.js +2 -2
- package/dist-cjs/commands/ListAgreementsCommand.js +36 -0
- package/dist-cjs/commands/ListCertificatesCommand.js +36 -0
- package/dist-cjs/commands/ListConnectorsCommand.js +36 -0
- package/dist-cjs/commands/ListExecutionsCommand.js +2 -2
- package/dist-cjs/commands/ListProfilesCommand.js +36 -0
- package/dist-cjs/commands/ListSecurityPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListServersCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListUsersCommand.js +2 -2
- package/dist-cjs/commands/ListWorkflowsCommand.js +2 -2
- package/dist-cjs/commands/SendWorkflowStepStateCommand.js +2 -2
- package/dist-cjs/commands/StartFileTransferCommand.js +36 -0
- package/dist-cjs/commands/StartServerCommand.js +1 -1
- package/dist-cjs/commands/StopServerCommand.js +1 -1
- package/dist-cjs/commands/TagResourceCommand.js +1 -1
- package/dist-cjs/commands/TestIdentityProviderCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +1 -1
- package/dist-cjs/commands/UpdateAccessCommand.js +2 -2
- package/dist-cjs/commands/UpdateAgreementCommand.js +36 -0
- package/dist-cjs/commands/UpdateCertificateCommand.js +36 -0
- package/dist-cjs/commands/UpdateConnectorCommand.js +36 -0
- package/dist-cjs/commands/UpdateProfileCommand.js +36 -0
- package/dist-cjs/commands/UpdateServerCommand.js +2 -2
- package/dist-cjs/commands/UpdateUserCommand.js +2 -2
- package/dist-cjs/commands/index.js +21 -0
- package/dist-cjs/models/models_0.js +633 -558
- package/dist-cjs/pagination/ListAgreementsPaginator.js +36 -0
- package/dist-cjs/pagination/ListCertificatesPaginator.js +36 -0
- package/dist-cjs/pagination/ListConnectorsPaginator.js +36 -0
- package/dist-cjs/pagination/ListProfilesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1840 -383
- package/dist-es/Transfer.js +315 -0
- package/dist-es/commands/CreateAccessCommand.js +3 -3
- package/dist-es/commands/CreateAgreementCommand.js +39 -0
- package/dist-es/commands/CreateConnectorCommand.js +39 -0
- package/dist-es/commands/CreateProfileCommand.js +39 -0
- package/dist-es/commands/CreateServerCommand.js +3 -3
- package/dist-es/commands/CreateUserCommand.js +3 -3
- package/dist-es/commands/CreateWorkflowCommand.js +3 -3
- package/dist-es/commands/DeleteAccessCommand.js +2 -2
- package/dist-es/commands/DeleteAgreementCommand.js +39 -0
- package/dist-es/commands/DeleteCertificateCommand.js +39 -0
- package/dist-es/commands/DeleteConnectorCommand.js +39 -0
- package/dist-es/commands/DeleteProfileCommand.js +39 -0
- package/dist-es/commands/DeleteServerCommand.js +2 -2
- package/dist-es/commands/DeleteSshPublicKeyCommand.js +2 -2
- package/dist-es/commands/DeleteUserCommand.js +2 -2
- package/dist-es/commands/DeleteWorkflowCommand.js +2 -2
- package/dist-es/commands/DescribeAccessCommand.js +3 -3
- package/dist-es/commands/DescribeAgreementCommand.js +39 -0
- package/dist-es/commands/DescribeCertificateCommand.js +39 -0
- package/dist-es/commands/DescribeConnectorCommand.js +39 -0
- package/dist-es/commands/DescribeExecutionCommand.js +3 -3
- package/dist-es/commands/DescribeProfileCommand.js +39 -0
- package/dist-es/commands/DescribeSecurityPolicyCommand.js +3 -3
- package/dist-es/commands/DescribeServerCommand.js +3 -3
- package/dist-es/commands/DescribeUserCommand.js +3 -3
- package/dist-es/commands/DescribeWorkflowCommand.js +3 -3
- package/dist-es/commands/ImportCertificateCommand.js +39 -0
- package/dist-es/commands/ImportSshPublicKeyCommand.js +3 -3
- package/dist-es/commands/ListAccessesCommand.js +3 -3
- package/dist-es/commands/ListAgreementsCommand.js +39 -0
- package/dist-es/commands/ListCertificatesCommand.js +39 -0
- package/dist-es/commands/ListConnectorsCommand.js +39 -0
- package/dist-es/commands/ListExecutionsCommand.js +3 -3
- package/dist-es/commands/ListProfilesCommand.js +39 -0
- package/dist-es/commands/ListSecurityPoliciesCommand.js +3 -3
- package/dist-es/commands/ListServersCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListUsersCommand.js +3 -3
- package/dist-es/commands/ListWorkflowsCommand.js +3 -3
- package/dist-es/commands/SendWorkflowStepStateCommand.js +3 -3
- package/dist-es/commands/StartFileTransferCommand.js +39 -0
- package/dist-es/commands/StartServerCommand.js +2 -2
- package/dist-es/commands/StopServerCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js +2 -2
- package/dist-es/commands/TestIdentityProviderCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +2 -2
- package/dist-es/commands/UpdateAccessCommand.js +3 -3
- package/dist-es/commands/UpdateAgreementCommand.js +39 -0
- package/dist-es/commands/UpdateCertificateCommand.js +39 -0
- package/dist-es/commands/UpdateConnectorCommand.js +39 -0
- package/dist-es/commands/UpdateProfileCommand.js +39 -0
- package/dist-es/commands/UpdateServerCommand.js +3 -3
- package/dist-es/commands/UpdateUserCommand.js +3 -3
- package/dist-es/commands/index.js +21 -0
- package/dist-es/models/models_0.js +203 -368
- package/dist-es/pagination/ListAgreementsPaginator.js +75 -0
- package/dist-es/pagination/ListCertificatesPaginator.js +75 -0
- package/dist-es/pagination/ListConnectorsPaginator.js +75 -0
- package/dist-es/pagination/ListProfilesPaginator.js +75 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +2633 -716
- package/dist-types/Transfer.d.ts +190 -13
- package/dist-types/TransferClient.d.ts +32 -11
- package/dist-types/commands/CreateAccessCommand.d.ts +1 -1
- package/dist-types/commands/CreateAgreementCommand.d.ts +40 -0
- package/dist-types/commands/CreateConnectorCommand.d.ts +37 -0
- package/dist-types/commands/CreateProfileCommand.d.ts +36 -0
- package/dist-types/commands/CreateUserCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAgreementCommand.d.ts +35 -0
- package/dist-types/commands/DeleteCertificateCommand.d.ts +36 -0
- package/dist-types/commands/DeleteConnectorCommand.d.ts +35 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +35 -0
- package/dist-types/commands/DescribeAccessCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAgreementCommand.d.ts +35 -0
- package/dist-types/commands/DescribeCertificateCommand.d.ts +35 -0
- package/dist-types/commands/DescribeConnectorCommand.d.ts +36 -0
- package/dist-types/commands/DescribeProfileCommand.d.ts +35 -0
- package/dist-types/commands/ImportCertificateCommand.d.ts +37 -0
- package/dist-types/commands/ListAgreementsCommand.d.ts +39 -0
- package/dist-types/commands/ListCertificatesCommand.d.ts +39 -0
- package/dist-types/commands/ListConnectorsCommand.d.ts +35 -0
- package/dist-types/commands/ListProfilesCommand.d.ts +38 -0
- package/dist-types/commands/StartFileTransferCommand.d.ts +36 -0
- package/dist-types/commands/StopServerCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgreementCommand.d.ts +37 -0
- package/dist-types/commands/UpdateCertificateCommand.d.ts +35 -0
- package/dist-types/commands/UpdateConnectorCommand.d.ts +37 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +21 -0
- package/dist-types/models/models_0.d.ts +1717 -788
- package/dist-types/pagination/ListAgreementsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCertificatesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListConnectorsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListProfilesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
- package/dist-types/ts3.4/Transfer.d.ts +105 -0
- package/dist-types/ts3.4/TransferClient.d.ts +23 -2
- package/dist-types/ts3.4/commands/CreateAgreementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAgreementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteCertificateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAgreementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeCertificateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ImportCertificateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAgreementsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCertificatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartFileTransferCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateAgreementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateCertificateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +21 -0
- package/dist-types/ts3.4/models/models_0.d.ts +733 -357
- package/dist-types/ts3.4/pagination/ListAgreementsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListCertificatesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +63 -0
- package/package.json +6 -6
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListAgreementsCommand, } from "../commands/ListAgreementsCommand";
|
|
3
|
+
import { Transfer } from "../Transfer";
|
|
4
|
+
import { TransferClient } from "../TransferClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListAgreementsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listAgreements.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListAgreements(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListAgreements_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Transfer)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof TransferClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Transfer | TransferClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListCertificatesCommand, } from "../commands/ListCertificatesCommand";
|
|
3
|
+
import { Transfer } from "../Transfer";
|
|
4
|
+
import { TransferClient } from "../TransferClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListCertificatesCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listCertificates.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListCertificates(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListCertificates_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Transfer)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof TransferClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Transfer | TransferClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListConnectorsCommand, } from "../commands/ListConnectorsCommand";
|
|
3
|
+
import { Transfer } from "../Transfer";
|
|
4
|
+
import { TransferClient } from "../TransferClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListConnectorsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listConnectors.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListConnectors(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListConnectors_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Transfer)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof TransferClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Transfer | TransferClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListProfilesCommand, } from "../commands/ListProfilesCommand";
|
|
3
|
+
import { Transfer } from "../Transfer";
|
|
4
|
+
import { TransferClient } from "../TransferClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListProfilesCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listProfiles.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListProfiles(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListProfiles_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Transfer)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof TransferClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Transfer | TransferClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
2
|
export * from "./ListAccessesPaginator";
|
|
3
|
+
export * from "./ListAgreementsPaginator";
|
|
4
|
+
export * from "./ListCertificatesPaginator";
|
|
5
|
+
export * from "./ListConnectorsPaginator";
|
|
3
6
|
export * from "./ListExecutionsPaginator";
|
|
7
|
+
export * from "./ListProfilesPaginator";
|
|
4
8
|
export * from "./ListSecurityPoliciesPaginator";
|
|
5
9
|
export * from "./ListServersPaginator";
|
|
6
10
|
export * from "./ListTagsForResourcePaginator";
|