{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Lightsail.GetRelationalDatabaseLogEvents
-- 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)
--
-- Returns a list of log events for a database in Amazon Lightsail.
module Amazonka.Lightsail.GetRelationalDatabaseLogEvents
  ( -- * Creating a Request
    GetRelationalDatabaseLogEvents (..),
    newGetRelationalDatabaseLogEvents,

    -- * Request Lenses
    getRelationalDatabaseLogEvents_startTime,
    getRelationalDatabaseLogEvents_startFromHead,
    getRelationalDatabaseLogEvents_endTime,
    getRelationalDatabaseLogEvents_pageToken,
    getRelationalDatabaseLogEvents_relationalDatabaseName,
    getRelationalDatabaseLogEvents_logStreamName,

    -- * Destructuring the Response
    GetRelationalDatabaseLogEventsResponse (..),
    newGetRelationalDatabaseLogEventsResponse,

    -- * Response Lenses
    getRelationalDatabaseLogEventsResponse_nextBackwardToken,
    getRelationalDatabaseLogEventsResponse_resourceLogEvents,
    getRelationalDatabaseLogEventsResponse_nextForwardToken,
    getRelationalDatabaseLogEventsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Lightsail.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newGetRelationalDatabaseLogEvents' smart constructor.
data GetRelationalDatabaseLogEvents = GetRelationalDatabaseLogEvents'
  { -- | The start of the time interval from which to get log events.
    --
    -- Constraints:
    --
    -- -   Specified in Coordinated Universal Time (UTC).
    --
    -- -   Specified in the Unix time format.
    --
    --     For example, if you wish to use a start time of October 1, 2018, at
    --     8 PM UTC, then you input @1538424000@ as the start time.
    GetRelationalDatabaseLogEvents -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
    -- | 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.
    --
    -- For PostgreSQL, the default value of @false@ is the only option
    -- available.
    GetRelationalDatabaseLogEvents -> Maybe Bool
startFromHead :: Prelude.Maybe Prelude.Bool,
    -- | The end of the time interval from which to get log events.
    --
    -- Constraints:
    --
    -- -   Specified in Coordinated Universal Time (UTC).
    --
    -- -   Specified in the Unix time format.
    --
    --     For example, if you wish to use an end time of October 1, 2018, at 8
    --     PM UTC, then you input @1538424000@ as the end time.
    GetRelationalDatabaseLogEvents -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
    -- | 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.
    GetRelationalDatabaseLogEvents -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text,
    -- | The name of your database for which to get log events.
    GetRelationalDatabaseLogEvents -> Text
relationalDatabaseName :: Prelude.Text,
    -- | The name of the log stream.
    --
    -- Use the @get relational database log streams@ operation to get a list of
    -- available log streams.
    GetRelationalDatabaseLogEvents -> Text
logStreamName :: Prelude.Text
  }
  deriving (GetRelationalDatabaseLogEvents
-> GetRelationalDatabaseLogEvents -> Bool
(GetRelationalDatabaseLogEvents
 -> GetRelationalDatabaseLogEvents -> Bool)
-> (GetRelationalDatabaseLogEvents
    -> GetRelationalDatabaseLogEvents -> Bool)
-> Eq GetRelationalDatabaseLogEvents
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRelationalDatabaseLogEvents
-> GetRelationalDatabaseLogEvents -> Bool
$c/= :: GetRelationalDatabaseLogEvents
-> GetRelationalDatabaseLogEvents -> Bool
== :: GetRelationalDatabaseLogEvents
-> GetRelationalDatabaseLogEvents -> Bool
$c== :: GetRelationalDatabaseLogEvents
-> GetRelationalDatabaseLogEvents -> Bool
Prelude.Eq, ReadPrec [GetRelationalDatabaseLogEvents]
ReadPrec GetRelationalDatabaseLogEvents
Int -> ReadS GetRelationalDatabaseLogEvents
ReadS [GetRelationalDatabaseLogEvents]
(Int -> ReadS GetRelationalDatabaseLogEvents)
-> ReadS [GetRelationalDatabaseLogEvents]
-> ReadPrec GetRelationalDatabaseLogEvents
-> ReadPrec [GetRelationalDatabaseLogEvents]
-> Read GetRelationalDatabaseLogEvents
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRelationalDatabaseLogEvents]
$creadListPrec :: ReadPrec [GetRelationalDatabaseLogEvents]
readPrec :: ReadPrec GetRelationalDatabaseLogEvents
$creadPrec :: ReadPrec GetRelationalDatabaseLogEvents
readList :: ReadS [GetRelationalDatabaseLogEvents]
$creadList :: ReadS [GetRelationalDatabaseLogEvents]
readsPrec :: Int -> ReadS GetRelationalDatabaseLogEvents
$creadsPrec :: Int -> ReadS GetRelationalDatabaseLogEvents
Prelude.Read, Int -> GetRelationalDatabaseLogEvents -> ShowS
[GetRelationalDatabaseLogEvents] -> ShowS
GetRelationalDatabaseLogEvents -> String
(Int -> GetRelationalDatabaseLogEvents -> ShowS)
-> (GetRelationalDatabaseLogEvents -> String)
-> ([GetRelationalDatabaseLogEvents] -> ShowS)
-> Show GetRelationalDatabaseLogEvents
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRelationalDatabaseLogEvents] -> ShowS
$cshowList :: [GetRelationalDatabaseLogEvents] -> ShowS
show :: GetRelationalDatabaseLogEvents -> String
$cshow :: GetRelationalDatabaseLogEvents -> String
showsPrec :: Int -> GetRelationalDatabaseLogEvents -> ShowS
$cshowsPrec :: Int -> GetRelationalDatabaseLogEvents -> ShowS
Prelude.Show, (forall x.
 GetRelationalDatabaseLogEvents
 -> Rep GetRelationalDatabaseLogEvents x)
-> (forall x.
    Rep GetRelationalDatabaseLogEvents x
    -> GetRelationalDatabaseLogEvents)
-> Generic GetRelationalDatabaseLogEvents
forall x.
Rep GetRelationalDatabaseLogEvents x
-> GetRelationalDatabaseLogEvents
forall x.
GetRelationalDatabaseLogEvents
-> Rep GetRelationalDatabaseLogEvents x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRelationalDatabaseLogEvents x
-> GetRelationalDatabaseLogEvents
$cfrom :: forall x.
GetRelationalDatabaseLogEvents
-> Rep GetRelationalDatabaseLogEvents x
Prelude.Generic)

-- |
-- Create a value of 'GetRelationalDatabaseLogEvents' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'startTime', 'getRelationalDatabaseLogEvents_startTime' - The start of the time interval from which to get log events.
--
-- Constraints:
--
-- -   Specified in Coordinated Universal Time (UTC).
--
-- -   Specified in the Unix time format.
--
--     For example, if you wish to use a start time of October 1, 2018, at
--     8 PM UTC, then you input @1538424000@ as the start time.
--
-- 'startFromHead', 'getRelationalDatabaseLogEvents_startFromHead' - 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.
--
-- For PostgreSQL, the default value of @false@ is the only option
-- available.
--
-- 'endTime', 'getRelationalDatabaseLogEvents_endTime' - The end of the time interval from which to get log events.
--
-- Constraints:
--
-- -   Specified in Coordinated Universal Time (UTC).
--
-- -   Specified in the Unix time format.
--
--     For example, if you wish to use an end time of October 1, 2018, at 8
--     PM UTC, then you input @1538424000@ as the end time.
--
-- 'pageToken', 'getRelationalDatabaseLogEvents_pageToken' - 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.
--
-- 'relationalDatabaseName', 'getRelationalDatabaseLogEvents_relationalDatabaseName' - The name of your database for which to get log events.
--
-- 'logStreamName', 'getRelationalDatabaseLogEvents_logStreamName' - The name of the log stream.
--
-- Use the @get relational database log streams@ operation to get a list of
-- available log streams.
newGetRelationalDatabaseLogEvents ::
  -- | 'relationalDatabaseName'
  Prelude.Text ->
  -- | 'logStreamName'
  Prelude.Text ->
  GetRelationalDatabaseLogEvents
newGetRelationalDatabaseLogEvents :: Text -> Text -> GetRelationalDatabaseLogEvents
newGetRelationalDatabaseLogEvents
  Text
pRelationalDatabaseName_
  Text
pLogStreamName_ =
    GetRelationalDatabaseLogEvents' :: Maybe POSIX
-> Maybe Bool
-> Maybe POSIX
-> Maybe Text
-> Text
-> Text
-> GetRelationalDatabaseLogEvents
GetRelationalDatabaseLogEvents'
      { $sel:startTime:GetRelationalDatabaseLogEvents' :: Maybe POSIX
startTime =
          Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:startFromHead:GetRelationalDatabaseLogEvents' :: Maybe Bool
startFromHead = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:endTime:GetRelationalDatabaseLogEvents' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:pageToken:GetRelationalDatabaseLogEvents' :: Maybe Text
pageToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:relationalDatabaseName:GetRelationalDatabaseLogEvents' :: Text
relationalDatabaseName =
          Text
pRelationalDatabaseName_,
        $sel:logStreamName:GetRelationalDatabaseLogEvents' :: Text
logStreamName = Text
pLogStreamName_
      }

-- | The start of the time interval from which to get log events.
--
-- Constraints:
--
-- -   Specified in Coordinated Universal Time (UTC).
--
-- -   Specified in the Unix time format.
--
--     For example, if you wish to use a start time of October 1, 2018, at
--     8 PM UTC, then you input @1538424000@ as the start time.
getRelationalDatabaseLogEvents_startTime :: Lens.Lens' GetRelationalDatabaseLogEvents (Prelude.Maybe Prelude.UTCTime)
getRelationalDatabaseLogEvents_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetRelationalDatabaseLogEvents
-> f GetRelationalDatabaseLogEvents
getRelationalDatabaseLogEvents_startTime = (GetRelationalDatabaseLogEvents -> Maybe POSIX)
-> (GetRelationalDatabaseLogEvents
    -> Maybe POSIX -> GetRelationalDatabaseLogEvents)
-> Lens
     GetRelationalDatabaseLogEvents
     GetRelationalDatabaseLogEvents
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseLogEvents' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: GetRelationalDatabaseLogEvents
s@GetRelationalDatabaseLogEvents' {} Maybe POSIX
a -> GetRelationalDatabaseLogEvents
s {$sel:startTime:GetRelationalDatabaseLogEvents' :: Maybe POSIX
startTime = Maybe POSIX
a} :: GetRelationalDatabaseLogEvents) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetRelationalDatabaseLogEvents
 -> f GetRelationalDatabaseLogEvents)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetRelationalDatabaseLogEvents
-> f GetRelationalDatabaseLogEvents
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._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.
--
-- For PostgreSQL, the default value of @false@ is the only option
-- available.
getRelationalDatabaseLogEvents_startFromHead :: Lens.Lens' GetRelationalDatabaseLogEvents (Prelude.Maybe Prelude.Bool)
getRelationalDatabaseLogEvents_startFromHead :: (Maybe Bool -> f (Maybe Bool))
-> GetRelationalDatabaseLogEvents
-> f GetRelationalDatabaseLogEvents
getRelationalDatabaseLogEvents_startFromHead = (GetRelationalDatabaseLogEvents -> Maybe Bool)
-> (GetRelationalDatabaseLogEvents
    -> Maybe Bool -> GetRelationalDatabaseLogEvents)
-> Lens
     GetRelationalDatabaseLogEvents
     GetRelationalDatabaseLogEvents
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseLogEvents' {Maybe Bool
startFromHead :: Maybe Bool
$sel:startFromHead:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Maybe Bool
startFromHead} -> Maybe Bool
startFromHead) (\s :: GetRelationalDatabaseLogEvents
s@GetRelationalDatabaseLogEvents' {} Maybe Bool
a -> GetRelationalDatabaseLogEvents
s {$sel:startFromHead:GetRelationalDatabaseLogEvents' :: Maybe Bool
startFromHead = Maybe Bool
a} :: GetRelationalDatabaseLogEvents)

-- | The end of the time interval from which to get log events.
--
-- Constraints:
--
-- -   Specified in Coordinated Universal Time (UTC).
--
-- -   Specified in the Unix time format.
--
--     For example, if you wish to use an end time of October 1, 2018, at 8
--     PM UTC, then you input @1538424000@ as the end time.
getRelationalDatabaseLogEvents_endTime :: Lens.Lens' GetRelationalDatabaseLogEvents (Prelude.Maybe Prelude.UTCTime)
getRelationalDatabaseLogEvents_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetRelationalDatabaseLogEvents
-> f GetRelationalDatabaseLogEvents
getRelationalDatabaseLogEvents_endTime = (GetRelationalDatabaseLogEvents -> Maybe POSIX)
-> (GetRelationalDatabaseLogEvents
    -> Maybe POSIX -> GetRelationalDatabaseLogEvents)
-> Lens
     GetRelationalDatabaseLogEvents
     GetRelationalDatabaseLogEvents
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseLogEvents' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: GetRelationalDatabaseLogEvents
s@GetRelationalDatabaseLogEvents' {} Maybe POSIX
a -> GetRelationalDatabaseLogEvents
s {$sel:endTime:GetRelationalDatabaseLogEvents' :: Maybe POSIX
endTime = Maybe POSIX
a} :: GetRelationalDatabaseLogEvents) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetRelationalDatabaseLogEvents
 -> f GetRelationalDatabaseLogEvents)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetRelationalDatabaseLogEvents
-> f GetRelationalDatabaseLogEvents
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | 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.
getRelationalDatabaseLogEvents_pageToken :: Lens.Lens' GetRelationalDatabaseLogEvents (Prelude.Maybe Prelude.Text)
getRelationalDatabaseLogEvents_pageToken :: (Maybe Text -> f (Maybe Text))
-> GetRelationalDatabaseLogEvents
-> f GetRelationalDatabaseLogEvents
getRelationalDatabaseLogEvents_pageToken = (GetRelationalDatabaseLogEvents -> Maybe Text)
-> (GetRelationalDatabaseLogEvents
    -> Maybe Text -> GetRelationalDatabaseLogEvents)
-> Lens
     GetRelationalDatabaseLogEvents
     GetRelationalDatabaseLogEvents
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseLogEvents' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: GetRelationalDatabaseLogEvents
s@GetRelationalDatabaseLogEvents' {} Maybe Text
a -> GetRelationalDatabaseLogEvents
s {$sel:pageToken:GetRelationalDatabaseLogEvents' :: Maybe Text
pageToken = Maybe Text
a} :: GetRelationalDatabaseLogEvents)

-- | The name of your database for which to get log events.
getRelationalDatabaseLogEvents_relationalDatabaseName :: Lens.Lens' GetRelationalDatabaseLogEvents Prelude.Text
getRelationalDatabaseLogEvents_relationalDatabaseName :: (Text -> f Text)
-> GetRelationalDatabaseLogEvents
-> f GetRelationalDatabaseLogEvents
getRelationalDatabaseLogEvents_relationalDatabaseName = (GetRelationalDatabaseLogEvents -> Text)
-> (GetRelationalDatabaseLogEvents
    -> Text -> GetRelationalDatabaseLogEvents)
-> Lens
     GetRelationalDatabaseLogEvents
     GetRelationalDatabaseLogEvents
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseLogEvents' {Text
relationalDatabaseName :: Text
$sel:relationalDatabaseName:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Text
relationalDatabaseName} -> Text
relationalDatabaseName) (\s :: GetRelationalDatabaseLogEvents
s@GetRelationalDatabaseLogEvents' {} Text
a -> GetRelationalDatabaseLogEvents
s {$sel:relationalDatabaseName:GetRelationalDatabaseLogEvents' :: Text
relationalDatabaseName = Text
a} :: GetRelationalDatabaseLogEvents)

-- | The name of the log stream.
--
-- Use the @get relational database log streams@ operation to get a list of
-- available log streams.
getRelationalDatabaseLogEvents_logStreamName :: Lens.Lens' GetRelationalDatabaseLogEvents Prelude.Text
getRelationalDatabaseLogEvents_logStreamName :: (Text -> f Text)
-> GetRelationalDatabaseLogEvents
-> f GetRelationalDatabaseLogEvents
getRelationalDatabaseLogEvents_logStreamName = (GetRelationalDatabaseLogEvents -> Text)
-> (GetRelationalDatabaseLogEvents
    -> Text -> GetRelationalDatabaseLogEvents)
-> Lens
     GetRelationalDatabaseLogEvents
     GetRelationalDatabaseLogEvents
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseLogEvents' {Text
logStreamName :: Text
$sel:logStreamName:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Text
logStreamName} -> Text
logStreamName) (\s :: GetRelationalDatabaseLogEvents
s@GetRelationalDatabaseLogEvents' {} Text
a -> GetRelationalDatabaseLogEvents
s {$sel:logStreamName:GetRelationalDatabaseLogEvents' :: Text
logStreamName = Text
a} :: GetRelationalDatabaseLogEvents)

instance
  Core.AWSRequest
    GetRelationalDatabaseLogEvents
  where
  type
    AWSResponse GetRelationalDatabaseLogEvents =
      GetRelationalDatabaseLogEventsResponse
  request :: GetRelationalDatabaseLogEvents
-> Request GetRelationalDatabaseLogEvents
request = Service
-> GetRelationalDatabaseLogEvents
-> Request GetRelationalDatabaseLogEvents
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetRelationalDatabaseLogEvents
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetRelationalDatabaseLogEvents)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetRelationalDatabaseLogEvents))
-> Logger
-> Service
-> Proxy GetRelationalDatabaseLogEvents
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetRelationalDatabaseLogEvents)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe [LogEvent]
-> Maybe Text
-> Int
-> GetRelationalDatabaseLogEventsResponse
GetRelationalDatabaseLogEventsResponse'
            (Maybe Text
 -> Maybe [LogEvent]
 -> Maybe Text
 -> Int
 -> GetRelationalDatabaseLogEventsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [LogEvent]
      -> Maybe Text -> Int -> GetRelationalDatabaseLogEventsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nextBackwardToken")
            Either
  String
  (Maybe [LogEvent]
   -> Maybe Text -> Int -> GetRelationalDatabaseLogEventsResponse)
-> Either String (Maybe [LogEvent])
-> Either
     String
     (Maybe Text -> Int -> GetRelationalDatabaseLogEventsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [LogEvent]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"resourceLogEvents"
                            Either String (Maybe (Maybe [LogEvent]))
-> Maybe [LogEvent] -> Either String (Maybe [LogEvent])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LogEvent]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe Text -> Int -> GetRelationalDatabaseLogEventsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetRelationalDatabaseLogEventsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nextForwardToken")
            Either String (Int -> GetRelationalDatabaseLogEventsResponse)
-> Either String Int
-> Either String GetRelationalDatabaseLogEventsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    GetRelationalDatabaseLogEvents

instance
  Prelude.NFData
    GetRelationalDatabaseLogEvents

instance
  Core.ToHeaders
    GetRelationalDatabaseLogEvents
  where
  toHeaders :: GetRelationalDatabaseLogEvents -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> GetRelationalDatabaseLogEvents -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"Lightsail_20161128.GetRelationalDatabaseLogEvents" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON GetRelationalDatabaseLogEvents where
  toJSON :: GetRelationalDatabaseLogEvents -> Value
toJSON GetRelationalDatabaseLogEvents' {Maybe Bool
Maybe Text
Maybe POSIX
Text
logStreamName :: Text
relationalDatabaseName :: Text
pageToken :: Maybe Text
endTime :: Maybe POSIX
startFromHead :: Maybe Bool
startTime :: Maybe POSIX
$sel:logStreamName:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Text
$sel:relationalDatabaseName:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Text
$sel:pageToken:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Maybe Text
$sel:endTime:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Maybe POSIX
$sel:startFromHead:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Maybe Bool
$sel:startTime:GetRelationalDatabaseLogEvents' :: GetRelationalDatabaseLogEvents -> Maybe POSIX
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"startTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
startTime,
            (Text
"startFromHead" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
startFromHead,
            (Text
"endTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
endTime,
            (Text
"pageToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pageToken,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"relationalDatabaseName"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
relationalDatabaseName
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"logStreamName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
logStreamName)
          ]
      )

instance Core.ToPath GetRelationalDatabaseLogEvents where
  toPath :: GetRelationalDatabaseLogEvents -> ByteString
toPath = ByteString -> GetRelationalDatabaseLogEvents -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery GetRelationalDatabaseLogEvents where
  toQuery :: GetRelationalDatabaseLogEvents -> QueryString
toQuery = QueryString -> GetRelationalDatabaseLogEvents -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newGetRelationalDatabaseLogEventsResponse' smart constructor.
data GetRelationalDatabaseLogEventsResponse = GetRelationalDatabaseLogEventsResponse'
  { -- | A token used for advancing to the previous page of results from your get
    -- relational database log events request.
    GetRelationalDatabaseLogEventsResponse -> Maybe Text
nextBackwardToken :: Prelude.Maybe Prelude.Text,
    -- | An object describing the result of your get relational database log
    -- events request.
    GetRelationalDatabaseLogEventsResponse -> Maybe [LogEvent]
resourceLogEvents :: Prelude.Maybe [LogEvent],
    -- | A token used for advancing to the next page of results from your get
    -- relational database log events request.
    GetRelationalDatabaseLogEventsResponse -> Maybe Text
nextForwardToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetRelationalDatabaseLogEventsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetRelationalDatabaseLogEventsResponse
-> GetRelationalDatabaseLogEventsResponse -> Bool
(GetRelationalDatabaseLogEventsResponse
 -> GetRelationalDatabaseLogEventsResponse -> Bool)
-> (GetRelationalDatabaseLogEventsResponse
    -> GetRelationalDatabaseLogEventsResponse -> Bool)
-> Eq GetRelationalDatabaseLogEventsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRelationalDatabaseLogEventsResponse
-> GetRelationalDatabaseLogEventsResponse -> Bool
$c/= :: GetRelationalDatabaseLogEventsResponse
-> GetRelationalDatabaseLogEventsResponse -> Bool
== :: GetRelationalDatabaseLogEventsResponse
-> GetRelationalDatabaseLogEventsResponse -> Bool
$c== :: GetRelationalDatabaseLogEventsResponse
-> GetRelationalDatabaseLogEventsResponse -> Bool
Prelude.Eq, ReadPrec [GetRelationalDatabaseLogEventsResponse]
ReadPrec GetRelationalDatabaseLogEventsResponse
Int -> ReadS GetRelationalDatabaseLogEventsResponse
ReadS [GetRelationalDatabaseLogEventsResponse]
(Int -> ReadS GetRelationalDatabaseLogEventsResponse)
-> ReadS [GetRelationalDatabaseLogEventsResponse]
-> ReadPrec GetRelationalDatabaseLogEventsResponse
-> ReadPrec [GetRelationalDatabaseLogEventsResponse]
-> Read GetRelationalDatabaseLogEventsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRelationalDatabaseLogEventsResponse]
$creadListPrec :: ReadPrec [GetRelationalDatabaseLogEventsResponse]
readPrec :: ReadPrec GetRelationalDatabaseLogEventsResponse
$creadPrec :: ReadPrec GetRelationalDatabaseLogEventsResponse
readList :: ReadS [GetRelationalDatabaseLogEventsResponse]
$creadList :: ReadS [GetRelationalDatabaseLogEventsResponse]
readsPrec :: Int -> ReadS GetRelationalDatabaseLogEventsResponse
$creadsPrec :: Int -> ReadS GetRelationalDatabaseLogEventsResponse
Prelude.Read, Int -> GetRelationalDatabaseLogEventsResponse -> ShowS
[GetRelationalDatabaseLogEventsResponse] -> ShowS
GetRelationalDatabaseLogEventsResponse -> String
(Int -> GetRelationalDatabaseLogEventsResponse -> ShowS)
-> (GetRelationalDatabaseLogEventsResponse -> String)
-> ([GetRelationalDatabaseLogEventsResponse] -> ShowS)
-> Show GetRelationalDatabaseLogEventsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRelationalDatabaseLogEventsResponse] -> ShowS
$cshowList :: [GetRelationalDatabaseLogEventsResponse] -> ShowS
show :: GetRelationalDatabaseLogEventsResponse -> String
$cshow :: GetRelationalDatabaseLogEventsResponse -> String
showsPrec :: Int -> GetRelationalDatabaseLogEventsResponse -> ShowS
$cshowsPrec :: Int -> GetRelationalDatabaseLogEventsResponse -> ShowS
Prelude.Show, (forall x.
 GetRelationalDatabaseLogEventsResponse
 -> Rep GetRelationalDatabaseLogEventsResponse x)
-> (forall x.
    Rep GetRelationalDatabaseLogEventsResponse x
    -> GetRelationalDatabaseLogEventsResponse)
-> Generic GetRelationalDatabaseLogEventsResponse
forall x.
Rep GetRelationalDatabaseLogEventsResponse x
-> GetRelationalDatabaseLogEventsResponse
forall x.
GetRelationalDatabaseLogEventsResponse
-> Rep GetRelationalDatabaseLogEventsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRelationalDatabaseLogEventsResponse x
-> GetRelationalDatabaseLogEventsResponse
$cfrom :: forall x.
GetRelationalDatabaseLogEventsResponse
-> Rep GetRelationalDatabaseLogEventsResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetRelationalDatabaseLogEventsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextBackwardToken', 'getRelationalDatabaseLogEventsResponse_nextBackwardToken' - A token used for advancing to the previous page of results from your get
-- relational database log events request.
--
-- 'resourceLogEvents', 'getRelationalDatabaseLogEventsResponse_resourceLogEvents' - An object describing the result of your get relational database log
-- events request.
--
-- 'nextForwardToken', 'getRelationalDatabaseLogEventsResponse_nextForwardToken' - A token used for advancing to the next page of results from your get
-- relational database log events request.
--
-- 'httpStatus', 'getRelationalDatabaseLogEventsResponse_httpStatus' - The response's http status code.
newGetRelationalDatabaseLogEventsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetRelationalDatabaseLogEventsResponse
newGetRelationalDatabaseLogEventsResponse :: Int -> GetRelationalDatabaseLogEventsResponse
newGetRelationalDatabaseLogEventsResponse
  Int
pHttpStatus_ =
    GetRelationalDatabaseLogEventsResponse' :: Maybe Text
-> Maybe [LogEvent]
-> Maybe Text
-> Int
-> GetRelationalDatabaseLogEventsResponse
GetRelationalDatabaseLogEventsResponse'
      { $sel:nextBackwardToken:GetRelationalDatabaseLogEventsResponse' :: Maybe Text
nextBackwardToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:resourceLogEvents:GetRelationalDatabaseLogEventsResponse' :: Maybe [LogEvent]
resourceLogEvents = Maybe [LogEvent]
forall a. Maybe a
Prelude.Nothing,
        $sel:nextForwardToken:GetRelationalDatabaseLogEventsResponse' :: Maybe Text
nextForwardToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetRelationalDatabaseLogEventsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A token used for advancing to the previous page of results from your get
-- relational database log events request.
getRelationalDatabaseLogEventsResponse_nextBackwardToken :: Lens.Lens' GetRelationalDatabaseLogEventsResponse (Prelude.Maybe Prelude.Text)
getRelationalDatabaseLogEventsResponse_nextBackwardToken :: (Maybe Text -> f (Maybe Text))
-> GetRelationalDatabaseLogEventsResponse
-> f GetRelationalDatabaseLogEventsResponse
getRelationalDatabaseLogEventsResponse_nextBackwardToken = (GetRelationalDatabaseLogEventsResponse -> Maybe Text)
-> (GetRelationalDatabaseLogEventsResponse
    -> Maybe Text -> GetRelationalDatabaseLogEventsResponse)
-> Lens
     GetRelationalDatabaseLogEventsResponse
     GetRelationalDatabaseLogEventsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseLogEventsResponse' {Maybe Text
nextBackwardToken :: Maybe Text
$sel:nextBackwardToken:GetRelationalDatabaseLogEventsResponse' :: GetRelationalDatabaseLogEventsResponse -> Maybe Text
nextBackwardToken} -> Maybe Text
nextBackwardToken) (\s :: GetRelationalDatabaseLogEventsResponse
s@GetRelationalDatabaseLogEventsResponse' {} Maybe Text
a -> GetRelationalDatabaseLogEventsResponse
s {$sel:nextBackwardToken:GetRelationalDatabaseLogEventsResponse' :: Maybe Text
nextBackwardToken = Maybe Text
a} :: GetRelationalDatabaseLogEventsResponse)

-- | An object describing the result of your get relational database log
-- events request.
getRelationalDatabaseLogEventsResponse_resourceLogEvents :: Lens.Lens' GetRelationalDatabaseLogEventsResponse (Prelude.Maybe [LogEvent])
getRelationalDatabaseLogEventsResponse_resourceLogEvents :: (Maybe [LogEvent] -> f (Maybe [LogEvent]))
-> GetRelationalDatabaseLogEventsResponse
-> f GetRelationalDatabaseLogEventsResponse
getRelationalDatabaseLogEventsResponse_resourceLogEvents = (GetRelationalDatabaseLogEventsResponse -> Maybe [LogEvent])
-> (GetRelationalDatabaseLogEventsResponse
    -> Maybe [LogEvent] -> GetRelationalDatabaseLogEventsResponse)
-> Lens
     GetRelationalDatabaseLogEventsResponse
     GetRelationalDatabaseLogEventsResponse
     (Maybe [LogEvent])
     (Maybe [LogEvent])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseLogEventsResponse' {Maybe [LogEvent]
resourceLogEvents :: Maybe [LogEvent]
$sel:resourceLogEvents:GetRelationalDatabaseLogEventsResponse' :: GetRelationalDatabaseLogEventsResponse -> Maybe [LogEvent]
resourceLogEvents} -> Maybe [LogEvent]
resourceLogEvents) (\s :: GetRelationalDatabaseLogEventsResponse
s@GetRelationalDatabaseLogEventsResponse' {} Maybe [LogEvent]
a -> GetRelationalDatabaseLogEventsResponse
s {$sel:resourceLogEvents:GetRelationalDatabaseLogEventsResponse' :: Maybe [LogEvent]
resourceLogEvents = Maybe [LogEvent]
a} :: GetRelationalDatabaseLogEventsResponse) ((Maybe [LogEvent] -> f (Maybe [LogEvent]))
 -> GetRelationalDatabaseLogEventsResponse
 -> f GetRelationalDatabaseLogEventsResponse)
-> ((Maybe [LogEvent] -> f (Maybe [LogEvent]))
    -> Maybe [LogEvent] -> f (Maybe [LogEvent]))
-> (Maybe [LogEvent] -> f (Maybe [LogEvent]))
-> GetRelationalDatabaseLogEventsResponse
-> f GetRelationalDatabaseLogEventsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [LogEvent] [LogEvent] [LogEvent] [LogEvent]
-> Iso
     (Maybe [LogEvent])
     (Maybe [LogEvent])
     (Maybe [LogEvent])
     (Maybe [LogEvent])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [LogEvent] [LogEvent] [LogEvent] [LogEvent]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A token used for advancing to the next page of results from your get
-- relational database log events request.
getRelationalDatabaseLogEventsResponse_nextForwardToken :: Lens.Lens' GetRelationalDatabaseLogEventsResponse (Prelude.Maybe Prelude.Text)
getRelationalDatabaseLogEventsResponse_nextForwardToken :: (Maybe Text -> f (Maybe Text))
-> GetRelationalDatabaseLogEventsResponse
-> f GetRelationalDatabaseLogEventsResponse
getRelationalDatabaseLogEventsResponse_nextForwardToken = (GetRelationalDatabaseLogEventsResponse -> Maybe Text)
-> (GetRelationalDatabaseLogEventsResponse
    -> Maybe Text -> GetRelationalDatabaseLogEventsResponse)
-> Lens
     GetRelationalDatabaseLogEventsResponse
     GetRelationalDatabaseLogEventsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseLogEventsResponse' {Maybe Text
nextForwardToken :: Maybe Text
$sel:nextForwardToken:GetRelationalDatabaseLogEventsResponse' :: GetRelationalDatabaseLogEventsResponse -> Maybe Text
nextForwardToken} -> Maybe Text
nextForwardToken) (\s :: GetRelationalDatabaseLogEventsResponse
s@GetRelationalDatabaseLogEventsResponse' {} Maybe Text
a -> GetRelationalDatabaseLogEventsResponse
s {$sel:nextForwardToken:GetRelationalDatabaseLogEventsResponse' :: Maybe Text
nextForwardToken = Maybe Text
a} :: GetRelationalDatabaseLogEventsResponse)

-- | The response's http status code.
getRelationalDatabaseLogEventsResponse_httpStatus :: Lens.Lens' GetRelationalDatabaseLogEventsResponse Prelude.Int
getRelationalDatabaseLogEventsResponse_httpStatus :: (Int -> f Int)
-> GetRelationalDatabaseLogEventsResponse
-> f GetRelationalDatabaseLogEventsResponse
getRelationalDatabaseLogEventsResponse_httpStatus = (GetRelationalDatabaseLogEventsResponse -> Int)
-> (GetRelationalDatabaseLogEventsResponse
    -> Int -> GetRelationalDatabaseLogEventsResponse)
-> Lens
     GetRelationalDatabaseLogEventsResponse
     GetRelationalDatabaseLogEventsResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseLogEventsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetRelationalDatabaseLogEventsResponse' :: GetRelationalDatabaseLogEventsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetRelationalDatabaseLogEventsResponse
s@GetRelationalDatabaseLogEventsResponse' {} Int
a -> GetRelationalDatabaseLogEventsResponse
s {$sel:httpStatus:GetRelationalDatabaseLogEventsResponse' :: Int
httpStatus = Int
a} :: GetRelationalDatabaseLogEventsResponse)

instance
  Prelude.NFData
    GetRelationalDatabaseLogEventsResponse