Module Values.CreateEventSubscriptionResultSource

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.

Sourcetype createEventSubscriptionResult = {
  1. eventSubscription : EventSubscription.t option;
}
Sourceand responseMetaData = unit
Sourceand t = {
  1. createEventSubscriptionResult : createEventSubscriptionResult;
  2. responseMetaData : responseMetaData;
}
Sourcetype error = [
  1. | `EventSubscriptionQuotaExceededFault of EventSubscriptionQuotaExceededFault.t
  2. | `InvalidTagFault of InvalidTagFault.t
  3. | `SNSInvalidTopicFault of SNSInvalidTopicFault.t
  4. | `SNSNoAuthorizationFault of SNSNoAuthorizationFault.t
  5. | `SNSTopicArnNotFoundFault of SNSTopicArnNotFoundFault.t
  6. | `SourceNotFoundFault of SourceNotFoundFault.t
  7. | `SubscriptionAlreadyExistFault of SubscriptionAlreadyExistFault.t
  8. | `SubscriptionCategoryNotFoundFault of SubscriptionCategoryNotFoundFault.t
  9. | `SubscriptionEventIdNotFoundFault of SubscriptionEventIdNotFoundFault.t
  10. | `SubscriptionSeverityNotFoundFault of SubscriptionSeverityNotFoundFault.t
  11. | `TagLimitExceededFault of TagLimitExceededFault.t
  12. | `Unknown_operation_error of string * string option
]
Sourceval context_ : string
Sourceval make : ?eventSubscription:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `EventSubscriptionQuotaExceededFault of unit | `InvalidTagFault of unit | `SNSInvalidTopicFault of unit | `SNSNoAuthorizationFault of unit | `SNSTopicArnNotFoundFault of unit | `SourceNotFoundFault of unit | `SubscriptionAlreadyExistFault of unit | `SubscriptionCategoryNotFoundFault of unit | `SubscriptionEventIdNotFoundFault of unit | `SubscriptionSeverityNotFoundFault of unit | `TagLimitExceededFault of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `EventSubscriptionQuotaExceededFault of unit | `InvalidTagFault of unit | `SNSInvalidTopicFault of unit | `SNSNoAuthorizationFault of unit | `SNSTopicArnNotFoundFault of unit | `SourceNotFoundFault of unit | `SubscriptionAlreadyExistFault of unit | `SubscriptionCategoryNotFoundFault of unit | `SubscriptionEventIdNotFoundFault of unit | `SubscriptionSeverityNotFoundFault of unit | `TagLimitExceededFault of unit | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Structure of (string * [> `Boolean of Boolean.t | `List of [> `String of String_.t | `Structure of (string * [> `String of String_.t ]) list ] list | `String of String_.t | `Timestamp of TStamp.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t