listChangeSets method
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 AccessDeniedException.
May throw InternalServiceException.
May throw ThrottlingException.
May throw ValidationException.
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 {
_s.validateNumRange(
'maxResults',
maxResults,
1,
20,
);
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);
}