Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateResourceShareCommand

Creates a resource share. You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.

Sharing a resource makes it available for use by principals outside of the Amazon Web Services account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.

example

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

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

CreateResourceShareCommandInput for command's input shape.

see

CreateResourceShareCommandOutput for command's response shape.

see

config for RAMClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: CreateResourceShareCommandInput

Readonly middlewareStack