put_mobile_device_access_override
async
¶
put_mobile_device_access_override(
organization_id: OrganizationId,
user_id: EntityIdentifier,
device_id: DeviceId,
effect: MobileDeviceAccessRuleEffect,
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = None,
description: Optional[MobileDeviceAccessRuleDescription] = None,
) -> PutMobileDeviceAccessOverrideResponse
Creates or updates a mobile device access override for the given WorkMail organization, user, and device.
Parameters:
-
organization_id(OrganizationId) –Identifies the WorkMail organization for which you create the override.
-
user_id(EntityIdentifier) –The WorkMail user for which you create the override. Accepts the following types of user identities:
-
User ID:
12345678-1234-1234-1234-123456789012orS-1-1-12-1234567890-123456789-123456789-1234 -
Email address:
[email protected] -
User name:
user
-
-
device_id(DeviceId) –The mobile device for which you create the override.
DeviceIdis case insensitive. -
effect(MobileDeviceAccessRuleEffect) –The effect of the override,
ALLOWorDENY. -
description(Optional[MobileDeviceAccessRuleDescription], default:None) –A description of the override.
Raises:
-
EntityNotFoundException–The identifier supplied for the user, group, or resource does not exist in your organization.
-
EntityStateException–You are performing an operation on a user, group, or resource that isn't in the expected state, such as trying to delete an active user.
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
OrganizationNotFoundException–An operation received a valid organization identifier that either doesn't belong or exist in the system.
-
OrganizationStateException–The organization must have a valid state to perform certain operations on the organization or its members.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workmail/_services/async_work_mail.py
5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 | |