:doc:`Bedrock <../../bedrock>` / Client / get_foundation_model_availability

*********************************
get_foundation_model_availability
*********************************



.. py:method:: Bedrock.Client.get_foundation_model_availability(**kwargs)

  

  Get information about the Foundation model availability.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetFoundationModelAvailability>`_  


  **Request Syntax**
  ::

    response = client.get_foundation_model_availability(
        modelId='string'
    )
    
  :type modelId: string
  :param modelId: **[REQUIRED]** 

    The model Id of the foundation model.

    

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

    
    ::

      {
          'modelId': 'string',
          'agreementAvailability': {
              'status': 'AVAILABLE'|'PENDING'|'NOT_AVAILABLE'|'ERROR',
              'errorMessage': 'string'
          },
          'authorizationStatus': 'AUTHORIZED'|'NOT_AUTHORIZED',
          'entitlementAvailability': 'AVAILABLE'|'NOT_AVAILABLE',
          'regionAvailability': 'AVAILABLE'|'NOT_AVAILABLE'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **modelId** *(string) --* 

        The model Id of the foundation model.

        
      

      - **agreementAvailability** *(dict) --* 

        Agreement availability.

        
        

        - **status** *(string) --* 

          Status of the agreement.

          
        

        - **errorMessage** *(string) --* 

          Error message.

          
    
      

      - **authorizationStatus** *(string) --* 

        Authorization status.

        
      

      - **entitlementAvailability** *(string) --* 

        Entitlement availability.

        
      

      - **regionAvailability** *(string) --* 

        Region availability.

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

  
  *   :py:class:`Bedrock.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Bedrock.Client.exceptions.ValidationException`

  
  *   :py:class:`Bedrock.Client.exceptions.InternalServerException`

  
  *   :py:class:`Bedrock.Client.exceptions.ThrottlingException`

  