Module Smaws_Client_Lightsail.CreateContactMethod

Creates an email or SMS text message contact method.

A contact method is used to send you notifications about your Amazon Lightsail resources. You can add one email address and one mobile phone number contact method in each Amazon Web Services Region. However, SMS text messaging is not supported in some Amazon Web Services Regions, and SMS text messages cannot be sent to some countries/regions. For more information, see Notifications in Amazon Lightsail.

The create contact method operation supports tag-based access control via request tags. For more information, see the Lightsail Developer Guide.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidInputException of Types.invalid_input_exception | `NotFoundException of Types.not_found_exception | `OperationFailureException of Types.operation_failure_exception | `RegionSetupInProgressException of Types.region_setup_in_progress_exception | `ServiceException of Types.service_exception | `UnauthenticatedException of Types.unauthenticated_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_contact_method_request -> (Types.create_contact_method_result, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidInputException of Types.invalid_input_exception | `NotFoundException of Types.not_found_exception | `OperationFailureException of Types.operation_failure_exception | `RegionSetupInProgressException of Types.region_setup_in_progress_exception | `ServiceException of Types.service_exception | `UnauthenticatedException of Types.unauthenticated_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.create_contact_method_request -> (Types.create_contact_method_result Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidInputException of Types.invalid_input_exception | `NotFoundException of Types.not_found_exception | `OperationFailureException of Types.operation_failure_exception | `RegionSetupInProgressException of Types.region_setup_in_progress_exception | `ServiceException of Types.service_exception | `UnauthenticatedException of Types.unauthenticated_exception ] * Smaws_Lib.Response.metadata) Stdlib.result