1. Packages
  2. Volcengine
  3. API Docs
  4. vpc
  5. TrafficMirrorFilter
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

volcengine.vpc.TrafficMirrorFilter

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

    Provides a resource to manage traffic mirror filter

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.vpc.TrafficMirrorFilter("foo", {
        description: "acc-test",
        projectName: "default",
        tags: [{
            key: "k1",
            value: "v1",
        }],
        trafficMirrorFilterName: "acc-test-traffic-mirror-filter",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.vpc.TrafficMirrorFilter("foo",
        description="acc-test",
        project_name="default",
        tags=[volcengine.vpc.TrafficMirrorFilterTagArgs(
            key="k1",
            value="v1",
        )],
        traffic_mirror_filter_name="acc-test-traffic-mirror-filter")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vpc.NewTrafficMirrorFilter(ctx, "foo", &vpc.TrafficMirrorFilterArgs{
    			Description: pulumi.String("acc-test"),
    			ProjectName: pulumi.String("default"),
    			Tags: vpc.TrafficMirrorFilterTagArray{
    				&vpc.TrafficMirrorFilterTagArgs{
    					Key:   pulumi.String("k1"),
    					Value: pulumi.String("v1"),
    				},
    			},
    			TrafficMirrorFilterName: pulumi.String("acc-test-traffic-mirror-filter"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Vpc.TrafficMirrorFilter("foo", new()
        {
            Description = "acc-test",
            ProjectName = "default",
            Tags = new[]
            {
                new Volcengine.Vpc.Inputs.TrafficMirrorFilterTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
            TrafficMirrorFilterName = "acc-test-traffic-mirror-filter",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vpc.TrafficMirrorFilter;
    import com.pulumi.volcengine.vpc.TrafficMirrorFilterArgs;
    import com.pulumi.volcengine.vpc.inputs.TrafficMirrorFilterTagArgs;
    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 foo = new TrafficMirrorFilter("foo", TrafficMirrorFilterArgs.builder()        
                .description("acc-test")
                .projectName("default")
                .tags(TrafficMirrorFilterTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .trafficMirrorFilterName("acc-test-traffic-mirror-filter")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: volcengine:vpc:TrafficMirrorFilter
        properties:
          description: acc-test
          projectName: default
          tags:
            - key: k1
              value: v1
          trafficMirrorFilterName: acc-test-traffic-mirror-filter
    

    Create TrafficMirrorFilter Resource

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

    Constructor syntax

    new TrafficMirrorFilter(name: string, args?: TrafficMirrorFilterArgs, opts?: CustomResourceOptions);
    @overload
    def TrafficMirrorFilter(resource_name: str,
                            args: Optional[TrafficMirrorFilterArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def TrafficMirrorFilter(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            description: Optional[str] = None,
                            project_name: Optional[str] = None,
                            tags: Optional[Sequence[TrafficMirrorFilterTagArgs]] = None,
                            traffic_mirror_filter_name: Optional[str] = None)
    func NewTrafficMirrorFilter(ctx *Context, name string, args *TrafficMirrorFilterArgs, opts ...ResourceOption) (*TrafficMirrorFilter, error)
    public TrafficMirrorFilter(string name, TrafficMirrorFilterArgs? args = null, CustomResourceOptions? opts = null)
    public TrafficMirrorFilter(String name, TrafficMirrorFilterArgs args)
    public TrafficMirrorFilter(String name, TrafficMirrorFilterArgs args, CustomResourceOptions options)
    
    type: volcengine:vpc:TrafficMirrorFilter
    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 TrafficMirrorFilterArgs
    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 TrafficMirrorFilterArgs
    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 TrafficMirrorFilterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TrafficMirrorFilterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TrafficMirrorFilterArgs
    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 trafficMirrorFilterResource = new Volcengine.Vpc.TrafficMirrorFilter("trafficMirrorFilterResource", new()
    {
        Description = "string",
        ProjectName = "string",
        Tags = new[]
        {
            new Volcengine.Vpc.Inputs.TrafficMirrorFilterTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        TrafficMirrorFilterName = "string",
    });
    
    example, err := vpc.NewTrafficMirrorFilter(ctx, "trafficMirrorFilterResource", &vpc.TrafficMirrorFilterArgs{
    	Description: pulumi.String("string"),
    	ProjectName: pulumi.String("string"),
    	Tags: vpc.TrafficMirrorFilterTagArray{
    		&vpc.TrafficMirrorFilterTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	TrafficMirrorFilterName: pulumi.String("string"),
    })
    
    var trafficMirrorFilterResource = new TrafficMirrorFilter("trafficMirrorFilterResource", TrafficMirrorFilterArgs.builder()
        .description("string")
        .projectName("string")
        .tags(TrafficMirrorFilterTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .trafficMirrorFilterName("string")
        .build());
    
    traffic_mirror_filter_resource = volcengine.vpc.TrafficMirrorFilter("trafficMirrorFilterResource",
        description="string",
        project_name="string",
        tags=[{
            "key": "string",
            "value": "string",
        }],
        traffic_mirror_filter_name="string")
    
    const trafficMirrorFilterResource = new volcengine.vpc.TrafficMirrorFilter("trafficMirrorFilterResource", {
        description: "string",
        projectName: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
        trafficMirrorFilterName: "string",
    });
    
    type: volcengine:vpc:TrafficMirrorFilter
    properties:
        description: string
        projectName: string
        tags:
            - key: string
              value: string
        trafficMirrorFilterName: string
    

    TrafficMirrorFilter 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 TrafficMirrorFilter resource accepts the following input properties:

    Description string
    The description of the traffic mirror filter.
    ProjectName string
    The project name of the traffic mirror filter.
    Tags List<TrafficMirrorFilterTag>
    Tags.
    TrafficMirrorFilterName string
    The name of the traffic mirror filter.
    Description string
    The description of the traffic mirror filter.
    ProjectName string
    The project name of the traffic mirror filter.
    Tags []TrafficMirrorFilterTagArgs
    Tags.
    TrafficMirrorFilterName string
    The name of the traffic mirror filter.
    description String
    The description of the traffic mirror filter.
    projectName String
    The project name of the traffic mirror filter.
    tags List<TrafficMirrorFilterTag>
    Tags.
    trafficMirrorFilterName String
    The name of the traffic mirror filter.
    description string
    The description of the traffic mirror filter.
    projectName string
    The project name of the traffic mirror filter.
    tags TrafficMirrorFilterTag[]
    Tags.
    trafficMirrorFilterName string
    The name of the traffic mirror filter.
    description str
    The description of the traffic mirror filter.
    project_name str
    The project name of the traffic mirror filter.
    tags Sequence[TrafficMirrorFilterTagArgs]
    Tags.
    traffic_mirror_filter_name str
    The name of the traffic mirror filter.
    description String
    The description of the traffic mirror filter.
    projectName String
    The project name of the traffic mirror filter.
    tags List<Property Map>
    Tags.
    trafficMirrorFilterName String
    The name of the traffic mirror filter.

    Outputs

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

    CreatedAt string
    The create time of traffic mirror filter.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of traffic mirror filter.
    UpdatedAt string
    The last update time of traffic mirror filter.
    CreatedAt string
    The create time of traffic mirror filter.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of traffic mirror filter.
    UpdatedAt string
    The last update time of traffic mirror filter.
    createdAt String
    The create time of traffic mirror filter.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of traffic mirror filter.
    updatedAt String
    The last update time of traffic mirror filter.
    createdAt string
    The create time of traffic mirror filter.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of traffic mirror filter.
    updatedAt string
    The last update time of traffic mirror filter.
    created_at str
    The create time of traffic mirror filter.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of traffic mirror filter.
    updated_at str
    The last update time of traffic mirror filter.
    createdAt String
    The create time of traffic mirror filter.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of traffic mirror filter.
    updatedAt String
    The last update time of traffic mirror filter.

    Look up Existing TrafficMirrorFilter Resource

    Get an existing TrafficMirrorFilter 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?: TrafficMirrorFilterState, opts?: CustomResourceOptions): TrafficMirrorFilter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            project_name: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[TrafficMirrorFilterTagArgs]] = None,
            traffic_mirror_filter_name: Optional[str] = None,
            updated_at: Optional[str] = None) -> TrafficMirrorFilter
    func GetTrafficMirrorFilter(ctx *Context, name string, id IDInput, state *TrafficMirrorFilterState, opts ...ResourceOption) (*TrafficMirrorFilter, error)
    public static TrafficMirrorFilter Get(string name, Input<string> id, TrafficMirrorFilterState? state, CustomResourceOptions? opts = null)
    public static TrafficMirrorFilter get(String name, Output<String> id, TrafficMirrorFilterState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:vpc:TrafficMirrorFilter    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
    The create time of traffic mirror filter.
    Description string
    The description of the traffic mirror filter.
    ProjectName string
    The project name of the traffic mirror filter.
    Status string
    The status of traffic mirror filter.
    Tags List<TrafficMirrorFilterTag>
    Tags.
    TrafficMirrorFilterName string
    The name of the traffic mirror filter.
    UpdatedAt string
    The last update time of traffic mirror filter.
    CreatedAt string
    The create time of traffic mirror filter.
    Description string
    The description of the traffic mirror filter.
    ProjectName string
    The project name of the traffic mirror filter.
    Status string
    The status of traffic mirror filter.
    Tags []TrafficMirrorFilterTagArgs
    Tags.
    TrafficMirrorFilterName string
    The name of the traffic mirror filter.
    UpdatedAt string
    The last update time of traffic mirror filter.
    createdAt String
    The create time of traffic mirror filter.
    description String
    The description of the traffic mirror filter.
    projectName String
    The project name of the traffic mirror filter.
    status String
    The status of traffic mirror filter.
    tags List<TrafficMirrorFilterTag>
    Tags.
    trafficMirrorFilterName String
    The name of the traffic mirror filter.
    updatedAt String
    The last update time of traffic mirror filter.
    createdAt string
    The create time of traffic mirror filter.
    description string
    The description of the traffic mirror filter.
    projectName string
    The project name of the traffic mirror filter.
    status string
    The status of traffic mirror filter.
    tags TrafficMirrorFilterTag[]
    Tags.
    trafficMirrorFilterName string
    The name of the traffic mirror filter.
    updatedAt string
    The last update time of traffic mirror filter.
    created_at str
    The create time of traffic mirror filter.
    description str
    The description of the traffic mirror filter.
    project_name str
    The project name of the traffic mirror filter.
    status str
    The status of traffic mirror filter.
    tags Sequence[TrafficMirrorFilterTagArgs]
    Tags.
    traffic_mirror_filter_name str
    The name of the traffic mirror filter.
    updated_at str
    The last update time of traffic mirror filter.
    createdAt String
    The create time of traffic mirror filter.
    description String
    The description of the traffic mirror filter.
    projectName String
    The project name of the traffic mirror filter.
    status String
    The status of traffic mirror filter.
    tags List<Property Map>
    Tags.
    trafficMirrorFilterName String
    The name of the traffic mirror filter.
    updatedAt String
    The last update time of traffic mirror filter.

    Supporting Types

    TrafficMirrorFilterTag, TrafficMirrorFilterTagArgs

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Import

    TrafficMirrorFilter can be imported using the id, e.g.

    $ pulumi import volcengine:vpc/trafficMirrorFilter:TrafficMirrorFilter default resource_id
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine