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.

ModifyReplicationTaskInput

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

type ModifyReplicationTaskInput struct { CdcStartPosition *string `type:"string"` CdcStartTime *time.Time `type:"timestamp"` CdcStopPosition *string `type:"string"` MigrationType *string `type:"string" enum:"MigrationTypeValue"` ReplicationTaskArn *string `type:"string" required:"true"` ReplicationTaskIdentifier *string `type:"string"` ReplicationTaskSettings *string `type:"string"` TableMappings *string `type:"string"` }

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.

Valid values: full-load | cdc | full-load-and-cdc

ReplicationTaskArn

Type: *string

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

ReplicationTaskArn 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.

ReplicationTaskSettings

Type: *string

JSON file that contains settings for the task, such as target metadata settings.

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

Method

GoString

func (s ModifyReplicationTaskInput) GoString() string

GoString returns the string representation

SetCdcStartPosition

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

SetCdcStartPosition sets the CdcStartPosition field's value.

SetCdcStartTime

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

SetCdcStartTime sets the CdcStartTime field's value.

SetCdcStopPosition

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

SetCdcStopPosition sets the CdcStopPosition field's value.

SetMigrationType

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

SetMigrationType sets the MigrationType field's value.

SetReplicationTaskArn

func (s *ModifyReplicationTaskInput) SetReplicationTaskArn(v string) *ModifyReplicationTaskInput

SetReplicationTaskArn sets the ReplicationTaskArn field's value.

SetReplicationTaskIdentifier

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

SetReplicationTaskIdentifier sets the ReplicationTaskIdentifier field's value.

SetReplicationTaskSettings

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

SetReplicationTaskSettings sets the ReplicationTaskSettings field's value.

SetTableMappings

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

SetTableMappings sets the TableMappings field's value.

String

func (s ModifyReplicationTaskInput) String() string

String returns the string representation

Validate

func (s *ModifyReplicationTaskInput) Validate() error

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

On this page: