Copyright | (c) 2013-2017 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 |
Creates a replication task using the specified parameters.
- createReplicationTask :: Text -> Text -> Text -> Text -> MigrationTypeValue -> Text -> CreateReplicationTask
- data CreateReplicationTask
- crtReplicationTaskSettings :: 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 #
:: 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 .crtTags
- Tags to be added to the replication instance.crtCdcStartTime
- The start time for the Change Data Capture (CDC) operation.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.
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 .
crtCdcStartTime :: Lens' CreateReplicationTask (Maybe UTCTime) Source #
The start time for the Change Data Capture (CDC) operation.
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 #
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.
Response Lenses
crtrsReplicationTask :: Lens' CreateReplicationTaskResponse (Maybe ReplicationTask) Source #
The replication task that was created.
crtrsResponseStatus :: Lens' CreateReplicationTaskResponse Int Source #
- - | The response status code.