alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.vpc.NetworkAcl

Provides a network acl resource to add network acls.

NOTE: Available in 1.43.0+. Currently, the resource are only available in Hongkong(cn-hongkong), India(ap-south-1), and Indonesia(ap-southeast-1) regions.

Create NetworkAcl Resource

new NetworkAcl(name: string, args: NetworkAclArgs, opts?: CustomResourceOptions);
@overload
def NetworkAcl(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               description: Optional[str] = None,
               egress_acl_entries: Optional[Sequence[NetworkAclEgressAclEntryArgs]] = None,
               ingress_acl_entries: Optional[Sequence[NetworkAclIngressAclEntryArgs]] = None,
               name: Optional[str] = None,
               network_acl_name: Optional[str] = None,
               resources: Optional[Sequence[NetworkAclResourceArgs]] = None,
               vpc_id: Optional[str] = None)
@overload
def NetworkAcl(resource_name: str,
               args: NetworkAclArgs,
               opts: Optional[ResourceOptions] = None)
func NewNetworkAcl(ctx *Context, name string, args NetworkAclArgs, opts ...ResourceOption) (*NetworkAcl, error)
public NetworkAcl(string name, NetworkAclArgs args, CustomResourceOptions? opts = null)
public NetworkAcl(String name, NetworkAclArgs args)
public NetworkAcl(String name, NetworkAclArgs args, CustomResourceOptions options)
type: alicloud:vpc:NetworkAcl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NetworkAclArgs
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 NetworkAclArgs
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 NetworkAclArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NetworkAclArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NetworkAclArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

NetworkAcl Resource Properties

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

Inputs

The NetworkAcl resource accepts the following input properties:

VpcId string

The vpc_id of the network acl, the field can't be changed.

Description string

The description of the network acl instance.

EgressAclEntries List<Pulumi.AliCloud.Vpc.Inputs.NetworkAclEgressAclEntryArgs>

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

IngressAclEntries List<Pulumi.AliCloud.Vpc.Inputs.NetworkAclIngressAclEntryArgs>

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

Name string

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

NetworkAclName string

The name of the network acl.

Resources List<Pulumi.AliCloud.Vpc.Inputs.NetworkAclResourceArgs>

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

VpcId string

The vpc_id of the network acl, the field can't be changed.

Description string

The description of the network acl instance.

EgressAclEntries []NetworkAclEgressAclEntryArgs

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

IngressAclEntries []NetworkAclIngressAclEntryArgs

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

Name string

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

NetworkAclName string

The name of the network acl.

Resources []NetworkAclResourceArgs

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

vpcId String

The vpc_id of the network acl, the field can't be changed.

description String

The description of the network acl instance.

egressAclEntries List<NetworkAclEgressAclEntryArgs>

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

ingressAclEntries List<NetworkAclIngressAclEntryArgs>

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

name String

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

networkAclName String

The name of the network acl.

resources List<NetworkAclResourceArgs>

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

vpcId string

The vpc_id of the network acl, the field can't be changed.

description string

The description of the network acl instance.

egressAclEntries NetworkAclEgressAclEntryArgs[]

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

ingressAclEntries NetworkAclIngressAclEntryArgs[]

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

name string

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

networkAclName string

The name of the network acl.

resources NetworkAclResourceArgs[]

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

vpc_id str

The vpc_id of the network acl, the field can't be changed.

description str

The description of the network acl instance.

egress_acl_entries Sequence[NetworkAclEgressAclEntryArgs]

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

ingress_acl_entries Sequence[NetworkAclIngressAclEntryArgs]

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

name str

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

network_acl_name str

The name of the network acl.

resources Sequence[NetworkAclResourceArgs]

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

vpcId String

The vpc_id of the network acl, the field can't be changed.

description String

The description of the network acl instance.

egressAclEntries List<Property Map>

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

ingressAclEntries List<Property Map>

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

name String

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

networkAclName String

The name of the network acl.

resources List<Property Map>

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

Outputs

All input properties are implicitly available as output properties. Additionally, the NetworkAcl resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Status string

(Available in 1.122.0+) The status of the network acl.

Id string

The provider-assigned unique ID for this managed resource.

Status string

(Available in 1.122.0+) The status of the network acl.

id String

The provider-assigned unique ID for this managed resource.

status String

(Available in 1.122.0+) The status of the network acl.

id string

The provider-assigned unique ID for this managed resource.

status string

(Available in 1.122.0+) The status of the network acl.

id str

The provider-assigned unique ID for this managed resource.

status str

(Available in 1.122.0+) The status of the network acl.

id String

The provider-assigned unique ID for this managed resource.

status String

(Available in 1.122.0+) The status of the network acl.

Look up Existing NetworkAcl Resource

Get an existing NetworkAcl 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?: NetworkAclState, opts?: CustomResourceOptions): NetworkAcl
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        egress_acl_entries: Optional[Sequence[NetworkAclEgressAclEntryArgs]] = None,
        ingress_acl_entries: Optional[Sequence[NetworkAclIngressAclEntryArgs]] = None,
        name: Optional[str] = None,
        network_acl_name: Optional[str] = None,
        resources: Optional[Sequence[NetworkAclResourceArgs]] = None,
        status: Optional[str] = None,
        vpc_id: Optional[str] = None) -> NetworkAcl
func GetNetworkAcl(ctx *Context, name string, id IDInput, state *NetworkAclState, opts ...ResourceOption) (*NetworkAcl, error)
public static NetworkAcl Get(string name, Input<string> id, NetworkAclState? state, CustomResourceOptions? opts = null)
public static NetworkAcl get(String name, Output<String> id, NetworkAclState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Description string

The description of the network acl instance.

EgressAclEntries List<Pulumi.AliCloud.Vpc.Inputs.NetworkAclEgressAclEntryArgs>

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

IngressAclEntries List<Pulumi.AliCloud.Vpc.Inputs.NetworkAclIngressAclEntryArgs>

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

Name string

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

NetworkAclName string

The name of the network acl.

Resources List<Pulumi.AliCloud.Vpc.Inputs.NetworkAclResourceArgs>

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

Status string

(Available in 1.122.0+) The status of the network acl.

VpcId string

The vpc_id of the network acl, the field can't be changed.

Description string

The description of the network acl instance.

EgressAclEntries []NetworkAclEgressAclEntryArgs

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

IngressAclEntries []NetworkAclIngressAclEntryArgs

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

Name string

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

NetworkAclName string

The name of the network acl.

Resources []NetworkAclResourceArgs

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

Status string

(Available in 1.122.0+) The status of the network acl.

VpcId string

The vpc_id of the network acl, the field can't be changed.

description String

The description of the network acl instance.

egressAclEntries List<NetworkAclEgressAclEntryArgs>

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

ingressAclEntries List<NetworkAclIngressAclEntryArgs>

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

name String

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

networkAclName String

The name of the network acl.

resources List<NetworkAclResourceArgs>

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

status String

(Available in 1.122.0+) The status of the network acl.

vpcId String

The vpc_id of the network acl, the field can't be changed.

description string

The description of the network acl instance.

egressAclEntries NetworkAclEgressAclEntryArgs[]

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

ingressAclEntries NetworkAclIngressAclEntryArgs[]

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

name string

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

networkAclName string

The name of the network acl.

resources NetworkAclResourceArgs[]

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

status string

(Available in 1.122.0+) The status of the network acl.

vpcId string

The vpc_id of the network acl, the field can't be changed.

description str

The description of the network acl instance.

egress_acl_entries Sequence[NetworkAclEgressAclEntryArgs]

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

ingress_acl_entries Sequence[NetworkAclIngressAclEntryArgs]

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

name str

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

network_acl_name str

The name of the network acl.

resources Sequence[NetworkAclResourceArgs]

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

status str

(Available in 1.122.0+) The status of the network acl.

vpc_id str

The vpc_id of the network acl, the field can't be changed.

description String

The description of the network acl instance.

egressAclEntries List<Property Map>

List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block egress_acl_entries.

ingressAclEntries List<Property Map>

List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block ingress_acl_entries.

name String

Field name has been deprecated from provider version 1.122.0. New field network_acl_name instead.

Deprecated:

Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead

networkAclName String

The name of the network acl.

resources List<Property Map>

The associated resources. See the following Block resources. NOTE: "Field resources has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource alicloud.vpc.VpcNetworkAclAttachment."

Deprecated:

Field 'resources' has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resource 'alicloud_vpc_network_acl_attachment'.

status String

(Available in 1.122.0+) The status of the network acl.

vpcId String

The vpc_id of the network acl, the field can't be changed.

Supporting Types

NetworkAclEgressAclEntry

Description string

The description of the network acl instance.

DestinationCidrIp string

The destination cidr ip of egress entries.

NetworkAclEntryName string

The entry name of ingress entries.

Policy string

The policy of ingress entries. Valid values accept and drop.

Port string

The port of ingress entries.

Protocol string

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

Description string

The description of the network acl instance.

DestinationCidrIp string

The destination cidr ip of egress entries.

NetworkAclEntryName string

The entry name of ingress entries.

Policy string

The policy of ingress entries. Valid values accept and drop.

Port string

The port of ingress entries.

Protocol string

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

description String

The description of the network acl instance.

destinationCidrIp String

The destination cidr ip of egress entries.

networkAclEntryName String

The entry name of ingress entries.

policy String

The policy of ingress entries. Valid values accept and drop.

port String

The port of ingress entries.

protocol String

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

description string

The description of the network acl instance.

destinationCidrIp string

The destination cidr ip of egress entries.

networkAclEntryName string

The entry name of ingress entries.

policy string

The policy of ingress entries. Valid values accept and drop.

port string

The port of ingress entries.

protocol string

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

description str

The description of the network acl instance.

destination_cidr_ip str

The destination cidr ip of egress entries.

network_acl_entry_name str

The entry name of ingress entries.

policy str

The policy of ingress entries. Valid values accept and drop.

port str

The port of ingress entries.

protocol str

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

description String

The description of the network acl instance.

destinationCidrIp String

The destination cidr ip of egress entries.

networkAclEntryName String

The entry name of ingress entries.

policy String

The policy of ingress entries. Valid values accept and drop.

port String

The port of ingress entries.

protocol String

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

NetworkAclIngressAclEntry

Description string

The description of the network acl instance.

NetworkAclEntryName string

The entry name of ingress entries.

Policy string

The policy of ingress entries. Valid values accept and drop.

Port string

The port of ingress entries.

Protocol string

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

SourceCidrIp string

The source cidr ip of ingress entries.

Description string

The description of the network acl instance.

NetworkAclEntryName string

The entry name of ingress entries.

Policy string

The policy of ingress entries. Valid values accept and drop.

Port string

The port of ingress entries.

Protocol string

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

SourceCidrIp string

The source cidr ip of ingress entries.

description String

The description of the network acl instance.

networkAclEntryName String

The entry name of ingress entries.

policy String

The policy of ingress entries. Valid values accept and drop.

port String

The port of ingress entries.

protocol String

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

sourceCidrIp String

The source cidr ip of ingress entries.

description string

The description of the network acl instance.

networkAclEntryName string

The entry name of ingress entries.

policy string

The policy of ingress entries. Valid values accept and drop.

port string

The port of ingress entries.

protocol string

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

sourceCidrIp string

The source cidr ip of ingress entries.

description str

The description of the network acl instance.

network_acl_entry_name str

The entry name of ingress entries.

policy str

The policy of ingress entries. Valid values accept and drop.

port str

The port of ingress entries.

protocol str

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

source_cidr_ip str

The source cidr ip of ingress entries.

description String

The description of the network acl instance.

networkAclEntryName String

The entry name of ingress entries.

policy String

The policy of ingress entries. Valid values accept and drop.

port String

The port of ingress entries.

protocol String

The protocol of ingress entries. Valid values icmp,gre,tcp,udp, and all.

sourceCidrIp String

The source cidr ip of ingress entries.

NetworkAclResource

ResourceId string

The ID of the associated resource.

ResourceType string

The type of the associated resource. Valid values VSwitch.

ResourceId string

The ID of the associated resource.

ResourceType string

The type of the associated resource. Valid values VSwitch.

resourceId String

The ID of the associated resource.

resourceType String

The type of the associated resource. Valid values VSwitch.

resourceId string

The ID of the associated resource.

resourceType string

The type of the associated resource. Valid values VSwitch.

resource_id str

The ID of the associated resource.

resource_type str

The type of the associated resource. Valid values VSwitch.

resourceId String

The ID of the associated resource.

resourceType String

The type of the associated resource. Valid values VSwitch.

Import

The network acl can be imported using the id, e.g.

 $ pulumi import alicloud:vpc/networkAcl:NetworkAcl default nacl-abc123456

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.