import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { LocationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LocationClient"; import { UpdateKeyRequest, UpdateKeyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateKeyCommand}. */ export interface UpdateKeyCommandInput extends UpdateKeyRequest { } /** * @public * * The output of {@link UpdateKeyCommand}. */ export interface UpdateKeyCommandOutput extends UpdateKeyResponse, __MetadataBearer { } declare const UpdateKeyCommand_base: { new (input: UpdateKeyCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateKeyCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Updates the specified properties of a given API key resource.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { LocationClient, UpdateKeyCommand } from "@aws-sdk/client-location"; // ES Modules import * // const { LocationClient, UpdateKeyCommand } = require("@aws-sdk/client-location"); // CommonJS import * const client = new LocationClient(config); * const input = { // UpdateKeyRequest * KeyName: "STRING_VALUE", // required * Description: "STRING_VALUE", * ExpireTime: new Date("TIMESTAMP"), * NoExpiry: true || false, * ForceUpdate: true || false, * Restrictions: { // ApiKeyRestrictions * AllowActions: [ // ApiKeyActionList // required * "STRING_VALUE", * ], * AllowResources: [ // GeoArnList // required * "STRING_VALUE", * ], * AllowReferers: [ // RefererPatternList * "STRING_VALUE", * ], * }, * }; * const command = new UpdateKeyCommand(input); * const response = await client.send(command); * // { // UpdateKeyResponse * // KeyArn: "STRING_VALUE", // required * // KeyName: "STRING_VALUE", // required * // UpdateTime: new Date("TIMESTAMP"), // required * // }; * * ``` * * @param UpdateKeyCommandInput - {@link UpdateKeyCommandInput} * @returns {@link UpdateKeyCommandOutput} * @see {@link UpdateKeyCommandInput} for command's `input` shape. * @see {@link UpdateKeyCommandOutput} for command's `response` shape. * @see {@link LocationClientResolvedConfig | config} for LocationClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

The request was denied because of insufficient access or permissions. Check with an * administrator to verify your permissions.

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

The request has failed to process because of an unknown server error, exception, or failure.

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

The resource that you've entered was not found in your AWS account.

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

The request was denied because of request throttling.

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

The input failed to meet the constraints specified by the AWS service.

* * @throws {@link LocationServiceException} *

Base exception class for all service exceptions from Location service.

* * * @public */ export declare class UpdateKeyCommand extends UpdateKeyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateKeyRequest; output: UpdateKeyResponse; }; sdk: { input: UpdateKeyCommandInput; output: UpdateKeyCommandOutput; }; }; }