v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14136955.8 KB

Changes the settings of an existing environment member for an Cloud9 development environment.

post/#X-Amz-Target=AWSCloud9WorkspaceManagementService.UpdateEnvironmentMembership

Headers

X-Amz-Target'AWSCloud9WorkspaceManagementService.UpdateEnvironmentMembership' required

Request body

environmentIdstring required

The ID of the environment for the environment member whose settings you want to change.

userArnstring required

The Amazon Resource Name (ARN) of the environment member whose settings you want to change.

permissions'read-write' | 'read-only' required
<p>The replacement type of environment member permissions you want to associate with this environment member. Available values include:</p> <ul> <li> <p> <code>read-only</code>: Has read-only access to the environment.</p> </li> <li> <p> <code>read-write</code>: Has read-write access to the environment.</p> </li> </ul>

Response

Success

Example response

{
  "membership": {
    "environmentId": "8d9967e2f0624182b74e7690ad69eb31",
    "permissions": "read-only",
    "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
    "userId": "AIDAJ3BA6O2FMJWCWXHEX"
  }
}