Module Values_1.CreateEventSubscriptionResultSource

Creates an RDS event notification subscription. This operation requires a topic Amazon Resource Name (ARN) created by either the RDS console, the SNS console, or the SNS API. To obtain an ARN with 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 type of source (SourceType) that you want to be notified of and provide a list of RDS sources (SourceIds) that triggers the events. You can also provide a list of event categories (EventCategories) for events that you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup. If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIds = myDBInstance1, you are notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify SourceIds, you receive notice of the events for that source type for all your RDS sources. If you don't specify either the SourceType or the SourceIds, you are notified of events generated from all RDS sources belonging to your customer account. For more information about subscribing to an event for RDS DB engines, see Subscribing to Amazon RDS event notification in the Amazon RDS User Guide. For more information about subscribing to an event for Aurora DB engines, see Subscribing to Amazon RDS event notification in the Amazon Aurora User Guide.

Sourcetype createEventSubscriptionResult = {
  1. eventSubscription : Values_0.EventSubscription.t option;
}
Sourceand responseMetaData = unit
Sourceand t = {
  1. createEventSubscriptionResult : createEventSubscriptionResult;
  2. responseMetaData : responseMetaData;
}
Sourcetype error = [
  1. | `EventSubscriptionQuotaExceededFault of Values_0.EventSubscriptionQuotaExceededFault.t
  2. | `SNSInvalidTopicFault of Values_0.SNSInvalidTopicFault.t
  3. | `SNSNoAuthorizationFault of Values_0.SNSNoAuthorizationFault.t
  4. | `SNSTopicArnNotFoundFault of Values_0.SNSTopicArnNotFoundFault.t
  5. | `SourceNotFoundFault of Values_0.SourceNotFoundFault.t
  6. | `SubscriptionAlreadyExistFault of Values_0.SubscriptionAlreadyExistFault.t
  7. | `SubscriptionCategoryNotFoundFault of Values_0.SubscriptionCategoryNotFoundFault.t
  8. | `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 | `SNSInvalidTopicFault of unit | `SNSNoAuthorizationFault of unit | `SNSTopicArnNotFoundFault of unit | `SourceNotFoundFault of unit | `SubscriptionAlreadyExistFault of unit | `SubscriptionCategoryNotFoundFault of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `EventSubscriptionQuotaExceededFault of unit | `SNSInvalidTopicFault of unit | `SNSNoAuthorizationFault of unit | `SNSTopicArnNotFoundFault of unit | `SourceNotFoundFault of unit | `SubscriptionAlreadyExistFault of unit | `SubscriptionCategoryNotFoundFault 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 bool | `List of [> `String of string ] list | `String of string ]) 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