1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. connect
  5. getPhoneNumber

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.connect.getPhoneNumber

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource Type definition for AWS::Connect::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>
Copy
def get_phone_number(phone_number_arn: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetPhoneNumberResult
def get_phone_number_output(phone_number_arn: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetPhoneNumberResult]
Copy
func LookupPhoneNumber(ctx *Context, args *LookupPhoneNumberArgs, opts ...InvokeOption) (*LookupPhoneNumberResult, error)
func LookupPhoneNumberOutput(ctx *Context, args *LookupPhoneNumberOutputArgs, opts ...InvokeOption) LookupPhoneNumberResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetPhoneNumberResult> getPhoneNumber(GetPhoneNumberArgs args, InvokeOptions options)
public static Output<GetPhoneNumberResult> getPhoneNumber(GetPhoneNumberArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:connect:getPhoneNumber
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PhoneNumberArn This property is required. string
The phone number ARN
PhoneNumberArn This property is required. string
The phone number ARN
phoneNumberArn This property is required. String
The phone number ARN
phoneNumberArn This property is required. string
The phone number ARN
phone_number_arn This property is required. str
The phone number ARN
phoneNumberArn This property is required. String
The phone number ARN

getPhoneNumber Result

The following output properties are available:

Address string
The phone number e164 address.
Description string
The description of the phone number.
PhoneNumberArn string
The phone number ARN
Tags List<Pulumi.AwsNative.Outputs.Tag>
One or more tags.
TargetArn string
The ARN of the target the phone number is claimed to.
Address string
The phone number e164 address.
Description string
The description of the phone number.
PhoneNumberArn string
The phone number ARN
Tags Tag
One or more tags.
TargetArn string
The ARN of the target the phone number is claimed to.
address String
The phone number e164 address.
description String
The description of the phone number.
phoneNumberArn String
The phone number ARN
tags List<Tag>
One or more tags.
targetArn String
The ARN of the target the phone number is claimed to.
address string
The phone number e164 address.
description string
The description of the phone number.
phoneNumberArn string
The phone number ARN
tags Tag[]
One or more tags.
targetArn string
The ARN of the target the phone number is claimed to.
address str
The phone number e164 address.
description str
The description of the phone number.
phone_number_arn str
The phone number ARN
tags Sequence[root_Tag]
One or more tags.
target_arn str
The ARN of the target the phone number is claimed to.
address String
The phone number e164 address.
description String
The description of the phone number.
phoneNumberArn String
The phone number ARN
tags List<Property Map>
One or more tags.
targetArn String
The ARN of the target the phone number is claimed to.

Supporting Types

Tag

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

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.27.0 published on Monday, Apr 14, 2025 by Pulumi