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

*****************
get_prompt_router
*****************



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

  

  Retrieves details about a prompt router.

  

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


  **Request Syntax**
  ::

    response = client.get_prompt_router(
        promptRouterArn='string'
    )
    
  :type promptRouterArn: string
  :param promptRouterArn: **[REQUIRED]** 

    The prompt router's ARN

    

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

    
    ::

      {
          'promptRouterName': 'string',
          'routingCriteria': {
              'responseQualityDifference': 123.0
          },
          'description': 'string',
          'createdAt': datetime(2015, 1, 1),
          'updatedAt': datetime(2015, 1, 1),
          'promptRouterArn': 'string',
          'models': [
              {
                  'modelArn': 'string'
              },
          ],
          'fallbackModel': {
              'modelArn': 'string'
          },
          'status': 'AVAILABLE',
          'type': 'custom'|'default'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **promptRouterName** *(string) --* 

        The router's name.

        
      

      - **routingCriteria** *(dict) --* 

        The router's routing criteria.

        
        

        - **responseQualityDifference** *(float) --* 

          The criteria's response quality difference.

          
    
      

      - **description** *(string) --* 

        The router's description.

        
      

      - **createdAt** *(datetime) --* 

        When the router was created.

        
      

      - **updatedAt** *(datetime) --* 

        When the router was updated.

        
      

      - **promptRouterArn** *(string) --* 

        The prompt router's ARN

        
      

      - **models** *(list) --* 

        The router's models.

        
        

        - *(dict) --* 

          The target model for a prompt router.

          
          

          - **modelArn** *(string) --* 

            The target model's ARN.

            
      
    
      

      - **fallbackModel** *(dict) --* 

        The router's fallback model.

        
        

        - **modelArn** *(string) --* 

          The target model's ARN.

          
    
      

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

        The router's status.

        
      

      - **type** *(string) --* 

        The router's type.

        
  
  **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`

  