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

Deletes the specified policy template from the policy store.

This operation also deletes any policies that were created from the specified policy template. Those policies are immediately removed from all future API responses, and are asynchronously deleted from the policy store.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { VerifiedPermissionsClient, DeletePolicyTemplateCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import * // const { VerifiedPermissionsClient, DeletePolicyTemplateCommand } = 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 = { // DeletePolicyTemplateInput * policyStoreId: "STRING_VALUE", // required * policyTemplateId: "STRING_VALUE", // required * }; * const command = new DeletePolicyTemplateCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeletePolicyTemplateCommandInput - {@link DeletePolicyTemplateCommandInput} * @returns {@link DeletePolicyTemplateCommandOutput} * @see {@link DeletePolicyTemplateCommandInput} for command's `input` shape. * @see {@link DeletePolicyTemplateCommandOutput} for command's `response` shape. * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape. * * @throws {@link ConflictException} (client fault) *

The request failed because another request to modify a resource occurred at the same time.

* * @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 To delete a policy template * ```javascript * // The following example deletes a policy template. Before you can perform this operation, you must first delete any template-linked policies that were instantiated from this policy template. To delete them, use DeletePolicy. * const input = { * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a", * policyTemplateId: "PTEXAMPLEabcdefg111111" * }; * const command = new DeletePolicyTemplateCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @public */ export declare class DeletePolicyTemplateCommand extends DeletePolicyTemplateCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeletePolicyTemplateInput; output: {}; }; sdk: { input: DeletePolicyTemplateCommandInput; output: DeletePolicyTemplateCommandOutput; }; }; }