Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EnableSharingWithAwsOrganizationCommand

Enables resource sharing within your organization in Organizations. Calling this operation enables RAM to retrieve information about the organization and its structure. This lets you share resources with all of the accounts in an organization by specifying the organization's ID, or all of the accounts in an organizational unit (OU) by specifying the OU's ID. Until you enable sharing within the organization, you can specify only individual Amazon Web Services accounts, or for supported resource types, IAM users and roles.

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

example

Use a bare-bones client and the command you need to make an API call.

import { RAMClient, EnableSharingWithAwsOrganizationCommand } from "@aws-sdk/client-ram"; // ES Modules import
// const { RAMClient, EnableSharingWithAwsOrganizationCommand } = require("@aws-sdk/client-ram"); // CommonJS import
const client = new RAMClient(config);
const command = new EnableSharingWithAwsOrganizationCommand(input);
const response = await client.send(command);
see

EnableSharingWithAwsOrganizationCommandInput for command's input shape.

see

EnableSharingWithAwsOrganizationCommandOutput for command's response shape.

see

config for RAMClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: EnableSharingWithAwsOrganizationCommandInput

Readonly middlewareStack