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.

ModifyEventSubscriptionInput

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

type ModifyEventSubscriptionInput struct { Enabled *bool `type:"boolean"` EventCategories []*string `locationNameList:"EventCategory" type:"list"` SnsTopicArn *string `type:"string"` SourceType *string `type:"string"` SubscriptionName *string `type:"string" required:"true"` }

Enabled

Type: *bool

A Boolean value; set to true to activate the subscription.

EventCategories

Type: []*string

A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html) topic in the Amazon RDS User Guide or by using the DescribeEventCategories action.

SnsTopicArn

Type: *string

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

SourceType

Type: *string

The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

SubscriptionName

Type: *string

The name of the RDS event notification subscription.

SubscriptionName is a required field

Method

GoString

func (s ModifyEventSubscriptionInput) GoString() string

GoString returns the string representation

SetEnabled

func (s *ModifyEventSubscriptionInput) SetEnabled(v bool) *ModifyEventSubscriptionInput

SetEnabled sets the Enabled field's value.

SetEventCategories

func (s *ModifyEventSubscriptionInput) SetEventCategories(v []*string) *ModifyEventSubscriptionInput

SetEventCategories sets the EventCategories field's value.

SetSnsTopicArn

func (s *ModifyEventSubscriptionInput) SetSnsTopicArn(v string) *ModifyEventSubscriptionInput

SetSnsTopicArn sets the SnsTopicArn field's value.

SetSourceType

func (s *ModifyEventSubscriptionInput) SetSourceType(v string) *ModifyEventSubscriptionInput

SetSourceType sets the SourceType field's value.

SetSubscriptionName

func (s *ModifyEventSubscriptionInput) SetSubscriptionName(v string) *ModifyEventSubscriptionInput

SetSubscriptionName sets the SubscriptionName field's value.

String

func (s ModifyEventSubscriptionInput) String() string

String returns the string representation

Validate

func (s *ModifyEventSubscriptionInput) Validate() error

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

On this page: