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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.DMS.CreateReplicationTask

Contents

Description

Creates a replication task using the specified parameters.

Synopsis

Creating a Request

createReplicationTask Source #

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
Eq CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Data CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateReplicationTask -> c CreateReplicationTask #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateReplicationTask #

toConstr :: CreateReplicationTask -> Constr #

dataTypeOf :: CreateReplicationTask -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateReplicationTask) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateReplicationTask) #

gmapT :: (forall b. Data b => b -> b) -> CreateReplicationTask -> CreateReplicationTask #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateReplicationTask -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateReplicationTask -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateReplicationTask -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateReplicationTask -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateReplicationTask -> m CreateReplicationTask #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateReplicationTask -> m CreateReplicationTask #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateReplicationTask -> m CreateReplicationTask #

Read CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Show CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Generic CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Associated Types

type Rep CreateReplicationTask :: Type -> Type #

Hashable CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

ToJSON CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

AWSRequest CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Associated Types

type Rs CreateReplicationTask :: Type #

ToHeaders CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

ToPath CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

ToQuery CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

NFData CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Methods

rnf :: CreateReplicationTask -> () #

type Rep CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

type Rep CreateReplicationTask = D1 (MetaData "CreateReplicationTask" "Network.AWS.DMS.CreateReplicationTask" "amazonka-dms-1.6.1-14neO3bVY9yK6uL0mC7eXy" False) (C1 (MetaCons "CreateReplicationTask'" PrefixI True) (((S1 (MetaSel (Just "_crtReplicationTaskSettings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_crtCdcStartPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_crtCdcStopPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_crtTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 (MetaSel (Just "_crtCdcStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 (MetaSel (Just "_crtReplicationTaskIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_crtSourceEndpointARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_crtTargetEndpointARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "_crtReplicationInstanceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_crtMigrationType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 MigrationTypeValue) :*: S1 (MetaSel (Just "_crtTableMappings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateReplicationTask Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

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 “

crtTags :: Lens' CreateReplicationTask [Tag] Source #

Tags to be added to the replication instance.

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.

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:

data CreateReplicationTaskResponse Source #

See: createReplicationTaskResponse smart constructor.

Instances
Eq CreateReplicationTaskResponse Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Data CreateReplicationTaskResponse Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateReplicationTaskResponse -> c CreateReplicationTaskResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateReplicationTaskResponse #

toConstr :: CreateReplicationTaskResponse -> Constr #

dataTypeOf :: CreateReplicationTaskResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateReplicationTaskResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateReplicationTaskResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateReplicationTaskResponse -> CreateReplicationTaskResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateReplicationTaskResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateReplicationTaskResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateReplicationTaskResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateReplicationTaskResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateReplicationTaskResponse -> m CreateReplicationTaskResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateReplicationTaskResponse -> m CreateReplicationTaskResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateReplicationTaskResponse -> m CreateReplicationTaskResponse #

Read CreateReplicationTaskResponse Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Show CreateReplicationTaskResponse Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Generic CreateReplicationTaskResponse Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

Associated Types

type Rep CreateReplicationTaskResponse :: Type -> Type #

NFData CreateReplicationTaskResponse Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

type Rep CreateReplicationTaskResponse Source # 
Instance details

Defined in Network.AWS.DMS.CreateReplicationTask

type Rep CreateReplicationTaskResponse = D1 (MetaData "CreateReplicationTaskResponse" "Network.AWS.DMS.CreateReplicationTask" "amazonka-dms-1.6.1-14neO3bVY9yK6uL0mC7eXy" False) (C1 (MetaCons "CreateReplicationTaskResponse'" PrefixI True) (S1 (MetaSel (Just "_crtrsReplicationTask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ReplicationTask)) :*: S1 (MetaSel (Just "_crtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses