import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EnableSharingWithAwsOrganizationRequest, EnableSharingWithAwsOrganizationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link EnableSharingWithAwsOrganizationCommand}. */ export interface EnableSharingWithAwsOrganizationCommandInput extends EnableSharingWithAwsOrganizationRequest { } /** * @public * * The output of {@link EnableSharingWithAwsOrganizationCommand}. */ export interface EnableSharingWithAwsOrganizationCommandOutput extends EnableSharingWithAwsOrganizationResponse, __MetadataBearer { } declare const EnableSharingWithAwsOrganizationCommand_base: { new (input: EnableSharingWithAwsOrganizationCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [EnableSharingWithAwsOrganizationCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Enables resource sharing within your organization in Organizations. This operation creates * a service-linked role called AWSServiceRoleForResourceAccessManager that has the IAM managed policy * named AWSResourceAccessManagerServiceRolePolicy attached. This role permits RAM to retrieve information about * the organization and its structure. This lets you share resources with all of the * accounts in the calling account's organization by specifying the organization ID, or all * of the accounts in an organizational unit (OU) by specifying the OU ID. Until you enable * sharing within the organization, you can specify only individual Amazon Web Services accounts, or for * supported resource types, IAM roles and users.

*

You must call this operation from an IAM role or user in the organization's * management account.

*

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RAMClient, EnableSharingWithAwsOrganizationCommand } from "@aws-sdk/client-ram"; // ES Modules import * // const { RAMClient, EnableSharingWithAwsOrganizationCommand } = 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 = {}; * const command = new EnableSharingWithAwsOrganizationCommand(input); * const response = await client.send(command); * // { // EnableSharingWithAwsOrganizationResponse * // returnValue: true || false, * // }; * * ``` * * @param EnableSharingWithAwsOrganizationCommandInput - {@link EnableSharingWithAwsOrganizationCommandInput} * @returns {@link EnableSharingWithAwsOrganizationCommandOutput} * @see {@link EnableSharingWithAwsOrganizationCommandInput} for command's `input` shape. * @see {@link EnableSharingWithAwsOrganizationCommandOutput} for command's `response` shape. * @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape. * * @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 RAMServiceException} *

Base exception class for all service exceptions from RAM service.

* * * @public */ export declare class EnableSharingWithAwsOrganizationCommand extends EnableSharingWithAwsOrganizationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: {}; output: EnableSharingWithAwsOrganizationResponse; }; sdk: { input: EnableSharingWithAwsOrganizationCommandInput; output: EnableSharingWithAwsOrganizationCommandOutput; }; }; }