1. Packages
  2. AWS Classic
  3. API Docs
  4. ec2
  5. NetworkAcl

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi

aws.ec2.NetworkAcl

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi

    Provides an network ACL resource. You might set up network ACLs with rules similar to your security groups in order to add an additional layer of security to your VPC.

    NOTE on Network ACLs and Network ACL Rules: This provider currently provides both a standalone Network ACL Rule resource and a Network ACL resource with rules defined in-line. At this time you cannot use a Network ACL with in-line rules in conjunction with any Network ACL Rule resources. Doing so will cause a conflict of rule settings and will overwrite rules.

    NOTE on Network ACLs and Network ACL Associations: the provider provides both a standalone network ACL association resource and a network ACL resource with a subnet_ids attribute. Do not use the same subnet ID in both a network ACL resource and a network ACL association resource. Doing so will cause a conflict of associations and will overwrite the association.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var main = new Aws.Ec2.NetworkAcl("main", new()
        {
            VpcId = aws_vpc.Main.Id,
            Egress = new[]
            {
                new Aws.Ec2.Inputs.NetworkAclEgressArgs
                {
                    Protocol = "tcp",
                    RuleNo = 200,
                    Action = "allow",
                    CidrBlock = "10.3.0.0/18",
                    FromPort = 443,
                    ToPort = 443,
                },
            },
            Ingress = new[]
            {
                new Aws.Ec2.Inputs.NetworkAclIngressArgs
                {
                    Protocol = "tcp",
                    RuleNo = 100,
                    Action = "allow",
                    CidrBlock = "10.3.0.0/18",
                    FromPort = 80,
                    ToPort = 80,
                },
            },
            Tags = 
            {
                { "Name", "main" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ec2.NewNetworkAcl(ctx, "main", &ec2.NetworkAclArgs{
    			VpcId: pulumi.Any(aws_vpc.Main.Id),
    			Egress: ec2.NetworkAclEgressArray{
    				&ec2.NetworkAclEgressArgs{
    					Protocol:  pulumi.String("tcp"),
    					RuleNo:    pulumi.Int(200),
    					Action:    pulumi.String("allow"),
    					CidrBlock: pulumi.String("10.3.0.0/18"),
    					FromPort:  pulumi.Int(443),
    					ToPort:    pulumi.Int(443),
    				},
    			},
    			Ingress: ec2.NetworkAclIngressArray{
    				&ec2.NetworkAclIngressArgs{
    					Protocol:  pulumi.String("tcp"),
    					RuleNo:    pulumi.Int(100),
    					Action:    pulumi.String("allow"),
    					CidrBlock: pulumi.String("10.3.0.0/18"),
    					FromPort:  pulumi.Int(80),
    					ToPort:    pulumi.Int(80),
    				},
    			},
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("main"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ec2.NetworkAcl;
    import com.pulumi.aws.ec2.NetworkAclArgs;
    import com.pulumi.aws.ec2.inputs.NetworkAclEgressArgs;
    import com.pulumi.aws.ec2.inputs.NetworkAclIngressArgs;
    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 main = new NetworkAcl("main", NetworkAclArgs.builder()        
                .vpcId(aws_vpc.main().id())
                .egress(NetworkAclEgressArgs.builder()
                    .protocol("tcp")
                    .ruleNo(200)
                    .action("allow")
                    .cidrBlock("10.3.0.0/18")
                    .fromPort(443)
                    .toPort(443)
                    .build())
                .ingress(NetworkAclIngressArgs.builder()
                    .protocol("tcp")
                    .ruleNo(100)
                    .action("allow")
                    .cidrBlock("10.3.0.0/18")
                    .fromPort(80)
                    .toPort(80)
                    .build())
                .tags(Map.of("Name", "main"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    main = aws.ec2.NetworkAcl("main",
        vpc_id=aws_vpc["main"]["id"],
        egress=[aws.ec2.NetworkAclEgressArgs(
            protocol="tcp",
            rule_no=200,
            action="allow",
            cidr_block="10.3.0.0/18",
            from_port=443,
            to_port=443,
        )],
        ingress=[aws.ec2.NetworkAclIngressArgs(
            protocol="tcp",
            rule_no=100,
            action="allow",
            cidr_block="10.3.0.0/18",
            from_port=80,
            to_port=80,
        )],
        tags={
            "Name": "main",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const main = new aws.ec2.NetworkAcl("main", {
        vpcId: aws_vpc.main.id,
        egress: [{
            protocol: "tcp",
            ruleNo: 200,
            action: "allow",
            cidrBlock: "10.3.0.0/18",
            fromPort: 443,
            toPort: 443,
        }],
        ingress: [{
            protocol: "tcp",
            ruleNo: 100,
            action: "allow",
            cidrBlock: "10.3.0.0/18",
            fromPort: 80,
            toPort: 80,
        }],
        tags: {
            Name: "main",
        },
    });
    
    resources:
      main:
        type: aws:ec2:NetworkAcl
        properties:
          vpcId: ${aws_vpc.main.id}
          egress:
            - protocol: tcp
              ruleNo: 200
              action: allow
              cidrBlock: 10.3.0.0/18
              fromPort: 443
              toPort: 443
          ingress:
            - protocol: tcp
              ruleNo: 100
              action: allow
              cidrBlock: 10.3.0.0/18
              fromPort: 80
              toPort: 80
          tags:
            Name: main
    

    Create NetworkAcl Resource

    new NetworkAcl(name: string, args: NetworkAclArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkAcl(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   egress: Optional[Sequence[NetworkAclEgressArgs]] = None,
                   ingress: Optional[Sequence[NetworkAclIngressArgs]] = None,
                   subnet_ids: Optional[Sequence[str]] = None,
                   tags: Optional[Mapping[str, str]] = 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: aws:ec2: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 ID of the associated VPC.

    Egress List<NetworkAclEgress>

    Specifies an egress rule. Parameters defined below.

    Ingress List<NetworkAclIngress>

    Specifies an ingress rule. Parameters defined below.

    SubnetIds List<string>

    A list of Subnet IDs to apply the ACL to

    Tags Dictionary<string, string>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    VpcId string

    The ID of the associated VPC.

    Egress []NetworkAclEgressArgs

    Specifies an egress rule. Parameters defined below.

    Ingress []NetworkAclIngressArgs

    Specifies an ingress rule. Parameters defined below.

    SubnetIds []string

    A list of Subnet IDs to apply the ACL to

    Tags map[string]string

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    vpcId String

    The ID of the associated VPC.

    egress List<NetworkAclEgress>

    Specifies an egress rule. Parameters defined below.

    ingress List<NetworkAclIngress>

    Specifies an ingress rule. Parameters defined below.

    subnetIds List<String>

    A list of Subnet IDs to apply the ACL to

    tags Map<String,String>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    vpcId string

    The ID of the associated VPC.

    egress NetworkAclEgress[]

    Specifies an egress rule. Parameters defined below.

    ingress NetworkAclIngress[]

    Specifies an ingress rule. Parameters defined below.

    subnetIds string[]

    A list of Subnet IDs to apply the ACL to

    tags {[key: string]: string}

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    vpc_id str

    The ID of the associated VPC.

    egress Sequence[NetworkAclEgressArgs]

    Specifies an egress rule. Parameters defined below.

    ingress Sequence[NetworkAclIngressArgs]

    Specifies an ingress rule. Parameters defined below.

    subnet_ids Sequence[str]

    A list of Subnet IDs to apply the ACL to

    tags Mapping[str, str]

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    vpcId String

    The ID of the associated VPC.

    egress List<Property Map>

    Specifies an egress rule. Parameters defined below.

    ingress List<Property Map>

    Specifies an ingress rule. Parameters defined below.

    subnetIds List<String>

    A list of Subnet IDs to apply the ACL to

    tags Map<String>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

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

    Arn string

    The ARN of the network ACL

    Id string

    The provider-assigned unique ID for this managed resource.

    OwnerId string

    The ID of the AWS account that owns the network ACL.

    TagsAll Dictionary<string, string>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    Arn string

    The ARN of the network ACL

    Id string

    The provider-assigned unique ID for this managed resource.

    OwnerId string

    The ID of the AWS account that owns the network ACL.

    TagsAll map[string]string

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    arn String

    The ARN of the network ACL

    id String

    The provider-assigned unique ID for this managed resource.

    ownerId String

    The ID of the AWS account that owns the network ACL.

    tagsAll Map<String,String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    arn string

    The ARN of the network ACL

    id string

    The provider-assigned unique ID for this managed resource.

    ownerId string

    The ID of the AWS account that owns the network ACL.

    tagsAll {[key: string]: string}

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    arn str

    The ARN of the network ACL

    id str

    The provider-assigned unique ID for this managed resource.

    owner_id str

    The ID of the AWS account that owns the network ACL.

    tags_all Mapping[str, str]

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    arn String

    The ARN of the network ACL

    id String

    The provider-assigned unique ID for this managed resource.

    ownerId String

    The ID of the AWS account that owns the network ACL.

    tagsAll Map<String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    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,
            arn: Optional[str] = None,
            egress: Optional[Sequence[NetworkAclEgressArgs]] = None,
            ingress: Optional[Sequence[NetworkAclIngressArgs]] = None,
            owner_id: Optional[str] = None,
            subnet_ids: Optional[Sequence[str]] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, 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:
    Arn string

    The ARN of the network ACL

    Egress List<NetworkAclEgress>

    Specifies an egress rule. Parameters defined below.

    Ingress List<NetworkAclIngress>

    Specifies an ingress rule. Parameters defined below.

    OwnerId string

    The ID of the AWS account that owns the network ACL.

    SubnetIds List<string>

    A list of Subnet IDs to apply the ACL to

    Tags Dictionary<string, string>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    TagsAll Dictionary<string, string>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    VpcId string

    The ID of the associated VPC.

    Arn string

    The ARN of the network ACL

    Egress []NetworkAclEgressArgs

    Specifies an egress rule. Parameters defined below.

    Ingress []NetworkAclIngressArgs

    Specifies an ingress rule. Parameters defined below.

    OwnerId string

    The ID of the AWS account that owns the network ACL.

    SubnetIds []string

    A list of Subnet IDs to apply the ACL to

    Tags map[string]string

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    TagsAll map[string]string

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    VpcId string

    The ID of the associated VPC.

    arn String

    The ARN of the network ACL

    egress List<NetworkAclEgress>

    Specifies an egress rule. Parameters defined below.

    ingress List<NetworkAclIngress>

    Specifies an ingress rule. Parameters defined below.

    ownerId String

    The ID of the AWS account that owns the network ACL.

    subnetIds List<String>

    A list of Subnet IDs to apply the ACL to

    tags Map<String,String>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll Map<String,String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    vpcId String

    The ID of the associated VPC.

    arn string

    The ARN of the network ACL

    egress NetworkAclEgress[]

    Specifies an egress rule. Parameters defined below.

    ingress NetworkAclIngress[]

    Specifies an ingress rule. Parameters defined below.

    ownerId string

    The ID of the AWS account that owns the network ACL.

    subnetIds string[]

    A list of Subnet IDs to apply the ACL to

    tags {[key: string]: string}

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll {[key: string]: string}

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    vpcId string

    The ID of the associated VPC.

    arn str

    The ARN of the network ACL

    egress Sequence[NetworkAclEgressArgs]

    Specifies an egress rule. Parameters defined below.

    ingress Sequence[NetworkAclIngressArgs]

    Specifies an ingress rule. Parameters defined below.

    owner_id str

    The ID of the AWS account that owns the network ACL.

    subnet_ids Sequence[str]

    A list of Subnet IDs to apply the ACL to

    tags Mapping[str, str]

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tags_all Mapping[str, str]

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    vpc_id str

    The ID of the associated VPC.

    arn String

    The ARN of the network ACL

    egress List<Property Map>

    Specifies an egress rule. Parameters defined below.

    ingress List<Property Map>

    Specifies an ingress rule. Parameters defined below.

    ownerId String

    The ID of the AWS account that owns the network ACL.

    subnetIds List<String>

    A list of Subnet IDs to apply the ACL to

    tags Map<String>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll Map<String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:

    Please use tags instead.

    vpcId String

    The ID of the associated VPC.

    Supporting Types

    NetworkAclEgress, NetworkAclEgressArgs

    Action string

    The action to take.

    FromPort int

    The from port to match.

    Protocol string

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    RuleNo int

    The rule number. Used for ordering.

    ToPort int

    The to port to match.

    CidrBlock string

    The CIDR block to match. This must be a valid network mask.

    IcmpCode int

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    IcmpType int

    The ICMP type to be used. Default 0.

    Ipv6CidrBlock string

    The IPv6 CIDR block.

    Action string

    The action to take.

    FromPort int

    The from port to match.

    Protocol string

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    RuleNo int

    The rule number. Used for ordering.

    ToPort int

    The to port to match.

    CidrBlock string

    The CIDR block to match. This must be a valid network mask.

    IcmpCode int

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    IcmpType int

    The ICMP type to be used. Default 0.

    Ipv6CidrBlock string

    The IPv6 CIDR block.

    action String

    The action to take.

    fromPort Integer

    The from port to match.

    protocol String

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    ruleNo Integer

    The rule number. Used for ordering.

    toPort Integer

    The to port to match.

    cidrBlock String

    The CIDR block to match. This must be a valid network mask.

    icmpCode Integer

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    icmpType Integer

    The ICMP type to be used. Default 0.

    ipv6CidrBlock String

    The IPv6 CIDR block.

    action string

    The action to take.

    fromPort number

    The from port to match.

    protocol string

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    ruleNo number

    The rule number. Used for ordering.

    toPort number

    The to port to match.

    cidrBlock string

    The CIDR block to match. This must be a valid network mask.

    icmpCode number

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    icmpType number

    The ICMP type to be used. Default 0.

    ipv6CidrBlock string

    The IPv6 CIDR block.

    action str

    The action to take.

    from_port int

    The from port to match.

    protocol str

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    rule_no int

    The rule number. Used for ordering.

    to_port int

    The to port to match.

    cidr_block str

    The CIDR block to match. This must be a valid network mask.

    icmp_code int

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    icmp_type int

    The ICMP type to be used. Default 0.

    ipv6_cidr_block str

    The IPv6 CIDR block.

    action String

    The action to take.

    fromPort Number

    The from port to match.

    protocol String

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    ruleNo Number

    The rule number. Used for ordering.

    toPort Number

    The to port to match.

    cidrBlock String

    The CIDR block to match. This must be a valid network mask.

    icmpCode Number

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    icmpType Number

    The ICMP type to be used. Default 0.

    ipv6CidrBlock String

    The IPv6 CIDR block.

    NetworkAclIngress, NetworkAclIngressArgs

    Action string

    The action to take.

    FromPort int

    The from port to match.

    Protocol string

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    RuleNo int

    The rule number. Used for ordering.

    ToPort int

    The to port to match.

    CidrBlock string

    The CIDR block to match. This must be a valid network mask.

    IcmpCode int

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    IcmpType int

    The ICMP type to be used. Default 0.

    Ipv6CidrBlock string

    The IPv6 CIDR block.

    Action string

    The action to take.

    FromPort int

    The from port to match.

    Protocol string

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    RuleNo int

    The rule number. Used for ordering.

    ToPort int

    The to port to match.

    CidrBlock string

    The CIDR block to match. This must be a valid network mask.

    IcmpCode int

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    IcmpType int

    The ICMP type to be used. Default 0.

    Ipv6CidrBlock string

    The IPv6 CIDR block.

    action String

    The action to take.

    fromPort Integer

    The from port to match.

    protocol String

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    ruleNo Integer

    The rule number. Used for ordering.

    toPort Integer

    The to port to match.

    cidrBlock String

    The CIDR block to match. This must be a valid network mask.

    icmpCode Integer

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    icmpType Integer

    The ICMP type to be used. Default 0.

    ipv6CidrBlock String

    The IPv6 CIDR block.

    action string

    The action to take.

    fromPort number

    The from port to match.

    protocol string

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    ruleNo number

    The rule number. Used for ordering.

    toPort number

    The to port to match.

    cidrBlock string

    The CIDR block to match. This must be a valid network mask.

    icmpCode number

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    icmpType number

    The ICMP type to be used. Default 0.

    ipv6CidrBlock string

    The IPv6 CIDR block.

    action str

    The action to take.

    from_port int

    The from port to match.

    protocol str

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    rule_no int

    The rule number. Used for ordering.

    to_port int

    The to port to match.

    cidr_block str

    The CIDR block to match. This must be a valid network mask.

    icmp_code int

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    icmp_type int

    The ICMP type to be used. Default 0.

    ipv6_cidr_block str

    The IPv6 CIDR block.

    action String

    The action to take.

    fromPort Number

    The from port to match.

    protocol String

    The protocol to match. If using the -1 'all' protocol, you must specify a from and to port of 0.

    ruleNo Number

    The rule number. Used for ordering.

    toPort Number

    The to port to match.

    cidrBlock String

    The CIDR block to match. This must be a valid network mask.

    icmpCode Number

    The ICMP type code to be used. Default 0.

    Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

    icmpType Number

    The ICMP type to be used. Default 0.

    ipv6CidrBlock String

    The IPv6 CIDR block.

    Import

    Using pulumi import, import Network ACLs using the id. For example:

     $ pulumi import aws:ec2/networkAcl:NetworkAcl main acl-7aaabd18
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.2.1 published on Friday, Sep 22, 2023 by Pulumi