@Generated(value="software.amazon.awssdk:codegen") public interface TransferClient extends SdkClient
builder() method.
null| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static TransferClientBuilder |
builder()
Create a builder that can be used to configure and create a
TransferClient. |
static TransferClient |
create()
Create a
TransferClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateServerResponse |
createServer(Consumer<CreateServerRequest.Builder> createServerRequest)
Instantiates an autoscaling virtual server based on Secure File Transfer Protocol (SFTP) in AWS.
|
default CreateServerResponse |
createServer(CreateServerRequest createServerRequest)
Instantiates an autoscaling virtual server based on Secure File Transfer Protocol (SFTP) in AWS.
|
default CreateUserResponse |
createUser(Consumer<CreateUserRequest.Builder> createUserRequest)
Adds a user and associate them with an existing Secure File Transfer Protocol (SFTP) server.
|
default CreateUserResponse |
createUser(CreateUserRequest createUserRequest)
Adds a user and associate them with an existing Secure File Transfer Protocol (SFTP) server.
|
default DeleteServerResponse |
deleteServer(Consumer<DeleteServerRequest.Builder> deleteServerRequest)
Deletes the Secure File Transfer Protocol (SFTP) server that you specify.
|
default DeleteServerResponse |
deleteServer(DeleteServerRequest deleteServerRequest)
Deletes the Secure File Transfer Protocol (SFTP) server that you specify.
|
default DeleteSshPublicKeyResponse |
deleteSshPublicKey(Consumer<DeleteSshPublicKeyRequest.Builder> deleteSshPublicKeyRequest)
Deletes a user's Secure Shell (SSH) public key.
|
default DeleteSshPublicKeyResponse |
deleteSshPublicKey(DeleteSshPublicKeyRequest deleteSshPublicKeyRequest)
Deletes a user's Secure Shell (SSH) public key.
|
default DeleteUserResponse |
deleteUser(Consumer<DeleteUserRequest.Builder> deleteUserRequest)
Deletes the user belonging to the server you specify.
|
default DeleteUserResponse |
deleteUser(DeleteUserRequest deleteUserRequest)
Deletes the user belonging to the server you specify.
|
default DescribeServerResponse |
describeServer(Consumer<DescribeServerRequest.Builder> describeServerRequest)
Describes the server that you specify by passing the
ServerId parameter. |
default DescribeServerResponse |
describeServer(DescribeServerRequest describeServerRequest)
Describes the server that you specify by passing the
ServerId parameter. |
default DescribeUserResponse |
describeUser(Consumer<DescribeUserRequest.Builder> describeUserRequest)
Describes the user assigned to a specific server, as identified by its
ServerId property. |
default DescribeUserResponse |
describeUser(DescribeUserRequest describeUserRequest)
Describes the user assigned to a specific server, as identified by its
ServerId property. |
default ImportSshPublicKeyResponse |
importSshPublicKey(Consumer<ImportSshPublicKeyRequest.Builder> importSshPublicKeyRequest)
Adds a Secure Shell (SSH) public key to a user account identified by a
UserName value assigned to a
specific server, identified by ServerId. |
default ImportSshPublicKeyResponse |
importSshPublicKey(ImportSshPublicKeyRequest importSshPublicKeyRequest)
Adds a Secure Shell (SSH) public key to a user account identified by a
UserName value assigned to a
specific server, identified by ServerId. |
default ListServersResponse |
listServers()
Lists the Secure File Transfer Protocol (SFTP) servers that are associated with your AWS account.
|
default ListServersResponse |
listServers(Consumer<ListServersRequest.Builder> listServersRequest)
Lists the Secure File Transfer Protocol (SFTP) servers that are associated with your AWS account.
|
default ListServersResponse |
listServers(ListServersRequest listServersRequest)
Lists the Secure File Transfer Protocol (SFTP) servers that are associated with your AWS account.
|
default ListTagsForResourceResponse |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Lists all of the tags associated with the Amazon Resource Number (ARN) you specify.
|
default ListTagsForResourceResponse |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists all of the tags associated with the Amazon Resource Number (ARN) you specify.
|
default ListUsersResponse |
listUsers(Consumer<ListUsersRequest.Builder> listUsersRequest)
Lists the users for the server that you specify by passing the
ServerId parameter. |
default ListUsersResponse |
listUsers(ListUsersRequest listUsersRequest)
Lists the users for the server that you specify by passing the
ServerId parameter. |
static ServiceMetadata |
serviceMetadata() |
default StartServerResponse |
startServer(Consumer<StartServerRequest.Builder> startServerRequest)
Changes the state of a Secure File Transfer Protocol (SFTP) server from
OFFLINE to
ONLINE. |
default StartServerResponse |
startServer(StartServerRequest startServerRequest)
Changes the state of a Secure File Transfer Protocol (SFTP) server from
OFFLINE to
ONLINE. |
default StopServerResponse |
stopServer(Consumer<StopServerRequest.Builder> stopServerRequest)
Changes the state of an SFTP server from
ONLINE to OFFLINE. |
default StopServerResponse |
stopServer(StopServerRequest stopServerRequest)
Changes the state of an SFTP server from
ONLINE to OFFLINE. |
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN).
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN).
|
default TestIdentityProviderResponse |
testIdentityProvider(Consumer<TestIdentityProviderRequest.Builder> testIdentityProviderRequest)
If the
IdentityProviderType of the server is API_Gateway, tests whether your API
Gateway is set up successfully. |
default TestIdentityProviderResponse |
testIdentityProvider(TestIdentityProviderRequest testIdentityProviderRequest)
If the
IdentityProviderType of the server is API_Gateway, tests whether your API
Gateway is set up successfully. |
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN).
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN).
|
default UpdateServerResponse |
updateServer(Consumer<UpdateServerRequest.Builder> updateServerRequest)
Updates the server properties after that server has been created.
|
default UpdateServerResponse |
updateServer(UpdateServerRequest updateServerRequest)
Updates the server properties after that server has been created.
|
default UpdateUserResponse |
updateUser(Consumer<UpdateUserRequest.Builder> updateUserRequest)
Assigns new properties to a user.
|
default UpdateUserResponse |
updateUser(UpdateUserRequest updateUserRequest)
Assigns new properties to a user.
|
serviceNameclosestatic final String SERVICE_NAME
static TransferClient create()
TransferClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static TransferClientBuilder builder()
TransferClient.default CreateServerResponse createServer(CreateServerRequest createServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, AwsServiceException, SdkClientException, TransferException
Instantiates an autoscaling virtual server based on Secure File Transfer Protocol (SFTP) in AWS. The call returns
the ServerId property assigned by the service to the newly created server. Reference this
ServerId property when you make updates to your server, or work with users.
The response returns the ServerId value for the newly created server.
createServerRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateServerResponse createServer(Consumer<CreateServerRequest.Builder> createServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, AwsServiceException, SdkClientException, TransferException
Instantiates an autoscaling virtual server based on Secure File Transfer Protocol (SFTP) in AWS. The call returns
the ServerId property assigned by the service to the newly created server. Reference this
ServerId property when you make updates to your server, or work with users.
The response returns the ServerId value for the newly created server.
This is a convenience which creates an instance of the CreateServerRequest.Builder avoiding the need to
create one manually via CreateServerRequest.builder()
createServerRequest - A Consumer that will call methods on CreateServerRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateUserResponse createUser(CreateUserRequest createUserRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceExistsException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Adds a user and associate them with an existing Secure File Transfer Protocol (SFTP) server. Using parameters for
CreateUser, you can specify the user name, set the home directory, store the user's public key, and
assign the user's AWS Identity and Access Management (IAM) role. You can also optionally add a scope-down policy,
and assign metadata with tags that can be used to group and search for users.
The response returns the UserName and ServerId values of the new user for that server.
createUserRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceExistsException - The requested resource does not exist.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateUserResponse createUser(Consumer<CreateUserRequest.Builder> createUserRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceExistsException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Adds a user and associate them with an existing Secure File Transfer Protocol (SFTP) server. Using parameters for
CreateUser, you can specify the user name, set the home directory, store the user's public key, and
assign the user's AWS Identity and Access Management (IAM) role. You can also optionally add a scope-down policy,
and assign metadata with tags that can be used to group and search for users.
The response returns the UserName and ServerId values of the new user for that server.
This is a convenience which creates an instance of the CreateUserRequest.Builder avoiding the need to
create one manually via CreateUserRequest.builder()
createUserRequest - A Consumer that will call methods on CreateUserRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceExistsException - The requested resource does not exist.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteServerResponse deleteServer(DeleteServerRequest deleteServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Deletes the Secure File Transfer Protocol (SFTP) server that you specify. If you used
SERVICE_MANAGED as your IdentityProviderType, you need to delete all users associated
with this server before deleting the server itself
No response returns from this call.
deleteServerRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteServerResponse deleteServer(Consumer<DeleteServerRequest.Builder> deleteServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Deletes the Secure File Transfer Protocol (SFTP) server that you specify. If you used
SERVICE_MANAGED as your IdentityProviderType, you need to delete all users associated
with this server before deleting the server itself
No response returns from this call.
This is a convenience which creates an instance of the DeleteServerRequest.Builder avoiding the need to
create one manually via DeleteServerRequest.builder()
deleteServerRequest - A Consumer that will call methods on DeleteServerRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteSshPublicKeyResponse deleteSshPublicKey(DeleteSshPublicKeyRequest deleteSshPublicKeyRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Deletes a user's Secure Shell (SSH) public key.
No response is returned from this call.
deleteSshPublicKeyRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteSshPublicKeyResponse deleteSshPublicKey(Consumer<DeleteSshPublicKeyRequest.Builder> deleteSshPublicKeyRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Deletes a user's Secure Shell (SSH) public key.
No response is returned from this call.
This is a convenience which creates an instance of the DeleteSshPublicKeyRequest.Builder avoiding the
need to create one manually via DeleteSshPublicKeyRequest.builder()
deleteSshPublicKeyRequest - A Consumer that will call methods on DeleteSshPublicKeyRequest.Builder to create a
request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteUserResponse deleteUser(DeleteUserRequest deleteUserRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Deletes the user belonging to the server you specify.
No response returns from this call.
When you delete a user from a server, the user's information is lost.
deleteUserRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteUserResponse deleteUser(Consumer<DeleteUserRequest.Builder> deleteUserRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Deletes the user belonging to the server you specify.
No response returns from this call.
When you delete a user from a server, the user's information is lost.
This is a convenience which creates an instance of the DeleteUserRequest.Builder avoiding the need to
create one manually via DeleteUserRequest.builder()
deleteUserRequest - A Consumer that will call methods on DeleteUserRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeServerResponse describeServer(DescribeServerRequest describeServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Describes the server that you specify by passing the ServerId parameter.
The response contains a description of the server's properties.
describeServerRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeServerResponse describeServer(Consumer<DescribeServerRequest.Builder> describeServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Describes the server that you specify by passing the ServerId parameter.
The response contains a description of the server's properties.
This is a convenience which creates an instance of the DescribeServerRequest.Builder avoiding the need to
create one manually via DescribeServerRequest.builder()
describeServerRequest - A Consumer that will call methods on DescribeServerRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeUserResponse describeUser(DescribeUserRequest describeUserRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Describes the user assigned to a specific server, as identified by its ServerId property.
The response from this call returns the properties of the user associated with the ServerId value
that was specified.
describeUserRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeUserResponse describeUser(Consumer<DescribeUserRequest.Builder> describeUserRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Describes the user assigned to a specific server, as identified by its ServerId property.
The response from this call returns the properties of the user associated with the ServerId value
that was specified.
This is a convenience which creates an instance of the DescribeUserRequest.Builder avoiding the need to
create one manually via DescribeUserRequest.builder()
describeUserRequest - A Consumer that will call methods on DescribeUserRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ImportSshPublicKeyResponse importSshPublicKey(ImportSshPublicKeyRequest importSshPublicKeyRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceExistsException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Adds a Secure Shell (SSH) public key to a user account identified by a UserName value assigned to a
specific server, identified by ServerId.
The response returns the UserName value, the ServerId value, and the name of the
SshPublicKeyId.
importSshPublicKeyRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceExistsException - The requested resource does not exist.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ImportSshPublicKeyResponse importSshPublicKey(Consumer<ImportSshPublicKeyRequest.Builder> importSshPublicKeyRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceExistsException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Adds a Secure Shell (SSH) public key to a user account identified by a UserName value assigned to a
specific server, identified by ServerId.
The response returns the UserName value, the ServerId value, and the name of the
SshPublicKeyId.
This is a convenience which creates an instance of the ImportSshPublicKeyRequest.Builder avoiding the
need to create one manually via ImportSshPublicKeyRequest.builder()
importSshPublicKeyRequest - A Consumer that will call methods on ImportSshPublicKeyRequest.Builder to create a
request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceExistsException - The requested resource does not exist.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListServersResponse listServers() throws ServiceUnavailableException, InternalServiceErrorException, InvalidNextTokenException, InvalidRequestException, AwsServiceException, SdkClientException, TransferException
Lists the Secure File Transfer Protocol (SFTP) servers that are associated with your AWS account.
ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidNextTokenException - The NextToken parameter that was passed is invalid.InvalidRequestException - This exception is thrown when the client submits a malformed request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionlistServers(ListServersRequest),
AWS API
Documentationdefault ListServersResponse listServers(ListServersRequest listServersRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidNextTokenException, InvalidRequestException, AwsServiceException, SdkClientException, TransferException
Lists the Secure File Transfer Protocol (SFTP) servers that are associated with your AWS account.
listServersRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidNextTokenException - The NextToken parameter that was passed is invalid.InvalidRequestException - This exception is thrown when the client submits a malformed request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListServersResponse listServers(Consumer<ListServersRequest.Builder> listServersRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidNextTokenException, InvalidRequestException, AwsServiceException, SdkClientException, TransferException
Lists the Secure File Transfer Protocol (SFTP) servers that are associated with your AWS account.
This is a convenience which creates an instance of the ListServersRequest.Builder avoiding the need to
create one manually via ListServersRequest.builder()
listServersRequest - A Consumer that will call methods on ListServersRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidNextTokenException - The NextToken parameter that was passed is invalid.InvalidRequestException - This exception is thrown when the client submits a malformed request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidNextTokenException, InvalidRequestException, AwsServiceException, SdkClientException, TransferException
Lists all of the tags associated with the Amazon Resource Number (ARN) you specify. The resource can be a user, server, or role.
listTagsForResourceRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidNextTokenException - The NextToken parameter that was passed is invalid.InvalidRequestException - This exception is thrown when the client submits a malformed request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidNextTokenException, InvalidRequestException, AwsServiceException, SdkClientException, TransferException
Lists all of the tags associated with the Amazon Resource Number (ARN) you specify. The resource can be a user, server, or role.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a
request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidNextTokenException - The NextToken parameter that was passed is invalid.InvalidRequestException - This exception is thrown when the client submits a malformed request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListUsersResponse listUsers(ListUsersRequest listUsersRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidNextTokenException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Lists the users for the server that you specify by passing the ServerId parameter.
listUsersRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidNextTokenException - The NextToken parameter that was passed is invalid.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListUsersResponse listUsers(Consumer<ListUsersRequest.Builder> listUsersRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidNextTokenException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Lists the users for the server that you specify by passing the ServerId parameter.
This is a convenience which creates an instance of the ListUsersRequest.Builder avoiding the need to
create one manually via ListUsersRequest.builder()
listUsersRequest - A Consumer that will call methods on ListUsersRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidNextTokenException - The NextToken parameter that was passed is invalid.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StartServerResponse startServer(StartServerRequest startServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Changes the state of a Secure File Transfer Protocol (SFTP) server from OFFLINE to
ONLINE. It has no impact on an SFTP server that is already ONLINE. An
ONLINE server can accept and process file transfer jobs.
The state of STARTING indicates that the server is in an intermediate state, either not fully able
to respond, or not fully online. The values of START_FAILED can indicate an error condition.
No response is returned from this call.
startServerRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StartServerResponse startServer(Consumer<StartServerRequest.Builder> startServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Changes the state of a Secure File Transfer Protocol (SFTP) server from OFFLINE to
ONLINE. It has no impact on an SFTP server that is already ONLINE. An
ONLINE server can accept and process file transfer jobs.
The state of STARTING indicates that the server is in an intermediate state, either not fully able
to respond, or not fully online. The values of START_FAILED can indicate an error condition.
No response is returned from this call.
This is a convenience which creates an instance of the StartServerRequest.Builder avoiding the need to
create one manually via StartServerRequest.builder()
startServerRequest - A Consumer that will call methods on StartServerRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StopServerResponse stopServer(StopServerRequest stopServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Changes the state of an SFTP server from ONLINE to OFFLINE. An OFFLINE
server cannot accept and process file transfer jobs. Information tied to your server such as server and user
properties are not affected by stopping your server. Stopping a server will not reduce or impact your Secure File
Transfer Protocol (SFTP) endpoint billing.
The states of STOPPING indicates that the server is in an intermediate state, either not fully able
to respond, or not fully offline. The values of STOP_FAILED can indicate an error condition.
No response is returned from this call.
stopServerRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StopServerResponse stopServer(Consumer<StopServerRequest.Builder> stopServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Changes the state of an SFTP server from ONLINE to OFFLINE. An OFFLINE
server cannot accept and process file transfer jobs. Information tied to your server such as server and user
properties are not affected by stopping your server. Stopping a server will not reduce or impact your Secure File
Transfer Protocol (SFTP) endpoint billing.
The states of STOPPING indicates that the server is in an intermediate state, either not fully able
to respond, or not fully offline. The values of STOP_FAILED can indicate an error condition.
No response is returned from this call.
This is a convenience which creates an instance of the StopServerRequest.Builder avoiding the need to
create one manually via StopServerRequest.builder()
stopServerRequest - A Consumer that will call methods on StopServerRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, AwsServiceException, SdkClientException, TransferException
Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.
There is no response returned from this call.
tagResourceRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, AwsServiceException, SdkClientException, TransferException
Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.
There is no response returned from this call.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TestIdentityProviderResponse testIdentityProvider(TestIdentityProviderRequest testIdentityProviderRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
If the IdentityProviderType of the server is API_Gateway, tests whether your API
Gateway is set up successfully. We highly recommend that you call this method to test your authentication method
as soon as you create your server. By doing so, you can troubleshoot issues with the API Gateway integration to
ensure that your users can successfully use the service.
testIdentityProviderRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TestIdentityProviderResponse testIdentityProvider(Consumer<TestIdentityProviderRequest.Builder> testIdentityProviderRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
If the IdentityProviderType of the server is API_Gateway, tests whether your API
Gateway is set up successfully. We highly recommend that you call this method to test your authentication method
as soon as you create your server. By doing so, you can troubleshoot issues with the API Gateway integration to
ensure that your users can successfully use the service.
This is a convenience which creates an instance of the TestIdentityProviderRequest.Builder avoiding the
need to create one manually via TestIdentityProviderRequest.builder()
testIdentityProviderRequest - A Consumer that will call methods on TestIdentityProviderRequest.Builder to create a
request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, AwsServiceException, SdkClientException, TransferException
Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.
No response is returned from this call.
untagResourceRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, AwsServiceException, SdkClientException, TransferException
Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.
No response is returned from this call.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateServerResponse updateServer(UpdateServerRequest updateServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Updates the server properties after that server has been created.
The UpdateServer call returns the ServerId of the Secure File Transfer Protocol (SFTP)
server you updated.
updateServerRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateServerResponse updateServer(Consumer<UpdateServerRequest.Builder> updateServerRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Updates the server properties after that server has been created.
The UpdateServer call returns the ServerId of the Secure File Transfer Protocol (SFTP)
server you updated.
This is a convenience which creates an instance of the UpdateServerRequest.Builder avoiding the need to
create one manually via UpdateServerRequest.builder()
updateServerRequest - A Consumer that will call methods on UpdateServerRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateUserResponse updateUser(UpdateUserRequest updateUserRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Assigns new properties to a user. Parameters you pass modify any or all of the following: the home directory,
role, and policy for the UserName and ServerId you specify.
The response returns the ServerId and the UserName for the updated user.
updateUserRequest - ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateUserResponse updateUser(Consumer<UpdateUserRequest.Builder> updateUserRequest) throws ServiceUnavailableException, InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, TransferException
Assigns new properties to a user. Parameters you pass modify any or all of the following: the home directory,
role, and policy for the UserName and ServerId you specify.
The response returns the ServerId and the UserName for the updated user.
This is a convenience which creates an instance of the UpdateUserRequest.Builder avoiding the need to
create one manually via UpdateUserRequest.builder()
updateUserRequest - A Consumer that will call methods on UpdateUserRequest.Builder to create a request.ServiceUnavailableException - The request has failed because the AWS Transfer for SFTP service is not available.InternalServiceErrorException - This exception is thrown when an error occurs in the AWS Transfer for SFTP service.InvalidRequestException - This exception is thrown when the client submits a malformed request.ResourceNotFoundException - This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.TransferException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.