listChangeSets method

Future<ListChangeSetsResponse> listChangeSets({
  1. required String catalog,
  2. List<Filter>? filterList,
  3. int? maxResults,
  4. String? nextToken,
  5. Sort? sort,
})

Returns the list of change sets owned by the account being used to make the call. You can filter this list by providing any combination of entityId, ChangeSetName, and status. If you provide more than one filter, the API operation applies a logical AND between the filters.

You can describe a change during the 60-day request history retention period for API calls.

May throw InternalServiceException. May throw AccessDeniedException. May throw ValidationException. May throw ThrottlingException.

Parameter catalog : The catalog related to the request. Fixed value: AWSMarketplace

Parameter filterList : An array of filter objects.

Parameter maxResults : The maximum number of results returned by a single call. This value must be provided in the next call to retrieve the next set of results. By default, this value is 20.

Parameter nextToken : The token value retrieved from a previous call to access the next page of results.

Parameter sort : An object that contains two attributes, SortBy and SortOrder.

Implementation

Future<ListChangeSetsResponse> listChangeSets({
  required String catalog,
  List<Filter>? filterList,
  int? maxResults,
  String? nextToken,
  Sort? sort,
}) async {
  ArgumentError.checkNotNull(catalog, 'catalog');
  _s.validateStringLength(
    'catalog',
    catalog,
    1,
    64,
    isRequired: true,
  );
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    20,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    1,
    2048,
  );
  final $payload = <String, dynamic>{
    'Catalog': catalog,
    if (filterList != null) 'FilterList': filterList,
    if (maxResults != null) 'MaxResults': maxResults,
    if (nextToken != null) 'NextToken': nextToken,
    if (sort != null) 'Sort': sort,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/ListChangeSets',
    exceptionFnMap: _exceptionFns,
  );
  return ListChangeSetsResponse.fromJson(response);
}