volcengine.vpc.NetworkAcl
Explore with Pulumi AI
Provides a resource to manage network acl
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
    vpcName: "acc-test-vpc",
    cidrBlock: "172.16.0.0/16",
});
const fooNetworkAcl = new volcengine.vpc.NetworkAcl("fooNetworkAcl", {
    vpcId: fooVpc.id,
    networkAclName: "tf-test-acl",
    ingressAclEntries: [
        {
            networkAclEntryName: "ingress1",
            policy: "accept",
            protocol: "all",
            sourceCidrIp: "192.168.0.0/24",
        },
        {
            networkAclEntryName: "ingress3",
            policy: "accept",
            protocol: "tcp",
            port: "80/80",
            sourceCidrIp: "192.168.0.0/24",
        },
    ],
    egressAclEntries: [{
        networkAclEntryName: "egress2",
        policy: "accept",
        protocol: "all",
        destinationCidrIp: "192.168.0.0/16",
    }],
    projectName: "default",
    tags: [{
        key: "k1",
        value: "v1",
    }],
});
import pulumi
import pulumi_volcengine as volcengine
foo_vpc = volcengine.vpc.Vpc("fooVpc",
    vpc_name="acc-test-vpc",
    cidr_block="172.16.0.0/16")
foo_network_acl = volcengine.vpc.NetworkAcl("fooNetworkAcl",
    vpc_id=foo_vpc.id,
    network_acl_name="tf-test-acl",
    ingress_acl_entries=[
        volcengine.vpc.NetworkAclIngressAclEntryArgs(
            network_acl_entry_name="ingress1",
            policy="accept",
            protocol="all",
            source_cidr_ip="192.168.0.0/24",
        ),
        volcengine.vpc.NetworkAclIngressAclEntryArgs(
            network_acl_entry_name="ingress3",
            policy="accept",
            protocol="tcp",
            port="80/80",
            source_cidr_ip="192.168.0.0/24",
        ),
    ],
    egress_acl_entries=[volcengine.vpc.NetworkAclEgressAclEntryArgs(
        network_acl_entry_name="egress2",
        policy="accept",
        protocol="all",
        destination_cidr_ip="192.168.0.0/16",
    )],
    project_name="default",
    tags=[volcengine.vpc.NetworkAclTagArgs(
        key="k1",
        value="v1",
    )])
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
			VpcName:   pulumi.String("acc-test-vpc"),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		_, err = vpc.NewNetworkAcl(ctx, "fooNetworkAcl", &vpc.NetworkAclArgs{
			VpcId:          fooVpc.ID(),
			NetworkAclName: pulumi.String("tf-test-acl"),
			IngressAclEntries: vpc.NetworkAclIngressAclEntryArray{
				&vpc.NetworkAclIngressAclEntryArgs{
					NetworkAclEntryName: pulumi.String("ingress1"),
					Policy:              pulumi.String("accept"),
					Protocol:            pulumi.String("all"),
					SourceCidrIp:        pulumi.String("192.168.0.0/24"),
				},
				&vpc.NetworkAclIngressAclEntryArgs{
					NetworkAclEntryName: pulumi.String("ingress3"),
					Policy:              pulumi.String("accept"),
					Protocol:            pulumi.String("tcp"),
					Port:                pulumi.String("80/80"),
					SourceCidrIp:        pulumi.String("192.168.0.0/24"),
				},
			},
			EgressAclEntries: vpc.NetworkAclEgressAclEntryArray{
				&vpc.NetworkAclEgressAclEntryArgs{
					NetworkAclEntryName: pulumi.String("egress2"),
					Policy:              pulumi.String("accept"),
					Protocol:            pulumi.String("all"),
					DestinationCidrIp:   pulumi.String("192.168.0.0/16"),
				},
			},
			ProjectName: pulumi.String("default"),
			Tags: vpc.NetworkAclTagArray{
				&vpc.NetworkAclTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
    {
        VpcName = "acc-test-vpc",
        CidrBlock = "172.16.0.0/16",
    });
    var fooNetworkAcl = new Volcengine.Vpc.NetworkAcl("fooNetworkAcl", new()
    {
        VpcId = fooVpc.Id,
        NetworkAclName = "tf-test-acl",
        IngressAclEntries = new[]
        {
            new Volcengine.Vpc.Inputs.NetworkAclIngressAclEntryArgs
            {
                NetworkAclEntryName = "ingress1",
                Policy = "accept",
                Protocol = "all",
                SourceCidrIp = "192.168.0.0/24",
            },
            new Volcengine.Vpc.Inputs.NetworkAclIngressAclEntryArgs
            {
                NetworkAclEntryName = "ingress3",
                Policy = "accept",
                Protocol = "tcp",
                Port = "80/80",
                SourceCidrIp = "192.168.0.0/24",
            },
        },
        EgressAclEntries = new[]
        {
            new Volcengine.Vpc.Inputs.NetworkAclEgressAclEntryArgs
            {
                NetworkAclEntryName = "egress2",
                Policy = "accept",
                Protocol = "all",
                DestinationCidrIp = "192.168.0.0/16",
            },
        },
        ProjectName = "default",
        Tags = new[]
        {
            new Volcengine.Vpc.Inputs.NetworkAclTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.NetworkAcl;
import com.pulumi.volcengine.vpc.NetworkAclArgs;
import com.pulumi.volcengine.vpc.inputs.NetworkAclIngressAclEntryArgs;
import com.pulumi.volcengine.vpc.inputs.NetworkAclEgressAclEntryArgs;
import com.pulumi.volcengine.vpc.inputs.NetworkAclTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
            .vpcName("acc-test-vpc")
            .cidrBlock("172.16.0.0/16")
            .build());
        var fooNetworkAcl = new NetworkAcl("fooNetworkAcl", NetworkAclArgs.builder()        
            .vpcId(fooVpc.id())
            .networkAclName("tf-test-acl")
            .ingressAclEntries(            
                NetworkAclIngressAclEntryArgs.builder()
                    .networkAclEntryName("ingress1")
                    .policy("accept")
                    .protocol("all")
                    .sourceCidrIp("192.168.0.0/24")
                    .build(),
                NetworkAclIngressAclEntryArgs.builder()
                    .networkAclEntryName("ingress3")
                    .policy("accept")
                    .protocol("tcp")
                    .port("80/80")
                    .sourceCidrIp("192.168.0.0/24")
                    .build())
            .egressAclEntries(NetworkAclEgressAclEntryArgs.builder()
                .networkAclEntryName("egress2")
                .policy("accept")
                .protocol("all")
                .destinationCidrIp("192.168.0.0/16")
                .build())
            .projectName("default")
            .tags(NetworkAclTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .build());
    }
}
resources:
  fooVpc:
    type: volcengine:vpc:Vpc
    properties:
      vpcName: acc-test-vpc
      cidrBlock: 172.16.0.0/16
  fooNetworkAcl:
    type: volcengine:vpc:NetworkAcl
    properties:
      vpcId: ${fooVpc.id}
      networkAclName: tf-test-acl
      ingressAclEntries:
        - networkAclEntryName: ingress1
          policy: accept
          protocol: all
          sourceCidrIp: 192.168.0.0/24
        - networkAclEntryName: ingress3
          policy: accept
          protocol: tcp
          port: 80/80
          sourceCidrIp: 192.168.0.0/24
      egressAclEntries:
        - networkAclEntryName: egress2
          policy: accept
          protocol: all
          destinationCidrIp: 192.168.0.0/16
      projectName: default
      tags:
        - key: k1
          value: v1
Create NetworkAcl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkAcl(name: string, args: NetworkAclArgs, opts?: CustomResourceOptions);@overload
def NetworkAcl(resource_name: str,
               args: NetworkAclArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def NetworkAcl(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               vpc_id: Optional[str] = None,
               description: Optional[str] = None,
               egress_acl_entries: Optional[Sequence[NetworkAclEgressAclEntryArgs]] = None,
               ingress_acl_entries: Optional[Sequence[NetworkAclIngressAclEntryArgs]] = None,
               network_acl_name: Optional[str] = None,
               project_name: Optional[str] = None,
               tags: Optional[Sequence[NetworkAclTagArgs]] = 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: volcengine:vpc:NetworkAcl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var networkAclResource = new Volcengine.Vpc.NetworkAcl("networkAclResource", new()
{
    VpcId = "string",
    Description = "string",
    EgressAclEntries = new[]
    {
        new Volcengine.Vpc.Inputs.NetworkAclEgressAclEntryArgs
        {
            Description = "string",
            DestinationCidrIp = "string",
            NetworkAclEntryId = "string",
            NetworkAclEntryName = "string",
            Policy = "string",
            Port = "string",
            Priority = 0,
            Protocol = "string",
        },
    },
    IngressAclEntries = new[]
    {
        new Volcengine.Vpc.Inputs.NetworkAclIngressAclEntryArgs
        {
            Description = "string",
            NetworkAclEntryId = "string",
            NetworkAclEntryName = "string",
            Policy = "string",
            Port = "string",
            Priority = 0,
            Protocol = "string",
            SourceCidrIp = "string",
        },
    },
    NetworkAclName = "string",
    ProjectName = "string",
    Tags = new[]
    {
        new Volcengine.Vpc.Inputs.NetworkAclTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
example, err := vpc.NewNetworkAcl(ctx, "networkAclResource", &vpc.NetworkAclArgs{
	VpcId:       pulumi.String("string"),
	Description: pulumi.String("string"),
	EgressAclEntries: vpc.NetworkAclEgressAclEntryArray{
		&vpc.NetworkAclEgressAclEntryArgs{
			Description:         pulumi.String("string"),
			DestinationCidrIp:   pulumi.String("string"),
			NetworkAclEntryId:   pulumi.String("string"),
			NetworkAclEntryName: pulumi.String("string"),
			Policy:              pulumi.String("string"),
			Port:                pulumi.String("string"),
			Priority:            pulumi.Int(0),
			Protocol:            pulumi.String("string"),
		},
	},
	IngressAclEntries: vpc.NetworkAclIngressAclEntryArray{
		&vpc.NetworkAclIngressAclEntryArgs{
			Description:         pulumi.String("string"),
			NetworkAclEntryId:   pulumi.String("string"),
			NetworkAclEntryName: pulumi.String("string"),
			Policy:              pulumi.String("string"),
			Port:                pulumi.String("string"),
			Priority:            pulumi.Int(0),
			Protocol:            pulumi.String("string"),
			SourceCidrIp:        pulumi.String("string"),
		},
	},
	NetworkAclName: pulumi.String("string"),
	ProjectName:    pulumi.String("string"),
	Tags: vpc.NetworkAclTagArray{
		&vpc.NetworkAclTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
var networkAclResource = new NetworkAcl("networkAclResource", NetworkAclArgs.builder()
    .vpcId("string")
    .description("string")
    .egressAclEntries(NetworkAclEgressAclEntryArgs.builder()
        .description("string")
        .destinationCidrIp("string")
        .networkAclEntryId("string")
        .networkAclEntryName("string")
        .policy("string")
        .port("string")
        .priority(0)
        .protocol("string")
        .build())
    .ingressAclEntries(NetworkAclIngressAclEntryArgs.builder()
        .description("string")
        .networkAclEntryId("string")
        .networkAclEntryName("string")
        .policy("string")
        .port("string")
        .priority(0)
        .protocol("string")
        .sourceCidrIp("string")
        .build())
    .networkAclName("string")
    .projectName("string")
    .tags(NetworkAclTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
network_acl_resource = volcengine.vpc.NetworkAcl("networkAclResource",
    vpc_id="string",
    description="string",
    egress_acl_entries=[{
        "description": "string",
        "destination_cidr_ip": "string",
        "network_acl_entry_id": "string",
        "network_acl_entry_name": "string",
        "policy": "string",
        "port": "string",
        "priority": 0,
        "protocol": "string",
    }],
    ingress_acl_entries=[{
        "description": "string",
        "network_acl_entry_id": "string",
        "network_acl_entry_name": "string",
        "policy": "string",
        "port": "string",
        "priority": 0,
        "protocol": "string",
        "source_cidr_ip": "string",
    }],
    network_acl_name="string",
    project_name="string",
    tags=[{
        "key": "string",
        "value": "string",
    }])
const networkAclResource = new volcengine.vpc.NetworkAcl("networkAclResource", {
    vpcId: "string",
    description: "string",
    egressAclEntries: [{
        description: "string",
        destinationCidrIp: "string",
        networkAclEntryId: "string",
        networkAclEntryName: "string",
        policy: "string",
        port: "string",
        priority: 0,
        protocol: "string",
    }],
    ingressAclEntries: [{
        description: "string",
        networkAclEntryId: "string",
        networkAclEntryName: "string",
        policy: "string",
        port: "string",
        priority: 0,
        protocol: "string",
        sourceCidrIp: "string",
    }],
    networkAclName: "string",
    projectName: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
});
type: volcengine:vpc:NetworkAcl
properties:
    description: string
    egressAclEntries:
        - description: string
          destinationCidrIp: string
          networkAclEntryId: string
          networkAclEntryName: string
          policy: string
          port: string
          priority: 0
          protocol: string
    ingressAclEntries:
        - description: string
          networkAclEntryId: string
          networkAclEntryName: string
          policy: string
          port: string
          priority: 0
          protocol: string
          sourceCidrIp: string
    networkAclName: string
    projectName: string
    tags:
        - key: string
          value: string
    vpcId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NetworkAcl resource accepts the following input properties:
- VpcId string
- The vpc id of Network Acl.
- Description string
- The description of the Network Acl.
- EgressAcl List<NetworkEntries Acl Egress Acl Entry> 
- The egress entries of Network Acl.
- IngressAcl List<NetworkEntries Acl Ingress Acl Entry> 
- The ingress entries of Network Acl.
- NetworkAcl stringName 
- The name of Network Acl.
- ProjectName string
- The project name of the network acl.
- 
List<NetworkAcl Tag> 
- Tags.
- VpcId string
- The vpc id of Network Acl.
- Description string
- The description of the Network Acl.
- EgressAcl []NetworkEntries Acl Egress Acl Entry Args 
- The egress entries of Network Acl.
- IngressAcl []NetworkEntries Acl Ingress Acl Entry Args 
- The ingress entries of Network Acl.
- NetworkAcl stringName 
- The name of Network Acl.
- ProjectName string
- The project name of the network acl.
- 
[]NetworkAcl Tag Args 
- Tags.
- vpcId String
- The vpc id of Network Acl.
- description String
- The description of the Network Acl.
- egressAcl List<NetworkEntries Acl Egress Acl Entry> 
- The egress entries of Network Acl.
- ingressAcl List<NetworkEntries Acl Ingress Acl Entry> 
- The ingress entries of Network Acl.
- networkAcl StringName 
- The name of Network Acl.
- projectName String
- The project name of the network acl.
- 
List<NetworkAcl Tag> 
- Tags.
- vpcId string
- The vpc id of Network Acl.
- description string
- The description of the Network Acl.
- egressAcl NetworkEntries Acl Egress Acl Entry[] 
- The egress entries of Network Acl.
- ingressAcl NetworkEntries Acl Ingress Acl Entry[] 
- The ingress entries of Network Acl.
- networkAcl stringName 
- The name of Network Acl.
- projectName string
- The project name of the network acl.
- 
NetworkAcl Tag[] 
- Tags.
- vpc_id str
- The vpc id of Network Acl.
- description str
- The description of the Network Acl.
- egress_acl_ Sequence[Networkentries Acl Egress Acl Entry Args] 
- The egress entries of Network Acl.
- ingress_acl_ Sequence[Networkentries Acl Ingress Acl Entry Args] 
- The ingress entries of Network Acl.
- network_acl_ strname 
- The name of Network Acl.
- project_name str
- The project name of the network acl.
- 
Sequence[NetworkAcl Tag Args] 
- Tags.
- vpcId String
- The vpc id of Network Acl.
- description String
- The description of the Network Acl.
- egressAcl List<Property Map>Entries 
- The egress entries of Network Acl.
- ingressAcl List<Property Map>Entries 
- The ingress entries of Network Acl.
- networkAcl StringName 
- The name of Network Acl.
- projectName String
- The project name of the network acl.
- List<Property Map>
- Tags.
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 string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
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,
        network_acl_name: Optional[str] = None,
        project_name: Optional[str] = None,
        tags: Optional[Sequence[NetworkAclTagArgs]] = None,
        vpc_id: Optional[str] = None) -> NetworkAclfunc 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)resources:  _:    type: volcengine:vpc:NetworkAcl    get:      id: ${id}- 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.
- EgressAcl List<NetworkEntries Acl Egress Acl Entry> 
- The egress entries of Network Acl.
- IngressAcl List<NetworkEntries Acl Ingress Acl Entry> 
- The ingress entries of Network Acl.
- NetworkAcl stringName 
- The name of Network Acl.
- ProjectName string
- The project name of the network acl.
- 
List<NetworkAcl Tag> 
- Tags.
- VpcId string
- The vpc id of Network Acl.
- Description string
- The description of the Network Acl.
- EgressAcl []NetworkEntries Acl Egress Acl Entry Args 
- The egress entries of Network Acl.
- IngressAcl []NetworkEntries Acl Ingress Acl Entry Args 
- The ingress entries of Network Acl.
- NetworkAcl stringName 
- The name of Network Acl.
- ProjectName string
- The project name of the network acl.
- 
[]NetworkAcl Tag Args 
- Tags.
- VpcId string
- The vpc id of Network Acl.
- description String
- The description of the Network Acl.
- egressAcl List<NetworkEntries Acl Egress Acl Entry> 
- The egress entries of Network Acl.
- ingressAcl List<NetworkEntries Acl Ingress Acl Entry> 
- The ingress entries of Network Acl.
- networkAcl StringName 
- The name of Network Acl.
- projectName String
- The project name of the network acl.
- 
List<NetworkAcl Tag> 
- Tags.
- vpcId String
- The vpc id of Network Acl.
- description string
- The description of the Network Acl.
- egressAcl NetworkEntries Acl Egress Acl Entry[] 
- The egress entries of Network Acl.
- ingressAcl NetworkEntries Acl Ingress Acl Entry[] 
- The ingress entries of Network Acl.
- networkAcl stringName 
- The name of Network Acl.
- projectName string
- The project name of the network acl.
- 
NetworkAcl Tag[] 
- Tags.
- vpcId string
- The vpc id of Network Acl.
- description str
- The description of the Network Acl.
- egress_acl_ Sequence[Networkentries Acl Egress Acl Entry Args] 
- The egress entries of Network Acl.
- ingress_acl_ Sequence[Networkentries Acl Ingress Acl Entry Args] 
- The ingress entries of Network Acl.
- network_acl_ strname 
- The name of Network Acl.
- project_name str
- The project name of the network acl.
- 
Sequence[NetworkAcl Tag Args] 
- Tags.
- vpc_id str
- The vpc id of Network Acl.
- description String
- The description of the Network Acl.
- egressAcl List<Property Map>Entries 
- The egress entries of Network Acl.
- ingressAcl List<Property Map>Entries 
- The ingress entries of Network Acl.
- networkAcl StringName 
- The name of Network Acl.
- projectName String
- The project name of the network acl.
- List<Property Map>
- Tags.
- vpcId String
- The vpc id of Network Acl.
Supporting Types
NetworkAclEgressAclEntry, NetworkAclEgressAclEntryArgs          
- Description string
- The description of entry.
- DestinationCidr stringIp 
- The DestinationCidrIp of entry.
- NetworkAcl stringEntry Id 
- The id of entry.
- NetworkAcl stringEntry Name 
- The name of entry.
- Policy string
- The policy of entry. Default is accept. The value can beacceptordrop.
- Port string
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction.When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80,which means port 1 to port 200, port 80.
- Priority int
- The priority of entry.
- Protocol string
- The protocol of entry. The value can be icmporgreortcporudporall. Default isall.
- Description string
- The description of entry.
- DestinationCidr stringIp 
- The DestinationCidrIp of entry.
- NetworkAcl stringEntry Id 
- The id of entry.
- NetworkAcl stringEntry Name 
- The name of entry.
- Policy string
- The policy of entry. Default is accept. The value can beacceptordrop.
- Port string
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction.When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80,which means port 1 to port 200, port 80.
- Priority int
- The priority of entry.
- Protocol string
- The protocol of entry. The value can be icmporgreortcporudporall. Default isall.
- description String
- The description of entry.
- destinationCidr StringIp 
- The DestinationCidrIp of entry.
- networkAcl StringEntry Id 
- The id of entry.
- networkAcl StringEntry Name 
- The name of entry.
- policy String
- The policy of entry. Default is accept. The value can beacceptordrop.
- port String
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction.When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80,which means port 1 to port 200, port 80.
- priority Integer
- The priority of entry.
- protocol String
- The protocol of entry. The value can be icmporgreortcporudporall. Default isall.
- description string
- The description of entry.
- destinationCidr stringIp 
- The DestinationCidrIp of entry.
- networkAcl stringEntry Id 
- The id of entry.
- networkAcl stringEntry Name 
- The name of entry.
- policy string
- The policy of entry. Default is accept. The value can beacceptordrop.
- port string
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction.When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80,which means port 1 to port 200, port 80.
- priority number
- The priority of entry.
- protocol string
- The protocol of entry. The value can be icmporgreortcporudporall. Default isall.
- description str
- The description of entry.
- destination_cidr_ strip 
- The DestinationCidrIp of entry.
- network_acl_ strentry_ id 
- The id of entry.
- network_acl_ strentry_ name 
- The name of entry.
- policy str
- The policy of entry. Default is accept. The value can beacceptordrop.
- port str
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction.When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80,which means port 1 to port 200, port 80.
- priority int
- The priority of entry.
- protocol str
- The protocol of entry. The value can be icmporgreortcporudporall. Default isall.
- description String
- The description of entry.
- destinationCidr StringIp 
- The DestinationCidrIp of entry.
- networkAcl StringEntry Id 
- The id of entry.
- networkAcl StringEntry Name 
- The name of entry.
- policy String
- The policy of entry. Default is accept. The value can beacceptordrop.
- port String
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction.When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80,which means port 1 to port 200, port 80.
- priority Number
- The priority of entry.
- protocol String
- The protocol of entry. The value can be icmporgreortcporudporall. Default isall.
NetworkAclIngressAclEntry, NetworkAclIngressAclEntryArgs          
- Description string
- The description of entry.
- NetworkAcl stringEntry Id 
- The id of entry.
- NetworkAcl stringEntry Name 
- The name of entry.
- Policy string
- The policy of entry, default is accept. The value can beacceptordrop.
- Port string
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction. When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80, which means port 1 to port 200, port 80.
- Priority int
- The priority of entry.
- Protocol string
- The protocol of entry, default is all. The value can beicmporgreortcporudporall.
- SourceCidr stringIp 
- The SourceCidrIp of entry.
- Description string
- The description of entry.
- NetworkAcl stringEntry Id 
- The id of entry.
- NetworkAcl stringEntry Name 
- The name of entry.
- Policy string
- The policy of entry, default is accept. The value can beacceptordrop.
- Port string
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction. When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80, which means port 1 to port 200, port 80.
- Priority int
- The priority of entry.
- Protocol string
- The protocol of entry, default is all. The value can beicmporgreortcporudporall.
- SourceCidr stringIp 
- The SourceCidrIp of entry.
- description String
- The description of entry.
- networkAcl StringEntry Id 
- The id of entry.
- networkAcl StringEntry Name 
- The name of entry.
- policy String
- The policy of entry, default is accept. The value can beacceptordrop.
- port String
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction. When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80, which means port 1 to port 200, port 80.
- priority Integer
- The priority of entry.
- protocol String
- The protocol of entry, default is all. The value can beicmporgreortcporudporall.
- sourceCidr StringIp 
- The SourceCidrIp of entry.
- description string
- The description of entry.
- networkAcl stringEntry Id 
- The id of entry.
- networkAcl stringEntry Name 
- The name of entry.
- policy string
- The policy of entry, default is accept. The value can beacceptordrop.
- port string
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction. When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80, which means port 1 to port 200, port 80.
- priority number
- The priority of entry.
- protocol string
- The protocol of entry, default is all. The value can beicmporgreortcporudporall.
- sourceCidr stringIp 
- The SourceCidrIp of entry.
- description str
- The description of entry.
- network_acl_ strentry_ id 
- The id of entry.
- network_acl_ strentry_ name 
- The name of entry.
- policy str
- The policy of entry, default is accept. The value can beacceptordrop.
- port str
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction. When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80, which means port 1 to port 200, port 80.
- priority int
- The priority of entry.
- protocol str
- The protocol of entry, default is all. The value can beicmporgreortcporudporall.
- source_cidr_ strip 
- The SourceCidrIp of entry.
- description String
- The description of entry.
- networkAcl StringEntry Id 
- The id of entry.
- networkAcl StringEntry Name 
- The name of entry.
- policy String
- The policy of entry, default is accept. The value can beacceptordrop.
- port String
- The port of entry. Default is -1/-1. When Protocol isall,icmporgre, the port range is-1/-1, which means no port restriction. When the Protocol istcporudp, the port range is1~65535, and the format is1/200,80/80, which means port 1 to port 200, port 80.
- priority Number
- The priority of entry.
- protocol String
- The protocol of entry, default is all. The value can beicmporgreortcporudporall.
- sourceCidr StringIp 
- The SourceCidrIp of entry.
NetworkAclTag, NetworkAclTagArgs      
Import
Network Acl can be imported using the id, e.g.
$ pulumi import volcengine:vpc/networkAcl:NetworkAcl default nacl-172leak37mi9s4d1w33pswqkh
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.