{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-license-manager/json-schema/amazon-license-manager-create-token-request-schema.json",
  "title": "CreateTokenRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-license-manager-token-api-openapi.yml#/components/schemas/CreateTokenRequest",
  "type": "object",
  "properties": {
    "LicenseArn": {
      "type": "string",
      "description": "Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token."
    },
    "RoleArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use."
    },
    "ExpirationInDays": {
      "type": "integer",
      "description": "Token expiration, in days, counted from token creation. The default is 365 days."
    },
    "TokenProperties": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token."
    },
    "ClientToken": {
      "type": "string",
      "description": "Idempotency token, valid for 10 minutes."
    }
  },
  "required": [
    "LicenseArn",
    "ClientToken"
  ]
}