updateAccountSettings method

Future<void> updateAccountSettings({
  1. required String accountId,
  2. required AccountSettings accountSettings,
})

Updates the settings for the specified Amazon Chime account. You can update settings for remote control of shared screens, or for the dial-out option. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide.

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

Parameter accountId : The Amazon Chime account ID.

Parameter accountSettings : The Amazon Chime account settings to update.

Implementation

Future<void> updateAccountSettings({
  required String accountId,
  required AccountSettings accountSettings,
}) async {
  ArgumentError.checkNotNull(accountId, 'accountId');
  ArgumentError.checkNotNull(accountSettings, 'accountSettings');
  final $payload = <String, dynamic>{
    'AccountSettings': accountSettings,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/accounts/${Uri.encodeComponent(accountId)}/settings',
    exceptionFnMap: _exceptionFns,
  );
}