import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; import type { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetResourcePolicyCommand}. */ export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest { } /** * @public * * The output of {@link GetResourcePolicyCommand}. */ export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer { } declare const GetResourcePolicyCommand_base: { new (input: GetResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [GetResourcePolicyCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieves a specified resource policy.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, GetResourcePolicyCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, GetResourcePolicyCommand } = require("@aws-sdk/client-glue"); // CommonJS import * // import type { GlueClientConfig } from "@aws-sdk/client-glue"; * const config = {}; // type is GlueClientConfig * const client = new GlueClient(config); * const input = { // GetResourcePolicyRequest * ResourceArn: "STRING_VALUE", * }; * const command = new GetResourcePolicyCommand(input); * const response = await client.send(command); * // { // GetResourcePolicyResponse * // PolicyInJson: "STRING_VALUE", * // PolicyHash: "STRING_VALUE", * // CreateTime: new Date("TIMESTAMP"), * // UpdateTime: new Date("TIMESTAMP"), * // }; * * ``` * * @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput} * @returns {@link GetResourcePolicyCommandOutput} * @see {@link GetResourcePolicyCommandInput} for command's `input` shape. * @see {@link GetResourcePolicyCommandOutput} for command's `response` shape. * @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape. * * @throws {@link EntityNotFoundException} (client fault) *

A specified entity does not exist

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

An internal service error occurred.

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

The input provided was not valid.

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

The operation timed out.

* * @throws {@link GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetResourcePolicyRequest; output: GetResourcePolicyResponse; }; sdk: { input: GetResourcePolicyCommandInput; output: GetResourcePolicyCommandOutput; }; }; }