import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @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(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Retrieves the resource-based policy attached to an OpenSearch Ingestion resource.

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

You don't have permissions to access the resource.

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

Exception is thrown when an operation has been disabled.

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

The request failed because of an unknown error, exception, or failure (the failure is * internal to the service).

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

You attempted to create more than the allowed number of tags.

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

You attempted to access or delete a resource that does not exist.

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

An exception for missing or invalid input fields.

* * @throws {@link OSISServiceException} *

Base exception class for all service exceptions from OSIS 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; }; }; }