Class CfnTrafficMirrorFilterRule
A CloudFormation AWS::EC2::TrafficMirrorFilterRule
.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnTrafficMirrorFilterRule : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnTrafficMirrorFilterRule
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Creates 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.
CloudformationResource: AWS::EC2::TrafficMirrorFilterRule
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 cfnTrafficMirrorFilterRule = new CfnTrafficMirrorFilterRule(this, "MyCfnTrafficMirrorFilterRule", 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
Constructors
CfnTrafficMirrorFilterRule(Construct, String, ICfnTrafficMirrorFilterRuleProps) | Create a new |
CfnTrafficMirrorFilterRule(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnTrafficMirrorFilterRule(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
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. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnTrafficMirrorFilterRule(Construct, String, ICfnTrafficMirrorFilterRuleProps)
Create a new AWS::EC2::TrafficMirrorFilterRule
.
public CfnTrafficMirrorFilterRule(Construct scope, string id, ICfnTrafficMirrorFilterRuleProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnTrafficMirrorFilterRuleProps
- resource properties.
CfnTrafficMirrorFilterRule(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnTrafficMirrorFilterRule(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnTrafficMirrorFilterRule(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnTrafficMirrorFilterRule(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Description
The description of the Traffic Mirror rule.
public virtual string Description { get; set; }
Property Value
System.String
Remarks
DestinationCidrBlock
The destination CIDR block to assign to the Traffic Mirror rule.
public virtual string DestinationCidrBlock { get; set; }
Property Value
System.String
Remarks
DestinationPortRange
The destination port range.
public virtual object DestinationPortRange { get; set; }
Property Value
System.Object
Remarks
Protocol
The protocol, for example UDP, to assign to the Traffic Mirror rule.
public virtual Nullable<double> Protocol { get; set; }
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.
public virtual string RuleAction { get; set; }
Property Value
System.String
Remarks
RuleNumber
The number of the Traffic Mirror rule.
public virtual double RuleNumber { get; set; }
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.
public virtual string SourceCidrBlock { get; set; }
Property Value
System.String
Remarks
SourcePortRange
The source port range.
public virtual object SourcePortRange { get; set; }
Property Value
System.Object
Remarks
TrafficDirection
The type of traffic.
public virtual string TrafficDirection { get; set; }
Property Value
System.String
Remarks
TrafficMirrorFilterId
The ID of the filter that this rule is associated with.
public virtual string TrafficMirrorFilterId { get; set; }
Property Value
System.String
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>