listConfigurationSets method

Future<ListConfigurationSetsResponse> listConfigurationSets({
  1. int? maxItems,
  2. String? nextToken,
})

Provides a list of the configuration sets associated with your Amazon SES account in the current AWS Region. For information about using configuration sets, see Monitoring Your Amazon SES Sending Activity in the Amazon SES Developer Guide.

You can execute this operation no more than once per second. This operation will return up to 1,000 configuration sets each time it is run. If your Amazon SES account has more than 1,000 configuration sets, this operation will also return a NextToken element. You can then execute the ListConfigurationSets operation again, passing the NextToken parameter and the value of the NextToken element to retrieve additional results.

Parameter maxItems : The number of configuration sets to return.

Parameter nextToken : A token returned from a previous call to ListConfigurationSets to indicate the position of the configuration set in the configuration set list.

Implementation

Future<ListConfigurationSetsResponse> listConfigurationSets({
  int? maxItems,
  String? nextToken,
}) async {
  final $request = <String, dynamic>{};
  maxItems?.also((arg) => $request['MaxItems'] = arg);
  nextToken?.also((arg) => $request['NextToken'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'ListConfigurationSets',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ListConfigurationSetsRequest'],
    shapes: shapes,
    resultWrapper: 'ListConfigurationSetsResult',
  );
  return ListConfigurationSetsResponse.fromXml($result);
}