import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetPublicKeyRequest, GetPublicKeyResult } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetPublicKeyCommand}. */ export interface GetPublicKeyCommandInput extends GetPublicKeyRequest { } /** * @public * * The output of {@link GetPublicKeyCommand}. */ export interface GetPublicKeyCommandOutput extends GetPublicKeyResult, __MetadataBearer { } declare const GetPublicKeyCommand_base: { new (input: GetPublicKeyCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetPublicKeyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Gets a public key.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, GetPublicKeyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, GetPublicKeyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * // import type { CloudFrontClientConfig } from "@aws-sdk/client-cloudfront"; * const config = {}; // type is CloudFrontClientConfig * const client = new CloudFrontClient(config); * const input = { // GetPublicKeyRequest * Id: "STRING_VALUE", // required * }; * const command = new GetPublicKeyCommand(input); * const response = await client.send(command); * // { // GetPublicKeyResult * // PublicKey: { // PublicKey * // Id: "STRING_VALUE", // required * // CreatedTime: new Date("TIMESTAMP"), // required * // PublicKeyConfig: { // PublicKeyConfig * // CallerReference: "STRING_VALUE", // required * // Name: "STRING_VALUE", // required * // EncodedKey: "STRING_VALUE", // required * // Comment: "STRING_VALUE", * // }, * // }, * // ETag: "STRING_VALUE", * // }; * * ``` * * @param GetPublicKeyCommandInput - {@link GetPublicKeyCommandInput} * @returns {@link GetPublicKeyCommandOutput} * @see {@link GetPublicKeyCommandInput} for command's `input` shape. * @see {@link GetPublicKeyCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

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

The specified public key doesn't exist.

* * @throws {@link CloudFrontServiceException} *

Base exception class for all service exceptions from CloudFront service.

* * * @public */ export declare class GetPublicKeyCommand extends GetPublicKeyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetPublicKeyRequest; output: GetPublicKeyResult; }; sdk: { input: GetPublicKeyCommandInput; output: GetPublicKeyCommandOutput; }; }; }