:doc:`Amplify <../../amplify>` / Client / generate_access_logs

********************
generate_access_logs
********************



.. py:method:: Amplify.Client.generate_access_logs(**kwargs)

  

  Returns the website access logs for a specific time range using a presigned URL.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GenerateAccessLogs>`_  


  **Request Syntax**
  ::

    response = client.generate_access_logs(
        startTime=datetime(2015, 1, 1),
        endTime=datetime(2015, 1, 1),
        domainName='string',
        appId='string'
    )
    
  :type startTime: datetime
  :param startTime: 

    The time at which the logs should start. The time range specified is inclusive of the start time.

    

  
  :type endTime: datetime
  :param endTime: 

    The time at which the logs should end. The time range specified is inclusive of the end time.

    

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

    The name of the domain.

    

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

    The unique ID for an Amplify app.

    

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

    
    ::

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

    

    - *(dict) --* 

      The result structure for the generate access logs request.

      
      

      - **logUrl** *(string) --* 

        The pre-signed URL for the requested access logs.

        
  
  **Exceptions**
  
  *   :py:class:`Amplify.Client.exceptions.NotFoundException`

  
  *   :py:class:`Amplify.Client.exceptions.BadRequestException`

  
  *   :py:class:`Amplify.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`Amplify.Client.exceptions.InternalFailureException`

  