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.

delete_receipt_rule

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': {
        '...': '...',
    },
}