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.

DataRetrievalRule

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

type DataRetrievalRule struct { BytesPerHour *int64 `type:"long"` Strategy *string `type:"string"` }

Data retrieval policy rule.

BytesPerHour

Type: *int64

The maximum number of bytes that can be retrieved in an hour.

This field is required only if the value of the Strategy field is BytesPerHour. Your PUT operation will be rejected if the Strategy field is not set to BytesPerHour and you set this field.

Strategy

Type: *string

The type of data retrieval policy to set.

Valid values: BytesPerHour|FreeTier|None

Method

GoString

func (s DataRetrievalRule) GoString() string

GoString returns the string representation

SetBytesPerHour

func (s *DataRetrievalRule) SetBytesPerHour(v int64) *DataRetrievalRule

SetBytesPerHour sets the BytesPerHour field's value.

SetStrategy

func (s *DataRetrievalRule) SetStrategy(v string) *DataRetrievalRule

SetStrategy sets the Strategy field's value.

String

func (s DataRetrievalRule) String() string

String returns the string representation

On this page: