Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PromoteResourceShareCreatedFromPolicyCommand

When you attach a resource-based permission policy to a resource, it automatically creates a resource share. However, resource shares created this way are visible only to the resource share owner, and the resource share can't be modified in RAM.

You can use this operation to promote the resource share to a full RAM resource share. When you promote a resource share, you can then manage the resource share in RAM and it becomes visible to all of the principals you shared it with.

example

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

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

PromoteResourceShareCreatedFromPolicyCommandInput for command's input shape.

see

PromoteResourceShareCreatedFromPolicyCommandOutput for command's response shape.

see

config for RAMClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: PromoteResourceShareCreatedFromPolicyCommandInput

Readonly middlewareStack