1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. vpc
  6. FlowLog
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine

    After aggregating log data for inbound and outbound traffic on network interfaces as needed, flow logs are delivered to Log Service for storage and analysis. You can use flow log analysis to monitor network traffic, troubleshoot network issues, and optimize network architecture. VPC flow logs record detailed information about VPC network traffic for network monitoring, traffic analysis, and troubleshooting.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const vPCFlowLogDemo = new volcenginecc.vpc.FlowLog("VPCFlowLogDemo", {
        aggregationInterval: 10,
        description: "this is a test flow log",
        flowLogName: "FlowLog-ccapi-test",
        logProjectName: "ccapi-test-flow-log",
        logTopicName: "test-flow-log",
        projectName: "default",
        resourceId: "vpc-rrco37ovjq4gv0xxxxxx",
        resourceType: "vpc",
        status: "Active",
        tags: [{
            key: "env",
            value: "test",
        }],
        trafficType: "All",
    });
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    v_pc_flow_log_demo = volcenginecc.vpc.FlowLog("VPCFlowLogDemo",
        aggregation_interval=10,
        description="this is a test flow log",
        flow_log_name="FlowLog-ccapi-test",
        log_project_name="ccapi-test-flow-log",
        log_topic_name="test-flow-log",
        project_name="default",
        resource_id="vpc-rrco37ovjq4gv0xxxxxx",
        resource_type="vpc",
        status="Active",
        tags=[{
            "key": "env",
            "value": "test",
        }],
        traffic_type="All")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vpc.NewFlowLog(ctx, "VPCFlowLogDemo", &vpc.FlowLogArgs{
    			AggregationInterval: pulumi.Int(10),
    			Description:         pulumi.String("this is a test flow log"),
    			FlowLogName:         pulumi.String("FlowLog-ccapi-test"),
    			LogProjectName:      pulumi.String("ccapi-test-flow-log"),
    			LogTopicName:        pulumi.String("test-flow-log"),
    			ProjectName:         pulumi.String("default"),
    			ResourceId:          pulumi.String("vpc-rrco37ovjq4gv0xxxxxx"),
    			ResourceType:        pulumi.String("vpc"),
    			Status:              pulumi.String("Active"),
    			Tags: vpc.FlowLogTagArray{
    				&vpc.FlowLogTagArgs{
    					Key:   pulumi.String("env"),
    					Value: pulumi.String("test"),
    				},
    			},
    			TrafficType: pulumi.String("All"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var vPCFlowLogDemo = new Volcenginecc.Vpc.FlowLog("VPCFlowLogDemo", new()
        {
            AggregationInterval = 10,
            Description = "this is a test flow log",
            FlowLogName = "FlowLog-ccapi-test",
            LogProjectName = "ccapi-test-flow-log",
            LogTopicName = "test-flow-log",
            ProjectName = "default",
            ResourceId = "vpc-rrco37ovjq4gv0xxxxxx",
            ResourceType = "vpc",
            Status = "Active",
            Tags = new[]
            {
                new Volcenginecc.Vpc.Inputs.FlowLogTagArgs
                {
                    Key = "env",
                    Value = "test",
                },
            },
            TrafficType = "All",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.vpc.FlowLog;
    import com.volcengine.volcenginecc.vpc.FlowLogArgs;
    import com.pulumi.volcenginecc.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) {
            var vPCFlowLogDemo = new FlowLog("vPCFlowLogDemo", FlowLogArgs.builder()
                .aggregationInterval(10)
                .description("this is a test flow log")
                .flowLogName("FlowLog-ccapi-test")
                .logProjectName("ccapi-test-flow-log")
                .logTopicName("test-flow-log")
                .projectName("default")
                .resourceId("vpc-rrco37ovjq4gv0xxxxxx")
                .resourceType("vpc")
                .status("Active")
                .tags(FlowLogTagArgs.builder()
                    .key("env")
                    .value("test")
                    .build())
                .trafficType("All")
                .build());
    
        }
    }
    
    resources:
      vPCFlowLogDemo:
        type: volcenginecc:vpc:FlowLog
        name: VPCFlowLogDemo
        properties:
          aggregationInterval: 10
          description: this is a test flow log
          flowLogName: FlowLog-ccapi-test
          logProjectName: ccapi-test-flow-log
          logTopicName: test-flow-log
          projectName: default
          resourceId: vpc-rrco37ovjq4gv0xxxxxx
          resourceType: vpc
          status: Active
          tags:
            - key: env
              value: test
          trafficType: All
    

    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,
                status: 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: volcenginecc: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.

    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
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    FlowLogName string
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    LogProjectName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    LogTopicName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    ResourceId string
    Resource ID for traffic capture.
    ResourceType string
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    TrafficType string
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    Description string
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    ProjectName string
    Name of the project to which the flow log belongs.
    Status string
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    Tags List<Volcengine.FlowLogTag>
    AggregationInterval int
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    FlowLogName string
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    LogProjectName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    LogTopicName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    ResourceId string
    Resource ID for traffic capture.
    ResourceType string
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    TrafficType string
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    Description string
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    ProjectName string
    Name of the project to which the flow log belongs.
    Status string
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    Tags []FlowLogTagArgs
    aggregationInterval Integer
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    flowLogName String
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    logProjectName String
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    logTopicName String
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    resourceId String
    Resource ID for traffic capture.
    resourceType String
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    trafficType String
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    description String
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    projectName String
    Name of the project to which the flow log belongs.
    status String
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    tags List<FlowLogTag>
    aggregationInterval number
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    flowLogName string
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    logProjectName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    logTopicName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    resourceId string
    Resource ID for traffic capture.
    resourceType string
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    trafficType string
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    description string
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    projectName string
    Name of the project to which the flow log belongs.
    status string
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    tags FlowLogTag[]
    aggregation_interval int
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    flow_log_name str
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    log_project_name str
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    log_topic_name str
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    resource_id str
    Resource ID for traffic capture.
    resource_type str
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    traffic_type str
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    description str
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    project_name str
    Name of the project to which the flow log belongs.
    status str
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    tags Sequence[FlowLogTagArgs]
    aggregationInterval Number
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    flowLogName String
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    logProjectName String
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    logTopicName String
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    resourceId String
    Resource ID for traffic capture.
    resourceType String
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    trafficType String
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    description String
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    projectName String
    Name of the project to which the flow log belongs.
    status String
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    tags List<Property Map>

    Outputs

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

    BusinessStatus string
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    CreatedAt string
    Creation time of the flow log.
    EnableIndex bool
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    FlowLogId string
    Stream log ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LockReason string
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    LogProjectId string
    Flow log project ID.
    LogTopicId string
    Flow log topic ID.
    UpdatedAt string
    Time when the stream log was updated.
    VpcId string
    VPC ID for the flow log.
    BusinessStatus string
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    CreatedAt string
    Creation time of the flow log.
    EnableIndex bool
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    FlowLogId string
    Stream log ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LockReason string
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    LogProjectId string
    Flow log project ID.
    LogTopicId string
    Flow log topic ID.
    UpdatedAt string
    Time when the stream log was updated.
    VpcId string
    VPC ID for the flow log.
    businessStatus String
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    createdAt String
    Creation time of the flow log.
    enableIndex Boolean
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    flowLogId String
    Stream log ID.
    id String
    The provider-assigned unique ID for this managed resource.
    lockReason String
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    logProjectId String
    Flow log project ID.
    logTopicId String
    Flow log topic ID.
    updatedAt String
    Time when the stream log was updated.
    vpcId String
    VPC ID for the flow log.
    businessStatus string
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    createdAt string
    Creation time of the flow log.
    enableIndex boolean
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    flowLogId string
    Stream log ID.
    id string
    The provider-assigned unique ID for this managed resource.
    lockReason string
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    logProjectId string
    Flow log project ID.
    logTopicId string
    Flow log topic ID.
    updatedAt string
    Time when the stream log was updated.
    vpcId string
    VPC ID for the flow log.
    business_status str
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    created_at str
    Creation time of the flow log.
    enable_index bool
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    flow_log_id str
    Stream log ID.
    id str
    The provider-assigned unique ID for this managed resource.
    lock_reason str
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    log_project_id str
    Flow log project ID.
    log_topic_id str
    Flow log topic ID.
    updated_at str
    Time when the stream log was updated.
    vpc_id str
    VPC ID for the flow log.
    businessStatus String
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    createdAt String
    Creation time of the flow log.
    enableIndex Boolean
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    flowLogId String
    Stream log ID.
    id String
    The provider-assigned unique ID for this managed resource.
    lockReason String
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    logProjectId String
    Flow log project ID.
    logTopicId String
    Flow log topic ID.
    updatedAt String
    Time when the stream log was updated.
    vpcId String
    VPC ID for the 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,
            enable_index: Optional[bool] = None,
            flow_log_id: 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,
            vpc_id: 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: volcenginecc: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
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    BusinessStatus string
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    CreatedAt string
    Creation time of the flow log.
    Description string
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    EnableIndex bool
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    FlowLogId string
    Stream log ID.
    FlowLogName string
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    LockReason string
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    LogProjectId string
    Flow log project ID.
    LogProjectName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    LogTopicId string
    Flow log topic ID.
    LogTopicName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    ProjectName string
    Name of the project to which the flow log belongs.
    ResourceId string
    Resource ID for traffic capture.
    ResourceType string
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    Status string
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    Tags List<Volcengine.FlowLogTag>
    TrafficType string
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    UpdatedAt string
    Time when the stream log was updated.
    VpcId string
    VPC ID for the flow log.
    AggregationInterval int
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    BusinessStatus string
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    CreatedAt string
    Creation time of the flow log.
    Description string
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    EnableIndex bool
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    FlowLogId string
    Stream log ID.
    FlowLogName string
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    LockReason string
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    LogProjectId string
    Flow log project ID.
    LogProjectName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    LogTopicId string
    Flow log topic ID.
    LogTopicName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    ProjectName string
    Name of the project to which the flow log belongs.
    ResourceId string
    Resource ID for traffic capture.
    ResourceType string
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    Status string
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    Tags []FlowLogTagArgs
    TrafficType string
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    UpdatedAt string
    Time when the stream log was updated.
    VpcId string
    VPC ID for the flow log.
    aggregationInterval Integer
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    businessStatus String
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    createdAt String
    Creation time of the flow log.
    description String
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    enableIndex Boolean
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    flowLogId String
    Stream log ID.
    flowLogName String
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    lockReason String
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    logProjectId String
    Flow log project ID.
    logProjectName String
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    logTopicId String
    Flow log topic ID.
    logTopicName String
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    projectName String
    Name of the project to which the flow log belongs.
    resourceId String
    Resource ID for traffic capture.
    resourceType String
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    status String
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    tags List<FlowLogTag>
    trafficType String
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    updatedAt String
    Time when the stream log was updated.
    vpcId String
    VPC ID for the flow log.
    aggregationInterval number
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    businessStatus string
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    createdAt string
    Creation time of the flow log.
    description string
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    enableIndex boolean
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    flowLogId string
    Stream log ID.
    flowLogName string
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    lockReason string
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    logProjectId string
    Flow log project ID.
    logProjectName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    logTopicId string
    Flow log topic ID.
    logTopicName string
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    projectName string
    Name of the project to which the flow log belongs.
    resourceId string
    Resource ID for traffic capture.
    resourceType string
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    status string
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    tags FlowLogTag[]
    trafficType string
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    updatedAt string
    Time when the stream log was updated.
    vpcId string
    VPC ID for the flow log.
    aggregation_interval int
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    business_status str
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    created_at str
    Creation time of the flow log.
    description str
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    enable_index bool
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    flow_log_id str
    Stream log ID.
    flow_log_name str
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    lock_reason str
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    log_project_id str
    Flow log project ID.
    log_project_name str
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    log_topic_id str
    Flow log topic ID.
    log_topic_name str
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    project_name str
    Name of the project to which the flow log belongs.
    resource_id str
    Resource ID for traffic capture.
    resource_type str
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    status str
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    tags Sequence[FlowLogTagArgs]
    traffic_type str
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    updated_at str
    Time when the stream log was updated.
    vpc_id str
    VPC ID for the flow log.
    aggregationInterval Number
    Stream log sampling interval. Options: 1: 1 minute. 5: 5 minutes. 10 (default): 10 minutes.
    businessStatus String
    Whether the flow log is locked. Normal: normal. FinancialLocked: locked.
    createdAt String
    Creation time of the flow log.
    description String
    Description of the stream log. Length limit: 0–255 characters. If not specified, defaults to an empty string. Must start with a letter, Chinese character, or number. Can include English commas (,), periods (.), underscores (_), spaces ( ), equals signs (=), hyphens (-), Chinese commas (,), and Chinese periods (。).
    enableIndex Boolean
    Whether to automatically configure indexes. Indexes are used for retrieving and analyzing data. Stream logs must have indexes configured before retrieval and analysis. true: Yes. false (default): No.
    flowLogId String
    Stream log ID.
    flowLogName String
    Name of the flow log. Length must be 1–128 characters. Must start with a letter, Chinese character, or number, and can include periods (.), underscores (_), and hyphens (-). If not specified, defaults to the flow log instance ID.
    lockReason String
    Reason for stream log lock. financial: Locked due to overdue payment. unlock: In the process of restoring after payment following suspension due to overdue payment. Empty value: Not locked.
    logProjectId String
    Flow log project ID.
    logProjectName String
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    logTopicId String
    Flow log topic ID.
    logTopicName String
    Name of the flow log project. The name can only contain lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number. The name must be 3–63 characters long.
    projectName String
    Name of the project to which the flow log belongs.
    resourceId String
    Resource ID for traffic capture.
    resourceType String
    Resource type for traffic collection. Values: vpc: Virtual Private Cloud. subnet: subnet. eni: network interface.
    status String
    Status of the flow log. Values: Active: active. Pending: pending. Inactive: inactive. Creating: creating. Deleting: deleting.
    tags List<Property Map>
    trafficType String
    Type of traffic collected. Values: All: all traffic. Allow: traffic allowed by network ACLs and security groups. Drop: traffic denied by network ACLs and security groups.
    updatedAt String
    Time when the stream log was updated.
    vpcId String
    VPC ID for the flow log.

    Supporting Types

    FlowLogTag, FlowLogTagArgs

    Key string
    User label tag key. Length must be 1–128 characters. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ symbols (@). If the tag key starts or ends with a space, the system automatically removes it.
    Value string
    User tag value. Supports input in any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.
    Key string
    User label tag key. Length must be 1–128 characters. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ symbols (@). If the tag key starts or ends with a space, the system automatically removes it.
    Value string
    User tag value. Supports input in any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.
    key String
    User label tag key. Length must be 1–128 characters. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ symbols (@). If the tag key starts or ends with a space, the system automatically removes it.
    value String
    User tag value. Supports input in any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.
    key string
    User label tag key. Length must be 1–128 characters. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ symbols (@). If the tag key starts or ends with a space, the system automatically removes it.
    value string
    User tag value. Supports input in any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.
    key str
    User label tag key. Length must be 1–128 characters. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ symbols (@). If the tag key starts or ends with a space, the system automatically removes it.
    value str
    User tag value. Supports input in any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.
    key String
    User label tag key. Length must be 1–128 characters. Supports input of characters from any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ symbols (@). If the tag key starts or ends with a space, the system automatically removes it.
    value String
    User tag value. Supports input in any language, numbers, spaces ( ), underscores (_), periods (.), colons (:), slashes (/), equals signs (=), plus signs (+), hyphens (-), and @ (@). Case sensitive. If the tag value starts or ends with a space, the system will automatically remove it.

    Import

    $ pulumi import volcenginecc:vpc/flowLog:FlowLog example "flow_log_id"
    

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

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.