listApps method
Lists apps.
Parameter domainIdEquals
:
A parameter to search for the domain ID.
Parameter maxResults
:
Returns a list up to a specified limit.
Parameter nextToken
:
If the previous response was truncated, you will receive this token. Use
it in your next request to receive the next set of results.
Parameter sortBy
:
The parameter by which to sort the results. The default is CreationTime.
Parameter sortOrder
:
The sort order for the results. The default is Ascending.
Parameter userProfileNameEquals
:
A parameter to search by user profile name.
Implementation
Future<ListAppsResponse> listApps({
String? domainIdEquals,
int? maxResults,
String? nextToken,
AppSortKey? sortBy,
SortOrder? sortOrder,
String? userProfileNameEquals,
}) async {
_s.validateStringLength(
'domainIdEquals',
domainIdEquals,
0,
63,
);
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
8192,
);
_s.validateStringLength(
'userProfileNameEquals',
userProfileNameEquals,
0,
63,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.ListApps'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (domainIdEquals != null) 'DomainIdEquals': domainIdEquals,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
if (sortBy != null) 'SortBy': sortBy.toValue(),
if (sortOrder != null) 'SortOrder': sortOrder.toValue(),
if (userProfileNameEquals != null)
'UserProfileNameEquals': userProfileNameEquals,
},
);
return ListAppsResponse.fromJson(jsonResponse.body);
}