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; }; /** *

Gets the resource-based permission policy that is set for the given environment.

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

The user does not have sufficient access to perform this action.

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

An unexpected error occurred while processing the request.

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

The request references a resource that does not exist.

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

Request was denied because the request was throttled.

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

The input does not satisfy the constraints specified by an Amazon Web Service. *

* * @throws {@link MigrationHubRefactorSpacesServiceException} *

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