Creates or updates a resource policy.
You can only call this operation from the organization's management account.
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);
PutResourcePolicyCommandInput for command's input shape.
input
PutResourcePolicyCommandOutput for command's response shape.
response
config for OrganizationsClient's config shape.
config
Creates or updates a resource policy.
You can only call this operation from the organization's management account.
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);
PutResourcePolicyCommandInput for command's
input
shape.PutResourcePolicyCommandOutput for command's
response
shape.config for OrganizationsClient's
config
shape.