import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { DescribeNetworkAclsRequest, DescribeNetworkAclsResult } from "../models/models_4"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeNetworkAclsCommand}. */ export interface DescribeNetworkAclsCommandInput extends DescribeNetworkAclsRequest { } /** * @public * * The output of {@link DescribeNetworkAclsCommand}. */ export interface DescribeNetworkAclsCommandOutput extends DescribeNetworkAclsResult, __MetadataBearer { } declare const DescribeNetworkAclsCommand_base: { new (input: DescribeNetworkAclsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DescribeNetworkAclsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Describes your network ACLs. The default is to describe all your network ACLs. * Alternatively, you can specify specific network ACL IDs or filter the results to * include only the network ACLs that match specific criteria.

*

For more information, see Network ACLs in the * Amazon VPC User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DescribeNetworkAclsCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DescribeNetworkAclsCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // DescribeNetworkAclsRequest * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * DryRun: true || false, * NetworkAclIds: [ // NetworkAclIdStringList * "STRING_VALUE", * ], * Filters: [ // FilterList * { // Filter * Name: "STRING_VALUE", * Values: [ // ValueStringList * "STRING_VALUE", * ], * }, * ], * }; * const command = new DescribeNetworkAclsCommand(input); * const response = await client.send(command); * // { // DescribeNetworkAclsResult * // NetworkAcls: [ // NetworkAclList * // { // NetworkAcl * // Associations: [ // NetworkAclAssociationList * // { // NetworkAclAssociation * // NetworkAclAssociationId: "STRING_VALUE", * // NetworkAclId: "STRING_VALUE", * // SubnetId: "STRING_VALUE", * // }, * // ], * // Entries: [ // NetworkAclEntryList * // { // NetworkAclEntry * // CidrBlock: "STRING_VALUE", * // Egress: true || false, * // IcmpTypeCode: { // IcmpTypeCode * // Code: Number("int"), * // Type: Number("int"), * // }, * // Ipv6CidrBlock: "STRING_VALUE", * // PortRange: { // PortRange * // From: Number("int"), * // To: Number("int"), * // }, * // Protocol: "STRING_VALUE", * // RuleAction: "allow" || "deny", * // RuleNumber: Number("int"), * // }, * // ], * // IsDefault: true || false, * // NetworkAclId: "STRING_VALUE", * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // VpcId: "STRING_VALUE", * // OwnerId: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeNetworkAclsCommandInput - {@link DescribeNetworkAclsCommandInput} * @returns {@link DescribeNetworkAclsCommandOutput} * @see {@link DescribeNetworkAclsCommandInput} for command's `input` shape. * @see {@link DescribeNetworkAclsCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @example To describe a network ACL * ```javascript * // This example describes the specified network ACL. * const input = { * NetworkAclIds: [ * "acl-5fb85d36" * ] * }; * const command = new DescribeNetworkAclsCommand(input); * const response = await client.send(command); * /* response is * { * NetworkAcls: [ * { * Associations: [ * { * NetworkAclAssociationId: "aclassoc-66ea5f0b", * NetworkAclId: "acl-9aeb5ef7", * SubnetId: "subnet-65ea5f08" * } * ], * Entries: [ * { * CidrBlock: "0.0.0.0/0", * Egress: true, * Protocol: "-1", * RuleAction: "deny", * RuleNumber: 32767 * }, * { * CidrBlock: "0.0.0.0/0", * Egress: false, * Protocol: "-1", * RuleAction: "deny", * RuleNumber: 32767 * } * ], * IsDefault: false, * NetworkAclId: "acl-5fb85d36", * Tags: [], * VpcId: "vpc-a01106c2" * } * ] * } * *\/ * ``` * * @public */ export declare class DescribeNetworkAclsCommand extends DescribeNetworkAclsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeNetworkAclsRequest; output: DescribeNetworkAclsResult; }; sdk: { input: DescribeNetworkAclsCommandInput; output: DescribeNetworkAclsCommandOutput; }; }; }