1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. getNetworkAcl

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.ec2.getNetworkAcl

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Specifies a network ACL for your VPC. To add a network ACL entry, see AWS::EC2::NetworkAclEntry.

Using getNetworkAcl

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getNetworkAcl(args: GetNetworkAclArgs, opts?: InvokeOptions): Promise<GetNetworkAclResult>
function getNetworkAclOutput(args: GetNetworkAclOutputArgs, opts?: InvokeOptions): Output<GetNetworkAclResult>
Copy
def get_network_acl(id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetNetworkAclResult
def get_network_acl_output(id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetNetworkAclResult]
Copy
func LookupNetworkAcl(ctx *Context, args *LookupNetworkAclArgs, opts ...InvokeOption) (*LookupNetworkAclResult, error)
func LookupNetworkAclOutput(ctx *Context, args *LookupNetworkAclOutputArgs, opts ...InvokeOption) LookupNetworkAclResultOutput
Copy

> Note: This function is named LookupNetworkAcl in the Go SDK.

public static class GetNetworkAcl 
{
    public static Task<GetNetworkAclResult> InvokeAsync(GetNetworkAclArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkAclResult> Invoke(GetNetworkAclInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNetworkAclResult> getNetworkAcl(GetNetworkAclArgs args, InvokeOptions options)
public static Output<GetNetworkAclResult> getNetworkAcl(GetNetworkAclArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:ec2:getNetworkAcl
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The ID of the network ACL.
Id This property is required. string
The ID of the network ACL.
id This property is required. String
The ID of the network ACL.
id This property is required. string
The ID of the network ACL.
id This property is required. str
The ID of the network ACL.
id This property is required. String
The ID of the network ACL.

getNetworkAcl Result

The following output properties are available:

Id string
The ID of the network ACL.
Tags List<Pulumi.AwsNative.Outputs.Tag>
The tags for the network ACL.
Id string
The ID of the network ACL.
Tags Tag
The tags for the network ACL.
id String
The ID of the network ACL.
tags List<Tag>
The tags for the network ACL.
id string
The ID of the network ACL.
tags Tag[]
The tags for the network ACL.
id str
The ID of the network ACL.
tags Sequence[root_Tag]
The tags for the network ACL.
id String
The ID of the network ACL.
tags List<Property Map>
The tags for the network ACL.

Supporting Types

Tag

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi