@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSDatabaseMigrationServiceClient extends AmazonWebServiceClient implements AWSDatabaseMigrationService
AWS Database Migration Service (AWS DMS) can migrate your data to and from the most widely used commercial and open-source databases such as Oracle, PostgreSQL, Microsoft SQL Server, Amazon Redshift, MariaDB, Amazon Aurora, MySQL, and SAP Adaptive Server Enterprise (ASE). The service supports homogeneous migrations such as Oracle to Oracle, as well as heterogeneous migrations between different database platforms, such as Oracle to MySQL or SQL Server to PostgreSQL.
For more information about AWS DMS, see the AWS DMS user guide at What Is AWS Database Migration Service?
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Constructor and Description |
|---|
AWSDatabaseMigrationServiceClient()
Deprecated.
|
AWSDatabaseMigrationServiceClient(AWSCredentials awsCredentials)
Deprecated.
use
AwsClientBuilder.withCredentials(AWSCredentialsProvider) for
example:
AWSDatabaseMigrationServiceClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build(); |
AWSDatabaseMigrationServiceClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
|
AWSDatabaseMigrationServiceClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSDatabaseMigrationServiceClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSDatabaseMigrationServiceClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
|
AWSDatabaseMigrationServiceClient(ClientConfiguration clientConfiguration)
Deprecated.
|
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetEndpoint, setRegion, shutdown@Deprecated public AWSDatabaseMigrationServiceClient()
AWSDatabaseMigrationServiceClientBuilder.defaultClient()All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain@Deprecated public AWSDatabaseMigrationServiceClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(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 AWS Database Migration Service
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChain@Deprecated public AWSDatabaseMigrationServiceClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) for
example:
AWSDatabaseMigrationServiceClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();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.@Deprecated public AWSDatabaseMigrationServiceClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(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 AWS Database Migration Service
(ex: proxy settings, retry counts, etc.).@Deprecated public AWSDatabaseMigrationServiceClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(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.@Deprecated public AWSDatabaseMigrationServiceClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(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 AWS Database Migration Service
(ex: proxy settings, retry counts, etc.).@Deprecated public AWSDatabaseMigrationServiceClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(ClientConfiguration) and
AwsClientBuilder.withMetricsCollector(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 AWS Database Migration Service
(ex: proxy settings, retry counts, etc.).requestMetricCollector - optional request metric collectorpublic static AWSDatabaseMigrationServiceClientBuilder builder()
public AddTagsToResourceResult addTagsToResource(AddTagsToResourceRequest request)
Adds metadata tags to a DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with DMS resources, or used in a Condition statement in an IAM policy for DMS.
addTagsToResource in interface AWSDatabaseMigrationServiceaddTagsToResourceRequest - ResourceNotFoundException - The resource could not be found.public CreateEndpointResult createEndpoint(CreateEndpointRequest request)
Creates an endpoint using the provided settings.
createEndpoint in interface AWSDatabaseMigrationServicecreateEndpointRequest - KMSKeyNotAccessibleException - AWS DMS cannot access the KMS key.ResourceAlreadyExistsException - The resource you are attempting to create already exists.ResourceQuotaExceededException - The quota for this resource quota has been exceeded.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.ResourceNotFoundException - The resource could not be found.AccessDeniedException - AWS DMS was denied access to the endpoint.public CreateEventSubscriptionResult createEventSubscription(CreateEventSubscriptionRequest request)
Creates an AWS DMS event notification subscription.
You can specify the type of source (SourceType) you want to be notified of, provide a list of AWS
DMS source IDs (SourceIds) that triggers the events, and provide a list of event categories (
EventCategories) for events you want to be notified of. If you specify both the
SourceType and SourceIds, such as SourceType = replication-instance and
SourceIdentifier = my-replinstance, you will be notified of all the replication instance events for
the specified source. If you specify a SourceType but don't specify a SourceIdentifier,
you receive notice of the events for that source type for all your AWS DMS sources. If you don't specify either
SourceType nor SourceIdentifier, you will be notified of events generated from all AWS
DMS sources belonging to your customer account.
For more information about AWS DMS events, see Working with Events and Notifications in the AWS Database MIgration Service User Guide.
createEventSubscription in interface AWSDatabaseMigrationServicecreateEventSubscriptionRequest - ResourceQuotaExceededException - The quota for this resource quota has been exceeded.ResourceAlreadyExistsException - The resource you are attempting to create already exists.SNSInvalidTopicException - The SNS topic is invalid.SNSNoAuthorizationException - You are not authorized for the SNS subscription.ResourceNotFoundException - The resource could not be found.public CreateReplicationInstanceResult createReplicationInstance(CreateReplicationInstanceRequest request)
Creates the replication instance using the specified parameters.
createReplicationInstance in interface AWSDatabaseMigrationServicecreateReplicationInstanceRequest - AccessDeniedException - AWS DMS was denied access to the endpoint.ResourceAlreadyExistsException - The resource you are attempting to create already exists.InsufficientResourceCapacityException - There are not enough resources allocated to the database migration.ResourceQuotaExceededException - The quota for this resource quota has been exceeded.StorageQuotaExceededException - The storage quota has been exceeded.ResourceNotFoundException - The resource could not be found.ReplicationSubnetGroupDoesNotCoverEnoughAZsException - The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet
group and add more AZs.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.InvalidSubnetException - The subnet provided is invalid.KMSKeyNotAccessibleException - AWS DMS cannot access the KMS key.public CreateReplicationSubnetGroupResult createReplicationSubnetGroup(CreateReplicationSubnetGroupRequest request)
Creates a replication subnet group given a list of the subnet IDs in a VPC.
createReplicationSubnetGroup in interface AWSDatabaseMigrationServicecreateReplicationSubnetGroupRequest - AccessDeniedException - AWS DMS was denied access to the endpoint.ResourceAlreadyExistsException - The resource you are attempting to create already exists.ResourceNotFoundException - The resource could not be found.ResourceQuotaExceededException - The quota for this resource quota has been exceeded.ReplicationSubnetGroupDoesNotCoverEnoughAZsException - The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet
group and add more AZs.InvalidSubnetException - The subnet provided is invalid.public CreateReplicationTaskResult createReplicationTask(CreateReplicationTaskRequest request)
Creates a replication task using the specified parameters.
createReplicationTask in interface AWSDatabaseMigrationServicecreateReplicationTaskRequest - AccessDeniedException - AWS DMS was denied access to the endpoint.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.ResourceAlreadyExistsException - The resource you are attempting to create already exists.ResourceNotFoundException - The resource could not be found.KMSKeyNotAccessibleException - AWS DMS cannot access the KMS key.ResourceQuotaExceededException - The quota for this resource quota has been exceeded.public DeleteCertificateResult deleteCertificate(DeleteCertificateRequest request)
Deletes the specified certificate.
deleteCertificate in interface AWSDatabaseMigrationServicedeleteCertificateRequest - ResourceNotFoundException - The resource could not be found.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest request)
Deletes the specified endpoint.
All tasks associated with the endpoint must be deleted before you can delete the endpoint.
deleteEndpoint in interface AWSDatabaseMigrationServicedeleteEndpointRequest - ResourceNotFoundException - The resource could not be found.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.public DeleteEventSubscriptionResult deleteEventSubscription(DeleteEventSubscriptionRequest request)
Deletes an AWS DMS event subscription.
deleteEventSubscription in interface AWSDatabaseMigrationServicedeleteEventSubscriptionRequest - ResourceNotFoundException - The resource could not be found.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.public DeleteReplicationInstanceResult deleteReplicationInstance(DeleteReplicationInstanceRequest request)
Deletes the specified replication instance.
You must delete any migration tasks that are associated with the replication instance before you can delete it.
deleteReplicationInstance in interface AWSDatabaseMigrationServicedeleteReplicationInstanceRequest - InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.ResourceNotFoundException - The resource could not be found.public DeleteReplicationSubnetGroupResult deleteReplicationSubnetGroup(DeleteReplicationSubnetGroupRequest request)
Deletes a subnet group.
deleteReplicationSubnetGroup in interface AWSDatabaseMigrationServicedeleteReplicationSubnetGroupRequest - InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.ResourceNotFoundException - The resource could not be found.public DeleteReplicationTaskResult deleteReplicationTask(DeleteReplicationTaskRequest request)
Deletes the specified replication task.
deleteReplicationTask in interface AWSDatabaseMigrationServicedeleteReplicationTaskRequest - ResourceNotFoundException - The resource could not be found.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.public DescribeAccountAttributesResult describeAccountAttributes(DescribeAccountAttributesRequest request)
Lists all of the AWS DMS attributes for a customer account. The attributes include AWS DMS quotas for the account, such as the number of replication instances allowed. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value.
This command does not take any parameters.
describeAccountAttributes in interface AWSDatabaseMigrationServicedescribeAccountAttributesRequest - public DescribeCertificatesResult describeCertificates(DescribeCertificatesRequest request)
Provides a description of the certificate.
describeCertificates in interface AWSDatabaseMigrationServicedescribeCertificatesRequest - ResourceNotFoundException - The resource could not be found.public DescribeConnectionsResult describeConnections(DescribeConnectionsRequest request)
Describes the status of the connections that have been made between the replication instance and an endpoint. Connections are created when you test an endpoint.
describeConnections in interface AWSDatabaseMigrationServicedescribeConnectionsRequest - ResourceNotFoundException - The resource could not be found.public DescribeEndpointTypesResult describeEndpointTypes(DescribeEndpointTypesRequest request)
Returns information about the type of endpoints available.
describeEndpointTypes in interface AWSDatabaseMigrationServicedescribeEndpointTypesRequest - public DescribeEndpointsResult describeEndpoints(DescribeEndpointsRequest request)
Returns information about the endpoints for your account in the current region.
describeEndpoints in interface AWSDatabaseMigrationServicedescribeEndpointsRequest - ResourceNotFoundException - The resource could not be found.public DescribeEventCategoriesResult describeEventCategories(DescribeEventCategoriesRequest request)
Lists categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in Working with Events and Notifications in the AWS Database Migration Service User Guide.
describeEventCategories in interface AWSDatabaseMigrationServicedescribeEventCategoriesRequest - public DescribeEventSubscriptionsResult describeEventSubscriptions(DescribeEventSubscriptionsRequest request)
Lists all the event subscriptions for a customer account. The description of a subscription includes
SubscriptionName, SNSTopicARN, CustomerID, SourceType,
SourceID, CreationTime, and Status.
If you specify SubscriptionName, this action lists the description for that subscription.
describeEventSubscriptions in interface AWSDatabaseMigrationServicedescribeEventSubscriptionsRequest - ResourceNotFoundException - The resource could not be found.public DescribeEventsResult describeEvents(DescribeEventsRequest request)
Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS events, see Working with Events and Notifications .
describeEvents in interface AWSDatabaseMigrationServicedescribeEventsRequest - public DescribeOrderableReplicationInstancesResult describeOrderableReplicationInstances(DescribeOrderableReplicationInstancesRequest request)
Returns information about the replication instance types that can be created in the specified region.
describeOrderableReplicationInstances in interface AWSDatabaseMigrationServicedescribeOrderableReplicationInstancesRequest - public DescribeRefreshSchemasStatusResult describeRefreshSchemasStatus(DescribeRefreshSchemasStatusRequest request)
Returns the status of the RefreshSchemas operation.
describeRefreshSchemasStatus in interface AWSDatabaseMigrationServicedescribeRefreshSchemasStatusRequest - InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.ResourceNotFoundException - The resource could not be found.public DescribeReplicationInstancesResult describeReplicationInstances(DescribeReplicationInstancesRequest request)
Returns information about replication instances for your account in the current region.
describeReplicationInstances in interface AWSDatabaseMigrationServicedescribeReplicationInstancesRequest - ResourceNotFoundException - The resource could not be found.public DescribeReplicationSubnetGroupsResult describeReplicationSubnetGroups(DescribeReplicationSubnetGroupsRequest request)
Returns information about the replication subnet groups.
describeReplicationSubnetGroups in interface AWSDatabaseMigrationServicedescribeReplicationSubnetGroupsRequest - ResourceNotFoundException - The resource could not be found.public DescribeReplicationTasksResult describeReplicationTasks(DescribeReplicationTasksRequest request)
Returns information about replication tasks for your account in the current region.
describeReplicationTasks in interface AWSDatabaseMigrationServicedescribeReplicationTasksRequest - ResourceNotFoundException - The resource could not be found.public DescribeSchemasResult describeSchemas(DescribeSchemasRequest request)
Returns information about the schema for the specified endpoint.
describeSchemas in interface AWSDatabaseMigrationServicedescribeSchemasRequest - InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.ResourceNotFoundException - The resource could not be found.public DescribeTableStatisticsResult describeTableStatistics(DescribeTableStatisticsRequest request)
Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted.
Note that the "last updated" column the DMS console only indicates the time that AWS DMS last updated the table statistics record for a table. It does not indicate the time of the last update to the table.
describeTableStatistics in interface AWSDatabaseMigrationServicedescribeTableStatisticsRequest - ResourceNotFoundException - The resource could not be found.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.public ImportCertificateResult importCertificate(ImportCertificateRequest request)
Uploads the specified certificate.
importCertificate in interface AWSDatabaseMigrationServiceimportCertificateRequest - ResourceAlreadyExistsException - The resource you are attempting to create already exists.InvalidCertificateException - The certificate was not valid.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists all tags for an AWS DMS resource.
listTagsForResource in interface AWSDatabaseMigrationServicelistTagsForResourceRequest - ResourceNotFoundException - The resource could not be found.public ModifyEndpointResult modifyEndpoint(ModifyEndpointRequest request)
Modifies the specified endpoint.
modifyEndpoint in interface AWSDatabaseMigrationServicemodifyEndpointRequest - InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.ResourceNotFoundException - The resource could not be found.ResourceAlreadyExistsException - The resource you are attempting to create already exists.KMSKeyNotAccessibleException - AWS DMS cannot access the KMS key.AccessDeniedException - AWS DMS was denied access to the endpoint.public ModifyEventSubscriptionResult modifyEventSubscription(ModifyEventSubscriptionRequest request)
Modifies an existing AWS DMS event notification subscription.
modifyEventSubscription in interface AWSDatabaseMigrationServicemodifyEventSubscriptionRequest - ResourceQuotaExceededException - The quota for this resource quota has been exceeded.ResourceNotFoundException - The resource could not be found.SNSInvalidTopicException - The SNS topic is invalid.SNSNoAuthorizationException - You are not authorized for the SNS subscription.public ModifyReplicationInstanceResult modifyReplicationInstance(ModifyReplicationInstanceRequest request)
Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.
Some settings are applied during the maintenance window.
modifyReplicationInstance in interface AWSDatabaseMigrationServicemodifyReplicationInstanceRequest - InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.ResourceAlreadyExistsException - The resource you are attempting to create already exists.ResourceNotFoundException - The resource could not be found.InsufficientResourceCapacityException - There are not enough resources allocated to the database migration.StorageQuotaExceededException - The storage quota has been exceeded.UpgradeDependencyFailureException - An upgrade dependency is preventing the database migration.public ModifyReplicationSubnetGroupResult modifyReplicationSubnetGroup(ModifyReplicationSubnetGroupRequest request)
Modifies the settings for the specified replication subnet group.
modifyReplicationSubnetGroup in interface AWSDatabaseMigrationServicemodifyReplicationSubnetGroupRequest - AccessDeniedException - AWS DMS was denied access to the endpoint.ResourceNotFoundException - The resource could not be found.ResourceQuotaExceededException - The quota for this resource quota has been exceeded.SubnetAlreadyInUseException - The specified subnet is already in use.ReplicationSubnetGroupDoesNotCoverEnoughAZsException - The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet
group and add more AZs.InvalidSubnetException - The subnet provided is invalid.public ModifyReplicationTaskResult modifyReplicationTask(ModifyReplicationTaskRequest request)
Modifies the specified replication task.
You can't modify the task endpoints. The task must be stopped before you can modify it.
For more information about AWS DMS tasks, see the AWS DMS user guide at Working with Migration Tasks
modifyReplicationTask in interface AWSDatabaseMigrationServicemodifyReplicationTaskRequest - InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.ResourceNotFoundException - The resource could not be found.ResourceAlreadyExistsException - The resource you are attempting to create already exists.KMSKeyNotAccessibleException - AWS DMS cannot access the KMS key.public RefreshSchemasResult refreshSchemas(RefreshSchemasRequest request)
Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation.
refreshSchemas in interface AWSDatabaseMigrationServicerefreshSchemasRequest - InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.ResourceNotFoundException - The resource could not be found.KMSKeyNotAccessibleException - AWS DMS cannot access the KMS key.ResourceQuotaExceededException - The quota for this resource quota has been exceeded.public ReloadTablesResult reloadTables(ReloadTablesRequest request)
Reloads the target database table with the source data.
reloadTables in interface AWSDatabaseMigrationServicereloadTablesRequest - ResourceNotFoundException - The resource could not be found.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.public RemoveTagsFromResourceResult removeTagsFromResource(RemoveTagsFromResourceRequest request)
Removes metadata tags from a DMS resource.
removeTagsFromResource in interface AWSDatabaseMigrationServiceremoveTagsFromResourceRequest - ResourceNotFoundException - The resource could not be found.public StartReplicationTaskResult startReplicationTask(StartReplicationTaskRequest request)
Starts the replication task.
For more information about AWS DMS tasks, see the AWS DMS user guide at Working with Migration Tasks
startReplicationTask in interface AWSDatabaseMigrationServicestartReplicationTaskRequest - ResourceNotFoundException - The resource could not be found.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.public StopReplicationTaskResult stopReplicationTask(StopReplicationTaskRequest request)
Stops the replication task.
stopReplicationTask in interface AWSDatabaseMigrationServicestopReplicationTaskRequest - ResourceNotFoundException - The resource could not be found.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.public TestConnectionResult testConnection(TestConnectionRequest request)
Tests the connection between the replication instance and the endpoint.
testConnection in interface AWSDatabaseMigrationServicetestConnectionRequest - ResourceNotFoundException - The resource could not be found.InvalidResourceStateException - The resource is in a state that prevents it from being used for database migration.KMSKeyNotAccessibleException - AWS DMS cannot access the KMS key.ResourceQuotaExceededException - The quota for this resource quota has been exceeded.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 AWSDatabaseMigrationServicerequest - The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.