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.

ListDeviceEventsInput

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

type ListDeviceEventsInput struct { DeviceArn *string `type:"string" required:"true"` EventType *string `type:"string" enum:"DeviceEventType"` MaxResults *int64 `min:"1" type:"integer"` NextToken *string `min:"1" type:"string"` }

DeviceArn

Type: *string

The ARN of a device.

DeviceArn is a required field

EventType

Type: *string

The event type to filter device events. If EventType isn't specified, this returns a list of all device events in reverse chronological order. If EventType is specified, this returns a list of device events for that EventType in reverse chronological order.

MaxResults

Type: *int64

The maximum number of results to include in the response. The default value is 50. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

NextToken

Type: *string

An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response only includes results beyond the token, up to the value specified by MaxResults. When the end of results is reached, the response has a value of null.

Method

GoString

func (s ListDeviceEventsInput) GoString() string

GoString returns the string representation

SetDeviceArn

func (s *ListDeviceEventsInput) SetDeviceArn(v string) *ListDeviceEventsInput

SetDeviceArn sets the DeviceArn field's value.

SetEventType

func (s *ListDeviceEventsInput) SetEventType(v string) *ListDeviceEventsInput

SetEventType sets the EventType field's value.

SetMaxResults

func (s *ListDeviceEventsInput) SetMaxResults(v int64) *ListDeviceEventsInput

SetMaxResults sets the MaxResults field's value.

SetNextToken

func (s *ListDeviceEventsInput) SetNextToken(v string) *ListDeviceEventsInput

SetNextToken sets the NextToken field's value.

String

func (s ListDeviceEventsInput) String() string

String returns the string representation

Validate

func (s *ListDeviceEventsInput) Validate() error

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

On this page: