import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0"; import type { RUMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RUMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @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/smithy-client").CommandImpl; new (input: PutResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Use this operation to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see Using resource-based policies with CloudWatch RUM.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RUMClient, PutResourcePolicyCommand } from "@aws-sdk/client-rum"; // ES Modules import * // const { RUMClient, PutResourcePolicyCommand } = require("@aws-sdk/client-rum"); // CommonJS import * // import type { RUMClientConfig } from "@aws-sdk/client-rum"; * const config = {}; // type is RUMClientConfig * const client = new RUMClient(config); * const input = { // PutResourcePolicyRequest * Name: "STRING_VALUE", // required * PolicyDocument: "STRING_VALUE", // required * PolicyRevisionId: "STRING_VALUE", * }; * const command = new PutResourcePolicyCommand(input); * const response = await client.send(command); * // { // PutResourcePolicyResponse * // PolicyDocument: "STRING_VALUE", * // PolicyRevisionId: "STRING_VALUE", * // }; * * ``` * * @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 RUMClientResolvedConfig | config} for RUMClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You don't have sufficient permissions to perform this action.

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

This operation attempted to create a resource that already exists.

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

Internal service exception.

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

The policy revision ID that you provided doeesn't match the latest policy revision ID.

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

The policy document that you specified is not formatted correctly.

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

The policy document is too large. The limit is 4 KB.

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

Resource not found.

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

The request was throttled because of quota limits.

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

One of the arguments for the request is not valid.

* * @throws {@link RUMServiceException} *

Base exception class for all service exceptions from RUM service.

* * * @public */ export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutResourcePolicyRequest; output: PutResourcePolicyResponse; }; sdk: { input: PutResourcePolicyCommandInput; output: PutResourcePolicyCommandOutput; }; }; }