import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetResourcePolicyMessage, GetResourcePolicyResult } from "../models/models_0"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetResourcePolicyCommand}. */ export interface GetResourcePolicyCommandInput extends GetResourcePolicyMessage { } /** * @public * * The output of {@link GetResourcePolicyCommand}. */ export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResult, __MetadataBearer { } declare const GetResourcePolicyCommand_base: { new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Get the resource policy for a specified resource.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, GetResourcePolicyCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, GetResourcePolicyCommand } = require("@aws-sdk/client-redshift"); // CommonJS import * // import type { RedshiftClientConfig } from "@aws-sdk/client-redshift"; * const config = {}; // type is RedshiftClientConfig * const client = new RedshiftClient(config); * const input = { // GetResourcePolicyMessage * ResourceArn: "STRING_VALUE", // required * }; * const command = new GetResourcePolicyCommand(input); * const response = await client.send(command); * // { // GetResourcePolicyResult * // ResourcePolicy: { // ResourcePolicy * // ResourceArn: "STRING_VALUE", * // Policy: "STRING_VALUE", * // }, * // }; * * ``` * * @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 RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link InvalidPolicyFault} (client fault) *

The resource policy isn't valid.

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

The resource could not be found.

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

The requested operation isn't supported.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

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