:doc:`WorkSpacesWeb <../../workspaces-web>` / Client / update_ip_access_settings

*************************
update_ip_access_settings
*************************



.. py:method:: WorkSpacesWeb.Client.update_ip_access_settings(**kwargs)

  

  Updates IP access settings.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-web-2020-07-08/UpdateIpAccessSettings>`_  


  **Request Syntax**
  ::

    response = client.update_ip_access_settings(
        ipAccessSettingsArn='string',
        displayName='string',
        description='string',
        ipRules=[
            {
                'ipRange': 'string',
                'description': 'string'
            },
        ],
        clientToken='string'
    )
    
  :type ipAccessSettingsArn: string
  :param ipAccessSettingsArn: **[REQUIRED]** 

    The ARN of the IP access settings.

    

  
  :type displayName: string
  :param displayName: 

    The display name of the IP access settings.

    

  
  :type description: string
  :param description: 

    The description of the IP access settings.

    

  
  :type ipRules: list
  :param ipRules: 

    The updated IP rules of the IP access settings.

    

  
    - *(dict) --* 

      The IP rules of the IP access settings.

      

    
      - **ipRange** *(string) --* **[REQUIRED]** 

        The IP range of the IP rule.

        

      
      - **description** *(string) --* 

        The description of the IP rule.

        

      
    

  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token return the result from the original successful request.

     

    If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'ipAccessSettings': {
              'ipAccessSettingsArn': 'string',
              'associatedPortalArns': [
                  'string',
              ],
              'ipRules': [
                  {
                      'ipRange': 'string',
                      'description': 'string'
                  },
              ],
              'displayName': 'string',
              'description': 'string',
              'creationDate': datetime(2015, 1, 1),
              'customerManagedKey': 'string',
              'additionalEncryptionContext': {
                  'string': 'string'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ipAccessSettings** *(dict) --* 

        The IP access settings.

        
        

        - **ipAccessSettingsArn** *(string) --* 

          The ARN of the IP access settings resource.

          
        

        - **associatedPortalArns** *(list) --* 

          A list of web portal ARNs that this IP access settings resource is associated with.

          
          

          - *(string) --* 
      
        

        - **ipRules** *(list) --* 

          The IP rules of the IP access settings.

          
          

          - *(dict) --* 

            The IP rules of the IP access settings.

            
            

            - **ipRange** *(string) --* 

              The IP range of the IP rule.

              
            

            - **description** *(string) --* 

              The description of the IP rule.

              
        
      
        

        - **displayName** *(string) --* 

          The display name of the IP access settings.

          
        

        - **description** *(string) --* 

          The description of the IP access settings.

          
        

        - **creationDate** *(datetime) --* 

          The creation date timestamp of the IP access settings.

          
        

        - **customerManagedKey** *(string) --* 

          The customer managed key used to encrypt sensitive information in the IP access settings.

          
        

        - **additionalEncryptionContext** *(dict) --* 

          The additional encryption context of the IP access settings.

          
          

          - *(string) --* 
            

            - *(string) --* 
      
    
    
  
  **Exceptions**
  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.InternalServerException`

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

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

  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.ThrottlingException`

  
  *   :py:class:`WorkSpacesWeb.Client.exceptions.ValidationException`

  