Provides an SES receipt filter resource
resource "aws_ses_receipt_filter" "filter" {
name = "block-spammer"
cidr = "10.10.10.10"
policy = "Block"
}
This resource supports the following arguments:
name
- (Required) The name of the filtercidr
- (Required) The IP address or address range to filter, in CIDR notationpolicy
- (Required) Block or AllowThis resource exports the following attributes in addition to the arguments above:
id
- The SES receipt filter name.arn
- The SES receipt filter ARN.In Terraform v1.5.0 and later, use an import
block to import SES Receipt Filter using their name
. For example:
import {
to = aws_ses_receipt_filter.test
id = "some-filter"
}
Using terraform import
, import SES Receipt Filter using their name
. For example:
% terraform import aws_ses_receipt_filter.test some-filter