:doc:`CodeStarconnections <../../codestar-connections>` / Client / update_host

***********
update_host
***********



.. py:method:: CodeStarconnections.Client.update_host(**kwargs)

  

  Updates a specified host with the provided configurations.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateHost>`_  


  **Request Syntax**
  ::

    response = client.update_host(
        HostArn='string',
        ProviderEndpoint='string',
        VpcConfiguration={
            'VpcId': 'string',
            'SubnetIds': [
                'string',
            ],
            'SecurityGroupIds': [
                'string',
            ],
            'TlsCertificate': 'string'
        }
    )
    
  :type HostArn: string
  :param HostArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the host to be updated.

    

  
  :type ProviderEndpoint: string
  :param ProviderEndpoint: 

    The URL or endpoint of the host to be updated.

    

  
  :type VpcConfiguration: dict
  :param VpcConfiguration: 

    The VPC configuration of the host to be updated. A VPC must be configured and the infrastructure to be represented by the host must already be connected to the VPC.

    

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

      The ID of the Amazon VPC connected to the infrastructure where your provider type is installed.

      

    
    - **SubnetIds** *(list) --* **[REQUIRED]** 

      The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.

      

    
      - *(string) --* 

      
  
    - **SecurityGroupIds** *(list) --* **[REQUIRED]** 

      The ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.

      

    
      - *(string) --* 

      
  
    - **TlsCertificate** *(string) --* 

      The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.

      

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`CodeStarconnections.Client.exceptions.ConflictException`

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

  
  *   :py:class:`CodeStarconnections.Client.exceptions.ResourceUnavailableException`

  
  *   :py:class:`CodeStarconnections.Client.exceptions.UnsupportedOperationException`

  