alicloud.vpc.FlowLog
Explore with Pulumi AI
Provides a Vpc Flow Log resource. While it uses alicloud.vpc.FlowLog to build a vpc flow log resource, it will be active by default.
For information about Vpc Flow Log and how to use it, see What is Flow Log.
NOTE: Available in v1.117.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-testacc-example";
var defaultRg = new AliCloud.ResourceManager.ResourceGroup("defaultRg", new()
{
ResourceGroupName = name,
DisplayName = "tf-testAcc-rg78",
});
var defaultVpc = new AliCloud.Vpc.Network("defaultVpc", new()
{
VpcName = $"{name}1",
CidrBlock = "10.0.0.0/8",
});
var modifyRG = new AliCloud.ResourceManager.ResourceGroup("modifyRG", new()
{
DisplayName = "tf-testAcc-rg405",
ResourceGroupName = $"{name}2",
});
var defaultProject = new AliCloud.Log.Project("defaultProject");
var defaultStore = new AliCloud.Log.Store("defaultStore", new()
{
Project = defaultProject.Name,
});
var defaultFlowLog = new AliCloud.Vpc.FlowLog("defaultFlowLog", new()
{
FlowLogName = name,
LogStoreName = defaultStore.Name,
Description = "tf-testAcc-flowlog",
TrafficPaths = new[]
{
"all",
},
ProjectName = defaultProject.Name,
ResourceType = "VPC",
ResourceGroupId = defaultRg.Id,
ResourceId = defaultVpc.Id,
AggregationInterval = "1",
TrafficType = "All",
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-testacc-example"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultRg, err := resourcemanager.NewResourceGroup(ctx, "defaultRg", &resourcemanager.ResourceGroupArgs{
ResourceGroupName: pulumi.String(name),
DisplayName: pulumi.String("tf-testAcc-rg78"),
})
if err != nil {
return err
}
defaultVpc, err := vpc.NewNetwork(ctx, "defaultVpc", &vpc.NetworkArgs{
VpcName: pulumi.String(fmt.Sprintf("%v1", name)),
CidrBlock: pulumi.String("10.0.0.0/8"),
})
if err != nil {
return err
}
_, err = resourcemanager.NewResourceGroup(ctx, "modifyRG", &resourcemanager.ResourceGroupArgs{
DisplayName: pulumi.String("tf-testAcc-rg405"),
ResourceGroupName: pulumi.String(fmt.Sprintf("%v2", name)),
})
if err != nil {
return err
}
defaultProject, err := log.NewProject(ctx, "defaultProject", nil)
if err != nil {
return err
}
defaultStore, err := log.NewStore(ctx, "defaultStore", &log.StoreArgs{
Project: defaultProject.Name,
})
if err != nil {
return err
}
_, err = vpc.NewFlowLog(ctx, "defaultFlowLog", &vpc.FlowLogArgs{
FlowLogName: pulumi.String(name),
LogStoreName: defaultStore.Name,
Description: pulumi.String("tf-testAcc-flowlog"),
TrafficPaths: pulumi.StringArray{
pulumi.String("all"),
},
ProjectName: defaultProject.Name,
ResourceType: pulumi.String("VPC"),
ResourceGroupId: defaultRg.ID(),
ResourceId: defaultVpc.ID(),
AggregationInterval: pulumi.String("1"),
TrafficType: pulumi.String("All"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourceGroup;
import com.pulumi.alicloud.resourcemanager.ResourceGroupArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.Store;
import com.pulumi.alicloud.log.StoreArgs;
import com.pulumi.alicloud.vpc.FlowLog;
import com.pulumi.alicloud.vpc.FlowLogArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("tf-testacc-example");
var defaultRg = new ResourceGroup("defaultRg", ResourceGroupArgs.builder()
.resourceGroupName(name)
.displayName("tf-testAcc-rg78")
.build());
var defaultVpc = new Network("defaultVpc", NetworkArgs.builder()
.vpcName(String.format("%s1", name))
.cidrBlock("10.0.0.0/8")
.build());
var modifyRG = new ResourceGroup("modifyRG", ResourceGroupArgs.builder()
.displayName("tf-testAcc-rg405")
.resourceGroupName(String.format("%s2", name))
.build());
var defaultProject = new Project("defaultProject");
var defaultStore = new Store("defaultStore", StoreArgs.builder()
.project(defaultProject.name())
.build());
var defaultFlowLog = new FlowLog("defaultFlowLog", FlowLogArgs.builder()
.flowLogName(name)
.logStoreName(defaultStore.name())
.description("tf-testAcc-flowlog")
.trafficPaths("all")
.projectName(defaultProject.name())
.resourceType("VPC")
.resourceGroupId(defaultRg.id())
.resourceId(defaultVpc.id())
.aggregationInterval("1")
.trafficType("All")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-testacc-example"
default_rg = alicloud.resourcemanager.ResourceGroup("defaultRg",
resource_group_name=name,
display_name="tf-testAcc-rg78")
default_vpc = alicloud.vpc.Network("defaultVpc",
vpc_name=f"{name}1",
cidr_block="10.0.0.0/8")
modify_rg = alicloud.resourcemanager.ResourceGroup("modifyRG",
display_name="tf-testAcc-rg405",
resource_group_name=f"{name}2")
default_project = alicloud.log.Project("defaultProject")
default_store = alicloud.log.Store("defaultStore", project=default_project.name)
default_flow_log = alicloud.vpc.FlowLog("defaultFlowLog",
flow_log_name=name,
log_store_name=default_store.name,
description="tf-testAcc-flowlog",
traffic_paths=["all"],
project_name=default_project.name,
resource_type="VPC",
resource_group_id=default_rg.id,
resource_id=default_vpc.id,
aggregation_interval="1",
traffic_type="All")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-testacc-example";
const defaultRg = new alicloud.resourcemanager.ResourceGroup("defaultRg", {
resourceGroupName: name,
displayName: "tf-testAcc-rg78",
});
const defaultVpc = new alicloud.vpc.Network("defaultVpc", {
vpcName: `${name}1`,
cidrBlock: "10.0.0.0/8",
});
const modifyRG = new alicloud.resourcemanager.ResourceGroup("modifyRG", {
displayName: "tf-testAcc-rg405",
resourceGroupName: `${name}2`,
});
const defaultProject = new alicloud.log.Project("defaultProject", {});
const defaultStore = new alicloud.log.Store("defaultStore", {project: defaultProject.name});
const defaultFlowLog = new alicloud.vpc.FlowLog("defaultFlowLog", {
flowLogName: name,
logStoreName: defaultStore.name,
description: "tf-testAcc-flowlog",
trafficPaths: ["all"],
projectName: defaultProject.name,
resourceType: "VPC",
resourceGroupId: defaultRg.id,
resourceId: defaultVpc.id,
aggregationInterval: "1",
trafficType: "All",
});
configuration:
name:
type: string
default: tf-testacc-example
resources:
defaultRg:
type: alicloud:resourcemanager:ResourceGroup
properties:
resourceGroupName: ${name}
displayName: tf-testAcc-rg78
defaultVpc:
type: alicloud:vpc:Network
properties:
vpcName: ${name}1
cidrBlock: 10.0.0.0/8
modifyRG:
type: alicloud:resourcemanager:ResourceGroup
properties:
displayName: tf-testAcc-rg405
resourceGroupName: ${name}2
defaultProject:
type: alicloud:log:Project
defaultStore:
type: alicloud:log:Store
properties:
project: ${defaultProject.name}
defaultFlowLog:
type: alicloud:vpc:FlowLog
properties:
flowLogName: ${name}
logStoreName: ${defaultStore.name}
description: tf-testAcc-flowlog
trafficPaths:
- all
projectName: ${defaultProject.name}
resourceType: VPC
resourceGroupId: ${defaultRg.id}
resourceId: ${defaultVpc.id}
aggregationInterval: '1'
trafficType: All
Create FlowLog Resource
new FlowLog(name: string, args: FlowLogArgs, opts?: CustomResourceOptions);
@overload
def FlowLog(resource_name: str,
opts: Optional[ResourceOptions] = None,
aggregation_interval: Optional[str] = None,
description: Optional[str] = None,
flow_log_name: Optional[str] = None,
log_store_name: Optional[str] = None,
project_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
resource_id: Optional[str] = None,
resource_type: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
traffic_paths: Optional[Sequence[str]] = None,
traffic_type: Optional[str] = None)
@overload
def FlowLog(resource_name: str,
args: FlowLogArgs,
opts: Optional[ResourceOptions] = 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: alicloud:vpc:FlowLog
properties: # The arguments to resource properties.
options: # 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.
- 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
The FlowLog resource accepts the following input properties:
- Log
Store stringName The name of the logstore.
- Project
Name string The name of the project.
- Resource
Id string The ID of the resource.
- Resource
Type string The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- Traffic
Type string The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
- Aggregation
Interval string Data aggregation interval.
- Description string
The Description of the VPC Flow Log.
- Flow
Log stringName The Name of the VPC Flow Log.
- Resource
Group stringId The ID of the resource group.
- Status string
The status of the VPC Flow Log. Valid values: Active and Inactive.
- Dictionary<string, object>
The tag of the current instance resource.
- Traffic
Paths List<string> The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
- Log
Store stringName The name of the logstore.
- Project
Name string The name of the project.
- Resource
Id string The ID of the resource.
- Resource
Type string The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- Traffic
Type string The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
- Aggregation
Interval string Data aggregation interval.
- Description string
The Description of the VPC Flow Log.
- Flow
Log stringName The Name of the VPC Flow Log.
- Resource
Group stringId The ID of the resource group.
- Status string
The status of the VPC Flow Log. Valid values: Active and Inactive.
- map[string]interface{}
The tag of the current instance resource.
- Traffic
Paths []string The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
- log
Store StringName The name of the logstore.
- project
Name String The name of the project.
- resource
Id String The ID of the resource.
- resource
Type String The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- traffic
Type String The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
- aggregation
Interval String Data aggregation interval.
- description String
The Description of the VPC Flow Log.
- flow
Log StringName The Name of the VPC Flow Log.
- resource
Group StringId The ID of the resource group.
- status String
The status of the VPC Flow Log. Valid values: Active and Inactive.
- Map<String,Object>
The tag of the current instance resource.
- traffic
Paths List<String> The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
- log
Store stringName The name of the logstore.
- project
Name string The name of the project.
- resource
Id string The ID of the resource.
- resource
Type string The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- traffic
Type string The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
- aggregation
Interval string Data aggregation interval.
- description string
The Description of the VPC Flow Log.
- flow
Log stringName The Name of the VPC Flow Log.
- resource
Group stringId The ID of the resource group.
- status string
The status of the VPC Flow Log. Valid values: Active and Inactive.
- {[key: string]: any}
The tag of the current instance resource.
- traffic
Paths string[] The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
- log_
store_ strname The name of the logstore.
- project_
name str The name of the project.
- resource_
id str The ID of the resource.
- resource_
type str The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- traffic_
type str The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
- aggregation_
interval str Data aggregation interval.
- description str
The Description of the VPC Flow Log.
- flow_
log_ strname The Name of the VPC Flow Log.
- resource_
group_ strid The ID of the resource group.
- status str
The status of the VPC Flow Log. Valid values: Active and Inactive.
- Mapping[str, Any]
The tag of the current instance resource.
- traffic_
paths Sequence[str] The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
- log
Store StringName The name of the logstore.
- project
Name String The name of the project.
- resource
Id String The ID of the resource.
- resource
Type String The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- traffic
Type String The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
- aggregation
Interval String Data aggregation interval.
- description String
The Description of the VPC Flow Log.
- flow
Log StringName The Name of the VPC Flow Log.
- resource
Group StringId The ID of the resource group.
- status String
The status of the VPC Flow Log. Valid values: Active and Inactive.
- Map<Any>
The tag of the current instance resource.
- traffic
Paths List<String> The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
Outputs
All input properties are implicitly available as output properties. Additionally, the FlowLog resource produces the following output properties:
- Business
Status string Business status.
- Create
Time string Creation time.
- Flow
Log stringId The flow log ID.
- Id string
The provider-assigned unique ID for this managed resource.
- Business
Status string Business status.
- Create
Time string Creation time.
- Flow
Log stringId The flow log ID.
- Id string
The provider-assigned unique ID for this managed resource.
- business
Status String Business status.
- create
Time String Creation time.
- flow
Log StringId The flow log ID.
- id String
The provider-assigned unique ID for this managed resource.
- business
Status string Business status.
- create
Time string Creation time.
- flow
Log stringId The flow log ID.
- id string
The provider-assigned unique ID for this managed resource.
- business_
status str Business status.
- create_
time str Creation time.
- flow_
log_ strid The flow log ID.
- id str
The provider-assigned unique ID for this managed resource.
- business
Status String Business status.
- create
Time String Creation time.
- flow
Log StringId The flow log ID.
- id String
The provider-assigned unique ID for this managed resource.
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[str] = None,
business_status: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
flow_log_id: Optional[str] = None,
flow_log_name: Optional[str] = None,
log_store_name: Optional[str] = None,
project_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
resource_id: Optional[str] = None,
resource_type: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
traffic_paths: Optional[Sequence[str]] = None,
traffic_type: 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)
Resource lookup is not supported in YAML
- 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 string Data aggregation interval.
- Business
Status string Business status.
- Create
Time string Creation time.
- Description string
The Description of the VPC Flow Log.
- Flow
Log stringId The flow log ID.
- Flow
Log stringName The Name of the VPC Flow Log.
- Log
Store stringName The name of the logstore.
- Project
Name string The name of the project.
- Resource
Group stringId The ID of the resource group.
- Resource
Id string The ID of the resource.
- Resource
Type string The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- Status string
The status of the VPC Flow Log. Valid values: Active and Inactive.
- Dictionary<string, object>
The tag of the current instance resource.
- Traffic
Paths List<string> The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
- Traffic
Type string The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
- Aggregation
Interval string Data aggregation interval.
- Business
Status string Business status.
- Create
Time string Creation time.
- Description string
The Description of the VPC Flow Log.
- Flow
Log stringId The flow log ID.
- Flow
Log stringName The Name of the VPC Flow Log.
- Log
Store stringName The name of the logstore.
- Project
Name string The name of the project.
- Resource
Group stringId The ID of the resource group.
- Resource
Id string The ID of the resource.
- Resource
Type string The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- Status string
The status of the VPC Flow Log. Valid values: Active and Inactive.
- map[string]interface{}
The tag of the current instance resource.
- Traffic
Paths []string The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
- Traffic
Type string The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
- aggregation
Interval String Data aggregation interval.
- business
Status String Business status.
- create
Time String Creation time.
- description String
The Description of the VPC Flow Log.
- flow
Log StringId The flow log ID.
- flow
Log StringName The Name of the VPC Flow Log.
- log
Store StringName The name of the logstore.
- project
Name String The name of the project.
- resource
Group StringId The ID of the resource group.
- resource
Id String The ID of the resource.
- resource
Type String The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- status String
The status of the VPC Flow Log. Valid values: Active and Inactive.
- Map<String,Object>
The tag of the current instance resource.
- traffic
Paths List<String> The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
- traffic
Type String The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
- aggregation
Interval string Data aggregation interval.
- business
Status string Business status.
- create
Time string Creation time.
- description string
The Description of the VPC Flow Log.
- flow
Log stringId The flow log ID.
- flow
Log stringName The Name of the VPC Flow Log.
- log
Store stringName The name of the logstore.
- project
Name string The name of the project.
- resource
Group stringId The ID of the resource group.
- resource
Id string The ID of the resource.
- resource
Type string The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- status string
The status of the VPC Flow Log. Valid values: Active and Inactive.
- {[key: string]: any}
The tag of the current instance resource.
- traffic
Paths string[] The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
- traffic
Type string The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
- aggregation_
interval str Data aggregation interval.
- business_
status str Business status.
- create_
time str Creation time.
- description str
The Description of the VPC Flow Log.
- flow_
log_ strid The flow log ID.
- flow_
log_ strname The Name of the VPC Flow Log.
- log_
store_ strname The name of the logstore.
- project_
name str The name of the project.
- resource_
group_ strid The ID of the resource group.
- resource_
id str The ID of the resource.
- resource_
type str The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- status str
The status of the VPC Flow Log. Valid values: Active and Inactive.
- Mapping[str, Any]
The tag of the current instance resource.
- traffic_
paths Sequence[str] The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
- traffic_
type str The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
- aggregation
Interval String Data aggregation interval.
- business
Status String Business status.
- create
Time String Creation time.
- description String
The Description of the VPC Flow Log.
- flow
Log StringId The flow log ID.
- flow
Log StringName The Name of the VPC Flow Log.
- log
Store StringName The name of the logstore.
- project
Name String The name of the project.
- resource
Group StringId The ID of the resource group.
- resource
Id String The ID of the resource.
- resource
Type String The resource type of the traffic captured by the flow log:-NetworkInterface: ENI.-VSwitch: All ENIs in the VSwitch.-VPC: All ENIs in the VPC.
- status String
The status of the VPC Flow Log. Valid values: Active and Inactive.
- Map<Any>
The tag of the current instance resource.
- traffic
Paths List<String> The collected flow path. Value:all: indicates full acquisition.internetGateway: indicates public network traffic collection.
- traffic
Type String The type of traffic collected. Valid values:All: All traffic.Allow: Access control allowedtraffic.Drop: Access control denied traffic.
Import
Vpc Flow Log can be imported using the id, e.g.
$ pulumi import alicloud:vpc/flowLog:FlowLog example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.