SES / Client / delete_receipt_rule

delete_receipt_rule#

SES.Client.delete_receipt_rule(**kwargs)#

Deletes the specified receipt rule.

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.delete_receipt_rule(
    RuleSetName='string',
    RuleName='string'
)
Parameters:
  • RuleSetName (string) –

    [REQUIRED]

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

  • RuleName (string) –

    [REQUIRED]

    The name of the receipt rule to delete.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    An empty element returned on a successful request.

Exceptions

  • SES.Client.exceptions.RuleSetDoesNotExistException

Examples

The following example deletes a receipt rule:

response = client.delete_receipt_rule(
    RuleName='MyRule',
    RuleSetName='MyRuleSet',
)

print(response)

Expected Output:

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