CmdID

CmdID / aws / aws cloud9

aws cloud9 describe-environment-memberships

Gets information about environment members for an Cloud9 development environment. AWS CLI reference

3 examples 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

Example 1: To get information about environment members for an AWS Cloud9 development environment

The following describe-environment-memberships example gets information about environment members for the specified AWS Cloud9 development environment.

aws cloud9 describe-environment-memberships --environment-id 8a34f51ce1e04a08882f1e811bd706EXIdentify
--environment-idThe ID of the environment to get environment member information about.
Its output
{
    "memberships": [
        {
            "environmentId": "8a34f51ce1e04a08882f1e811bd706EX",
            "userId": "AIDAJ3LOROMOUXTBSU6EX",
            "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
            "permissions": "read-write"
        },
        {
            "environmentId": "8a34f51ce1e04a08882f1e811bd706EX",
            "userId": "AIDAJNUEDQAQWFELJDLEX",
            "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
            "permissions": "owner"
        }
    ]
}

For more information, see Working with shared environment in AWS Cloud9 in the AWS Cloud9 User Guide.

Example 2: To get information about the owner of an AWS Cloud9 development environment

The following describe-environment-memberships example gets information about the owner of the specified AWS Cloud9 development environment.

aws cloud9 describe-environment-memberships --environment-id 8a34f51ce1e04a08882f1e811bd706EX --permissions ownerIdentify
--environment-idThe ID of the environment to get environment member information about.
--permissionsThe type of environment member permissions to get information about.
Its output
{
    "memberships": [
        {
            "environmentId": "8a34f51ce1e04a08882f1e811bd706EX",
            "userId": "AIDAJNUEDQAQWFELJDLEX",
            "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
            "permissions": "owner"
        }
    ]
}

For more information, see Working with shared environment in AWS Cloud9 in the AWS Cloud9 User Guide.

Example 3: To get information about an environment member for multiple AWS Cloud9 development environments

The following describe-environment-memberships example gets information about the specified environment member for multiple AWS Cloud9 development environments.

aws cloud9 describe-environment-memberships --user-arn arn:aws:iam::123456789012:user/MyDemoUserIdentify
--user-arnThe Amazon Resource Name (ARN) of an individual environment member to get information about.
Its output
{
    "memberships": [
        {
            "environmentId": "10a75714bd494714929e7f5ec4125aEX",
            "lastAccess": 1516213427.0,
            "userId": "AIDAJNUEDQAQWFELJDLEX",
            "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
            "permissions": "owner"
        },
        {
            "environmentId": "1980b80e5f584920801c09086667f0EX",
            "lastAccess": 1516144884.0,
            "userId": "AIDAJNUEDQAQWFELJDLEX",
            "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
            "permissions": "owner"
        }
    ]
}

For more information, see Working with shared environment in AWS Cloud9 in the AWS Cloud9 User Guide.

Options

5 in the AWS CLI reference
--environment-idThe ID of the environment to get environment member information about.
--max-resultsThe maximum number of environment members to get information about.
--next-tokenDuring a previous call, if there are more than 25 items in the list, only the first 25 items are returned, along with a unique string called a next token.
--permissionsThe type of environment member permissions to get information about.
--user-arnThe Amazon Resource Name (ARN) of an individual environment member to get information about.