:doc:`WorkMail <../../workmail>` / Client / update_mobile_device_access_rule

********************************
update_mobile_device_access_rule
********************************



.. py:method:: WorkMail.Client.update_mobile_device_access_rule(**kwargs)

  

  Updates a mobile device access rule for the specified WorkMail organization.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UpdateMobileDeviceAccessRule>`_  


  **Request Syntax**
  ::

    response = client.update_mobile_device_access_rule(
        OrganizationId='string',
        MobileDeviceAccessRuleId='string',
        Name='string',
        Description='string',
        Effect='ALLOW'|'DENY',
        DeviceTypes=[
            'string',
        ],
        NotDeviceTypes=[
            'string',
        ],
        DeviceModels=[
            'string',
        ],
        NotDeviceModels=[
            'string',
        ],
        DeviceOperatingSystems=[
            'string',
        ],
        NotDeviceOperatingSystems=[
            'string',
        ],
        DeviceUserAgents=[
            'string',
        ],
        NotDeviceUserAgents=[
            'string',
        ]
    )
    
  :type OrganizationId: string
  :param OrganizationId: **[REQUIRED]** 

    The WorkMail organization under which the rule will be updated.

    

  
  :type MobileDeviceAccessRuleId: string
  :param MobileDeviceAccessRuleId: **[REQUIRED]** 

    The identifier of the rule to be updated.

    

  
  :type Name: string
  :param Name: **[REQUIRED]** 

    The updated rule name.

    

  
  :type Description: string
  :param Description: 

    The updated rule description.

    

  
  :type Effect: string
  :param Effect: **[REQUIRED]** 

    The effect of the rule when it matches. Allowed values are ``ALLOW`` or ``DENY``.

    

  
  :type DeviceTypes: list
  :param DeviceTypes: 

    Device types that the updated rule will match.

    

  
    - *(string) --* 

    

  :type NotDeviceTypes: list
  :param NotDeviceTypes: 

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

    

  
    - *(string) --* 

    

  :type DeviceModels: list
  :param DeviceModels: 

    Device models that the updated rule will match.

    

  
    - *(string) --* 

    

  :type NotDeviceModels: list
  :param NotDeviceModels: 

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

    

  
    - *(string) --* 

    

  :type DeviceOperatingSystems: list
  :param DeviceOperatingSystems: 

    Device operating systems that the updated rule will match.

    

  
    - *(string) --* 

    

  :type NotDeviceOperatingSystems: list
  :param NotDeviceOperatingSystems: 

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

    

  
    - *(string) --* 

    

  :type DeviceUserAgents: list
  :param DeviceUserAgents: 

    User agents that the updated rule will match.

    

  
    - *(string) --* 

    

  :type NotDeviceUserAgents: list
  :param NotDeviceUserAgents: 

    User agents that the updated rule **will not** match. All other user agents will match.

    

  
    - *(string) --* 

    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkMail.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`WorkMail.Client.exceptions.EntityNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationStateException`

  