amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DescribeNetworkAcls

Description

Describes one or more of your network ACLs.

For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeNetworkAcls Source #

See: newDescribeNetworkAcls smart constructor.

Constructors

DescribeNetworkAcls' 

Fields

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • filters :: Maybe [Filter]

    One or more filters.

    • association.association-id - The ID of an association ID for the ACL.
    • association.network-acl-id - The ID of the network ACL involved in the association.
    • association.subnet-id - The ID of the subnet involved in the association.
    • default - Indicates whether the ACL is the default network ACL for the VPC.
    • entry.cidr - The IPv4 CIDR range specified in the entry.
    • entry.icmp.code - The ICMP code specified in the entry, if any.
    • entry.icmp.type - The ICMP type specified in the entry, if any.
    • entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.
    • entry.port-range.from - The start of the port range specified in the entry.
    • entry.port-range.to - The end of the port range specified in the entry.
    • entry.protocol - The protocol specified in the entry (tcp | udp | icmp or a protocol number).
    • entry.rule-action - Allows or denies the matching traffic (allow | deny).
    • entry.egress - A Boolean that indicates the type of rule. Specify true for egress rules, or false for ingress rules.
    • entry.rule-number - The number of an entry (in other words, rule) in the set of ACL entries.
    • network-acl-id - The ID of the network ACL.
    • owner-id - The ID of the Amazon Web Services account that owns the network ACL.
    • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.
    • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
    • vpc-id - The ID of the VPC for the network ACL.
  • maxResults :: Maybe Natural

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • networkAclIds :: Maybe [Text]

    One or more network ACL IDs.

    Default: Describes all your network ACLs.

  • nextToken :: Maybe Text

    The token for the next page of results.

Instances

Instances details
ToHeaders DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

ToPath DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

ToQuery DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

AWSPager DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

AWSRequest DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

Associated Types

type AWSResponse DescribeNetworkAcls #

Generic DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

Associated Types

type Rep DescribeNetworkAcls :: Type -> Type #

Read DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

Show DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

NFData DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

Methods

rnf :: DescribeNetworkAcls -> () #

Eq DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

Hashable DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

type AWSResponse DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

type Rep DescribeNetworkAcls Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

type Rep DescribeNetworkAcls = D1 ('MetaData "DescribeNetworkAcls" "Amazonka.EC2.DescribeNetworkAcls" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeNetworkAcls'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter]))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "networkAclIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newDescribeNetworkAcls :: DescribeNetworkAcls Source #

Create a value of DescribeNetworkAcls with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:DescribeNetworkAcls', describeNetworkAcls_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

$sel:filters:DescribeNetworkAcls', describeNetworkAcls_filters - One or more filters.

  • association.association-id - The ID of an association ID for the ACL.
  • association.network-acl-id - The ID of the network ACL involved in the association.
  • association.subnet-id - The ID of the subnet involved in the association.
  • default - Indicates whether the ACL is the default network ACL for the VPC.
  • entry.cidr - The IPv4 CIDR range specified in the entry.
  • entry.icmp.code - The ICMP code specified in the entry, if any.
  • entry.icmp.type - The ICMP type specified in the entry, if any.
  • entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.
  • entry.port-range.from - The start of the port range specified in the entry.
  • entry.port-range.to - The end of the port range specified in the entry.
  • entry.protocol - The protocol specified in the entry (tcp | udp | icmp or a protocol number).
  • entry.rule-action - Allows or denies the matching traffic (allow | deny).
  • entry.egress - A Boolean that indicates the type of rule. Specify true for egress rules, or false for ingress rules.
  • entry.rule-number - The number of an entry (in other words, rule) in the set of ACL entries.
  • network-acl-id - The ID of the network ACL.
  • owner-id - The ID of the Amazon Web Services account that owns the network ACL.
  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.
  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
  • vpc-id - The ID of the VPC for the network ACL.

$sel:maxResults:DescribeNetworkAcls', describeNetworkAcls_maxResults - The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

$sel:networkAclIds:DescribeNetworkAcls', describeNetworkAcls_networkAclIds - One or more network ACL IDs.

Default: Describes all your network ACLs.

DescribeNetworkAcls, describeNetworkAcls_nextToken - The token for the next page of results.

Request Lenses

describeNetworkAcls_dryRun :: Lens' DescribeNetworkAcls (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

describeNetworkAcls_filters :: Lens' DescribeNetworkAcls (Maybe [Filter]) Source #

One or more filters.

  • association.association-id - The ID of an association ID for the ACL.
  • association.network-acl-id - The ID of the network ACL involved in the association.
  • association.subnet-id - The ID of the subnet involved in the association.
  • default - Indicates whether the ACL is the default network ACL for the VPC.
  • entry.cidr - The IPv4 CIDR range specified in the entry.
  • entry.icmp.code - The ICMP code specified in the entry, if any.
  • entry.icmp.type - The ICMP type specified in the entry, if any.
  • entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.
  • entry.port-range.from - The start of the port range specified in the entry.
  • entry.port-range.to - The end of the port range specified in the entry.
  • entry.protocol - The protocol specified in the entry (tcp | udp | icmp or a protocol number).
  • entry.rule-action - Allows or denies the matching traffic (allow | deny).
  • entry.egress - A Boolean that indicates the type of rule. Specify true for egress rules, or false for ingress rules.
  • entry.rule-number - The number of an entry (in other words, rule) in the set of ACL entries.
  • network-acl-id - The ID of the network ACL.
  • owner-id - The ID of the Amazon Web Services account that owns the network ACL.
  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.
  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
  • vpc-id - The ID of the VPC for the network ACL.

describeNetworkAcls_maxResults :: Lens' DescribeNetworkAcls (Maybe Natural) Source #

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

describeNetworkAcls_networkAclIds :: Lens' DescribeNetworkAcls (Maybe [Text]) Source #

One or more network ACL IDs.

Default: Describes all your network ACLs.

describeNetworkAcls_nextToken :: Lens' DescribeNetworkAcls (Maybe Text) Source #

The token for the next page of results.

Destructuring the Response

data DescribeNetworkAclsResponse Source #

See: newDescribeNetworkAclsResponse smart constructor.

Constructors

DescribeNetworkAclsResponse' 

Fields

Instances

Instances details
Generic DescribeNetworkAclsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

Associated Types

type Rep DescribeNetworkAclsResponse :: Type -> Type #

Read DescribeNetworkAclsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

Show DescribeNetworkAclsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

NFData DescribeNetworkAclsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

Eq DescribeNetworkAclsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

type Rep DescribeNetworkAclsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeNetworkAcls

type Rep DescribeNetworkAclsResponse = D1 ('MetaData "DescribeNetworkAclsResponse" "Amazonka.EC2.DescribeNetworkAcls" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeNetworkAclsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "networkAcls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [NetworkAcl])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeNetworkAclsResponse Source #

Create a value of DescribeNetworkAclsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:networkAcls:DescribeNetworkAclsResponse', describeNetworkAclsResponse_networkAcls - Information about one or more network ACLs.

DescribeNetworkAcls, describeNetworkAclsResponse_nextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.

$sel:httpStatus:DescribeNetworkAclsResponse', describeNetworkAclsResponse_httpStatus - The response's http status code.

Response Lenses

describeNetworkAclsResponse_nextToken :: Lens' DescribeNetworkAclsResponse (Maybe Text) Source #

The token to use to retrieve the next page of results. This value is null when there are no more results to return.