import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import type { GetPolicyVersionRequest, GetPolicyVersionResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetPolicyVersionCommand}. */ export interface GetPolicyVersionCommandInput extends GetPolicyVersionRequest { } /** * @public * * The output of {@link GetPolicyVersionCommand}. */ export interface GetPolicyVersionCommandOutput extends GetPolicyVersionResponse, __MetadataBearer { } declare const GetPolicyVersionCommand_base: { new (input: GetPolicyVersionCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetPolicyVersionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Gets information about the specified policy version.

*

Requires permission to access the GetPolicyVersion action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, GetPolicyVersionCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, GetPolicyVersionCommand } = require("@aws-sdk/client-iot"); // CommonJS import * // import type { IoTClientConfig } from "@aws-sdk/client-iot"; * const config = {}; // type is IoTClientConfig * const client = new IoTClient(config); * const input = { // GetPolicyVersionRequest * policyName: "STRING_VALUE", // required * policyVersionId: "STRING_VALUE", // required * }; * const command = new GetPolicyVersionCommand(input); * const response = await client.send(command); * // { // GetPolicyVersionResponse * // policyArn: "STRING_VALUE", * // policyName: "STRING_VALUE", * // policyDocument: "STRING_VALUE", * // policyVersionId: "STRING_VALUE", * // isDefaultVersion: true || false, * // creationDate: new Date("TIMESTAMP"), * // lastModifiedDate: new Date("TIMESTAMP"), * // generationId: "STRING_VALUE", * // }; * * ``` * * @param GetPolicyVersionCommandInput - {@link GetPolicyVersionCommandInput} * @returns {@link GetPolicyVersionCommandOutput} * @see {@link GetPolicyVersionCommandInput} for command's `input` shape. * @see {@link GetPolicyVersionCommandOutput} for command's `response` shape. * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape. * * @throws {@link InternalFailureException} (server fault) *

An unexpected error has occurred.

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

The request is not valid.

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

The specified resource does not exist.

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

The service is temporarily unavailable.

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

The rate exceeds the limit.

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

You are not authorized to perform this operation.

* * @throws {@link IoTServiceException} *

Base exception class for all service exceptions from IoT service.

* * * @public */ export declare class GetPolicyVersionCommand extends GetPolicyVersionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetPolicyVersionRequest; output: GetPolicyVersionResponse; }; sdk: { input: GetPolicyVersionCommandInput; output: GetPolicyVersionCommandOutput; }; }; }