SES.Client.
list_receipt_rule_sets
(**kwargs)¶Lists the receipt rule sets that exist under your AWS account in the current AWS Region. If there are additional receipt rule sets to be retrieved, you will 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.
See also: AWS API Documentation
Request Syntax
response = client.list_receipt_rule_sets(
NextToken='string'
)
ListReceiptRuleSets
to indicate the position in the receipt rule set list.{
'RuleSets': [
{
'Name': 'string',
'CreatedTimestamp': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
A list of receipt rule sets that exist under your AWS account.
The metadata for the currently active receipt rule set. The metadata consists of the rule set name and the timestamp of when the rule set was created.
Information about a receipt rule set.
A receipt rule set is a collection of rules that specify what Amazon SES should do with mail it receives on behalf of your account's verified domains.
For information about setting up receipt rule sets, see the Amazon SES Developer Guide.
The name of the receipt rule set. The name must:
The date and time the receipt rule set was created.
A token indicating that there are additional receipt rule sets available to be listed. Pass this token to successive calls of ListReceiptRuleSets
to retrieve up to 100 receipt rule sets at a time.
Examples
The following example lists the receipt rule sets that exist under an AWS account:
response = client.list_receipt_rule_sets(
NextToken='',
)
print(response)
Expected Output:
{
'NextToken': '',
'RuleSets': [
{
'CreatedTimestamp': datetime(2016, 7, 15, 16, 25, 59, 4, 197, 0),
'Name': 'MyRuleSet',
},
],
'ResponseMetadata': {
'...': '...',
},
}