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.

Schedule

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

type Schedule struct { CopyTags *bool `type:"boolean"` CreateRule *CreateRule `type:"structure"` Name *string `type:"string"` RetainRule *RetainRule `type:"structure"` TagsToAdd []*Tag `type:"list"` }

Specifies a schedule.

CopyTags

Type: *bool

CreateRule

Specifies when to create snapshots of EBS volumes.

Name

Type: *string

The name of the schedule.

RetainRule

Specifies the number of snapshots to keep for each EBS volume.

TagsToAdd

Specifies a tag for a resource.

Method

GoString

func (s Schedule) GoString() string

GoString returns the string representation

SetCopyTags

func (s *Schedule) SetCopyTags(v bool) *Schedule

SetCopyTags sets the CopyTags field's value.

SetCreateRule

func (s *Schedule) SetCreateRule(v *CreateRule) *Schedule

SetCreateRule sets the CreateRule field's value.

SetName

func (s *Schedule) SetName(v string) *Schedule

SetName sets the Name field's value.

SetRetainRule

func (s *Schedule) SetRetainRule(v *RetainRule) *Schedule

SetRetainRule sets the RetainRule field's value.

SetTagsToAdd

func (s *Schedule) SetTagsToAdd(v []*Tag) *Schedule

SetTagsToAdd sets the TagsToAdd field's value.

String

func (s Schedule) String() string

String returns the string representation

Validate

func (s *Schedule) Validate() error

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

On this page: