Module Smaws_Client_Redshift.CreateEventSubscription

Creates an Amazon Redshift event notification subscription. This action requires an ARN (Amazon Resource Name) of an Amazon SNS topic created by either the Amazon Redshift console, the Amazon SNS console, or the Amazon SNS API. To obtain an ARN with Amazon SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

You can specify the source type, and lists of Amazon Redshift source IDs, event categories, and event severities. Notifications will be sent for all events you want that match those criteria. For example, you can specify source type = cluster, source ID = my-cluster-1 and mycluster2, event categories = Availability, Backup, and severity = ERROR. The subscription will only send notifications for those ERROR events in the Availability and Backup categories for the specified clusters.

If you specify both the source type and source IDs, such as source type = cluster and source identifier = my-cluster-1, notifications will be sent for all the cluster events for my-cluster-1. If you specify a source type but do not specify a source identifier, you will receive notice of the events for the objects of that type in your Amazon Web Services account. If you do not specify either the SourceType nor the SourceIdentifier, you will be notified of events generated from all Amazon Redshift sources belonging to your Amazon Web Services account. You must specify a source type if you specify a source ID.

val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error | `EventSubscriptionQuotaExceededFault of Types.event_subscription_quota_exceeded_fault | `InvalidTagFault of Types.invalid_tag_fault | `SNSInvalidTopicFault of Types.sns_invalid_topic_fault | `SNSNoAuthorizationFault of Types.sns_no_authorization_fault | `SNSTopicArnNotFoundFault of Types.sns_topic_arn_not_found_fault | `SourceNotFoundFault of Types.source_not_found_fault | `SubscriptionAlreadyExistFault of Types.subscription_already_exist_fault | `SubscriptionCategoryNotFoundFault of Types.subscription_category_not_found_fault | `SubscriptionEventIdNotFoundFault of Types.subscription_event_id_not_found_fault | `SubscriptionSeverityNotFoundFault of Types.subscription_severity_not_found_fault | `TagLimitExceededFault of Types.tag_limit_exceeded_fault ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_event_subscription_message -> (Types.create_event_subscription_result, [> Smaws_Lib.Protocols.AwsQuery.error | `EventSubscriptionQuotaExceededFault of Types.event_subscription_quota_exceeded_fault | `InvalidTagFault of Types.invalid_tag_fault | `SNSInvalidTopicFault of Types.sns_invalid_topic_fault | `SNSNoAuthorizationFault of Types.sns_no_authorization_fault | `SNSTopicArnNotFoundFault of Types.sns_topic_arn_not_found_fault | `SourceNotFoundFault of Types.source_not_found_fault | `SubscriptionAlreadyExistFault of Types.subscription_already_exist_fault | `SubscriptionCategoryNotFoundFault of Types.subscription_category_not_found_fault | `SubscriptionEventIdNotFoundFault of Types.subscription_event_id_not_found_fault | `SubscriptionSeverityNotFoundFault of Types.subscription_severity_not_found_fault | `TagLimitExceededFault of Types.tag_limit_exceeded_fault ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.create_event_subscription_message -> (Types.create_event_subscription_result Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsQuery.error | `EventSubscriptionQuotaExceededFault of Types.event_subscription_quota_exceeded_fault | `InvalidTagFault of Types.invalid_tag_fault | `SNSInvalidTopicFault of Types.sns_invalid_topic_fault | `SNSNoAuthorizationFault of Types.sns_no_authorization_fault | `SNSTopicArnNotFoundFault of Types.sns_topic_arn_not_found_fault | `SourceNotFoundFault of Types.source_not_found_fault | `SubscriptionAlreadyExistFault of Types.subscription_already_exist_fault | `SubscriptionCategoryNotFoundFault of Types.subscription_category_not_found_fault | `SubscriptionEventIdNotFoundFault of Types.subscription_event_id_not_found_fault | `SubscriptionSeverityNotFoundFault of Types.subscription_severity_not_found_fault | `TagLimitExceededFault of Types.tag_limit_exceeded_fault ] * Smaws_Lib.Response.metadata) Stdlib.result