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.

CreateRule

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

type CreateRule struct { Interval *int64 `min:"1" type:"integer" required:"true"` IntervalUnit *string `type:"string" required:"true" enum:"IntervalUnitValues"` Times []*string `type:"list"` }

Specifies when to create snapshots of EBS volumes.

Interval

Type: *int64

The interval. The supported values are 12 and 24.

Interval is a required field

IntervalUnit

Type: *string

The interval unit.

IntervalUnit is a required field

Times

Type: []*string

The time, in UTC, to start the operation.

The operation occurs within a one-hour window following the specified time.

Method

GoString

func (s CreateRule) GoString() string

GoString returns the string representation

SetInterval

func (s *CreateRule) SetInterval(v int64) *CreateRule

SetInterval sets the Interval field's value.

SetIntervalUnit

func (s *CreateRule) SetIntervalUnit(v string) *CreateRule

SetIntervalUnit sets the IntervalUnit field's value.

SetTimes

func (s *CreateRule) SetTimes(v []*string) *CreateRule

SetTimes sets the Times field's value.

String

func (s CreateRule) String() string

String returns the string representation

Validate

func (s *CreateRule) Validate() error

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

On this page: