Skip to content

Creates a new mobile device access rule for the specified WorkMail organization

Description

Creates a new mobile device access rule for the specified WorkMail organization.

Usage

workmail_create_mobile_device_access_rule(OrganizationId, ClientToken,
  Name, Description, Effect, DeviceTypes, NotDeviceTypes, DeviceModels,
  NotDeviceModels, DeviceOperatingSystems, NotDeviceOperatingSystems,
  DeviceUserAgents, NotDeviceUserAgents)

Arguments

  • OrganizationId

    [required] The WorkMail organization under which the rule will be created.

  • ClientToken

    The idempotency token for the client request.

  • Name

    [required] The rule name.

  • Description

    The rule description.

  • Effect

    [required] The effect of the rule when it matches. Allowed values are ALLOW or DENY.

  • DeviceTypes

    Device types that the rule will match.

  • NotDeviceTypes

    Device types that the rule will not match. All other device types will match.

  • DeviceModels

    Device models that the rule will match.

  • NotDeviceModels

    Device models that the rule will not match. All other device models will match.

  • DeviceOperatingSystems

    Device operating systems that the rule will match.

  • NotDeviceOperatingSystems

    Device operating systems that the rule will not match. All other device operating systems will match.

  • DeviceUserAgents

    Device user agents that the rule will match.

  • NotDeviceUserAgents

    Device user agents that the rule will not match. All other device user agents will match.

Value

A list with the following syntax:

list(
  MobileDeviceAccessRuleId = "string"
)

Request syntax

svc$create_mobile_device_access_rule(
  OrganizationId = "string",
  ClientToken = "string",
  Name = "string",
  Description = "string",
  Effect = "ALLOW"|"DENY",
  DeviceTypes = list(
    "string"
  ),
  NotDeviceTypes = list(
    "string"
  ),
  DeviceModels = list(
    "string"
  ),
  NotDeviceModels = list(
    "string"
  ),
  DeviceOperatingSystems = list(
    "string"
  ),
  NotDeviceOperatingSystems = list(
    "string"
  ),
  DeviceUserAgents = list(
    "string"
  ),
  NotDeviceUserAgents = list(
    "string"
  )
)