listProfiles method

Future<ListProfilesResponse> listProfiles({
  1. String? nextToken,
  2. int? pageSize,
})

Lists all profiles in the authenticated account and Amazon Web Services Region.

Required permissions: rolesanywhere:ListProfiles.

May throw AccessDeniedException. May throw ValidationException.

Parameter nextToken : A token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.

Parameter pageSize : The number of resources in the paginated list.

Implementation

Future<ListProfilesResponse> listProfiles({
  String? nextToken,
  int? pageSize,
}) async {
  final $query = <String, List<String>>{
    if (nextToken != null) 'nextToken': [nextToken],
    if (pageSize != null) 'pageSize': [pageSize.toString()],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/profiles',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListProfilesResponse.fromJson(response);
}