Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DMS

import { DMS } from "https://aws-api.deno.dev/v0.4/services/dms.ts?docs=full";
class DMS {
constructor(apiFactory: client.ApiFactory);
async addTagsToResource(params: AddTagsToResourceMessage, opts?: client.RequestOptions): Promise<void>;
async applyPendingMaintenanceAction(params: ApplyPendingMaintenanceActionMessage, opts?: client.RequestOptions): Promise<ApplyPendingMaintenanceActionResponse>;
async cancelReplicationTaskAssessmentRun(params: CancelReplicationTaskAssessmentRunMessage, opts?: client.RequestOptions): Promise<CancelReplicationTaskAssessmentRunResponse>;
async createEndpoint(params: CreateEndpointMessage, opts?: client.RequestOptions): Promise<CreateEndpointResponse>;
async createEventSubscription(params: CreateEventSubscriptionMessage, opts?: client.RequestOptions): Promise<CreateEventSubscriptionResponse>;
async createFleetAdvisorCollector(params: CreateFleetAdvisorCollectorRequest, opts?: client.RequestOptions): Promise<CreateFleetAdvisorCollectorResponse>;
async createReplicationInstance(params: CreateReplicationInstanceMessage, opts?: client.RequestOptions): Promise<CreateReplicationInstanceResponse>;
async createReplicationSubnetGroup(params: CreateReplicationSubnetGroupMessage, opts?: client.RequestOptions): Promise<CreateReplicationSubnetGroupResponse>;
async createReplicationTask(params: CreateReplicationTaskMessage, opts?: client.RequestOptions): Promise<CreateReplicationTaskResponse>;
async deleteCertificate(params: DeleteCertificateMessage, opts?: client.RequestOptions): Promise<DeleteCertificateResponse>;
async deleteConnection(params: DeleteConnectionMessage, opts?: client.RequestOptions): Promise<DeleteConnectionResponse>;
async deleteEndpoint(params: DeleteEndpointMessage, opts?: client.RequestOptions): Promise<DeleteEndpointResponse>;
async deleteEventSubscription(params: DeleteEventSubscriptionMessage, opts?: client.RequestOptions): Promise<DeleteEventSubscriptionResponse>;
async deleteFleetAdvisorCollector(params: DeleteCollectorRequest, opts?: client.RequestOptions): Promise<void>;
async deleteFleetAdvisorDatabases(params: DeleteFleetAdvisorDatabasesRequest, opts?: client.RequestOptions): Promise<DeleteFleetAdvisorDatabasesResponse>;
async deleteReplicationInstance(params: DeleteReplicationInstanceMessage, opts?: client.RequestOptions): Promise<DeleteReplicationInstanceResponse>;
async deleteReplicationSubnetGroup(params: DeleteReplicationSubnetGroupMessage, opts?: client.RequestOptions): Promise<void>;
async deleteReplicationTask(params: DeleteReplicationTaskMessage, opts?: client.RequestOptions): Promise<DeleteReplicationTaskResponse>;
async deleteReplicationTaskAssessmentRun(params: DeleteReplicationTaskAssessmentRunMessage, opts?: client.RequestOptions): Promise<DeleteReplicationTaskAssessmentRunResponse>;
async describeAccountAttributes(opts?: client.RequestOptions): Promise<DescribeAccountAttributesResponse>;
async describeApplicableIndividualAssessments(params?: DescribeApplicableIndividualAssessmentsMessage, opts?: client.RequestOptions): Promise<DescribeApplicableIndividualAssessmentsResponse>;
async describeCertificates(params?: DescribeCertificatesMessage, opts?: client.RequestOptions): Promise<DescribeCertificatesResponse>;
async describeConnections(params?: DescribeConnectionsMessage, opts?: client.RequestOptions): Promise<DescribeConnectionsResponse>;
async describeEndpoints(params?: DescribeEndpointsMessage, opts?: client.RequestOptions): Promise<DescribeEndpointsResponse>;
async describeEndpointSettings(params: DescribeEndpointSettingsMessage, opts?: client.RequestOptions): Promise<DescribeEndpointSettingsResponse>;
async describeEndpointTypes(params?: DescribeEndpointTypesMessage, opts?: client.RequestOptions): Promise<DescribeEndpointTypesResponse>;
async describeEventCategories(params?: DescribeEventCategoriesMessage, opts?: client.RequestOptions): Promise<DescribeEventCategoriesResponse>;
async describeEvents(params?: DescribeEventsMessage, opts?: client.RequestOptions): Promise<DescribeEventsResponse>;
async describeEventSubscriptions(params?: DescribeEventSubscriptionsMessage, opts?: client.RequestOptions): Promise<DescribeEventSubscriptionsResponse>;
async describeFleetAdvisorCollectors(params?: DescribeFleetAdvisorCollectorsRequest, opts?: client.RequestOptions): Promise<DescribeFleetAdvisorCollectorsResponse>;
async describeFleetAdvisorDatabases(params?: DescribeFleetAdvisorDatabasesRequest, opts?: client.RequestOptions): Promise<DescribeFleetAdvisorDatabasesResponse>;
async describeFleetAdvisorLsaAnalysis(params?: DescribeFleetAdvisorLsaAnalysisRequest, opts?: client.RequestOptions): Promise<DescribeFleetAdvisorLsaAnalysisResponse>;
async describeFleetAdvisorSchemaObjectSummary(params?: DescribeFleetAdvisorSchemaObjectSummaryRequest, opts?: client.RequestOptions): Promise<DescribeFleetAdvisorSchemaObjectSummaryResponse>;
async describeFleetAdvisorSchemas(params?: DescribeFleetAdvisorSchemasRequest, opts?: client.RequestOptions): Promise<DescribeFleetAdvisorSchemasResponse>;
async describeOrderableReplicationInstances(params?: DescribeOrderableReplicationInstancesMessage, opts?: client.RequestOptions): Promise<DescribeOrderableReplicationInstancesResponse>;
async describePendingMaintenanceActions(params?: DescribePendingMaintenanceActionsMessage, opts?: client.RequestOptions): Promise<DescribePendingMaintenanceActionsResponse>;
async describeRefreshSchemasStatus(params: DescribeRefreshSchemasStatusMessage, opts?: client.RequestOptions): Promise<DescribeRefreshSchemasStatusResponse>;
async describeReplicationInstances(params?: DescribeReplicationInstancesMessage, opts?: client.RequestOptions): Promise<DescribeReplicationInstancesResponse>;
async describeReplicationInstanceTaskLogs(params: DescribeReplicationInstanceTaskLogsMessage, opts?: client.RequestOptions): Promise<DescribeReplicationInstanceTaskLogsResponse>;
async describeReplicationSubnetGroups(params?: DescribeReplicationSubnetGroupsMessage, opts?: client.RequestOptions): Promise<DescribeReplicationSubnetGroupsResponse>;
async describeReplicationTaskAssessmentResults(params?: DescribeReplicationTaskAssessmentResultsMessage, opts?: client.RequestOptions): Promise<DescribeReplicationTaskAssessmentResultsResponse>;
async describeReplicationTaskAssessmentRuns(params?: DescribeReplicationTaskAssessmentRunsMessage, opts?: client.RequestOptions): Promise<DescribeReplicationTaskAssessmentRunsResponse>;
async describeReplicationTasks(params?: DescribeReplicationTasksMessage, opts?: client.RequestOptions): Promise<DescribeReplicationTasksResponse>;
async describeSchemas(params: DescribeSchemasMessage, opts?: client.RequestOptions): Promise<DescribeSchemasResponse>;
async describeTableStatistics(params: DescribeTableStatisticsMessage, opts?: client.RequestOptions): Promise<DescribeTableStatisticsResponse>;
async importCertificate(params: ImportCertificateMessage, opts?: client.RequestOptions): Promise<ImportCertificateResponse>;
async listTagsForResource(params?: ListTagsForResourceMessage, opts?: client.RequestOptions): Promise<ListTagsForResourceResponse>;
async modifyEndpoint(params: ModifyEndpointMessage, opts?: client.RequestOptions): Promise<ModifyEndpointResponse>;
async modifyEventSubscription(params: ModifyEventSubscriptionMessage, opts?: client.RequestOptions): Promise<ModifyEventSubscriptionResponse>;
async modifyReplicationInstance(params: ModifyReplicationInstanceMessage, opts?: client.RequestOptions): Promise<ModifyReplicationInstanceResponse>;
async modifyReplicationSubnetGroup(params: ModifyReplicationSubnetGroupMessage, opts?: client.RequestOptions): Promise<ModifyReplicationSubnetGroupResponse>;
async modifyReplicationTask(params: ModifyReplicationTaskMessage, opts?: client.RequestOptions): Promise<ModifyReplicationTaskResponse>;
async moveReplicationTask(params: MoveReplicationTaskMessage, opts?: client.RequestOptions): Promise<MoveReplicationTaskResponse>;
async rebootReplicationInstance(params: RebootReplicationInstanceMessage, opts?: client.RequestOptions): Promise<RebootReplicationInstanceResponse>;
async refreshSchemas(params: RefreshSchemasMessage, opts?: client.RequestOptions): Promise<RefreshSchemasResponse>;
async reloadTables(params: ReloadTablesMessage, opts?: client.RequestOptions): Promise<ReloadTablesResponse>;
async removeTagsFromResource(params: RemoveTagsFromResourceMessage, opts?: client.RequestOptions): Promise<void>;
async runFleetAdvisorLsaAnalysis(opts?: client.RequestOptions): Promise<RunFleetAdvisorLsaAnalysisResponse>;
async startReplicationTask(params: StartReplicationTaskMessage, opts?: client.RequestOptions): Promise<StartReplicationTaskResponse>;
async startReplicationTaskAssessment(params: StartReplicationTaskAssessmentMessage, opts?: client.RequestOptions): Promise<StartReplicationTaskAssessmentResponse>;
async startReplicationTaskAssessmentRun(params: StartReplicationTaskAssessmentRunMessage, opts?: client.RequestOptions): Promise<StartReplicationTaskAssessmentRunResponse>;
async stopReplicationTask(params: StopReplicationTaskMessage, opts?: client.RequestOptions): Promise<StopReplicationTaskResponse>;
async testConnection(params: TestConnectionMessage, opts?: client.RequestOptions): Promise<TestConnectionResponse>;
async updateSubscriptionsToEventBridge(params?: UpdateSubscriptionsToEventBridgeMessage, opts?: client.RequestOptions): Promise<UpdateSubscriptionsToEventBridgeResponse>;
async waitForEndpointDeleted(params: DescribeEndpointsMessage, opts?: client.RequestOptions): Promise<Error | DescribeEndpointsResponse>;
async waitForReplicationInstanceAvailable(params: DescribeReplicationInstancesMessage, opts?: client.RequestOptions): Promise<DescribeReplicationInstancesResponse>;
async waitForReplicationInstanceDeleted(params: DescribeReplicationInstancesMessage, opts?: client.RequestOptions): Promise<Error | DescribeReplicationInstancesResponse>;
async waitForReplicationTaskDeleted(params: DescribeReplicationTasksMessage, opts?: client.RequestOptions): Promise<Error | DescribeReplicationTasksResponse>;
async waitForReplicationTaskReady(params: DescribeReplicationTasksMessage, opts?: client.RequestOptions): Promise<DescribeReplicationTasksResponse>;
async waitForReplicationTaskRunning(params: DescribeReplicationTasksMessage, opts?: client.RequestOptions): Promise<DescribeReplicationTasksResponse>;
async waitForReplicationTaskStopped(params: DescribeReplicationTasksMessage, opts?: client.RequestOptions): Promise<DescribeReplicationTasksResponse>;
async waitForTestConnectionSucceeds(params: DescribeConnectionsMessage, opts?: client.RequestOptions): Promise<DescribeConnectionsResponse>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new DMS(apiFactory: client.ApiFactory)
[src]

§Methods

§
addTagsToResource(params: AddTagsToResourceMessage, opts?: client.RequestOptions): Promise<void>
[src]

Adds metadata tags to an 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. For more information, see Tag data type description.

§

Applies a pending maintenance action to a resource (for example, to a replication instance).

§

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.

§

Creates an endpoint using the provided settings.

Note: For a MySQL source or target endpoint, don't explicitly specify the database using the DatabaseName request parameter on the CreateEndpoint API call. Specifying DatabaseName when 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.

§

Creates an DMS event notification subscription.

You can specify the type of source (SourceType) you want to be notified of, provide a list of 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 DMS sources. If you don't specify either SourceType nor SourceIdentifier, you will be notified of events generated from all DMS sources belonging to your customer account.

For more information about DMS events, see Working with Events and Notifications in the Database Migration Service User Guide.

§

Creates a Fleet Advisor collector using the specified parameters.

§

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. For information on the required roles, see Creating the IAM Roles to Use With the CLI and DMS API. For information on the required permissions, see IAM Permissions Needed to Use DMS.

§

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 ReplicationSubnetGroupDoesNotCoverEnoughAZs exception.

§

Creates a replication task using the specified parameters.

§

Deletes the specified certificate.

§

Deletes the connection between a replication instance and an endpoint.

§

Deletes the specified endpoint.

Note: All tasks associated with the endpoint must be deleted before you can delete the endpoint.

§

Deletes an DMS event subscription.

§
deleteFleetAdvisorCollector(params: DeleteCollectorRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the specified Fleet Advisor collector.

§

Deletes the specified Fleet Advisor collector databases.

§

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: DeleteReplicationSubnetGroupMessage, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a subnet group.

§

Deletes the specified replication task.

§

Deletes the record of a single premigration assessment run.

This operation removes all metadata that DMS maintains about this assessment run. However, the operation leaves untouched all information about this assessment run that is stored in your Amazon S3 bucket.

§
describeAccountAttributes(opts?: client.RequestOptions): Promise<DescribeAccountAttributesResponse>
[src]

Lists all of the DMS attributes for a customer account. These attributes include DMS quotas for the account and a unique account identifier in a particular DMS region. DMS quotas include a list of resource quotas supported by the account, such as the number of replication instances allowed. The description for each resource quota, includes the quota name, current usage toward that quota, and the quota's maximum value. DMS uses the unique account identifier to name each artifact used by DMS in the given region.

This command does not take any parameters.

§

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. Otherwise, the specified parameters model elements of a possible migration task on which to base a premigration assessment run.

To use these migration task modeling parameters, you must specify an existing replication instance, a source database engine, a target database engine, and a migration type. This combination of parameters potentially limits the default individual assessments available for an assessment run created for a corresponding migration task.

If you specify no parameters, this operation provides a list of all possible individual assessments that you can specify for an assessment run. If you specify any one of the task modeling parameters, you must specify all of them or the operation cannot provide a list of individual assessments. The only parameter that you can specify alone is for an existing migration task. The specified task definition then determines the default list of individual assessments that you can specify in an assessment run for the task.

§

Provides a description of the certificate.

§

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.

§

Returns information about the endpoints for your account in the current region.

§

Returns information about the possible endpoint settings available when you create an endpoint for a specific database engine.

§

Returns information about the type of endpoints available.

§

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 Database Migration Service User Guide.

§

Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on DMS events, see Working with Events and Notifications in the Database Migration Service User Guide.

§

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.

§

Returns a list of the Fleet Advisor collectors in your account.

§

Returns a list of Fleet Advisor databases in your account.

§

Provides descriptions of large-scale assessment (LSA) analyses produced by your Fleet Advisor collectors.

§

Provides descriptions of the schemas discovered by your Fleet Advisor collectors.

§

Returns a list of schemas detected by Fleet Advisor Collectors in your account.

§

Returns information about the replication instance types that can be created in the specified region.

§

For internal use only

§

Returns the status of the RefreshSchemas operation.

§

Returns information about replication instances for your account in the current region.

§

Returns information about the task logs for the specified task.

§

Returns information about the replication subnet groups.

§

Returns the task assessment results from the Amazon S3 bucket that DMS creates in your Amazon Web Services account. This action always returns the latest results.

For more information about DMS task assessments, see Creating a task assessment report in the Database Migration Service User Guide.

§

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. For this information, see the DescribeReplicationTaskIndividualAssessments operation.

§

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.

§

Returns information about replication tasks for your account in the current region.

§

Returns information about the schema for the specified endpoint.

§

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. It does not indicate the time of the last update to the table.

§

Uploads the specified certificate.

§

Lists all metadata tags attached to an DMS resource, including replication instance, endpoint, security group, and migration task. For more information, see Tag data type description.

§

Modifies the specified endpoint.

Note: For a MySQL source or target endpoint, don't explicitly specify the database using the DatabaseName request parameter on the ModifyEndpoint API call. Specifying DatabaseName when you modify 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.

§

Modifies an existing DMS event notification subscription.

§

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.

§

Modifies the settings for the specified replication subnet group.

§

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 DMS tasks, see Working with Migration Tasks in the Database Migration Service User Guide.

§

Moves a replication task from its current replication instance to a different target replication instance using the specified parameters. The target replication instance must be created with the same or later DMS version as the current replication instance.

§

Reboots a replication instance. Rebooting results in a momentary outage, until the replication instance becomes available again.

§

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.

§

Reloads the target database table with the source data.

You can only use this operation with a task in the RUNNING state, otherwise the service will throw an InvalidResourceStateFault exception.

§
removeTagsFromResource(params: RemoveTagsFromResourceMessage, opts?: client.RequestOptions): Promise<void>
[src]

Removes metadata tags from an DMS resource, including replication instance, endpoint, security group, and migration task. For more information, see Tag data type description.

§
runFleetAdvisorLsaAnalysis(opts?: client.RequestOptions): Promise<RunFleetAdvisorLsaAnalysisResponse>
[src]

Runs large-scale assessment (LSA) analysis on every Fleet Advisor collector in your account.

§

Starts the replication task.

For more information about DMS tasks, see Working with Migration Tasks in the Database Migration Service User Guide.

§

Starts the replication task assessment for unsupported data types in the source database.

You can only use this operation for a task if the following conditions are true:

  • The task must be in the stopped state.
  • The task must have successful connections to the source and target.

If either of these conditions are not met, an InvalidResourceStateFault error will result.

For information about DMS task assessments, see Creating a task assessment report in the Database Migration Service User Guide.

§

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. To run this operation, your migration task must already be created. After you run this operation, you can review the status of each individual assessment. You can also run the migration task manually after the assessment run and its individual assessments complete.

§

Stops the replication task.

§

Tests the connection between the replication instance and the endpoint.

§

Migrates 10 active and enabled Amazon SNS subscriptions at a time and converts them to corresponding Amazon EventBridge rules. By default, this operation migrates subscriptions only when all your replication instance versions are 3.4.6 or higher. If any replication instances are from versions earlier than 3.4.6, the operation raises an error and tells you to upgrade these instances to version 3.4.6 or higher. To enable migration regardless of version, set the Force option to true. However, if you don't upgrade instances earlier than version 3.4.6, some types of events might not be available when you use Amazon EventBridge.

To call this operation, make sure that you have certain permissions added to your user account. For more information, see Migrating event subscriptions to Amazon EventBridge in the Amazon Web Services Database Migration Service User Guide.

§
waitForEndpointDeleted(params: DescribeEndpointsMessage, opts?: client.RequestOptions): Promise<Error | DescribeEndpointsResponse>
[src]

Wait until testing endpoint is deleted. Checks state up to 60 times, 5 seconds apart (about 5 minutes max wait time).

§
waitForReplicationInstanceAvailable(params: DescribeReplicationInstancesMessage, opts?: client.RequestOptions): Promise<DescribeReplicationInstancesResponse>
[src]

Wait until DMS replication instance is available. Checks state up to 60 times, 60 seconds apart (about 60 minutes max wait time).

§
waitForReplicationInstanceDeleted(params: DescribeReplicationInstancesMessage, opts?: client.RequestOptions): Promise<Error | DescribeReplicationInstancesResponse>
[src]

Wait until DMS replication instance is deleted. Checks state up to 60 times, 15 seconds apart (about 15 minutes max wait time).

§
waitForReplicationTaskDeleted(params: DescribeReplicationTasksMessage, opts?: client.RequestOptions): Promise<Error | DescribeReplicationTasksResponse>
[src]

Wait until DMS replication task is deleted. Checks state up to 60 times, 15 seconds apart (about 15 minutes max wait time).

§

Wait until DMS replication task is ready. Checks state up to 60 times, 15 seconds apart (about 15 minutes max wait time).

§

Wait until DMS replication task is running. Checks state up to 60 times, 15 seconds apart (about 15 minutes max wait time).

§

Wait until DMS replication task is stopped. Checks state up to 60 times, 15 seconds apart (about 15 minutes max wait time).

§
waitForTestConnectionSucceeds(params: DescribeConnectionsMessage, opts?: client.RequestOptions): Promise<DescribeConnectionsResponse>
[src]

Wait until testing connection succeeds. Checks state up to 60 times, 5 seconds apart (about 5 minutes max wait time).

§Static Properties