{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-associate-member-to-farm-request-schema.json",
  "title": "AssociateMemberToFarmRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-deadline-cloud-members-api-openapi.yml#/components/schemas/AssociateMemberToFarmRequest",
  "type": "object",
  "properties": {
    "farmId": {
      "type": "string",
      "description": "The ID of the farm to associate with the member."
    },
    "principalType": {
      "type": "string",
      "enum": [
        "USER",
        "GROUP"
      ],
      "description": "The principal type of the member to associate with the farm."
    },
    "identityStoreId": {
      "type": "string",
      "description": "The identity store ID of the member to associate with the farm."
    },
    "membershipLevel": {
      "type": "string",
      "enum": [
        "VIEWER",
        "CONTRIBUTOR",
        "OWNER",
        "MANAGER"
      ],
      "description": "The principal's membership level for the associated farm."
    },
    "principalId": {
      "type": "string",
      "description": "The member's principal ID to associate with the farm."
    },
    "identityCenterRegion": {
      "type": "string",
      "description": "The Region of the IAM Identity Center instance. If not provided, the service defaults to the Region of the farm."
    }
  },
  "required": [
    "farmId",
    "principalType",
    "identityStoreId",
    "membershipLevel",
    "principalId"
  ]
}