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

Deletes the specified policy from the policy store.

This operation is idempotent; if you specify a policy that doesn't exist, the request response returns a successful HTTP 200 status code.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { VerifiedPermissionsClient, DeletePolicyCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import * // const { VerifiedPermissionsClient, DeletePolicyCommand } = 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 = { // DeletePolicyInput * policyStoreId: "STRING_VALUE", // required * policyId: "STRING_VALUE", // required * }; * const command = new DeletePolicyCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeletePolicyCommandInput - {@link DeletePolicyCommandInput} * @returns {@link DeletePolicyCommandOutput} * @see {@link DeletePolicyCommandInput} for command's `input` shape. * @see {@link DeletePolicyCommandOutput} 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 * ```javascript * // The following example deletes the specified policy from its policy store. * const input = { * policyId: "9wYxMpljbbZQb5fcZHyJhY", * policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a" * }; * const command = new DeletePolicyCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @public */ export declare class DeletePolicyCommand extends DeletePolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeletePolicyInput; output: {}; }; sdk: { input: DeletePolicyCommandInput; output: DeletePolicyCommandOutput; }; }; }