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 { ListPolicyVersionsRequest, ListPolicyVersionsResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListPolicyVersionsCommand}. */ export interface ListPolicyVersionsCommandInput extends ListPolicyVersionsRequest { } /** * @public * * The output of {@link ListPolicyVersionsCommand}. */ export interface ListPolicyVersionsCommandOutput extends ListPolicyVersionsResponse, __MetadataBearer { } declare const ListPolicyVersionsCommand_base: { new (input: ListPolicyVersionsCommandInput): import("@smithy/core/client").CommandImpl; new (input: ListPolicyVersionsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Lists the versions of the specified policy and identifies the default * version.

*

Requires permission to access the ListPolicyVersions action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, ListPolicyVersionsCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, ListPolicyVersionsCommand } = 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 = { // ListPolicyVersionsRequest * policyName: "STRING_VALUE", // required * }; * const command = new ListPolicyVersionsCommand(input); * const response = await client.send(command); * // { // ListPolicyVersionsResponse * // policyVersions: [ // PolicyVersions * // { // PolicyVersion * // versionId: "STRING_VALUE", * // isDefaultVersion: true || false, * // createDate: new Date("TIMESTAMP"), * // }, * // ], * // }; * * ``` * * @param ListPolicyVersionsCommandInput - {@link ListPolicyVersionsCommandInput} * @returns {@link ListPolicyVersionsCommandOutput} * @see {@link ListPolicyVersionsCommandInput} for command's `input` shape. * @see {@link ListPolicyVersionsCommandOutput} 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 ListPolicyVersionsCommand extends ListPolicyVersionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListPolicyVersionsRequest; output: ListPolicyVersionsResponse; }; sdk: { input: ListPolicyVersionsCommandInput; output: ListPolicyVersionsCommandOutput; }; }; }