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.

CreateClusterSnapshotInput

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

type CreateClusterSnapshotInput struct { ClusterIdentifier *string `type:"string" required:"true"` ManualSnapshotRetentionPeriod *int64 `type:"integer"` SnapshotIdentifier *string `type:"string" required:"true"` Tags []*Tag `locationNameList:"Tag" type:"list"` }

ClusterIdentifier

Type: *string

The cluster identifier for which you want a snapshot.

ClusterIdentifier is a required field

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.

SnapshotIdentifier

Type: *string

A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the AWS account.

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

Example: my-snapshot-id

SnapshotIdentifier is a required field

Tags

A tag consisting of a name/value pair for a resource.

Method

GoString

func (s CreateClusterSnapshotInput) GoString() string

GoString returns the string representation

SetClusterIdentifier

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

SetClusterIdentifier sets the ClusterIdentifier field's value.

SetManualSnapshotRetentionPeriod

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

SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.

SetSnapshotIdentifier

func (s *CreateClusterSnapshotInput) SetSnapshotIdentifier(v string) *CreateClusterSnapshotInput

SetSnapshotIdentifier sets the SnapshotIdentifier field's value.

SetTags

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

SetTags sets the Tags field's value.

String

func (s CreateClusterSnapshotInput) String() string

String returns the string representation

Validate

func (s *CreateClusterSnapshotInput) Validate() error

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

On this page: