TrafficMirrorTarget

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

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var nlb = new Aws.Ec2.TrafficMirrorTarget("nlb", new Aws.Ec2.TrafficMirrorTargetArgs
        {
            Description = "NLB target",
            NetworkLoadBalancerArn = aws_lb.Lb.Arn,
        });
        var eni = new Aws.Ec2.TrafficMirrorTarget("eni", new Aws.Ec2.TrafficMirrorTargetArgs
        {
            Description = "ENI target",
            NetworkInterfaceId = aws_instance.Test.Primary_network_interface_id,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := ec2.NewTrafficMirrorTarget(ctx, "nlb", &ec2.TrafficMirrorTargetArgs{
            Description:            pulumi.String("NLB target"),
            NetworkLoadBalancerArn: pulumi.String(aws_lb.Lb.Arn),
        })
        if err != nil {
            return err
        }
        _, err = ec2.NewTrafficMirrorTarget(ctx, "eni", &ec2.TrafficMirrorTargetArgs{
            Description:        pulumi.String("ENI target"),
            NetworkInterfaceId: pulumi.String(aws_instance.Test.Primary_network_interface_id),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

nlb = aws.ec2.TrafficMirrorTarget("nlb",
    description="NLB target",
    network_load_balancer_arn=aws_lb["lb"]["arn"])
eni = aws.ec2.TrafficMirrorTarget("eni",
    description="ENI target",
    network_interface_id=aws_instance["test"]["primary_network_interface_id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const nlb = new aws.ec2.TrafficMirrorTarget("nlb", {
    description: "NLB target",
    networkLoadBalancerArn: aws_lb_lb.arn,
});
const eni = new aws.ec2.TrafficMirrorTarget("eni", {
    description: "ENI target",
    networkInterfaceId: aws_instance_test.primaryNetworkInterfaceId,
});

Create a TrafficMirrorTarget Resource

def TrafficMirrorTarget(resource_name, opts=None, description=None, network_interface_id=None, network_load_balancer_arn=None, tags=None, __props__=None);
name string
The unique name of the resource.
args TrafficMirrorTargetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args TrafficMirrorTargetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TrafficMirrorTargetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

TrafficMirrorTarget Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The TrafficMirrorTarget resource accepts the following input properties:

Description string

A description of the traffic mirror session.

NetworkInterfaceId string

The network interface ID that is associated with the target.

NetworkLoadBalancerArn string

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

Tags Dictionary<string, string>

Key-value map of resource tags.

Description string

A description of the traffic mirror session.

NetworkInterfaceId string

The network interface ID that is associated with the target.

NetworkLoadBalancerArn string

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

Tags map[string]string

Key-value map of resource tags.

description string

A description of the traffic mirror session.

networkInterfaceId string

The network interface ID that is associated with the target.

networkLoadBalancerArn string

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

tags {[key: string]: string}

Key-value map of resource tags.

description str

A description of the traffic mirror session.

network_interface_id str

The network interface ID that is associated with the target.

network_load_balancer_arn str

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

tags Dict[str, str]

Key-value map of resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the TrafficMirrorTarget resource produces the following output properties:

Arn string

The ARN of the traffic mirror target.

Id string
The provider-assigned unique ID for this managed resource.
Arn string

The ARN of the traffic mirror target.

Id string
The provider-assigned unique ID for this managed resource.
arn string

The ARN of the traffic mirror target.

id string
The provider-assigned unique ID for this managed resource.
arn str

The ARN of the traffic mirror target.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing TrafficMirrorTarget Resource

Get an existing TrafficMirrorTarget resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, arn=None, description=None, network_interface_id=None, network_load_balancer_arn=None, tags=None, __props__=None);
func GetTrafficMirrorTarget(ctx *Context, name string, id IDInput, state *TrafficMirrorTargetState, opts ...ResourceOption) (*TrafficMirrorTarget, error)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Arn string

The ARN of the traffic mirror target.

Description string

A description of the traffic mirror session.

NetworkInterfaceId string

The network interface ID that is associated with the target.

NetworkLoadBalancerArn string

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

Tags Dictionary<string, string>

Key-value map of resource tags.

Arn string

The ARN of the traffic mirror target.

Description string

A description of the traffic mirror session.

NetworkInterfaceId string

The network interface ID that is associated with the target.

NetworkLoadBalancerArn string

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

Tags map[string]string

Key-value map of resource tags.

arn string

The ARN of the traffic mirror target.

description string

A description of the traffic mirror session.

networkInterfaceId string

The network interface ID that is associated with the target.

networkLoadBalancerArn string

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

tags {[key: string]: string}

Key-value map of resource tags.

arn str

The ARN of the traffic mirror target.

description str

A description of the traffic mirror session.

network_interface_id str

The network interface ID that is associated with the target.

network_load_balancer_arn str

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

tags Dict[str, str]

Key-value map of resource tags.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.