Request an origination phone number for use in your account
Source:R/pinpointsmsvoicev2_operations.R
pinpointsmsvoicev2_request_phone_number.RdRequest an origination phone number for use in your account. For more information on phone number request see Request a phone number in the End User Messaging SMS User Guide.
See https://www.paws-r-sdk.com/docs/pinpointsmsvoicev2_request_phone_number/ for full documentation.
Usage
pinpointsmsvoicev2_request_phone_number(
IsoCountryCode,
MessageType,
NumberCapabilities,
NumberType,
OptOutListName = NULL,
PoolId = NULL,
RegistrationId = NULL,
InternationalSendingEnabled = NULL,
DeletionProtectionEnabled = NULL,
Tags = NULL,
ClientToken = NULL
)Arguments
- IsoCountryCode
[required] The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- MessageType
[required] The type of message. Valid values are
TRANSACTIONALfor messages that are critical or time-sensitive andPROMOTIONALfor messages that aren't critical or time-sensitive.- NumberCapabilities
[required] Indicates if the phone number will be used for text messages, voice messages, or both.
- NumberType
[required] The type of phone number to request.
When you request a
SIMULATORphone number, you must set MessageType asTRANSACTIONAL.- OptOutListName
The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.
If you are using a shared End User Messaging SMS resource then you must use the full Amazon Resource Name(ARN).
- PoolId
The pool to associated with the phone number. You can use the PoolId or PoolArn.
If you are using a shared End User Messaging SMS resource then you must use the full Amazon Resource Name(ARN).
- RegistrationId
Use this field to attach your phone number for an external registration process.
- InternationalSendingEnabled
By default this is set to false. When set to true the international sending of phone number is Enabled.
- DeletionProtectionEnabled
By default this is set to false. When set to true the phone number can't be deleted.
An array of tags (key and value pairs) to associate with the requested phone number.
- ClientToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.