v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1480317256.9 KB

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

post/#X-Amz-Target=WorkMailService.CreateMobileDeviceAccessRule

Headers

X-Amz-Target'WorkMailService.CreateMobileDeviceAccessRule' required

Request body

OrganizationIdstring required

The WorkMail organization under which the rule will be created.

ClientTokenstring

The idempotency token for the client request.

Namestring required

The rule name.

Descriptionstring

The rule description.

Effect'ALLOW' | 'DENY' required

The effect of the rule when it matches. Allowed values are <code>ALLOW</code> or <code>DENY</code>.

DeviceTypesDeviceType[]

Device types that the rule will match.

NotDeviceTypesDeviceType[]

Device types that the rule <b>will not</b> match. All other device types will match.

DeviceModelsDeviceModel[]

Device models that the rule will match.

NotDeviceModelsDeviceModel[]

Device models that the rule <b>will not</b> match. All other device models will match.

DeviceOperatingSystemsDeviceOperatingSystem[]

Device operating systems that the rule will match.

NotDeviceOperatingSystemsDeviceOperatingSystem[]

Device operating systems that the rule <b>will not</b> match. All other device operating systems will match.

DeviceUserAgentsDeviceUserAgent[]

Device user agents that the rule will match.

NotDeviceUserAgentsDeviceUserAgent[]

Device user agents that the rule <b>will not</b> match. All other device user agents will match.

Response

Success

MobileDeviceAccessRuleIdstring

The identifier for the newly created mobile device access rule.