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.

CopyClusterSnapshotInput

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

type CopyClusterSnapshotInput struct { ManualSnapshotRetentionPeriod *int64 `type:"integer"` SourceSnapshotClusterIdentifier *string `type:"string"` SourceSnapshotIdentifier *string `type:"string" required:"true"` TargetSnapshotIdentifier *string `type:"string" required:"true"` }

ManualSnapshotRetentionPeriod

Type: *int64

The number of days that a manual snapshot is retained. 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.

The default value is -1.

SourceSnapshotClusterIdentifier

Type: *string

The identifier of the cluster the source snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.

Constraints:

  • Must be the identifier for a valid cluster.

SourceSnapshotIdentifier

Type: *string

The identifier for the source snapshot.

Constraints:

  • Must be the identifier for a valid automated snapshot whose state is available.

SourceSnapshotIdentifier is a required field

TargetSnapshotIdentifier

Type: *string

The identifier given to the new manual snapshot.

Constraints:

  • Cannot be null, empty, or blank.

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

  • Must be unique for the AWS account that is making the request.

TargetSnapshotIdentifier is a required field

Method

GoString

func (s CopyClusterSnapshotInput) GoString() string

GoString returns the string representation

SetManualSnapshotRetentionPeriod

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

SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.

SetSourceSnapshotClusterIdentifier

func (s *CopyClusterSnapshotInput) SetSourceSnapshotClusterIdentifier(v string) *CopyClusterSnapshotInput

SetSourceSnapshotClusterIdentifier sets the SourceSnapshotClusterIdentifier field's value.

SetSourceSnapshotIdentifier

func (s *CopyClusterSnapshotInput) SetSourceSnapshotIdentifier(v string) *CopyClusterSnapshotInput

SetSourceSnapshotIdentifier sets the SourceSnapshotIdentifier field's value.

SetTargetSnapshotIdentifier

func (s *CopyClusterSnapshotInput) SetTargetSnapshotIdentifier(v string) *CopyClusterSnapshotInput

SetTargetSnapshotIdentifier sets the TargetSnapshotIdentifier field's value.

String

func (s CopyClusterSnapshotInput) String() string

String returns the string representation

Validate

func (s *CopyClusterSnapshotInput) Validate() error

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

On this page: