import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListPolicyTemplatesInput, ListPolicyTemplatesOutput } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, VerifiedPermissionsClientResolvedConfig } from "../VerifiedPermissionsClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListPolicyTemplatesCommand}. */ export interface ListPolicyTemplatesCommandInput extends ListPolicyTemplatesInput { } /** * @public * * The output of {@link ListPolicyTemplatesCommand}. */ export interface ListPolicyTemplatesCommandOutput extends ListPolicyTemplatesOutput, __MetadataBearer { } declare const ListPolicyTemplatesCommand_base: { new (input: ListPolicyTemplatesCommandInput): import("@smithy/core/client").CommandImpl; new (input: ListPolicyTemplatesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Returns a paginated list of all policy templates in the specified policy store.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { VerifiedPermissionsClient, ListPolicyTemplatesCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import * // const { VerifiedPermissionsClient, ListPolicyTemplatesCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import * // import type { VerifiedPermissionsClientConfig } from "@aws-sdk/client-verifiedpermissions"; * const config = {}; // type is VerifiedPermissionsClientConfig * const client = new VerifiedPermissionsClient(config); * const input = { // ListPolicyTemplatesInput * policyStoreId: "STRING_VALUE", // required * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new ListPolicyTemplatesCommand(input); * const response = await client.send(command); * // { // ListPolicyTemplatesOutput * // nextToken: "STRING_VALUE", * // policyTemplates: [ // PolicyTemplatesList // required * // { // PolicyTemplateItem * // policyStoreId: "STRING_VALUE", // required * // policyTemplateId: "STRING_VALUE", // required * // description: "STRING_VALUE", * // createdDate: new Date("TIMESTAMP"), // required * // lastUpdatedDate: new Date("TIMESTAMP"), // required * // name: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param ListPolicyTemplatesCommandInput - {@link ListPolicyTemplatesCommandInput} * @returns {@link ListPolicyTemplatesCommandOutput} * @see {@link ListPolicyTemplatesCommandInput} for command's `input` shape. * @see {@link ListPolicyTemplatesCommandOutput} for command's `response` shape. * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape. * * @throws {@link ResourceNotFoundException} (client fault) *

The request failed because it references a resource that doesn't exist.

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

You don't have sufficient access to perform this action.

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

The request failed because of an internal error. Try your request again later

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

The request failed because it exceeded a throttling quota.

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

The request failed because one or more input parameters don't satisfy their constraint requirements. The output is provided as a list of fields and a reason for each field that isn't valid.

The possible reasons include the following:

* * @throws {@link VerifiedPermissionsServiceException} *

Base exception class for all service exceptions from VerifiedPermissions service.

* * * @example ListPolicyTemplates * ```javascript * // The following example retrieves a list of all of the policy templates in the specified policy store. * const input = { * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a" * }; * const command = new ListPolicyTemplatesCommand(input); * const response = await client.send(command); * /* response is * { * policyTemplates: [ * { * createdDate: "2024-08-12T18:20:50.99Z", * description: "Generic template", * lastUpdatedDate: "2024-08-12T18:20:50.99Z", * name: "name/example-policy-template", * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a", * policyTemplateId: "PTEXAMPLEabcdefg111111" * }, * { * createdDate: "2024-08-12T18:20:50.99Z", * description: "Template for research dept", * lastUpdatedDate: "2024-08-12T18:20:50.99Z", * name: "name/example-policy-template-2", * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a", * policyTemplateId: "PTEXAMPLEabcdefg222222" * } * ] * } * *\/ * ``` * * @public */ export declare class ListPolicyTemplatesCommand extends ListPolicyTemplatesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListPolicyTemplatesInput; output: ListPolicyTemplatesOutput; }; sdk: { input: ListPolicyTemplatesCommandInput; output: ListPolicyTemplatesCommandOutput; }; }; }