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

******************
import_hub_content
******************



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

  

  Import hub content.

  

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


  **Request Syntax**
  ::

    response = client.import_hub_content(
        HubContentName='string',
        HubContentVersion='string',
        HubContentType='Model'|'Notebook'|'ModelReference'|'DataSet'|'JsonDoc',
        DocumentSchemaVersion='string',
        HubName='string',
        HubContentDisplayName='string',
        HubContentDescription='string',
        HubContentMarkdown='string',
        HubContentDocument='string',
        SupportStatus='Supported'|'Deprecated'|'Restricted',
        HubContentSearchKeywords=[
            'string',
        ],
        Tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type HubContentName: string
  :param HubContentName: **[REQUIRED]** 

    The name of the hub content to import.

    

  
  :type HubContentVersion: string
  :param HubContentVersion: 

    The version of the hub content to import.

    

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

    The type of hub content to import.

    

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

    The version of the hub content schema to import.

    

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

    The name of the hub to import content into.

    

  
  :type HubContentDisplayName: string
  :param HubContentDisplayName: 

    The display name of the hub content to import.

    

  
  :type HubContentDescription: string
  :param HubContentDescription: 

    A description of the hub content to import.

    

  
  :type HubContentMarkdown: string
  :param HubContentMarkdown: 

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

    

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

    The hub content document that describes information about the hub content such as type, associated containers, scripts, and more.

    

  
  :type SupportStatus: string
  :param SupportStatus: 

    The status of the hub content resource.

    

  
  :type HubContentSearchKeywords: list
  :param HubContentSearchKeywords: 

    The searchable keywords of the hub content.

    

  
    - *(string) --* 

    

  :type Tags: list
  :param Tags: 

    Any tags associated with the hub content.

    

  
    - *(dict) --* 

      A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.

       

      You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see `AddTags <https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html>`__.

       

      For more information on adding metadata to your Amazon Web Services resources with tagging, see `Tagging Amazon Web Services resources <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html>`__. For advice on best practices for managing Amazon Web Services resources with tagging, see `Tagging Best Practices\: Implement an Effective Amazon Web Services Resource Tagging Strategy <https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf>`__.

      

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

        The tag key. Tag keys must be unique per resource.

        

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

        The tag value.

        

      
    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The ARN of the hub that the content was imported into.

        
      

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

        The ARN of the hub content that was imported.

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

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

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

  