@ThreadSafe public class AWSServerMigrationClient extends AmazonWebServiceClient implements AWSServerMigration
Amazon Server Migration Service automates the process of migrating servers to EC2.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AWSServerMigrationClient()
Constructs a new client to invoke service methods on SMS.
|
AWSServerMigrationClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on SMS using the specified AWS account credentials.
|
AWSServerMigrationClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on SMS using the specified AWS account credentials and client
configuration options.
|
AWSServerMigrationClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on SMS using the specified AWS account credentials provider.
|
AWSServerMigrationClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on SMS using the specified AWS account credentials provider and
client configuration options.
|
AWSServerMigrationClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Constructs a new client to invoke service methods on SMS using the specified AWS account credentials provider,
client configuration options, and request metric collector.
|
AWSServerMigrationClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on SMS.
|
Modifier and Type | Method and Description |
---|---|
CreateReplicationJobResult |
createReplicationJob(CreateReplicationJobRequest createReplicationJobRequest)
The CreateReplicationJob API is used to create a ReplicationJob to replicate a server on AWS.
|
DeleteReplicationJobResult |
deleteReplicationJob(DeleteReplicationJobRequest deleteReplicationJobRequest)
The DeleteReplicationJob API is used to delete a ReplicationJob, resulting in no further ReplicationRuns.
|
DeleteServerCatalogResult |
deleteServerCatalog(DeleteServerCatalogRequest deleteServerCatalogRequest)
The DeleteServerCatalog API clears all servers from your server catalog.
|
DisassociateConnectorResult |
disassociateConnector(DisassociateConnectorRequest disassociateConnectorRequest)
The DisassociateConnector API will disassociate a connector from the Server Migration Service, rendering it
unavailable to support replication jobs.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetConnectorsResult |
getConnectors(GetConnectorsRequest getConnectorsRequest)
The GetConnectors API returns a list of connectors that are registered with the Server Migration Service.
|
GetReplicationJobsResult |
getReplicationJobs(GetReplicationJobsRequest getReplicationJobsRequest)
The GetReplicationJobs API will return all of your ReplicationJobs and their details.
|
GetReplicationRunsResult |
getReplicationRuns(GetReplicationRunsRequest getReplicationRunsRequest)
The GetReplicationRuns API will return all ReplicationRuns for a given ReplicationJob.
|
GetServersResult |
getServers(GetServersRequest getServersRequest)
The GetServers API returns a list of all servers in your server catalog.
|
ImportServerCatalogResult |
importServerCatalog(ImportServerCatalogRequest importServerCatalogRequest)
The ImportServerCatalog API is used to gather the complete list of on-premises servers on your premises.
|
StartOnDemandReplicationRunResult |
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).
|
UpdateReplicationJobResult |
updateReplicationJob(UpdateReplicationJobRequest updateReplicationJobRequest)
The UpdateReplicationJob API is used to change the settings of your existing ReplicationJob created using
CreateReplicationJob.
|
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
public AWSServerMigrationClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public AWSServerMigrationClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this client connects to SMS (ex: proxy settings, retry
counts, etc.).DefaultAWSCredentialsProviderChain
public AWSServerMigrationClient(AWSCredentials awsCredentials)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.public AWSServerMigrationClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to SMS (ex: proxy settings, retry
counts, etc.).public AWSServerMigrationClient(AWSCredentialsProvider awsCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.public AWSServerMigrationClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to SMS (ex: proxy settings, retry
counts, etc.).public AWSServerMigrationClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to SMS (ex: proxy settings, retry
counts, etc.).requestMetricCollector
- optional request metric collectorpublic CreateReplicationJobResult createReplicationJob(CreateReplicationJobRequest createReplicationJobRequest)
createReplicationJob
in interface AWSServerMigration
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.public DeleteReplicationJobResult deleteReplicationJob(DeleteReplicationJobRequest deleteReplicationJobRequest)
deleteReplicationJob
in interface AWSServerMigration
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.public DeleteServerCatalogResult deleteServerCatalog(DeleteServerCatalogRequest deleteServerCatalogRequest)
deleteServerCatalog
in interface AWSServerMigration
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.public DisassociateConnectorResult disassociateConnector(DisassociateConnectorRequest disassociateConnectorRequest)
disassociateConnector
in interface AWSServerMigration
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.public GetConnectorsResult getConnectors(GetConnectorsRequest getConnectorsRequest)
getConnectors
in interface AWSServerMigration
getConnectorsRequest
- UnauthorizedOperationException
- This user does not have permissions to perform this operation.public GetReplicationJobsResult getReplicationJobs(GetReplicationJobsRequest getReplicationJobsRequest)
getReplicationJobs
in interface AWSServerMigration
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.public GetReplicationRunsResult getReplicationRuns(GetReplicationRunsRequest getReplicationRunsRequest)
getReplicationRuns
in interface AWSServerMigration
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.public GetServersResult getServers(GetServersRequest getServersRequest)
getServers
in interface AWSServerMigration
getServersRequest
- UnauthorizedOperationException
- This user does not have permissions to perform this operation.public ImportServerCatalogResult importServerCatalog(ImportServerCatalogRequest importServerCatalogRequest)
importServerCatalog
in interface AWSServerMigration
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.public StartOnDemandReplicationRunResult startOnDemandReplicationRun(StartOnDemandReplicationRunRequest startOnDemandReplicationRunRequest)
startOnDemandReplicationRun
in interface AWSServerMigration
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.public UpdateReplicationJobResult updateReplicationJob(UpdateReplicationJobRequest updateReplicationJobRequest)
updateReplicationJob
in interface AWSServerMigration
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.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSServerMigration
request
- The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.