request_sender_id
async
¶
request_sender_id(
sender_id: SenderId,
iso_country_code: IsoCountryCode,
*,
config_overrides: Optional[AsyncPinpointSMSVoiceV2ClientConfig] = None,
message_types: Optional[MessageTypeList] = None,
deletion_protection_enabled: Optional[bool] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientToken] = None,
) -> RequestSenderIdResult
Request a new sender ID that doesn't require registration.
Parameters:
-
sender_id(SenderId) –The sender ID string to request. The sender ID can be 1-11 alphanumeric characters including letters (A-Z, a-z), numbers (0-9), or hyphens (-). The sender ID must contain at least one letter and cannot start or end with a hyphen.
-
iso_country_code(IsoCountryCode) –The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
-
message_types(Optional[MessageTypeList], default:None) –The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
-
deletion_protection_enabled(Optional[bool], default:None) –By default this is set to false. When set to true the sender ID can't be deleted.
-
tags(Optional[TagList], default:None) –An array of tags (key and value pairs) to associate with the sender ID.
-
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.
-
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
5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 | |