update_phone_number
¶
update_phone_number(
phone_number_id: SensitiveNonEmptyString,
*,
config_overrides: Optional[ChimeSDKVoiceClientConfig] = None,
product_type: Optional[PhoneNumberProductType] = None,
calling_name: Optional[CallingName] = None,
name: Optional[PhoneNumberName] = None,
) -> UpdatePhoneNumberResponse
Updates phone number details, such as product type, calling name, or phone number name for the specified phone number ID. You can update one phone number detail at a time. For example, you can update either the product type, calling name, or phone number name in one action.
For numbers outside the U.S., you must use the Amazon Chime SDK SIP Media Application Dial-In product type.
Updates to outbound calling names can take 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update.
Parameters:
-
phone_number_id(SensitiveNonEmptyString) –The phone number ID.
-
product_type(Optional[PhoneNumberProductType], default:None) –The product type.
-
calling_name(Optional[CallingName], default:None) –The outbound calling name associated with the phone number.
-
name(Optional[PhoneNumberName], default:None) –Specifies the updated name assigned to one or more phone numbers.
Raises:
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ConflictException–Multiple instances of the same request were made simultaneously.
-
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/chime_sdk_voice.py
6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 | |