Provides a list of the configuration sets associated with your Amazon SES account in the current Amazon Web Services 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 returns 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 also returns NextToken. You can then execute the ListConfigurationSets operation again, passing the NextToken parameter and the value of the NextToken element to retrieve additional results.
Parameters:
-
next_token
(Optional[NextToken], default:
None
)
–
A token returned from a previous call to ListConfigurationSets to indicate the position of the configuration set in the configuration set list.
-
max_items
(Optional[MaxItems], default:
None
)
–
The number of configuration sets to return.
Raises:
Source code in docs_src/capo_ses/_services/ses.py
| def list_configuration_sets(
self,
*,
config_overrides: Optional[SESClientConfig] = None,
next_token: Optional["capo_ses.types.next_token.NextToken"] = None,
max_items: Optional["capo_ses.types.max_items.MaxItems"] = None,
) -> (
"capo_ses.types.list_configuration_sets_response.ListConfigurationSetsResponse"
):
"""<p>Provides a list of the configuration sets associated with your Amazon SES account in the current Amazon Web Services Region. For information about using configuration sets, see <a href="https://docs.aws.amazon.com/ses/latest/dg/monitor-sending-activity.html">Monitoring Your Amazon SES Sending Activity</a> in the <i>Amazon SES Developer Guide.</i> </p> <p>You can execute this operation no more than once per second. This operation returns 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 also returns <code>NextToken</code>. You can then execute the <code>ListConfigurationSets</code> operation again, passing the <code>NextToken</code> parameter and the value of the NextToken element to retrieve additional results.</p>
Args:
next_token: <p>A token returned from a previous call to <code>ListConfigurationSets</code> to indicate the position of the configuration set in the configuration set list.</p>
max_items: <p>The number of configuration sets to return.</p>
Raises:
capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ses.types.list_configuration_sets_request.ListConfigurationSetsRequest]",
) -> OperationResponse[
"capo_ses.types.list_configuration_sets_response.ListConfigurationSetsResponse"
]:
import capo_ses._operations.simple_email_service.list_configuration_sets
output, http_response = (
capo_ses._operations.simple_email_service.list_configuration_sets.list_configuration_sets(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListConfigurationSets")
)
input_: capo_ses.types.list_configuration_sets_request.ListConfigurationSetsRequest = {}
if next_token is not None:
input_["next_token"] = next_token
if max_items is not None:
input_["max_items"] = max_items
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|