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.

AlertTarget

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

type AlertTarget struct { AlertTargetArn *string `locationName:"alertTargetArn" type:"string" required:"true"` RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"` }

A structure containing the alert target ARN and the role ARN.

AlertTargetArn

Type: *string

The ARN of the notification target to which alerts are sent.

AlertTargetArn is a required field

RoleArn

Type: *string

The ARN of the role that grants permission to send alerts to the notification target.

RoleArn is a required field

Method

GoString

func (s AlertTarget) GoString() string

GoString returns the string representation

SetAlertTargetArn

func (s *AlertTarget) SetAlertTargetArn(v string) *AlertTarget

SetAlertTargetArn sets the AlertTargetArn field's value.

SetRoleArn

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

SetRoleArn sets the RoleArn field's value.

String

func (s AlertTarget) String() string

String returns the string representation

Validate

func (s *AlertTarget) Validate() error

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

On this page: