Amplify / Client / generate_access_logs

generate_access_logs#

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

Request Syntax

response = client.generate_access_logs(
    startTime=datetime(2015, 1, 1),
    endTime=datetime(2015, 1, 1),
    domainName='string',
    appId='string'
)
Parameters:
  • startTime (datetime) – The time at which the logs should start. The time range specified is inclusive of the start time.

  • endTime (datetime) – The time at which the logs should end. The time range specified is inclusive of the end time.

  • domainName (string) –

    [REQUIRED]

    The name of the domain.

  • appId (string) –

    [REQUIRED]

    The unique ID for an Amplify app.

Return type:

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