volcengine.vpc.FlowLog
Explore with Pulumi AI
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:
- Aggregation
Interval int - The aggregation interval of flow log. Unit: minute. Valid values:
1
,5
,10
. - Flow
Log stringName - The name of flow log.
- Log
Project stringName - 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 stringName - 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 string - The ID of resource.
- Resource
Type string - The type of resource. Valid values:
vpc
,subnet
,eni
. - Traffic
Type string - The type of traffic. Valid values:
All
,Allow
,Drop
. - Description string
- The description of flow log.
- Project
Name string - The project name of flow log.
- List<Flow
Log Tag> - Tags.
- Aggregation
Interval int - The aggregation interval of flow log. Unit: minute. Valid values:
1
,5
,10
. - Flow
Log stringName - The name of flow log.
- Log
Project stringName - 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 stringName - 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 string - The ID of resource.
- Resource
Type string - The type of resource. Valid values:
vpc
,subnet
,eni
. - Traffic
Type string - The type of traffic. Valid values:
All
,Allow
,Drop
. - Description string
- The description of flow log.
- Project
Name string - The project name of flow log.
- []Flow
Log Tag Args - Tags.
- aggregation
Interval Integer - The aggregation interval of flow log. Unit: minute. Valid values:
1
,5
,10
. - flow
Log StringName - The name of flow log.
- log
Project StringName - 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 StringName - 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 String - The ID of resource.
- resource
Type String - The type of resource. Valid values:
vpc
,subnet
,eni
. - traffic
Type String - The type of traffic. Valid values:
All
,Allow
,Drop
. - description String
- The description of flow log.
- project
Name String - The project name of flow log.
- List<Flow
Log Tag> - Tags.
- aggregation
Interval number - The aggregation interval of flow log. Unit: minute. Valid values:
1
,5
,10
. - flow
Log stringName - The name of flow log.
- log
Project stringName - 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 stringName - 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 string - The ID of resource.
- resource
Type string - The type of resource. Valid values:
vpc
,subnet
,eni
. - traffic
Type string - The type of traffic. Valid values:
All
,Allow
,Drop
. - description string
- The description of flow log.
- project
Name string - The project name of flow log.
- Flow
Log Tag[] - Tags.
- aggregation_
interval int - The aggregation interval of flow log. Unit: minute. Valid values:
1
,5
,10
. - flow_
log_ strname - The name of flow log.
- log_
project_ strname - 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_ strname - 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.
- Sequence[Flow
Log Tag Args] - Tags.
- aggregation
Interval Number - The aggregation interval of flow log. Unit: minute. Valid values:
1
,5
,10
. - flow
Log StringName - The name of flow log.
- log
Project StringName - 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 StringName - 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 String - The ID of resource.
- resource
Type String - The type of resource. Valid values:
vpc
,subnet
,eni
. - traffic
Type String - The type of traffic. Valid values:
All
,Allow
,Drop
. - description String
- The description of flow log.
- project
Name String - The project name of flow log.
- List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the FlowLog resource produces the following output properties:
- Business
Status string - The business status of flow log.
- Created
At string - The created time of flow log.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lock
Reason string - The reason why flow log is locked.
- Log
Project stringId - The ID of log project.
- Log
Topic stringId - The ID of log topic.
- Status string
- The status of flow log. Values:
Active
,Pending
,Inactive
,Creating
,Deleting
. - Updated
At string - The updated time of flow log.
- Business
Status string - The business status of flow log.
- Created
At string - The created time of flow log.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lock
Reason string - The reason why flow log is locked.
- Log
Project stringId - The ID of log project.
- Log
Topic stringId - The ID of log topic.
- Status string
- The status of flow log. Values:
Active
,Pending
,Inactive
,Creating
,Deleting
. - Updated
At string - The updated time of flow log.
- business
Status String - The business status of flow log.
- created
At String - The created time of flow log.
- id String
- The provider-assigned unique ID for this managed resource.
- lock
Reason String - The reason why flow log is locked.
- log
Project StringId - The ID of log project.
- log
Topic StringId - The ID of log topic.
- status String
- The status of flow log. Values:
Active
,Pending
,Inactive
,Creating
,Deleting
. - updated
At String - The updated time of flow log.
- business
Status string - The business status of flow log.
- created
At string - The created time of flow log.
- id string
- The provider-assigned unique ID for this managed resource.
- lock
Reason string - The reason why flow log is locked.
- log
Project stringId - The ID of log project.
- log
Topic stringId - The ID of log topic.
- status string
- The status of flow log. Values:
Active
,Pending
,Inactive
,Creating
,Deleting
. - updated
At 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_ strid - The ID of log project.
- log_
topic_ strid - 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.
- business
Status String - The business status of flow log.
- created
At String - The created time of flow log.
- id String
- The provider-assigned unique ID for this managed resource.
- lock
Reason String - The reason why flow log is locked.
- log
Project StringId - The ID of log project.
- log
Topic StringId - The ID of log topic.
- status String
- The status of flow log. Values:
Active
,Pending
,Inactive
,Creating
,Deleting
. - updated
At 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.
- Aggregation
Interval int - The aggregation interval of flow log. Unit: minute. Valid values:
1
,5
,10
. - Business
Status string - The business status of flow log.
- Created
At string - The created time of flow log.
- Description string
- The description of flow log.
- Flow
Log stringName - The name of flow log.
- Lock
Reason string - The reason why flow log is locked.
- Log
Project stringId - The ID of log project.
- Log
Project stringName - 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 stringId - The ID of log topic.
- Log
Topic stringName - 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 string - The project name of flow log.
- Resource
Id string - The ID of resource.
- Resource
Type string - The type of resource. Valid values:
vpc
,subnet
,eni
. - Status string
- The status of flow log. Values:
Active
,Pending
,Inactive
,Creating
,Deleting
. - List<Flow
Log Tag> - Tags.
- Traffic
Type string - The type of traffic. Valid values:
All
,Allow
,Drop
. - Updated
At 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 string - The business status of flow log.
- Created
At string - The created time of flow log.
- Description string
- The description of flow log.
- Flow
Log stringName - The name of flow log.
- Lock
Reason string - The reason why flow log is locked.
- Log
Project stringId - The ID of log project.
- Log
Project stringName - 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 stringId - The ID of log topic.
- Log
Topic stringName - 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 string - The project name of flow log.
- Resource
Id string - The ID of resource.
- Resource
Type string - The type of resource. Valid values:
vpc
,subnet
,eni
. - Status string
- The status of flow log. Values:
Active
,Pending
,Inactive
,Creating
,Deleting
. - []Flow
Log Tag Args - Tags.
- Traffic
Type string - The type of traffic. Valid values:
All
,Allow
,Drop
. - Updated
At string - The updated time of flow log.
- aggregation
Interval Integer - The aggregation interval of flow log. Unit: minute. Valid values:
1
,5
,10
. - business
Status String - The business status of flow log.
- created
At String - The created time of flow log.
- description String
- The description of flow log.
- flow
Log StringName - The name of flow log.
- lock
Reason String - The reason why flow log is locked.
- log
Project StringId - The ID of log project.
- log
Project StringName - 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 StringId - The ID of log topic.
- log
Topic StringName - 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 String - The project name of flow log.
- resource
Id String - The ID of resource.
- resource
Type String - The type of resource. Valid values:
vpc
,subnet
,eni
. - status String
- The status of flow log. Values:
Active
,Pending
,Inactive
,Creating
,Deleting
. - List<Flow
Log Tag> - Tags.
- traffic
Type String - The type of traffic. Valid values:
All
,Allow
,Drop
. - updated
At String - The updated time of flow log.
- aggregation
Interval number - The aggregation interval of flow log. Unit: minute. Valid values:
1
,5
,10
. - business
Status string - The business status of flow log.
- created
At string - The created time of flow log.
- description string
- The description of flow log.
- flow
Log stringName - The name of flow log.
- lock
Reason string - The reason why flow log is locked.
- log
Project stringId - The ID of log project.
- log
Project stringName - 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 stringId - The ID of log topic.
- log
Topic stringName - 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 string - The project name of flow log.
- resource
Id string - The ID of resource.
- resource
Type string - The type of resource. Valid values:
vpc
,subnet
,eni
. - status string
- The status of flow log. Values:
Active
,Pending
,Inactive
,Creating
,Deleting
. - Flow
Log Tag[] - Tags.
- traffic
Type string - The type of traffic. Valid values:
All
,Allow
,Drop
. - updated
At 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_ strname - The name of flow log.
- lock_
reason str - The reason why flow log is locked.
- log_
project_ strid - The ID of log project.
- log_
project_ strname - 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_ strid - The ID of log topic.
- log_
topic_ strname - 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
. - Sequence[Flow
Log Tag Args] - Tags.
- traffic_
type str - The type of traffic. Valid values:
All
,Allow
,Drop
. - updated_
at str - The updated time of flow log.
- aggregation
Interval Number - The aggregation interval of flow log. Unit: minute. Valid values:
1
,5
,10
. - business
Status String - The business status of flow log.
- created
At String - The created time of flow log.
- description String
- The description of flow log.
- flow
Log StringName - The name of flow log.
- lock
Reason String - The reason why flow log is locked.
- log
Project StringId - The ID of log project.
- log
Project StringName - 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 StringId - The ID of log topic.
- log
Topic StringName - 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 String - The project name of flow log.
- resource
Id String - The ID of resource.
- resource
Type String - The type of resource. Valid values:
vpc
,subnet
,eni
. - status String
- The status of flow log. Values:
Active
,Pending
,Inactive
,Creating
,Deleting
. - List<Property Map>
- Tags.
- traffic
Type String - The type of traffic. Valid values:
All
,Allow
,Drop
. - updated
At String - The updated time of flow log.
Supporting Types
FlowLogTag, FlowLogTagArgs
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.