Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PutResourcePolicyCommand

Creates or updates a resource policy.

You can only call this operation from the organization's management account.

example

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

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

PutResourcePolicyCommandInput for command's input shape.

see

PutResourcePolicyCommandOutput for command's response shape.

see

config for OrganizationsClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: PutResourcePolicyCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions