{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workmail/json-schema/amazon-workmail-put-access-control-rule-request-schema.json",
  "title": "PutAccessControlRuleRequest",
  "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/PutAccessControlRuleRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The rule name."
    },
    "Effect": {
      "type": "string",
      "enum": [
        "ALLOW",
        "DENY"
      ],
      "description": "The rule effect."
    },
    "Description": {
      "type": "string",
      "description": "The rule description."
    },
    "IpRanges": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IPv4 CIDR ranges to include in the rule."
    },
    "NotIpRanges": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IPv4 CIDR ranges to exclude from the rule."
    },
    "Actions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Access protocol actions to include in the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail."
    },
    "NotActions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Access protocol actions to exclude from the rule. Valid values include ActiveSync, AutoDiscover, EWS, IMAP, SMTP, WindowsOutlook, and WebMail."
    },
    "UserIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "User IDs to include in the rule."
    },
    "NotUserIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "User IDs to exclude from the rule."
    },
    "OrganizationId": {
      "type": "string",
      "description": "The identifier of the organization."
    },
    "ImpersonationRoleIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Impersonation role IDs to include in the rule."
    },
    "NotImpersonationRoleIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Impersonation role IDs to exclude from the rule."
    }
  },
  "required": [
    "Name",
    "Effect",
    "Description",
    "OrganizationId"
  ]
}