import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PutResourcePolicyCommand}. */ export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest { } /** * @public * * The output of {@link PutResourcePolicyCommand}. */ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer { } declare const PutResourcePolicyCommand_base: { new (input: PutResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl; new (input: PutResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment. The policy * must contain the same actions and condition statements as the * arn:aws:ram::aws:permission/AWSRAMDefaultPermissionRefactorSpacesEnvironment * permission in Resource Access Manager. The policy must not contain new lines or blank lines. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MigrationHubRefactorSpacesClient, PutResourcePolicyCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import * // const { MigrationHubRefactorSpacesClient, PutResourcePolicyCommand } = 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 = { // PutResourcePolicyRequest * ResourceArn: "STRING_VALUE", // required * Policy: "STRING_VALUE", // required * }; * const command = new PutResourcePolicyCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param PutResourcePolicyCommandInput - {@link PutResourcePolicyCommandInput} * @returns {@link PutResourcePolicyCommandOutput} * @see {@link PutResourcePolicyCommandInput} for command's `input` shape. * @see {@link PutResourcePolicyCommandOutput} 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 InvalidResourcePolicyException} (client fault) *

The resource policy is not valid.

* * @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 PutResourcePolicyCommand extends PutResourcePolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutResourcePolicyRequest; output: {}; }; sdk: { input: PutResourcePolicyCommandInput; output: PutResourcePolicyCommandOutput; }; }; }