---
title: "POST /disassociateresourcesharepermission"
method: POST
path: "/disassociateresourcesharepermission"
---

# POST /disassociateresourcesharepermission

`POST /disassociateresourcesharepermission`

Removes a managed permission from a resource share. Permission changes take effect immediately. You can remove a managed permission from a resource share only if there are currently no resources of the relevant resource type currently attached to the resource share.

## Request body

- object
  - `resourceShareArn` string, required — The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of the resource share that you want to remove the managed permission from.
  - `permissionArn` string, required — The <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of the managed permission to disassociate from the resource share. Changes to permissions take effect immediately.
  - `clientToken` string — <p>Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a <a href="https://wikipedia.org/wiki/Universally_unique_identifier">UUID type of value.</a>.</p> <p>If you don't provide this value, then Amazon Web Services generates a random one for you.</p> <p>If you retry the operation with the same <code>ClientToken</code>, but with different parameters, the retry fails with an <code>IdempotentParameterMismatch</code> error.</p>

## Response `200`

Success

- DisassociateResourceSharePermissionResponse
  - `returnValue` boolean — A return value of <code>true</code> indicates that the request succeeded. A value of <code>false</code> indicates that the request failed.
  - `clientToken` string — The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the <code>clientToken</code> request parameter of that later call. All other parameters must also have the same values that you used in the first call.

## Other responses

- `480` — MalformedArnException
- `481` — UnknownResourceException
- `482` — InvalidParameterException
- `483` — InvalidClientTokenException
- `484` — ServerInternalException
- `485` — ServiceUnavailableException
- `486` — OperationNotPermittedException
- `487` — InvalidStateTransitionException

---

[API](https://skmtc.net/aws/apis/ram.md) · [All operations](https://skmtc.net/aws/apis/ram/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/ram/versions/61869c19b93e/schema)
