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

*********************************
create_foundation_model_agreement
*********************************



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

  

  Request a model access agreement for the specified model.

  

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


  **Request Syntax**
  ::

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

    An offer token encapsulates the information for an offer.

    

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

    Model Id of the model for the access request.

    

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

    
    ::

      {
          'modelId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        Model Id of the model for the access request.

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

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

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

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

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

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

  