Skip to main content

environment_memberships

Creates, updates, deletes, gets or lists an environment_memberships resource.

Overview

Nameenvironment_memberships
TypeResource
Idaws.cloud9.environment_memberships

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
environment_idstringThe ID of the environment for the environment member. (pattern: <code>^[a-zA-Z0-9]{8,32}$</code>)
last_accessstring (date-time)The time, expressed in epoch time format, when the environment member last opened the environment.
permissionsstringThe type of environment member permissions associated with this environment member. Available values include: owner: Owns the environment. read-only: Has read-only access to the environment. read-write: Has read-write access to the environment. (owner, read-write, read-only)
user_arnstringThe Amazon Resource Name (ARN) of the environment member. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):(iam|sts)::\d+:(root|(user/[\w+=/:,.@-]{1,64}|federated-user/[\w+=/:,.@-]{2,32}|assumed-role/[\w+=:,.@-]{1,64}/[\w+=,.@-]{1,64}))$</code>)
user_idstringThe user ID in Identity and Access Management (IAM) of the environment member.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_environment_membershipsselectregionGets information about environment members for an Cloud9 development environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"
create_environment_membershipinsertregion, environmentId, userArn, permissionsAdds an environment member to an Cloud9 development environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"
update_environment_membershipupdateregion, environmentId, userArn, permissionsChanges the settings of an existing environment member for an Cloud9 development environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"
delete_environment_membershipdeleteregionDeletes an environment member from a development environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about environment members for an Cloud9 development environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"

SELECT
environment_id,
last_access,
permissions,
user_arn,
user_id
FROM aws.cloud9.environment_memberships
WHERE region = '{{ region }}' -- required
;

INSERT examples

Adds an environment member to an Cloud9 development environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"

INSERT INTO aws.cloud9.environment_memberships (
environmentId,
userArn,
permissions,
region
)
SELECT
'{{ environmentId }}' /* required */,
'{{ userArn }}' /* required */,
'{{ permissions }}' /* required */,
'{{ region }}'
RETURNING
membership
;

UPDATE examples

Changes the settings of an existing environment member for an Cloud9 development environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"

UPDATE aws.cloud9.environment_memberships
SET
environmentId = '{{ environmentId }}',
userArn = '{{ userArn }}',
permissions = '{{ permissions }}'
WHERE
region = '{{ region }}' --required
AND environmentId = '{{ environmentId }}' --required
AND userArn = '{{ userArn }}' --required
AND permissions = '{{ permissions }}' --required
RETURNING
membership;

DELETE examples

Deletes an environment member from a development environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"

DELETE FROM aws.cloud9.environment_memberships
WHERE region = '{{ region }}' --required
;