{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workmail/json-schema/amazon-workmail-create-mobile-device-access-rule-request-schema.json",
  "title": "CreateMobileDeviceAccessRuleRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workmail-amazon-workmail-api-openapi.yml#/components/schemas/CreateMobileDeviceAccessRuleRequest",
  "type": "object",
  "properties": {
    "OrganizationId": {
      "type": "string",
      "description": "The WorkMail organization under which the rule will be created."
    },
    "ClientToken": {
      "type": "string",
      "description": "The idempotency token for the client request."
    },
    "Name": {
      "type": "string",
      "description": "The rule name."
    },
    "Description": {
      "type": "string",
      "description": "The rule description."
    },
    "Effect": {
      "type": "string",
      "enum": [
        "ALLOW",
        "DENY"
      ],
      "description": "The effect of the rule when it matches. Allowed values are ALLOW or DENY."
    },
    "DeviceTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device types that the rule will match."
    },
    "NotDeviceTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device types that the rule will not match. All other device types will match."
    },
    "DeviceModels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device models that the rule will match."
    },
    "NotDeviceModels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device models that the rule will not match. All other device models will match."
    },
    "DeviceOperatingSystems": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device operating systems that the rule will match."
    },
    "NotDeviceOperatingSystems": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device operating systems that the rule will not match. All other device operating systems will match."
    },
    "DeviceUserAgents": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device user agents that the rule will match."
    },
    "NotDeviceUserAgents": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device user agents that the rule will not match. All other device user agents will match."
    }
  },
  "required": [
    "OrganizationId",
    "Name",
    "Effect"
  ]
}