CfnTrafficMirrorSessionPropsMixin

class aws_cdk.mixins_preview.aws_ec2.mixins.CfnTrafficMirrorSessionPropsMixin(props, *, strategy=None)

Bases: 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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trafficmirrorsession.html

CloudformationResource:

AWS::EC2::TrafficMirrorSession

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins

cfn_traffic_mirror_session_props_mixin = ec2_mixins.CfnTrafficMirrorSessionPropsMixin(ec2_mixins.CfnTrafficMirrorSessionMixinProps(
    description="description",
    network_interface_id="networkInterfaceId",
    owner_id="ownerId",
    packet_length=123,
    session_number=123,
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    traffic_mirror_filter_id="trafficMirrorFilterId",
    traffic_mirror_target_id="trafficMirrorTargetId",
    virtual_network_id=123
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::EC2::TrafficMirrorSession.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['description', 'networkInterfaceId', 'ownerId', 'packetLength', 'sessionNumber', 'tags', 'trafficMirrorFilterId', 'trafficMirrorTargetId', 'virtualNetworkId']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

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

Stability:

experimental