We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.34.0 published on Friday, Sep 12, 2025 by Pulumi
aws-native.smsvoice.getPhoneNumber
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.34.0 published on Friday, Sep 12, 2025 by Pulumi
Resource Type definition for AWS::SMSVOICE::PhoneNumber
Using getPhoneNumber
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPhoneNumber(args: GetPhoneNumberArgs, opts?: InvokeOptions): Promise<GetPhoneNumberResult>
function getPhoneNumberOutput(args: GetPhoneNumberOutputArgs, opts?: InvokeOptions): Output<GetPhoneNumberResult>
def get_phone_number(phone_number_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPhoneNumberResult
def get_phone_number_output(phone_number_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPhoneNumberResult]
func LookupPhoneNumber(ctx *Context, args *LookupPhoneNumberArgs, opts ...InvokeOption) (*LookupPhoneNumberResult, error)
func LookupPhoneNumberOutput(ctx *Context, args *LookupPhoneNumberOutputArgs, opts ...InvokeOption) LookupPhoneNumberResultOutput
> Note: This function is named LookupPhoneNumber
in the Go SDK.
public static class GetPhoneNumber
{
public static Task<GetPhoneNumberResult> InvokeAsync(GetPhoneNumberArgs args, InvokeOptions? opts = null)
public static Output<GetPhoneNumberResult> Invoke(GetPhoneNumberInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPhoneNumberResult> getPhoneNumber(GetPhoneNumberArgs args, InvokeOptions options)
public static Output<GetPhoneNumberResult> getPhoneNumber(GetPhoneNumberArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:smsvoice:getPhoneNumber
arguments:
# arguments dictionary
The following arguments are supported:
- Phone
Number stringId
- Phone
Number stringId
- phone
Number StringId
- phone
Number stringId
- phone_
number_ strid
- phone
Number StringId
getPhoneNumber Result
The following output properties are available:
- Arn string
- Deletion
Protection boolEnabled - When set to true the sender ID can't be deleted. By default this is set to false.
- Mandatory
Keywords Pulumi.Aws Native. Smsvoice. Outputs. 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
- 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. Outputs. 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.
- Phone
Number stringId - Phone
Number stringValue - 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. Outputs. Tag> - An array of key-value pairs to apply to this resource.
- Two
Way Pulumi.Aws Native. Smsvoice. Outputs. 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.
- Arn string
- Deletion
Protection boolEnabled - When set to true the sender ID can't be deleted. By default this is set to false.
- 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
- 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.
- Phone
Number string - Phone
Number stringId - 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
- 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.
- arn String
- deletion
Protection BooleanEnabled - When set to true the sender ID can't be deleted. By default this is set to false.
- 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
- 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.
- phone
Number String - phone
Number StringId - 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.
- arn string
- deletion
Protection booleanEnabled - When set to true the sender ID can't be deleted. By default this is set to false.
- 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
- 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.
- phone
Number string - phone
Number stringId - 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.
- arn str
- deletion_
protection_ boolenabled - When set to true the sender ID can't be deleted. By default this is set to false.
- 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
- 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] - 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.
- phone_
number str - phone_
number_ strid - 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[root_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.
- arn String
- deletion
Protection BooleanEnabled - When set to true the sender ID can't be deleted. By default this is set to false.
- 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
- 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.
- phone
Number String - phone
Number StringId - 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.
Supporting Types
MandatoryKeywordsProperties
PhoneNumberOptionalKeyword
- 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
PoolMandatoryKeyword
- Message string
- Message string
- message String
- message string
- message str
- message String
Tag
TwoWayProperties
- 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.
AWS Cloud Control v1.34.0 published on Friday, Sep 12, 2025 by Pulumi