listUserProfiles method
Lists all the user profiles configured for your AWS account in AWS CodeStar.
May throw InvalidNextTokenException. May throw ValidationException.
Parameter maxResults
:
The maximum number of results to return in a response.
Parameter nextToken
:
The continuation token for the next set of results, if the results cannot
be returned in one response.
Implementation
Future<ListUserProfilesResult> listUserProfiles({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
_s.validateStringLength(
'nextToken',
nextToken,
1,
512,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeStar_20170419.ListUserProfiles'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
},
);
return ListUserProfilesResult.fromJson(jsonResponse.body);
}