AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::TrafficMirrorFilter

CfnTrafficMirrorFilter

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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorfilterrule.html) to add Traffic Mirror rules to the filter. The rules you add define what traffic gets mirrored.

Import

import { CfnTrafficMirrorFilter } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnTrafficMirrorFilter

Properties

Configuration passed to the constructor as CfnTrafficMirrorFilterProps.

descriptionOptional
string

The description of the Traffic Mirror filter.

networkServicesOptional
string[]

The network service traffic that is associated with the Traffic Mirror filter. Valid values are `amazon-dns` .

tagsOptional
CfnTag[]

The tags to assign to a Traffic Mirror filter.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic