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.
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.
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);
CreateTrafficMirrorTargetCommandInput for command's
input
shape.CreateTrafficMirrorTargetCommandOutput for command's
response
shape.config for EC2Client's
config
shape.