listRoleAliases method
Lists the role aliases registered in your account.
May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException.
Parameter ascendingOrder
:
Return the list of role aliases in ascending alphabetical order.
Parameter marker
:
A marker used to get the next set of results.
Parameter pageSize
:
The maximum number of results to return at one time.
Implementation
Future<ListRoleAliasesResponse> listRoleAliases({
bool? ascendingOrder,
String? marker,
int? pageSize,
}) async {
_s.validateStringLength(
'marker',
marker,
0,
1024,
);
_s.validateNumRange(
'pageSize',
pageSize,
1,
250,
);
final $query = <String, List<String>>{
if (ascendingOrder != null)
'isAscendingOrder': [ascendingOrder.toString()],
if (marker != null) 'marker': [marker],
if (pageSize != null) 'pageSize': [pageSize.toString()],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/role-aliases',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListRoleAliasesResponse.fromJson(response);
}