SES / Client / reorder_receipt_rule_set

reorder_receipt_rule_set#

SES.Client.reorder_receipt_rule_set(**kwargs)#

Reorders the receipt rules within a receipt rule set.

Note

All of the rules in the rule set must be represented in this request. That is, it is error if the reorder request doesn’t explicitly position all of the rules.

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.reorder_receipt_rule_set(
    RuleSetName='string',
    RuleNames=[
        'string',
    ]
)
Parameters:
  • RuleSetName (string) –

    [REQUIRED]

    The name of the receipt rule set to reorder.

  • RuleNames (list) –

    [REQUIRED]

    The specified receipt rule set’s receipt rules, in order.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    An empty element returned on a successful request.

Exceptions

Examples

The following example reorders the receipt rules within a receipt rule set:

response = client.reorder_receipt_rule_set(
    RuleNames=[
        'MyRule',
        'MyOtherRule',
    ],
    RuleSetName='MyRuleSet',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}