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

**************
update_service
**************



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

  

  Updates the specified service.

  

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


  **Request Syntax**
  ::

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

    The ID or ARN of the service.

    

  
  :type certificateArn: string
  :param certificateArn: 

    The Amazon Resource Name (ARN) of the certificate.

    

  
  :type authType: string
  :param authType: 

    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',
          'arn': 'string',
          'name': 'string',
          'customDomainName': 'string',
          'certificateArn': 'string',
          'authType': 'NONE'|'AWS_IAM'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The ID of the service.

        
      

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

        The Amazon Resource Name (ARN) of the service.

        
      

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

        The name of the service.

        
      

      - **customDomainName** *(string) --* 

        The custom domain name of the service.

        
      

      - **certificateArn** *(string) --* 

        The Amazon Resource Name (ARN) of the certificate.

        
      

      - **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.ServiceQuotaExceededException`

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

  