Skip to main content

mobile_device_access_overrides

Creates, updates, deletes, gets or lists a mobile_device_access_overrides resource.

Overview​

Namemobile_device_access_overrides
TypeResource
Idaws.workmail.mobile_device_access_overrides

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
date_createdstring (date-time)The date the override was first created.
date_modifiedstring (date-time)The date the description was last modified.
descriptionstringA description of the override. (pattern: <code>[\S\s]+</code>)
device_idstringThe device to which the access override applies. (pattern: <code>[A-Za-z0-9]+</code>)
effectstringThe effect of the override, ALLOW or DENY. (ALLOW, DENY)
user_idstringThe WorkMail user to which the access override applies.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_mobile_device_access_overrideselectregionGets the mobile device access override for the given WorkMail organization, user, and device.
list_mobile_device_access_overridesselectregionLists all the mobile device access overrides for any given combination of WorkMail organization, user, or device.
put_mobile_device_access_overridereplaceregion, OrganizationId, UserId, DeviceIdCreates or updates a mobile device access override for the given WorkMail organization, user, and device.
delete_mobile_device_access_overridedeleteregionDeletes the mobile device access override for the given WorkMail organization, user, and device. Deleting already deleted and non-existing overrides does not produce an error. In those cases, the service sends back an HTTP 200 response with an empty HTTP body.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

Gets the mobile device access override for the given WorkMail organization, user, and device.

SELECT
date_created,
date_modified,
description,
device_id,
effect,
user_id
FROM aws.workmail.mobile_device_access_overrides
WHERE region = '{{ region }}' -- required
;

REPLACE examples​

Creates or updates a mobile device access override for the given WorkMail organization, user, and device.

REPLACE aws.workmail.mobile_device_access_overrides
SET
OrganizationId = '{{ OrganizationId }}',
UserId = '{{ UserId }}',
DeviceId = '{{ DeviceId }}',
Effect = '{{ Effect }}',
Description = '{{ Description }}'
WHERE
region = '{{ region }}' --required
AND OrganizationId = '{{ OrganizationId }}' --required
AND UserId = '{{ UserId }}' --required
AND DeviceId = '{{ DeviceId }}' --required;

DELETE examples​

Deletes the mobile device access override for the given WorkMail organization, user, and device. Deleting already deleted and non-existing overrides does not produce an error. In those cases, the service sends back an HTTP 200 response with an empty HTTP body.

DELETE FROM aws.workmail.mobile_device_access_overrides
WHERE region = '{{ region }}' --required
;