Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UpdatePolicyCommand

Updates an existing policy with a new name, description, or content. If you don't supply any parameter, that value remains unchanged. You can't change a policy's type.

This operation can be called only from the organization's management account.

example

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

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

UpdatePolicyCommandInput for command's input shape.

see

UpdatePolicyCommandOutput for command's response shape.

see

config for OrganizationsClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: UpdatePolicyCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<UpdatePolicyCommandInput, UpdatePolicyCommandOutput>

Methods

Static getEndpointParameterInstructions