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

*******************
describe_constraint
*******************



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

  

  Gets information about the specified constraint.

  

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


  **Request Syntax**
  ::

    response = client.describe_constraint(
        AcceptLanguage='string',
        Id='string'
    )
    
  :type AcceptLanguage: string
  :param AcceptLanguage: 

    The language code.

     

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

    

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

    The identifier of the constraint.

    

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

    
    ::

      {
          'ConstraintDetail': {
              'ConstraintId': 'string',
              'Type': 'string',
              'Description': 'string',
              'Owner': 'string',
              'ProductId': 'string',
              'PortfolioId': 'string'
          },
          'ConstraintParameters': 'string',
          'Status': 'AVAILABLE'|'CREATING'|'FAILED'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ConstraintDetail** *(dict) --* 

        Information about the 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.

          
    
      

      - **ConstraintParameters** *(string) --* 

        The constraint parameters.

        
      

      - **Status** *(string) --* 

        The status of the current request.

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

  