listOperations method
- List<
OperationFilter> ? filters, - int? maxResults,
- String? nextToken,
Lists operations that match the criteria that you specify.
May throw InvalidInput.
Parameter filters :
A complex type that contains specifications for the operations that you
want to list, for example, operations that you started between a specified
start date and end date.
If you specify more than one filter, an operation must match all filters
to be returned by ListOperations.
Parameter maxResults :
The maximum number of items that you want AWS Cloud Map to return in the
response to a ListOperations request. If you don't specify a
value for MaxResults, AWS Cloud Map returns up to 100
operations.
Parameter nextToken :
For the first ListOperations request, omit this value.
If the response contains NextToken, submit another
ListOperations request to get the next group of results.
Specify the value of NextToken from the previous response in
the next request.
Implementation
Future<ListOperationsResponse> listOperations({
List<OperationFilter>? filters,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
4096,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53AutoNaming_v20170314.ListOperations'
};
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 ListOperationsResponse.fromJson(jsonResponse.body);
}