getAccount method

Future<GetAccountResponse> getAccount({
  1. required String accountId,
})

Retrieves details for the specified Amazon Chime account, such as account type and supported licenses.

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.

Implementation

Future<GetAccountResponse> getAccount({
  required String accountId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/accounts/${Uri.encodeComponent(accountId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetAccountResponse.fromJson(response);
}