1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. VpcFlowLogV1
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.VpcFlowLogV1

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a VPC flow log resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const logGroup1 = new flexibleengine.LtsGroup("logGroup1", {groupName: _var.log_group_name});
    const logTopic1 = new flexibleengine.LtsTopic("logTopic1", {
        groupId: logGroup1.ltsGroupId,
        topicName: _var.log_topic_name,
    });
    const flowlog1 = new flexibleengine.VpcFlowLogV1("flowlog1", {
        description: _var.flowlog_desc,
        resourceId: _var.port_id,
        trafficType: "all",
        logGroupId: logGroup1.ltsGroupId,
        logTopicId: logTopic1.ltsTopicId,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    log_group1 = flexibleengine.LtsGroup("logGroup1", group_name=var["log_group_name"])
    log_topic1 = flexibleengine.LtsTopic("logTopic1",
        group_id=log_group1.lts_group_id,
        topic_name=var["log_topic_name"])
    flowlog1 = flexibleengine.VpcFlowLogV1("flowlog1",
        description=var["flowlog_desc"],
        resource_id=var["port_id"],
        traffic_type="all",
        log_group_id=log_group1.lts_group_id,
        log_topic_id=log_topic1.lts_topic_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		logGroup1, err := flexibleengine.NewLtsGroup(ctx, "logGroup1", &flexibleengine.LtsGroupArgs{
    			GroupName: pulumi.Any(_var.Log_group_name),
    		})
    		if err != nil {
    			return err
    		}
    		logTopic1, err := flexibleengine.NewLtsTopic(ctx, "logTopic1", &flexibleengine.LtsTopicArgs{
    			GroupId:   logGroup1.LtsGroupId,
    			TopicName: pulumi.Any(_var.Log_topic_name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = flexibleengine.NewVpcFlowLogV1(ctx, "flowlog1", &flexibleengine.VpcFlowLogV1Args{
    			Description: pulumi.Any(_var.Flowlog_desc),
    			ResourceId:  pulumi.Any(_var.Port_id),
    			TrafficType: pulumi.String("all"),
    			LogGroupId:  logGroup1.LtsGroupId,
    			LogTopicId:  logTopic1.LtsTopicId,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var logGroup1 = new Flexibleengine.LtsGroup("logGroup1", new()
        {
            GroupName = @var.Log_group_name,
        });
    
        var logTopic1 = new Flexibleengine.LtsTopic("logTopic1", new()
        {
            GroupId = logGroup1.LtsGroupId,
            TopicName = @var.Log_topic_name,
        });
    
        var flowlog1 = new Flexibleengine.VpcFlowLogV1("flowlog1", new()
        {
            Description = @var.Flowlog_desc,
            ResourceId = @var.Port_id,
            TrafficType = "all",
            LogGroupId = logGroup1.LtsGroupId,
            LogTopicId = logTopic1.LtsTopicId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.LtsGroup;
    import com.pulumi.flexibleengine.LtsGroupArgs;
    import com.pulumi.flexibleengine.LtsTopic;
    import com.pulumi.flexibleengine.LtsTopicArgs;
    import com.pulumi.flexibleengine.VpcFlowLogV1;
    import com.pulumi.flexibleengine.VpcFlowLogV1Args;
    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 logGroup1 = new LtsGroup("logGroup1", LtsGroupArgs.builder()
                .groupName(var_.log_group_name())
                .build());
    
            var logTopic1 = new LtsTopic("logTopic1", LtsTopicArgs.builder()
                .groupId(logGroup1.ltsGroupId())
                .topicName(var_.log_topic_name())
                .build());
    
            var flowlog1 = new VpcFlowLogV1("flowlog1", VpcFlowLogV1Args.builder()
                .description(var_.flowlog_desc())
                .resourceId(var_.port_id())
                .trafficType("all")
                .logGroupId(logGroup1.ltsGroupId())
                .logTopicId(logTopic1.ltsTopicId())
                .build());
    
        }
    }
    
    resources:
      logGroup1:
        type: flexibleengine:LtsGroup
        properties:
          groupName: ${var.log_group_name}
      logTopic1:
        type: flexibleengine:LtsTopic
        properties:
          groupId: ${logGroup1.ltsGroupId}
          topicName: ${var.log_topic_name}
      flowlog1:
        type: flexibleengine:VpcFlowLogV1
        properties:
          description: ${var.flowlog_desc}
          resourceId: ${var.port_id}
          trafficType: all
          logGroupId: ${logGroup1.ltsGroupId}
          logTopicId: ${logTopic1.ltsTopicId}
    

    Create VpcFlowLogV1 Resource

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

    Constructor syntax

    new VpcFlowLogV1(name: string, args: VpcFlowLogV1Args, opts?: CustomResourceOptions);
    @overload
    def VpcFlowLogV1(resource_name: str,
                     args: VpcFlowLogV1Args,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcFlowLogV1(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     log_group_id: Optional[str] = None,
                     log_topic_id: Optional[str] = None,
                     resource_id: Optional[str] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None,
                     region: Optional[str] = None,
                     resource_type: Optional[str] = None,
                     timeouts: Optional[VpcFlowLogV1TimeoutsArgs] = None,
                     traffic_type: Optional[str] = None,
                     vpc_flow_log_v1_id: Optional[str] = None)
    func NewVpcFlowLogV1(ctx *Context, name string, args VpcFlowLogV1Args, opts ...ResourceOption) (*VpcFlowLogV1, error)
    public VpcFlowLogV1(string name, VpcFlowLogV1Args args, CustomResourceOptions? opts = null)
    public VpcFlowLogV1(String name, VpcFlowLogV1Args args)
    public VpcFlowLogV1(String name, VpcFlowLogV1Args args, CustomResourceOptions options)
    
    type: flexibleengine:VpcFlowLogV1
    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 VpcFlowLogV1Args
    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 VpcFlowLogV1Args
    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 VpcFlowLogV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcFlowLogV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcFlowLogV1Args
    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 vpcFlowLogV1Resource = new Flexibleengine.VpcFlowLogV1("vpcFlowLogV1Resource", new()
    {
        LogGroupId = "string",
        LogTopicId = "string",
        ResourceId = "string",
        Description = "string",
        Name = "string",
        Region = "string",
        ResourceType = "string",
        Timeouts = new Flexibleengine.Inputs.VpcFlowLogV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        TrafficType = "string",
        VpcFlowLogV1Id = "string",
    });
    
    example, err := flexibleengine.NewVpcFlowLogV1(ctx, "vpcFlowLogV1Resource", &flexibleengine.VpcFlowLogV1Args{
    	LogGroupId:   pulumi.String("string"),
    	LogTopicId:   pulumi.String("string"),
    	ResourceId:   pulumi.String("string"),
    	Description:  pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	Region:       pulumi.String("string"),
    	ResourceType: pulumi.String("string"),
    	Timeouts: &flexibleengine.VpcFlowLogV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	TrafficType:    pulumi.String("string"),
    	VpcFlowLogV1Id: pulumi.String("string"),
    })
    
    var vpcFlowLogV1Resource = new VpcFlowLogV1("vpcFlowLogV1Resource", VpcFlowLogV1Args.builder()
        .logGroupId("string")
        .logTopicId("string")
        .resourceId("string")
        .description("string")
        .name("string")
        .region("string")
        .resourceType("string")
        .timeouts(VpcFlowLogV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .trafficType("string")
        .vpcFlowLogV1Id("string")
        .build());
    
    vpc_flow_log_v1_resource = flexibleengine.VpcFlowLogV1("vpcFlowLogV1Resource",
        log_group_id="string",
        log_topic_id="string",
        resource_id="string",
        description="string",
        name="string",
        region="string",
        resource_type="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        traffic_type="string",
        vpc_flow_log_v1_id="string")
    
    const vpcFlowLogV1Resource = new flexibleengine.VpcFlowLogV1("vpcFlowLogV1Resource", {
        logGroupId: "string",
        logTopicId: "string",
        resourceId: "string",
        description: "string",
        name: "string",
        region: "string",
        resourceType: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        trafficType: "string",
        vpcFlowLogV1Id: "string",
    });
    
    type: flexibleengine:VpcFlowLogV1
    properties:
        description: string
        logGroupId: string
        logTopicId: string
        name: string
        region: string
        resourceId: string
        resourceType: string
        timeouts:
            create: string
            delete: string
        trafficType: string
        vpcFlowLogV1Id: string
    

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

    LogGroupId string
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    LogTopicId string
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    ResourceId string
    Specifies the network port ID. Changing this creates a new VPC flow log.
    Description string
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    Name string
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    Region string
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    ResourceType string
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    Timeouts VpcFlowLogV1Timeouts
    TrafficType string

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    VpcFlowLogV1Id string
    The VPC flow log ID in UUID format.
    LogGroupId string
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    LogTopicId string
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    ResourceId string
    Specifies the network port ID. Changing this creates a new VPC flow log.
    Description string
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    Name string
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    Region string
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    ResourceType string
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    Timeouts VpcFlowLogV1TimeoutsArgs
    TrafficType string

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    VpcFlowLogV1Id string
    The VPC flow log ID in UUID format.
    logGroupId String
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    logTopicId String
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    resourceId String
    Specifies the network port ID. Changing this creates a new VPC flow log.
    description String
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    name String
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    region String
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    resourceType String
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    timeouts VpcFlowLogV1Timeouts
    trafficType String

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    vpcFlowLogV1Id String
    The VPC flow log ID in UUID format.
    logGroupId string
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    logTopicId string
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    resourceId string
    Specifies the network port ID. Changing this creates a new VPC flow log.
    description string
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    name string
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    region string
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    resourceType string
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    timeouts VpcFlowLogV1Timeouts
    trafficType string

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    vpcFlowLogV1Id string
    The VPC flow log ID in UUID format.
    log_group_id str
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    log_topic_id str
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    resource_id str
    Specifies the network port ID. Changing this creates a new VPC flow log.
    description str
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    name str
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    region str
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    resource_type str
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    timeouts VpcFlowLogV1TimeoutsArgs
    traffic_type str

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    vpc_flow_log_v1_id str
    The VPC flow log ID in UUID format.
    logGroupId String
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    logTopicId String
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    resourceId String
    Specifies the network port ID. Changing this creates a new VPC flow log.
    description String
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    name String
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    region String
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    resourceType String
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    timeouts Property Map
    trafficType String

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    vpcFlowLogV1Id String
    The VPC flow log ID in UUID format.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.

    Look up Existing VpcFlowLogV1 Resource

    Get an existing VpcFlowLogV1 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?: VpcFlowLogV1State, opts?: CustomResourceOptions): VpcFlowLogV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            log_group_id: Optional[str] = None,
            log_topic_id: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            resource_id: Optional[str] = None,
            resource_type: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[VpcFlowLogV1TimeoutsArgs] = None,
            traffic_type: Optional[str] = None,
            vpc_flow_log_v1_id: Optional[str] = None) -> VpcFlowLogV1
    func GetVpcFlowLogV1(ctx *Context, name string, id IDInput, state *VpcFlowLogV1State, opts ...ResourceOption) (*VpcFlowLogV1, error)
    public static VpcFlowLogV1 Get(string name, Input<string> id, VpcFlowLogV1State? state, CustomResourceOptions? opts = null)
    public static VpcFlowLogV1 get(String name, Output<String> id, VpcFlowLogV1State state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:VpcFlowLogV1    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:
    Description string
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    LogGroupId string
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    LogTopicId string
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    Name string
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    Region string
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    ResourceId string
    Specifies the network port ID. Changing this creates a new VPC flow log.
    ResourceType string
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    Status string
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
    Timeouts VpcFlowLogV1Timeouts
    TrafficType string

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    VpcFlowLogV1Id string
    The VPC flow log ID in UUID format.
    Description string
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    LogGroupId string
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    LogTopicId string
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    Name string
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    Region string
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    ResourceId string
    Specifies the network port ID. Changing this creates a new VPC flow log.
    ResourceType string
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    Status string
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
    Timeouts VpcFlowLogV1TimeoutsArgs
    TrafficType string

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    VpcFlowLogV1Id string
    The VPC flow log ID in UUID format.
    description String
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    logGroupId String
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    logTopicId String
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    name String
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    region String
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    resourceId String
    Specifies the network port ID. Changing this creates a new VPC flow log.
    resourceType String
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    status String
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
    timeouts VpcFlowLogV1Timeouts
    trafficType String

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    vpcFlowLogV1Id String
    The VPC flow log ID in UUID format.
    description string
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    logGroupId string
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    logTopicId string
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    name string
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    region string
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    resourceId string
    Specifies the network port ID. Changing this creates a new VPC flow log.
    resourceType string
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    status string
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
    timeouts VpcFlowLogV1Timeouts
    trafficType string

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    vpcFlowLogV1Id string
    The VPC flow log ID in UUID format.
    description str
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    log_group_id str
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    log_topic_id str
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    name str
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    region str
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    resource_id str
    Specifies the network port ID. Changing this creates a new VPC flow log.
    resource_type str
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    status str
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
    timeouts VpcFlowLogV1TimeoutsArgs
    traffic_type str

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    vpc_flow_log_v1_id str
    The VPC flow log ID in UUID format.
    description String
    Specifies supplementary information about the VPC flow log. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
    logGroupId String
    Specifies the LTS log group ID. Changing this creates a new VPC flow log.
    logTopicId String
    Specifies the LTS log topic ID. Changing this creates a new VPC flow log.
    name String
    Specifies the VPC flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
    region String
    The region in which to create the VPC flow log resource. If omitted, the provider-level region will be used. Changing this creates a new VPC flow log.
    resourceId String
    Specifies the network port ID. Changing this creates a new VPC flow log.
    resourceType String
    The type of resource on which to create the VPC flow log. The value is fixed to port.
    status String
    The status of the flow log. The value can be ACTIVE, DOWN or ERROR.
    timeouts Property Map
    trafficType String

    Specifies the type of traffic to log. The value can be:

    • all: specifies that both accepted and rejected traffic of the specified resource will be logged.
    • accept: specifies that only accepted inbound and outbound traffic of the specified resource will be logged.
    • reject: specifies that only rejected inbound and outbound traffic of the specified resource will be logged.

    Defauts to all. Changing this creates a new VPC flow log.

    vpcFlowLogV1Id String
    The VPC flow log ID in UUID format.

    Supporting Types

    VpcFlowLogV1Timeouts, VpcFlowLogV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    VPC flow logs can be imported using the id, e.g.

    $ pulumi import flexibleengine:index/vpcFlowLogV1:VpcFlowLogV1 flowlog1 41b9d73f-eb1c-4795-a100-59a99b062513
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud