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.

RetentionPeriod

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

type RetentionPeriod struct { NumberOfDays *int64 `locationName:"numberOfDays" min:"1" type:"integer"` Unlimited *bool `locationName:"unlimited" type:"boolean"` }

How long, in days, message data is kept.

NumberOfDays

Type: *int64

The number of days that message data is kept. The "unlimited" parameter must be false.

Unlimited

Type: *bool

If true, message data is kept indefinitely.

Method

GoString

func (s RetentionPeriod) GoString() string

GoString returns the string representation

SetNumberOfDays

func (s *RetentionPeriod) SetNumberOfDays(v int64) *RetentionPeriod

SetNumberOfDays sets the NumberOfDays field's value.

SetUnlimited

func (s *RetentionPeriod) SetUnlimited(v bool) *RetentionPeriod

SetUnlimited sets the Unlimited field's value.

String

func (s RetentionPeriod) String() string

String returns the string representation

Validate

func (s *RetentionPeriod) Validate() error

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

On this page: