v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14136955.8 KB

Adds an environment member to an Cloud9 development environment.

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

Headers

X-Amz-Target'AWSCloud9WorkspaceManagementService.CreateEnvironmentMembership' required

Request body

environmentIdstring required

The ID of the environment that contains the environment member you want to add.

userArnstring required

The Amazon Resource Name (ARN) of the environment member you want to add.

permissions'read-write' | 'read-only' required
<p>The 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": "8d9967e2f0624182b74e7690ad69ebEX",
    "permissions": "read-write",
    "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
    "userId": "AIDAJ3BA6O2FMJWCWXHEX"
  }
}