:doc:`RDS <../../rds>` / Client / enable_http_endpoint

********************
enable_http_endpoint
********************



.. py:method:: RDS.Client.enable_http_endpoint(**kwargs)

  

  Enables the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.

   

  When enabled, this endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the Aurora DB cluster. You can also query your database from inside the RDS console with the RDS query editor.

   

  For more information, see `Using RDS Data API <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html>`__ in the *Amazon Aurora User Guide*.

   

  .. note::

    

    This operation applies only to Aurora Serverless v2 and provisioned DB clusters. To enable the HTTP endpoint for Aurora Serverless v1 DB clusters, use the ``EnableHttpEndpoint`` parameter of the ``ModifyDBCluster`` operation.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/EnableHttpEndpoint>`_  


  **Request Syntax**
  ::

    response = client.enable_http_endpoint(
        ResourceArn='string'
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the DB cluster.

    

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

    
    ::

      {
          'ResourceArn': 'string',
          'HttpEndpointEnabled': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ResourceArn** *(string) --* 

        The ARN of the DB cluster.

        
      

      - **HttpEndpointEnabled** *(boolean) --* 

        Indicates whether the HTTP endpoint is enabled or disabled for the DB cluster.

        
  
  **Exceptions**
  
  *   :py:class:`RDS.Client.exceptions.ResourceNotFoundFault`

  
  *   :py:class:`RDS.Client.exceptions.InvalidResourceStateFault`

  