# Update Managed Policy

> `UiPath.AmazonWebServices.Activities.UpdateManagedPolicy`

`UiPath.AmazonWebServices.Activities.UpdateManagedPolicy`

## Description

Updates the specified managed policy.

## Project compatibility

Windows - Legacy | Windows | Cross-platform

## Configuration

### Input

* **PolicyArn** - The Amazon Resource Name (ARN) of the managed policy to update.

### Tags

* **TagsToRemove** - The keys of the tags to remove from the managed policy.
* **TagsToAdd** - The tags to add or update. It contains two columns of type `String`, the first one representing the key, and the second its value.

### Versions

* **NewVersionPolicyDocument** - The policy document to use as the content for the new version of the policy. The new version is set as the policy's default (operative) version, unless `VersionToSetAsDefault` has a value.
* **VersionToRemove** - Remove the version with the specified version ID. You cannot delete the policy's default (operative) version.
* **VersionToSetAsDefault** - Sets the version with the specified version ID as the policy's default (operative) version.

### Output

* **ManagedPolicy** - The details about the updated IAM policy.

:::important
At least one managed policy's property must have a value.
:::
