Skip to content

EC2  >  Structures  >  TrafficMirrorSession

TrafficMirrorSession

Structure Class

TrafficMirrorSession dataclass

Bases: _SerdeShape

Describes a Traffic Mirror session.

Attributes

description class-attribute instance-attribute
description: str | None = ...

The description of the Traffic Mirror session.

network_interface_id class-attribute instance-attribute
network_interface_id: str | None = ...

The ID of the Traffic Mirror session's network interface.

owner_id class-attribute instance-attribute
owner_id: str | None = ...

The ID of the account that owns the Traffic Mirror session.

packet_length class-attribute instance-attribute
packet_length: int | None = ...

The number of bytes in each packet to mirror. These are the bytes after the VXLAN header. To mirror a subset, set this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the entire packet

session_number class-attribute instance-attribute
session_number: int | None = ...

The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.

Valid values are 1-32766.

tags class-attribute instance-attribute
tags: list[Tag] | None = ...

The tags assigned to the Traffic Mirror session.

traffic_mirror_filter_id class-attribute instance-attribute
traffic_mirror_filter_id: str | None = ...

The ID of the Traffic Mirror filter.

traffic_mirror_session_id class-attribute instance-attribute
traffic_mirror_session_id: str | None = ...

The ID for the Traffic Mirror session.

traffic_mirror_target_id class-attribute instance-attribute
traffic_mirror_target_id: str | None = ...

The ID of the Traffic Mirror target.

virtual_network_id class-attribute instance-attribute
virtual_network_id: int | None = ...

The virtual network ID associated with the Traffic Mirror session.