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.

Subscription

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

type Subscription struct { EventSubscriptions []*EventSubscription `locationName:"eventSubscriptions" min:"1" type:"list" required:"true"` ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` TopicArn *string `locationName:"topicArn" min:"1" type:"string" required:"true"` }

This data type is used as a response element in the ListEventSubscriptions action.

EventSubscriptions

This data type is used in the Subscription data type.

ResourceArn

Type: *string

The ARN of the assessment template that is used during the event for which the SNS notification is sent.

ResourceArn is a required field

TopicArn

Type: *string

The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.

TopicArn is a required field

Method

GoString

func (s Subscription) GoString() string

GoString returns the string representation

SetEventSubscriptions

func (s *Subscription) SetEventSubscriptions(v []*EventSubscription) *Subscription

SetEventSubscriptions sets the EventSubscriptions field's value.

SetResourceArn

func (s *Subscription) SetResourceArn(v string) *Subscription

SetResourceArn sets the ResourceArn field's value.

SetTopicArn

func (s *Subscription) SetTopicArn(v string) *Subscription

SetTopicArn sets the TopicArn field's value.

String

func (s Subscription) String() string

String returns the string representation

On this page: