AWS::EC2::TrafficMirrorFilterRuleCreates a Traffic Mirror filter rule. A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror. You need the Traffic Mirror filter ID when you create the rule.
import { CfnTrafficMirrorFilterRule } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnTrafficMirrorFilterRuleConfiguration passed to the constructor as CfnTrafficMirrorFilterRuleProps.
destinationCidrBlockRequiredstringThe destination CIDR block to assign to the Traffic Mirror rule.
ruleActionRequiredstringThe action to take on the filtered traffic.
ruleNumberRequirednumberThe number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.
sourceCidrBlockRequiredstringThe source CIDR block to assign to the Traffic Mirror rule.
trafficDirectionRequiredstringThe type of traffic.
trafficMirrorFilterIdRequiredstringThe ID of the filter that this rule is associated with.
descriptionOptionalstringThe description of the Traffic Mirror rule.
destinationPortRangeOptionalIResolvable | TrafficMirrorPortRangePropertyThe destination port range.
protocolOptionalnumberThe protocol, for example UDP, to assign to the Traffic Mirror rule. For information about the protocol value, see [Protocol Numbers](https://docs.aws.amazon.com/https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml) on the Internet Assigned Numbers Authority (IANA) website.
sourcePortRangeOptionalIResolvable | TrafficMirrorPortRangePropertyThe source port range.
tagsOptionalCfnTag[]Tags on Traffic Mirroring filter rules.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2AWS::EC2::TrafficMirrorFilterRule