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 a list of events for a specific database in Amazon Lightsail.
This operation returns paginated results.
Synopsis
- data GetRelationalDatabaseEvents = GetRelationalDatabaseEvents' {}
- newGetRelationalDatabaseEvents :: Text -> GetRelationalDatabaseEvents
- getRelationalDatabaseEvents_durationInMinutes :: Lens' GetRelationalDatabaseEvents (Maybe Int)
- getRelationalDatabaseEvents_pageToken :: Lens' GetRelationalDatabaseEvents (Maybe Text)
- getRelationalDatabaseEvents_relationalDatabaseName :: Lens' GetRelationalDatabaseEvents Text
- data GetRelationalDatabaseEventsResponse = GetRelationalDatabaseEventsResponse' {}
- newGetRelationalDatabaseEventsResponse :: Int -> GetRelationalDatabaseEventsResponse
- getRelationalDatabaseEventsResponse_nextPageToken :: Lens' GetRelationalDatabaseEventsResponse (Maybe Text)
- getRelationalDatabaseEventsResponse_relationalDatabaseEvents :: Lens' GetRelationalDatabaseEventsResponse (Maybe [RelationalDatabaseEvent])
- getRelationalDatabaseEventsResponse_httpStatus :: Lens' GetRelationalDatabaseEventsResponse Int
Creating a Request
data GetRelationalDatabaseEvents Source #
See: newGetRelationalDatabaseEvents
smart constructor.
GetRelationalDatabaseEvents' | |
|
Instances
newGetRelationalDatabaseEvents Source #
Create a value of GetRelationalDatabaseEvents
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:durationInMinutes:GetRelationalDatabaseEvents'
, getRelationalDatabaseEvents_durationInMinutes
- The number of minutes in the past from which to retrieve events. For
example, to get all events from the past 2 hours, enter 120.
Default: 60
The minimum is 1 and the maximum is 14 days (20160 minutes).
$sel:pageToken:GetRelationalDatabaseEvents'
, getRelationalDatabaseEvents_pageToken
- The token to advance to the next page of results from your request.
To get a page token, perform an initial GetRelationalDatabaseEvents
request. If your results are paginated, the response will return a next
page token that you can specify as the page token in a subsequent
request.
$sel:relationalDatabaseName:GetRelationalDatabaseEvents'
, getRelationalDatabaseEvents_relationalDatabaseName
- The name of the database from which to get events.
Request Lenses
getRelationalDatabaseEvents_durationInMinutes :: Lens' GetRelationalDatabaseEvents (Maybe Int) Source #
The number of minutes in the past from which to retrieve events. For example, to get all events from the past 2 hours, enter 120.
Default: 60
The minimum is 1 and the maximum is 14 days (20160 minutes).
getRelationalDatabaseEvents_pageToken :: Lens' GetRelationalDatabaseEvents (Maybe Text) Source #
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetRelationalDatabaseEvents
request. If your results are paginated, the response will return a next
page token that you can specify as the page token in a subsequent
request.
getRelationalDatabaseEvents_relationalDatabaseName :: Lens' GetRelationalDatabaseEvents Text Source #
The name of the database from which to get events.
Destructuring the Response
data GetRelationalDatabaseEventsResponse Source #
See: newGetRelationalDatabaseEventsResponse
smart constructor.
GetRelationalDatabaseEventsResponse' | |
|
Instances
newGetRelationalDatabaseEventsResponse Source #
Create a value of GetRelationalDatabaseEventsResponse
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:nextPageToken:GetRelationalDatabaseEventsResponse'
, getRelationalDatabaseEventsResponse_nextPageToken
- The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another
GetRelationalDatabaseEvents
request and specify the next page token
using the pageToken
parameter.
$sel:relationalDatabaseEvents:GetRelationalDatabaseEventsResponse'
, getRelationalDatabaseEventsResponse_relationalDatabaseEvents
- An object describing the result of your get relational database events
request.
$sel:httpStatus:GetRelationalDatabaseEventsResponse'
, getRelationalDatabaseEventsResponse_httpStatus
- The response's http status code.
Response Lenses
getRelationalDatabaseEventsResponse_nextPageToken :: Lens' GetRelationalDatabaseEventsResponse (Maybe Text) Source #
The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another
GetRelationalDatabaseEvents
request and specify the next page token
using the pageToken
parameter.
getRelationalDatabaseEventsResponse_relationalDatabaseEvents :: Lens' GetRelationalDatabaseEventsResponse (Maybe [RelationalDatabaseEvent]) Source #
An object describing the result of your get relational database events request.
getRelationalDatabaseEventsResponse_httpStatus :: Lens' GetRelationalDatabaseEventsResponse Int Source #
The response's http status code.