updateUserSettings method

Future<void> updateUserSettings({
  1. required String accountId,
  2. required String userId,
  3. required UserSettings userSettings,
})

Updates the settings for the specified user, such as phone number settings.

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

Parameter accountId : The Amazon Chime account ID.

Parameter userId : The user ID.

Parameter userSettings : The user settings to update.

Implementation

Future<void> updateUserSettings({
  required String accountId,
  required String userId,
  required UserSettings userSettings,
}) async {
  final $payload = <String, dynamic>{
    'UserSettings': userSettings,
  };
  await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/accounts/${Uri.encodeComponent(accountId)}/users/${Uri.encodeComponent(userId)}/settings',
    exceptionFnMap: _exceptionFns,
  );
}