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/lightsail"

type CopySnapshotInput struct { SourceRegion *string `locationName:"sourceRegion" type:"string" required:"true" enum:"RegionName"` SourceSnapshotName *string `locationName:"sourceSnapshotName" type:"string" required:"true"` TargetSnapshotName *string `locationName:"targetSnapshotName" type:"string" required:"true"` }

SourceRegion

Type: *string

The AWS Region where the source snapshot is located.

SourceRegion is a required field

SourceSnapshotName

Type: *string

The name of the source instance or disk snapshot to be copied.

SourceSnapshotName is a required field

TargetSnapshotName

Type: *string

The name of the new instance or disk snapshot to be created as a copy.

TargetSnapshotName is a required field

Method

GoString

func (s CopySnapshotInput) GoString() string

GoString returns the string representation

SetSourceRegion

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

SetSourceRegion sets the SourceRegion field's value.

SetSourceSnapshotName

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

SetSourceSnapshotName sets the SourceSnapshotName 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: