listStackSets method

Future<ListStackSetsOutput> listStackSets({
  1. int? maxResults,
  2. String? nextToken,
  3. StackSetStatus? status,
})

Returns summary information about stack sets that are associated with the user.

Parameter maxResults : The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

Parameter nextToken : If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call ListStackSets again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.

Parameter status : The status of the stack sets that you want to get summary information about.

Implementation

Future<ListStackSetsOutput> listStackSets({
  int? maxResults,
  String? nextToken,
  StackSetStatus? status,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    1,
    1024,
  );
  final $request = <String, dynamic>{};
  maxResults?.also((arg) => $request['MaxResults'] = arg);
  nextToken?.also((arg) => $request['NextToken'] = arg);
  status?.also((arg) => $request['Status'] = arg.toValue());
  final $result = await _protocol.send(
    $request,
    action: 'ListStackSets',
    version: '2010-05-15',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ListStackSetsInput'],
    shapes: shapes,
    resultWrapper: 'ListStackSetsResult',
  );
  return ListStackSetsOutput.fromXml($result);
}