Skip to content
v2.273.0

CfnTrafficMirrorSessionPropsMixin Mixin ​

Creates a Traffic Mirror session.

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.

Initializer ​

ts
new CfnTrafficMirrorSessionPropsMixin(props: CfnTrafficMirrorSessionMixinProps, options?: CfnPropertyMixinOptions)
python
CfnTrafficMirrorSessionPropsMixin(props: CfnTrafficMirrorSessionMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnTrafficMirrorSessionPropsMixin(CfnTrafficMirrorSessionMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnTrafficMirrorSessionPropsMixin(CfnTrafficMirrorSessionMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnTrafficMirrorSessionPropsMixin(Props CfnTrafficMirrorSessionMixinProps, Options CfnPropertyMixinOptions)

Methods ​

applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#
Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#
Checks if `x` is a Mixin.
1 parameter · returns

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Mixin.

supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#
Check if this mixin supports the given construct.