Interface ICfnTrafficMirrorFilterRuleProps
Properties for defining a CfnTrafficMirrorFilterRule
.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface ICfnTrafficMirrorFilterRuleProps
Syntax (vb)
Public Interface ICfnTrafficMirrorFilterRuleProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnTrafficMirrorFilterRuleProps = new CfnTrafficMirrorFilterRuleProps {
DestinationCidrBlock = "destinationCidrBlock",
RuleAction = "ruleAction",
RuleNumber = 123,
SourceCidrBlock = "sourceCidrBlock",
TrafficDirection = "trafficDirection",
TrafficMirrorFilterId = "trafficMirrorFilterId",
// the properties below are optional
Description = "description",
DestinationPortRange = new TrafficMirrorPortRangeProperty {
FromPort = 123,
ToPort = 123
},
Protocol = 123,
SourcePortRange = new TrafficMirrorPortRangeProperty {
FromPort = 123,
ToPort = 123
}
};
Synopsis
Properties
Description | The description of the Traffic Mirror rule. |
DestinationCidrBlock | The destination CIDR block to assign to the Traffic Mirror rule. |
DestinationPortRange | The destination port range. |
Protocol | The protocol, for example UDP, to assign to the Traffic Mirror rule. |
RuleAction | The action to take on the filtered traffic. |
RuleNumber | The number of the Traffic Mirror rule. |
SourceCidrBlock | The source CIDR block to assign to the Traffic Mirror rule. |
SourcePortRange | The source port range. |
TrafficDirection | The type of traffic. |
TrafficMirrorFilterId | The ID of the filter that this rule is associated with. |
Properties
Description
The description of the Traffic Mirror rule.
virtual string Description { get; }
Property Value
System.String
Remarks
DestinationCidrBlock
The destination CIDR block to assign to the Traffic Mirror rule.
string DestinationCidrBlock { get; }
Property Value
System.String
Remarks
DestinationPortRange
The destination port range.
virtual object DestinationPortRange { get; }
Property Value
System.Object
Remarks
Protocol
The protocol, for example UDP, to assign to the Traffic Mirror rule.
virtual Nullable<double> Protocol { get; }
Property Value
System.Nullable<System.Double>
Remarks
For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
RuleAction
The action to take on the filtered traffic.
string RuleAction { get; }
Property Value
System.String
Remarks
RuleNumber
The number of the Traffic Mirror rule.
double RuleNumber { get; }
Property Value
System.Double
Remarks
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
The source CIDR block to assign to the Traffic Mirror rule.
string SourceCidrBlock { get; }
Property Value
System.String
Remarks
SourcePortRange
The source port range.
virtual object SourcePortRange { get; }
Property Value
System.Object
Remarks
TrafficDirection
The type of traffic.
string TrafficDirection { get; }
Property Value
System.String
Remarks
TrafficMirrorFilterId
The ID of the filter that this rule is associated with.
string TrafficMirrorFilterId { get; }
Property Value
System.String