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 { ModifyEbsDefaultKmsKeyIdRequest, ModifyEbsDefaultKmsKeyIdResult } from "../models/models_6"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ModifyEbsDefaultKmsKeyIdCommand}. */ export interface ModifyEbsDefaultKmsKeyIdCommandInput extends ModifyEbsDefaultKmsKeyIdRequest { } /** * @public * * The output of {@link ModifyEbsDefaultKmsKeyIdCommand}. */ export interface ModifyEbsDefaultKmsKeyIdCommandOutput extends ModifyEbsDefaultKmsKeyIdResult, __MetadataBearer { } declare const ModifyEbsDefaultKmsKeyIdCommand_base: { new (input: ModifyEbsDefaultKmsKeyIdCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ModifyEbsDefaultKmsKeyIdCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Changes the default KMS key for EBS encryption by default for your account in this Region.

*

Amazon Web Services creates a unique Amazon Web Services managed KMS key in each Region for use with encryption by default. If * you change the default KMS key to a symmetric customer managed KMS key, it is used instead of the Amazon Web Services * managed KMS key. Amazon EBS does not support asymmetric KMS keys.

*

If you delete or disable the customer managed KMS key that you specified for use with * encryption by default, your instances will fail to launch.

*

For more information, see Amazon EBS encryption * in the Amazon EBS User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, ModifyEbsDefaultKmsKeyIdCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, ModifyEbsDefaultKmsKeyIdCommand } = 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 = { // ModifyEbsDefaultKmsKeyIdRequest * KmsKeyId: "STRING_VALUE", // required * DryRun: true || false, * }; * const command = new ModifyEbsDefaultKmsKeyIdCommand(input); * const response = await client.send(command); * // { // ModifyEbsDefaultKmsKeyIdResult * // KmsKeyId: "STRING_VALUE", * // }; * * ``` * * @param ModifyEbsDefaultKmsKeyIdCommandInput - {@link ModifyEbsDefaultKmsKeyIdCommandInput} * @returns {@link ModifyEbsDefaultKmsKeyIdCommandOutput} * @see {@link ModifyEbsDefaultKmsKeyIdCommandInput} for command's `input` shape. * @see {@link ModifyEbsDefaultKmsKeyIdCommandOutput} 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.

* * * @public */ export declare class ModifyEbsDefaultKmsKeyIdCommand extends ModifyEbsDefaultKmsKeyIdCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyEbsDefaultKmsKeyIdRequest; output: ModifyEbsDefaultKmsKeyIdResult; }; sdk: { input: ModifyEbsDefaultKmsKeyIdCommandInput; output: ModifyEbsDefaultKmsKeyIdCommandOutput; }; }; }