Skip to content

Create Environment Membership

cloud9_create_environment_membership R Documentation

Adds an environment member to an Cloud9 development environment

Description

Adds an environment member to an Cloud9 development environment.

Usage

cloud9_create_environment_membership(environmentId, userArn,
  permissions)

Arguments

environmentId

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

userArn

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

permissions

[required] The type of environment member permissions you want to associate with this environment member. Available values include:

  • read-only: Has read-only access to the environment.

  • read-write: Has read-write access to the environment.

Value

A list with the following syntax:

list(
  membership = list(
    permissions = "owner"|"read-write"|"read-only",
    userId = "string",
    userArn = "string",
    environmentId = "string",
    lastAccess = as.POSIXct(
      "2015-01-01"
    )
  )
)

Request syntax

svc$create_environment_membership(
  environmentId = "string",
  userArn = "string",
  permissions = "read-write"|"read-only"
)

Examples

## Not run: 
# 
svc$create_environment_membership(
  environmentId = "8d9967e2f0624182b74e7690ad69ebEX",
  permissions = "read-write",
  userArn = "arn:aws:iam::123456789012:user/AnotherDemoUser"
)

## End(Not run)