WorkMail.Client.
create_mobile_device_access_rule
(**kwargs)¶Creates a new mobile device access rule for the specified WorkMail organization.
See also: AWS API Documentation
Request Syntax
response = client.create_mobile_device_access_rule(
OrganizationId='string',
ClientToken='string',
Name='string',
Description='string',
Effect='ALLOW'|'DENY',
DeviceTypes=[
'string',
],
NotDeviceTypes=[
'string',
],
DeviceModels=[
'string',
],
NotDeviceModels=[
'string',
],
DeviceOperatingSystems=[
'string',
],
NotDeviceOperatingSystems=[
'string',
],
DeviceUserAgents=[
'string',
],
NotDeviceUserAgents=[
'string',
]
)
[REQUIRED]
The WorkMail organization under which the rule will be created.
The idempotency token for the client request.
This field is autopopulated if not provided.
[REQUIRED]
The rule name.
[REQUIRED]
The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
Device types that the rule will match.
Device types that the rule will not match. All other device types will match.
Device models that the rule will match.
Device models that the rule will not match. All other device models will match.
Device operating systems that the rule will match.
Device operating systems that the rule will not match. All other device operating systems will match.
Device user agents that the rule will match.
Device user agents that the rule will not match. All other device user agents will match.
dict
Response Syntax
{
'MobileDeviceAccessRuleId': 'string'
}
Response Structure
(dict) --
MobileDeviceAccessRuleId (string) --
The identifier for the newly created mobile device access rule.
Exceptions
WorkMail.Client.exceptions.InvalidParameterException
WorkMail.Client.exceptions.LimitExceededException
WorkMail.Client.exceptions.OrganizationNotFoundException
WorkMail.Client.exceptions.OrganizationStateException