Lists the receipt rule sets that exist under your Amazon Web Services account in the current Amazon Web Services Region. If there are additional receipt rule sets to be retrieved, you receive a NextToken that you can provide to the next call to ListReceiptRuleSets to retrieve the additional entries.
For information about managing receipt rule sets, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
Parameters:
-
next_token
(Optional[NextToken], default:
None
)
–
A token returned from a previous call to ListReceiptRuleSets to indicate the position in the receipt rule set list.
Raises:
Examples:
ListReceiptRuleSets
The following example lists the receipt rule sets that exist under an AWS account:
>>> client.list_receipt_rule_sets(next_token='')
Source code in docs_src/capo_ses/_services/ses.py
| def list_receipt_rule_sets(
self,
*,
config_overrides: Optional[SESClientConfig] = None,
next_token: Optional["capo_ses.types.next_token.NextToken"] = None,
) -> "capo_ses.types.list_receipt_rule_sets_response.ListReceiptRuleSetsResponse":
"""<p>Lists the receipt rule sets that exist under your Amazon Web Services account in the current Amazon Web Services Region. If there are additional receipt rule sets to be retrieved, you receive a <code>NextToken</code> that you can provide to the next call to <code>ListReceiptRuleSets</code> to retrieve the additional entries.</p> <p>For information about managing receipt rule sets, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/receiving-email-receipt-rules-console-walkthrough.html">Amazon SES Developer Guide</a>.</p> <p>You can execute this operation no more than once per second.</p>
Args:
next_token: <p>A token returned from a previous call to <code>ListReceiptRuleSets</code> to indicate the position in the receipt rule set list.</p>
Raises:
capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
ListReceiptRuleSets
The following example lists the receipt rule sets that exist under an AWS account:
>>> client.list_receipt_rule_sets(next_token='')
"""
def _handler(
req: "OperationRequest[capo_ses.types.list_receipt_rule_sets_request.ListReceiptRuleSetsRequest]",
) -> OperationResponse[
"capo_ses.types.list_receipt_rule_sets_response.ListReceiptRuleSetsResponse"
]:
import capo_ses._operations.simple_email_service.list_receipt_rule_sets
output, http_response = (
capo_ses._operations.simple_email_service.list_receipt_rule_sets.list_receipt_rule_sets(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListReceiptRuleSets")
)
input_: capo_ses.types.list_receipt_rule_sets_request.ListReceiptRuleSetsRequest = {}
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|