AWS::EC2::TrafficMirrorFilter - AWS CloudFormation

AWS::EC2::TrafficMirrorFilter

Specifies a Traffic Mirror filter.

A Traffic Mirror filter is a set of rules that defines the traffic to mirror.

By default, no traffic is mirrored. To mirror traffic, use AWS::EC2::TrafficMirrorFilterRule to add Traffic Mirror rules to the filter. The rules you add define what traffic gets mirrored.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::EC2::TrafficMirrorFilter", "Properties" : { "Description" : String, "NetworkServices" : [ String, ... ], "Tags" : [ Tag, ... ] } }

YAML

Type: AWS::EC2::TrafficMirrorFilter Properties: Description: String NetworkServices: - String Tags: - Tag

Properties

Description

The description of the Traffic Mirror filter.

Required: No

Type: String

Update requires: Replacement

NetworkServices

The network service traffic that is associated with the Traffic Mirror filter.

Valid values are amazon-dns.

Required: No

Type: Array of String

Update requires: No interruption

Tags

The tags to assign to a Traffic Mirror filter.

Required: No

Type: Array of Tag

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the ID of the Traffic Mirror filter.

For more information about using the Ref function, see Ref.

Examples

Create a traffic mirror filter

This is a filter that you can use when you create a traffic mirror session. This filter also configures mirroring of Amazon DNS network services.

JSON

{ "SampleTrafficMirrorFilter": { "Type": "AWS::EC2::TrafficMirrorFilter", "Properties": { "Description": "Example traffic mirror filter", "NetworkServices": [ "amazon-dns" ], "Tags": [ { "Key": "Name", "Value": "SampleFilter" } ] } } }

YAML

SampleTrafficMirrorFilter: Type: "AWS::EC2::TrafficMirrorFilter" Properties: Description: "Example traffic mirror filter" NetworkServices: - "amazon-dns" Tags: - Key: "Name" Value: "SampleFilter"

See also