1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. vpc
  5. TrafficMirrorTarget
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus

    镜像目的是收集流量的网卡或传统型负载均衡。您可以通过流量镜像,按自己设定的筛选条件复制网卡的流量,并将复制的流量私网转发到目标服务进行监控分析。

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const vPCTrafficMirrorTargetDemo = new bytepluscc.vpc.TrafficMirrorTarget("VPCTrafficMirrorTargetDemo", {
        trafficMirrorTargetName: "test-terraformtest",
        description: "this is a test",
        instanceId: "eni-2yggxh4o692bk6asvxxxxx",
        instanceType: "NetworkInterface",
        projectName: "default",
        tags: [{
            key: "env",
            value: "test",
        }],
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    v_pc_traffic_mirror_target_demo = bytepluscc.vpc.TrafficMirrorTarget("VPCTrafficMirrorTargetDemo",
        traffic_mirror_target_name="test-terraformtest",
        description="this is a test",
        instance_id="eni-2yggxh4o692bk6asvxxxxx",
        instance_type="NetworkInterface",
        project_name="default",
        tags=[{
            "key": "env",
            "value": "test",
        }])
    
    package main
    
    import (
    	"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vpc.NewTrafficMirrorTarget(ctx, "VPCTrafficMirrorTargetDemo", &vpc.TrafficMirrorTargetArgs{
    			TrafficMirrorTargetName: pulumi.String("test-terraformtest"),
    			Description:             pulumi.String("this is a test"),
    			InstanceId:              pulumi.String("eni-2yggxh4o692bk6asvxxxxx"),
    			InstanceType:            pulumi.String("NetworkInterface"),
    			ProjectName:             pulumi.String("default"),
    			Tags: vpc.TrafficMirrorTargetTagArray{
    				&vpc.TrafficMirrorTargetTagArgs{
    					Key:   pulumi.String("env"),
    					Value: pulumi.String("test"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
    
    return await Deployment.RunAsync(() => 
    {
        var vPCTrafficMirrorTargetDemo = new Bytepluscc.Vpc.TrafficMirrorTarget("VPCTrafficMirrorTargetDemo", new()
        {
            TrafficMirrorTargetName = "test-terraformtest",
            Description = "this is a test",
            InstanceId = "eni-2yggxh4o692bk6asvxxxxx",
            InstanceType = "NetworkInterface",
            ProjectName = "default",
            Tags = new[]
            {
                new Bytepluscc.Vpc.Inputs.TrafficMirrorTargetTagArgs
                {
                    Key = "env",
                    Value = "test",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.vpc.TrafficMirrorTarget;
    import com.byteplus.bytepluscc.vpc.TrafficMirrorTargetArgs;
    import com.pulumi.bytepluscc.vpc.inputs.TrafficMirrorTargetTagArgs;
    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 vPCTrafficMirrorTargetDemo = new TrafficMirrorTarget("vPCTrafficMirrorTargetDemo", TrafficMirrorTargetArgs.builder()
                .trafficMirrorTargetName("test-terraformtest")
                .description("this is a test")
                .instanceId("eni-2yggxh4o692bk6asvxxxxx")
                .instanceType("NetworkInterface")
                .projectName("default")
                .tags(TrafficMirrorTargetTagArgs.builder()
                    .key("env")
                    .value("test")
                    .build())
                .build());
    
        }
    }
    
    resources:
      vPCTrafficMirrorTargetDemo:
        type: bytepluscc:vpc:TrafficMirrorTarget
        name: VPCTrafficMirrorTargetDemo
        properties:
          trafficMirrorTargetName: test-terraformtest
          description: this is a test
          instanceId: eni-2yggxh4o692bk6asvxxxxx
          instanceType: NetworkInterface
          projectName: default
          tags:
            - key: env
              value: test
    

    Create TrafficMirrorTarget Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TrafficMirrorTarget(name: string, args: TrafficMirrorTargetArgs, opts?: CustomResourceOptions);
    @overload
    def TrafficMirrorTarget(resource_name: str,
                            args: TrafficMirrorTargetArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def TrafficMirrorTarget(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            instance_id: Optional[str] = None,
                            instance_type: Optional[str] = None,
                            description: Optional[str] = None,
                            project_name: Optional[str] = None,
                            tags: Optional[Sequence[TrafficMirrorTargetTagArgs]] = None,
                            traffic_mirror_target_name: Optional[str] = None)
    func NewTrafficMirrorTarget(ctx *Context, name string, args TrafficMirrorTargetArgs, opts ...ResourceOption) (*TrafficMirrorTarget, error)
    public TrafficMirrorTarget(string name, TrafficMirrorTargetArgs args, CustomResourceOptions? opts = null)
    public TrafficMirrorTarget(String name, TrafficMirrorTargetArgs args)
    public TrafficMirrorTarget(String name, TrafficMirrorTargetArgs args, CustomResourceOptions options)
    
    type: bytepluscc:vpc:TrafficMirrorTarget
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    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.
    args TrafficMirrorTargetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control 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.
    name String
    The unique name of the resource.
    args TrafficMirrorTargetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var trafficMirrorTargetResource = new Bytepluscc.Vpc.TrafficMirrorTarget("trafficMirrorTargetResource", new()
    {
        InstanceId = "string",
        InstanceType = "string",
        Description = "string",
        ProjectName = "string",
        Tags = new[]
        {
            new Bytepluscc.Vpc.Inputs.TrafficMirrorTargetTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        TrafficMirrorTargetName = "string",
    });
    
    example, err := vpc.NewTrafficMirrorTarget(ctx, "trafficMirrorTargetResource", &vpc.TrafficMirrorTargetArgs{
    	InstanceId:   pulumi.String("string"),
    	InstanceType: pulumi.String("string"),
    	Description:  pulumi.String("string"),
    	ProjectName:  pulumi.String("string"),
    	Tags: vpc.TrafficMirrorTargetTagArray{
    		&vpc.TrafficMirrorTargetTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	TrafficMirrorTargetName: pulumi.String("string"),
    })
    
    var trafficMirrorTargetResource = new TrafficMirrorTarget("trafficMirrorTargetResource", TrafficMirrorTargetArgs.builder()
        .instanceId("string")
        .instanceType("string")
        .description("string")
        .projectName("string")
        .tags(TrafficMirrorTargetTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .trafficMirrorTargetName("string")
        .build());
    
    traffic_mirror_target_resource = bytepluscc.vpc.TrafficMirrorTarget("trafficMirrorTargetResource",
        instance_id="string",
        instance_type="string",
        description="string",
        project_name="string",
        tags=[{
            "key": "string",
            "value": "string",
        }],
        traffic_mirror_target_name="string")
    
    const trafficMirrorTargetResource = new bytepluscc.vpc.TrafficMirrorTarget("trafficMirrorTargetResource", {
        instanceId: "string",
        instanceType: "string",
        description: "string",
        projectName: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
        trafficMirrorTargetName: "string",
    });
    
    type: bytepluscc:vpc:TrafficMirrorTarget
    properties:
        description: string
        instanceId: string
        instanceType: string
        projectName: string
        tags:
            - key: string
              value: string
        trafficMirrorTargetName: string
    

    TrafficMirrorTarget Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TrafficMirrorTarget resource accepts the following input properties:

    InstanceId string
    镜像目的的资源ID。
    InstanceType string
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    Description string
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    ProjectName string
    镜像目的所属项目的名称。不填默认加入default项目。
    Tags List<Byteplus.TrafficMirrorTargetTag>
    TrafficMirrorTargetName string
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。
    InstanceId string
    镜像目的的资源ID。
    InstanceType string
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    Description string
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    ProjectName string
    镜像目的所属项目的名称。不填默认加入default项目。
    Tags []TrafficMirrorTargetTagArgs
    TrafficMirrorTargetName string
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。
    instanceId String
    镜像目的的资源ID。
    instanceType String
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    description String
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    projectName String
    镜像目的所属项目的名称。不填默认加入default项目。
    tags List<TrafficMirrorTargetTag>
    trafficMirrorTargetName String
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。
    instanceId string
    镜像目的的资源ID。
    instanceType string
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    description string
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    projectName string
    镜像目的所属项目的名称。不填默认加入default项目。
    tags TrafficMirrorTargetTag[]
    trafficMirrorTargetName string
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。
    instance_id str
    镜像目的的资源ID。
    instance_type str
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    description str
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    project_name str
    镜像目的所属项目的名称。不填默认加入default项目。
    tags Sequence[TrafficMirrorTargetTagArgs]
    traffic_mirror_target_name str
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。
    instanceId String
    镜像目的的资源ID。
    instanceType String
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    description String
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    projectName String
    镜像目的所属项目的名称。不填默认加入default项目。
    tags List<Property Map>
    trafficMirrorTargetName String
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。

    Outputs

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

    CreatedAt string
    镜像会话的创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    镜像目的状态。Available:可用。Creating:创建中。
    TrafficMirrorTargetId string
    镜像目的的ID。
    UpdatedAt string
    镜像会话的更新时间。
    CreatedAt string
    镜像会话的创建时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    镜像目的状态。Available:可用。Creating:创建中。
    TrafficMirrorTargetId string
    镜像目的的ID。
    UpdatedAt string
    镜像会话的更新时间。
    createdAt String
    镜像会话的创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    镜像目的状态。Available:可用。Creating:创建中。
    trafficMirrorTargetId String
    镜像目的的ID。
    updatedAt String
    镜像会话的更新时间。
    createdAt string
    镜像会话的创建时间。
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    镜像目的状态。Available:可用。Creating:创建中。
    trafficMirrorTargetId string
    镜像目的的ID。
    updatedAt string
    镜像会话的更新时间。
    created_at str
    镜像会话的创建时间。
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    镜像目的状态。Available:可用。Creating:创建中。
    traffic_mirror_target_id str
    镜像目的的ID。
    updated_at str
    镜像会话的更新时间。
    createdAt String
    镜像会话的创建时间。
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    镜像目的状态。Available:可用。Creating:创建中。
    trafficMirrorTargetId String
    镜像目的的ID。
    updatedAt String
    镜像会话的更新时间。

    Look up Existing TrafficMirrorTarget Resource

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

    public static get(name: string, id: Input<ID>, state?: TrafficMirrorTargetState, opts?: CustomResourceOptions): TrafficMirrorTarget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            instance_id: Optional[str] = None,
            instance_type: Optional[str] = None,
            project_name: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[TrafficMirrorTargetTagArgs]] = None,
            traffic_mirror_target_id: Optional[str] = None,
            traffic_mirror_target_name: Optional[str] = None,
            updated_at: Optional[str] = None) -> TrafficMirrorTarget
    func GetTrafficMirrorTarget(ctx *Context, name string, id IDInput, state *TrafficMirrorTargetState, opts ...ResourceOption) (*TrafficMirrorTarget, error)
    public static TrafficMirrorTarget Get(string name, Input<string> id, TrafficMirrorTargetState? state, CustomResourceOptions? opts = null)
    public static TrafficMirrorTarget get(String name, Output<String> id, TrafficMirrorTargetState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:vpc:TrafficMirrorTarget    get:      id: ${id}
    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.
    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:
    CreatedAt string
    镜像会话的创建时间。
    Description string
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    InstanceId string
    镜像目的的资源ID。
    InstanceType string
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    ProjectName string
    镜像目的所属项目的名称。不填默认加入default项目。
    Status string
    镜像目的状态。Available:可用。Creating:创建中。
    Tags List<Byteplus.TrafficMirrorTargetTag>
    TrafficMirrorTargetId string
    镜像目的的ID。
    TrafficMirrorTargetName string
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。
    UpdatedAt string
    镜像会话的更新时间。
    CreatedAt string
    镜像会话的创建时间。
    Description string
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    InstanceId string
    镜像目的的资源ID。
    InstanceType string
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    ProjectName string
    镜像目的所属项目的名称。不填默认加入default项目。
    Status string
    镜像目的状态。Available:可用。Creating:创建中。
    Tags []TrafficMirrorTargetTagArgs
    TrafficMirrorTargetId string
    镜像目的的ID。
    TrafficMirrorTargetName string
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。
    UpdatedAt string
    镜像会话的更新时间。
    createdAt String
    镜像会话的创建时间。
    description String
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    instanceId String
    镜像目的的资源ID。
    instanceType String
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    projectName String
    镜像目的所属项目的名称。不填默认加入default项目。
    status String
    镜像目的状态。Available:可用。Creating:创建中。
    tags List<TrafficMirrorTargetTag>
    trafficMirrorTargetId String
    镜像目的的ID。
    trafficMirrorTargetName String
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。
    updatedAt String
    镜像会话的更新时间。
    createdAt string
    镜像会话的创建时间。
    description string
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    instanceId string
    镜像目的的资源ID。
    instanceType string
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    projectName string
    镜像目的所属项目的名称。不填默认加入default项目。
    status string
    镜像目的状态。Available:可用。Creating:创建中。
    tags TrafficMirrorTargetTag[]
    trafficMirrorTargetId string
    镜像目的的ID。
    trafficMirrorTargetName string
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。
    updatedAt string
    镜像会话的更新时间。
    created_at str
    镜像会话的创建时间。
    description str
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    instance_id str
    镜像目的的资源ID。
    instance_type str
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    project_name str
    镜像目的所属项目的名称。不填默认加入default项目。
    status str
    镜像目的状态。Available:可用。Creating:创建中。
    tags Sequence[TrafficMirrorTargetTagArgs]
    traffic_mirror_target_id str
    镜像目的的ID。
    traffic_mirror_target_name str
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。
    updated_at str
    镜像会话的更新时间。
    createdAt String
    镜像会话的创建时间。
    description String
    监听器的描述。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。长度限制为0 ~ 255个字符。不填则默认值为空字符串。
    instanceId String
    镜像目的的资源ID。
    instanceType String
    镜像目的的资源类型。NetworkInterface:弹性网卡。ClbInstance:传统型负载均衡。
    projectName String
    镜像目的所属项目的名称。不填默认加入default项目。
    status String
    镜像目的状态。Available:可用。Creating:创建中。
    tags List<Property Map>
    trafficMirrorTargetId String
    镜像目的的ID。
    trafficMirrorTargetName String
    监听器的名称。必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线_)和中划线(-)。长度限制在1~128字符之间。不填则默认将“协议-端口”作为监听器名称。
    updatedAt String
    镜像会话的更新时间。

    Supporting Types

    TrafficMirrorTargetTag, TrafficMirrorTargetTagArgs

    Key string
    标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    Value string
    标签的标签值。长度取值范围为0~256字符,不填默认为空。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。
    Key string
    标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    Value string
    标签的标签值。长度取值范围为0~256字符,不填默认为空。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。
    key String
    标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    value String
    标签的标签值。长度取值范围为0~256字符,不填默认为空。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。
    key string
    标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    value string
    标签的标签值。长度取值范围为0~256字符,不填默认为空。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。
    key str
    标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    value str
    标签的标签值。长度取值范围为0~256字符,不填默认为空。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。
    key String
    标签的标签键。长度取值范围为1~128字符,允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。若标签键开头或结尾存在空格,系统会自动为其去除。
    value String
    标签的标签值。长度取值范围为0~256字符,不填默认为空。允许输入各国语言文字、数字、空格( )、下划线(_)、点号(.)、半角冒号(:)、斜杠(/)、等号(=)、加号(+)、中划线(-)和@(@)。大小写敏感。若标签值开头或结尾存在空格,系统会自动为其去除。

    Import

    $ pulumi import bytepluscc:vpc/trafficMirrorTarget:TrafficMirrorTarget example "traffic_mirror_target_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.16
    published on Monday, Mar 9, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.