{-# 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.RDS.DescribeDBClusterBacktracks
-- 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 information about backtracks for a DB cluster.
--
-- For more information on Amazon Aurora, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html What Is Amazon Aurora?>
-- in the /Amazon Aurora User Guide./
--
-- This action only applies to Aurora MySQL DB clusters.
--
-- This operation returns paginated results.
module Amazonka.RDS.DescribeDBClusterBacktracks
  ( -- * Creating a Request
    DescribeDBClusterBacktracks (..),
    newDescribeDBClusterBacktracks,

    -- * Request Lenses
    describeDBClusterBacktracks_backtrackIdentifier,
    describeDBClusterBacktracks_filters,
    describeDBClusterBacktracks_marker,
    describeDBClusterBacktracks_maxRecords,
    describeDBClusterBacktracks_dbClusterIdentifier,

    -- * Destructuring the Response
    DescribeDBClusterBacktracksResponse (..),
    newDescribeDBClusterBacktracksResponse,

    -- * Response Lenses
    describeDBClusterBacktracksResponse_marker,
    describeDBClusterBacktracksResponse_dbClusterBacktracks,
    describeDBClusterBacktracksResponse_httpStatus,
  )
where

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

-- |
--
-- /See:/ 'newDescribeDBClusterBacktracks' smart constructor.
data DescribeDBClusterBacktracks = DescribeDBClusterBacktracks'
  { -- | If specified, this value is the backtrack identifier of the backtrack to
    -- be described.
    --
    -- Constraints:
    --
    -- -   Must contain a valid universally unique identifier (UUID). For more
    --     information about UUIDs, see
    --     <http://www.ietf.org/rfc/rfc4122.txt A Universally Unique Identifier (UUID) URN Namespace>.
    --
    -- Example: @123e4567-e89b-12d3-a456-426655440000@
    DescribeDBClusterBacktracks -> Maybe Text
backtrackIdentifier :: Prelude.Maybe Prelude.Text,
    -- | A filter that specifies one or more DB clusters to describe. Supported
    -- filters include the following:
    --
    -- -   @db-cluster-backtrack-id@ - Accepts backtrack identifiers. The
    --     results list includes information about only the backtracks
    --     identified by these identifiers.
    --
    -- -   @db-cluster-backtrack-status@ - Accepts any of the following
    --     backtrack status values:
    --
    --     -   @applying@
    --
    --     -   @completed@
    --
    --     -   @failed@
    --
    --     -   @pending@
    --
    --     The results list includes information about only the backtracks
    --     identified by these values.
    DescribeDBClusterBacktracks -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
    -- | An optional pagination token provided by a previous
    -- @DescribeDBClusterBacktracks@ request. If this parameter is specified,
    -- the response includes only records beyond the marker, up to the value
    -- specified by @MaxRecords@.
    DescribeDBClusterBacktracks -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of records to include in the response. If more
    -- records exist than the specified @MaxRecords@ value, a pagination token
    -- called a marker is included in the response so you can retrieve the
    -- remaining results.
    --
    -- Default: 100
    --
    -- Constraints: Minimum 20, maximum 100.
    DescribeDBClusterBacktracks -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
    -- | The DB cluster identifier of the DB cluster to be described. This
    -- parameter is stored as a lowercase string.
    --
    -- Constraints:
    --
    -- -   Must contain from 1 to 63 alphanumeric characters or hyphens.
    --
    -- -   First character must be a letter.
    --
    -- -   Can\'t end with a hyphen or contain two consecutive hyphens.
    --
    -- Example: @my-cluster1@
    DescribeDBClusterBacktracks -> Text
dbClusterIdentifier :: Prelude.Text
  }
  deriving (DescribeDBClusterBacktracks -> DescribeDBClusterBacktracks -> Bool
(DescribeDBClusterBacktracks
 -> DescribeDBClusterBacktracks -> Bool)
-> (DescribeDBClusterBacktracks
    -> DescribeDBClusterBacktracks -> Bool)
-> Eq DescribeDBClusterBacktracks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBClusterBacktracks -> DescribeDBClusterBacktracks -> Bool
$c/= :: DescribeDBClusterBacktracks -> DescribeDBClusterBacktracks -> Bool
== :: DescribeDBClusterBacktracks -> DescribeDBClusterBacktracks -> Bool
$c== :: DescribeDBClusterBacktracks -> DescribeDBClusterBacktracks -> Bool
Prelude.Eq, ReadPrec [DescribeDBClusterBacktracks]
ReadPrec DescribeDBClusterBacktracks
Int -> ReadS DescribeDBClusterBacktracks
ReadS [DescribeDBClusterBacktracks]
(Int -> ReadS DescribeDBClusterBacktracks)
-> ReadS [DescribeDBClusterBacktracks]
-> ReadPrec DescribeDBClusterBacktracks
-> ReadPrec [DescribeDBClusterBacktracks]
-> Read DescribeDBClusterBacktracks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBClusterBacktracks]
$creadListPrec :: ReadPrec [DescribeDBClusterBacktracks]
readPrec :: ReadPrec DescribeDBClusterBacktracks
$creadPrec :: ReadPrec DescribeDBClusterBacktracks
readList :: ReadS [DescribeDBClusterBacktracks]
$creadList :: ReadS [DescribeDBClusterBacktracks]
readsPrec :: Int -> ReadS DescribeDBClusterBacktracks
$creadsPrec :: Int -> ReadS DescribeDBClusterBacktracks
Prelude.Read, Int -> DescribeDBClusterBacktracks -> ShowS
[DescribeDBClusterBacktracks] -> ShowS
DescribeDBClusterBacktracks -> String
(Int -> DescribeDBClusterBacktracks -> ShowS)
-> (DescribeDBClusterBacktracks -> String)
-> ([DescribeDBClusterBacktracks] -> ShowS)
-> Show DescribeDBClusterBacktracks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBClusterBacktracks] -> ShowS
$cshowList :: [DescribeDBClusterBacktracks] -> ShowS
show :: DescribeDBClusterBacktracks -> String
$cshow :: DescribeDBClusterBacktracks -> String
showsPrec :: Int -> DescribeDBClusterBacktracks -> ShowS
$cshowsPrec :: Int -> DescribeDBClusterBacktracks -> ShowS
Prelude.Show, (forall x.
 DescribeDBClusterBacktracks -> Rep DescribeDBClusterBacktracks x)
-> (forall x.
    Rep DescribeDBClusterBacktracks x -> DescribeDBClusterBacktracks)
-> Generic DescribeDBClusterBacktracks
forall x.
Rep DescribeDBClusterBacktracks x -> DescribeDBClusterBacktracks
forall x.
DescribeDBClusterBacktracks -> Rep DescribeDBClusterBacktracks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDBClusterBacktracks x -> DescribeDBClusterBacktracks
$cfrom :: forall x.
DescribeDBClusterBacktracks -> Rep DescribeDBClusterBacktracks x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDBClusterBacktracks' 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:
--
-- 'backtrackIdentifier', 'describeDBClusterBacktracks_backtrackIdentifier' - If specified, this value is the backtrack identifier of the backtrack to
-- be described.
--
-- Constraints:
--
-- -   Must contain a valid universally unique identifier (UUID). For more
--     information about UUIDs, see
--     <http://www.ietf.org/rfc/rfc4122.txt A Universally Unique Identifier (UUID) URN Namespace>.
--
-- Example: @123e4567-e89b-12d3-a456-426655440000@
--
-- 'filters', 'describeDBClusterBacktracks_filters' - A filter that specifies one or more DB clusters to describe. Supported
-- filters include the following:
--
-- -   @db-cluster-backtrack-id@ - Accepts backtrack identifiers. The
--     results list includes information about only the backtracks
--     identified by these identifiers.
--
-- -   @db-cluster-backtrack-status@ - Accepts any of the following
--     backtrack status values:
--
--     -   @applying@
--
--     -   @completed@
--
--     -   @failed@
--
--     -   @pending@
--
--     The results list includes information about only the backtracks
--     identified by these values.
--
-- 'marker', 'describeDBClusterBacktracks_marker' - An optional pagination token provided by a previous
-- @DescribeDBClusterBacktracks@ request. If this parameter is specified,
-- the response includes only records beyond the marker, up to the value
-- specified by @MaxRecords@.
--
-- 'maxRecords', 'describeDBClusterBacktracks_maxRecords' - The maximum number of records to include in the response. If more
-- records exist than the specified @MaxRecords@ value, a pagination token
-- called a marker is included in the response so you can retrieve the
-- remaining results.
--
-- Default: 100
--
-- Constraints: Minimum 20, maximum 100.
--
-- 'dbClusterIdentifier', 'describeDBClusterBacktracks_dbClusterIdentifier' - The DB cluster identifier of the DB cluster to be described. This
-- parameter is stored as a lowercase string.
--
-- Constraints:
--
-- -   Must contain from 1 to 63 alphanumeric characters or hyphens.
--
-- -   First character must be a letter.
--
-- -   Can\'t end with a hyphen or contain two consecutive hyphens.
--
-- Example: @my-cluster1@
newDescribeDBClusterBacktracks ::
  -- | 'dbClusterIdentifier'
  Prelude.Text ->
  DescribeDBClusterBacktracks
newDescribeDBClusterBacktracks :: Text -> DescribeDBClusterBacktracks
newDescribeDBClusterBacktracks Text
pDBClusterIdentifier_ =
  DescribeDBClusterBacktracks' :: Maybe Text
-> Maybe [Filter]
-> Maybe Text
-> Maybe Int
-> Text
-> DescribeDBClusterBacktracks
DescribeDBClusterBacktracks'
    { $sel:backtrackIdentifier:DescribeDBClusterBacktracks' :: Maybe Text
backtrackIdentifier =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:filters:DescribeDBClusterBacktracks' :: Maybe [Filter]
filters = Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
      $sel:marker:DescribeDBClusterBacktracks' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxRecords:DescribeDBClusterBacktracks' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:dbClusterIdentifier:DescribeDBClusterBacktracks' :: Text
dbClusterIdentifier = Text
pDBClusterIdentifier_
    }

-- | If specified, this value is the backtrack identifier of the backtrack to
-- be described.
--
-- Constraints:
--
-- -   Must contain a valid universally unique identifier (UUID). For more
--     information about UUIDs, see
--     <http://www.ietf.org/rfc/rfc4122.txt A Universally Unique Identifier (UUID) URN Namespace>.
--
-- Example: @123e4567-e89b-12d3-a456-426655440000@
describeDBClusterBacktracks_backtrackIdentifier :: Lens.Lens' DescribeDBClusterBacktracks (Prelude.Maybe Prelude.Text)
describeDBClusterBacktracks_backtrackIdentifier :: (Maybe Text -> f (Maybe Text))
-> DescribeDBClusterBacktracks -> f DescribeDBClusterBacktracks
describeDBClusterBacktracks_backtrackIdentifier = (DescribeDBClusterBacktracks -> Maybe Text)
-> (DescribeDBClusterBacktracks
    -> Maybe Text -> DescribeDBClusterBacktracks)
-> Lens
     DescribeDBClusterBacktracks
     DescribeDBClusterBacktracks
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterBacktracks' {Maybe Text
backtrackIdentifier :: Maybe Text
$sel:backtrackIdentifier:DescribeDBClusterBacktracks' :: DescribeDBClusterBacktracks -> Maybe Text
backtrackIdentifier} -> Maybe Text
backtrackIdentifier) (\s :: DescribeDBClusterBacktracks
s@DescribeDBClusterBacktracks' {} Maybe Text
a -> DescribeDBClusterBacktracks
s {$sel:backtrackIdentifier:DescribeDBClusterBacktracks' :: Maybe Text
backtrackIdentifier = Maybe Text
a} :: DescribeDBClusterBacktracks)

-- | A filter that specifies one or more DB clusters to describe. Supported
-- filters include the following:
--
-- -   @db-cluster-backtrack-id@ - Accepts backtrack identifiers. The
--     results list includes information about only the backtracks
--     identified by these identifiers.
--
-- -   @db-cluster-backtrack-status@ - Accepts any of the following
--     backtrack status values:
--
--     -   @applying@
--
--     -   @completed@
--
--     -   @failed@
--
--     -   @pending@
--
--     The results list includes information about only the backtracks
--     identified by these values.
describeDBClusterBacktracks_filters :: Lens.Lens' DescribeDBClusterBacktracks (Prelude.Maybe [Filter])
describeDBClusterBacktracks_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBClusterBacktracks -> f DescribeDBClusterBacktracks
describeDBClusterBacktracks_filters = (DescribeDBClusterBacktracks -> Maybe [Filter])
-> (DescribeDBClusterBacktracks
    -> Maybe [Filter] -> DescribeDBClusterBacktracks)
-> Lens
     DescribeDBClusterBacktracks
     DescribeDBClusterBacktracks
     (Maybe [Filter])
     (Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterBacktracks' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeDBClusterBacktracks' :: DescribeDBClusterBacktracks -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeDBClusterBacktracks
s@DescribeDBClusterBacktracks' {} Maybe [Filter]
a -> DescribeDBClusterBacktracks
s {$sel:filters:DescribeDBClusterBacktracks' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeDBClusterBacktracks) ((Maybe [Filter] -> f (Maybe [Filter]))
 -> DescribeDBClusterBacktracks -> f DescribeDBClusterBacktracks)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
    -> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeDBClusterBacktracks
-> f DescribeDBClusterBacktracks
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
     (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
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 [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | An optional pagination token provided by a previous
-- @DescribeDBClusterBacktracks@ request. If this parameter is specified,
-- the response includes only records beyond the marker, up to the value
-- specified by @MaxRecords@.
describeDBClusterBacktracks_marker :: Lens.Lens' DescribeDBClusterBacktracks (Prelude.Maybe Prelude.Text)
describeDBClusterBacktracks_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBClusterBacktracks -> f DescribeDBClusterBacktracks
describeDBClusterBacktracks_marker = (DescribeDBClusterBacktracks -> Maybe Text)
-> (DescribeDBClusterBacktracks
    -> Maybe Text -> DescribeDBClusterBacktracks)
-> Lens
     DescribeDBClusterBacktracks
     DescribeDBClusterBacktracks
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterBacktracks' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBClusterBacktracks' :: DescribeDBClusterBacktracks -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBClusterBacktracks
s@DescribeDBClusterBacktracks' {} Maybe Text
a -> DescribeDBClusterBacktracks
s {$sel:marker:DescribeDBClusterBacktracks' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBClusterBacktracks)

-- | The maximum number of records to include in the response. If more
-- records exist than the specified @MaxRecords@ value, a pagination token
-- called a marker is included in the response so you can retrieve the
-- remaining results.
--
-- Default: 100
--
-- Constraints: Minimum 20, maximum 100.
describeDBClusterBacktracks_maxRecords :: Lens.Lens' DescribeDBClusterBacktracks (Prelude.Maybe Prelude.Int)
describeDBClusterBacktracks_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeDBClusterBacktracks -> f DescribeDBClusterBacktracks
describeDBClusterBacktracks_maxRecords = (DescribeDBClusterBacktracks -> Maybe Int)
-> (DescribeDBClusterBacktracks
    -> Maybe Int -> DescribeDBClusterBacktracks)
-> Lens
     DescribeDBClusterBacktracks
     DescribeDBClusterBacktracks
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterBacktracks' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeDBClusterBacktracks' :: DescribeDBClusterBacktracks -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeDBClusterBacktracks
s@DescribeDBClusterBacktracks' {} Maybe Int
a -> DescribeDBClusterBacktracks
s {$sel:maxRecords:DescribeDBClusterBacktracks' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeDBClusterBacktracks)

-- | The DB cluster identifier of the DB cluster to be described. This
-- parameter is stored as a lowercase string.
--
-- Constraints:
--
-- -   Must contain from 1 to 63 alphanumeric characters or hyphens.
--
-- -   First character must be a letter.
--
-- -   Can\'t end with a hyphen or contain two consecutive hyphens.
--
-- Example: @my-cluster1@
describeDBClusterBacktracks_dbClusterIdentifier :: Lens.Lens' DescribeDBClusterBacktracks Prelude.Text
describeDBClusterBacktracks_dbClusterIdentifier :: (Text -> f Text)
-> DescribeDBClusterBacktracks -> f DescribeDBClusterBacktracks
describeDBClusterBacktracks_dbClusterIdentifier = (DescribeDBClusterBacktracks -> Text)
-> (DescribeDBClusterBacktracks
    -> Text -> DescribeDBClusterBacktracks)
-> Lens
     DescribeDBClusterBacktracks DescribeDBClusterBacktracks Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterBacktracks' {Text
dbClusterIdentifier :: Text
$sel:dbClusterIdentifier:DescribeDBClusterBacktracks' :: DescribeDBClusterBacktracks -> Text
dbClusterIdentifier} -> Text
dbClusterIdentifier) (\s :: DescribeDBClusterBacktracks
s@DescribeDBClusterBacktracks' {} Text
a -> DescribeDBClusterBacktracks
s {$sel:dbClusterIdentifier:DescribeDBClusterBacktracks' :: Text
dbClusterIdentifier = Text
a} :: DescribeDBClusterBacktracks)

instance Core.AWSPager DescribeDBClusterBacktracks where
  page :: DescribeDBClusterBacktracks
-> AWSResponse DescribeDBClusterBacktracks
-> Maybe DescribeDBClusterBacktracks
page DescribeDBClusterBacktracks
rq AWSResponse DescribeDBClusterBacktracks
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeDBClusterBacktracks
DescribeDBClusterBacktracksResponse
rs
            DescribeDBClusterBacktracksResponse
-> Getting (First Text) DescribeDBClusterBacktracksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBClusterBacktracksResponse
-> Const (First Text) DescribeDBClusterBacktracksResponse
Lens' DescribeDBClusterBacktracksResponse (Maybe Text)
describeDBClusterBacktracksResponse_marker
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeDBClusterBacktracksResponse
 -> Const (First Text) DescribeDBClusterBacktracksResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDBClusterBacktracksResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe DescribeDBClusterBacktracks
forall a. Maybe a
Prelude.Nothing
    | Maybe [DBClusterBacktrack] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeDBClusterBacktracks
DescribeDBClusterBacktracksResponse
rs
            DescribeDBClusterBacktracksResponse
-> Getting
     (First [DBClusterBacktrack])
     DescribeDBClusterBacktracksResponse
     [DBClusterBacktrack]
-> Maybe [DBClusterBacktrack]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DBClusterBacktrack]
 -> Const (First [DBClusterBacktrack]) (Maybe [DBClusterBacktrack]))
-> DescribeDBClusterBacktracksResponse
-> Const
     (First [DBClusterBacktrack]) DescribeDBClusterBacktracksResponse
Lens'
  DescribeDBClusterBacktracksResponse (Maybe [DBClusterBacktrack])
describeDBClusterBacktracksResponse_dbClusterBacktracks
              ((Maybe [DBClusterBacktrack]
  -> Const (First [DBClusterBacktrack]) (Maybe [DBClusterBacktrack]))
 -> DescribeDBClusterBacktracksResponse
 -> Const
      (First [DBClusterBacktrack]) DescribeDBClusterBacktracksResponse)
-> (([DBClusterBacktrack]
     -> Const (First [DBClusterBacktrack]) [DBClusterBacktrack])
    -> Maybe [DBClusterBacktrack]
    -> Const (First [DBClusterBacktrack]) (Maybe [DBClusterBacktrack]))
-> Getting
     (First [DBClusterBacktrack])
     DescribeDBClusterBacktracksResponse
     [DBClusterBacktrack]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DBClusterBacktrack]
 -> Const (First [DBClusterBacktrack]) [DBClusterBacktrack])
-> Maybe [DBClusterBacktrack]
-> Const (First [DBClusterBacktrack]) (Maybe [DBClusterBacktrack])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe DescribeDBClusterBacktracks
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      DescribeDBClusterBacktracks -> Maybe DescribeDBClusterBacktracks
forall a. a -> Maybe a
Prelude.Just (DescribeDBClusterBacktracks -> Maybe DescribeDBClusterBacktracks)
-> DescribeDBClusterBacktracks -> Maybe DescribeDBClusterBacktracks
forall a b. (a -> b) -> a -> b
Prelude.$
        DescribeDBClusterBacktracks
rq
          DescribeDBClusterBacktracks
-> (DescribeDBClusterBacktracks -> DescribeDBClusterBacktracks)
-> DescribeDBClusterBacktracks
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeDBClusterBacktracks
-> Identity DescribeDBClusterBacktracks
Lens
  DescribeDBClusterBacktracks
  DescribeDBClusterBacktracks
  (Maybe Text)
  (Maybe Text)
describeDBClusterBacktracks_marker
          ((Maybe Text -> Identity (Maybe Text))
 -> DescribeDBClusterBacktracks
 -> Identity DescribeDBClusterBacktracks)
-> Maybe Text
-> DescribeDBClusterBacktracks
-> DescribeDBClusterBacktracks
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeDBClusterBacktracks
DescribeDBClusterBacktracksResponse
rs
          DescribeDBClusterBacktracksResponse
-> Getting (First Text) DescribeDBClusterBacktracksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeDBClusterBacktracksResponse
-> Const (First Text) DescribeDBClusterBacktracksResponse
Lens' DescribeDBClusterBacktracksResponse (Maybe Text)
describeDBClusterBacktracksResponse_marker
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeDBClusterBacktracksResponse
 -> Const (First Text) DescribeDBClusterBacktracksResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeDBClusterBacktracksResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest DescribeDBClusterBacktracks where
  type
    AWSResponse DescribeDBClusterBacktracks =
      DescribeDBClusterBacktracksResponse
  request :: DescribeDBClusterBacktracks -> Request DescribeDBClusterBacktracks
request = Service
-> DescribeDBClusterBacktracks
-> Request DescribeDBClusterBacktracks
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeDBClusterBacktracks
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeDBClusterBacktracks)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DescribeDBClusterBacktracks))
-> Logger
-> Service
-> Proxy DescribeDBClusterBacktracks
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeDBClusterBacktracks)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"DescribeDBClusterBacktracksResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe Text
-> Maybe [DBClusterBacktrack]
-> Int
-> DescribeDBClusterBacktracksResponse
DescribeDBClusterBacktracksResponse'
            (Maybe Text
 -> Maybe [DBClusterBacktrack]
 -> Int
 -> DescribeDBClusterBacktracksResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [DBClusterBacktrack]
      -> Int -> DescribeDBClusterBacktracksResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Marker")
            Either
  String
  (Maybe [DBClusterBacktrack]
   -> Int -> DescribeDBClusterBacktracksResponse)
-> Either String (Maybe [DBClusterBacktrack])
-> Either String (Int -> DescribeDBClusterBacktracksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBClusterBacktracks"
                            Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
                            Either String [Node]
-> ([Node] -> Either String (Maybe [DBClusterBacktrack]))
-> Either String (Maybe [DBClusterBacktrack])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [DBClusterBacktrack])
-> [Node] -> Either String (Maybe [DBClusterBacktrack])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [DBClusterBacktrack]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"DBClusterBacktrack")
                        )
            Either String (Int -> DescribeDBClusterBacktracksResponse)
-> Either String Int
-> Either String DescribeDBClusterBacktracksResponse
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 DescribeDBClusterBacktracks

instance Prelude.NFData DescribeDBClusterBacktracks

instance Core.ToHeaders DescribeDBClusterBacktracks where
  toHeaders :: DescribeDBClusterBacktracks -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeDBClusterBacktracks -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

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

instance Core.ToQuery DescribeDBClusterBacktracks where
  toQuery :: DescribeDBClusterBacktracks -> QueryString
toQuery DescribeDBClusterBacktracks' {Maybe Int
Maybe [Filter]
Maybe Text
Text
dbClusterIdentifier :: Text
maxRecords :: Maybe Int
marker :: Maybe Text
filters :: Maybe [Filter]
backtrackIdentifier :: Maybe Text
$sel:dbClusterIdentifier:DescribeDBClusterBacktracks' :: DescribeDBClusterBacktracks -> Text
$sel:maxRecords:DescribeDBClusterBacktracks' :: DescribeDBClusterBacktracks -> Maybe Int
$sel:marker:DescribeDBClusterBacktracks' :: DescribeDBClusterBacktracks -> Maybe Text
$sel:filters:DescribeDBClusterBacktracks' :: DescribeDBClusterBacktracks -> Maybe [Filter]
$sel:backtrackIdentifier:DescribeDBClusterBacktracks' :: DescribeDBClusterBacktracks -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"DescribeDBClusterBacktracks" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
        ByteString
"BacktrackIdentifier" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
backtrackIdentifier,
        ByteString
"Filters"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            (ByteString -> [Filter] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Filter" ([Filter] -> QueryString) -> Maybe [Filter] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters),
        ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
        ByteString
"MaxRecords" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxRecords,
        ByteString
"DBClusterIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbClusterIdentifier
      ]

-- | Contains the result of a successful invocation of the
-- @DescribeDBClusterBacktracks@ action.
--
-- /See:/ 'newDescribeDBClusterBacktracksResponse' smart constructor.
data DescribeDBClusterBacktracksResponse = DescribeDBClusterBacktracksResponse'
  { -- | A pagination token that can be used in a later
    -- @DescribeDBClusterBacktracks@ request.
    DescribeDBClusterBacktracksResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | Contains a list of backtracks for the user.
    DescribeDBClusterBacktracksResponse -> Maybe [DBClusterBacktrack]
dbClusterBacktracks :: Prelude.Maybe [DBClusterBacktrack],
    -- | The response's http status code.
    DescribeDBClusterBacktracksResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeDBClusterBacktracksResponse
-> DescribeDBClusterBacktracksResponse -> Bool
(DescribeDBClusterBacktracksResponse
 -> DescribeDBClusterBacktracksResponse -> Bool)
-> (DescribeDBClusterBacktracksResponse
    -> DescribeDBClusterBacktracksResponse -> Bool)
-> Eq DescribeDBClusterBacktracksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDBClusterBacktracksResponse
-> DescribeDBClusterBacktracksResponse -> Bool
$c/= :: DescribeDBClusterBacktracksResponse
-> DescribeDBClusterBacktracksResponse -> Bool
== :: DescribeDBClusterBacktracksResponse
-> DescribeDBClusterBacktracksResponse -> Bool
$c== :: DescribeDBClusterBacktracksResponse
-> DescribeDBClusterBacktracksResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDBClusterBacktracksResponse]
ReadPrec DescribeDBClusterBacktracksResponse
Int -> ReadS DescribeDBClusterBacktracksResponse
ReadS [DescribeDBClusterBacktracksResponse]
(Int -> ReadS DescribeDBClusterBacktracksResponse)
-> ReadS [DescribeDBClusterBacktracksResponse]
-> ReadPrec DescribeDBClusterBacktracksResponse
-> ReadPrec [DescribeDBClusterBacktracksResponse]
-> Read DescribeDBClusterBacktracksResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDBClusterBacktracksResponse]
$creadListPrec :: ReadPrec [DescribeDBClusterBacktracksResponse]
readPrec :: ReadPrec DescribeDBClusterBacktracksResponse
$creadPrec :: ReadPrec DescribeDBClusterBacktracksResponse
readList :: ReadS [DescribeDBClusterBacktracksResponse]
$creadList :: ReadS [DescribeDBClusterBacktracksResponse]
readsPrec :: Int -> ReadS DescribeDBClusterBacktracksResponse
$creadsPrec :: Int -> ReadS DescribeDBClusterBacktracksResponse
Prelude.Read, Int -> DescribeDBClusterBacktracksResponse -> ShowS
[DescribeDBClusterBacktracksResponse] -> ShowS
DescribeDBClusterBacktracksResponse -> String
(Int -> DescribeDBClusterBacktracksResponse -> ShowS)
-> (DescribeDBClusterBacktracksResponse -> String)
-> ([DescribeDBClusterBacktracksResponse] -> ShowS)
-> Show DescribeDBClusterBacktracksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDBClusterBacktracksResponse] -> ShowS
$cshowList :: [DescribeDBClusterBacktracksResponse] -> ShowS
show :: DescribeDBClusterBacktracksResponse -> String
$cshow :: DescribeDBClusterBacktracksResponse -> String
showsPrec :: Int -> DescribeDBClusterBacktracksResponse -> ShowS
$cshowsPrec :: Int -> DescribeDBClusterBacktracksResponse -> ShowS
Prelude.Show, (forall x.
 DescribeDBClusterBacktracksResponse
 -> Rep DescribeDBClusterBacktracksResponse x)
-> (forall x.
    Rep DescribeDBClusterBacktracksResponse x
    -> DescribeDBClusterBacktracksResponse)
-> Generic DescribeDBClusterBacktracksResponse
forall x.
Rep DescribeDBClusterBacktracksResponse x
-> DescribeDBClusterBacktracksResponse
forall x.
DescribeDBClusterBacktracksResponse
-> Rep DescribeDBClusterBacktracksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDBClusterBacktracksResponse x
-> DescribeDBClusterBacktracksResponse
$cfrom :: forall x.
DescribeDBClusterBacktracksResponse
-> Rep DescribeDBClusterBacktracksResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDBClusterBacktracksResponse' 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:
--
-- 'marker', 'describeDBClusterBacktracksResponse_marker' - A pagination token that can be used in a later
-- @DescribeDBClusterBacktracks@ request.
--
-- 'dbClusterBacktracks', 'describeDBClusterBacktracksResponse_dbClusterBacktracks' - Contains a list of backtracks for the user.
--
-- 'httpStatus', 'describeDBClusterBacktracksResponse_httpStatus' - The response's http status code.
newDescribeDBClusterBacktracksResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeDBClusterBacktracksResponse
newDescribeDBClusterBacktracksResponse :: Int -> DescribeDBClusterBacktracksResponse
newDescribeDBClusterBacktracksResponse Int
pHttpStatus_ =
  DescribeDBClusterBacktracksResponse' :: Maybe Text
-> Maybe [DBClusterBacktrack]
-> Int
-> DescribeDBClusterBacktracksResponse
DescribeDBClusterBacktracksResponse'
    { $sel:marker:DescribeDBClusterBacktracksResponse' :: Maybe Text
marker =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dbClusterBacktracks:DescribeDBClusterBacktracksResponse' :: Maybe [DBClusterBacktrack]
dbClusterBacktracks = Maybe [DBClusterBacktrack]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeDBClusterBacktracksResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A pagination token that can be used in a later
-- @DescribeDBClusterBacktracks@ request.
describeDBClusterBacktracksResponse_marker :: Lens.Lens' DescribeDBClusterBacktracksResponse (Prelude.Maybe Prelude.Text)
describeDBClusterBacktracksResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeDBClusterBacktracksResponse
-> f DescribeDBClusterBacktracksResponse
describeDBClusterBacktracksResponse_marker = (DescribeDBClusterBacktracksResponse -> Maybe Text)
-> (DescribeDBClusterBacktracksResponse
    -> Maybe Text -> DescribeDBClusterBacktracksResponse)
-> Lens' DescribeDBClusterBacktracksResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterBacktracksResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeDBClusterBacktracksResponse' :: DescribeDBClusterBacktracksResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeDBClusterBacktracksResponse
s@DescribeDBClusterBacktracksResponse' {} Maybe Text
a -> DescribeDBClusterBacktracksResponse
s {$sel:marker:DescribeDBClusterBacktracksResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeDBClusterBacktracksResponse)

-- | Contains a list of backtracks for the user.
describeDBClusterBacktracksResponse_dbClusterBacktracks :: Lens.Lens' DescribeDBClusterBacktracksResponse (Prelude.Maybe [DBClusterBacktrack])
describeDBClusterBacktracksResponse_dbClusterBacktracks :: (Maybe [DBClusterBacktrack] -> f (Maybe [DBClusterBacktrack]))
-> DescribeDBClusterBacktracksResponse
-> f DescribeDBClusterBacktracksResponse
describeDBClusterBacktracksResponse_dbClusterBacktracks = (DescribeDBClusterBacktracksResponse -> Maybe [DBClusterBacktrack])
-> (DescribeDBClusterBacktracksResponse
    -> Maybe [DBClusterBacktrack]
    -> DescribeDBClusterBacktracksResponse)
-> Lens'
     DescribeDBClusterBacktracksResponse (Maybe [DBClusterBacktrack])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDBClusterBacktracksResponse' {Maybe [DBClusterBacktrack]
dbClusterBacktracks :: Maybe [DBClusterBacktrack]
$sel:dbClusterBacktracks:DescribeDBClusterBacktracksResponse' :: DescribeDBClusterBacktracksResponse -> Maybe [DBClusterBacktrack]
dbClusterBacktracks} -> Maybe [DBClusterBacktrack]
dbClusterBacktracks) (\s :: DescribeDBClusterBacktracksResponse
s@DescribeDBClusterBacktracksResponse' {} Maybe [DBClusterBacktrack]
a -> DescribeDBClusterBacktracksResponse
s {$sel:dbClusterBacktracks:DescribeDBClusterBacktracksResponse' :: Maybe [DBClusterBacktrack]
dbClusterBacktracks = Maybe [DBClusterBacktrack]
a} :: DescribeDBClusterBacktracksResponse) ((Maybe [DBClusterBacktrack] -> f (Maybe [DBClusterBacktrack]))
 -> DescribeDBClusterBacktracksResponse
 -> f DescribeDBClusterBacktracksResponse)
-> ((Maybe [DBClusterBacktrack] -> f (Maybe [DBClusterBacktrack]))
    -> Maybe [DBClusterBacktrack] -> f (Maybe [DBClusterBacktrack]))
-> (Maybe [DBClusterBacktrack] -> f (Maybe [DBClusterBacktrack]))
-> DescribeDBClusterBacktracksResponse
-> f DescribeDBClusterBacktracksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [DBClusterBacktrack]
  [DBClusterBacktrack]
  [DBClusterBacktrack]
  [DBClusterBacktrack]
-> Iso
     (Maybe [DBClusterBacktrack])
     (Maybe [DBClusterBacktrack])
     (Maybe [DBClusterBacktrack])
     (Maybe [DBClusterBacktrack])
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
  [DBClusterBacktrack]
  [DBClusterBacktrack]
  [DBClusterBacktrack]
  [DBClusterBacktrack]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeDBClusterBacktracksResponse