listChangeSets method

Future<ListChangeSetsOutput> listChangeSets({
  1. required String stackName,
  2. String? nextToken,
})

Returns the ID and status of each active change set for a stack. For example, AWS CloudFormation lists change sets that are in the CREATE_IN_PROGRESS or CREATE_PENDING state.

Parameter stackName : The name or the Amazon Resource Name (ARN) of the stack for which you want to list change sets.

Parameter nextToken : A string (provided by the ListChangeSets response output) that identifies the next page of change sets that you want to retrieve.

Implementation

Future<ListChangeSetsOutput> listChangeSets({
  required String stackName,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(stackName, 'stackName');
  _s.validateStringLength(
    'stackName',
    stackName,
    1,
    1152921504606846976,
    isRequired: true,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    1,
    1024,
  );
  final $request = <String, dynamic>{};
  $request['StackName'] = stackName;
  nextToken?.also((arg) => $request['NextToken'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'ListChangeSets',
    version: '2010-05-15',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ListChangeSetsInput'],
    shapes: shapes,
    resultWrapper: 'ListChangeSetsResult',
  );
  return ListChangeSetsOutput.fromXml($result);
}