:doc:`WorkSpaces <../../workspaces>` / Client / update_rules_of_ip_group

************************
update_rules_of_ip_group
************************



.. py:method:: WorkSpaces.Client.update_rules_of_ip_group(**kwargs)

  

  Replaces the current rules of the specified IP access control group with the specified rules.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateRulesOfIpGroup>`_  


  **Request Syntax**
  ::

    response = client.update_rules_of_ip_group(
        GroupId='string',
        UserRules=[
            {
                'ipRule': 'string',
                'ruleDesc': 'string'
            },
        ]
    )
    
  :type GroupId: string
  :param GroupId: **[REQUIRED]** 

    The identifier of the group.

    

  
  :type UserRules: list
  :param UserRules: **[REQUIRED]** 

    One or more rules.

    

  
    - *(dict) --* 

      Describes a rule for an IP access control group.

      

    
      - **ipRule** *(string) --* 

        The IP address range, in CIDR notation.

        

      
      - **ruleDesc** *(string) --* 

        The description.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkSpaces.Client.exceptions.InvalidParameterValuesException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.ResourceLimitExceededException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.InvalidResourceStateException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.AccessDeniedException`

  