Try AWS Native preview for resources not in the classic version.
aws.ec2.NetworkAcl
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const main = new aws.ec2.NetworkAcl("main", {
vpcId: mainAwsVpc.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",
},
});
import pulumi
import pulumi_aws as aws
main = aws.ec2.NetworkAcl("main",
vpc_id=main_aws_vpc["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",
})
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(mainAwsVpc.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
})
}
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 = mainAwsVpc.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 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(mainAwsVpc.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());
}
}
resources:
main:
type: aws:ec2:NetworkAcl
properties:
vpcId: ${mainAwsVpc.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
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,
egress: Optional[Sequence[NetworkAclEgressArgs]] = None,
ingress: Optional[Sequence[NetworkAclIngressArgs]] = None,
subnet_ids: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = 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.
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 Aws.Ec2.NetworkAcl("networkAclResource", new()
{
VpcId = "string",
Egress = new[]
{
new Aws.Ec2.Inputs.NetworkAclEgressArgs
{
Action = "string",
FromPort = 0,
Protocol = "string",
RuleNo = 0,
ToPort = 0,
CidrBlock = "string",
IcmpCode = 0,
IcmpType = 0,
Ipv6CidrBlock = "string",
},
},
Ingress = new[]
{
new Aws.Ec2.Inputs.NetworkAclIngressArgs
{
Action = "string",
FromPort = 0,
Protocol = "string",
RuleNo = 0,
ToPort = 0,
CidrBlock = "string",
IcmpCode = 0,
IcmpType = 0,
Ipv6CidrBlock = "string",
},
},
SubnetIds = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := ec2.NewNetworkAcl(ctx, "networkAclResource", &ec2.NetworkAclArgs{
VpcId: pulumi.String("string"),
Egress: ec2.NetworkAclEgressArray{
&ec2.NetworkAclEgressArgs{
Action: pulumi.String("string"),
FromPort: pulumi.Int(0),
Protocol: pulumi.String("string"),
RuleNo: pulumi.Int(0),
ToPort: pulumi.Int(0),
CidrBlock: pulumi.String("string"),
IcmpCode: pulumi.Int(0),
IcmpType: pulumi.Int(0),
Ipv6CidrBlock: pulumi.String("string"),
},
},
Ingress: ec2.NetworkAclIngressArray{
&ec2.NetworkAclIngressArgs{
Action: pulumi.String("string"),
FromPort: pulumi.Int(0),
Protocol: pulumi.String("string"),
RuleNo: pulumi.Int(0),
ToPort: pulumi.Int(0),
CidrBlock: pulumi.String("string"),
IcmpCode: pulumi.Int(0),
IcmpType: pulumi.Int(0),
Ipv6CidrBlock: pulumi.String("string"),
},
},
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var networkAclResource = new NetworkAcl("networkAclResource", NetworkAclArgs.builder()
.vpcId("string")
.egress(NetworkAclEgressArgs.builder()
.action("string")
.fromPort(0)
.protocol("string")
.ruleNo(0)
.toPort(0)
.cidrBlock("string")
.icmpCode(0)
.icmpType(0)
.ipv6CidrBlock("string")
.build())
.ingress(NetworkAclIngressArgs.builder()
.action("string")
.fromPort(0)
.protocol("string")
.ruleNo(0)
.toPort(0)
.cidrBlock("string")
.icmpCode(0)
.icmpType(0)
.ipv6CidrBlock("string")
.build())
.subnetIds("string")
.tags(Map.of("string", "string"))
.build());
network_acl_resource = aws.ec2.NetworkAcl("networkAclResource",
vpc_id="string",
egress=[{
"action": "string",
"fromPort": 0,
"protocol": "string",
"ruleNo": 0,
"toPort": 0,
"cidrBlock": "string",
"icmpCode": 0,
"icmpType": 0,
"ipv6CidrBlock": "string",
}],
ingress=[{
"action": "string",
"fromPort": 0,
"protocol": "string",
"ruleNo": 0,
"toPort": 0,
"cidrBlock": "string",
"icmpCode": 0,
"icmpType": 0,
"ipv6CidrBlock": "string",
}],
subnet_ids=["string"],
tags={
"string": "string",
})
const networkAclResource = new aws.ec2.NetworkAcl("networkAclResource", {
vpcId: "string",
egress: [{
action: "string",
fromPort: 0,
protocol: "string",
ruleNo: 0,
toPort: 0,
cidrBlock: "string",
icmpCode: 0,
icmpType: 0,
ipv6CidrBlock: "string",
}],
ingress: [{
action: "string",
fromPort: 0,
protocol: "string",
ruleNo: 0,
toPort: 0,
cidrBlock: "string",
icmpCode: 0,
icmpType: 0,
ipv6CidrBlock: "string",
}],
subnetIds: ["string"],
tags: {
string: "string",
},
});
type: aws:ec2:NetworkAcl
properties:
egress:
- action: string
cidrBlock: string
fromPort: 0
icmpCode: 0
icmpType: 0
ipv6CidrBlock: string
protocol: string
ruleNo: 0
toPort: 0
ingress:
- action: string
cidrBlock: string
fromPort: 0
icmpCode: 0
icmpType: 0
ipv6CidrBlock: string
protocol: string
ruleNo: 0
toPort: 0
subnetIds:
- string
tags:
string: 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
The NetworkAcl resource accepts the following input properties:
- Vpc
Id string - The ID of the associated VPC.
- Egress
List<Network
Acl Egress> - Specifies an egress rule. Parameters defined below.
- Ingress
List<Network
Acl Ingress> - Specifies an ingress rule. Parameters defined below.
- Subnet
Ids List<string> - A list of Subnet IDs to apply the ACL to
- 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.
- Vpc
Id string - The ID of the associated VPC.
- Egress
[]Network
Acl Egress Args - Specifies an egress rule. Parameters defined below.
- Ingress
[]Network
Acl Ingress Args - Specifies an ingress rule. Parameters defined below.
- Subnet
Ids []string - A list of Subnet IDs to apply the ACL to
- 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.
- vpc
Id String - The ID of the associated VPC.
- egress
List<Network
Acl Egress> - Specifies an egress rule. Parameters defined below.
- ingress
List<Network
Acl Ingress> - Specifies an ingress rule. Parameters defined below.
- subnet
Ids List<String> - A list of Subnet IDs to apply the ACL to
- 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.
- vpc
Id string - The ID of the associated VPC.
- egress
Network
Acl Egress[] - Specifies an egress rule. Parameters defined below.
- ingress
Network
Acl Ingress[] - Specifies an ingress rule. Parameters defined below.
- subnet
Ids string[] - A list of Subnet IDs to apply the ACL to
- {[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[Network
Acl Egress Args] - Specifies an egress rule. Parameters defined below.
- ingress
Sequence[Network
Acl Ingress Args] - Specifies an ingress rule. Parameters defined below.
- subnet_
ids Sequence[str] - A list of Subnet IDs to apply the ACL to
- 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.
- vpc
Id 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.
- subnet
Ids List<String> - A list of Subnet IDs to apply the ACL to
- 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.
- Owner
Id string - The ID of the AWS account that owns the network ACL.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The ARN of the network ACL
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string - The ID of the AWS account that owns the network ACL.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN of the network ACL
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Id String - The ID of the AWS account that owns the network ACL.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The ARN of the network ACL
- id string
- The provider-assigned unique ID for this managed resource.
- owner
Id string - The ID of the AWS account that owns the network ACL.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
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.
- Arn string
- The ARN of the network ACL
- Egress
List<Network
Acl Egress> - Specifies an egress rule. Parameters defined below.
- Ingress
List<Network
Acl Ingress> - Specifies an ingress rule. Parameters defined below.
- Owner
Id string - The ID of the AWS account that owns the network ACL.
- Subnet
Ids List<string> - A list of Subnet IDs to apply the ACL to
- 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Vpc
Id string - The ID of the associated VPC.
- Arn string
- The ARN of the network ACL
- Egress
[]Network
Acl Egress Args - Specifies an egress rule. Parameters defined below.
- Ingress
[]Network
Acl Ingress Args - Specifies an ingress rule. Parameters defined below.
- Owner
Id string - The ID of the AWS account that owns the network ACL.
- Subnet
Ids []string - A list of Subnet IDs to apply the ACL to
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Vpc
Id string - The ID of the associated VPC.
- arn String
- The ARN of the network ACL
- egress
List<Network
Acl Egress> - Specifies an egress rule. Parameters defined below.
- ingress
List<Network
Acl Ingress> - Specifies an ingress rule. Parameters defined below.
- owner
Id String - The ID of the AWS account that owns the network ACL.
- subnet
Ids List<String> - A list of Subnet IDs to apply the ACL to
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - vpc
Id String - The ID of the associated VPC.
- arn string
- The ARN of the network ACL
- egress
Network
Acl Egress[] - Specifies an egress rule. Parameters defined below.
- ingress
Network
Acl Ingress[] - Specifies an ingress rule. Parameters defined below.
- owner
Id string - The ID of the AWS account that owns the network ACL.
- subnet
Ids string[] - A list of Subnet IDs to apply the ACL to
- {[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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - vpc
Id string - The ID of the associated VPC.
- arn str
- The ARN of the network ACL
- egress
Sequence[Network
Acl Egress Args] - Specifies an egress rule. Parameters defined below.
- ingress
Sequence[Network
Acl Ingress Args] - 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
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - 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.
- owner
Id String - The ID of the AWS account that owns the network ACL.
- subnet
Ids List<String> - A list of Subnet IDs to apply the ACL to
- 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - vpc
Id String - The ID of the associated VPC.
Supporting Types
NetworkAclEgress, NetworkAclEgressArgs
- Action string
- The action to take.
- From
Port 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.
- Rule
No int - The rule number. Used for ordering.
- To
Port int - The to port to match.
- Cidr
Block string - 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.
- Ipv6Cidr
Block string - The IPv6 CIDR block.
- Action string
- The action to take.
- From
Port 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.
- Rule
No int - The rule number. Used for ordering.
- To
Port int - The to port to match.
- Cidr
Block string - 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.
- Ipv6Cidr
Block string - The IPv6 CIDR block.
- action String
- The action to take.
- from
Port 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.
- rule
No Integer - The rule number. Used for ordering.
- to
Port Integer - The to port to match.
- cidr
Block String - The CIDR block to match. This must be a valid network mask.
- icmp
Code 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
- icmp
Type Integer - The ICMP type to be used. Default 0.
- ipv6Cidr
Block String - The IPv6 CIDR block.
- action string
- The action to take.
- from
Port 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.
- rule
No number - The rule number. Used for ordering.
- to
Port number - The to port to match.
- cidr
Block string - The CIDR block to match. This must be a valid network mask.
- icmp
Code 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
- icmp
Type number - The ICMP type to be used. Default 0.
- ipv6Cidr
Block 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_ strblock - The IPv6 CIDR block.
- action String
- The action to take.
- from
Port 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.
- rule
No Number - The rule number. Used for ordering.
- to
Port Number - The to port to match.
- cidr
Block String - The CIDR block to match. This must be a valid network mask.
- icmp
Code 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
- icmp
Type Number - The ICMP type to be used. Default 0.
- ipv6Cidr
Block String - The IPv6 CIDR block.
NetworkAclIngress, NetworkAclIngressArgs
- Action string
- The action to take.
- From
Port 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.
- Rule
No int - The rule number. Used for ordering.
- To
Port int - The to port to match.
- Cidr
Block string - 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.
- Ipv6Cidr
Block string - The IPv6 CIDR block.
- Action string
- The action to take.
- From
Port 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.
- Rule
No int - The rule number. Used for ordering.
- To
Port int - The to port to match.
- Cidr
Block string - 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.
- Ipv6Cidr
Block string - The IPv6 CIDR block.
- action String
- The action to take.
- from
Port 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.
- rule
No Integer - The rule number. Used for ordering.
- to
Port Integer - The to port to match.
- cidr
Block String - The CIDR block to match. This must be a valid network mask.
- icmp
Code 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
- icmp
Type Integer - The ICMP type to be used. Default 0.
- ipv6Cidr
Block String - The IPv6 CIDR block.
- action string
- The action to take.
- from
Port 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.
- rule
No number - The rule number. Used for ordering.
- to
Port number - The to port to match.
- cidr
Block string - The CIDR block to match. This must be a valid network mask.
- icmp
Code 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
- icmp
Type number - The ICMP type to be used. Default 0.
- ipv6Cidr
Block 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_ strblock - The IPv6 CIDR block.
- action String
- The action to take.
- from
Port 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.
- rule
No Number - The rule number. Used for ordering.
- to
Port Number - The to port to match.
- cidr
Block String - The CIDR block to match. This must be a valid network mask.
- icmp
Code 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
- icmp
Type Number - The ICMP type to be used. Default 0.
- ipv6Cidr
Block 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.