SNS / Client / opt_in_phone_number
opt_in_phone_number#
- SNS.Client.opt_in_phone_number(**kwargs)#
Use this request to opt in a phone number that is opted out, which enables you to resume sending SMS messages to the number.
You can opt in a phone number only once every 30 days.
See also: AWS API Documentation
Request Syntax
response = client.opt_in_phone_number( phoneNumber='string' )
- Parameters:
phoneNumber (string) –
[REQUIRED]
The phone number to opt in. Use E.164 format.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
The response for the OptInPhoneNumber action.
Exceptions
SNS.Client.exceptions.ThrottledException
SNS.Client.exceptions.InternalErrorException
SNS.Client.exceptions.AuthorizationErrorException
SNS.Client.exceptions.InvalidParameterException