:doc:`AgentsforBedrock <../../bedrock-agent>` / Client / prepare_flow

************
prepare_flow
************



.. py:method:: AgentsforBedrock.Client.prepare_flow(**kwargs)

  

  Prepares the ``DRAFT`` version of a flow so that it can be invoked. For more information, see `Test a flow in Amazon Bedrock <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html>`__ in the Amazon Bedrock User Guide.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/PrepareFlow>`_  


  **Request Syntax**
  ::

    response = client.prepare_flow(
        flowIdentifier='string'
    )
    
  :type flowIdentifier: string
  :param flowIdentifier: **[REQUIRED]** 

    The unique identifier of the flow.

    

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

    
    ::

      {
          'id': 'string',
          'status': 'Failed'|'Prepared'|'Preparing'|'NotPrepared'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **id** *(string) --* 

        The unique identifier of the flow.

        
      

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

        The status of the flow. When you submit this request, the status will be ``NotPrepared``. If preparation succeeds, the status becomes ``Prepared``. If it fails, the status becomes ``FAILED``.

        
  
  **Exceptions**
  
  *   :py:class:`AgentsforBedrock.Client.exceptions.ThrottlingException`

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

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

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

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

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

  
  *   :py:class:`AgentsforBedrock.Client.exceptions.ServiceQuotaExceededException`

  