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

**********************
accept_portfolio_share
**********************



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

  

  Accepts an offer to share the specified portfolio.

  

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


  **Request Syntax**
  ::

    response = client.accept_portfolio_share(
        AcceptLanguage='string',
        PortfolioId='string',
        PortfolioShareType='IMPORTED'|'AWS_SERVICECATALOG'|'AWS_ORGANIZATIONS'
    )
    
  :type AcceptLanguage: string
  :param AcceptLanguage: 

    The language code.

     

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

    

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

    The portfolio identifier.

    

  
  :type PortfolioShareType: string
  :param PortfolioShareType: 

    The type of shared portfolios to accept. The default is to accept imported portfolios.

     

    
    * ``AWS_ORGANIZATIONS`` - Accept portfolios shared by the management account of your organization.
     
    * ``IMPORTED`` - Accept imported portfolios.
     
    * ``AWS_SERVICECATALOG`` - Not supported. (Throws ResourceNotFoundException.)
    

     

    For example, ``aws servicecatalog accept-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" --portfolio-share-type AWS_ORGANIZATIONS``

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ServiceCatalog.Client.exceptions.InvalidParametersException`

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

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

  