Class 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]
Inherited Members
Namespace: Pulumi.AliCloud.RocketMQ
Assembly: Pulumi.AliCloud.dll
Syntax
public class AclRule : CustomResource
Constructors
View SourceAclRule(String, AclRuleArgs, CustomResourceOptions)
Create a AclRule resource with the given unique name, arguments, and options.
Declaration
public AclRule(string name, AclRuleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AclRuleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAclId
The ID of the ACL.
Declaration
public Output<string> AclId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
The description of the ACL rule. It must be 1 to 512 characters in length.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DestCidr
The destination address. It is an IPv4 address range in CIDR format. Default value: 0.0.0.0/0.
Declaration
public Output<string> DestCidr { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DestPortRange
The range of the destination port. Valid value: 80/80.
Declaration
public Output<string> DestPortRange { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Direction
The direction of the ACL rule. Valid values: in|out.
Declaration
public Output<string> Direction { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IpProtocol
The protocol used by the ACL rule. The value is not case sensitive.
Declaration
public Output<string> IpProtocol { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Policy
The policy used by the ACL rule. Valid values: accept|drop.
Declaration
public Output<string> Policy { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Priority
The priority of the ACL rule. Value range: 1 to 100.
Declaration
public Output<int?> Priority { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
SourceCidr
The source address. It is an IPv4 address range in the CIDR format. Default value: 0.0.0.0/0.
Declaration
public Output<string> SourceCidr { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SourcePortRange
The range of the source port. Valid value: 80/80.
Declaration
public Output<string> SourcePortRange { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AclRuleState, CustomResourceOptions)
Get an existing AclRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AclRule Get(string name, Input<string> id, AclRuleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AclRuleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AclRule |