We recommend new projects start with resources from the AWS provider.
aws-native.smsvoice.PhoneNumber
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::SMSVOICE::PhoneNumber
Create PhoneNumber Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PhoneNumber(name: string, args: PhoneNumberArgs, opts?: CustomResourceOptions);
@overload
def PhoneNumber(resource_name: str,
args: PhoneNumberArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PhoneNumber(resource_name: str,
opts: Optional[ResourceOptions] = None,
iso_country_code: Optional[str] = None,
mandatory_keywords: Optional[MandatoryKeywordsPropertiesArgs] = None,
number_capabilities: Optional[Sequence[PhoneNumberNumberCapabilitiesItem]] = None,
number_type: Optional[PhoneNumberNumberType] = None,
deletion_protection_enabled: Optional[bool] = None,
opt_out_list_name: Optional[str] = None,
optional_keywords: Optional[Sequence[PhoneNumberOptionalKeywordArgs]] = None,
self_managed_opt_outs_enabled: Optional[bool] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
two_way: Optional[TwoWayPropertiesArgs] = None)
func NewPhoneNumber(ctx *Context, name string, args PhoneNumberArgs, opts ...ResourceOption) (*PhoneNumber, error)
public PhoneNumber(string name, PhoneNumberArgs args, CustomResourceOptions? opts = null)
public PhoneNumber(String name, PhoneNumberArgs args)
public PhoneNumber(String name, PhoneNumberArgs args, CustomResourceOptions options)
type: aws-native:smsvoice:PhoneNumber
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PhoneNumberArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PhoneNumberArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PhoneNumberArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PhoneNumberArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PhoneNumberArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PhoneNumber Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PhoneNumber resource accepts the following input properties:
- Iso
Country stringCode - The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- Mandatory
Keywords Pulumi.Aws Native. Smsvoice. Inputs. Mandatory Keywords Properties - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message. Keywords "HELP" and "STOP" are mandatory keywords
- Number
Capabilities List<Pulumi.Aws Native. Smsvoice. Phone Number Number Capabilities Item> - Indicates if the phone number will be used for text messages, voice messages, or both.
- Number
Type Pulumi.Aws Native. Smsvoice. Phone Number Number Type - The type of phone number to request.
- Deletion
Protection boolEnabled - When set to true the sender ID can't be deleted. By default this is set to false.
- Opt
Out stringList Name - The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.
- Optional
Keywords List<Pulumi.Aws Native. Smsvoice. Inputs. Phone Number Optional Keyword> - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message.
- Self
Managed boolOpt Outs Enabled - By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
- List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Two
Way Pulumi.Aws Native. Smsvoice. Inputs. Two Way Properties - When you set up two-way SMS, you can receive incoming messages from your customers. When one of your customers sends a message to your phone number, the message body is sent to an Amazon SNS topic or Amazon Connect for processing.
- Iso
Country stringCode - The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- Mandatory
Keywords MandatoryKeywords Properties Args - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message. Keywords "HELP" and "STOP" are mandatory keywords
- Number
Capabilities []PhoneNumber Number Capabilities Item - Indicates if the phone number will be used for text messages, voice messages, or both.
- Number
Type PhoneNumber Number Type - The type of phone number to request.
- Deletion
Protection boolEnabled - When set to true the sender ID can't be deleted. By default this is set to false.
- Opt
Out stringList Name - The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.
- Optional
Keywords []PhoneNumber Optional Keyword Args - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message.
- Self
Managed boolOpt Outs Enabled - By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
- Tag
Args - An array of key-value pairs to apply to this resource.
- Two
Way TwoWay Properties Args - When you set up two-way SMS, you can receive incoming messages from your customers. When one of your customers sends a message to your phone number, the message body is sent to an Amazon SNS topic or Amazon Connect for processing.
- iso
Country StringCode - The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- mandatory
Keywords MandatoryKeywords Properties - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message. Keywords "HELP" and "STOP" are mandatory keywords
- number
Capabilities List<PhoneNumber Number Capabilities Item> - Indicates if the phone number will be used for text messages, voice messages, or both.
- number
Type PhoneNumber Number Type - The type of phone number to request.
- deletion
Protection BooleanEnabled - When set to true the sender ID can't be deleted. By default this is set to false.
- opt
Out StringList Name - The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.
- optional
Keywords List<PhoneNumber Optional Keyword> - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message.
- self
Managed BooleanOpt Outs Enabled - By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- two
Way TwoWay Properties - When you set up two-way SMS, you can receive incoming messages from your customers. When one of your customers sends a message to your phone number, the message body is sent to an Amazon SNS topic or Amazon Connect for processing.
- iso
Country stringCode - The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- mandatory
Keywords MandatoryKeywords Properties - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message. Keywords "HELP" and "STOP" are mandatory keywords
- number
Capabilities PhoneNumber Number Capabilities Item[] - Indicates if the phone number will be used for text messages, voice messages, or both.
- number
Type PhoneNumber Number Type - The type of phone number to request.
- deletion
Protection booleanEnabled - When set to true the sender ID can't be deleted. By default this is set to false.
- opt
Out stringList Name - The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.
- optional
Keywords PhoneNumber Optional Keyword[] - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message.
- self
Managed booleanOpt Outs Enabled - By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
- Tag[]
- An array of key-value pairs to apply to this resource.
- two
Way TwoWay Properties - When you set up two-way SMS, you can receive incoming messages from your customers. When one of your customers sends a message to your phone number, the message body is sent to an Amazon SNS topic or Amazon Connect for processing.
- iso_
country_ strcode - The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- mandatory_
keywords MandatoryKeywords Properties Args - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message. Keywords "HELP" and "STOP" are mandatory keywords
- number_
capabilities Sequence[PhoneNumber Number Capabilities Item] - Indicates if the phone number will be used for text messages, voice messages, or both.
- number_
type PhoneNumber Number Type - The type of phone number to request.
- deletion_
protection_ boolenabled - When set to true the sender ID can't be deleted. By default this is set to false.
- opt_
out_ strlist_ name - The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.
- optional_
keywords Sequence[PhoneNumber Optional Keyword Args] - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message.
- self_
managed_ boolopt_ outs_ enabled - By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
- Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- two_
way TwoWay Properties Args - When you set up two-way SMS, you can receive incoming messages from your customers. When one of your customers sends a message to your phone number, the message body is sent to an Amazon SNS topic or Amazon Connect for processing.
- iso
Country StringCode - The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- mandatory
Keywords Property Map - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message. Keywords "HELP" and "STOP" are mandatory keywords
- number
Capabilities List<"SMS" | "VOICE" | "MMS"> - Indicates if the phone number will be used for text messages, voice messages, or both.
- number
Type "LONG_CODE" | "TOLL_FREE" | "TEN_DLC" | "SIMULATOR" - The type of phone number to request.
- deletion
Protection BooleanEnabled - When set to true the sender ID can't be deleted. By default this is set to false.
- opt
Out StringList Name - The name of the OptOutList to associate with the phone number. You can use the OptOutListName or OptOutListArn.
- optional
Keywords List<Property Map> - A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, AWS End User Messaging SMS and Voice responds with a customizable message.
- self
Managed BooleanOpt Outs Enabled - By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
- two
Way Property Map - When you set up two-way SMS, you can receive incoming messages from your customers. When one of your customers sends a message to your phone number, the message body is sent to an Amazon SNS topic or Amazon Connect for processing.
Outputs
All input properties are implicitly available as output properties. Additionally, the PhoneNumber resource produces the following output properties:
- Arn string
- Id string
- The provider-assigned unique ID for this managed resource.
- Phone
Number stringId - Phone
Number stringValue
- Arn string
- Id string
- The provider-assigned unique ID for this managed resource.
- Phone
Number string - Phone
Number stringId
- arn String
- id String
- The provider-assigned unique ID for this managed resource.
- phone
Number String - phone
Number StringId
- arn string
- id string
- The provider-assigned unique ID for this managed resource.
- phone
Number string - phone
Number stringId
- arn str
- id str
- The provider-assigned unique ID for this managed resource.
- phone_
number str - phone_
number_ strid
- arn String
- id String
- The provider-assigned unique ID for this managed resource.
- phone
Number String - phone
Number StringId
Supporting Types
MandatoryKeywordsProperties, MandatoryKeywordsPropertiesArgs
PhoneNumberNumberCapabilitiesItem, PhoneNumberNumberCapabilitiesItemArgs
- Sms
- SMS
- Voice
- VOICE
- Mms
- MMS
- Phone
Number Number Capabilities Item Sms - SMS
- Phone
Number Number Capabilities Item Voice - VOICE
- Phone
Number Number Capabilities Item Mms - MMS
- Sms
- SMS
- Voice
- VOICE
- Mms
- MMS
- Sms
- SMS
- Voice
- VOICE
- Mms
- MMS
- SMS
- SMS
- VOICE
- VOICE
- MMS
- MMS
- "SMS"
- SMS
- "VOICE"
- VOICE
- "MMS"
- MMS
PhoneNumberNumberType, PhoneNumberNumberTypeArgs
- Long
Code - LONG_CODE
- Toll
Free - TOLL_FREE
- Ten
Dlc - TEN_DLC
- Simulator
- SIMULATOR
- Phone
Number Number Type Long Code - LONG_CODE
- Phone
Number Number Type Toll Free - TOLL_FREE
- Phone
Number Number Type Ten Dlc - TEN_DLC
- Phone
Number Number Type Simulator - SIMULATOR
- Long
Code - LONG_CODE
- Toll
Free - TOLL_FREE
- Ten
Dlc - TEN_DLC
- Simulator
- SIMULATOR
- Long
Code - LONG_CODE
- Toll
Free - TOLL_FREE
- Ten
Dlc - TEN_DLC
- Simulator
- SIMULATOR
- LONG_CODE
- LONG_CODE
- TOLL_FREE
- TOLL_FREE
- TEN_DLC
- TEN_DLC
- SIMULATOR
- SIMULATOR
- "LONG_CODE"
- LONG_CODE
- "TOLL_FREE"
- TOLL_FREE
- "TEN_DLC"
- TEN_DLC
- "SIMULATOR"
- SIMULATOR
PhoneNumberOptionalKeyword, PhoneNumberOptionalKeywordArgs
- Action
Phone
Number Optional Keyword Action - Keyword string
- Message string
- action
Phone
Number Optional Keyword Action - keyword String
- message String
- action
Phone
Number Optional Keyword Action - keyword string
- message string
PhoneNumberOptionalKeywordAction, PhoneNumberOptionalKeywordActionArgs
- Automatic
Response - AUTOMATIC_RESPONSE
- Opt
Out - OPT_OUT
- Opt
In - OPT_IN
- Phone
Number Optional Keyword Action Automatic Response - AUTOMATIC_RESPONSE
- Phone
Number Optional Keyword Action Opt Out - OPT_OUT
- Phone
Number Optional Keyword Action Opt In - OPT_IN
- Automatic
Response - AUTOMATIC_RESPONSE
- Opt
Out - OPT_OUT
- Opt
In - OPT_IN
- Automatic
Response - AUTOMATIC_RESPONSE
- Opt
Out - OPT_OUT
- Opt
In - OPT_IN
- AUTOMATIC_RESPONSE
- AUTOMATIC_RESPONSE
- OPT_OUT
- OPT_OUT
- OPT_IN
- OPT_IN
- "AUTOMATIC_RESPONSE"
- AUTOMATIC_RESPONSE
- "OPT_OUT"
- OPT_OUT
- "OPT_IN"
- OPT_IN
PoolMandatoryKeyword, PoolMandatoryKeywordArgs
- Message string
- Message string
- message String
- message string
- message str
- message String
Tag, TagArgs
TwoWayProperties, TwoWayPropertiesArgs
- Enabled bool
- By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
- Channel
Arn string - The Amazon Resource Name (ARN) of the two way channel.
- Channel
Role string - An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
- Enabled bool
- By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
- Channel
Arn string - The Amazon Resource Name (ARN) of the two way channel.
- Channel
Role string - An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
- enabled Boolean
- By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
- channel
Arn String - The Amazon Resource Name (ARN) of the two way channel.
- channel
Role String - An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
- enabled boolean
- By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
- channel
Arn string - The Amazon Resource Name (ARN) of the two way channel.
- channel
Role string - An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
- enabled bool
- By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
- channel_
arn str - The Amazon Resource Name (ARN) of the two way channel.
- channel_
role str - An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
- enabled Boolean
- By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
- channel
Arn String - The Amazon Resource Name (ARN) of the two way channel.
- channel
Role String - An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.