Skip to content
v2.278.0

CfnTrafficMirrorTargetProps Struct ​

Properties for defining a CfnTrafficMirrorTarget.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnTrafficMirrorTargetProps: ec2.CfnTrafficMirrorTargetProps = {
  description: 'description',
  gatewayLoadBalancerEndpointId: 'gatewayLoadBalancerEndpointId',
  networkInterfaceId: 'networkInterfaceId',
  networkLoadBalancerArn: 'networkLoadBalancerArn',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_traffic_mirror_target_props = ec2.CfnTrafficMirrorTargetProps(
    description="description",
    gateway_load_balancer_endpoint_id="gatewayLoadBalancerEndpointId",
    network_interface_id="networkInterfaceId",
    network_load_balancer_arn="networkLoadBalancerArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

CfnTrafficMirrorTargetProps cfnTrafficMirrorTargetProps = CfnTrafficMirrorTargetProps.builder()
        .description("description")
        .gatewayLoadBalancerEndpointId("gatewayLoadBalancerEndpointId")
        .networkInterfaceId("networkInterfaceId")
        .networkLoadBalancerArn("networkLoadBalancerArn")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var cfnTrafficMirrorTargetProps = new CfnTrafficMirrorTargetProps {
    Description = "description",
    GatewayLoadBalancerEndpointId = "gatewayLoadBalancerEndpointId",
    NetworkInterfaceId = "networkInterfaceId",
    NetworkLoadBalancerArn = "networkLoadBalancerArn",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnTrafficMirrorTargetProps := &CfnTrafficMirrorTargetProps{
	Description: jsii.String("description"),
	GatewayLoadBalancerEndpointId: jsii.String("gatewayLoadBalancerEndpointId"),
	NetworkInterfaceId: jsii.String("networkInterfaceId"),
	NetworkLoadBalancerArn: jsii.String("networkLoadBalancerArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the Traffic Mirror target.
gatewayLoadBalancerEndpointIdoptionalstringgateway_load_balancer_endpoint_idoptionalstrgatewayLoadBalancerEndpointIdoptionalStringGatewayLoadBalancerEndpointIdoptionalstringGatewayLoadBalancerEndpointIdoptional*string #
The ID of the Gateway Load Balancer endpoint.
networkInterfaceIdoptionalstringnetwork_interface_idoptionalstrnetworkInterfaceIdoptionalStringNetworkInterfaceIdoptionalstringNetworkInterfaceIdoptional*string #
The network interface ID that is associated with the target.
networkLoadBalancerArnoptionalstringnetwork_load_balancer_arnoptionalstrnetworkLoadBalancerArnoptionalStringNetworkLoadBalancerArnoptionalstringNetworkLoadBalancerArnoptional*string #
The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags to assign to the Traffic Mirror target.