Show / Hide Table of Contents

Class 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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
NetworkAcl
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Vpc
Assembly: Pulumi.AliCloud.dll
Syntax
public class NetworkAcl : CustomResource

Constructors

View Source

NetworkAcl(String, NetworkAclArgs, CustomResourceOptions)

Create a NetworkAcl resource with the given unique name, arguments, and options.

Declaration
public NetworkAcl(string name, NetworkAclArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

NetworkAclArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Description

The description of the network acl instance.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The name of the network acl.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

VpcId

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

Declaration
public Output<string> VpcId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, NetworkAclState, CustomResourceOptions)

Get an existing NetworkAcl resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static NetworkAcl Get(string name, Input<string> id, NetworkAclState 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.

NetworkAclState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
NetworkAcl
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.