Skip to main content

aws_ses_receipt_rule_sets Resource

[edit on GitHub]

Use the aws_ses_receipt_rule_sets InSpec audit resource to test properties of multiple AWS Simple Email Service (SES) receipt rule sets.

The AWS::SES::ReceiptRuleSet resource specifies a receipt rule set.

For additional information, including details on parameters and properties, see the AWS documentation on AWS SES ReceiptRuleSet.

Installation

This resource is available in the Chef InSpec AWS resource pack.

See the Chef InSpec documentation on cloud platforms for information on configuring your AWS environment for InSpec and creating an InSpec profile that uses the InSpec AWS resource pack.

Syntax

Ensure that the rule set exists.

describe aws_ses_receipt_rule_sets do
  it { should exist }
end

Parameters

This resource does not require any parameters.

Properties

names
The name of the receipt rule set.

Field: name

created_timestamps
The date and time the receipt rule set was created.

Field: created_timestamp

Examples

Ensure a rule set name is available.

describe aws_ses_receipt_rule_sets do
  its('names') { should include 'RULE_SET_NAME' }
end

Matchers

This InSpec audit resource has the following special matchers. For a full list of available matchers, please visit our Universal Matchers page.

The controls will pass if the list method returns at least one result.

exist

Use should to test that the entity exists.

describe aws_ses_receipt_rule_sets do
  it { should exist }
end

Use should_not to test the entity does not exist.

describe aws_ses_receipt_rule_sets do
  it { should_not exist }
end

AWS Permissions

Your Principal will need the SES:Client:ListReceiptRuleSetsResponse action with Effect set to Allow.

Was this page helpful?

×









Search Results