AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateReplicationTaskInput

import "github.com/aws/aws-sdk-go/service/databasemigrationservice"

type CreateReplicationTaskInput struct { CdcStartPosition *string `type:"string"` CdcStartTime *time.Time `type:"timestamp"` CdcStopPosition *string `type:"string"` MigrationType *string `type:"string" required:"true" enum:"MigrationTypeValue"` ReplicationInstanceArn *string `type:"string" required:"true"` ReplicationTaskIdentifier *string `type:"string" required:"true"` ReplicationTaskSettings *string `type:"string"` SourceEndpointArn *string `type:"string" required:"true"` TableMappings *string `type:"string" required:"true"` Tags []*Tag `type:"list"` TargetEndpointArn *string `type:"string" required:"true"` }

CdcStartPosition

Type: *string

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:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"

LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

CdcStartTime

Type: *time.Time

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.

Timestamp Example: --cdc-start-time “2018-03-08T12:12:12”

CdcStopPosition

Type: *string

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 “

MigrationType

Type: *string

The migration type.

MigrationType is a required field

ReplicationInstanceArn

Type: *string

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

ReplicationInstanceArn is a required field

ReplicationTaskIdentifier

Type: *string

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.

ReplicationTaskIdentifier is a required field

ReplicationTaskSettings

Type: *string

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 (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html) in the AWS Database Migration User Guide.

SourceEndpointArn

Type: *string

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

SourceEndpointArn is a required field

TableMappings

Type: *string

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

TableMappings is a required field

Tags
TargetEndpointArn

Type: *string

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

TargetEndpointArn is a required field

Method

GoString

func (s CreateReplicationTaskInput) GoString() string

GoString returns the string representation

SetCdcStartPosition

func (s *CreateReplicationTaskInput) SetCdcStartPosition(v string) *CreateReplicationTaskInput

SetCdcStartPosition sets the CdcStartPosition field's value.

SetCdcStartTime

func (s *CreateReplicationTaskInput) SetCdcStartTime(v time.Time) *CreateReplicationTaskInput

SetCdcStartTime sets the CdcStartTime field's value.

SetCdcStopPosition

func (s *CreateReplicationTaskInput) SetCdcStopPosition(v string) *CreateReplicationTaskInput

SetCdcStopPosition sets the CdcStopPosition field's value.

SetMigrationType

func (s *CreateReplicationTaskInput) SetMigrationType(v string) *CreateReplicationTaskInput

SetMigrationType sets the MigrationType field's value.

SetReplicationInstanceArn

func (s *CreateReplicationTaskInput) SetReplicationInstanceArn(v string) *CreateReplicationTaskInput

SetReplicationInstanceArn sets the ReplicationInstanceArn field's value.

SetReplicationTaskIdentifier

func (s *CreateReplicationTaskInput) SetReplicationTaskIdentifier(v string) *CreateReplicationTaskInput

SetReplicationTaskIdentifier sets the ReplicationTaskIdentifier field's value.

SetReplicationTaskSettings

func (s *CreateReplicationTaskInput) SetReplicationTaskSettings(v string) *CreateReplicationTaskInput

SetReplicationTaskSettings sets the ReplicationTaskSettings field's value.

SetSourceEndpointArn

func (s *CreateReplicationTaskInput) SetSourceEndpointArn(v string) *CreateReplicationTaskInput

SetSourceEndpointArn sets the SourceEndpointArn field's value.

SetTableMappings

func (s *CreateReplicationTaskInput) SetTableMappings(v string) *CreateReplicationTaskInput

SetTableMappings sets the TableMappings field's value.

SetTags

func (s *CreateReplicationTaskInput) SetTags(v []*Tag) *CreateReplicationTaskInput

SetTags sets the Tags field's value.

SetTargetEndpointArn

func (s *CreateReplicationTaskInput) SetTargetEndpointArn(v string) *CreateReplicationTaskInput

SetTargetEndpointArn sets the TargetEndpointArn field's value.

String

func (s CreateReplicationTaskInput) String() string

String returns the string representation

Validate

func (s *CreateReplicationTaskInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: