AutoCloseable
@Generated("software.amazon.awssdk:codegen") public interface SMSClient extends AutoCloseable
builder()
method.
Amazon Server Migration Service automates the process of migrating servers to EC2.Modifier and Type | Field | Description |
---|---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method | Description |
---|---|---|
static SMSClientBuilder |
builder() |
Create a builder that can be used to configure and create a
SMSClient . |
static SMSClient |
create() |
Create a
SMSClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CreateReplicationJobResponse |
createReplicationJob(CreateReplicationJobRequest createReplicationJobRequest) |
The CreateReplicationJob API is used to create a ReplicationJob to replicate a server on AWS.
|
default DeleteReplicationJobResponse |
deleteReplicationJob(DeleteReplicationJobRequest deleteReplicationJobRequest) |
The DeleteReplicationJob API is used to delete a ReplicationJob, resulting in no further ReplicationRuns.
|
default DeleteServerCatalogResponse |
deleteServerCatalog(DeleteServerCatalogRequest deleteServerCatalogRequest) |
The DeleteServerCatalog API clears all servers from your server catalog.
|
default DisassociateConnectorResponse |
disassociateConnector(DisassociateConnectorRequest disassociateConnectorRequest) |
The DisassociateConnector API will disassociate a connector from the Server Migration Service, rendering it
unavailable to support replication jobs.
|
default GetConnectorsResponse |
getConnectors(GetConnectorsRequest getConnectorsRequest) |
The GetConnectors API returns a list of connectors that are registered with the Server Migration Service.
|
default GetReplicationJobsResponse |
getReplicationJobs(GetReplicationJobsRequest getReplicationJobsRequest) |
The GetReplicationJobs API will return all of your ReplicationJobs and their details.
|
default GetReplicationRunsResponse |
getReplicationRuns(GetReplicationRunsRequest getReplicationRunsRequest) |
The GetReplicationRuns API will return all ReplicationRuns for a given ReplicationJob.
|
default GetServersResponse |
getServers(GetServersRequest getServersRequest) |
The GetServers API returns a list of all servers in your server catalog.
|
default ImportServerCatalogResponse |
importServerCatalog(ImportServerCatalogRequest importServerCatalogRequest) |
The ImportServerCatalog API is used to gather the complete list of on-premises servers on your premises.
|
static ServiceMetadata |
serviceMetadata() |
|
default StartOnDemandReplicationRunResponse |
startOnDemandReplicationRun(StartOnDemandReplicationRunRequest startOnDemandReplicationRunRequest) |
The StartOnDemandReplicationRun API is used to start a ReplicationRun on demand (in addition to those that are
scheduled based on your frequency).
|
default UpdateReplicationJobResponse |
updateReplicationJob(UpdateReplicationJobRequest updateReplicationJobRequest) |
The UpdateReplicationJob API is used to change the settings of your existing ReplicationJob created using
CreateReplicationJob.
|
close
static final String SERVICE_NAME
static SMSClient create()
SMSClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static SMSClientBuilder builder()
SMSClient
.default CreateReplicationJobResponse createReplicationJob(CreateReplicationJobRequest createReplicationJobRequest) throws InvalidParameterException, MissingRequiredParameterException, UnauthorizedOperationException, OperationNotPermittedException, ServerCannotBeReplicatedException, ReplicationJobAlreadyExistsException, NoConnectorsAvailableException, InternalErrorException, SdkBaseException, SdkClientException, SMSException
createReplicationJobRequest
- InvalidParameterException
- A parameter specified in the request is not valid, is unsupported, or cannot be used.MissingRequiredParameterException
- The request is missing a required parameter. Ensure that you have supplied all the required parameters
for the request.UnauthorizedOperationException
- This user does not have permissions to perform this operation.OperationNotPermittedException
- The specified operation is not allowed. This error can occur for a number of reasons; for example, you
might be trying to start a Replication Run before seed Replication Run.ServerCannotBeReplicatedException
- The provided server cannot be replicated.ReplicationJobAlreadyExistsException
- An active Replication Job already exists for the specified server.NoConnectorsAvailableException
- No connectors are available to handle this request. Please associate connector(s) and verify any existing
connectors are healthy and can respond to requests.InternalErrorException
- An internal error has occured.SdkBaseException
- 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)SMSException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DeleteReplicationJobResponse deleteReplicationJob(DeleteReplicationJobRequest deleteReplicationJobRequest) throws InvalidParameterException, MissingRequiredParameterException, UnauthorizedOperationException, OperationNotPermittedException, ReplicationJobNotFoundException, SdkBaseException, SdkClientException, SMSException
deleteReplicationJobRequest
- InvalidParameterException
- A parameter specified in the request is not valid, is unsupported, or cannot be used.MissingRequiredParameterException
- The request is missing a required parameter. Ensure that you have supplied all the required parameters
for the request.UnauthorizedOperationException
- This user does not have permissions to perform this operation.OperationNotPermittedException
- The specified operation is not allowed. This error can occur for a number of reasons; for example, you
might be trying to start a Replication Run before seed Replication Run.ReplicationJobNotFoundException
- The specified Replication Job cannot be found.SdkBaseException
- 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)SMSException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DeleteServerCatalogResponse deleteServerCatalog(DeleteServerCatalogRequest deleteServerCatalogRequest) throws UnauthorizedOperationException, OperationNotPermittedException, InvalidParameterException, MissingRequiredParameterException, SdkBaseException, SdkClientException, SMSException
deleteServerCatalogRequest
- UnauthorizedOperationException
- This user does not have permissions to perform this operation.OperationNotPermittedException
- The specified operation is not allowed. This error can occur for a number of reasons; for example, you
might be trying to start a Replication Run before seed Replication Run.InvalidParameterException
- A parameter specified in the request is not valid, is unsupported, or cannot be used.MissingRequiredParameterException
- The request is missing a required parameter. Ensure that you have supplied all the required parameters
for the request.SdkBaseException
- 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)SMSException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DisassociateConnectorResponse disassociateConnector(DisassociateConnectorRequest disassociateConnectorRequest) throws MissingRequiredParameterException, UnauthorizedOperationException, OperationNotPermittedException, InvalidParameterException, SdkBaseException, SdkClientException, SMSException
disassociateConnectorRequest
- MissingRequiredParameterException
- The request is missing a required parameter. Ensure that you have supplied all the required parameters
for the request.UnauthorizedOperationException
- This user does not have permissions to perform this operation.OperationNotPermittedException
- The specified operation is not allowed. This error can occur for a number of reasons; for example, you
might be trying to start a Replication Run before seed Replication Run.InvalidParameterException
- A parameter specified in the request is not valid, is unsupported, or cannot be used.SdkBaseException
- 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)SMSException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault GetConnectorsResponse getConnectors(GetConnectorsRequest getConnectorsRequest) throws UnauthorizedOperationException, SdkBaseException, SdkClientException, SMSException
getConnectorsRequest
- UnauthorizedOperationException
- This user does not have permissions to perform this operation.SdkBaseException
- 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)SMSException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault GetReplicationJobsResponse getReplicationJobs(GetReplicationJobsRequest getReplicationJobsRequest) throws InvalidParameterException, MissingRequiredParameterException, UnauthorizedOperationException, SdkBaseException, SdkClientException, SMSException
getReplicationJobsRequest
- InvalidParameterException
- A parameter specified in the request is not valid, is unsupported, or cannot be used.MissingRequiredParameterException
- The request is missing a required parameter. Ensure that you have supplied all the required parameters
for the request.UnauthorizedOperationException
- This user does not have permissions to perform this operation.SdkBaseException
- 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)SMSException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault GetReplicationRunsResponse getReplicationRuns(GetReplicationRunsRequest getReplicationRunsRequest) throws InvalidParameterException, MissingRequiredParameterException, UnauthorizedOperationException, SdkBaseException, SdkClientException, SMSException
getReplicationRunsRequest
- InvalidParameterException
- A parameter specified in the request is not valid, is unsupported, or cannot be used.MissingRequiredParameterException
- The request is missing a required parameter. Ensure that you have supplied all the required parameters
for the request.UnauthorizedOperationException
- This user does not have permissions to perform this operation.SdkBaseException
- 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)SMSException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault GetServersResponse getServers(GetServersRequest getServersRequest) throws UnauthorizedOperationException, SdkBaseException, SdkClientException, SMSException
getServersRequest
- UnauthorizedOperationException
- This user does not have permissions to perform this operation.SdkBaseException
- 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)SMSException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault ImportServerCatalogResponse importServerCatalog(ImportServerCatalogRequest importServerCatalogRequest) throws UnauthorizedOperationException, OperationNotPermittedException, InvalidParameterException, MissingRequiredParameterException, NoConnectorsAvailableException, SdkBaseException, SdkClientException, SMSException
importServerCatalogRequest
- UnauthorizedOperationException
- This user does not have permissions to perform this operation.OperationNotPermittedException
- The specified operation is not allowed. This error can occur for a number of reasons; for example, you
might be trying to start a Replication Run before seed Replication Run.InvalidParameterException
- A parameter specified in the request is not valid, is unsupported, or cannot be used.MissingRequiredParameterException
- The request is missing a required parameter. Ensure that you have supplied all the required parameters
for the request.NoConnectorsAvailableException
- No connectors are available to handle this request. Please associate connector(s) and verify any existing
connectors are healthy and can respond to requests.SdkBaseException
- 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)SMSException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault StartOnDemandReplicationRunResponse startOnDemandReplicationRun(StartOnDemandReplicationRunRequest startOnDemandReplicationRunRequest) throws InvalidParameterException, MissingRequiredParameterException, UnauthorizedOperationException, OperationNotPermittedException, ReplicationRunLimitExceededException, SdkBaseException, SdkClientException, SMSException
startOnDemandReplicationRunRequest
- InvalidParameterException
- A parameter specified in the request is not valid, is unsupported, or cannot be used.MissingRequiredParameterException
- The request is missing a required parameter. Ensure that you have supplied all the required parameters
for the request.UnauthorizedOperationException
- This user does not have permissions to perform this operation.OperationNotPermittedException
- The specified operation is not allowed. This error can occur for a number of reasons; for example, you
might be trying to start a Replication Run before seed Replication Run.ReplicationRunLimitExceededException
- This user has exceeded the maximum allowed Replication Run limit.SdkBaseException
- 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)SMSException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault UpdateReplicationJobResponse updateReplicationJob(UpdateReplicationJobRequest updateReplicationJobRequest) throws InvalidParameterException, MissingRequiredParameterException, OperationNotPermittedException, UnauthorizedOperationException, ServerCannotBeReplicatedException, ReplicationJobNotFoundException, InternalErrorException, SdkBaseException, SdkClientException, SMSException
updateReplicationJobRequest
- InvalidParameterException
- A parameter specified in the request is not valid, is unsupported, or cannot be used.MissingRequiredParameterException
- The request is missing a required parameter. Ensure that you have supplied all the required parameters
for the request.OperationNotPermittedException
- The specified operation is not allowed. This error can occur for a number of reasons; for example, you
might be trying to start a Replication Run before seed Replication Run.UnauthorizedOperationException
- This user does not have permissions to perform this operation.ServerCannotBeReplicatedException
- The provided server cannot be replicated.ReplicationJobNotFoundException
- The specified Replication Job cannot be found.InternalErrorException
- An internal error has occured.SdkBaseException
- 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)SMSException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typestatic ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.