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.

CreateInstanceSnapshotInput

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

type CreateInstanceSnapshotInput struct { InstanceName *string `locationName:"instanceName" type:"string" required:"true"` InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` Tags []*Tag `locationName:"tags" type:"list"` }

InstanceName

Type: *string

The Lightsail instance on which to base your snapshot.

InstanceName is a required field

InstanceSnapshotName

Type: *string

The name for your new snapshot.

InstanceSnapshotName is a required field

Tags

Describes a tag key and optional value assigned to an Amazon Lightsail resource.

For more information about tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags).

Method

GoString

func (s CreateInstanceSnapshotInput) GoString() string

GoString returns the string representation

SetInstanceName

func (s *CreateInstanceSnapshotInput) SetInstanceName(v string) *CreateInstanceSnapshotInput

SetInstanceName sets the InstanceName field's value.

SetInstanceSnapshotName

func (s *CreateInstanceSnapshotInput) SetInstanceSnapshotName(v string) *CreateInstanceSnapshotInput

SetInstanceSnapshotName sets the InstanceSnapshotName field's value.

SetTags

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

SetTags sets the Tags field's value.

String

func (s CreateInstanceSnapshotInput) String() string

String returns the string representation

Validate

func (s *CreateInstanceSnapshotInput) Validate() error

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

On this page: