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.

ModifyClusterSnapshotInput

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

type ModifyClusterSnapshotInput struct { Force *bool `type:"boolean"` ManualSnapshotRetentionPeriod *int64 `type:"integer"` SnapshotIdentifier *string `type:"string" required:"true"` }

Force

Type: *bool

A Boolean option to override an exception if the retention period has already passed.

ManualSnapshotRetentionPeriod

Type: *int64

The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.

If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.

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

SnapshotIdentifier

Type: *string

The identifier of the snapshot whose setting you want to modify.

SnapshotIdentifier is a required field

Method

GoString

func (s ModifyClusterSnapshotInput) GoString() string

GoString returns the string representation

SetForce

func (s *ModifyClusterSnapshotInput) SetForce(v bool) *ModifyClusterSnapshotInput

SetForce sets the Force field's value.

SetManualSnapshotRetentionPeriod

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

SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.

SetSnapshotIdentifier

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

SetSnapshotIdentifier sets the SnapshotIdentifier field's value.

String

func (s ModifyClusterSnapshotInput) String() string

String returns the string representation

Validate

func (s *ModifyClusterSnapshotInput) Validate() error

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

On this page: