import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EnableKeyRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link EnableKeyCommand}. */ export interface EnableKeyCommandInput extends EnableKeyRequest { } /** * @public * * The output of {@link EnableKeyCommand}. */ export interface EnableKeyCommandOutput extends __MetadataBearer { } declare const EnableKeyCommand_base: { new (input: EnableKeyCommandInput): import("@smithy/core/client").CommandImpl; new (input: EnableKeyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Sets the key state of a KMS key to enabled. This allows you to use the KMS key for * cryptographic operations.

*

The KMS key that you use for this operation must be in a compatible key state. For * details, see Key states of KMS keys in the Key Management Service Developer Guide.

*

* Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

*

* Required permissions: kms:EnableKey (key policy)

*

* Related operations: DisableKey *

*

* Eventual consistency: The KMS API follows an eventual consistency model. * For more information, see KMS eventual consistency.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { KMSClient, EnableKeyCommand } from "@aws-sdk/client-kms"; // ES Modules import * // const { KMSClient, EnableKeyCommand } = require("@aws-sdk/client-kms"); // CommonJS import * // import type { KMSClientConfig } from "@aws-sdk/client-kms"; * const config = {}; // type is KMSClientConfig * const client = new KMSClient(config); * const input = { // EnableKeyRequest * KeyId: "STRING_VALUE", // required * }; * const command = new EnableKeyCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param EnableKeyCommandInput - {@link EnableKeyCommandInput} * @returns {@link EnableKeyCommandOutput} * @see {@link EnableKeyCommandInput} for command's `input` shape. * @see {@link EnableKeyCommandOutput} for command's `response` shape. * @see {@link KMSClientResolvedConfig | config} for KMSClient's `config` shape. * * @throws {@link DependencyTimeoutException} (server fault) *

The system timed out while trying to fulfill the request. You can retry the * request.

* * @throws {@link InvalidArnException} (client fault) *

The request was rejected because a specified ARN, or an ARN in a key policy, is not * valid.

* * @throws {@link KMSInternalException} (server fault) *

The request was rejected because an internal exception occurred. The request can be * retried.

* * @throws {@link KMSInvalidStateException} (client fault) *

The request was rejected because the state of the specified resource is not valid for this * request.

*

This exceptions means one of the following:

* * * @throws {@link LimitExceededException} (client fault) *

The request was rejected because a length constraint or quota was exceeded. For more * information, see Quotas in * the Key Management Service Developer Guide.

* * @throws {@link NotFoundException} (client fault) *

The request was rejected because the specified entity or resource could not be * found.

* * @throws {@link KMSServiceException} *

Base exception class for all service exceptions from KMS service.

* * * @example To enable a KMS key * ```javascript * // The following example enables the specified KMS key. * const input = { * KeyId: "1234abcd-12ab-34cd-56ef-1234567890ab" * }; * const command = new EnableKeyCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class EnableKeyCommand extends EnableKeyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: EnableKeyRequest; output: {}; }; sdk: { input: EnableKeyCommandInput; output: EnableKeyCommandOutput; }; }; }