TrafficMirrorTargetArgs

data class TrafficMirrorTargetArgs(val description: Output<String>? = null, val gatewayLoadBalancerEndpointId: Output<String>? = null, val networkInterfaceId: Output<String>? = null, val networkLoadBalancerArn: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<TrafficMirrorTargetArgs>

Provides a Traffic mirror target. Read limits and considerations for traffic mirroring

Example Usage

To create a basic traffic mirror session

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.TrafficMirrorTarget;
import com.pulumi.aws.ec2.TrafficMirrorTargetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var nlb = new TrafficMirrorTarget("nlb", TrafficMirrorTargetArgs.builder()
.description("NLB target")
.networkLoadBalancerArn(aws_lb.lb().arn())
.build());
var eni = new TrafficMirrorTarget("eni", TrafficMirrorTargetArgs.builder()
.description("ENI target")
.networkInterfaceId(aws_instance.test().primary_network_interface_id())
.build());
var gwlb = new TrafficMirrorTarget("gwlb", TrafficMirrorTargetArgs.builder()
.description("GWLB target")
.gatewayLoadBalancerEndpointId(aws_vpc_endpoint.example().id())
.build());
}
}

Import

Traffic mirror targets can be imported using the id, e.g.,

$ pulumi import aws:ec2/trafficMirrorTarget:TrafficMirrorTarget target tmt-0c13a005422b86606

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, gatewayLoadBalancerEndpointId: Output<String>? = null, networkInterfaceId: Output<String>? = null, networkLoadBalancerArn: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

A description of the traffic mirror session.

Link copied to clipboard

The VPC Endpoint Id of the Gateway Load Balancer that is associated with the target.

Link copied to clipboard
val networkInterfaceId: Output<String>? = null

The network interface ID that is associated with the target.

Link copied to clipboard
val networkLoadBalancerArn: Output<String>? = null

The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level. NOTE: Either network_interface_id or network_load_balancer_arn should be specified and both should not be specified together

Functions

Link copied to clipboard
open override fun toJava(): TrafficMirrorTargetArgs