getAccount method
Retrieves details for the specified Amazon Chime account, such as account type and supported licenses.
May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter accountId
:
The Amazon Chime account ID.
Implementation
Future<GetAccountResponse> getAccount({
required String accountId,
}) async {
ArgumentError.checkNotNull(accountId, 'accountId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/accounts/${Uri.encodeComponent(accountId)}',
exceptionFnMap: _exceptionFns,
);
return GetAccountResponse.fromJson(response);
}