import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient"; import { GetKeyGroupRequest, GetKeyGroupResult } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetKeyGroupCommand}. */ export interface GetKeyGroupCommandInput extends GetKeyGroupRequest { } /** * @public * * The output of {@link GetKeyGroupCommand}. */ export interface GetKeyGroupCommandOutput extends GetKeyGroupResult, __MetadataBearer { } declare const GetKeyGroupCommand_base: { new (input: GetKeyGroupCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetKeyGroupCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Gets a key group, including the date and time when the key group was last modified.

To get a key group, you must provide the key group's identifier. If the key group is referenced in a distribution's cache behavior, you can get the key group's identifier using ListDistributions or GetDistribution. If the key group is not referenced in a cache behavior, you can get the identifier using ListKeyGroups.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, GetKeyGroupCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, GetKeyGroupCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * const client = new CloudFrontClient(config); * const input = { // GetKeyGroupRequest * Id: "STRING_VALUE", // required * }; * const command = new GetKeyGroupCommand(input); * const response = await client.send(command); * // { // GetKeyGroupResult * // KeyGroup: { // KeyGroup * // Id: "STRING_VALUE", // required * // LastModifiedTime: new Date("TIMESTAMP"), // required * // KeyGroupConfig: { // KeyGroupConfig * // Name: "STRING_VALUE", // required * // Items: [ // PublicKeyIdList // required * // "STRING_VALUE", * // ], * // Comment: "STRING_VALUE", * // }, * // }, * // ETag: "STRING_VALUE", * // }; * * ``` * * @param GetKeyGroupCommandInput - {@link GetKeyGroupCommandInput} * @returns {@link GetKeyGroupCommandOutput} * @see {@link GetKeyGroupCommandInput} for command's `input` shape. * @see {@link GetKeyGroupCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link NoSuchResource} (client fault) *

A resource that was specified is not valid.

* * @throws {@link CloudFrontServiceException} *

Base exception class for all service exceptions from CloudFront service.

* * * @public */ export declare class GetKeyGroupCommand extends GetKeyGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetKeyGroupRequest; output: GetKeyGroupResult; }; sdk: { input: GetKeyGroupCommandInput; output: GetKeyGroupCommandOutput; }; }; }