create_verified_destination_number
async
¶
create_verified_destination_number(
destination_phone_number: PhoneNumber,
*,
config_overrides: Optional[AsyncPinpointSMSVoiceV2ClientConfig] = None,
rcs_agent_id: Optional[RcsAgentIdOrArn] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientToken] = None,
) -> CreateVerifiedDestinationNumberResult
You can only send messages to verified destination numbers when your account is in the sandbox. You can add up to 10 verified destination numbers.
Parameters:
-
destination_phone_number(PhoneNumber) –The verified destination phone number, in E.164 format.
-
rcs_agent_id(Optional[RcsAgentIdOrArn], default:None) –The unique identifier of the RCS agent to associate with the verified destination number. You can use either the RcsAgentId or RcsAgentArn.
-
tags(Optional[TagList], default:None) –An array of tags (key and value pairs) to associate with the destination number.
-
client_token(Optional[ClientToken], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
Raises:
-
AccessDeniedException–The request was denied because you don't have sufficient permissions to access the resource.
-
ConflictException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time or it could be that the requested action isn't valid for the current state or configuration of the resource.
-
InternalServerException–The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.
-
ResourceNotFoundException–A requested resource couldn't be found.
-
ServiceQuotaExceededException–The request would cause a service quota to be exceeded.
-
ThrottlingException–An error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException–A validation exception for a field.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_pinpoint_sms_voice_v2/_services/async_pinpoint_sms_voice_v2.py
1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 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 | |