import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RemoveResourcePermissionRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link RemoveResourcePermissionCommand}. */ export interface RemoveResourcePermissionCommandInput extends RemoveResourcePermissionRequest { } /** * @public * * The output of {@link RemoveResourcePermissionCommand}. */ export interface RemoveResourcePermissionCommandOutput extends __MetadataBearer { } declare const RemoveResourcePermissionCommand_base: { new (input: RemoveResourcePermissionCommandInput): import("@smithy/core/client").CommandImpl; new (input: RemoveResourcePermissionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Removes the permission for the specified principal from the specified * resource.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkDocsClient, RemoveResourcePermissionCommand } from "@aws-sdk/client-workdocs"; // ES Modules import * // const { WorkDocsClient, RemoveResourcePermissionCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import * // import type { WorkDocsClientConfig } from "@aws-sdk/client-workdocs"; * const config = {}; // type is WorkDocsClientConfig * const client = new WorkDocsClient(config); * const input = { // RemoveResourcePermissionRequest * AuthenticationToken: "STRING_VALUE", * ResourceId: "STRING_VALUE", // required * PrincipalId: "STRING_VALUE", // required * PrincipalType: "USER" || "GROUP" || "INVITE" || "ANONYMOUS" || "ORGANIZATION", * }; * const command = new RemoveResourcePermissionCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param RemoveResourcePermissionCommandInput - {@link RemoveResourcePermissionCommandInput} * @returns {@link RemoveResourcePermissionCommandOutput} * @see {@link RemoveResourcePermissionCommandInput} for command's `input` shape. * @see {@link RemoveResourcePermissionCommandOutput} for command's `response` shape. * @see {@link WorkDocsClientResolvedConfig | config} for WorkDocsClient's `config` shape. * * @throws {@link FailedDependencyException} (client fault) *

The Directory Service cannot reach an on-premises instance. Or a dependency * under the control of the organization is failing, such as a connected Active * Directory.

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

One or more of the dependencies is unavailable.

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

The operation is not permitted.

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

The caller does not have access to perform the action on the resource.

* * @throws {@link WorkDocsServiceException} *

Base exception class for all service exceptions from WorkDocs service.

* * * @public */ export declare class RemoveResourcePermissionCommand extends RemoveResourcePermissionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RemoveResourcePermissionRequest; output: {}; }; sdk: { input: RemoveResourcePermissionCommandInput; output: RemoveResourcePermissionCommandOutput; }; }; }