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.

SqsAction

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

type SqsAction struct { QueueUrl *string `locationName:"queueUrl" type:"string" required:"true"` RoleArn *string `locationName:"roleArn" type:"string" required:"true"` UseBase64 *bool `locationName:"useBase64" type:"boolean"` }

Describes an action to publish data to an Amazon SQS queue.

QueueUrl

Type: *string

The URL of the Amazon SQS queue.

QueueUrl is a required field

RoleArn

Type: *string

The ARN of the IAM role that grants access.

RoleArn is a required field

UseBase64

Type: *bool

Specifies whether to use Base64 encoding.

Method

GoString

func (s SqsAction) GoString() string

GoString returns the string representation

SetQueueUrl

func (s *SqsAction) SetQueueUrl(v string) *SqsAction

SetQueueUrl sets the QueueUrl field's value.

SetRoleArn

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

SetRoleArn sets the RoleArn field's value.

SetUseBase64

func (s *SqsAction) SetUseBase64(v bool) *SqsAction

SetUseBase64 sets the UseBase64 field's value.

String

func (s SqsAction) String() string

String returns the string representation

Validate

func (s *SqsAction) Validate() error

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

On this page: