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 { ReplaceNetworkAclAssociationRequest, ReplaceNetworkAclAssociationResult } from "../models/models_7"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ReplaceNetworkAclAssociationCommand}. */ export interface ReplaceNetworkAclAssociationCommandInput extends ReplaceNetworkAclAssociationRequest { } /** * @public * * The output of {@link ReplaceNetworkAclAssociationCommand}. */ export interface ReplaceNetworkAclAssociationCommandOutput extends ReplaceNetworkAclAssociationResult, __MetadataBearer { } declare const ReplaceNetworkAclAssociationCommand_base: { new (input: ReplaceNetworkAclAssociationCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ReplaceNetworkAclAssociationCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Changes which network ACL a subnet is associated with. By default when you create a * subnet, it's automatically associated with the default network ACL. For more * information, see Network ACLs in the Amazon VPC User Guide.

*

This is an idempotent operation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, ReplaceNetworkAclAssociationCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, ReplaceNetworkAclAssociationCommand } = 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 = { // ReplaceNetworkAclAssociationRequest * DryRun: true || false, * AssociationId: "STRING_VALUE", // required * NetworkAclId: "STRING_VALUE", // required * }; * const command = new ReplaceNetworkAclAssociationCommand(input); * const response = await client.send(command); * // { // ReplaceNetworkAclAssociationResult * // NewAssociationId: "STRING_VALUE", * // }; * * ``` * * @param ReplaceNetworkAclAssociationCommandInput - {@link ReplaceNetworkAclAssociationCommandInput} * @returns {@link ReplaceNetworkAclAssociationCommandOutput} * @see {@link ReplaceNetworkAclAssociationCommandInput} for command's `input` shape. * @see {@link ReplaceNetworkAclAssociationCommandOutput} 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 replace the network ACL associated with a subnet * ```javascript * // This example associates the specified network ACL with the subnet for the specified network ACL association. * const input = { * AssociationId: "aclassoc-e5b95c8c", * NetworkAclId: "acl-5fb85d36" * }; * const command = new ReplaceNetworkAclAssociationCommand(input); * const response = await client.send(command); * /* response is * { * NewAssociationId: "aclassoc-3999875b" * } * *\/ * ``` * * @public */ export declare class ReplaceNetworkAclAssociationCommand extends ReplaceNetworkAclAssociationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ReplaceNetworkAclAssociationRequest; output: ReplaceNetworkAclAssociationResult; }; sdk: { input: ReplaceNetworkAclAssociationCommandInput; output: ReplaceNetworkAclAssociationCommandOutput; }; }; }