Skip to content

/AWS1/CL_ORG=>UPDATEPOLICY()

About UpdatePolicy

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 or by a member account that is a delegated administrator for an Amazon Web Services service.

Method Signature

IMPORTING

Required arguments:

IV_POLICYID TYPE /AWS1/ORGPOLICYID /AWS1/ORGPOLICYID

The unique identifier (ID) of the policy that you want to update.

The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).

Optional arguments:

IV_NAME TYPE /AWS1/ORGPOLICYNAME /AWS1/ORGPOLICYNAME

If provided, the new name for the policy.

The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

IV_DESCRIPTION TYPE /AWS1/ORGPOLICYDESCRIPTION /AWS1/ORGPOLICYDESCRIPTION

If provided, the new description for the policy.

IV_CONTENT TYPE /AWS1/ORGPOLICYCONTENT /AWS1/ORGPOLICYCONTENT

If provided, the new content for the policy. The text must be correctly formatted JSON that complies with the syntax for the policy's type. For more information, see SCP syntax in the Organizations User Guide.

The maximum size of a policy document depends on the policy's type. For more information, see Maximum and minimum values in the Organizations User Guide.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ORGUPDATEPOLICYRSP /AWS1/CL_ORGUPDATEPOLICYRSP