Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateTrafficMirrorTargetCommand

Creates a target for your Traffic Mirror session.

A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in different VPCs connected via VPC peering or a transit gateway.

A Traffic Mirror target can be a network interface, a Network Load Balancer, or a Gateway Load Balancer endpoint.

To use the target in a Traffic Mirror session, use CreateTrafficMirrorSession.

example

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

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

CreateTrafficMirrorTargetCommandInput for command's input shape.

see

CreateTrafficMirrorTargetCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateTrafficMirrorTargetCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions