listStackSetOperationResults method

Future<ListStackSetOperationResultsOutput> listStackSetOperationResults({
  1. required String operationId,
  2. required String stackSetName,
  3. int? maxResults,
  4. String? nextToken,
})

Returns summary information about the results of a stack set operation.

May throw StackSetNotFoundException. May throw OperationNotFoundException.

Parameter operationId : The ID of the stack set operation.

Parameter stackSetName : The name or unique ID of the stack set that you want to get operation results 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 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 ListStackSetOperationResults 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<ListStackSetOperationResultsOutput> listStackSetOperationResults({
  required String operationId,
  required String stackSetName,
  int? maxResults,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(operationId, 'operationId');
  _s.validateStringLength(
    'operationId',
    operationId,
    1,
    128,
    isRequired: true,
  );
  ArgumentError.checkNotNull(stackSetName, 'stackSetName');
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    1,
    1024,
  );
  final $request = <String, dynamic>{};
  $request['OperationId'] = operationId;
  $request['StackSetName'] = stackSetName;
  maxResults?.also((arg) => $request['MaxResults'] = arg);
  nextToken?.also((arg) => $request['NextToken'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'ListStackSetOperationResults',
    version: '2010-05-15',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ListStackSetOperationResultsInput'],
    shapes: shapes,
    resultWrapper: 'ListStackSetOperationResultsResult',
  );
  return ListStackSetOperationResultsOutput.fromXml($result);
}