Lightsail.Client.get_relational_database_log_events(**kwargs)¶Returns a list of log events for a database in Amazon Lightsail.
See also: AWS API Documentation
Request Syntax
response = client.get_relational_database_log_events(
relationalDatabaseName='string',
logStreamName='string',
startTime=datetime(2015, 1, 1),
endTime=datetime(2015, 1, 1),
startFromHead=True|False,
pageToken='string'
)
[REQUIRED]
The name of your database for which to get log events.
[REQUIRED]
The name of the log stream.
Use the get relational database log streams operation to get a list of available log streams.
The start of the time interval from which to get log events.
Constraints:
1538424000 as the start time.The end of the time interval from which to get log events.
Constraints:
1538424000 as the end time.Parameter to specify if the log should start from head or tail. If true is specified, the log event starts from the head of the log. If false is specified, the log event starts from the tail of the log.
Note
For PostgreSQL, the default value of false is the only option available.
The token to advance to the next or previous page of results from your request.
To get a page token, perform an initial GetRelationalDatabaseLogEvents request. If your results are paginated, the response will return a next forward token and/or next backward token that you can specify as the page token in a subsequent request.
dict
Response Syntax
{
'resourceLogEvents': [
{
'createdAt': datetime(2015, 1, 1),
'message': 'string'
},
],
'nextBackwardToken': 'string',
'nextForwardToken': 'string'
}
Response Structure
(dict) --
resourceLogEvents (list) --
An object describing the result of your get relational database log events request.
(dict) --
Describes a database log event.
createdAt (datetime) --
The timestamp when the database log event was created.
message (string) --
The message of the database log event.
nextBackwardToken (string) --
A token used for advancing to the previous page of results from your get relational database log events request.
nextForwardToken (string) --
A token used for advancing to the next page of results from your get relational database log events request.
Exceptions
Lightsail.Client.exceptions.ServiceExceptionLightsail.Client.exceptions.InvalidInputExceptionLightsail.Client.exceptions.NotFoundExceptionLightsail.Client.exceptions.OperationFailureExceptionLightsail.Client.exceptions.AccessDeniedExceptionLightsail.Client.exceptions.AccountSetupInProgressExceptionLightsail.Client.exceptions.UnauthenticatedException