CfnTrafficMirrorFilterRuleMixinProps
- class aws_cdk.cfn_property_mixins.aws_ec2.CfnTrafficMirrorFilterRuleMixinProps(*, description=None, destination_cidr_block=None, destination_port_range=None, protocol=None, rule_action=None, rule_number=None, source_cidr_block=None, source_port_range=None, tags=None, traffic_direction=None, traffic_mirror_filter_id=None)
Bases:
objectProperties for CfnTrafficMirrorFilterRulePropsMixin.
- Parameters:
description (
Optional[str]) – The description of the Traffic Mirror rule.destination_cidr_block (
Optional[str]) – The destination CIDR block to assign to the Traffic Mirror rule.destination_port_range (
Union[IResolvable,TrafficMirrorPortRangeProperty,Dict[str,Any],None]) – The destination port range.protocol (
Union[int,float,None]) – The protocol, for example UDP, to assign to the Traffic Mirror rule. For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.rule_action (
Optional[str]) – The action to take on the filtered traffic.rule_number (
Union[int,float,None]) – The 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.source_cidr_block (
Optional[str]) – The source CIDR block to assign to the Traffic Mirror rule.source_port_range (
Union[IResolvable,TrafficMirrorPortRangeProperty,Dict[str,Any],None]) – The source port range.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – Tags on Traffic Mirroring filter rules.traffic_direction (
Optional[str]) – The type of traffic.traffic_mirror_filter_id (
Optional[str]) – The ID of the filter that this rule is associated with.
- See:
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_ec2 as ec2 cfn_traffic_mirror_filter_rule_mixin_props = ec2.CfnTrafficMirrorFilterRuleMixinProps( description="description", destination_cidr_block="destinationCidrBlock", destination_port_range=ec2.CfnTrafficMirrorFilterRulePropsMixin.TrafficMirrorPortRangeProperty( from_port=123, to_port=123 ), protocol=123, rule_action="ruleAction", rule_number=123, source_cidr_block="sourceCidrBlock", source_port_range=ec2.CfnTrafficMirrorFilterRulePropsMixin.TrafficMirrorPortRangeProperty( from_port=123, to_port=123 ), tags=[CfnTag( key="key", value="value" )], traffic_direction="trafficDirection", traffic_mirror_filter_id="trafficMirrorFilterId" )
Attributes
- description
The description of the Traffic Mirror rule.
- destination_cidr_block
The destination CIDR block to assign to the Traffic Mirror rule.
- destination_port_range
The destination port range.
- protocol
The protocol, for example UDP, to assign to the Traffic Mirror rule.
For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
- rule_action
The action to take on the filtered traffic.
- rule_number
The 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.
- source_cidr_block
The source CIDR block to assign to the Traffic Mirror rule.
- source_port_range
The source port range.
- tags
Tags on Traffic Mirroring filter rules.
- traffic_direction
The type of traffic.
- traffic_mirror_filter_id
The ID of the filter that this rule is associated with.