You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::EC2::Types::DescribeNetworkAclsRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass DescribeNetworkAclsRequest data as a hash:

{
  filters: [
    {
      name: "String",
      values: ["String"],
    },
  ],
  dry_run: false,
  network_acl_ids: ["String"],
}

Contains the parameters for DescribeNetworkAcls.

Instance Attribute Summary collapse

Instance Attribute Details

#dry_runBoolean

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.

Returns:

  • (Boolean)


7836
7837
7838
7839
7840
7841
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 7836

class DescribeNetworkAclsRequest < Struct.new(
  :filters,
  :dry_run,
  :network_acl_ids)
  include Aws::Structure
end

#filtersArray<Types::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.egress - Indicates whether the entry applies to egress traffic.

  • 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.rule-number - The number of an entry (in other words, rule) in the ACL's set of entries.

  • network-acl-id - The ID of the network ACL.

  • tag:key=value - The key/value combination of a tag assigned to the resource. Specify the key of the tag in the filter name and the value of the tag in the filter value. For example, for the tag Purpose=X, specify tag:Purpose for the filter name and X for the filter value.

  • tag-key - The key of a tag assigned to the resource. This filter is independent of the tag-value filter. For example, if you use both the filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources assigned both the tag key Purpose (regardless of what the tag's value is), and the tag value X (regardless of what the tag's key is). If you want to list only resources where Purpose is X, see the tag:key=value filter.

  • tag-value - The value of a tag assigned to the resource. This filter is independent of the tag-key filter.

  • vpc-id - The ID of the VPC for the network ACL.

Returns:



7836
7837
7838
7839
7840
7841
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 7836

class DescribeNetworkAclsRequest < Struct.new(
  :filters,
  :dry_run,
  :network_acl_ids)
  include Aws::Structure
end

#network_acl_idsArray<String>

One or more network ACL IDs.

Default: Describes all your network ACLs.

Returns:

  • (Array<String>)


7836
7837
7838
7839
7840
7841
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 7836

class DescribeNetworkAclsRequest < Struct.new(
  :filters,
  :dry_run,
  :network_acl_ids)
  include Aws::Structure
end