@aws-sdk/client-transfer 3.35.0 → 3.38.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 +47 -0
- package/dist-cjs/Transfer.js +0 -12
- package/dist-cjs/TransferClient.js +0 -17
- package/dist-cjs/commands/CreateAccessCommand.js +0 -30
- package/dist-cjs/commands/CreateServerCommand.js +0 -28
- package/dist-cjs/commands/CreateUserCommand.js +0 -31
- package/dist-cjs/commands/CreateWorkflowCommand.js +0 -28
- package/dist-cjs/commands/DeleteAccessCommand.js +0 -26
- package/dist-cjs/commands/DeleteServerCommand.js +0 -27
- package/dist-cjs/commands/DeleteSshPublicKeyCommand.js +0 -25
- package/dist-cjs/commands/DeleteUserCommand.js +0 -31
- package/dist-cjs/commands/DeleteWorkflowCommand.js +0 -25
- package/dist-cjs/commands/DescribeAccessCommand.js +0 -30
- package/dist-cjs/commands/DescribeExecutionCommand.js +0 -25
- package/dist-cjs/commands/DescribeSecurityPolicyCommand.js +0 -28
- package/dist-cjs/commands/DescribeServerCommand.js +0 -30
- package/dist-cjs/commands/DescribeUserCommand.js +0 -29
- package/dist-cjs/commands/DescribeWorkflowCommand.js +0 -25
- package/dist-cjs/commands/ImportSshPublicKeyCommand.js +0 -30
- package/dist-cjs/commands/ListAccessesCommand.js +0 -25
- package/dist-cjs/commands/ListExecutionsCommand.js +0 -25
- package/dist-cjs/commands/ListSecurityPoliciesCommand.js +0 -26
- package/dist-cjs/commands/ListServersCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/ListUsersCommand.js +0 -26
- package/dist-cjs/commands/ListWorkflowsCommand.js +0 -25
- package/dist-cjs/commands/SendWorkflowStepStateCommand.js +0 -29
- package/dist-cjs/commands/StartServerCommand.js +0 -33
- package/dist-cjs/commands/StopServerCommand.js +0 -39
- package/dist-cjs/commands/TagResourceCommand.js +0 -28
- package/dist-cjs/commands/TestIdentityProviderCommand.js +0 -63
- package/dist-cjs/commands/UntagResourceCommand.js +0 -28
- package/dist-cjs/commands/UpdateAccessCommand.js +0 -26
- package/dist-cjs/commands/UpdateServerCommand.js +0 -29
- package/dist-cjs/commands/UpdateUserCommand.js +0 -30
- package/dist-cjs/commands/index.js +35 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -43
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -304
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAccessesPaginator.js +0 -11
- package/dist-cjs/pagination/ListExecutionsPaginator.js +0 -11
- package/dist-cjs/pagination/ListSecurityPoliciesPaginator.js +0 -11
- package/dist-cjs/pagination/ListServersPaginator.js +0 -11
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -11
- package/dist-cjs/pagination/ListUsersPaginator.js +0 -11
- package/dist-cjs/pagination/ListWorkflowsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/Transfer.js +0 -1
- package/dist-es/TransferClient.js +0 -1
- package/dist-es/commands/CreateAccessCommand.js +0 -1
- package/dist-es/commands/CreateServerCommand.js +0 -1
- package/dist-es/commands/CreateUserCommand.js +0 -1
- package/dist-es/commands/CreateWorkflowCommand.js +0 -1
- package/dist-es/commands/DeleteAccessCommand.js +0 -1
- package/dist-es/commands/DeleteServerCommand.js +0 -1
- package/dist-es/commands/DeleteSshPublicKeyCommand.js +0 -1
- package/dist-es/commands/DeleteUserCommand.js +0 -1
- package/dist-es/commands/DeleteWorkflowCommand.js +0 -1
- package/dist-es/commands/DescribeAccessCommand.js +0 -1
- package/dist-es/commands/DescribeExecutionCommand.js +0 -1
- package/dist-es/commands/DescribeSecurityPolicyCommand.js +0 -1
- package/dist-es/commands/DescribeServerCommand.js +0 -1
- package/dist-es/commands/DescribeUserCommand.js +0 -1
- package/dist-es/commands/DescribeWorkflowCommand.js +0 -1
- package/dist-es/commands/ImportSshPublicKeyCommand.js +0 -1
- package/dist-es/commands/ListAccessesCommand.js +0 -1
- package/dist-es/commands/ListExecutionsCommand.js +0 -1
- package/dist-es/commands/ListSecurityPoliciesCommand.js +0 -1
- package/dist-es/commands/ListServersCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListUsersCommand.js +0 -1
- package/dist-es/commands/ListWorkflowsCommand.js +0 -1
- package/dist-es/commands/SendWorkflowStepStateCommand.js +0 -1
- package/dist-es/commands/StartServerCommand.js +0 -1
- package/dist-es/commands/StopServerCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/TestIdentityProviderCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateAccessCommand.js +0 -1
- package/dist-es/commands/UpdateServerCommand.js +0 -1
- package/dist-es/commands/UpdateUserCommand.js +0 -1
- package/dist-es/commands/index.js +32 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -43
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListAccessesPaginator.js +0 -1
- package/dist-es/pagination/ListExecutionsPaginator.js +0 -1
- package/dist-es/pagination/ListSecurityPoliciesPaginator.js +0 -1
- package/dist-es/pagination/ListServersPaginator.js +0 -1
- package/dist-es/pagination/ListTagsForResourcePaginator.js +0 -1
- package/dist-es/pagination/ListUsersPaginator.js +0 -1
- package/dist-es/pagination/ListWorkflowsPaginator.js +0 -1
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +32 -0
- package/dist-types/index.d.ts +4 -42
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/Transfer.d.ts +33 -239
- package/dist-types/ts3.4/TransferClient.d.ts +24 -97
- package/dist-types/ts3.4/commands/CreateAccessCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/CreateServerCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/CreateWorkflowCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteAccessCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteServerCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteSshPublicKeyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DeleteWorkflowCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeAccessCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DescribeExecutionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeSecurityPolicyCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeServerCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DescribeUserCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DescribeWorkflowCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ImportSshPublicKeyCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListAccessesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListSecurityPoliciesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListServersCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SendWorkflowStepStateCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/StartServerCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/StopServerCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/TestIdentityProviderCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/UpdateAccessCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateServerCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/index.d.ts +32 -0
- package/dist-types/ts3.4/index.d.ts +4 -42
- package/dist-types/ts3.4/models/models_0.d.ts +451 -2421
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/Transfer.js.map +0 -1
- package/dist-cjs/TransferClient.js.map +0 -1
- package/dist-cjs/commands/CreateAccessCommand.js.map +0 -1
- package/dist-cjs/commands/CreateServerCommand.js.map +0 -1
- package/dist-cjs/commands/CreateUserCommand.js.map +0 -1
- package/dist-cjs/commands/CreateWorkflowCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAccessCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteServerCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteSshPublicKeyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteUserCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteWorkflowCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAccessCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeExecutionCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeSecurityPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeServerCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeUserCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeWorkflowCommand.js.map +0 -1
- package/dist-cjs/commands/ImportSshPublicKeyCommand.js.map +0 -1
- package/dist-cjs/commands/ListAccessesCommand.js.map +0 -1
- package/dist-cjs/commands/ListExecutionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListSecurityPoliciesCommand.js.map +0 -1
- package/dist-cjs/commands/ListServersCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListUsersCommand.js.map +0 -1
- package/dist-cjs/commands/ListWorkflowsCommand.js.map +0 -1
- package/dist-cjs/commands/SendWorkflowStepStateCommand.js.map +0 -1
- package/dist-cjs/commands/StartServerCommand.js.map +0 -1
- package/dist-cjs/commands/StopServerCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/TestIdentityProviderCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateAccessCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateServerCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateUserCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListAccessesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListExecutionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSecurityPoliciesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListServersPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist-cjs/pagination/ListUsersPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListWorkflowsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/Transfer.js.map +0 -1
- package/dist-es/TransferClient.js.map +0 -1
- package/dist-es/commands/CreateAccessCommand.js.map +0 -1
- package/dist-es/commands/CreateServerCommand.js.map +0 -1
- package/dist-es/commands/CreateUserCommand.js.map +0 -1
- package/dist-es/commands/CreateWorkflowCommand.js.map +0 -1
- package/dist-es/commands/DeleteAccessCommand.js.map +0 -1
- package/dist-es/commands/DeleteServerCommand.js.map +0 -1
- package/dist-es/commands/DeleteSshPublicKeyCommand.js.map +0 -1
- package/dist-es/commands/DeleteUserCommand.js.map +0 -1
- package/dist-es/commands/DeleteWorkflowCommand.js.map +0 -1
- package/dist-es/commands/DescribeAccessCommand.js.map +0 -1
- package/dist-es/commands/DescribeExecutionCommand.js.map +0 -1
- package/dist-es/commands/DescribeSecurityPolicyCommand.js.map +0 -1
- package/dist-es/commands/DescribeServerCommand.js.map +0 -1
- package/dist-es/commands/DescribeUserCommand.js.map +0 -1
- package/dist-es/commands/DescribeWorkflowCommand.js.map +0 -1
- package/dist-es/commands/ImportSshPublicKeyCommand.js.map +0 -1
- package/dist-es/commands/ListAccessesCommand.js.map +0 -1
- package/dist-es/commands/ListExecutionsCommand.js.map +0 -1
- package/dist-es/commands/ListSecurityPoliciesCommand.js.map +0 -1
- package/dist-es/commands/ListServersCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListUsersCommand.js.map +0 -1
- package/dist-es/commands/ListWorkflowsCommand.js.map +0 -1
- package/dist-es/commands/SendWorkflowStepStateCommand.js.map +0 -1
- package/dist-es/commands/StartServerCommand.js.map +0 -1
- package/dist-es/commands/StopServerCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/TestIdentityProviderCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateAccessCommand.js.map +0 -1
- package/dist-es/commands/UpdateServerCommand.js.map +0 -1
- package/dist-es/commands/UpdateUserCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListAccessesPaginator.js.map +0 -1
- package/dist-es/pagination/ListExecutionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListSecurityPoliciesPaginator.js.map +0 -1
- package/dist-es/pagination/ListServersPaginator.js.map +0 -1
- package/dist-es/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist-es/pagination/ListUsersPaginator.js.map +0 -1
- package/dist-es/pagination/ListWorkflowsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Transfer.ts +0 -1228
- package/src/TransferClient.ts +0 -355
- package/src/commands/CreateAccessCommand.ts +0 -100
- package/src/commands/CreateServerCommand.ts +0 -98
- package/src/commands/CreateUserCommand.ts +0 -101
- package/src/commands/CreateWorkflowCommand.ts +0 -98
- package/src/commands/DeleteAccessCommand.ts +0 -96
- package/src/commands/DeleteServerCommand.ts +0 -97
- package/src/commands/DeleteSshPublicKeyCommand.ts +0 -95
- package/src/commands/DeleteUserCommand.ts +0 -101
- package/src/commands/DeleteWorkflowCommand.ts +0 -95
- package/src/commands/DescribeAccessCommand.ts +0 -100
- package/src/commands/DescribeExecutionCommand.ts +0 -95
- package/src/commands/DescribeSecurityPolicyCommand.ts +0 -98
- package/src/commands/DescribeServerCommand.ts +0 -100
- package/src/commands/DescribeUserCommand.ts +0 -99
- package/src/commands/DescribeWorkflowCommand.ts +0 -95
- package/src/commands/ImportSshPublicKeyCommand.ts +0 -100
- package/src/commands/ListAccessesCommand.ts +0 -95
- package/src/commands/ListExecutionsCommand.ts +0 -95
- package/src/commands/ListSecurityPoliciesCommand.ts +0 -96
- package/src/commands/ListServersCommand.ts +0 -96
- package/src/commands/ListTagsForResourceCommand.ts +0 -96
- package/src/commands/ListUsersCommand.ts +0 -93
- package/src/commands/ListWorkflowsCommand.ts +0 -95
- package/src/commands/SendWorkflowStepStateCommand.ts +0 -99
- package/src/commands/StartServerCommand.ts +0 -103
- package/src/commands/StopServerCommand.ts +0 -109
- package/src/commands/TagResourceCommand.ts +0 -98
- package/src/commands/TestIdentityProviderCommand.ts +0 -133
- package/src/commands/UntagResourceCommand.ts +0 -98
- package/src/commands/UpdateAccessCommand.ts +0 -96
- package/src/commands/UpdateServerCommand.ts +0 -99
- package/src/commands/UpdateUserCommand.ts +0 -100
- package/src/endpoints.ts +0 -91
- package/src/index.ts +0 -43
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -3943
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListAccessesPaginator.ts +0 -59
- package/src/pagination/ListExecutionsPaginator.ts +0 -59
- package/src/pagination/ListSecurityPoliciesPaginator.ts +0 -59
- package/src/pagination/ListServersPaginator.ts +0 -55
- package/src/pagination/ListTagsForResourcePaginator.ts +0 -59
- package/src/pagination/ListUsersPaginator.ts +0 -55
- package/src/pagination/ListWorkflowsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -5079
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { Transfer } from "../Transfer";
|
|
4
|
-
import { TransferClient } from "../TransferClient";
|
|
5
|
-
|
|
6
|
-
export interface TransferPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: Transfer | TransferClient;
|
|
8
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListAccessesCommand,
|
|
5
|
-
ListAccessesCommandInput,
|
|
6
|
-
ListAccessesCommandOutput,
|
|
7
|
-
} from "../commands/ListAccessesCommand";
|
|
8
|
-
import { Transfer } from "../Transfer";
|
|
9
|
-
import { TransferClient } from "../TransferClient";
|
|
10
|
-
import { TransferPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: TransferClient,
|
|
17
|
-
input: ListAccessesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListAccessesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListAccessesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Transfer,
|
|
28
|
-
input: ListAccessesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListAccessesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listAccesses(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListAccesses(
|
|
35
|
-
config: TransferPaginationConfiguration,
|
|
36
|
-
input: ListAccessesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListAccessesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListAccessesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Transfer) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof TransferClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Transfer | TransferClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListExecutionsCommand,
|
|
5
|
-
ListExecutionsCommandInput,
|
|
6
|
-
ListExecutionsCommandOutput,
|
|
7
|
-
} from "../commands/ListExecutionsCommand";
|
|
8
|
-
import { Transfer } from "../Transfer";
|
|
9
|
-
import { TransferClient } from "../TransferClient";
|
|
10
|
-
import { TransferPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: TransferClient,
|
|
17
|
-
input: ListExecutionsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListExecutionsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListExecutionsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Transfer,
|
|
28
|
-
input: ListExecutionsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListExecutionsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listExecutions(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListExecutions(
|
|
35
|
-
config: TransferPaginationConfiguration,
|
|
36
|
-
input: ListExecutionsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListExecutionsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListExecutionsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Transfer) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof TransferClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Transfer | TransferClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListSecurityPoliciesCommand,
|
|
5
|
-
ListSecurityPoliciesCommandInput,
|
|
6
|
-
ListSecurityPoliciesCommandOutput,
|
|
7
|
-
} from "../commands/ListSecurityPoliciesCommand";
|
|
8
|
-
import { Transfer } from "../Transfer";
|
|
9
|
-
import { TransferClient } from "../TransferClient";
|
|
10
|
-
import { TransferPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: TransferClient,
|
|
17
|
-
input: ListSecurityPoliciesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListSecurityPoliciesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListSecurityPoliciesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Transfer,
|
|
28
|
-
input: ListSecurityPoliciesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListSecurityPoliciesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listSecurityPolicies(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListSecurityPolicies(
|
|
35
|
-
config: TransferPaginationConfiguration,
|
|
36
|
-
input: ListSecurityPoliciesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListSecurityPoliciesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListSecurityPoliciesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Transfer) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof TransferClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Transfer | TransferClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ListServersCommand, ListServersCommandInput, ListServersCommandOutput } from "../commands/ListServersCommand";
|
|
4
|
-
import { Transfer } from "../Transfer";
|
|
5
|
-
import { TransferClient } from "../TransferClient";
|
|
6
|
-
import { TransferPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: TransferClient,
|
|
13
|
-
input: ListServersCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListServersCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListServersCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: Transfer,
|
|
24
|
-
input: ListServersCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListServersCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listServers(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListServers(
|
|
31
|
-
config: TransferPaginationConfiguration,
|
|
32
|
-
input: ListServersCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListServersCommandOutput> {
|
|
35
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
36
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
37
|
-
let hasNext = true;
|
|
38
|
-
let page: ListServersCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.NextToken = token;
|
|
41
|
-
input["MaxResults"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof Transfer) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof TransferClient) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected Transfer | TransferClient");
|
|
48
|
-
}
|
|
49
|
-
yield page;
|
|
50
|
-
token = page.NextToken;
|
|
51
|
-
hasNext = !!token;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListTagsForResourceCommand,
|
|
5
|
-
ListTagsForResourceCommandInput,
|
|
6
|
-
ListTagsForResourceCommandOutput,
|
|
7
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
8
|
-
import { Transfer } from "../Transfer";
|
|
9
|
-
import { TransferClient } from "../TransferClient";
|
|
10
|
-
import { TransferPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: TransferClient,
|
|
17
|
-
input: ListTagsForResourceCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListTagsForResourceCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Transfer,
|
|
28
|
-
input: ListTagsForResourceCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listTagsForResource(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListTagsForResource(
|
|
35
|
-
config: TransferPaginationConfiguration,
|
|
36
|
-
input: ListTagsForResourceCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListTagsForResourceCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListTagsForResourceCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Transfer) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof TransferClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Transfer | TransferClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ListUsersCommand, ListUsersCommandInput, ListUsersCommandOutput } from "../commands/ListUsersCommand";
|
|
4
|
-
import { Transfer } from "../Transfer";
|
|
5
|
-
import { TransferClient } from "../TransferClient";
|
|
6
|
-
import { TransferPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: TransferClient,
|
|
13
|
-
input: ListUsersCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListUsersCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListUsersCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: Transfer,
|
|
24
|
-
input: ListUsersCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListUsersCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listUsers(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListUsers(
|
|
31
|
-
config: TransferPaginationConfiguration,
|
|
32
|
-
input: ListUsersCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListUsersCommandOutput> {
|
|
35
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
36
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
37
|
-
let hasNext = true;
|
|
38
|
-
let page: ListUsersCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.NextToken = token;
|
|
41
|
-
input["MaxResults"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof Transfer) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof TransferClient) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected Transfer | TransferClient");
|
|
48
|
-
}
|
|
49
|
-
yield page;
|
|
50
|
-
token = page.NextToken;
|
|
51
|
-
hasNext = !!token;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListWorkflowsCommand,
|
|
5
|
-
ListWorkflowsCommandInput,
|
|
6
|
-
ListWorkflowsCommandOutput,
|
|
7
|
-
} from "../commands/ListWorkflowsCommand";
|
|
8
|
-
import { Transfer } from "../Transfer";
|
|
9
|
-
import { TransferClient } from "../TransferClient";
|
|
10
|
-
import { TransferPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: TransferClient,
|
|
17
|
-
input: ListWorkflowsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListWorkflowsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListWorkflowsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Transfer,
|
|
28
|
-
input: ListWorkflowsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListWorkflowsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listWorkflows(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListWorkflows(
|
|
35
|
-
config: TransferPaginationConfiguration,
|
|
36
|
-
input: ListWorkflowsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListWorkflowsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListWorkflowsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Transfer) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof TransferClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Transfer | TransferClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|