{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workmail/json-schema/amazon-workmail-update-mobile-device-access-rule-request-schema.json",
  "title": "UpdateMobileDeviceAccessRuleRequest",
  "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/UpdateMobileDeviceAccessRuleRequest",
  "type": "object",
  "properties": {
    "OrganizationId": {
      "type": "string",
      "description": "The WorkMail organization under which the rule will be updated."
    },
    "MobileDeviceAccessRuleId": {
      "type": "string",
      "description": "The identifier of the rule to be updated."
    },
    "Name": {
      "type": "string",
      "description": "The updated rule name."
    },
    "Description": {
      "type": "string",
      "description": "The updated 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 updated rule will match."
    },
    "NotDeviceTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device types that the updated rule will not match. All other device types will match."
    },
    "DeviceModels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device models that the updated rule will match."
    },
    "NotDeviceModels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device models that the updated rule will not match. All other device models will match."
    },
    "DeviceOperatingSystems": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device operating systems that the updated rule will match."
    },
    "NotDeviceOperatingSystems": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Device operating systems that the updated rule will not match. All other device operating systems will match."
    },
    "DeviceUserAgents": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "User agents that the updated rule will match."
    },
    "NotDeviceUserAgents": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "User agents that the updated rule will not match. All other user agents will match."
    }
  },
  "required": [
    "OrganizationId",
    "MobileDeviceAccessRuleId",
    "Name",
    "Effect"
  ]
}