listStackSetOperations method

Future<ListStackSetOperationsOutput> listStackSetOperations({
  1. required String stackSetName,
  2. int? maxResults,
  3. String? nextToken,
})

Returns summary information about operations performed on a stack set.

May throw StackSetNotFoundException.

Parameter stackSetName : The name or unique ID of the stack set that you want to get operation summaries for.

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 ListStackSetOperations 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.

Implementation

Future<ListStackSetOperationsOutput> listStackSetOperations({
  required String stackSetName,
  int? maxResults,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(stackSetName, 'stackSetName');
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    1,
    1024,
  );
  final $request = <String, dynamic>{};
  $request['StackSetName'] = stackSetName;
  maxResults?.also((arg) => $request['MaxResults'] = arg);
  nextToken?.also((arg) => $request['NextToken'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'ListStackSetOperations',
    version: '2010-05-15',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ListStackSetOperationsInput'],
    shapes: shapes,
    resultWrapper: 'ListStackSetOperationsResult',
  );
  return ListStackSetOperationsOutput.fromXml($result);
}