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.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.connect.getPhoneNumber

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 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>
    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]
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:connect:getPhoneNumber
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PhoneNumberArn string
    The phone number ARN
    PhoneNumberArn string
    The phone number ARN
    phoneNumberArn String
    The phone number ARN
    phoneNumberArn string
    The phone number ARN
    phone_number_arn str
    The phone number ARN
    phoneNumberArn 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 string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

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

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi