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/redshift"

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

Enabled

Type: *bool

A Boolean value indicating if the subscription is enabled. true indicates the subscription is enabled

EventCategories

Type: []*string

Specifies the Amazon Redshift event categories to be published by the event notification subscription.

Values: configuration, management, monitoring, security

Severity

Type: *string

Specifies the Amazon Redshift event severity to be published by the event notification subscription.

Values: ERROR, INFO

SnsTopicArn

Type: *string

The Amazon Resource Name (ARN) of the SNS topic to be used by the event notification subscription.

SourceIds

Type: []*string

A list of one or more identifiers of Amazon Redshift source objects. All of the objects must be of the same type as was specified in the source type parameter. The event subscription will return only events generated by the specified objects. If not specified, then events are returned for all objects within the source type specified.

Example: my-cluster-1, my-cluster-2

Example: my-snapshot-20131010

SourceType

Type: *string

The type of source that will be generating the events. For example, if you want to be notified of events generated by a cluster, you would set this parameter to cluster. If this value is not specified, events are returned for all Amazon Redshift objects in your AWS account. You must specify a source type in order to specify source IDs.

Valid values: cluster, cluster-parameter-group, cluster-security-group, and cluster-snapshot.

SubscriptionName

Type: *string

The name of the modified Amazon Redshift 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.

SetSeverity

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

SetSeverity sets the Severity field's value.

SetSnsTopicArn

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

SetSnsTopicArn sets the SnsTopicArn field's value.

SetSourceIds

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

SetSourceIds sets the SourceIds 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: