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.

CopySnapshotInput

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

type CopySnapshotInput struct { SourceSnapshotName *string `type:"string" required:"true"` TargetBucket *string `type:"string"` TargetSnapshotName *string `type:"string" required:"true"` }

Represents the input of a CopySnapshotMessage operation.

SourceSnapshotName

Type: *string

The name of an existing snapshot from which to make a copy.

SourceSnapshotName is a required field

TargetBucket

Type: *string

The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access.

When using this parameter to export a snapshot, be sure Amazon ElastiCache has the needed permissions to this S3 bucket. For more information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) in the Amazon ElastiCache User Guide.

For more information, see Exporting a Snapshot (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Snapshots.Exporting.html) in the Amazon ElastiCache User Guide.

TargetSnapshotName

Type: *string

A name for the snapshot copy. ElastiCache does not permit overwriting a snapshot, therefore this name must be unique within its context - ElastiCache or an Amazon S3 bucket if exporting.

TargetSnapshotName is a required field

Method

GoString

func (s CopySnapshotInput) GoString() string

GoString returns the string representation

SetSourceSnapshotName

func (s *CopySnapshotInput) SetSourceSnapshotName(v string) *CopySnapshotInput

SetSourceSnapshotName sets the SourceSnapshotName field's value.

SetTargetBucket

func (s *CopySnapshotInput) SetTargetBucket(v string) *CopySnapshotInput

SetTargetBucket sets the TargetBucket field's value.

SetTargetSnapshotName

func (s *CopySnapshotInput) SetTargetSnapshotName(v string) *CopySnapshotInput

SetTargetSnapshotName sets the TargetSnapshotName field's value.

String

func (s CopySnapshotInput) String() string

String returns the string representation

Validate

func (s *CopySnapshotInput) Validate() error

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

On this page: