listConfigurationSets method

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

List all of the configuration sets associated with your account in the current region.

Configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

May throw TooManyRequestsException. May throw BadRequestException.

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

Parameter pageSize : The number of results to show in a single call to ListConfigurationSets. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

Implementation

Future<ListConfigurationSetsResponse> listConfigurationSets({
  String? nextToken,
  int? pageSize,
}) async {
  final $query = <String, List<String>>{
    if (nextToken != null) 'NextToken': [nextToken],
    if (pageSize != null) 'PageSize': [pageSize.toString()],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v2/email/configuration-sets',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListConfigurationSetsResponse.fromJson(response);
}