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 |
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
Synopsis
- modifyReplicationTask :: Text -> ModifyReplicationTask
- data ModifyReplicationTask
- mrtReplicationTaskSettings :: Lens' ModifyReplicationTask (Maybe Text)
- mrtReplicationTaskIdentifier :: Lens' ModifyReplicationTask (Maybe Text)
- mrtCdcStartPosition :: Lens' ModifyReplicationTask (Maybe Text)
- mrtTableMappings :: Lens' ModifyReplicationTask (Maybe Text)
- mrtMigrationType :: Lens' ModifyReplicationTask (Maybe MigrationTypeValue)
- mrtCdcStopPosition :: Lens' ModifyReplicationTask (Maybe Text)
- mrtCdcStartTime :: Lens' ModifyReplicationTask (Maybe UTCTime)
- mrtReplicationTaskARN :: Lens' ModifyReplicationTask Text
- modifyReplicationTaskResponse :: Int -> ModifyReplicationTaskResponse
- data ModifyReplicationTaskResponse
- mrtrsReplicationTask :: Lens' ModifyReplicationTaskResponse (Maybe ReplicationTask)
- mrtrsResponseStatus :: Lens' ModifyReplicationTaskResponse Int
Creating a Request
modifyReplicationTask Source #
Creates a value of ModifyReplicationTask
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mrtReplicationTaskSettings
- JSON file that contains settings for the task, such as target metadata settings.mrtReplicationTaskIdentifier
- 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.mrtCdcStartPosition
- 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”mrtTableMappings
- 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.jsonmrtMigrationType
- The migration type. Valid values: full-load | cdc | full-load-and-cdcmrtCdcStopPosition
- 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 “mrtCdcStartTime
- 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.mrtReplicationTaskARN
- The Amazon Resource Name (ARN) of the replication task.
data ModifyReplicationTask Source #
See: modifyReplicationTask
smart constructor.
Instances
Request Lenses
mrtReplicationTaskSettings :: Lens' ModifyReplicationTask (Maybe Text) Source #
JSON file that contains settings for the task, such as target metadata settings.
mrtReplicationTaskIdentifier :: Lens' ModifyReplicationTask (Maybe 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.
mrtCdcStartPosition :: Lens' ModifyReplicationTask (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”
mrtTableMappings :: Lens' ModifyReplicationTask (Maybe 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
mrtMigrationType :: Lens' ModifyReplicationTask (Maybe MigrationTypeValue) Source #
The migration type. Valid values: full-load | cdc | full-load-and-cdc
mrtCdcStopPosition :: Lens' ModifyReplicationTask (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 “
mrtCdcStartTime :: Lens' ModifyReplicationTask (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.
mrtReplicationTaskARN :: Lens' ModifyReplicationTask Text Source #
The Amazon Resource Name (ARN) of the replication task.
Destructuring the Response
modifyReplicationTaskResponse Source #
Creates a value of ModifyReplicationTaskResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mrtrsReplicationTask
- The replication task that was modified.mrtrsResponseStatus
- -- | The response status code.
data ModifyReplicationTaskResponse Source #
See: modifyReplicationTaskResponse
smart constructor.
Instances
Response Lenses
mrtrsReplicationTask :: Lens' ModifyReplicationTaskResponse (Maybe ReplicationTask) Source #
The replication task that was modified.
mrtrsResponseStatus :: Lens' ModifyReplicationTaskResponse Int Source #
- - | The response status code.