Cloud9 / Paginator / DescribeEnvironmentMemberships

DescribeEnvironmentMemberships#

class Cloud9.Paginator.DescribeEnvironmentMemberships#
paginator = client.get_paginator('describe_environment_memberships')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from Cloud9.Client.describe_environment_memberships().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    userArn='string',
    environmentId='string',
    permissions=[
        'owner'|'read-write'|'read-only',
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • userArn (string) – The Amazon Resource Name (ARN) of an individual environment member to get information about. If no value is specified, information about all environment members are returned.

  • environmentId (string) – The ID of the environment to get environment member information about.

  • permissions (list) –

    The type of environment member permissions to get information about. 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.

    If no value is specified, information about all environment members are returned.

    • (string) –

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'memberships': [
        {
            'permissions': 'owner'|'read-write'|'read-only',
            'userId': 'string',
            'userArn': 'string',
            'environmentId': 'string',
            'lastAccess': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • memberships (list) –

      Information about the environment members for the environment.

      • (dict) –

        Information about an environment member for an Cloud9 development environment.

        • permissions (string) –

          The 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.

        • userId (string) –

          The user ID in Identity and Access Management (IAM) of the environment member.

        • userArn (string) –

          The Amazon Resource Name (ARN) of the environment member.

        • environmentId (string) –

          The ID of the environment for the environment member.

        • lastAccess (datetime) –

          The time, expressed in epoch time format, when the environment member last opened the environment.

    • NextToken (string) –

      A token to resume pagination.