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.

LoggingOptions

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

type LoggingOptions struct { Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` Level *string `locationName:"level" type:"string" required:"true" enum:"LoggingLevel"` RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"` }

Information about logging options.

Enabled

Type: *bool

If true, logging is enabled for AWS IoT Analytics.

Enabled is a required field

Level

Type: *string

The logging level. Currently, only "ERROR" is supported.

Level is a required field

RoleArn

Type: *string

The ARN of the role that grants permission to AWS IoT Analytics to perform logging.

RoleArn is a required field

Method

GoString

func (s LoggingOptions) GoString() string

GoString returns the string representation

SetEnabled

func (s *LoggingOptions) SetEnabled(v bool) *LoggingOptions

SetEnabled sets the Enabled field's value.

SetLevel

func (s *LoggingOptions) SetLevel(v string) *LoggingOptions

SetLevel sets the Level field's value.

SetRoleArn

func (s *LoggingOptions) SetRoleArn(v string) *LoggingOptions

SetRoleArn sets the RoleArn field's value.

String

func (s LoggingOptions) String() string

String returns the string representation

Validate

func (s *LoggingOptions) Validate() error

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

On this page: