import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeResourcePolicyRequest, DescribeResourcePolicyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DescribeResourcePolicyCommand}. */ export interface DescribeResourcePolicyCommandInput extends DescribeResourcePolicyRequest { } /** * @public * * The output of {@link DescribeResourcePolicyCommand}. */ export interface DescribeResourcePolicyCommandOutput extends DescribeResourcePolicyResponse, __MetadataBearer { } declare const DescribeResourcePolicyCommand_base: { new (input: DescribeResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl; new (input: DescribeResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Gets the details of a resource-based policy that is attached to a custom model, including * the JSON body of the policy.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ComprehendClient, DescribeResourcePolicyCommand } from "@aws-sdk/client-comprehend"; // ES Modules import * // const { ComprehendClient, DescribeResourcePolicyCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import * // import type { ComprehendClientConfig } from "@aws-sdk/client-comprehend"; * const config = {}; // type is ComprehendClientConfig * const client = new ComprehendClient(config); * const input = { // DescribeResourcePolicyRequest * ResourceArn: "STRING_VALUE", // required * }; * const command = new DescribeResourcePolicyCommand(input); * const response = await client.send(command); * // { // DescribeResourcePolicyResponse * // ResourcePolicy: "STRING_VALUE", * // CreationTime: new Date("TIMESTAMP"), * // LastModifiedTime: new Date("TIMESTAMP"), * // PolicyRevisionId: "STRING_VALUE", * // }; * * ``` * * @param DescribeResourcePolicyCommandInput - {@link DescribeResourcePolicyCommandInput} * @returns {@link DescribeResourcePolicyCommandOutput} * @see {@link DescribeResourcePolicyCommandInput} for command's `input` shape. * @see {@link DescribeResourcePolicyCommandOutput} for command's `response` shape. * @see {@link ComprehendClientResolvedConfig | config} for ComprehendClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

An internal server error occurred. Retry your request.

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

The request is invalid.

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

The specified resource ARN was not found. Check the ARN and try your request again.

* * @throws {@link ComprehendServiceException} *

Base exception class for all service exceptions from Comprehend service.

* * * @public */ export declare class DescribeResourcePolicyCommand extends DescribeResourcePolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeResourcePolicyRequest; output: DescribeResourcePolicyResponse; }; sdk: { input: DescribeResourcePolicyCommandInput; output: DescribeResourcePolicyCommandOutput; }; }; }