:doc:`Connect <../../connect>` / Client / get_prompt_file

***************
get_prompt_file
***************



.. py:method:: Connect.Client.get_prompt_file(**kwargs)

  

  Gets the prompt file.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetPromptFile>`_  


  **Request Syntax**
  ::

    response = client.get_prompt_file(
        InstanceId='string',
        PromptId='string'
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

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

    A unique identifier for the prompt.

    

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

    
    ::

      {
          'PromptPresignedUrl': 'string',
          'LastModifiedTime': datetime(2015, 1, 1),
          'LastModifiedRegion': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PromptPresignedUrl** *(string) --* 

        A generated URL to the prompt that can be given to an unauthorized user so they can access the prompt in S3.

        
      

      - **LastModifiedTime** *(datetime) --* 

        The timestamp when this resource was last modified.

        
      

      - **LastModifiedRegion** *(string) --* 

        The Amazon Web Services Region where this resource was last modified.

        
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

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

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

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  