Class CfnTrafficMirrorFilterRule
Creates a Traffic Mirror filter rule.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTrafficMirrorFilterRule : CfnResource, IInspectable, ITaggableV2
Syntax (vb)
Public Class CfnTrafficMirrorFilterRule
Inherits CfnResource
Implements IInspectable, ITaggableV2
Remarks
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
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
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 |
CfnTrafficMirrorFilterRule(Construct, String, ICfnTrafficMirrorFilterRuleProps) |
Properties
AttrId | |
CdkTagManager | Tag Manager which manages the tags for this resource. |
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. |
Tags | Tags on Traffic Mirroring filter rules. |
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(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
CfnTrafficMirrorFilterRule(Construct, String, ICfnTrafficMirrorFilterRuleProps)
public CfnTrafficMirrorFilterRule(Construct scope, string id, ICfnTrafficMirrorFilterRuleProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnTrafficMirrorFilterRuleProps
Resource properties.
Properties
AttrId
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
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
DestinationCidrBlock
The destination CIDR block to assign to the Traffic Mirror rule.
public virtual string DestinationCidrBlock { get; set; }
Property Value
System.String
DestinationPortRange
The destination port range.
public virtual object DestinationPortRange { get; set; }
Property Value
System.Object
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>
RuleAction
The action to take on the filtered traffic.
public virtual string RuleAction { get; set; }
Property Value
System.String
RuleNumber
The number of the Traffic Mirror rule.
public virtual double RuleNumber { get; set; }
Property Value
System.Double
SourceCidrBlock
The source CIDR block to assign to the Traffic Mirror rule.
public virtual string SourceCidrBlock { get; set; }
Property Value
System.String
SourcePortRange
The source port range.
public virtual object SourcePortRange { get; set; }
Property Value
System.Object
Tags
Tags on Traffic Mirroring filter rules.
public virtual ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
TrafficDirection
The type of traffic.
public virtual string TrafficDirection { get; set; }
Property Value
System.String
TrafficMirrorFilterId
The ID of the filter that this rule is associated with.
public virtual string TrafficMirrorFilterId { get; set; }
Property Value
System.String
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>