Skip to main content

aws_waf_xss_match_sets resource

Use the aws_waf_xss_match_sets InSpec audit resource to test the properties of multiple AWS WAF XssMatchSet objects.

For additional information, including details on parameters and properties, see the AWS documentation on the AWS::WAF::XssMatchSet resource.

Syntax

Ensure that any XssMatchSet object exists.

describe aws_waf_xss_match_sets do
  it { should exist }
end

Parameters

This resource does not require any parameters.

Properties

xss_match_set_ids
A unique identifier for an XssMatchSet.

Field: xss_match_set_id

names
The name of the XssMatchSet.

Field: name

Examples

Verify an XssMatchSet object is available by ID:

describe aws_waf_xss_match_sets do
  its('xss_match_set_ids') { should include 'XSS_MATCH_SET_ID' }
end

Verify an XssMatchSet object name is available:

describe aws_waf_xss_match_sets do
    its('names') { should include 'XSS_MATCH_SET_NAME' }
end

Matchers

For a full list of available matchers, see 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_waf_xss_match_sets do
  it { should exist }
end

Use should_not to test the entity does not exist.

describe aws_waf_xss_match_sets do
  it { should_not exist }
end

AWS Permissions

Your AWS principal will need the WAF:Client:ListXssMatchSetsResponse action with Effect set to Allow.

Thank you for your feedback!

×