import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeletePermissionRequest, DeletePermissionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DeletePermissionCommand}. */ export interface DeletePermissionCommandInput extends DeletePermissionRequest { } /** * @public * * The output of {@link DeletePermissionCommand}. */ export interface DeletePermissionCommandOutput extends DeletePermissionResponse, __MetadataBearer { } declare const DeletePermissionCommand_base: { new (input: DeletePermissionCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeletePermissionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Deletes the specified customer managed permission in the Amazon Web Services Region in which you call this operation. You * can delete a customer managed permission only if it isn't attached to any resource share. The operation deletes all * versions associated with the customer managed permission.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RAMClient, DeletePermissionCommand } from "@aws-sdk/client-ram"; // ES Modules import * // const { RAMClient, DeletePermissionCommand } = require("@aws-sdk/client-ram"); // CommonJS import * // import type { RAMClientConfig } from "@aws-sdk/client-ram"; * const config = {}; // type is RAMClientConfig * const client = new RAMClient(config); * const input = { // DeletePermissionRequest * permissionArn: "STRING_VALUE", // required * clientToken: "STRING_VALUE", * }; * const command = new DeletePermissionCommand(input); * const response = await client.send(command); * // { // DeletePermissionResponse * // returnValue: true || false, * // clientToken: "STRING_VALUE", * // permissionStatus: "ATTACHABLE" || "UNATTACHABLE" || "DELETING" || "DELETED", * // }; * * ``` * * @param DeletePermissionCommandInput - {@link DeletePermissionCommandInput} * @returns {@link DeletePermissionCommandOutput} * @see {@link DeletePermissionCommandInput} for command's `input` shape. * @see {@link DeletePermissionCommandOutput} for command's `response` shape. * @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape. * * @throws {@link IdempotentParameterMismatchException} (client fault) *

The operation failed because the client token input parameter matched one that was * used with a previous call to the operation, but at least one of the other input * parameters is different from the previous call.

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

The operation failed because the specified client token isn't valid.

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

The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't * valid.

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

The operation failed because the requested operation isn't permitted.

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

The operation failed because the service could not respond to the request due to an * internal problem. Try again later.

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

The operation failed because the service isn't available. Try again later.

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

The operation failed because a specified resource couldn't be found.

* * @throws {@link RAMServiceException} *

Base exception class for all service exceptions from RAM service.

* * * @public */ export declare class DeletePermissionCommand extends DeletePermissionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeletePermissionRequest; output: DeletePermissionResponse; }; sdk: { input: DeletePermissionCommandInput; output: DeletePermissionCommandOutput; }; }; }