Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

set_receipt_rule_position

set_receipt_rule_position(**kwargs)

Sets the position of the specified receipt rule in the receipt rule set.

For information about managing receipt rules, 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.set_receipt_rule_position(
    RuleSetName='string',
    RuleName='string',
    After='string'
)
Parameters
  • RuleSetName (string) --

    [REQUIRED]

    The name of the receipt rule set that contains the receipt rule to reposition.

  • RuleName (string) --

    [REQUIRED]

    The name of the receipt rule to reposition.

  • After (string) -- The name of the receipt rule after which to place the specified receipt rule.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

    An empty element returned on a successful request.

Exceptions

  • SES.Client.exceptions.RuleSetDoesNotExistException
  • SES.Client.exceptions.RuleDoesNotExistException

Examples

The following example sets the position of a receipt rule in a receipt rule set:

response = client.set_receipt_rule_position(
    After='PutRuleAfterThisRule',
    RuleName='RuleToReposition',
    RuleSetName='MyRuleSet',
)

print(response)

Expected Output:

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