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.

IotEventsAction

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

type IotEventsAction struct { InputName *string `locationName:"inputName" min:"1" type:"string" required:"true"` MessageId *string `locationName:"messageId" type:"string"` RoleArn *string `locationName:"roleArn" type:"string" required:"true"` }

Sends an input to an AWS IoT Events detector.

InputName

Type: *string

The name of the AWS IoT Events input.

InputName is a required field

MessageId

Type: *string

[Optional] Use this to ensure that only one input (message) with a given messageId will be processed by an AWS IoT Events detector.

RoleArn

Type: *string

The ARN of the role that grants AWS IoT permission to send an input to an AWS IoT Events detector. ("Action":"iotevents:BatchPutMessage").

RoleArn is a required field

Method

GoString

func (s IotEventsAction) GoString() string

GoString returns the string representation

SetInputName

func (s *IotEventsAction) SetInputName(v string) *IotEventsAction

SetInputName sets the InputName field's value.

SetMessageId

func (s *IotEventsAction) SetMessageId(v string) *IotEventsAction

SetMessageId sets the MessageId field's value.

SetRoleArn

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

SetRoleArn sets the RoleArn field's value.

String

func (s IotEventsAction) String() string

String returns the string representation

Validate

func (s *IotEventsAction) Validate() error

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

On this page: