amazonka-dms-1.6.1: Amazon Database Migration Service SDK.

Copyright (c) 2013-2018 Brendan Hay Mozilla Public License, v. 2.0. Brendan Hay auto-generated non-portable (GHC extensions) None Haskell2010

Description

Creates a replication task using the specified parameters.

Synopsis

# Creating a Request

Arguments

 :: Text crtReplicationTaskIdentifier -> Text crtSourceEndpointARN -> Text crtTargetEndpointARN -> Text crtReplicationInstanceARN -> MigrationTypeValue crtMigrationType -> Text crtTableMappings -> CreateReplicationTask

Creates a value of CreateReplicationTask with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

• crtReplicationTaskSettings - Settings for the task, such as target metadata settings. For a complete list of task settings, see Task Settings for AWS Database Migration Service Tasks .
• crtCdcStartPosition - Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error. The value can be in date, checkpoint, or LSN/SCN format. Date Example: --cdc-start-position “2018-03-08T12:12:12” Checkpoint Example: --cdc-start-position "checkpoint:V1mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:187600#93" LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
• crtCdcStopPosition - Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time. Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12” Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
• crtTags - Tags to be added to the replication instance.
• crtCdcStartTime - Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.
• crtReplicationTaskIdentifier - The replication task identifier. Constraints: * Must contain from 1 to 255 alphanumeric characters or hyphens. * First character must be a letter. * Cannot end with a hyphen or contain two consecutive hyphens.
• crtSourceEndpointARN - The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
• crtTargetEndpointARN - The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
• crtReplicationInstanceARN - The Amazon Resource Name (ARN) of the replication instance.
• crtMigrationType - The migration type.
• crtTableMappings - When using the AWS CLI or boto3, provide the path of the JSON file that contains the table mappings. Precede the path with "file:/". When working with the DMS API, provide the JSON as the parameter value. For example, --table-mappings file:/mappingfile.json

See: createReplicationTask smart constructor.

Instances

# Request Lenses

Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error. The value can be in date, checkpoint, or LSN/SCN format. Date Example: --cdc-start-position “2018-03-08T12:12:12” Checkpoint Example: --cdc-start-position "checkpoint:V1mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:187600#93" LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time. Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12” Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “

Tags to be added to the replication instance.

Indicates the start time for a change data capture (CDC) operation. Use either CdcStartTime or CdcStartPosition to specify when you want a CDC operation to start. Specifying both values results in an error.

The replication task identifier. Constraints: * Must contain from 1 to 255 alphanumeric characters or hyphens. * First character must be a letter. * Cannot end with a hyphen or contain two consecutive hyphens.

The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

The Amazon Resource Name (ARN) of the replication instance.

The migration type.

When using the AWS CLI or boto3, provide the path of the JSON file that contains the table mappings. Precede the path with "file:/". When working with the DMS API, provide the JSON as the parameter value. For example, --table-mappings file:/mappingfile.json

# Destructuring the Response

Arguments

 :: Int crtrsResponseStatus -> CreateReplicationTaskResponse

Creates a value of CreateReplicationTaskResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

• crtrsReplicationTask - The replication task that was created.
• crtrsResponseStatus - -- | The response status code.

See: createReplicationTaskResponse smart constructor.

Instances