Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Returns the website access logs for a specific time range using a presigned URL.
Synopsis
- data GenerateAccessLogs = GenerateAccessLogs' {}
- newGenerateAccessLogs :: Text -> Text -> GenerateAccessLogs
- generateAccessLogs_endTime :: Lens' GenerateAccessLogs (Maybe UTCTime)
- generateAccessLogs_startTime :: Lens' GenerateAccessLogs (Maybe UTCTime)
- generateAccessLogs_domainName :: Lens' GenerateAccessLogs Text
- generateAccessLogs_appId :: Lens' GenerateAccessLogs Text
- data GenerateAccessLogsResponse = GenerateAccessLogsResponse' {
- logUrl :: Maybe Text
- httpStatus :: Int
- newGenerateAccessLogsResponse :: Int -> GenerateAccessLogsResponse
- generateAccessLogsResponse_logUrl :: Lens' GenerateAccessLogsResponse (Maybe Text)
- generateAccessLogsResponse_httpStatus :: Lens' GenerateAccessLogsResponse Int
Creating a Request
data GenerateAccessLogs Source #
The request structure for the generate access logs request.
See: newGenerateAccessLogs
smart constructor.
GenerateAccessLogs' | |
|
Instances
newGenerateAccessLogs Source #
Create a value of GenerateAccessLogs
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GenerateAccessLogs
, generateAccessLogs_endTime
- The time at which the logs should end. The time range specified is
inclusive of the end time.
GenerateAccessLogs
, generateAccessLogs_startTime
- The time at which the logs should start. The time range specified is
inclusive of the start time.
GenerateAccessLogs
, generateAccessLogs_domainName
- The name of the domain.
GenerateAccessLogs
, generateAccessLogs_appId
- The unique ID for an Amplify app.
Request Lenses
generateAccessLogs_endTime :: Lens' GenerateAccessLogs (Maybe UTCTime) Source #
The time at which the logs should end. The time range specified is inclusive of the end time.
generateAccessLogs_startTime :: Lens' GenerateAccessLogs (Maybe UTCTime) Source #
The time at which the logs should start. The time range specified is inclusive of the start time.
generateAccessLogs_domainName :: Lens' GenerateAccessLogs Text Source #
The name of the domain.
generateAccessLogs_appId :: Lens' GenerateAccessLogs Text Source #
The unique ID for an Amplify app.
Destructuring the Response
data GenerateAccessLogsResponse Source #
The result structure for the generate access logs request.
See: newGenerateAccessLogsResponse
smart constructor.
GenerateAccessLogsResponse' | |
|
Instances
newGenerateAccessLogsResponse Source #
Create a value of GenerateAccessLogsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GenerateAccessLogsResponse
, generateAccessLogsResponse_logUrl
- The pre-signed URL for the requested access logs.
$sel:httpStatus:GenerateAccessLogsResponse'
, generateAccessLogsResponse_httpStatus
- The response's http status code.
Response Lenses
generateAccessLogsResponse_logUrl :: Lens' GenerateAccessLogsResponse (Maybe Text) Source #
The pre-signed URL for the requested access logs.
generateAccessLogsResponse_httpStatus :: Lens' GenerateAccessLogsResponse Int Source #
The response's http status code.