Menu
Amazon Redshift
API Reference (API Version 2012-12-01)

ModifyEventSubscription

Modifies an existing Amazon Redshift event notification subscription.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

SubscriptionName

The name of the modified Amazon Redshift event notification subscription.

Type: String

Required: Yes

Enabled

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

Type: Boolean

Required: No

EventCategories.EventCategory.N

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

Values: Configuration, Management, Monitoring, Security

Type: Array of strings

Required: No

Severity

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

Values: ERROR, INFO

Type: String

Required: No

SnsTopicArn

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

Type: String

Required: No

SourceIds.SourceId.N

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

Type: Array of strings

Required: No

SourceType

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.

Type: String

Required: No

Response Elements

The following element is returned by the service.

EventSubscription

Describes event subscriptions.

Type: EventSubscription object

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidSubscriptionStateFault

The subscription request is invalid because it is a duplicate request. This subscription request is already in progress.

HTTP Status Code: 400

SNSInvalidTopic

Amazon SNS has responded that there is a problem with the specified Amazon SNS topic.

HTTP Status Code: 400

SNSNoAuthorization

You do not have permission to publish to the specified Amazon SNS topic.

HTTP Status Code: 400

SNSTopicArnNotFound

An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not exist.

HTTP Status Code: 404

SourceNotFound

The specified Amazon Redshift event source could not be found.

HTTP Status Code: 404

SubscriptionCategoryNotFound

The value specified for the event category was not one of the allowed values, or it specified a category that does not apply to the specified source type. The allowed values are Configuration, Management, Monitoring, and Security.

HTTP Status Code: 404

SubscriptionEventIdNotFound

An Amazon Redshift event with the specified event ID does not exist.

HTTP Status Code: 404

SubscriptionNotFound

An Amazon Redshift event notification subscription with the specified name does not exist.

HTTP Status Code: 404

SubscriptionSeverityNotFound

The value specified for the event severity was not one of the allowed values, or it specified a severity that does not apply to the specified source type. The allowed values are ERROR and INFO.

HTTP Status Code: 404

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: