Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateTrafficMirrorSessionCommand

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 CreateTrafficMirrorFilter to create filter rules that specify the traffic to mirror.

example

Use a bare-bones client and the command you need to make an API call.

import { EC2Client, CreateTrafficMirrorSessionCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, CreateTrafficMirrorSessionCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new CreateTrafficMirrorSessionCommand(input);
const response = await client.send(command);
see

CreateTrafficMirrorSessionCommandInput for command's input shape.

see

CreateTrafficMirrorSessionCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateTrafficMirrorSessionCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions