Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns the website access logs for a specific time range using a presigned URL.
Synopsis
- data GenerateAccessLogs = GenerateAccessLogs' {}
- newGenerateAccessLogs :: Text -> Text -> GenerateAccessLogs
- generateAccessLogs_startTime :: Lens' GenerateAccessLogs (Maybe UTCTime)
- generateAccessLogs_endTime :: 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 #
:: Text | |
-> Text | |
-> GenerateAccessLogs |
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:
$sel:startTime:GenerateAccessLogs'
, generateAccessLogs_startTime
- The time at which the logs should start. The time range specified is
inclusive of the start time.
$sel:endTime:GenerateAccessLogs'
, generateAccessLogs_endTime
- The time at which the logs should end. The time range specified is
inclusive of the end time.
$sel:domainName:GenerateAccessLogs'
, generateAccessLogs_domainName
- The name of the domain.
$sel:appId:GenerateAccessLogs'
, generateAccessLogs_appId
- The unique ID for an Amplify app.
Request Lenses
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_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_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:
$sel:logUrl: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.