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.

DeleteClusterInput

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

type DeleteClusterInput struct { ClusterIdentifier *string `type:"string" required:"true"` FinalClusterSnapshotIdentifier *string `type:"string"` FinalClusterSnapshotRetentionPeriod *int64 `type:"integer"` SkipFinalClusterSnapshot *bool `type:"boolean"` }

ClusterIdentifier

Type: *string

The identifier of the cluster to be deleted.

Constraints:

  • Must contain lowercase characters.

  • Must contain from 1 to 63 alphanumeric characters or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

ClusterIdentifier is a required field

FinalClusterSnapshotIdentifier

Type: *string

The identifier of the final snapshot that is to be created immediately before deleting the cluster. If this parameter is provided, SkipFinalClusterSnapshot must be false.

Constraints:

  • Must be 1 to 255 alphanumeric characters.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

FinalClusterSnapshotRetentionPeriod

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.

SkipFinalClusterSnapshot

Type: *bool

Determines whether a final snapshot of the cluster is created before Amazon Redshift deletes the cluster. If true, a final cluster snapshot is not created. If false, a final cluster snapshot is created before the cluster is deleted.

The FinalClusterSnapshotIdentifier parameter must be specified if SkipFinalClusterSnapshot is false.

Default: false

Method

GoString

func (s DeleteClusterInput) GoString() string

GoString returns the string representation

SetClusterIdentifier

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

SetClusterIdentifier sets the ClusterIdentifier field's value.

SetFinalClusterSnapshotIdentifier

func (s *DeleteClusterInput) SetFinalClusterSnapshotIdentifier(v string) *DeleteClusterInput

SetFinalClusterSnapshotIdentifier sets the FinalClusterSnapshotIdentifier field's value.

SetFinalClusterSnapshotRetentionPeriod

func (s *DeleteClusterInput) SetFinalClusterSnapshotRetentionPeriod(v int64) *DeleteClusterInput

SetFinalClusterSnapshotRetentionPeriod sets the FinalClusterSnapshotRetentionPeriod field's value.

SetSkipFinalClusterSnapshot

func (s *DeleteClusterInput) SetSkipFinalClusterSnapshot(v bool) *DeleteClusterInput

SetSkipFinalClusterSnapshot sets the SkipFinalClusterSnapshot field's value.

String

func (s DeleteClusterInput) String() string

String returns the string representation

Validate

func (s *DeleteClusterInput) Validate() error

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

On this page: