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

******************************
list_constraints_for_portfolio
******************************



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

  

  Lists the constraints for the specified portfolio and product.

  

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


  **Request Syntax**
  ::

    response = client.list_constraints_for_portfolio(
        AcceptLanguage='string',
        PortfolioId='string',
        ProductId='string',
        PageSize=123,
        PageToken='string'
    )
    
  :type AcceptLanguage: string
  :param AcceptLanguage: 

    The language code.

     

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

    

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

    The portfolio identifier.

    

  
  :type ProductId: string
  :param ProductId: 

    The product identifier.

    

  
  :type PageSize: integer
  :param PageSize: 

    The maximum number of items to return with this call.

    

  
  :type PageToken: string
  :param PageToken: 

    The page token for the next set of results. To retrieve the first set of results, use null.

    

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

    
    ::

      {
          'ConstraintDetails': [
              {
                  'ConstraintId': 'string',
                  'Type': 'string',
                  'Description': 'string',
                  'Owner': 'string',
                  'ProductId': 'string',
                  'PortfolioId': 'string'
              },
          ],
          'NextPageToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ConstraintDetails** *(list) --* 

        Information about the constraints.

        
        

        - *(dict) --* 

          Information about a constraint.

          
          

          - **ConstraintId** *(string) --* 

            The identifier of the constraint.

            
          

          - **Type** *(string) --* 

            The type of constraint.

             

            
            * ``LAUNCH``
             
            * ``NOTIFICATION``
             
            * STACKSET
             
            * ``TEMPLATE``
            

            
          

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

            The description of the constraint.

            
          

          - **Owner** *(string) --* 

            The owner of the constraint.

            
          

          - **ProductId** *(string) --* 

            The identifier of the product the constraint applies to. Note that a constraint applies to a specific instance of a product within a certain portfolio.

            
          

          - **PortfolioId** *(string) --* 

            The identifier of the portfolio the product resides in. The constraint applies only to the instance of the product that lives within this portfolio.

            
      
    
      

      - **NextPageToken** *(string) --* 

        The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

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

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

  