:doc:`VPCLattice <../../vpc-lattice>` / Client / update_service_network

**********************
update_service_network
**********************



.. py:method:: VPCLattice.Client.update_service_network(**kwargs)

  

  Updates the specified service network.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/vpc-lattice-2022-11-30/UpdateServiceNetwork>`_  


  **Request Syntax**
  ::

    response = client.update_service_network(
        serviceNetworkIdentifier='string',
        authType='NONE'|'AWS_IAM'
    )
    
  :type serviceNetworkIdentifier: string
  :param serviceNetworkIdentifier: **[REQUIRED]** 

    The ID or ARN of the service network.

    

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

    The type of IAM policy.

     

    
    * ``NONE``: The resource does not use an IAM policy. This is the default.
     
    * ``AWS_IAM``: The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.
    

    

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

    
    ::

      {
          'id': 'string',
          'name': 'string',
          'arn': 'string',
          'authType': 'NONE'|'AWS_IAM'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **id** *(string) --* 

        The ID of the service network.

        
      

      - **name** *(string) --* 

        The name of the service network.

        
      

      - **arn** *(string) --* 

        The Amazon Resource Name (ARN) of the service network.

        
      

      - **authType** *(string) --* 

        The type of IAM policy.

        
  
  **Exceptions**
  
  *   :py:class:`VPCLattice.Client.exceptions.ValidationException`

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

  
  *   :py:class:`VPCLattice.Client.exceptions.ConflictException`

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

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

  
  *   :py:class:`VPCLattice.Client.exceptions.InternalServerException`

  