{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-chime/json-schema/amazon-chime-create-app-instance-user-request-schema.json",
  "title": "CreateAppInstanceUserRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-chime-app-instance-users-api-openapi.yml#/components/schemas/CreateAppInstanceUserRequest",
  "type": "object",
  "properties": {
    "AppInstanceArn": {
      "type": "string",
      "description": "The ARN of the AppInstance request."
    },
    "AppInstanceUserId": {
      "type": "string",
      "description": "The user ID of the AppInstance."
    },
    "Name": {
      "type": "string",
      "description": "The user's name."
    },
    "Metadata": {
      "type": "string",
      "description": "The request's metadata. Limited to a 1KB string in UTF-8."
    },
    "ClientRequestToken": {
      "type": "string",
      "description": "The unique ID of the request. Use different tokens to request additional AppInstances."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IdentityChimeTag"
      },
      "description": "Tags assigned to the AppInstanceUser."
    },
    "ExpirationSettings": {
      "$ref": "#/$defs/IdentityChimeExpirationSettings"
    }
  },
  "required": [
    "AppInstanceArn",
    "AppInstanceUserId",
    "Name",
    "ClientRequestToken"
  ],
  "$defs": {
    "IdentityChimeExpirationSettings": {
      "type": "object",
      "properties": {
        "ExpirationDays": {
          "type": "integer",
          "description": "The period in days after which an AppInstanceUser will be automatically deleted."
        },
        "ExpirationCriterion": {
          "type": "string",
          "enum": [
            "CREATED_TIMESTAMP"
          ],
          "description": "Specifies the conditions under which an AppInstanceUser will expire."
        }
      },
      "required": [
        "ExpirationDays",
        "ExpirationCriterion"
      ]
    },
    "IdentityChimeTag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key in a tag."
        },
        "Value": {
          "type": "string",
          "description": "The value in a tag."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}