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.

CreateEventSubscriptionInput

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

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

Enabled

Type: *bool

A boolean value; set to true to activate the subscription, and set to false to create the subscription but not activate it.

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 Amazon SNS topic used to transmit the event notifications. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

SnsTopicArn is a required field

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 event subscription to be created.

Constraints:

  • Cannot be null, empty, or blank.

  • Must contain from 1 to 255 alphanumeric characters or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

SubscriptionName is a required field

Tags

A tag consisting of a name/value pair for a resource.

Method

GoString

func (s CreateEventSubscriptionInput) GoString() string

GoString returns the string representation

SetEnabled

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

SetEnabled sets the Enabled field's value.

SetEventCategories

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

SetEventCategories sets the EventCategories field's value.

SetSeverity

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

SetSeverity sets the Severity field's value.

SetSnsTopicArn

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

SetSnsTopicArn sets the SnsTopicArn field's value.

SetSourceIds

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

SetSourceIds sets the SourceIds field's value.

SetSourceType

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

SetSourceType sets the SourceType field's value.

SetSubscriptionName

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

SetSubscriptionName sets the SubscriptionName field's value.

SetTags

func (s *CreateEventSubscriptionInput) SetTags(v []*Tag) *CreateEventSubscriptionInput

SetTags sets the Tags field's value.

String

func (s CreateEventSubscriptionInput) String() string

String returns the string representation

Validate

func (s *CreateEventSubscriptionInput) Validate() error

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

On this page: