Module Smaws_Client_SNS.Subscribe

Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is HTTP/S or email, or if the endpoint and the topic are not in the same Amazon Web Services account, the endpoint owner must run the ConfirmSubscription action to confirm the subscription.

You call the ConfirmSubscription action with the token from the subscription response. Confirmation tokens are valid for two days.

This action is throttled at 100 transactions per second (TPS).

val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error | `AuthorizationErrorException of Types.authorization_error_exception | `FilterPolicyLimitExceededException of Types.filter_policy_limit_exceeded_exception | `InternalErrorException of Types.internal_error_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidSecurityException of Types.invalid_security_exception | `NotFoundException of Types.not_found_exception | `ReplayLimitExceededException of Types.replay_limit_exceeded_exception | `SubscriptionLimitExceededException of Types.subscription_limit_exceeded_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.subscribe_input -> (Types.subscribe_response, [> Smaws_Lib.Protocols.AwsQuery.error | `AuthorizationErrorException of Types.authorization_error_exception | `FilterPolicyLimitExceededException of Types.filter_policy_limit_exceeded_exception | `InternalErrorException of Types.internal_error_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidSecurityException of Types.invalid_security_exception | `NotFoundException of Types.not_found_exception | `ReplayLimitExceededException of Types.replay_limit_exceeded_exception | `SubscriptionLimitExceededException of Types.subscription_limit_exceeded_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.subscribe_input -> (Types.subscribe_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsQuery.error | `AuthorizationErrorException of Types.authorization_error_exception | `FilterPolicyLimitExceededException of Types.filter_policy_limit_exceeded_exception | `InternalErrorException of Types.internal_error_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidSecurityException of Types.invalid_security_exception | `NotFoundException of Types.not_found_exception | `ReplayLimitExceededException of Types.replay_limit_exceeded_exception | `SubscriptionLimitExceededException of Types.subscription_limit_exceeded_exception ] * Smaws_Lib.Response.metadata) Stdlib.result