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 { ModifyVolumeAttributeRequest } from "../models/models_7"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ModifyVolumeAttributeCommand}. */ export interface ModifyVolumeAttributeCommandInput extends ModifyVolumeAttributeRequest { } /** * @public * * The output of {@link ModifyVolumeAttributeCommand}. */ export interface ModifyVolumeAttributeCommandOutput extends __MetadataBearer { } declare const ModifyVolumeAttributeCommand_base: { new (input: ModifyVolumeAttributeCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ModifyVolumeAttributeCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Modifies a volume attribute.

*

By default, all I/O operations for the volume are suspended when the data on the volume is * determined to be potentially inconsistent, to prevent undetectable, latent data corruption. * The I/O access to the volume can be resumed by first enabling I/O access and then checking the * data consistency on your volume.

*

You can change the default behavior to resume I/O operations. We recommend that you change * this only for boot volumes or for volumes that are stateless or disposable.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, ModifyVolumeAttributeCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, ModifyVolumeAttributeCommand } = 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 = { // ModifyVolumeAttributeRequest * AutoEnableIO: { // AttributeBooleanValue * Value: true || false, * }, * VolumeId: "STRING_VALUE", // required * DryRun: true || false, * }; * const command = new ModifyVolumeAttributeCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param ModifyVolumeAttributeCommandInput - {@link ModifyVolumeAttributeCommandInput} * @returns {@link ModifyVolumeAttributeCommandOutput} * @see {@link ModifyVolumeAttributeCommandInput} for command's `input` shape. * @see {@link ModifyVolumeAttributeCommandOutput} 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 modify a volume attribute * ```javascript * // This example sets the ``autoEnableIo`` attribute of the volume with the ID ``vol-1234567890abcdef0`` to ``true``. If the command succeeds, no output is returned. * const input = { * AutoEnableIO: { * Value: true * }, * DryRun: true, * VolumeId: "vol-1234567890abcdef0" * }; * const command = new ModifyVolumeAttributeCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @public */ export declare class ModifyVolumeAttributeCommand extends ModifyVolumeAttributeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyVolumeAttributeRequest; output: {}; }; sdk: { input: ModifyVolumeAttributeCommandInput; output: ModifyVolumeAttributeCommandOutput; }; }; }