getConfigurationSet method

Future<GetConfigurationSetResponse> getConfigurationSet({
  1. required String configurationSetName,
})

Get information about an existing configuration set, including the dedicated IP pool that it's associated with, whether or not it's enabled for sending email, and more.

In Amazon Pinpoint, 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 NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.

Parameter configurationSetName : The name of the configuration set that you want to obtain more information about.

Implementation

Future<GetConfigurationSetResponse> getConfigurationSet({
  required String configurationSetName,
}) async {
  ArgumentError.checkNotNull(configurationSetName, 'configurationSetName');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v1/email/configuration-sets/${Uri.encodeComponent(configurationSetName)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetConfigurationSetResponse.fromJson(response);
}