AclRule

Provides a Sag Acl Rule resource. This topic describes how to configure an access control list (ACL) rule for a target Smart Access Gateway instance to permit or deny access to or from specified IP addresses in the ACL rule.

For information about Sag Acl Rule and how to use it, see What is access control list (ACL) rule.

NOTE: Available in 1.60.0+

NOTE: Only the following regions support create Cloud Connect Network. [cn-shanghai, cn-shanghai-finance-1, cn-hongkong, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-5, ap-northeast-1, eu-central-1]

Create a AclRule Resource

new AclRule(name: string, args: AclRuleArgs, opts?: CustomResourceOptions);
def AclRule(resource_name, opts=None, acl_id=None, description=None, dest_cidr=None, dest_port_range=None, direction=None, ip_protocol=None, policy=None, priority=None, source_cidr=None, source_port_range=None, __props__=None);
func NewAclRule(ctx *Context, name string, args AclRuleArgs, opts ...ResourceOption) (*AclRule, error)
public AclRule(string name, AclRuleArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args AclRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AclRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AclRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

AclRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The AclRule resource accepts the following input properties:

AclId string

The ID of the ACL.

DestCidr string

The destination address. It is an IPv4 address range in CIDR format. Default value: 0.0.0.0/0.

DestPortRange string

The range of the destination port. Valid value: 80/80.

Direction string

The direction of the ACL rule. Valid values: in|out.

IpProtocol string

The protocol used by the ACL rule. The value is not case sensitive.

Policy string

The policy used by the ACL rule. Valid values: accept|drop.

SourceCidr string

The source address. It is an IPv4 address range in the CIDR format. Default value: 0.0.0.0/0.

SourcePortRange string

The range of the source port. Valid value: 80/80.

Description string

The description of the ACL rule. It must be 1 to 512 characters in length.

Priority int

The priority of the ACL rule. Value range: 1 to 100.

AclId string

The ID of the ACL.

DestCidr string

The destination address. It is an IPv4 address range in CIDR format. Default value: 0.0.0.0/0.

DestPortRange string

The range of the destination port. Valid value: 80/80.

Direction string

The direction of the ACL rule. Valid values: in|out.

IpProtocol string

The protocol used by the ACL rule. The value is not case sensitive.

Policy string

The policy used by the ACL rule. Valid values: accept|drop.

SourceCidr string

The source address. It is an IPv4 address range in the CIDR format. Default value: 0.0.0.0/0.

SourcePortRange string

The range of the source port. Valid value: 80/80.

Description string

The description of the ACL rule. It must be 1 to 512 characters in length.

Priority int

The priority of the ACL rule. Value range: 1 to 100.

aclId string

The ID of the ACL.

destCidr string

The destination address. It is an IPv4 address range in CIDR format. Default value: 0.0.0.0/0.

destPortRange string

The range of the destination port. Valid value: 80/80.

direction string

The direction of the ACL rule. Valid values: in|out.

ipProtocol string

The protocol used by the ACL rule. The value is not case sensitive.

policy string

The policy used by the ACL rule. Valid values: accept|drop.

sourceCidr string

The source address. It is an IPv4 address range in the CIDR format. Default value: 0.0.0.0/0.

sourcePortRange string

The range of the source port. Valid value: 80/80.

description string

The description of the ACL rule. It must be 1 to 512 characters in length.

priority number

The priority of the ACL rule. Value range: 1 to 100.

acl_id str

The ID of the ACL.

dest_cidr str

The destination address. It is an IPv4 address range in CIDR format. Default value: 0.0.0.0/0.

dest_port_range str

The range of the destination port. Valid value: 80/80.

direction str

The direction of the ACL rule. Valid values: in|out.

ip_protocol str

The protocol used by the ACL rule. The value is not case sensitive.

policy str

The policy used by the ACL rule. Valid values: accept|drop.

source_cidr str

The source address. It is an IPv4 address range in the CIDR format. Default value: 0.0.0.0/0.

source_port_range str

The range of the source port. Valid value: 80/80.

description str

The description of the ACL rule. It must be 1 to 512 characters in length.

priority float

The priority of the ACL rule. Value range: 1 to 100.

Outputs

All input properties are implicitly available as output properties. Additionally, the AclRule 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing AclRule Resource

Get an existing AclRule 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?: AclRuleState, opts?: CustomResourceOptions): AclRule
static get(resource_name, id, opts=None, acl_id=None, description=None, dest_cidr=None, dest_port_range=None, direction=None, ip_protocol=None, policy=None, priority=None, source_cidr=None, source_port_range=None, __props__=None);
func GetAclRule(ctx *Context, name string, id IDInput, state *AclRuleState, opts ...ResourceOption) (*AclRule, error)
public static AclRule Get(string name, Input<string> id, AclRuleState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

AclId string

The ID of the ACL.

Description string

The description of the ACL rule. It must be 1 to 512 characters in length.

DestCidr string

The destination address. It is an IPv4 address range in CIDR format. Default value: 0.0.0.0/0.

DestPortRange string

The range of the destination port. Valid value: 80/80.

Direction string

The direction of the ACL rule. Valid values: in|out.

IpProtocol string

The protocol used by the ACL rule. The value is not case sensitive.

Policy string

The policy used by the ACL rule. Valid values: accept|drop.

Priority int

The priority of the ACL rule. Value range: 1 to 100.

SourceCidr string

The source address. It is an IPv4 address range in the CIDR format. Default value: 0.0.0.0/0.

SourcePortRange string

The range of the source port. Valid value: 80/80.

AclId string

The ID of the ACL.

Description string

The description of the ACL rule. It must be 1 to 512 characters in length.

DestCidr string

The destination address. It is an IPv4 address range in CIDR format. Default value: 0.0.0.0/0.

DestPortRange string

The range of the destination port. Valid value: 80/80.

Direction string

The direction of the ACL rule. Valid values: in|out.

IpProtocol string

The protocol used by the ACL rule. The value is not case sensitive.

Policy string

The policy used by the ACL rule. Valid values: accept|drop.

Priority int

The priority of the ACL rule. Value range: 1 to 100.

SourceCidr string

The source address. It is an IPv4 address range in the CIDR format. Default value: 0.0.0.0/0.

SourcePortRange string

The range of the source port. Valid value: 80/80.

aclId string

The ID of the ACL.

description string

The description of the ACL rule. It must be 1 to 512 characters in length.

destCidr string

The destination address. It is an IPv4 address range in CIDR format. Default value: 0.0.0.0/0.

destPortRange string

The range of the destination port. Valid value: 80/80.

direction string

The direction of the ACL rule. Valid values: in|out.

ipProtocol string

The protocol used by the ACL rule. The value is not case sensitive.

policy string

The policy used by the ACL rule. Valid values: accept|drop.

priority number

The priority of the ACL rule. Value range: 1 to 100.

sourceCidr string

The source address. It is an IPv4 address range in the CIDR format. Default value: 0.0.0.0/0.

sourcePortRange string

The range of the source port. Valid value: 80/80.

acl_id str

The ID of the ACL.

description str

The description of the ACL rule. It must be 1 to 512 characters in length.

dest_cidr str

The destination address. It is an IPv4 address range in CIDR format. Default value: 0.0.0.0/0.

dest_port_range str

The range of the destination port. Valid value: 80/80.

direction str

The direction of the ACL rule. Valid values: in|out.

ip_protocol str

The protocol used by the ACL rule. The value is not case sensitive.

policy str

The policy used by the ACL rule. Valid values: accept|drop.

priority float

The priority of the ACL rule. Value range: 1 to 100.

source_cidr str

The source address. It is an IPv4 address range in the CIDR format. Default value: 0.0.0.0/0.

source_port_range str

The range of the source port. Valid value: 80/80.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.