ChimeSDKVoice / Client / batch_update_phone_number
batch_update_phone_number#
- ChimeSDKVoice.Client.batch_update_phone_number(**kwargs)#
See also: AWS API Documentation
Request Syntax
response = client.batch_update_phone_number( UpdatePhoneNumberRequestItems=[ { 'PhoneNumberId': 'string', 'ProductType': 'VoiceConnector'|'SipMediaApplicationDialIn', 'CallingName': 'string' }, ] )
- Parameters:
UpdatePhoneNumberRequestItems (list) –
[REQUIRED]
(dict) –
PhoneNumberId (string) – [REQUIRED]
ProductType (string) –
CallingName (string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'PhoneNumberErrors': [ { 'PhoneNumberId': 'string', 'ErrorCode': 'BadRequest'|'Conflict'|'Forbidden'|'NotFound'|'PreconditionFailed'|'ResourceLimitExceeded'|'ServiceFailure'|'AccessDenied'|'ServiceUnavailable'|'Throttled'|'Throttling'|'Unauthorized'|'Unprocessable'|'VoiceConnectorGroupAssociationsExist'|'PhoneNumberAssociationsExist'|'Gone', 'ErrorMessage': 'string' }, ] }
Response Structure
(dict) –
PhoneNumberErrors (list) –
(dict) –
PhoneNumberId (string) –
ErrorCode (string) –
ErrorMessage (string) –
Exceptions
ChimeSDKVoice.Client.exceptions.UnauthorizedClientExceptionChimeSDKVoice.Client.exceptions.NotFoundExceptionChimeSDKVoice.Client.exceptions.ForbiddenExceptionChimeSDKVoice.Client.exceptions.BadRequestExceptionChimeSDKVoice.Client.exceptions.ThrottledClientExceptionChimeSDKVoice.Client.exceptions.ServiceUnavailableExceptionChimeSDKVoice.Client.exceptions.ServiceFailureException