import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient"; import type { ImportPhoneNumberRequest, ImportPhoneNumberResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ImportPhoneNumberCommand}. */ export interface ImportPhoneNumberCommandInput extends ImportPhoneNumberRequest { } /** * @public * * The output of {@link ImportPhoneNumberCommand}. */ export interface ImportPhoneNumberCommandOutput extends ImportPhoneNumberResponse, __MetadataBearer { } declare const ImportPhoneNumberCommand_base: { new (input: ImportPhoneNumberCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ImportPhoneNumberCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Imports a claimed phone number from an external service, such as Amazon Web Services End User Messaging, into an * Amazon Connect instance. You can call this API only in the same Amazon Web Services Region where the Amazon Connect instance was created.

* *

Call the DescribePhoneNumber API to verify the status of a previous ImportPhoneNumber operation. *

*
*

If you plan to claim or import numbers and then release numbers frequently, contact us for a service quota * exception. Otherwise, it is possible you will be blocked from claiming and releasing any more numbers until up to 180 * days past the oldest number released has expired.

*

By default you can claim or import and then release up to 200% of your maximum number of active phone numbers. * If you claim or import and then release phone numbers using the UI or API during a rolling 180 day cycle that exceeds * 200% of your phone number service level quota, you will be blocked from claiming or importing any more numbers until * 180 days past the oldest number released has expired.

*

For example, if you already have 99 claimed or imported numbers and a service level quota of 99 phone numbers, * and in any 180 day period you release 99, claim 99, and then release 99, you will have exceeded the 200% limit. At * that point you are blocked from claiming any more numbers until you open an Amazon Web Services Support ticket.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectClient, ImportPhoneNumberCommand } from "@aws-sdk/client-connect"; // ES Modules import * // const { ConnectClient, ImportPhoneNumberCommand } = require("@aws-sdk/client-connect"); // CommonJS import * // import type { ConnectClientConfig } from "@aws-sdk/client-connect"; * const config = {}; // type is ConnectClientConfig * const client = new ConnectClient(config); * const input = { // ImportPhoneNumberRequest * InstanceId: "STRING_VALUE", // required * SourcePhoneNumberArn: "STRING_VALUE", // required * PhoneNumberDescription: "STRING_VALUE", * Tags: { // TagMap * "": "STRING_VALUE", * }, * ClientToken: "STRING_VALUE", * }; * const command = new ImportPhoneNumberCommand(input); * const response = await client.send(command); * // { // ImportPhoneNumberResponse * // PhoneNumberId: "STRING_VALUE", * // PhoneNumberArn: "STRING_VALUE", * // }; * * ``` * * @param ImportPhoneNumberCommandInput - {@link ImportPhoneNumberCommandInput} * @returns {@link ImportPhoneNumberCommandOutput} * @see {@link ImportPhoneNumberCommandInput} for command's `input` shape. * @see {@link ImportPhoneNumberCommandOutput} for command's `response` shape. * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient permissions to perform this action.

* * @throws {@link IdempotencyException} (client fault) *

An entity with the same name already exists.

* * @throws {@link InternalServiceException} (server fault) *

Request processing failed because of an error or failure with the service.

* * @throws {@link InvalidParameterException} (client fault) *

One or more of the specified parameters are not valid.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource was not found.

* * @throws {@link ThrottlingException} (client fault) *

The throttling limit has been exceeded.

* * @throws {@link ConnectServiceException} *

Base exception class for all service exceptions from Connect service.

* * * @public */ export declare class ImportPhoneNumberCommand extends ImportPhoneNumberCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ImportPhoneNumberRequest; output: ImportPhoneNumberResponse; }; sdk: { input: ImportPhoneNumberCommandInput; output: ImportPhoneNumberCommandOutput; }; }; }