Class CfnTrafficMirrorSession
Creates a Traffic Mirror session.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTrafficMirrorSession : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnTrafficMirrorSession Inherits CfnResource Implements IInspectable, ITaggable
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
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 cfnTrafficMirrorSession = new CfnTrafficMirrorSession(this, "MyCfnTrafficMirrorSession", new CfnTrafficMirrorSessionProps {
NetworkInterfaceId = "networkInterfaceId",
SessionNumber = 123,
TrafficMirrorFilterId = "trafficMirrorFilterId",
TrafficMirrorTargetId = "trafficMirrorTargetId",
// the properties below are optional
Description = "description",
PacketLength = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VirtualNetworkId = 123
});
Synopsis
Constructors
CfnTrafficMirrorSession(Construct, string, ICfnTrafficMirrorSessionProps) | Creates a Traffic Mirror session. |
Properties
AttrId | Creates a Traffic Mirror session. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | Creates a Traffic Mirror session. |
Description | The description of the Traffic Mirror session. |
NetworkInterfaceId | The ID of the source network interface. |
PacketLength | The number of bytes in each packet to mirror. |
SessionNumber | The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | The tags to assign to a Traffic Mirror session. |
TrafficMirrorFilterId | The ID of the Traffic Mirror filter. |
TrafficMirrorTargetId | The ID of the Traffic Mirror target. |
VirtualNetworkId | The VXLAN ID for the Traffic Mirror session. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<string, object>) | Creates a Traffic Mirror session. |
Constructors
CfnTrafficMirrorSession(Construct, string, ICfnTrafficMirrorSessionProps)
Creates a Traffic Mirror session.
public CfnTrafficMirrorSession(Construct scope, string id, ICfnTrafficMirrorSessionProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnTrafficMirrorSessionProps
Resource properties.
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
Properties
AttrId
Creates a Traffic Mirror session.
public virtual string AttrId { get; }
Property Value
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
CfnProperties
Creates a Traffic Mirror session.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
Description
The description of the Traffic Mirror session.
public virtual string? Description { get; set; }
Property Value
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
NetworkInterfaceId
The ID of the source network interface.
public virtual string NetworkInterfaceId { get; set; }
Property Value
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
PacketLength
The number of bytes in each packet to mirror.
public virtual double? PacketLength { get; set; }
Property Value
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
SessionNumber
The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions.
public virtual double SessionNumber { get; set; }
Property Value
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
TagsRaw
The tags to assign to a Traffic Mirror session.
public virtual ICfnTag[]? TagsRaw { get; set; }
Property Value
ICfnTag[]
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
TrafficMirrorFilterId
The ID of the Traffic Mirror filter.
public virtual string TrafficMirrorFilterId { get; set; }
Property Value
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
TrafficMirrorTargetId
The ID of the Traffic Mirror target.
public virtual string TrafficMirrorTargetId { get; set; }
Property Value
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
VirtualNetworkId
The VXLAN ID for the Traffic Mirror session.
public virtual double? VirtualNetworkId { get; set; }
Property Value
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
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.
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Creates a Traffic Mirror session.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use AWS::EC2::TrafficMirrorFilterRule to specify filter rules that specify the traffic to mirror.
CloudformationResource: AWS::EC2::TrafficMirrorSession
ExampleMetadata: fixture=_generated