Module Smaws_Client_DatabaseMigrationService.CreateEventSubscription

Creates an DMS event notification subscription.

You can specify the type of source (SourceType) you want to be notified of, provide a list of DMS source IDs (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. If you specify both the SourceType and SourceIds, such as SourceType = replication-instance and SourceIdentifier = my-replinstance, you will be notified of all the replication instance events for the specified source. If you specify a SourceType but don't specify a SourceIdentifier, you receive notice of the events for that source type for all your DMS sources. If you don't specify either SourceType nor SourceIdentifier, you will be notified of events generated from all DMS sources belonging to your customer account.

For more information about DMS events, see Working with Events and Notifications in the Database Migration Service User Guide.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `KMSAccessDeniedFault of Types.kms_access_denied_fault | `KMSDisabledFault of Types.kms_disabled_fault | `KMSInvalidStateFault of Types.kms_invalid_state_fault | `KMSNotFoundFault of Types.kms_not_found_fault | `KMSThrottlingFault of Types.kms_throttling_fault | `ResourceAlreadyExistsFault of Types.resource_already_exists_fault | `ResourceNotFoundFault of Types.resource_not_found_fault | `ResourceQuotaExceededFault of Types.resource_quota_exceeded_fault | `SNSInvalidTopicFault of Types.sns_invalid_topic_fault | `SNSNoAuthorizationFault of Types.sns_no_authorization_fault ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_event_subscription_message -> (Types.create_event_subscription_response, [> Smaws_Lib.Protocols.AwsJson.error | `KMSAccessDeniedFault of Types.kms_access_denied_fault | `KMSDisabledFault of Types.kms_disabled_fault | `KMSInvalidStateFault of Types.kms_invalid_state_fault | `KMSNotFoundFault of Types.kms_not_found_fault | `KMSThrottlingFault of Types.kms_throttling_fault | `ResourceAlreadyExistsFault of Types.resource_already_exists_fault | `ResourceNotFoundFault of Types.resource_not_found_fault | `ResourceQuotaExceededFault of Types.resource_quota_exceeded_fault | `SNSInvalidTopicFault of Types.sns_invalid_topic_fault | `SNSNoAuthorizationFault of Types.sns_no_authorization_fault ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.create_event_subscription_message -> (Types.create_event_subscription_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `KMSAccessDeniedFault of Types.kms_access_denied_fault | `KMSDisabledFault of Types.kms_disabled_fault | `KMSInvalidStateFault of Types.kms_invalid_state_fault | `KMSNotFoundFault of Types.kms_not_found_fault | `KMSThrottlingFault of Types.kms_throttling_fault | `ResourceAlreadyExistsFault of Types.resource_already_exists_fault | `ResourceNotFoundFault of Types.resource_not_found_fault | `ResourceQuotaExceededFault of Types.resource_quota_exceeded_fault | `SNSInvalidTopicFault of Types.sns_invalid_topic_fault | `SNSNoAuthorizationFault of Types.sns_no_authorization_fault ] * Smaws_Lib.Response.metadata) Stdlib.result