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