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

******************
authorize_ip_rules
******************



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

  

  Adds one or more rules to the specified IP access control group.

   

  This action gives users permission to access their WorkSpaces from the CIDR address ranges specified in the rules.

  

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


  **Request Syntax**
  ::

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

    The identifier of the group.

    

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

    The rules to add to the group.

    

  
    - *(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`

  