updatePhoneNumberSettings method

Future<void> updatePhoneNumberSettings({
  1. required String callingName,
})

Updates the phone number settings for the administrator's AWS account, such as the default outbound calling name. You can update the default outbound calling name once every seven days. Outbound calling names can take up to 72 hours to update.

May throw UnauthorizedClientException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter callingName : The default outbound calling name for the account.

Implementation

Future<void> updatePhoneNumberSettings({
  required String callingName,
}) async {
  ArgumentError.checkNotNull(callingName, 'callingName');
  final $payload = <String, dynamic>{
    'CallingName': callingName,
  };
  await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/settings/phone-number',
    exceptionFnMap: _exceptionFns,
  );
}