Module Values_2.SearchAvailablePhoneNumbersRequestSource

Searches for available phone numbers that you can claim to your Amazon Connect instance or traffic distribution group. If the provided TargetArn is a traffic distribution group, you can call this API in both Amazon Web Services Regions associated with the traffic distribution group.

Sourcetype nonrec t = {
  1. targetArn : Values_0.ARN.t option;
    (*

    The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. You must enter InstanceId or TargetArn.

    *)
  2. instanceId : Values_0.InstanceId.t option;
    (*

    The identifier of the Amazon Connect instance that phone numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. You must enter InstanceId or TargetArn.

    *)
  3. phoneNumberCountryCode : Values_0.PhoneNumberCountryCode.t;
    (*

    The ISO country code.

    *)
  4. phoneNumberType : Values_0.PhoneNumberType.t;
    (*

    The type of phone number.

    *)
  5. phoneNumberPrefix : PhoneNumberPrefix.t option;
    (*

    The prefix of the phone number. If provided, it must contain + as part of the country code.

    *)
  6. maxResults : Values_1.MaxResult10.t option;
    (*

    The maximum number of results to return per page.

    *)
  7. nextToken : Values_1.LargeNextToken.t option;
    (*

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    *)
}
Sourceval context_ : string
Sourceval make : ?targetArn:??? -> ?instanceId:??? -> ?phoneNumberPrefix:??? -> ?maxResults:??? -> ?nextToken:??? -> phoneNumberCountryCode:Values_0.PhoneNumberCountryCode.t -> phoneNumberType:Values_0.PhoneNumberType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Values_1.MaxResult10.t | `String of Values_0.ARN.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t