import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AssociateResourceSharePermissionRequest, AssociateResourceSharePermissionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AssociateResourceSharePermissionCommand}. */ export interface AssociateResourceSharePermissionCommandInput extends AssociateResourceSharePermissionRequest { } /** * @public * * The output of {@link AssociateResourceSharePermissionCommand}. */ export interface AssociateResourceSharePermissionCommandOutput extends AssociateResourceSharePermissionResponse, __MetadataBearer { } declare const AssociateResourceSharePermissionCommand_base: { new (input: AssociateResourceSharePermissionCommandInput): import("@smithy/core/client").CommandImpl; new (input: AssociateResourceSharePermissionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Adds or replaces the RAM permission for a resource type included in a resource share. You can * have exactly one permission associated with each resource type in the resource share. You can add * a new RAM permission only if there are currently no resources of that resource type * currently in the resource share.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RAMClient, AssociateResourceSharePermissionCommand } from "@aws-sdk/client-ram"; // ES Modules import * // const { RAMClient, AssociateResourceSharePermissionCommand } = require("@aws-sdk/client-ram"); // CommonJS import * // import type { RAMClientConfig } from "@aws-sdk/client-ram"; * const config = {}; // type is RAMClientConfig * const client = new RAMClient(config); * const input = { // AssociateResourceSharePermissionRequest * resourceShareArn: "STRING_VALUE", // required * permissionArn: "STRING_VALUE", // required * replace: true || false, * clientToken: "STRING_VALUE", * permissionVersion: Number("int"), * }; * const command = new AssociateResourceSharePermissionCommand(input); * const response = await client.send(command); * // { // AssociateResourceSharePermissionResponse * // returnValue: true || false, * // clientToken: "STRING_VALUE", * // }; * * ``` * * @param AssociateResourceSharePermissionCommandInput - {@link AssociateResourceSharePermissionCommandInput} * @returns {@link AssociateResourceSharePermissionCommandOutput} * @see {@link AssociateResourceSharePermissionCommandInput} for command's `input` shape. * @see {@link AssociateResourceSharePermissionCommandOutput} for command's `response` shape. * @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape. * * @throws {@link InvalidClientTokenException} (client fault) *

The operation failed because the specified client token isn't valid.

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

The operation failed because a parameter you specified isn't valid.

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

The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't * valid.

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

The operation failed because the requested operation isn't permitted.

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

The operation failed because the service could not respond to the request due to an * internal problem. Try again later.

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

The operation failed because the service isn't available. Try again later.

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

The operation failed because a specified resource couldn't be found.

* * @throws {@link RAMServiceException} *

Base exception class for all service exceptions from RAM service.

* * * @public */ export declare class AssociateResourceSharePermissionCommand extends AssociateResourceSharePermissionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateResourceSharePermissionRequest; output: AssociateResourceSharePermissionResponse; }; sdk: { input: AssociateResourceSharePermissionCommandInput; output: AssociateResourceSharePermissionCommandOutput; }; }; }