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.

EnableSnapshotCopyInput

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

type EnableSnapshotCopyInput struct { ClusterIdentifier *string `type:"string" required:"true"` DestinationRegion *string `type:"string" required:"true"` ManualSnapshotRetentionPeriod *int64 `type:"integer"` RetentionPeriod *int64 `type:"integer"` SnapshotCopyGrantName *string `type:"string"` }

ClusterIdentifier

Type: *string

The unique identifier of the source cluster to copy snapshots from.

Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.

ClusterIdentifier is a required field

DestinationRegion

Type: *string

The destination AWS Region that you want to copy snapshots to.

Constraints: Must be the name of a valid AWS Region. For more information, see Regions and Endpoints (https://docs.aws.amazon.com/general/latest/gr/rande.html#redshift_region) in the Amazon Web Services General Reference.

DestinationRegion is a required field

ManualSnapshotRetentionPeriod

Type: *int64

The number of days to retain newly copied snapshots in the destination AWS Region after they are copied from the source AWS Region. If the value is -1, the manual snapshot is retained indefinitely.

The value must be either -1 or an integer between 1 and 3,653.

RetentionPeriod

Type: *int64

The number of days to retain automated snapshots in the destination region after they are copied from the source region.

Default: 7.

Constraints: Must be at least 1 and no more than 35.

SnapshotCopyGrantName

Type: *string

The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.

Method

GoString

func (s EnableSnapshotCopyInput) GoString() string

GoString returns the string representation

SetClusterIdentifier

func (s *EnableSnapshotCopyInput) SetClusterIdentifier(v string) *EnableSnapshotCopyInput

SetClusterIdentifier sets the ClusterIdentifier field's value.

SetDestinationRegion

func (s *EnableSnapshotCopyInput) SetDestinationRegion(v string) *EnableSnapshotCopyInput

SetDestinationRegion sets the DestinationRegion field's value.

SetManualSnapshotRetentionPeriod

func (s *EnableSnapshotCopyInput) SetManualSnapshotRetentionPeriod(v int64) *EnableSnapshotCopyInput

SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.

SetRetentionPeriod

func (s *EnableSnapshotCopyInput) SetRetentionPeriod(v int64) *EnableSnapshotCopyInput

SetRetentionPeriod sets the RetentionPeriod field's value.

SetSnapshotCopyGrantName

func (s *EnableSnapshotCopyInput) SetSnapshotCopyGrantName(v string) *EnableSnapshotCopyInput

SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value.

String

func (s EnableSnapshotCopyInput) String() string

String returns the string representation

Validate

func (s *EnableSnapshotCopyInput) Validate() error

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

On this page: