{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloud9/json-schema/amazon-cloud9-create-environment-membership-result-schema.json",
  "title": "CreateEnvironmentMembershipResult",
  "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/CreateEnvironmentMembershipResult",
  "type": "object",
  "properties": {
    "membership": {
      "$ref": "#/$defs/EnvironmentMember"
    }
  },
  "required": [
    "membership"
  ],
  "$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"
      ]
    }
  }
}