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.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new AliCloud.Vpc.NetworkArgs
        {
            CidrBlock = "172.16.0.0/12",
        });
        var defaultNetworkAcl = new AliCloud.Vpc.NetworkAcl("defaultNetworkAcl", new AliCloud.Vpc.NetworkAclArgs
        {
            Description = "network_acl",
            VpcId = defaultNetwork.Id,
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default_network = alicloud.vpc.Network("defaultNetwork", cidr_block="172.16.0.0/12")
default_network_acl = alicloud.vpc.NetworkAcl("defaultNetworkAcl",
    description="network_acl",
    vpc_id=default_network.id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultNetwork = new alicloud.vpc.Network("default", {
    cidrBlock: "172.16.0.0/12",
});
const defaultNetworkAcl = new alicloud.vpc.NetworkAcl("default", {
    description: "network_acl",
    vpcId: defaultNetwork.id,
});

Create a NetworkAcl Resource

def NetworkAcl(resource_name, opts=None, description=None, name=None, vpc_id=None, __props__=None);
func NewNetworkAcl(ctx *Context, name string, args NetworkAclArgs, opts ...ResourceOption) (*NetworkAcl, error)
public NetworkAcl(string name, NetworkAclArgs args, CustomResourceOptions? opts = null)
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.
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 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.

NetworkAcl Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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.

Name string

The name 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.

Name string

The name 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.

name string

The name of the network acl.

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.

name str

The name of the network acl.

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.
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 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
static get(resource_name, id, opts=None, description=None, name=None, vpc_id=None, __props__=None);
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)
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:

Description string

The description of the network acl instance.

Name string

The name 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.

Name string

The name 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.

name string

The name 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.

name str

The name of the network acl.

vpc_id str

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

Package Details

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