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

*****************
update_model_card
*****************



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

  

  Update an Amazon SageMaker Model Card.

   

  .. warning::

     

    You cannot update both model card content and model card status in a single call.

    

  

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


  **Request Syntax**
  ::

    response = client.update_model_card(
        ModelCardName='string',
        Content='string',
        ModelCardStatus='Draft'|'PendingReview'|'Approved'|'Archived'
    )
    
  :type ModelCardName: string
  :param ModelCardName: **[REQUIRED]** 

    The name or Amazon Resource Name (ARN) of the model card to update.

    

  
  :type Content: string
  :param Content: 

    The updated model card content. Content must be in `model card JSON schema <https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html#model-cards-json-schema>`__ and provided as a string.

     

    When updating model card content, be sure to include the full content and not just updated content.

    

  
  :type ModelCardStatus: string
  :param ModelCardStatus: 

    The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.

     

    
    * ``Draft``: The model card is a work in progress.
     
    * ``PendingReview``: The model card is pending review.
     
    * ``Approved``: The model card is approved.
     
    * ``Archived``: The model card is archived. No more updates should be made to the model card, but it can still be exported.
    

    

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

    
    ::

      {
          'ModelCardArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ModelCardArn** *(string) --* 

        The Amazon Resource Name (ARN) of the updated model card.

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

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

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

  