delete_phone_number
async
¶
delete_phone_number(
phone_number_id: SensitiveNonEmptyString,
*,
config_overrides: Optional[AsyncChimeSDKVoiceClientConfig] = None,
) -> None
Moves the specified phone number into the Deletion queue. A phone number must be disassociated from any users or Amazon Chime SDK Voice Connectors before it can be deleted.
Deleted phone numbers remain in the Deletion queue queue for 7 days before they are deleted permanently.
Parameters:
-
phone_number_id(SensitiveNonEmptyString) –The phone number ID.
Raises:
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
NotFoundException–The requested resource couldn't be found.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The number of customer requests exceeds the request rate limit.
-
UnauthorizedClientException–The client isn't authorized to request a resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime_sdk_voice/_services/async_chime_sdk_voice.py
1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 | |