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

volcengine.vpc.FlowLog

Explore with Pulumi AI

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

    Provides a resource to manage flow log

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooZones = volcengine.ecs.getZones({});
    const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
        vpcName: "acc-test-vpc",
        cidrBlock: "172.16.0.0/16",
        projectName: "default",
    });
    const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
        subnetName: "acc-test-subnet",
        cidrBlock: "172.16.0.0/24",
        zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
        vpcId: fooVpc.id,
    });
    const fooFlowLog = new volcengine.vpc.FlowLog("fooFlowLog", {
        flowLogName: "acc-test-flow-log",
        description: "acc-test",
        resourceType: "subnet",
        resourceId: fooSubnet.id,
        trafficType: "All",
        logProjectName: "acc-test-project",
        logTopicName: "acc-test-topic",
        aggregationInterval: 10,
        projectName: "default",
        tags: [{
            key: "k1",
            value: "v1",
        }],
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_zones = volcengine.ecs.get_zones()
    foo_vpc = volcengine.vpc.Vpc("fooVpc",
        vpc_name="acc-test-vpc",
        cidr_block="172.16.0.0/16",
        project_name="default")
    foo_subnet = volcengine.vpc.Subnet("fooSubnet",
        subnet_name="acc-test-subnet",
        cidr_block="172.16.0.0/24",
        zone_id=foo_zones.zones[0].id,
        vpc_id=foo_vpc.id)
    foo_flow_log = volcengine.vpc.FlowLog("fooFlowLog",
        flow_log_name="acc-test-flow-log",
        description="acc-test",
        resource_type="subnet",
        resource_id=foo_subnet.id,
        traffic_type="All",
        log_project_name="acc-test-project",
        log_topic_name="acc-test-topic",
        aggregation_interval=10,
        project_name="default",
        tags=[volcengine.vpc.FlowLogTagArgs(
            key="k1",
            value="v1",
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooZones, err := ecs.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
    			VpcName:     pulumi.String("acc-test-vpc"),
    			CidrBlock:   pulumi.String("172.16.0.0/16"),
    			ProjectName: pulumi.String("default"),
    		})
    		if err != nil {
    			return err
    		}
    		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
    			SubnetName: pulumi.String("acc-test-subnet"),
    			CidrBlock:  pulumi.String("172.16.0.0/24"),
    			ZoneId:     pulumi.String(fooZones.Zones[0].Id),
    			VpcId:      fooVpc.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vpc.NewFlowLog(ctx, "fooFlowLog", &vpc.FlowLogArgs{
    			FlowLogName:         pulumi.String("acc-test-flow-log"),
    			Description:         pulumi.String("acc-test"),
    			ResourceType:        pulumi.String("subnet"),
    			ResourceId:          fooSubnet.ID(),
    			TrafficType:         pulumi.String("All"),
    			LogProjectName:      pulumi.String("acc-test-project"),
    			LogTopicName:        pulumi.String("acc-test-topic"),
    			AggregationInterval: pulumi.Int(10),
    			ProjectName:         pulumi.String("default"),
    			Tags: vpc.FlowLogTagArray{
    				&vpc.FlowLogTagArgs{
    					Key:   pulumi.String("k1"),
    					Value: pulumi.String("v1"),
    				},
    			},
    		})
    		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 fooZones = Volcengine.Ecs.GetZones.Invoke();
    
        var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
        {
            VpcName = "acc-test-vpc",
            CidrBlock = "172.16.0.0/16",
            ProjectName = "default",
        });
    
        var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
        {
            SubnetName = "acc-test-subnet",
            CidrBlock = "172.16.0.0/24",
            ZoneId = fooZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            VpcId = fooVpc.Id,
        });
    
        var fooFlowLog = new Volcengine.Vpc.FlowLog("fooFlowLog", new()
        {
            FlowLogName = "acc-test-flow-log",
            Description = "acc-test",
            ResourceType = "subnet",
            ResourceId = fooSubnet.Id,
            TrafficType = "All",
            LogProjectName = "acc-test-project",
            LogTopicName = "acc-test-topic",
            AggregationInterval = 10,
            ProjectName = "default",
            Tags = new[]
            {
                new Volcengine.Vpc.Inputs.FlowLogTagArgs
                {
                    Key = "k1",
                    Value = "v1",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.ecs.EcsFunctions;
    import com.pulumi.volcengine.ecs.inputs.GetZonesArgs;
    import com.pulumi.volcengine.vpc.Vpc;
    import com.pulumi.volcengine.vpc.VpcArgs;
    import com.pulumi.volcengine.vpc.Subnet;
    import com.pulumi.volcengine.vpc.SubnetArgs;
    import com.pulumi.volcengine.vpc.FlowLog;
    import com.pulumi.volcengine.vpc.FlowLogArgs;
    import com.pulumi.volcengine.vpc.inputs.FlowLogTagArgs;
    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) {
            final var fooZones = EcsFunctions.getZones();
    
            var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
                .vpcName("acc-test-vpc")
                .cidrBlock("172.16.0.0/16")
                .projectName("default")
                .build());
    
            var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
                .subnetName("acc-test-subnet")
                .cidrBlock("172.16.0.0/24")
                .zoneId(fooZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .vpcId(fooVpc.id())
                .build());
    
            var fooFlowLog = new FlowLog("fooFlowLog", FlowLogArgs.builder()        
                .flowLogName("acc-test-flow-log")
                .description("acc-test")
                .resourceType("subnet")
                .resourceId(fooSubnet.id())
                .trafficType("All")
                .logProjectName("acc-test-project")
                .logTopicName("acc-test-topic")
                .aggregationInterval(10)
                .projectName("default")
                .tags(FlowLogTagArgs.builder()
                    .key("k1")
                    .value("v1")
                    .build())
                .build());
    
        }
    }
    
    resources:
      fooVpc:
        type: volcengine:vpc:Vpc
        properties:
          vpcName: acc-test-vpc
          cidrBlock: 172.16.0.0/16
          projectName: default
      fooSubnet:
        type: volcengine:vpc:Subnet
        properties:
          subnetName: acc-test-subnet
          cidrBlock: 172.16.0.0/24
          zoneId: ${fooZones.zones[0].id}
          vpcId: ${fooVpc.id}
      fooFlowLog:
        type: volcengine:vpc:FlowLog
        properties:
          flowLogName: acc-test-flow-log
          description: acc-test
          resourceType: subnet
          resourceId: ${fooSubnet.id}
          trafficType: All
          logProjectName: acc-test-project
          logTopicName: acc-test-topic
          aggregationInterval: 10
          projectName: default
          tags:
            - key: k1
              value: v1
    variables:
      fooZones:
        fn::invoke:
          Function: volcengine:ecs:getZones
          Arguments: {}
    

    Create FlowLog Resource

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

    Constructor syntax

    new FlowLog(name: string, args: FlowLogArgs, opts?: CustomResourceOptions);
    @overload
    def FlowLog(resource_name: str,
                args: FlowLogArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def FlowLog(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                aggregation_interval: Optional[int] = None,
                flow_log_name: Optional[str] = None,
                log_project_name: Optional[str] = None,
                log_topic_name: Optional[str] = None,
                resource_id: Optional[str] = None,
                resource_type: Optional[str] = None,
                traffic_type: Optional[str] = None,
                description: Optional[str] = None,
                project_name: Optional[str] = None,
                tags: Optional[Sequence[FlowLogTagArgs]] = None)
    func NewFlowLog(ctx *Context, name string, args FlowLogArgs, opts ...ResourceOption) (*FlowLog, error)
    public FlowLog(string name, FlowLogArgs args, CustomResourceOptions? opts = null)
    public FlowLog(String name, FlowLogArgs args)
    public FlowLog(String name, FlowLogArgs args, CustomResourceOptions options)
    
    type: volcengine:vpc:FlowLog
    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 FlowLogArgs
    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 FlowLogArgs
    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 FlowLogArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FlowLogArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FlowLogArgs
    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 flowLogResource = new Volcengine.Vpc.FlowLog("flowLogResource", new()
    {
        AggregationInterval = 0,
        FlowLogName = "string",
        LogProjectName = "string",
        LogTopicName = "string",
        ResourceId = "string",
        ResourceType = "string",
        TrafficType = "string",
        Description = "string",
        ProjectName = "string",
        Tags = new[]
        {
            new Volcengine.Vpc.Inputs.FlowLogTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := vpc.NewFlowLog(ctx, "flowLogResource", &vpc.FlowLogArgs{
    	AggregationInterval: pulumi.Int(0),
    	FlowLogName:         pulumi.String("string"),
    	LogProjectName:      pulumi.String("string"),
    	LogTopicName:        pulumi.String("string"),
    	ResourceId:          pulumi.String("string"),
    	ResourceType:        pulumi.String("string"),
    	TrafficType:         pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	ProjectName:         pulumi.String("string"),
    	Tags: vpc.FlowLogTagArray{
    		&vpc.FlowLogTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var flowLogResource = new FlowLog("flowLogResource", FlowLogArgs.builder()
        .aggregationInterval(0)
        .flowLogName("string")
        .logProjectName("string")
        .logTopicName("string")
        .resourceId("string")
        .resourceType("string")
        .trafficType("string")
        .description("string")
        .projectName("string")
        .tags(FlowLogTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    flow_log_resource = volcengine.vpc.FlowLog("flowLogResource",
        aggregation_interval=0,
        flow_log_name="string",
        log_project_name="string",
        log_topic_name="string",
        resource_id="string",
        resource_type="string",
        traffic_type="string",
        description="string",
        project_name="string",
        tags=[{
            "key": "string",
            "value": "string",
        }])
    
    const flowLogResource = new volcengine.vpc.FlowLog("flowLogResource", {
        aggregationInterval: 0,
        flowLogName: "string",
        logProjectName: "string",
        logTopicName: "string",
        resourceId: "string",
        resourceType: "string",
        trafficType: "string",
        description: "string",
        projectName: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: volcengine:vpc:FlowLog
    properties:
        aggregationInterval: 0
        description: string
        flowLogName: string
        logProjectName: string
        logTopicName: string
        projectName: string
        resourceId: string
        resourceType: string
        tags:
            - key: string
              value: string
        trafficType: string
    

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

    AggregationInterval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    FlowLogName string
    The name of flow log.
    LogProjectName string
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    LogTopicName string
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    ResourceId string
    The ID of resource.
    ResourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    TrafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    Description string
    The description of flow log.
    ProjectName string
    The project name of flow log.
    Tags List<FlowLogTag>
    Tags.
    AggregationInterval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    FlowLogName string
    The name of flow log.
    LogProjectName string
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    LogTopicName string
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    ResourceId string
    The ID of resource.
    ResourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    TrafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    Description string
    The description of flow log.
    ProjectName string
    The project name of flow log.
    Tags []FlowLogTagArgs
    Tags.
    aggregationInterval Integer
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    flowLogName String
    The name of flow log.
    logProjectName String
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    logTopicName String
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    resourceId String
    The ID of resource.
    resourceType String
    The type of resource. Valid values: vpc, subnet, eni.
    trafficType String
    The type of traffic. Valid values: All, Allow, Drop.
    description String
    The description of flow log.
    projectName String
    The project name of flow log.
    tags List<FlowLogTag>
    Tags.
    aggregationInterval number
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    flowLogName string
    The name of flow log.
    logProjectName string
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    logTopicName string
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    resourceId string
    The ID of resource.
    resourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    trafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    description string
    The description of flow log.
    projectName string
    The project name of flow log.
    tags FlowLogTag[]
    Tags.
    aggregation_interval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    flow_log_name str
    The name of flow log.
    log_project_name str
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    log_topic_name str
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    resource_id str
    The ID of resource.
    resource_type str
    The type of resource. Valid values: vpc, subnet, eni.
    traffic_type str
    The type of traffic. Valid values: All, Allow, Drop.
    description str
    The description of flow log.
    project_name str
    The project name of flow log.
    tags Sequence[FlowLogTagArgs]
    Tags.
    aggregationInterval Number
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    flowLogName String
    The name of flow log.
    logProjectName String
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    logTopicName String
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    resourceId String
    The ID of resource.
    resourceType String
    The type of resource. Valid values: vpc, subnet, eni.
    trafficType String
    The type of traffic. Valid values: All, Allow, Drop.
    description String
    The description of flow log.
    projectName String
    The project name of flow log.
    tags List<Property Map>
    Tags.

    Outputs

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

    BusinessStatus string
    The business status of flow log.
    CreatedAt string
    The created time of flow log.
    Id string
    The provider-assigned unique ID for this managed resource.
    LockReason string
    The reason why flow log is locked.
    LogProjectId string
    The ID of log project.
    LogTopicId string
    The ID of log topic.
    Status string
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    UpdatedAt string
    The updated time of flow log.
    BusinessStatus string
    The business status of flow log.
    CreatedAt string
    The created time of flow log.
    Id string
    The provider-assigned unique ID for this managed resource.
    LockReason string
    The reason why flow log is locked.
    LogProjectId string
    The ID of log project.
    LogTopicId string
    The ID of log topic.
    Status string
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    UpdatedAt string
    The updated time of flow log.
    businessStatus String
    The business status of flow log.
    createdAt String
    The created time of flow log.
    id String
    The provider-assigned unique ID for this managed resource.
    lockReason String
    The reason why flow log is locked.
    logProjectId String
    The ID of log project.
    logTopicId String
    The ID of log topic.
    status String
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    updatedAt String
    The updated time of flow log.
    businessStatus string
    The business status of flow log.
    createdAt string
    The created time of flow log.
    id string
    The provider-assigned unique ID for this managed resource.
    lockReason string
    The reason why flow log is locked.
    logProjectId string
    The ID of log project.
    logTopicId string
    The ID of log topic.
    status string
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    updatedAt string
    The updated time of flow log.
    business_status str
    The business status of flow log.
    created_at str
    The created time of flow log.
    id str
    The provider-assigned unique ID for this managed resource.
    lock_reason str
    The reason why flow log is locked.
    log_project_id str
    The ID of log project.
    log_topic_id str
    The ID of log topic.
    status str
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    updated_at str
    The updated time of flow log.
    businessStatus String
    The business status of flow log.
    createdAt String
    The created time of flow log.
    id String
    The provider-assigned unique ID for this managed resource.
    lockReason String
    The reason why flow log is locked.
    logProjectId String
    The ID of log project.
    logTopicId String
    The ID of log topic.
    status String
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    updatedAt String
    The updated time of flow log.

    Look up Existing FlowLog Resource

    Get an existing FlowLog 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?: FlowLogState, opts?: CustomResourceOptions): FlowLog
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aggregation_interval: Optional[int] = None,
            business_status: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            flow_log_name: Optional[str] = None,
            lock_reason: Optional[str] = None,
            log_project_id: Optional[str] = None,
            log_project_name: Optional[str] = None,
            log_topic_id: Optional[str] = None,
            log_topic_name: Optional[str] = None,
            project_name: Optional[str] = None,
            resource_id: Optional[str] = None,
            resource_type: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[FlowLogTagArgs]] = None,
            traffic_type: Optional[str] = None,
            updated_at: Optional[str] = None) -> FlowLog
    func GetFlowLog(ctx *Context, name string, id IDInput, state *FlowLogState, opts ...ResourceOption) (*FlowLog, error)
    public static FlowLog Get(string name, Input<string> id, FlowLogState? state, CustomResourceOptions? opts = null)
    public static FlowLog get(String name, Output<String> id, FlowLogState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:vpc:FlowLog    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:
    AggregationInterval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    BusinessStatus string
    The business status of flow log.
    CreatedAt string
    The created time of flow log.
    Description string
    The description of flow log.
    FlowLogName string
    The name of flow log.
    LockReason string
    The reason why flow log is locked.
    LogProjectId string
    The ID of log project.
    LogProjectName string
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    LogTopicId string
    The ID of log topic.
    LogTopicName string
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    ProjectName string
    The project name of flow log.
    ResourceId string
    The ID of resource.
    ResourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    Status string
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    Tags List<FlowLogTag>
    Tags.
    TrafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    UpdatedAt string
    The updated time of flow log.
    AggregationInterval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    BusinessStatus string
    The business status of flow log.
    CreatedAt string
    The created time of flow log.
    Description string
    The description of flow log.
    FlowLogName string
    The name of flow log.
    LockReason string
    The reason why flow log is locked.
    LogProjectId string
    The ID of log project.
    LogProjectName string
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    LogTopicId string
    The ID of log topic.
    LogTopicName string
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    ProjectName string
    The project name of flow log.
    ResourceId string
    The ID of resource.
    ResourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    Status string
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    Tags []FlowLogTagArgs
    Tags.
    TrafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    UpdatedAt string
    The updated time of flow log.
    aggregationInterval Integer
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    businessStatus String
    The business status of flow log.
    createdAt String
    The created time of flow log.
    description String
    The description of flow log.
    flowLogName String
    The name of flow log.
    lockReason String
    The reason why flow log is locked.
    logProjectId String
    The ID of log project.
    logProjectName String
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    logTopicId String
    The ID of log topic.
    logTopicName String
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    projectName String
    The project name of flow log.
    resourceId String
    The ID of resource.
    resourceType String
    The type of resource. Valid values: vpc, subnet, eni.
    status String
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    tags List<FlowLogTag>
    Tags.
    trafficType String
    The type of traffic. Valid values: All, Allow, Drop.
    updatedAt String
    The updated time of flow log.
    aggregationInterval number
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    businessStatus string
    The business status of flow log.
    createdAt string
    The created time of flow log.
    description string
    The description of flow log.
    flowLogName string
    The name of flow log.
    lockReason string
    The reason why flow log is locked.
    logProjectId string
    The ID of log project.
    logProjectName string
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    logTopicId string
    The ID of log topic.
    logTopicName string
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    projectName string
    The project name of flow log.
    resourceId string
    The ID of resource.
    resourceType string
    The type of resource. Valid values: vpc, subnet, eni.
    status string
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    tags FlowLogTag[]
    Tags.
    trafficType string
    The type of traffic. Valid values: All, Allow, Drop.
    updatedAt string
    The updated time of flow log.
    aggregation_interval int
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    business_status str
    The business status of flow log.
    created_at str
    The created time of flow log.
    description str
    The description of flow log.
    flow_log_name str
    The name of flow log.
    lock_reason str
    The reason why flow log is locked.
    log_project_id str
    The ID of log project.
    log_project_name str
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    log_topic_id str
    The ID of log topic.
    log_topic_name str
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    project_name str
    The project name of flow log.
    resource_id str
    The ID of resource.
    resource_type str
    The type of resource. Valid values: vpc, subnet, eni.
    status str
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    tags Sequence[FlowLogTagArgs]
    Tags.
    traffic_type str
    The type of traffic. Valid values: All, Allow, Drop.
    updated_at str
    The updated time of flow log.
    aggregationInterval Number
    The aggregation interval of flow log. Unit: minute. Valid values: 1, 5, 10.
    businessStatus String
    The business status of flow log.
    createdAt String
    The created time of flow log.
    description String
    The description of flow log.
    flowLogName String
    The name of flow log.
    lockReason String
    The reason why flow log is locked.
    logProjectId String
    The ID of log project.
    logProjectName String
    The name of log project. If there is no corresponding log project with the name, a new log project will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    logTopicId String
    The ID of log topic.
    logTopicName String
    The name of log topic. If there is no corresponding log topic with the name, a new log topic will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    projectName String
    The project name of flow log.
    resourceId String
    The ID of resource.
    resourceType String
    The type of resource. Valid values: vpc, subnet, eni.
    status String
    The status of flow log. Values: Active, Pending, Inactive, Creating, Deleting.
    tags List<Property Map>
    Tags.
    trafficType String
    The type of traffic. Valid values: All, Allow, Drop.
    updatedAt String
    The updated time of flow log.

    Supporting Types

    FlowLogTag, FlowLogTagArgs

    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

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

    $ pulumi import volcengine:vpc/flowLog:FlowLog 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