volcengine.cloud_firewall.CfwVpcFirewallAclRule
Explore with Pulumi AI
Provides a resource to manage cfw vpc firewall acl rule
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const fooCfwAddressBook = new volcengine.cloud_firewall.CfwAddressBook("fooCfwAddressBook", {
groupName: "acc-test-address-book",
description: "acc-test",
groupType: "ip",
addressLists: [
"192.168.1.1",
"192.168.2.2",
],
});
const fooCfwVpcFirewallAclRule = new volcengine.cloud_firewall.CfwVpcFirewallAclRule("fooCfwVpcFirewallAclRule", {
vpcFirewallId: "vfw-ydmjakzksgf7u99j****",
action: "accept",
destinationType: "group",
destination: fooCfwAddressBook.id,
proto: "TCP",
sourceType: "net",
source: "0.0.0.0/0",
description: "acc-test-control-policy",
destPortType: "port",
destPort: "300",
repeatType: "Weekly",
repeatStartTime: "01:00",
repeatEndTime: "11:00",
repeatDays: [
2,
5,
],
startTime: 1736092800,
endTime: 1738339140,
priority: 1,
status: true,
});
import pulumi
import pulumi_volcengine as volcengine
foo_cfw_address_book = volcengine.cloud_firewall.CfwAddressBook("fooCfwAddressBook",
group_name="acc-test-address-book",
description="acc-test",
group_type="ip",
address_lists=[
"192.168.1.1",
"192.168.2.2",
])
foo_cfw_vpc_firewall_acl_rule = volcengine.cloud_firewall.CfwVpcFirewallAclRule("fooCfwVpcFirewallAclRule",
vpc_firewall_id="vfw-ydmjakzksgf7u99j****",
action="accept",
destination_type="group",
destination=foo_cfw_address_book.id,
proto="TCP",
source_type="net",
source="0.0.0.0/0",
description="acc-test-control-policy",
dest_port_type="port",
dest_port="300",
repeat_type="Weekly",
repeat_start_time="01:00",
repeat_end_time="11:00",
repeat_days=[
2,
5,
],
start_time=1736092800,
end_time=1738339140,
priority=1,
status=True)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_firewall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooCfwAddressBook, err := cloud_firewall.NewCfwAddressBook(ctx, "fooCfwAddressBook", &cloud_firewall.CfwAddressBookArgs{
GroupName: pulumi.String("acc-test-address-book"),
Description: pulumi.String("acc-test"),
GroupType: pulumi.String("ip"),
AddressLists: pulumi.StringArray{
pulumi.String("192.168.1.1"),
pulumi.String("192.168.2.2"),
},
})
if err != nil {
return err
}
_, err = cloud_firewall.NewCfwVpcFirewallAclRule(ctx, "fooCfwVpcFirewallAclRule", &cloud_firewall.CfwVpcFirewallAclRuleArgs{
VpcFirewallId: pulumi.String("vfw-ydmjakzksgf7u99j****"),
Action: pulumi.String("accept"),
DestinationType: pulumi.String("group"),
Destination: fooCfwAddressBook.ID(),
Proto: pulumi.String("TCP"),
SourceType: pulumi.String("net"),
Source: pulumi.String("0.0.0.0/0"),
Description: pulumi.String("acc-test-control-policy"),
DestPortType: pulumi.String("port"),
DestPort: pulumi.String("300"),
RepeatType: pulumi.String("Weekly"),
RepeatStartTime: pulumi.String("01:00"),
RepeatEndTime: pulumi.String("11:00"),
RepeatDays: pulumi.IntArray{
pulumi.Int(2),
pulumi.Int(5),
},
StartTime: pulumi.Int(1736092800),
EndTime: pulumi.Int(1738339140),
Priority: pulumi.Int(1),
Status: pulumi.Bool(true),
})
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 fooCfwAddressBook = new Volcengine.Cloud_firewall.CfwAddressBook("fooCfwAddressBook", new()
{
GroupName = "acc-test-address-book",
Description = "acc-test",
GroupType = "ip",
AddressLists = new[]
{
"192.168.1.1",
"192.168.2.2",
},
});
var fooCfwVpcFirewallAclRule = new Volcengine.Cloud_firewall.CfwVpcFirewallAclRule("fooCfwVpcFirewallAclRule", new()
{
VpcFirewallId = "vfw-ydmjakzksgf7u99j****",
Action = "accept",
DestinationType = "group",
Destination = fooCfwAddressBook.Id,
Proto = "TCP",
SourceType = "net",
Source = "0.0.0.0/0",
Description = "acc-test-control-policy",
DestPortType = "port",
DestPort = "300",
RepeatType = "Weekly",
RepeatStartTime = "01:00",
RepeatEndTime = "11:00",
RepeatDays = new[]
{
2,
5,
},
StartTime = 1736092800,
EndTime = 1738339140,
Priority = 1,
Status = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cloud_firewall.CfwAddressBook;
import com.pulumi.volcengine.cloud_firewall.CfwAddressBookArgs;
import com.pulumi.volcengine.cloud_firewall.CfwVpcFirewallAclRule;
import com.pulumi.volcengine.cloud_firewall.CfwVpcFirewallAclRuleArgs;
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 fooCfwAddressBook = new CfwAddressBook("fooCfwAddressBook", CfwAddressBookArgs.builder()
.groupName("acc-test-address-book")
.description("acc-test")
.groupType("ip")
.addressLists(
"192.168.1.1",
"192.168.2.2")
.build());
var fooCfwVpcFirewallAclRule = new CfwVpcFirewallAclRule("fooCfwVpcFirewallAclRule", CfwVpcFirewallAclRuleArgs.builder()
.vpcFirewallId("vfw-ydmjakzksgf7u99j****")
.action("accept")
.destinationType("group")
.destination(fooCfwAddressBook.id())
.proto("TCP")
.sourceType("net")
.source("0.0.0.0/0")
.description("acc-test-control-policy")
.destPortType("port")
.destPort("300")
.repeatType("Weekly")
.repeatStartTime("01:00")
.repeatEndTime("11:00")
.repeatDays(
2,
5)
.startTime(1736092800)
.endTime(1738339140)
.priority(1)
.status(true)
.build());
}
}
resources:
fooCfwAddressBook:
type: volcengine:cloud_firewall:CfwAddressBook
properties:
groupName: acc-test-address-book
description: acc-test
groupType: ip
addressLists:
- 192.168.1.1
- 192.168.2.2
fooCfwVpcFirewallAclRule:
type: volcengine:cloud_firewall:CfwVpcFirewallAclRule
properties:
vpcFirewallId: vfw-ydmjakzksgf7u99j****
action: accept
destinationType: group
destination: ${fooCfwAddressBook.id}
proto: TCP
sourceType: net
source: 0.0.0.0/0
description: acc-test-control-policy
destPortType: port
destPort: '300'
repeatType: Weekly
repeatStartTime: 01:00
repeatEndTime: 11:00
repeatDays:
- 2
- 5
startTime: 1.7360928e+09
endTime: 1.73833914e+09
priority: 1
status: true
Create CfwVpcFirewallAclRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CfwVpcFirewallAclRule(name: string, args: CfwVpcFirewallAclRuleArgs, opts?: CustomResourceOptions);
@overload
def CfwVpcFirewallAclRule(resource_name: str,
args: CfwVpcFirewallAclRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CfwVpcFirewallAclRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
proto: Optional[str] = None,
source: Optional[str] = None,
vpc_firewall_id: Optional[str] = None,
source_type: Optional[str] = None,
destination: Optional[str] = None,
destination_type: Optional[str] = None,
action: Optional[str] = None,
priority: Optional[int] = None,
description: Optional[str] = None,
repeat_end_time: Optional[str] = None,
repeat_days: Optional[Sequence[int]] = None,
repeat_start_time: Optional[str] = None,
repeat_type: Optional[str] = None,
end_time: Optional[int] = None,
dest_port_type: Optional[str] = None,
start_time: Optional[int] = None,
status: Optional[bool] = None,
dest_port: Optional[str] = None)
func NewCfwVpcFirewallAclRule(ctx *Context, name string, args CfwVpcFirewallAclRuleArgs, opts ...ResourceOption) (*CfwVpcFirewallAclRule, error)
public CfwVpcFirewallAclRule(string name, CfwVpcFirewallAclRuleArgs args, CustomResourceOptions? opts = null)
public CfwVpcFirewallAclRule(String name, CfwVpcFirewallAclRuleArgs args)
public CfwVpcFirewallAclRule(String name, CfwVpcFirewallAclRuleArgs args, CustomResourceOptions options)
type: volcengine:cloud_firewall:CfwVpcFirewallAclRule
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 CfwVpcFirewallAclRuleArgs
- 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 CfwVpcFirewallAclRuleArgs
- 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 CfwVpcFirewallAclRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CfwVpcFirewallAclRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CfwVpcFirewallAclRuleArgs
- 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 cfwVpcFirewallAclRuleResource = new Volcengine.Cloud_firewall.CfwVpcFirewallAclRule("cfwVpcFirewallAclRuleResource", new()
{
Proto = "string",
Source = "string",
VpcFirewallId = "string",
SourceType = "string",
Destination = "string",
DestinationType = "string",
Action = "string",
Priority = 0,
Description = "string",
RepeatEndTime = "string",
RepeatDays = new[]
{
0,
},
RepeatStartTime = "string",
RepeatType = "string",
EndTime = 0,
DestPortType = "string",
StartTime = 0,
Status = false,
DestPort = "string",
});
example, err := cloud_firewall.NewCfwVpcFirewallAclRule(ctx, "cfwVpcFirewallAclRuleResource", &cloud_firewall.CfwVpcFirewallAclRuleArgs{
Proto: pulumi.String("string"),
Source: pulumi.String("string"),
VpcFirewallId: pulumi.String("string"),
SourceType: pulumi.String("string"),
Destination: pulumi.String("string"),
DestinationType: pulumi.String("string"),
Action: pulumi.String("string"),
Priority: pulumi.Int(0),
Description: pulumi.String("string"),
RepeatEndTime: pulumi.String("string"),
RepeatDays: pulumi.IntArray{
pulumi.Int(0),
},
RepeatStartTime: pulumi.String("string"),
RepeatType: pulumi.String("string"),
EndTime: pulumi.Int(0),
DestPortType: pulumi.String("string"),
StartTime: pulumi.Int(0),
Status: pulumi.Bool(false),
DestPort: pulumi.String("string"),
})
var cfwVpcFirewallAclRuleResource = new CfwVpcFirewallAclRule("cfwVpcFirewallAclRuleResource", CfwVpcFirewallAclRuleArgs.builder()
.proto("string")
.source("string")
.vpcFirewallId("string")
.sourceType("string")
.destination("string")
.destinationType("string")
.action("string")
.priority(0)
.description("string")
.repeatEndTime("string")
.repeatDays(0)
.repeatStartTime("string")
.repeatType("string")
.endTime(0)
.destPortType("string")
.startTime(0)
.status(false)
.destPort("string")
.build());
cfw_vpc_firewall_acl_rule_resource = volcengine.cloud_firewall.CfwVpcFirewallAclRule("cfwVpcFirewallAclRuleResource",
proto="string",
source="string",
vpc_firewall_id="string",
source_type="string",
destination="string",
destination_type="string",
action="string",
priority=0,
description="string",
repeat_end_time="string",
repeat_days=[0],
repeat_start_time="string",
repeat_type="string",
end_time=0,
dest_port_type="string",
start_time=0,
status=False,
dest_port="string")
const cfwVpcFirewallAclRuleResource = new volcengine.cloud_firewall.CfwVpcFirewallAclRule("cfwVpcFirewallAclRuleResource", {
proto: "string",
source: "string",
vpcFirewallId: "string",
sourceType: "string",
destination: "string",
destinationType: "string",
action: "string",
priority: 0,
description: "string",
repeatEndTime: "string",
repeatDays: [0],
repeatStartTime: "string",
repeatType: "string",
endTime: 0,
destPortType: "string",
startTime: 0,
status: false,
destPort: "string",
});
type: volcengine:cloud_firewall:CfwVpcFirewallAclRule
properties:
action: string
description: string
destPort: string
destPortType: string
destination: string
destinationType: string
endTime: 0
priority: 0
proto: string
repeatDays:
- 0
repeatEndTime: string
repeatStartTime: string
repeatType: string
source: string
sourceType: string
startTime: 0
status: false
vpcFirewallId: string
CfwVpcFirewallAclRule 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 CfwVpcFirewallAclRule resource accepts the following input properties:
- Action string
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - Destination string
- The destination of the vpc firewall acl rule.
- Destination
Type string - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - Proto string
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - Source string
- The source of the vpc firewall acl rule.
- Source
Type string - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - Vpc
Firewall stringId - The id of the vpc firewall.
- Description string
- The description of the vpc firewall acl rule.
- Dest
Port string - The dest port of the vpc firewall acl rule.
- Dest
Port stringType - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - End
Time int - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - Priority int
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- Repeat
Days List<int> - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - Repeat
End stringTime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - Repeat
Start stringTime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - Repeat
Type string - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - Start
Time int - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - Status bool
- Whether to enable the vpc firewall acl rule. Default is false.
- Action string
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - Destination string
- The destination of the vpc firewall acl rule.
- Destination
Type string - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - Proto string
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - Source string
- The source of the vpc firewall acl rule.
- Source
Type string - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - Vpc
Firewall stringId - The id of the vpc firewall.
- Description string
- The description of the vpc firewall acl rule.
- Dest
Port string - The dest port of the vpc firewall acl rule.
- Dest
Port stringType - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - End
Time int - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - Priority int
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- Repeat
Days []int - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - Repeat
End stringTime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - Repeat
Start stringTime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - Repeat
Type string - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - Start
Time int - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - Status bool
- Whether to enable the vpc firewall acl rule. Default is false.
- action String
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - destination String
- The destination of the vpc firewall acl rule.
- destination
Type String - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - proto String
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - source String
- The source of the vpc firewall acl rule.
- source
Type String - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - vpc
Firewall StringId - The id of the vpc firewall.
- description String
- The description of the vpc firewall acl rule.
- dest
Port String - The dest port of the vpc firewall acl rule.
- dest
Port StringType - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - end
Time Integer - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - priority Integer
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- repeat
Days List<Integer> - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - repeat
End StringTime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Start StringTime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Type String - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - start
Time Integer - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - status Boolean
- Whether to enable the vpc firewall acl rule. Default is false.
- action string
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - destination string
- The destination of the vpc firewall acl rule.
- destination
Type string - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - proto string
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - source string
- The source of the vpc firewall acl rule.
- source
Type string - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - vpc
Firewall stringId - The id of the vpc firewall.
- description string
- The description of the vpc firewall acl rule.
- dest
Port string - The dest port of the vpc firewall acl rule.
- dest
Port stringType - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - end
Time number - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - priority number
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- repeat
Days number[] - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - repeat
End stringTime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Start stringTime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Type string - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - start
Time number - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - status boolean
- Whether to enable the vpc firewall acl rule. Default is false.
- action str
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - destination str
- The destination of the vpc firewall acl rule.
- destination_
type str - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - proto str
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - source str
- The source of the vpc firewall acl rule.
- source_
type str - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - vpc_
firewall_ strid - The id of the vpc firewall.
- description str
- The description of the vpc firewall acl rule.
- dest_
port str - The dest port of the vpc firewall acl rule.
- dest_
port_ strtype - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - end_
time int - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - priority int
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- repeat_
days Sequence[int] - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - repeat_
end_ strtime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat_
start_ strtime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat_
type str - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - start_
time int - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - status bool
- Whether to enable the vpc firewall acl rule. Default is false.
- action String
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - destination String
- The destination of the vpc firewall acl rule.
- destination
Type String - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - proto String
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - source String
- The source of the vpc firewall acl rule.
- source
Type String - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - vpc
Firewall StringId - The id of the vpc firewall.
- description String
- The description of the vpc firewall acl rule.
- dest
Port String - The dest port of the vpc firewall acl rule.
- dest
Port StringType - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - end
Time Number - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - priority Number
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- repeat
Days List<Number> - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - repeat
End StringTime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Start StringTime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Type String - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - start
Time Number - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - status Boolean
- Whether to enable the vpc firewall acl rule. Default is false.
Outputs
All input properties are implicitly available as output properties. Additionally, the CfwVpcFirewallAclRule resource produces the following output properties:
- Account
Id string - The account id of the vpc firewall acl rule.
- Effect
Status int - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- Hit
Cnt int - The hit count of the vpc firewall acl rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Effected bool - Whether the vpc firewall acl rule is effected.
- Prio int
- The priority of the vpc firewall acl rule.
- Rule
Id string - The rule id of the vpc firewall acl rule.
- Update
Time int - The update time of the vpc firewall acl rule.
- Use
Count int - The use count of the vpc firewall acl rule.
- Vpc
Firewall stringName - The name of the vpc firewall.
- Account
Id string - The account id of the vpc firewall acl rule.
- Effect
Status int - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- Hit
Cnt int - The hit count of the vpc firewall acl rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Effected bool - Whether the vpc firewall acl rule is effected.
- Prio int
- The priority of the vpc firewall acl rule.
- Rule
Id string - The rule id of the vpc firewall acl rule.
- Update
Time int - The update time of the vpc firewall acl rule.
- Use
Count int - The use count of the vpc firewall acl rule.
- Vpc
Firewall stringName - The name of the vpc firewall.
- account
Id String - The account id of the vpc firewall acl rule.
- effect
Status Integer - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- hit
Cnt Integer - The hit count of the vpc firewall acl rule.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Effected Boolean - Whether the vpc firewall acl rule is effected.
- prio Integer
- The priority of the vpc firewall acl rule.
- rule
Id String - The rule id of the vpc firewall acl rule.
- update
Time Integer - The update time of the vpc firewall acl rule.
- use
Count Integer - The use count of the vpc firewall acl rule.
- vpc
Firewall StringName - The name of the vpc firewall.
- account
Id string - The account id of the vpc firewall acl rule.
- effect
Status number - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- hit
Cnt number - The hit count of the vpc firewall acl rule.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Effected boolean - Whether the vpc firewall acl rule is effected.
- prio number
- The priority of the vpc firewall acl rule.
- rule
Id string - The rule id of the vpc firewall acl rule.
- update
Time number - The update time of the vpc firewall acl rule.
- use
Count number - The use count of the vpc firewall acl rule.
- vpc
Firewall stringName - The name of the vpc firewall.
- account_
id str - The account id of the vpc firewall acl rule.
- effect_
status int - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- hit_
cnt int - The hit count of the vpc firewall acl rule.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
effected bool - Whether the vpc firewall acl rule is effected.
- prio int
- The priority of the vpc firewall acl rule.
- rule_
id str - The rule id of the vpc firewall acl rule.
- update_
time int - The update time of the vpc firewall acl rule.
- use_
count int - The use count of the vpc firewall acl rule.
- vpc_
firewall_ strname - The name of the vpc firewall.
- account
Id String - The account id of the vpc firewall acl rule.
- effect
Status Number - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- hit
Cnt Number - The hit count of the vpc firewall acl rule.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Effected Boolean - Whether the vpc firewall acl rule is effected.
- prio Number
- The priority of the vpc firewall acl rule.
- rule
Id String - The rule id of the vpc firewall acl rule.
- update
Time Number - The update time of the vpc firewall acl rule.
- use
Count Number - The use count of the vpc firewall acl rule.
- vpc
Firewall StringName - The name of the vpc firewall.
Look up Existing CfwVpcFirewallAclRule Resource
Get an existing CfwVpcFirewallAclRule 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?: CfwVpcFirewallAclRuleState, opts?: CustomResourceOptions): CfwVpcFirewallAclRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
action: Optional[str] = None,
description: Optional[str] = None,
dest_port: Optional[str] = None,
dest_port_type: Optional[str] = None,
destination: Optional[str] = None,
destination_type: Optional[str] = None,
effect_status: Optional[int] = None,
end_time: Optional[int] = None,
hit_cnt: Optional[int] = None,
is_effected: Optional[bool] = None,
prio: Optional[int] = None,
priority: Optional[int] = None,
proto: Optional[str] = None,
repeat_days: Optional[Sequence[int]] = None,
repeat_end_time: Optional[str] = None,
repeat_start_time: Optional[str] = None,
repeat_type: Optional[str] = None,
rule_id: Optional[str] = None,
source: Optional[str] = None,
source_type: Optional[str] = None,
start_time: Optional[int] = None,
status: Optional[bool] = None,
update_time: Optional[int] = None,
use_count: Optional[int] = None,
vpc_firewall_id: Optional[str] = None,
vpc_firewall_name: Optional[str] = None) -> CfwVpcFirewallAclRule
func GetCfwVpcFirewallAclRule(ctx *Context, name string, id IDInput, state *CfwVpcFirewallAclRuleState, opts ...ResourceOption) (*CfwVpcFirewallAclRule, error)
public static CfwVpcFirewallAclRule Get(string name, Input<string> id, CfwVpcFirewallAclRuleState? state, CustomResourceOptions? opts = null)
public static CfwVpcFirewallAclRule get(String name, Output<String> id, CfwVpcFirewallAclRuleState state, CustomResourceOptions options)
resources: _: type: volcengine:cloud_firewall:CfwVpcFirewallAclRule 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.
- Account
Id string - The account id of the vpc firewall acl rule.
- Action string
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - Description string
- The description of the vpc firewall acl rule.
- Dest
Port string - The dest port of the vpc firewall acl rule.
- Dest
Port stringType - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - Destination string
- The destination of the vpc firewall acl rule.
- Destination
Type string - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - Effect
Status int - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- End
Time int - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - Hit
Cnt int - The hit count of the vpc firewall acl rule.
- Is
Effected bool - Whether the vpc firewall acl rule is effected.
- Prio int
- The priority of the vpc firewall acl rule.
- Priority int
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- Proto string
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - Repeat
Days List<int> - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - Repeat
End stringTime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - Repeat
Start stringTime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - Repeat
Type string - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - Rule
Id string - The rule id of the vpc firewall acl rule.
- Source string
- The source of the vpc firewall acl rule.
- Source
Type string - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - Start
Time int - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - Status bool
- Whether to enable the vpc firewall acl rule. Default is false.
- Update
Time int - The update time of the vpc firewall acl rule.
- Use
Count int - The use count of the vpc firewall acl rule.
- Vpc
Firewall stringId - The id of the vpc firewall.
- Vpc
Firewall stringName - The name of the vpc firewall.
- Account
Id string - The account id of the vpc firewall acl rule.
- Action string
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - Description string
- The description of the vpc firewall acl rule.
- Dest
Port string - The dest port of the vpc firewall acl rule.
- Dest
Port stringType - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - Destination string
- The destination of the vpc firewall acl rule.
- Destination
Type string - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - Effect
Status int - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- End
Time int - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - Hit
Cnt int - The hit count of the vpc firewall acl rule.
- Is
Effected bool - Whether the vpc firewall acl rule is effected.
- Prio int
- The priority of the vpc firewall acl rule.
- Priority int
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- Proto string
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - Repeat
Days []int - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - Repeat
End stringTime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - Repeat
Start stringTime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - Repeat
Type string - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - Rule
Id string - The rule id of the vpc firewall acl rule.
- Source string
- The source of the vpc firewall acl rule.
- Source
Type string - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - Start
Time int - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - Status bool
- Whether to enable the vpc firewall acl rule. Default is false.
- Update
Time int - The update time of the vpc firewall acl rule.
- Use
Count int - The use count of the vpc firewall acl rule.
- Vpc
Firewall stringId - The id of the vpc firewall.
- Vpc
Firewall stringName - The name of the vpc firewall.
- account
Id String - The account id of the vpc firewall acl rule.
- action String
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - description String
- The description of the vpc firewall acl rule.
- dest
Port String - The dest port of the vpc firewall acl rule.
- dest
Port StringType - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - destination String
- The destination of the vpc firewall acl rule.
- destination
Type String - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - effect
Status Integer - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- end
Time Integer - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - hit
Cnt Integer - The hit count of the vpc firewall acl rule.
- is
Effected Boolean - Whether the vpc firewall acl rule is effected.
- prio Integer
- The priority of the vpc firewall acl rule.
- priority Integer
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- proto String
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - repeat
Days List<Integer> - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - repeat
End StringTime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Start StringTime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Type String - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - rule
Id String - The rule id of the vpc firewall acl rule.
- source String
- The source of the vpc firewall acl rule.
- source
Type String - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - start
Time Integer - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - status Boolean
- Whether to enable the vpc firewall acl rule. Default is false.
- update
Time Integer - The update time of the vpc firewall acl rule.
- use
Count Integer - The use count of the vpc firewall acl rule.
- vpc
Firewall StringId - The id of the vpc firewall.
- vpc
Firewall StringName - The name of the vpc firewall.
- account
Id string - The account id of the vpc firewall acl rule.
- action string
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - description string
- The description of the vpc firewall acl rule.
- dest
Port string - The dest port of the vpc firewall acl rule.
- dest
Port stringType - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - destination string
- The destination of the vpc firewall acl rule.
- destination
Type string - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - effect
Status number - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- end
Time number - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - hit
Cnt number - The hit count of the vpc firewall acl rule.
- is
Effected boolean - Whether the vpc firewall acl rule is effected.
- prio number
- The priority of the vpc firewall acl rule.
- priority number
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- proto string
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - repeat
Days number[] - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - repeat
End stringTime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Start stringTime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Type string - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - rule
Id string - The rule id of the vpc firewall acl rule.
- source string
- The source of the vpc firewall acl rule.
- source
Type string - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - start
Time number - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - status boolean
- Whether to enable the vpc firewall acl rule. Default is false.
- update
Time number - The update time of the vpc firewall acl rule.
- use
Count number - The use count of the vpc firewall acl rule.
- vpc
Firewall stringId - The id of the vpc firewall.
- vpc
Firewall stringName - The name of the vpc firewall.
- account_
id str - The account id of the vpc firewall acl rule.
- action str
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - description str
- The description of the vpc firewall acl rule.
- dest_
port str - The dest port of the vpc firewall acl rule.
- dest_
port_ strtype - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - destination str
- The destination of the vpc firewall acl rule.
- destination_
type str - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - effect_
status int - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- end_
time int - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - hit_
cnt int - The hit count of the vpc firewall acl rule.
- is_
effected bool - Whether the vpc firewall acl rule is effected.
- prio int
- The priority of the vpc firewall acl rule.
- priority int
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- proto str
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - repeat_
days Sequence[int] - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - repeat_
end_ strtime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat_
start_ strtime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat_
type str - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - rule_
id str - The rule id of the vpc firewall acl rule.
- source str
- The source of the vpc firewall acl rule.
- source_
type str - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - start_
time int - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - status bool
- Whether to enable the vpc firewall acl rule. Default is false.
- update_
time int - The update time of the vpc firewall acl rule.
- use_
count int - The use count of the vpc firewall acl rule.
- vpc_
firewall_ strid - The id of the vpc firewall.
- vpc_
firewall_ strname - The name of the vpc firewall.
- account
Id String - The account id of the vpc firewall acl rule.
- action String
- The action of the vpc firewall acl rule. Valid values:
accept
,deny
,monitor
. - description String
- The description of the vpc firewall acl rule.
- dest
Port String - The dest port of the vpc firewall acl rule.
- dest
Port StringType - The dest port type of the vpc firewall acl rule. Valid values:
port
,group
. - destination String
- The destination of the vpc firewall acl rule.
- destination
Type String - The destination type of the vpc firewall acl rule. Valid values:
net
,group
,location
,domain
. - effect
Status Number - The effect status of the vpc firewall acl rule. 1: Not yet effective, 2: Issued in progress, 3: Effective.
- end
Time Number - The end time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - hit
Cnt Number - The hit count of the vpc firewall acl rule.
- is
Effected Boolean - Whether the vpc firewall acl rule is effected.
- prio Number
- The priority of the vpc firewall acl rule.
- priority Number
- The priority of the vpc firewall acl rule. Default is 0. This field is only effective when creating a control policy.0 means lowest priority, 1 means highest priority. The priority increases in order from 1, with lower priority indicating higher priority.
- proto String
- The proto of the vpc firewall acl rule. Valid values:
TCP
,ICMP
,UDP
,ANY
. When the destination_type isdomain
, The proto must beTCP
. - repeat
Days List<Number> - The repeat days of the vpc firewall acl rule. When the value of repeat_type is one of
Weekly
,Monthly
, this field is required. When the repeat_type isWeekly
, the valid value range is 0~6. When the repeat_type isMonthly
, the valid value range is 1~31. - repeat
End StringTime - The repeat end time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Start StringTime - The repeat start time of the vpc firewall acl rule. Accurate to the minute, in the format of hh: mm. For example: 12:00.
When the value of repeat_type is one of
Daily
,Weekly
,Monthly
, this field is required. - repeat
Type String - The repeat type of the vpc firewall acl rule. Valid values:
Permanent
,Once
,Daily
,Weekly
,Monthly
. - rule
Id String - The rule id of the vpc firewall acl rule.
- source String
- The source of the vpc firewall acl rule.
- source
Type String - The source type of the vpc firewall acl rule. Valid values:
net
,group
. - start
Time Number - The start time of the vpc firewall acl rule. Unix timestamp, fields need to be precise to 23:59:00 of the set date.
When the value of repeat_type is one of
Once
,Daily
,Weekly
,Monthly
, this field is required. - status Boolean
- Whether to enable the vpc firewall acl rule. Default is false.
- update
Time Number - The update time of the vpc firewall acl rule.
- use
Count Number - The use count of the vpc firewall acl rule.
- vpc
Firewall StringId - The id of the vpc firewall.
- vpc
Firewall StringName - The name of the vpc firewall.
Import
VpcFirewallAclRule can be imported using the vpc_firewall_id:rule_id, e.g.
$ pulumi import volcengine:cloud_firewall/cfwVpcFirewallAclRule:CfwVpcFirewallAclRule 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.