searchSystemTemplates method
Future<SearchSystemTemplatesResponse>
searchSystemTemplates({
- List<
SystemTemplateFilter> ? filters, - int? maxResults,
- String? nextToken,
Searches for summary information about systems in the user's account. You can filter by the ID of a workflow to return only systems that use the specified workflow.
May throw InvalidRequestException. May throw ThrottlingException. May throw InternalFailureException.
Parameter filters
:
An array of filters that limit the result set. The only valid filter is
FLOW_TEMPLATE_ID
.
Parameter maxResults
:
The maximum number of results to return in the response.
Parameter nextToken
:
The string that specifies the next page of results. Use this when you're
paginating results.
Implementation
Future<SearchSystemTemplatesResponse> searchSystemTemplates({
List<SystemTemplateFilter>? filters,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
250,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'IotThingsGraphFrontEndService.SearchSystemTemplates'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (filters != null) 'filters': filters,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
},
);
return SearchSystemTemplatesResponse.fromJson(jsonResponse.body);
}