Class CfnTrafficMirrorSessionPropsMixin
Creates a Traffic Mirror session.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.EC2
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnTrafficMirrorSessionPropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnTrafficMirrorSessionPropsMixin Inherits Mixin Implements IMixin
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
Mixin: true
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.CfnPropertyMixins.AWS.EC2;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnTrafficMirrorSessionPropsMixin = new CfnTrafficMirrorSessionPropsMixin(new CfnTrafficMirrorSessionMixinProps {
Description = "description",
NetworkInterfaceId = "networkInterfaceId",
OwnerId = "ownerId",
PacketLength = 123,
SessionNumber = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TrafficMirrorFilterId = "trafficMirrorFilterId",
TrafficMirrorTargetId = "trafficMirrorTargetId",
VirtualNetworkId = 123
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Synopsis
Constructors
| CfnTrafficMirrorSessionPropsMixin(ICfnTrafficMirrorSessionMixinProps, ICfnPropertyMixinOptions?) | Create a mixin to apply properties to |
Properties
| CFN_PROPERTY_KEYS | Creates a Traffic Mirror session. |
| Props | Creates a Traffic Mirror session. |
| Strategy | Creates a Traffic Mirror session. |
Methods
| ApplyTo(IConstruct) | Apply the mixin properties to the construct. |
| Supports(IConstruct) | Check if this mixin supports the given construct. |
Constructors
CfnTrafficMirrorSessionPropsMixin(ICfnTrafficMirrorSessionMixinProps, ICfnPropertyMixinOptions?)
Create a mixin to apply properties to AWS::EC2::TrafficMirrorSession.
public CfnTrafficMirrorSessionPropsMixin(ICfnTrafficMirrorSessionMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
- props ICfnTrafficMirrorSessionMixinProps
L1 properties to apply.
- options ICfnPropertyMixinOptions
Mixin options.
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
Mixin: true
ExampleMetadata: fixture=_generated
Properties
CFN_PROPERTY_KEYS
Creates a Traffic Mirror session.
protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value
string[]
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
Mixin: true
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.CfnPropertyMixins.AWS.EC2;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnTrafficMirrorSessionPropsMixin = new CfnTrafficMirrorSessionPropsMixin(new CfnTrafficMirrorSessionMixinProps {
Description = "description",
NetworkInterfaceId = "networkInterfaceId",
OwnerId = "ownerId",
PacketLength = 123,
SessionNumber = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TrafficMirrorFilterId = "trafficMirrorFilterId",
TrafficMirrorTargetId = "trafficMirrorTargetId",
VirtualNetworkId = 123
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Props
Creates a Traffic Mirror session.
protected virtual ICfnTrafficMirrorSessionMixinProps Props { get; }
Property Value
ICfnTrafficMirrorSessionMixinProps
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
Mixin: true
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.CfnPropertyMixins.AWS.EC2;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnTrafficMirrorSessionPropsMixin = new CfnTrafficMirrorSessionPropsMixin(new CfnTrafficMirrorSessionMixinProps {
Description = "description",
NetworkInterfaceId = "networkInterfaceId",
OwnerId = "ownerId",
PacketLength = 123,
SessionNumber = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TrafficMirrorFilterId = "trafficMirrorFilterId",
TrafficMirrorTargetId = "trafficMirrorTargetId",
VirtualNetworkId = 123
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Strategy
Creates a Traffic Mirror session.
protected virtual IMergeStrategy Strategy { 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
Mixin: true
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.CfnPropertyMixins.AWS.EC2;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnTrafficMirrorSessionPropsMixin = new CfnTrafficMirrorSessionPropsMixin(new CfnTrafficMirrorSessionMixinProps {
Description = "description",
NetworkInterfaceId = "networkInterfaceId",
OwnerId = "ownerId",
PacketLength = 123,
SessionNumber = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TrafficMirrorFilterId = "trafficMirrorFilterId",
TrafficMirrorTargetId = "trafficMirrorTargetId",
VirtualNetworkId = 123
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Methods
ApplyTo(IConstruct)
Apply the mixin properties to the construct.
public override void ApplyTo(IConstruct construct)
Parameters
- construct IConstruct
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
Mixin: true
ExampleMetadata: fixture=_generated
Supports(IConstruct)
Check if this mixin supports the given construct.
public override bool Supports(IConstruct construct)
Parameters
- construct IConstruct
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
Mixin: true
ExampleMetadata: fixture=_generated