{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloud9/json-schema/amazon-cloud9-describe-environment-memberships-result-schema.json",
  "title": "DescribeEnvironmentMembershipsResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloud9-environment-membership-api-openapi.yml#/components/schemas/DescribeEnvironmentMembershipsResult",
  "type": "object",
  "properties": {
    "memberships": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnvironmentMember"
      },
      "description": "Information about the environment members for the environment."
    },
    "nextToken": {
      "type": "string",
      "description": "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. To get the next batch of items in the list, call this operation again, adding the next token to the call."
    }
  },
  "$defs": {
    "EnvironmentMember": {
      "type": "object",
      "properties": {
        "permissions": {
          "type": "string",
          "enum": [
            "owner",
            "read-write",
            "read-only"
          ],
          "description": "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": {
          "type": "string",
          "description": "The user ID in Identity and Access Management (IAM) of the environment member."
        },
        "userArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the environment member."
        },
        "environmentId": {
          "type": "string",
          "description": "The ID of the environment for the environment member."
        },
        "lastAccess": {
          "type": "string",
          "format": "date-time",
          "description": "The time, expressed in epoch time format, when the environment member last opened the environment."
        }
      },
      "required": [
        "permissions",
        "userId",
        "userArn",
        "environmentId"
      ]
    }
  }
}