| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.DMS.CreateReplicationTask
Description
Creates a replication task using the specified parameters.
- createReplicationTask :: Text -> Text -> Text -> Text -> MigrationTypeValue -> Text -> CreateReplicationTask
- data CreateReplicationTask
- crtReplicationTaskSettings :: Lens' CreateReplicationTask (Maybe Text)
- crtCdcStartPosition :: Lens' CreateReplicationTask (Maybe Text)
- crtCdcStopPosition :: Lens' CreateReplicationTask (Maybe Text)
- crtTags :: Lens' CreateReplicationTask [Tag]
- crtCdcStartTime :: Lens' CreateReplicationTask (Maybe UTCTime)
- crtReplicationTaskIdentifier :: Lens' CreateReplicationTask Text
- crtSourceEndpointARN :: Lens' CreateReplicationTask Text
- crtTargetEndpointARN :: Lens' CreateReplicationTask Text
- crtReplicationInstanceARN :: Lens' CreateReplicationTask Text
- crtMigrationType :: Lens' CreateReplicationTask MigrationTypeValue
- crtTableMappings :: Lens' CreateReplicationTask Text
- createReplicationTaskResponse :: Int -> CreateReplicationTaskResponse
- data CreateReplicationTaskResponse
- crtrsReplicationTask :: Lens' CreateReplicationTaskResponse (Maybe ReplicationTask)
- crtrsResponseStatus :: Lens' CreateReplicationTaskResponse Int
Creating a Request
createReplicationTask Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> MigrationTypeValue | |
| -> Text | |
| -> 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
data CreateReplicationTask Source #
See: createReplicationTask smart constructor.
Instances
Request Lenses
crtReplicationTaskSettings :: Lens' CreateReplicationTask (Maybe Text) Source #
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 :: Lens' CreateReplicationTask (Maybe Text) Source #
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 :: Lens' CreateReplicationTask (Maybe Text) Source #
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 “
crtCdcStartTime :: Lens' CreateReplicationTask (Maybe UTCTime) Source #
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 :: Lens' CreateReplicationTask Text Source #
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 :: Lens' CreateReplicationTask Text Source #
The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
crtTargetEndpointARN :: Lens' CreateReplicationTask Text Source #
The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
crtReplicationInstanceARN :: Lens' CreateReplicationTask Text Source #
The Amazon Resource Name (ARN) of the replication instance.
crtMigrationType :: Lens' CreateReplicationTask MigrationTypeValue Source #
The migration type.
crtTableMappings :: Lens' CreateReplicationTask Text Source #
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
createReplicationTaskResponse Source #
Arguments
| :: Int | |
| -> 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.
data CreateReplicationTaskResponse Source #
See: createReplicationTaskResponse smart constructor.
Instances
Response Lenses
crtrsReplicationTask :: Lens' CreateReplicationTaskResponse (Maybe ReplicationTask) Source #
The replication task that was created.
crtrsResponseStatus :: Lens' CreateReplicationTaskResponse Int Source #
- - | The response status code.