We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.35.0 published on Monday, Sep 22, 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.35.0 published on Monday, Sep 22, 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 - The unique identifier for the phone number.
- Phone
Number stringId - The unique identifier for the phone number.
- phone
Number StringId - The unique identifier for the phone number.
- phone
Number stringId - The unique identifier for the phone number.
- phone_
number_ strid - The unique identifier for the phone number.
- phone
Number StringId - The unique identifier for the phone number.
getPhoneNumber Result
The following output properties are available:
- Arn string
- The
PhoneNumber
's Amazon Resource Name (ARN) - 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 - The unique identifier for the phone number.
- Phone
Number stringValue - The phone number in E.164 format.
- 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
- The
PhoneNumber
's Amazon Resource Name (ARN) - 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 - The phone number in E.164 format.
- Phone
Number stringId - The unique identifier for the phone number.
- 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
- The
PhoneNumber
's Amazon Resource Name (ARN) - 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 - The phone number in E.164 format.
- phone
Number StringId - The unique identifier for the phone number.
- 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
- The
PhoneNumber
's Amazon Resource Name (ARN) - 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 - The phone number in E.164 format.
- phone
Number stringId - The unique identifier for the phone number.
- 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
- The
PhoneNumber
's Amazon Resource Name (ARN) - 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 - The phone number in E.164 format.
- phone_
number_ strid - The unique identifier for the phone number.
- 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
- The
PhoneNumber
's Amazon Resource Name (ARN) - 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 - The phone number in E.164 format.
- phone
Number StringId - The unique identifier for the phone number.
- 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
- Help
Pulumi.
Aws Native. Smsvoice. Inputs. Pool Mandatory Keyword - Specifies the pool's
HELP
keyword. For more information, see Opt out list required keywords in the End User Messaging User Guide. - Stop
Pulumi.
Aws Native. Smsvoice. Inputs. Pool Mandatory Keyword - Specifies the pool's opt-out keyword. For more information, see Required opt-out keywords in the End User Messaging User Guide.
- Help
Pool
Mandatory Keyword - Specifies the pool's
HELP
keyword. For more information, see Opt out list required keywords in the End User Messaging User Guide. - Stop
Pool
Mandatory Keyword - Specifies the pool's opt-out keyword. For more information, see Required opt-out keywords in the End User Messaging User Guide.
- help
Pool
Mandatory Keyword - Specifies the pool's
HELP
keyword. For more information, see Opt out list required keywords in the End User Messaging User Guide. - stop
Pool
Mandatory Keyword - Specifies the pool's opt-out keyword. For more information, see Required opt-out keywords in the End User Messaging User Guide.
- help
Pool
Mandatory Keyword - Specifies the pool's
HELP
keyword. For more information, see Opt out list required keywords in the End User Messaging User Guide. - stop
Pool
Mandatory Keyword - Specifies the pool's opt-out keyword. For more information, see Required opt-out keywords in the End User Messaging User Guide.
- help
Pool
Mandatory Keyword - Specifies the pool's
HELP
keyword. For more information, see Opt out list required keywords in the End User Messaging User Guide. - stop
Pool
Mandatory Keyword - Specifies the pool's opt-out keyword. For more information, see Required opt-out keywords in the End User Messaging User Guide.
- help Property Map
- Specifies the pool's
HELP
keyword. For more information, see Opt out list required keywords in the End User Messaging User Guide. - stop Property Map
- Specifies the pool's opt-out keyword. For more information, see Required opt-out keywords in the End User Messaging User Guide.
PhoneNumberOptionalKeyword
- Action
Pulumi.
Aws Native. Smsvoice. Phone Number Optional Keyword Action - The action to perform when the keyword is used.
- Keyword string
- The new keyword to add.
- Message string
- The message associated with the keyword.
- Action
Phone
Number Optional Keyword Action - The action to perform when the keyword is used.
- Keyword string
- The new keyword to add.
- Message string
- The message associated with the keyword.
- action
Phone
Number Optional Keyword Action - The action to perform when the keyword is used.
- keyword String
- The new keyword to add.
- message String
- The message associated with the keyword.
- action
Phone
Number Optional Keyword Action - The action to perform when the keyword is used.
- keyword string
- The new keyword to add.
- message string
- The message associated with the keyword.
- action
Phone
Number Optional Keyword Action - The action to perform when the keyword is used.
- keyword str
- The new keyword to add.
- message str
- The message associated with the keyword.
- action "AUTOMATIC_RESPONSE" | "OPT_OUT" | "OPT_IN"
- The action to perform when the keyword is used.
- keyword String
- The new keyword to add.
- message String
- The message associated with the keyword.
PhoneNumberOptionalKeywordAction
PoolMandatoryKeyword
- Message string
- The message associated with the keyword.
- Message string
- The message associated with the keyword.
- message String
- The message associated with the keyword.
- message string
- The message associated with the keyword.
- message str
- The message associated with the keyword.
- message String
- The message associated with the keyword.
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.35.0 published on Monday, Sep 22, 2025 by Pulumi