interface CfnTrafficMirrorFilterRuleProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.CfnTrafficMirrorFilterRuleProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnTrafficMirrorFilterRuleProps |
![]() | software.amazon.awscdk.services.ec2.CfnTrafficMirrorFilterRuleProps |
![]() | aws_cdk.aws_ec2.CfnTrafficMirrorFilterRuleProps |
![]() | aws-cdk-lib » aws_ec2 » CfnTrafficMirrorFilterRuleProps |
Properties for defining a CfnTrafficMirrorFilterRule
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnTrafficMirrorFilterRuleProps: ec2.CfnTrafficMirrorFilterRuleProps = {
destinationCidrBlock: 'destinationCidrBlock',
ruleAction: 'ruleAction',
ruleNumber: 123,
sourceCidrBlock: 'sourceCidrBlock',
trafficDirection: 'trafficDirection',
trafficMirrorFilterId: 'trafficMirrorFilterId',
// the properties below are optional
description: 'description',
destinationPortRange: {
fromPort: 123,
toPort: 123,
},
protocol: 123,
sourcePortRange: {
fromPort: 123,
toPort: 123,
},
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
destination | string | The destination CIDR block to assign to the Traffic Mirror rule. |
rule | string | The action to take on the filtered traffic. |
rule | number | The number of the Traffic Mirror rule. |
source | string | The source CIDR block to assign to the Traffic Mirror rule. |
traffic | string | The type of traffic. |
traffic | string | The ID of the filter that this rule is associated with. |
description? | string | The description of the Traffic Mirror rule. |
destination | IResolvable | Traffic | The destination port range. |
protocol? | number | The protocol, for example UDP, to assign to the Traffic Mirror rule. |
source | IResolvable | Traffic | The source port range. |
tags? | Cfn [] | Tags on Traffic Mirroring filter rules. |
destinationCidrBlock
Type:
string
The destination CIDR block to assign to the Traffic Mirror rule.
ruleAction
Type:
string
The action to take on the filtered traffic.
ruleNumber
Type:
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.
sourceCidrBlock
Type:
string
The source CIDR block to assign to the Traffic Mirror rule.
trafficDirection
Type:
string
The type of traffic.
trafficMirrorFilterId
Type:
string
The ID of the filter that this rule is associated with.
description?
Type:
string
(optional)
The description of the Traffic Mirror rule.
destinationPortRange?
Type:
IResolvable
|
Traffic
(optional)
The destination port range.
protocol?
Type:
number
(optional)
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.
sourcePortRange?
Type:
IResolvable
|
Traffic
(optional)
The source port range.
tags?
Type:
Cfn
[]
(optional)
Tags on Traffic Mirroring filter rules.