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:
- Vpc
Id string The vpc_id of the network acl, the field can't be changed.
- Description string
The description of the network acl instance.
- Egress
Acl List<Pulumi.Entries Ali Cloud. Vpc. Inputs. Network Acl Egress Acl Entry Args> 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 List<Pulumi.Entries Ali Cloud. Vpc. Inputs. Network Acl Ingress Acl Entry Args> 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- Network
Acl stringName The name of the network acl.
- Resources
List<Pulumi.
Ali Cloud. Vpc. Inputs. Network Acl Resource Args> The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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 string The vpc_id of the network acl, the field can't be changed.
- Description string
The description of the network acl instance.
- Egress
Acl []NetworkEntries Acl Egress Acl Entry Args 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 []NetworkEntries Acl Ingress Acl Entry Args 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- Network
Acl stringName The name of the network acl.
- Resources
[]Network
Acl Resource Args The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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 String The vpc_id of the network acl, the field can't be changed.
- description String
The description of the network acl instance.
- egress
Acl List<NetworkEntries Acl Egress Acl Entry Args> 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 List<NetworkEntries Acl Ingress Acl Entry Args> 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- network
Acl StringName The name of the network acl.
- resources
List<Network
Acl Resource Args> The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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 string The vpc_id of the network acl, the field can't be changed.
- description string
The description of the network acl instance.
- egress
Acl NetworkEntries Acl Egress Acl Entry Args[] 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 NetworkEntries Acl Ingress Acl Entry Args[] 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- network
Acl stringName The name of the network acl.
- resources
Network
Acl Resource Args[] The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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_ Sequence[Networkentries Acl Egress Acl Entry Args] 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_ Sequence[Networkentries Acl Ingress Acl Entry Args] 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- network_
acl_ strname The name of the network acl.
- resources
Sequence[Network
Acl Resource Args] The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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 String The vpc_id of the network acl, the field can't be changed.
- description String
The description of the network acl instance.
- egress
Acl List<Property Map>Entries 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 List<Property Map>Entries 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- network
Acl StringName The name of the network acl.
- resources List<Property Map>
The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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:
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.
- Description string
The description of the network acl instance.
- Egress
Acl List<Pulumi.Entries Ali Cloud. Vpc. Inputs. Network Acl Egress Acl Entry Args> 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 List<Pulumi.Entries Ali Cloud. Vpc. Inputs. Network Acl Ingress Acl Entry Args> 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- Network
Acl stringName The name of the network acl.
- Resources
List<Pulumi.
Ali Cloud. Vpc. Inputs. Network Acl Resource Args> The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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.
- Vpc
Id string The vpc_id of the network acl, the field can't be changed.
- Description string
The description of the network acl instance.
- Egress
Acl []NetworkEntries Acl Egress Acl Entry Args 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 []NetworkEntries Acl Ingress Acl Entry Args 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- Network
Acl stringName The name of the network acl.
- Resources
[]Network
Acl Resource Args The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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.
- Vpc
Id string The vpc_id of the network acl, the field can't be changed.
- description String
The description of the network acl instance.
- egress
Acl List<NetworkEntries Acl Egress Acl Entry Args> 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 List<NetworkEntries Acl Ingress Acl Entry Args> 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- network
Acl StringName The name of the network acl.
- resources
List<Network
Acl Resource Args> The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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.
- vpc
Id String The vpc_id of the network acl, the field can't be changed.
- description string
The description of the network acl instance.
- egress
Acl NetworkEntries Acl Egress Acl Entry Args[] 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 NetworkEntries Acl Ingress Acl Entry Args[] 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- network
Acl stringName The name of the network acl.
- resources
Network
Acl Resource Args[] The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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.
- vpc
Id 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_ Sequence[Networkentries Acl Egress Acl Entry Args] 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_ Sequence[Networkentries Acl Ingress Acl Entry Args] 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- network_
acl_ strname The name of the network acl.
- resources
Sequence[Network
Acl Resource Args] The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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.
- egress
Acl List<Property Map>Entries 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 List<Property Map>Entries 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 fieldnetwork_acl_name
instead.Field 'name' has been deprecated from provider version 1.122.0. New field 'network_acl_name' instead
- network
Acl StringName The name of the network acl.
- resources List<Property Map>
The associated resources. See the following
Block resources
. NOTE: "Fieldresources
has been deprecated from provider version 1.193.0 and it will be removed in the future version. Please use the new resourcealicloud.vpc.VpcNetworkAclAttachment
."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.
- vpc
Id 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.
- Destination
Cidr stringIp The destination cidr ip of egress entries.
- Network
Acl stringEntry Name The entry name of ingress entries.
- Policy string
The policy of ingress entries. Valid values
accept
anddrop
.- Port string
The port of ingress entries.
- Protocol string
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.
- Description string
The description of the network acl instance.
- Destination
Cidr stringIp The destination cidr ip of egress entries.
- Network
Acl stringEntry Name The entry name of ingress entries.
- Policy string
The policy of ingress entries. Valid values
accept
anddrop
.- Port string
The port of ingress entries.
- Protocol string
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.
- description String
The description of the network acl instance.
- destination
Cidr StringIp The destination cidr ip of egress entries.
- network
Acl StringEntry Name The entry name of ingress entries.
- policy String
The policy of ingress entries. Valid values
accept
anddrop
.- port String
The port of ingress entries.
- protocol String
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.
- description string
The description of the network acl instance.
- destination
Cidr stringIp The destination cidr ip of egress entries.
- network
Acl stringEntry Name The entry name of ingress entries.
- policy string
The policy of ingress entries. Valid values
accept
anddrop
.- port string
The port of ingress entries.
- protocol string
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.
- description str
The description of the network acl instance.
- destination_
cidr_ strip The destination cidr ip of egress entries.
- network_
acl_ strentry_ name The entry name of ingress entries.
- policy str
The policy of ingress entries. Valid values
accept
anddrop
.- port str
The port of ingress entries.
- protocol str
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.
- description String
The description of the network acl instance.
- destination
Cidr StringIp The destination cidr ip of egress entries.
- network
Acl StringEntry Name The entry name of ingress entries.
- policy String
The policy of ingress entries. Valid values
accept
anddrop
.- port String
The port of ingress entries.
- protocol String
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.
NetworkAclIngressAclEntry
- Description string
The description of the network acl instance.
- Network
Acl stringEntry Name The entry name of ingress entries.
- Policy string
The policy of ingress entries. Valid values
accept
anddrop
.- Port string
The port of ingress entries.
- Protocol string
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.- Source
Cidr stringIp The source cidr ip of ingress entries.
- Description string
The description of the network acl instance.
- Network
Acl stringEntry Name The entry name of ingress entries.
- Policy string
The policy of ingress entries. Valid values
accept
anddrop
.- Port string
The port of ingress entries.
- Protocol string
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.- Source
Cidr stringIp The source cidr ip of ingress entries.
- description String
The description of the network acl instance.
- network
Acl StringEntry Name The entry name of ingress entries.
- policy String
The policy of ingress entries. Valid values
accept
anddrop
.- port String
The port of ingress entries.
- protocol String
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.- source
Cidr StringIp The source cidr ip of ingress entries.
- description string
The description of the network acl instance.
- network
Acl stringEntry Name The entry name of ingress entries.
- policy string
The policy of ingress entries. Valid values
accept
anddrop
.- port string
The port of ingress entries.
- protocol string
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.- source
Cidr stringIp The source cidr ip of ingress entries.
- description str
The description of the network acl instance.
- network_
acl_ strentry_ name The entry name of ingress entries.
- policy str
The policy of ingress entries. Valid values
accept
anddrop
.- port str
The port of ingress entries.
- protocol str
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.- source_
cidr_ strip The source cidr ip of ingress entries.
- description String
The description of the network acl instance.
- network
Acl StringEntry Name The entry name of ingress entries.
- policy String
The policy of ingress entries. Valid values
accept
anddrop
.- port String
The port of ingress entries.
- protocol String
The protocol of ingress entries. Valid values
icmp
,gre
,tcp
,udp
, andall
.- source
Cidr StringIp The source cidr ip of ingress entries.
NetworkAclResource
- Resource
Id string The ID of the associated resource.
- Resource
Type string The type of the associated resource. Valid values
VSwitch
.
- Resource
Id string The ID of the associated resource.
- Resource
Type string The type of the associated resource. Valid values
VSwitch
.
- resource
Id String The ID of the associated resource.
- resource
Type String The type of the associated resource. Valid values
VSwitch
.
- resource
Id string The ID of the associated resource.
- resource
Type 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
.
- resource
Id String The ID of the associated resource.
- resource
Type 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.