---
type: resource-type
title: TrafficMirrorSession
description: aws resource type AWS::EC2::TrafficMirrorSession
name: TrafficMirrorSession
lexicon: aws
resource_type: AWS::EC2::TrafficMirrorSession
---
`AWS::EC2::TrafficMirrorSession`, a resource type of the aws lexicon.

## Properties

- `NetworkInterfaceId` (`string`, required): The ID of the source network interface.
- `SessionNumber` (`number`, required): 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.
- `TrafficMirrorFilterId` (`string`, required): The ID of a Traffic Mirror filter.
- `TrafficMirrorTargetId` (`string`, required): The ID of a Traffic Mirror target.
- `Description` (`string`, optional): The description of the Traffic Mirror session.
- `Id` (`string`, optional): The ID of a Traffic Mirror session.
- `OwnerId` (`string`, optional): The ID of the account that owns the Traffic Mirror session.
- `PacketLength` (`number`, optional): The number of bytes in each packet to mirror.
- `Tags` (`TrafficMirrorSession_Tag[]`, optional): The tags assigned to the Traffic Mirror session.
- `VirtualNetworkId` (`number`, optional): The VXLAN ID for the Traffic Mirror session.

## Attributes

- `Id`
