:doc:`SageMaker <../../sagemaker>` / Client / update_hub_content

******************
update_hub_content
******************



.. py:method:: SageMaker.Client.update_hub_content(**kwargs)

  

  Updates SageMaker hub content (either a ``Model`` or ``Notebook`` resource).

   

  You can update the metadata that describes the resource. In addition to the required request fields, specify at least one of the following fields to update:

   

  
  * ``HubContentDescription``
   
  * ``HubContentDisplayName``
   
  * ``HubContentMarkdown``
   
  * ``HubContentSearchKeywords``
   
  * ``SupportStatus``
  

   

  For more information about hubs, see `Private curated hubs for foundation model access control in JumpStart <https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-curated-hubs.html>`__.

   

  .. note::

    

    If you want to update a ``ModelReference`` resource in your hub, use the ``UpdateHubContentResource`` API instead.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateHubContent>`_  


  **Request Syntax**
  ::

    response = client.update_hub_content(
        HubName='string',
        HubContentName='string',
        HubContentType='Model'|'Notebook'|'ModelReference'|'DataSet'|'JsonDoc',
        HubContentVersion='string',
        HubContentDisplayName='string',
        HubContentDescription='string',
        HubContentMarkdown='string',
        HubContentSearchKeywords=[
            'string',
        ],
        SupportStatus='Supported'|'Deprecated'|'Restricted'
    )
    
  :type HubName: string
  :param HubName: **[REQUIRED]** 

    The name of the SageMaker hub that contains the hub content you want to update. You can optionally use the hub ARN instead.

    

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

    The name of the hub content resource that you want to update.

    

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

    The content type of the resource that you want to update. Only specify a ``Model`` or ``Notebook`` resource for this API. To update a ``ModelReference``, use the ``UpdateHubContentReference`` API instead.

    

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

    The hub content version that you want to update. For example, if you have two versions of a resource in your hub, you can update the second version.

    

  
  :type HubContentDisplayName: string
  :param HubContentDisplayName: 

    The display name of the hub content.

    

  
  :type HubContentDescription: string
  :param HubContentDescription: 

    The description of the hub content.

    

  
  :type HubContentMarkdown: string
  :param HubContentMarkdown: 

    A string that provides a description of the hub content. This string can include links, tables, and standard markdown formatting.

    

  
  :type HubContentSearchKeywords: list
  :param HubContentSearchKeywords: 

    The searchable keywords of the hub content.

    

  
    - *(string) --* 

    

  :type SupportStatus: string
  :param SupportStatus: 

    Indicates the current status of the hub content resource.

    

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

    
    ::

      {
          'HubArn': 'string',
          'HubContentArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **HubArn** *(string) --* 

        The ARN of the private model hub that contains the updated hub content.

        
      

      - **HubContentArn** *(string) --* 

        The ARN of the hub content resource that was updated.

        
  
  **Exceptions**
  
  *   :py:class:`SageMaker.Client.exceptions.ResourceNotFound`

  
  *   :py:class:`SageMaker.Client.exceptions.ResourceInUse`

  