opentelekomcloud.VpcFlowLogV1
Explore with Pulumi AI
Up-to-date reference of API arguments for VPC flow log you can get at documentation portal
Manages a VPC flow log resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const logGroup1 = new opentelekomcloud.LogtankGroupV2("logGroup1", {groupName: _var.log_group_name});
const logTopic1 = new opentelekomcloud.LogtankTopicV2("logTopic1", {
groupId: logGroup1.logtankGroupV2Id,
topicName: _var.log_topic_name,
});
const vpcV1 = new opentelekomcloud.VpcV1("vpcV1", {cidr: _var.vpc_cidr});
const flowlog1 = new opentelekomcloud.VpcFlowLogV1("flowlog1", {
description: _var.flow_log_desc,
resourceType: "vpc",
resourceId: vpcV1.vpcV1Id,
trafficType: "all",
logGroupId: logGroup1.logtankGroupV2Id,
logTopicId: logTopic1.logtankTopicV2Id,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
log_group1 = opentelekomcloud.LogtankGroupV2("logGroup1", group_name=var["log_group_name"])
log_topic1 = opentelekomcloud.LogtankTopicV2("logTopic1",
group_id=log_group1.logtank_group_v2_id,
topic_name=var["log_topic_name"])
vpc_v1 = opentelekomcloud.VpcV1("vpcV1", cidr=var["vpc_cidr"])
flowlog1 = opentelekomcloud.VpcFlowLogV1("flowlog1",
description=var["flow_log_desc"],
resource_type="vpc",
resource_id=vpc_v1.vpc_v1_id,
traffic_type="all",
log_group_id=log_group1.logtank_group_v2_id,
log_topic_id=log_topic1.logtank_topic_v2_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
logGroup1, err := opentelekomcloud.NewLogtankGroupV2(ctx, "logGroup1", &opentelekomcloud.LogtankGroupV2Args{
GroupName: pulumi.Any(_var.Log_group_name),
})
if err != nil {
return err
}
logTopic1, err := opentelekomcloud.NewLogtankTopicV2(ctx, "logTopic1", &opentelekomcloud.LogtankTopicV2Args{
GroupId: logGroup1.LogtankGroupV2Id,
TopicName: pulumi.Any(_var.Log_topic_name),
})
if err != nil {
return err
}
vpcV1, err := opentelekomcloud.NewVpcV1(ctx, "vpcV1", &opentelekomcloud.VpcV1Args{
Cidr: pulumi.Any(_var.Vpc_cidr),
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewVpcFlowLogV1(ctx, "flowlog1", &opentelekomcloud.VpcFlowLogV1Args{
Description: pulumi.Any(_var.Flow_log_desc),
ResourceType: pulumi.String("vpc"),
ResourceId: vpcV1.VpcV1Id,
TrafficType: pulumi.String("all"),
LogGroupId: logGroup1.LogtankGroupV2Id,
LogTopicId: logTopic1.LogtankTopicV2Id,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var logGroup1 = new Opentelekomcloud.LogtankGroupV2("logGroup1", new()
{
GroupName = @var.Log_group_name,
});
var logTopic1 = new Opentelekomcloud.LogtankTopicV2("logTopic1", new()
{
GroupId = logGroup1.LogtankGroupV2Id,
TopicName = @var.Log_topic_name,
});
var vpcV1 = new Opentelekomcloud.VpcV1("vpcV1", new()
{
Cidr = @var.Vpc_cidr,
});
var flowlog1 = new Opentelekomcloud.VpcFlowLogV1("flowlog1", new()
{
Description = @var.Flow_log_desc,
ResourceType = "vpc",
ResourceId = vpcV1.VpcV1Id,
TrafficType = "all",
LogGroupId = logGroup1.LogtankGroupV2Id,
LogTopicId = logTopic1.LogtankTopicV2Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.LogtankGroupV2;
import com.pulumi.opentelekomcloud.LogtankGroupV2Args;
import com.pulumi.opentelekomcloud.LogtankTopicV2;
import com.pulumi.opentelekomcloud.LogtankTopicV2Args;
import com.pulumi.opentelekomcloud.VpcV1;
import com.pulumi.opentelekomcloud.VpcV1Args;
import com.pulumi.opentelekomcloud.VpcFlowLogV1;
import com.pulumi.opentelekomcloud.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 LogtankGroupV2("logGroup1", LogtankGroupV2Args.builder()
.groupName(var_.log_group_name())
.build());
var logTopic1 = new LogtankTopicV2("logTopic1", LogtankTopicV2Args.builder()
.groupId(logGroup1.logtankGroupV2Id())
.topicName(var_.log_topic_name())
.build());
var vpcV1 = new VpcV1("vpcV1", VpcV1Args.builder()
.cidr(var_.vpc_cidr())
.build());
var flowlog1 = new VpcFlowLogV1("flowlog1", VpcFlowLogV1Args.builder()
.description(var_.flow_log_desc())
.resourceType("vpc")
.resourceId(vpcV1.vpcV1Id())
.trafficType("all")
.logGroupId(logGroup1.logtankGroupV2Id())
.logTopicId(logTopic1.logtankTopicV2Id())
.build());
}
}
resources:
logGroup1:
type: opentelekomcloud:LogtankGroupV2
properties:
groupName: ${var.log_group_name}
logTopic1:
type: opentelekomcloud:LogtankTopicV2
properties:
groupId: ${logGroup1.logtankGroupV2Id}
topicName: ${var.log_topic_name}
vpcV1:
type: opentelekomcloud:VpcV1
properties:
cidr: ${var.vpc_cidr}
flowlog1:
type: opentelekomcloud:VpcFlowLogV1
properties:
description: ${var.flow_log_desc}
resourceType: vpc
resourceId: ${vpcV1.vpcV1Id}
trafficType: all
logGroupId: ${logGroup1.logtankGroupV2Id}
logTopicId: ${logTopic1.logtankTopicV2Id}
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,
resource_type: Optional[str] = None,
traffic_type: Optional[str] = None,
admin_state: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[VpcFlowLogV1TimeoutsArgs] = 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: opentelekomcloud: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 Opentelekomcloud.VpcFlowLogV1("vpcFlowLogV1Resource", new()
{
LogGroupId = "string",
LogTopicId = "string",
ResourceId = "string",
ResourceType = "string",
TrafficType = "string",
AdminState = false,
Description = "string",
Name = "string",
Status = "string",
Timeouts = new Opentelekomcloud.Inputs.VpcFlowLogV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
VpcFlowLogV1Id = "string",
});
example, err := opentelekomcloud.NewVpcFlowLogV1(ctx, "vpcFlowLogV1Resource", &opentelekomcloud.VpcFlowLogV1Args{
LogGroupId: pulumi.String("string"),
LogTopicId: pulumi.String("string"),
ResourceId: pulumi.String("string"),
ResourceType: pulumi.String("string"),
TrafficType: pulumi.String("string"),
AdminState: pulumi.Bool(false),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Status: pulumi.String("string"),
Timeouts: &opentelekomcloud.VpcFlowLogV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VpcFlowLogV1Id: pulumi.String("string"),
})
var vpcFlowLogV1Resource = new VpcFlowLogV1("vpcFlowLogV1Resource", VpcFlowLogV1Args.builder()
.logGroupId("string")
.logTopicId("string")
.resourceId("string")
.resourceType("string")
.trafficType("string")
.adminState(false)
.description("string")
.name("string")
.status("string")
.timeouts(VpcFlowLogV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.vpcFlowLogV1Id("string")
.build());
vpc_flow_log_v1_resource = opentelekomcloud.VpcFlowLogV1("vpcFlowLogV1Resource",
log_group_id="string",
log_topic_id="string",
resource_id="string",
resource_type="string",
traffic_type="string",
admin_state=False,
description="string",
name="string",
status="string",
timeouts={
"create": "string",
"delete": "string",
},
vpc_flow_log_v1_id="string")
const vpcFlowLogV1Resource = new opentelekomcloud.VpcFlowLogV1("vpcFlowLogV1Resource", {
logGroupId: "string",
logTopicId: "string",
resourceId: "string",
resourceType: "string",
trafficType: "string",
adminState: false,
description: "string",
name: "string",
status: "string",
timeouts: {
create: "string",
"delete": "string",
},
vpcFlowLogV1Id: "string",
});
type: opentelekomcloud:VpcFlowLogV1
properties:
adminState: false
description: string
logGroupId: string
logTopicId: string
name: string
resourceId: string
resourceType: string
status: 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:
- Log
Group stringId - Specifies the log group ID. Changing this creates a new VPC flow log.
- Log
Topic stringId - Specifies the log topic ID. Changing this creates a new VPC flow log.
- Resource
Id string - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- Resource
Type string - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - Traffic
Type string - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - Admin
State bool - Whether to enable the VPC flow log function.
- Description string
- Provides 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 flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- Status string
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - Timeouts
Vpc
Flow Log V1Timeouts - Vpc
Flow stringLog V1Id - The VPC flow log ID in UUID format.
- Log
Group stringId - Specifies the log group ID. Changing this creates a new VPC flow log.
- Log
Topic stringId - Specifies the log topic ID. Changing this creates a new VPC flow log.
- Resource
Id string - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- Resource
Type string - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - Traffic
Type string - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - Admin
State bool - Whether to enable the VPC flow log function.
- Description string
- Provides 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 flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- Status string
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - Timeouts
Vpc
Flow Log V1Timeouts Args - Vpc
Flow stringLog V1Id - The VPC flow log ID in UUID format.
- log
Group StringId - Specifies the log group ID. Changing this creates a new VPC flow log.
- log
Topic StringId - Specifies the log topic ID. Changing this creates a new VPC flow log.
- resource
Id String - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- resource
Type String - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - traffic
Type String - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - admin
State Boolean - Whether to enable the VPC flow log function.
- description String
- Provides 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 flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- status String
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - timeouts
Vpc
Flow Log V1Timeouts - vpc
Flow StringLog V1Id - The VPC flow log ID in UUID format.
- log
Group stringId - Specifies the log group ID. Changing this creates a new VPC flow log.
- log
Topic stringId - Specifies the log topic ID. Changing this creates a new VPC flow log.
- resource
Id string - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- resource
Type string - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - traffic
Type string - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - admin
State boolean - Whether to enable the VPC flow log function.
- description string
- Provides 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 flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- status string
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - timeouts
Vpc
Flow Log V1Timeouts - vpc
Flow stringLog V1Id - The VPC flow log ID in UUID format.
- log_
group_ strid - Specifies the log group ID. Changing this creates a new VPC flow log.
- log_
topic_ strid - Specifies the log topic ID. Changing this creates a new VPC flow log.
- resource_
id str - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- resource_
type str - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - traffic_
type str - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - admin_
state bool - Whether to enable the VPC flow log function.
- description str
- Provides 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 flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- status str
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - timeouts
Vpc
Flow Log V1Timeouts Args - vpc_
flow_ strlog_ v1_ id - The VPC flow log ID in UUID format.
- log
Group StringId - Specifies the log group ID. Changing this creates a new VPC flow log.
- log
Topic StringId - Specifies the log topic ID. Changing this creates a new VPC flow log.
- resource
Id String - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- resource
Type String - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - traffic
Type String - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - admin
State Boolean - Whether to enable the VPC flow log function.
- description String
- Provides 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 flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- status String
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - timeouts Property Map
- vpc
Flow StringLog V1Id - 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
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,
admin_state: Optional[bool] = None,
description: Optional[str] = None,
log_group_id: Optional[str] = None,
log_topic_id: Optional[str] = None,
name: 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: opentelekomcloud: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.
- Admin
State bool - Whether to enable the VPC flow log function.
- Description string
- Provides 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 stringId - Specifies the log group ID. Changing this creates a new VPC flow log.
- Log
Topic stringId - Specifies the log topic ID. Changing this creates a new VPC flow log.
- Name string
- Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- Resource
Id string - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- Resource
Type string - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - Status string
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - Timeouts
Vpc
Flow Log V1Timeouts - Traffic
Type string - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - Vpc
Flow stringLog V1Id - The VPC flow log ID in UUID format.
- Admin
State bool - Whether to enable the VPC flow log function.
- Description string
- Provides 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 stringId - Specifies the log group ID. Changing this creates a new VPC flow log.
- Log
Topic stringId - Specifies the log topic ID. Changing this creates a new VPC flow log.
- Name string
- Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- Resource
Id string - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- Resource
Type string - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - Status string
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - Timeouts
Vpc
Flow Log V1Timeouts Args - Traffic
Type string - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - Vpc
Flow stringLog V1Id - The VPC flow log ID in UUID format.
- admin
State Boolean - Whether to enable the VPC flow log function.
- description String
- Provides 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 StringId - Specifies the log group ID. Changing this creates a new VPC flow log.
- log
Topic StringId - Specifies the log topic ID. Changing this creates a new VPC flow log.
- name String
- Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- resource
Id String - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- resource
Type String - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - status String
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - timeouts
Vpc
Flow Log V1Timeouts - traffic
Type String - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - vpc
Flow StringLog V1Id - The VPC flow log ID in UUID format.
- admin
State boolean - Whether to enable the VPC flow log function.
- description string
- Provides 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 stringId - Specifies the log group ID. Changing this creates a new VPC flow log.
- log
Topic stringId - Specifies the log topic ID. Changing this creates a new VPC flow log.
- name string
- Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- resource
Id string - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- resource
Type string - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - status string
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - timeouts
Vpc
Flow Log V1Timeouts - traffic
Type string - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - vpc
Flow stringLog V1Id - The VPC flow log ID in UUID format.
- admin_
state bool - Whether to enable the VPC flow log function.
- description str
- Provides 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_ strid - Specifies the log group ID. Changing this creates a new VPC flow log.
- log_
topic_ strid - Specifies the log topic ID. Changing this creates a new VPC flow log.
- name str
- Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- resource_
id str - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- resource_
type str - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - status str
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - timeouts
Vpc
Flow Log V1Timeouts Args - traffic_
type str - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - vpc_
flow_ strlog_ v1_ id - The VPC flow log ID in UUID format.
- admin
State Boolean - Whether to enable the VPC flow log function.
- description String
- Provides 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 StringId - Specifies the log group ID. Changing this creates a new VPC flow log.
- log
Topic StringId - Specifies the log topic ID. Changing this creates a new VPC flow log.
- name String
- Specifies the flow log name. The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-) and periods (.).
- resource
Id String - Specifies the ID of resource type. Changing this creates a new VPC flow log.
- resource
Type String - Specifies the type of resource on which to create the VPC flow log.
The value can be
port
,vpc
andnetwork
. Changing this creates a new VPC flow log. - status String
- The status of the flow log. The value can be
ACTIVE
,DOWN
orERROR
. - timeouts Property Map
- traffic
Type String - Specifies the type of traffic to log. The value can be
all
,accept
andreject
. Changing this creates a new VPC flow log. - vpc
Flow StringLog V1Id - The VPC flow log ID in UUID format.
Supporting Types
VpcFlowLogV1Timeouts, VpcFlowLogV1TimeoutsArgs
Import
VPC flow logs can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/vpcFlowLogV1:VpcFlowLogV1 opentelekomcloud_vpc_flow log_v1 ab76d479-9ef8-4034-88c4-4ab82fc87572
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.