:doc:`ServiceCatalog <../../servicecatalog>` / Client / update_portfolio

****************
update_portfolio
****************



.. py:method:: ServiceCatalog.Client.update_portfolio(**kwargs)

  

  Updates the specified portfolio.

   

  You cannot update a product that was shared with you.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdatePortfolio>`_  


  **Request Syntax**
  ::

    response = client.update_portfolio(
        AcceptLanguage='string',
        Id='string',
        DisplayName='string',
        Description='string',
        ProviderName='string',
        AddTags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ],
        RemoveTags=[
            'string',
        ]
    )
    
  :type AcceptLanguage: string
  :param AcceptLanguage: 

    The language code.

     

    
    * ``jp`` - Japanese
     
    * ``zh`` - Chinese
    

    

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

    The portfolio identifier.

    

  
  :type DisplayName: string
  :param DisplayName: 

    The name to use for display purposes.

    

  
  :type Description: string
  :param Description: 

    The updated description of the portfolio.

    

  
  :type ProviderName: string
  :param ProviderName: 

    The updated name of the portfolio provider.

    

  
  :type AddTags: list
  :param AddTags: 

    The tags to add.

    

  
    - *(dict) --* 

      Information about a tag. A tag is a key-value pair. Tags are propagated to the resources created when provisioning a product.

      

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

        The tag key.

        

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

        The value for this key.

        

      
    

  :type RemoveTags: list
  :param RemoveTags: 

    The tags to remove.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'PortfolioDetail': {
              'Id': 'string',
              'ARN': 'string',
              'DisplayName': 'string',
              'Description': 'string',
              'CreatedTime': datetime(2015, 1, 1),
              'ProviderName': 'string'
          },
          'Tags': [
              {
                  'Key': 'string',
                  'Value': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PortfolioDetail** *(dict) --* 

        Information about the portfolio.

        
        

        - **Id** *(string) --* 

          The portfolio identifier.

          
        

        - **ARN** *(string) --* 

          The ARN assigned to the portfolio.

          
        

        - **DisplayName** *(string) --* 

          The name to use for display purposes.

          
        

        - **Description** *(string) --* 

          The description of the portfolio.

          
        

        - **CreatedTime** *(datetime) --* 

          The UTC time stamp of the creation time.

          
        

        - **ProviderName** *(string) --* 

          The name of the portfolio provider.

          
    
      

      - **Tags** *(list) --* 

        Information about the tags associated with the portfolio.

        
        

        - *(dict) --* 

          Information about a tag. A tag is a key-value pair. Tags are propagated to the resources created when provisioning a product.

          
          

          - **Key** *(string) --* 

            The tag key.

            
          

          - **Value** *(string) --* 

            The value for this key.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`ServiceCatalog.Client.exceptions.InvalidParametersException`

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

  
  *   :py:class:`ServiceCatalog.Client.exceptions.LimitExceededException`

  
  *   :py:class:`ServiceCatalog.Client.exceptions.TagOptionNotMigratedException`

  