Class: AWS.DMS
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.DMS
- Identifier:
- dms
- API Version:
- 2016-01-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Database Migration Service (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 DMS, see What Is Database Migration Service? in the Database Migration Service User Guide.
Sending a Request Using DMS
var dms = new AWS.DMS();
dms.describeMetadataModelExportsToTarget(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the DMS object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var dms = new AWS.DMS({apiVersion: '2016-01-01'});
You can also set the API version globally in AWS.config.apiVersions using
the dms service identifier:
AWS.config.apiVersions = {
dms: '2016-01-01',
// other service API versions
};
var dms = new AWS.DMS();
Waiter Resource States
This service supports a list of resource states that can be polled using the waitFor() method. The resource states are:
testConnectionSucceeds, endpointDeleted, replicationInstanceAvailable, replicationInstanceDeleted, replicationTaskReady, replicationTaskStopped, replicationTaskRunning, replicationTaskDeleted
Constructor Summary collapse
-
new AWS.DMS(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
addTagsToResource(params = {}, callback) ⇒ AWS.Request
Adds metadata tags to an DMS resource, including replication instance, endpoint, subnet group, and migration task.
-
applyPendingMaintenanceAction(params = {}, callback) ⇒ AWS.Request
Applies a pending maintenance action to a resource (for example, to a replication instance).
.
-
batchStartRecommendations(params = {}, callback) ⇒ AWS.Request
Starts the analysis of up to 20 source databases to recommend target engines for each source database.
-
cancelReplicationTaskAssessmentRun(params = {}, callback) ⇒ AWS.Request
Cancels a single premigration assessment run.
This operation prevents any individual assessments from running if they haven't started running.
-
createDataProvider(params = {}, callback) ⇒ AWS.Request
Creates a data provider using the provided settings.
-
createEndpoint(params = {}, callback) ⇒ AWS.Request
Creates an endpoint using the provided settings.
Note: For a MySQL source or target endpoint, don't explicitly specify the database using theDatabaseNamerequest parameter on theCreateEndpointAPI call.- createEventSubscription(params = {}, callback) ⇒ AWS.Request
Creates an DMS event notification subscription.
- createFleetAdvisorCollector(params = {}, callback) ⇒ AWS.Request
Creates a Fleet Advisor collector using the specified parameters.
.
- createInstanceProfile(params = {}, callback) ⇒ AWS.Request
Creates the instance profile using the specified parameters.
.
- createMigrationProject(params = {}, callback) ⇒ AWS.Request
Creates the migration project using the specified parameters.
You can run this action only after you create an instance profile and data providers using CreateInstanceProfile and CreateDataProvider.
.- createReplicationConfig(params = {}, callback) ⇒ AWS.Request
Creates a configuration that you can later provide to configure and start an DMS Serverless replication.
- createReplicationInstance(params = {}, callback) ⇒ AWS.Request
Creates the replication instance using the specified parameters.
DMS requires that your account have certain roles with appropriate permissions before you can create a replication instance.
- createReplicationSubnetGroup(params = {}, callback) ⇒ AWS.Request
Creates a replication subnet group given a list of the subnet IDs in a VPC.
The VPC needs to have at least one subnet in at least two availability zones in the Amazon Web Services Region, otherwise the service will throw a
ReplicationSubnetGroupDoesNotCoverEnoughAZsexception.If a replication subnet group exists in your Amazon Web Services account, the CreateReplicationSubnetGroup action returns the following error message: The Replication Subnet Group already exists.
- createReplicationTask(params = {}, callback) ⇒ AWS.Request
Creates a replication task using the specified parameters.
.
- deleteCertificate(params = {}, callback) ⇒ AWS.Request
Deletes the specified certificate.
- deleteConnection(params = {}, callback) ⇒ AWS.Request
Deletes the connection between a replication instance and an endpoint.
.
- deleteDataProvider(params = {}, callback) ⇒ AWS.Request
Deletes the specified data provider.
Note: All migration projects associated with the data provider must be deleted or modified before you can delete the data provider.- deleteEndpoint(params = {}, callback) ⇒ AWS.Request
Deletes the specified endpoint.
Note: All tasks associated with the endpoint must be deleted before you can delete the endpoint.- deleteEventSubscription(params = {}, callback) ⇒ AWS.Request
Deletes an DMS event subscription.
- deleteFleetAdvisorCollector(params = {}, callback) ⇒ AWS.Request
Deletes the specified Fleet Advisor collector.
.
- deleteFleetAdvisorDatabases(params = {}, callback) ⇒ AWS.Request
Deletes the specified Fleet Advisor collector databases.
.
- deleteInstanceProfile(params = {}, callback) ⇒ AWS.Request
Deletes the specified instance profile.
Note: All migration projects associated with the instance profile must be deleted or modified before you can delete the instance profile.- deleteMigrationProject(params = {}, callback) ⇒ AWS.Request
Deletes the specified migration project.
Note: The migration project must be closed before you can delete it.- deleteReplicationConfig(params = {}, callback) ⇒ AWS.Request
Deletes an DMS Serverless replication configuration.
- deleteReplicationInstance(params = {}, callback) ⇒ AWS.Request
Deletes the specified replication instance.
Note: You must delete any migration tasks that are associated with the replication instance before you can delete it.- deleteReplicationSubnetGroup(params = {}, callback) ⇒ AWS.Request
Deletes a subnet group.
.
- deleteReplicationTask(params = {}, callback) ⇒ AWS.Request
Deletes the specified replication task.
.
- deleteReplicationTaskAssessmentRun(params = {}, callback) ⇒ AWS.Request
Deletes the record of a single premigration assessment run.
This operation removes all metadata that DMS maintains about this assessment run.
- describeAccountAttributes(params = {}, callback) ⇒ AWS.Request
Lists all of the DMS attributes for a customer account.
- describeApplicableIndividualAssessments(params = {}, callback) ⇒ AWS.Request
Provides a list of individual assessments that you can specify for a new premigration assessment run, given one or more parameters.
If you specify an existing migration task, this operation provides the default individual assessments you can specify for that task.
- describeCertificates(params = {}, callback) ⇒ AWS.Request
Provides a description of the certificate.
.
- describeConnections(params = {}, callback) ⇒ AWS.Request
Describes the status of the connections that have been made between the replication instance and an endpoint.
- describeConversionConfiguration(params = {}, callback) ⇒ AWS.Request
Returns configuration parameters for a schema conversion project.
.
- describeDataProviders(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of data providers for your account in the current region.
.
- describeEndpoints(params = {}, callback) ⇒ AWS.Request
Returns information about the endpoints for your account in the current region.
.
- describeEndpointSettings(params = {}, callback) ⇒ AWS.Request
Returns information about the possible endpoint settings available when you create an endpoint for a specific database engine.
.
- describeEndpointTypes(params = {}, callback) ⇒ AWS.Request
Returns information about the type of endpoints available.
.
- describeEngineVersions(params = {}, callback) ⇒ AWS.Request
Returns information about the replication instance versions used in the project.
.
- describeEventCategories(params = {}, callback) ⇒ AWS.Request
Lists categories for all event source types, or, if specified, for a specified source type.
- describeEvents(params = {}, callback) ⇒ AWS.Request
Lists events for a given source identifier and source type.
- describeEventSubscriptions(params = {}, callback) ⇒ AWS.Request
Lists all the event subscriptions for a customer account.
- describeExtensionPackAssociations(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of extension pack associations for the specified migration project.
- describeFleetAdvisorCollectors(params = {}, callback) ⇒ AWS.Request
Returns a list of the Fleet Advisor collectors in your account.
.
- describeFleetAdvisorDatabases(params = {}, callback) ⇒ AWS.Request
Returns a list of Fleet Advisor databases in your account.
.
- describeFleetAdvisorLsaAnalysis(params = {}, callback) ⇒ AWS.Request
Provides descriptions of large-scale assessment (LSA) analyses produced by your Fleet Advisor collectors.
- describeFleetAdvisorSchemaObjectSummary(params = {}, callback) ⇒ AWS.Request
Provides descriptions of the schemas discovered by your Fleet Advisor collectors.
.
- describeFleetAdvisorSchemas(params = {}, callback) ⇒ AWS.Request
Returns a list of schemas detected by Fleet Advisor Collectors in your account.
.
- describeInstanceProfiles(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of instance profiles for your account in the current region.
.
- describeMetadataModelAssessments(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of metadata model assessments for your account in the current region.
.
- describeMetadataModelConversions(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of metadata model conversions for a migration project.
.
- describeMetadataModelExportsAsScript(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of metadata model exports.
.
- describeMetadataModelExportsToTarget(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of metadata model exports.
.
- describeMetadataModelImports(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of metadata model imports.
.
- describeMigrationProjects(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of migration projects for your account in the current region.
.
- describeOrderableReplicationInstances(params = {}, callback) ⇒ AWS.Request
Returns information about the replication instance types that can be created in the specified region.
.
- describePendingMaintenanceActions(params = {}, callback) ⇒ AWS.Request
For internal use only
.
- describeRecommendationLimitations(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of limitations for recommendations of target Amazon Web Services engines.
.
- describeRecommendations(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of target engine recommendations for your source databases.
.
- describeRefreshSchemasStatus(params = {}, callback) ⇒ AWS.Request
Returns the status of the RefreshSchemas operation.
.
- describeReplicationConfigs(params = {}, callback) ⇒ AWS.Request
Returns one or more existing DMS Serverless replication configurations as a list of structures.
.
- describeReplicationInstances(params = {}, callback) ⇒ AWS.Request
Returns information about replication instances for your account in the current region.
.
- describeReplicationInstanceTaskLogs(params = {}, callback) ⇒ AWS.Request
Returns information about the task logs for the specified task.
.
- describeReplications(params = {}, callback) ⇒ AWS.Request
Provides details on replication progress by returning status information for one or more provisioned DMS Serverless replications.
.
- describeReplicationSubnetGroups(params = {}, callback) ⇒ AWS.Request
Returns information about the replication subnet groups.
.
- describeReplicationTableStatistics(params = {}, callback) ⇒ AWS.Request
Returns table and schema statistics for one or more provisioned replications that use a given DMS Serverless replication configuration.
.
- describeReplicationTaskAssessmentResults(params = {}, callback) ⇒ AWS.Request
Returns the task assessment results from the Amazon S3 bucket that DMS creates in your Amazon Web Services account.
- describeReplicationTaskAssessmentRuns(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of premigration assessment runs based on filter settings.
These filter settings can specify a combination of premigration assessment runs, migration tasks, replication instances, and assessment run status values.
Note: This operation doesn't return information about individual assessments.- describeReplicationTaskIndividualAssessments(params = {}, callback) ⇒ AWS.Request
Returns a paginated list of individual assessments based on filter settings.
These filter settings can specify a combination of premigration assessment runs, migration tasks, and assessment status values.
.- describeReplicationTasks(params = {}, callback) ⇒ AWS.Request
Returns information about replication tasks for your account in the current region.
.
- describeSchemas(params = {}, callback) ⇒ AWS.Request
Returns information about the schema for the specified endpoint.
.- describeTableStatistics(params = {}, callback) ⇒ AWS.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 DMS last updated the table statistics record for a table.
- exportMetadataModelAssessment(params = {}, callback) ⇒ AWS.Request
Saves a copy of a database migration assessment report to your Amazon S3 bucket.
- importCertificate(params = {}, callback) ⇒ AWS.Request
Uploads the specified certificate.
.
- listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists all metadata tags attached to an DMS resource, including replication instance, endpoint, subnet group, and migration task.
- modifyConversionConfiguration(params = {}, callback) ⇒ AWS.Request
Modifies the specified schema conversion configuration using the provided parameters.
- modifyDataProvider(params = {}, callback) ⇒ AWS.Request
Modifies the specified data provider using the provided settings.
Note: You must remove the data provider from all migration projects before you can modify it.- modifyEndpoint(params = {}, callback) ⇒ AWS.Request
Modifies the specified endpoint.
Note: For a MySQL source or target endpoint, don't explicitly specify the database using theDatabaseNamerequest parameter on theModifyEndpointAPI call.- modifyEventSubscription(params = {}, callback) ⇒ AWS.Request
Modifies an existing DMS event notification subscription.
- modifyInstanceProfile(params = {}, callback) ⇒ AWS.Request
Modifies the specified instance profile using the provided parameters.
Note: All migration projects associated with the instance profile must be deleted or modified before you can modify the instance profile.- modifyMigrationProject(params = {}, callback) ⇒ AWS.Request
Modifies the specified migration project using the provided parameters.
Note: The migration project must be closed before you can modify it.- modifyReplicationConfig(params = {}, callback) ⇒ AWS.Request
Modifies an existing DMS Serverless replication configuration that you can use to start a replication.
- modifyReplicationInstance(params = {}, callback) ⇒ AWS.Request
Modifies the replication instance to apply new settings.
- modifyReplicationSubnetGroup(params = {}, callback) ⇒ AWS.Request
Modifies the settings for the specified replication subnet group.
.
- modifyReplicationTask(params = {}, callback) ⇒ AWS.Request
Modifies the specified replication task.
You can't modify the task endpoints.
- moveReplicationTask(params = {}, callback) ⇒ AWS.Request
Moves a replication task from its current replication instance to a different target replication instance using the specified parameters.
- rebootReplicationInstance(params = {}, callback) ⇒ AWS.Request
Reboots a replication instance.
- refreshSchemas(params = {}, callback) ⇒ AWS.Request
Populates the schema for the specified endpoint.
- reloadReplicationTables(params = {}, callback) ⇒ AWS.Request
Reloads the target database table with the source data for a given DMS Serverless replication configuration.
You can only use this operation with a task in the RUNNING state, otherwise the service will throw an
.InvalidResourceStateFaultexception.- reloadTables(params = {}, callback) ⇒ AWS.Request
Reloads the target database table with the source data.
- removeTagsFromResource(params = {}, callback) ⇒ AWS.Request
Removes metadata tags from an DMS resource, including replication instance, endpoint, subnet group, and migration task.
- runFleetAdvisorLsaAnalysis(params = {}, callback) ⇒ AWS.Request
Runs large-scale assessment (LSA) analysis on every Fleet Advisor collector in your account.
.
- startExtensionPackAssociation(params = {}, callback) ⇒ AWS.Request
Applies the extension pack to your target database.
- startMetadataModelAssessment(params = {}, callback) ⇒ AWS.Request
Creates a database migration assessment report by assessing the migration complexity for your source database.
- startMetadataModelConversion(params = {}, callback) ⇒ AWS.Request
Converts your source database objects to a format compatible with the target database.
- startMetadataModelExportAsScript(params = {}, callback) ⇒ AWS.Request
Saves your converted code to a file as a SQL script, and stores this file on your Amazon S3 bucket.
.
- startMetadataModelExportToTarget(params = {}, callback) ⇒ AWS.Request
Applies converted database objects to your target database.
- startMetadataModelImport(params = {}, callback) ⇒ AWS.Request
Loads the metadata for all the dependent database objects of the parent object.
This operation uses your project's Amazon S3 bucket as a metadata cache to improve performance.
.- startRecommendations(params = {}, callback) ⇒ AWS.Request
Starts the analysis of your source database to provide recommendations of target engines.
You can create recommendations for multiple source databases using BatchStartRecommendations.
.- startReplication(params = {}, callback) ⇒ AWS.Request
For a given DMS Serverless replication configuration, DMS connects to the source endpoint and collects the metadata to analyze the replication workload.
- startReplicationTask(params = {}, callback) ⇒ AWS.Request
Starts the replication task.
For more information about DMS tasks, see Working with Migration Tasks in the Database Migration Service User Guide.
.- startReplicationTaskAssessment(params = {}, callback) ⇒ AWS.Request
Starts the replication task assessment for unsupported data types in the source database.
- startReplicationTaskAssessmentRun(params = {}, callback) ⇒ AWS.Request
Starts a new premigration assessment run for one or more individual assessments of a migration task.
The assessments that you can specify depend on the source and target database engine and the migration type defined for the given task.
- stopReplication(params = {}, callback) ⇒ AWS.Request
For a given DMS Serverless replication configuration, DMS stops any and all ongoing DMS Serverless replications.
- stopReplicationTask(params = {}, callback) ⇒ AWS.Request
Stops the replication task.
.
- testConnection(params = {}, callback) ⇒ AWS.Request
Tests the connection between the replication instance and the endpoint.
.
- updateSubscriptionsToEventBridge(params = {}, callback) ⇒ AWS.Request
Migrates 10 active and enabled Amazon SNS subscriptions at a time and converts them to corresponding Amazon EventBridge rules.
- waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given DMS resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.DMS(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
addTagsToResource(params = {}, callback) ⇒ AWS.Request
Adds metadata tags to an DMS resource, including replication instance, endpoint, subnet 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. For more information, see
Tagdata type description.applyPendingMaintenanceAction(params = {}, callback) ⇒ AWS.Request
Applies a pending maintenance action to a resource (for example, to a replication instance).
batchStartRecommendations(params = {}, callback) ⇒ AWS.Request
Starts the analysis of up to 20 source databases to recommend target engines for each source database. This is a batch version of StartRecommendations.
The result of analysis of each source database is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of
200.cancelReplicationTaskAssessmentRun(params = {}, callback) ⇒ AWS.Request
Cancels a single premigration assessment run.
This operation prevents any individual assessments from running if they haven't started running. It also attempts to cancel any individual assessments that are currently running.
createDataProvider(params = {}, callback) ⇒ AWS.Request
Creates a data provider using the provided settings. A data provider stores a data store type and location information about your database.
createEndpoint(params = {}, callback) ⇒ AWS.Request
Creates an endpoint using the provided settings.
Note: For a MySQL source or target endpoint, don't explicitly specify the database using theDatabaseNamerequest parameter on theCreateEndpointAPI call. SpecifyingDatabaseNamewhen you create a MySQL endpoint replicates all the task tables to this single database. For MySQL endpoints, you specify the database only when you specify the schema in the table-mapping rules of the DMS task. - createEventSubscription(params = {}, callback) ⇒ AWS.Request