{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# 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.Types.DBEngineVersion
-- 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)
module Amazonka.RDS.Types.DBEngineVersion where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types.CharacterSet
import Amazonka.RDS.Types.Timezone
import Amazonka.RDS.Types.UpgradeTarget

-- | This data type is used as a response element in the action
-- @DescribeDBEngineVersions@.
--
-- /See:/ 'newDBEngineVersion' smart constructor.
data DBEngineVersion = DBEngineVersion'
  { -- | The version number of the database engine.
    DBEngineVersion -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
    -- | The status of the DB engine version, either @available@ or @deprecated@.
    DBEngineVersion -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
    -- | The description of the database engine version.
    DBEngineVersion -> Maybe Text
dbEngineVersionDescription :: Prelude.Maybe Prelude.Text,
    -- | A list of the supported DB engine modes.
    DBEngineVersion -> Maybe [Text]
supportedEngineModes :: Prelude.Maybe [Prelude.Text],
    -- | The default character set for new instances of this engine version, if
    -- the @CharacterSetName@ parameter of the CreateDBInstance API isn\'t
    -- specified.
    DBEngineVersion -> Maybe CharacterSet
defaultCharacterSet :: Prelude.Maybe CharacterSet,
    -- | The name of the database engine.
    DBEngineVersion -> Maybe Text
engine :: Prelude.Maybe Prelude.Text,
    -- | The name of the DB parameter group family for the database engine.
    DBEngineVersion -> Maybe Text
dbParameterGroupFamily :: Prelude.Maybe Prelude.Text,
    -- | A list of the character sets supported by this engine for the
    -- @CharacterSetName@ parameter of the @CreateDBInstance@ operation.
    DBEngineVersion -> Maybe [CharacterSet]
supportedCharacterSets :: Prelude.Maybe [CharacterSet],
    -- | The description of the database engine.
    DBEngineVersion -> Maybe Text
dbEngineDescription :: Prelude.Maybe Prelude.Text,
    -- | A value that indicates whether you can use Aurora global databases with
    -- a specific DB engine version.
    DBEngineVersion -> Maybe Bool
supportsGlobalDatabases :: Prelude.Maybe Prelude.Bool,
    -- | A list of engine versions that this database engine version can be
    -- upgraded to.
    DBEngineVersion -> Maybe [UpgradeTarget]
validUpgradeTarget :: Prelude.Maybe [UpgradeTarget],
    -- | A value that indicates whether you can use Aurora parallel query with a
    -- specific DB engine version.
    DBEngineVersion -> Maybe Bool
supportsParallelQuery :: Prelude.Maybe Prelude.Bool,
    -- | A list of the character sets supported by the Oracle DB engine for the
    -- @NcharCharacterSetName@ parameter of the @CreateDBInstance@ operation.
    DBEngineVersion -> Maybe [CharacterSet]
supportedNcharCharacterSets :: Prelude.Maybe [CharacterSet],
    -- | A value that indicates whether the engine version supports exporting the
    -- log types specified by ExportableLogTypes to CloudWatch Logs.
    DBEngineVersion -> Maybe Bool
supportsLogExportsToCloudwatchLogs :: Prelude.Maybe Prelude.Bool,
    -- | Indicates whether the database engine version supports read replicas.
    DBEngineVersion -> Maybe Bool
supportsReadReplica :: Prelude.Maybe Prelude.Bool,
    -- | A list of features supported by the DB engine. Supported feature names
    -- include the following.
    --
    -- -   s3Import
    DBEngineVersion -> Maybe [Text]
supportedFeatureNames :: Prelude.Maybe [Prelude.Text],
    -- | A list of the time zones supported by this engine for the @Timezone@
    -- parameter of the @CreateDBInstance@ action.
    DBEngineVersion -> Maybe [Timezone]
supportedTimezones :: Prelude.Maybe [Timezone],
    -- | The types of logs that the database engine has available for export to
    -- CloudWatch Logs.
    DBEngineVersion -> Maybe [Text]
exportableLogTypes :: Prelude.Maybe [Prelude.Text]
  }
  deriving (DBEngineVersion -> DBEngineVersion -> Bool
(DBEngineVersion -> DBEngineVersion -> Bool)
-> (DBEngineVersion -> DBEngineVersion -> Bool)
-> Eq DBEngineVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DBEngineVersion -> DBEngineVersion -> Bool
$c/= :: DBEngineVersion -> DBEngineVersion -> Bool
== :: DBEngineVersion -> DBEngineVersion -> Bool
$c== :: DBEngineVersion -> DBEngineVersion -> Bool
Prelude.Eq, ReadPrec [DBEngineVersion]
ReadPrec DBEngineVersion
Int -> ReadS DBEngineVersion
ReadS [DBEngineVersion]
(Int -> ReadS DBEngineVersion)
-> ReadS [DBEngineVersion]
-> ReadPrec DBEngineVersion
-> ReadPrec [DBEngineVersion]
-> Read DBEngineVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DBEngineVersion]
$creadListPrec :: ReadPrec [DBEngineVersion]
readPrec :: ReadPrec DBEngineVersion
$creadPrec :: ReadPrec DBEngineVersion
readList :: ReadS [DBEngineVersion]
$creadList :: ReadS [DBEngineVersion]
readsPrec :: Int -> ReadS DBEngineVersion
$creadsPrec :: Int -> ReadS DBEngineVersion
Prelude.Read, Int -> DBEngineVersion -> ShowS
[DBEngineVersion] -> ShowS
DBEngineVersion -> String
(Int -> DBEngineVersion -> ShowS)
-> (DBEngineVersion -> String)
-> ([DBEngineVersion] -> ShowS)
-> Show DBEngineVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DBEngineVersion] -> ShowS
$cshowList :: [DBEngineVersion] -> ShowS
show :: DBEngineVersion -> String
$cshow :: DBEngineVersion -> String
showsPrec :: Int -> DBEngineVersion -> ShowS
$cshowsPrec :: Int -> DBEngineVersion -> ShowS
Prelude.Show, (forall x. DBEngineVersion -> Rep DBEngineVersion x)
-> (forall x. Rep DBEngineVersion x -> DBEngineVersion)
-> Generic DBEngineVersion
forall x. Rep DBEngineVersion x -> DBEngineVersion
forall x. DBEngineVersion -> Rep DBEngineVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DBEngineVersion x -> DBEngineVersion
$cfrom :: forall x. DBEngineVersion -> Rep DBEngineVersion x
Prelude.Generic)

-- |
-- Create a value of 'DBEngineVersion' 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:
--
-- 'engineVersion', 'dbEngineVersion_engineVersion' - The version number of the database engine.
--
-- 'status', 'dbEngineVersion_status' - The status of the DB engine version, either @available@ or @deprecated@.
--
-- 'dbEngineVersionDescription', 'dbEngineVersion_dbEngineVersionDescription' - The description of the database engine version.
--
-- 'supportedEngineModes', 'dbEngineVersion_supportedEngineModes' - A list of the supported DB engine modes.
--
-- 'defaultCharacterSet', 'dbEngineVersion_defaultCharacterSet' - The default character set for new instances of this engine version, if
-- the @CharacterSetName@ parameter of the CreateDBInstance API isn\'t
-- specified.
--
-- 'engine', 'dbEngineVersion_engine' - The name of the database engine.
--
-- 'dbParameterGroupFamily', 'dbEngineVersion_dbParameterGroupFamily' - The name of the DB parameter group family for the database engine.
--
-- 'supportedCharacterSets', 'dbEngineVersion_supportedCharacterSets' - A list of the character sets supported by this engine for the
-- @CharacterSetName@ parameter of the @CreateDBInstance@ operation.
--
-- 'dbEngineDescription', 'dbEngineVersion_dbEngineDescription' - The description of the database engine.
--
-- 'supportsGlobalDatabases', 'dbEngineVersion_supportsGlobalDatabases' - A value that indicates whether you can use Aurora global databases with
-- a specific DB engine version.
--
-- 'validUpgradeTarget', 'dbEngineVersion_validUpgradeTarget' - A list of engine versions that this database engine version can be
-- upgraded to.
--
-- 'supportsParallelQuery', 'dbEngineVersion_supportsParallelQuery' - A value that indicates whether you can use Aurora parallel query with a
-- specific DB engine version.
--
-- 'supportedNcharCharacterSets', 'dbEngineVersion_supportedNcharCharacterSets' - A list of the character sets supported by the Oracle DB engine for the
-- @NcharCharacterSetName@ parameter of the @CreateDBInstance@ operation.
--
-- 'supportsLogExportsToCloudwatchLogs', 'dbEngineVersion_supportsLogExportsToCloudwatchLogs' - A value that indicates whether the engine version supports exporting the
-- log types specified by ExportableLogTypes to CloudWatch Logs.
--
-- 'supportsReadReplica', 'dbEngineVersion_supportsReadReplica' - Indicates whether the database engine version supports read replicas.
--
-- 'supportedFeatureNames', 'dbEngineVersion_supportedFeatureNames' - A list of features supported by the DB engine. Supported feature names
-- include the following.
--
-- -   s3Import
--
-- 'supportedTimezones', 'dbEngineVersion_supportedTimezones' - A list of the time zones supported by this engine for the @Timezone@
-- parameter of the @CreateDBInstance@ action.
--
-- 'exportableLogTypes', 'dbEngineVersion_exportableLogTypes' - The types of logs that the database engine has available for export to
-- CloudWatch Logs.
newDBEngineVersion ::
  DBEngineVersion
newDBEngineVersion :: DBEngineVersion
newDBEngineVersion =
  DBEngineVersion' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe CharacterSet
-> Maybe Text
-> Maybe Text
-> Maybe [CharacterSet]
-> Maybe Text
-> Maybe Bool
-> Maybe [UpgradeTarget]
-> Maybe Bool
-> Maybe [CharacterSet]
-> Maybe Bool
-> Maybe Bool
-> Maybe [Text]
-> Maybe [Timezone]
-> Maybe [Text]
-> DBEngineVersion
DBEngineVersion'
    { $sel:engineVersion:DBEngineVersion' :: Maybe Text
engineVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:DBEngineVersion' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dbEngineVersionDescription:DBEngineVersion' :: Maybe Text
dbEngineVersionDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:supportedEngineModes:DBEngineVersion' :: Maybe [Text]
supportedEngineModes = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:defaultCharacterSet:DBEngineVersion' :: Maybe CharacterSet
defaultCharacterSet = Maybe CharacterSet
forall a. Maybe a
Prelude.Nothing,
      $sel:engine:DBEngineVersion' :: Maybe Text
engine = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dbParameterGroupFamily:DBEngineVersion' :: Maybe Text
dbParameterGroupFamily = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:supportedCharacterSets:DBEngineVersion' :: Maybe [CharacterSet]
supportedCharacterSets = Maybe [CharacterSet]
forall a. Maybe a
Prelude.Nothing,
      $sel:dbEngineDescription:DBEngineVersion' :: Maybe Text
dbEngineDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:supportsGlobalDatabases:DBEngineVersion' :: Maybe Bool
supportsGlobalDatabases = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:validUpgradeTarget:DBEngineVersion' :: Maybe [UpgradeTarget]
validUpgradeTarget = Maybe [UpgradeTarget]
forall a. Maybe a
Prelude.Nothing,
      $sel:supportsParallelQuery:DBEngineVersion' :: Maybe Bool
supportsParallelQuery = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:supportedNcharCharacterSets:DBEngineVersion' :: Maybe [CharacterSet]
supportedNcharCharacterSets = Maybe [CharacterSet]
forall a. Maybe a
Prelude.Nothing,
      $sel:supportsLogExportsToCloudwatchLogs:DBEngineVersion' :: Maybe Bool
supportsLogExportsToCloudwatchLogs = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:supportsReadReplica:DBEngineVersion' :: Maybe Bool
supportsReadReplica = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:supportedFeatureNames:DBEngineVersion' :: Maybe [Text]
supportedFeatureNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:supportedTimezones:DBEngineVersion' :: Maybe [Timezone]
supportedTimezones = Maybe [Timezone]
forall a. Maybe a
Prelude.Nothing,
      $sel:exportableLogTypes:DBEngineVersion' :: Maybe [Text]
exportableLogTypes = Maybe [Text]
forall a. Maybe a
Prelude.Nothing
    }

-- | The version number of the database engine.
dbEngineVersion_engineVersion :: Lens.Lens' DBEngineVersion (Prelude.Maybe Prelude.Text)
dbEngineVersion_engineVersion :: (Maybe Text -> f (Maybe Text))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_engineVersion = (DBEngineVersion -> Maybe Text)
-> (DBEngineVersion -> Maybe Text -> DBEngineVersion)
-> Lens DBEngineVersion DBEngineVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:DBEngineVersion' :: DBEngineVersion -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe Text
a -> DBEngineVersion
s {$sel:engineVersion:DBEngineVersion' :: Maybe Text
engineVersion = Maybe Text
a} :: DBEngineVersion)

-- | The status of the DB engine version, either @available@ or @deprecated@.
dbEngineVersion_status :: Lens.Lens' DBEngineVersion (Prelude.Maybe Prelude.Text)
dbEngineVersion_status :: (Maybe Text -> f (Maybe Text))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_status = (DBEngineVersion -> Maybe Text)
-> (DBEngineVersion -> Maybe Text -> DBEngineVersion)
-> Lens DBEngineVersion DBEngineVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe Text
status :: Maybe Text
$sel:status:DBEngineVersion' :: DBEngineVersion -> Maybe Text
status} -> Maybe Text
status) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe Text
a -> DBEngineVersion
s {$sel:status:DBEngineVersion' :: Maybe Text
status = Maybe Text
a} :: DBEngineVersion)

-- | The description of the database engine version.
dbEngineVersion_dbEngineVersionDescription :: Lens.Lens' DBEngineVersion (Prelude.Maybe Prelude.Text)
dbEngineVersion_dbEngineVersionDescription :: (Maybe Text -> f (Maybe Text))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_dbEngineVersionDescription = (DBEngineVersion -> Maybe Text)
-> (DBEngineVersion -> Maybe Text -> DBEngineVersion)
-> Lens DBEngineVersion DBEngineVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe Text
dbEngineVersionDescription :: Maybe Text
$sel:dbEngineVersionDescription:DBEngineVersion' :: DBEngineVersion -> Maybe Text
dbEngineVersionDescription} -> Maybe Text
dbEngineVersionDescription) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe Text
a -> DBEngineVersion
s {$sel:dbEngineVersionDescription:DBEngineVersion' :: Maybe Text
dbEngineVersionDescription = Maybe Text
a} :: DBEngineVersion)

-- | A list of the supported DB engine modes.
dbEngineVersion_supportedEngineModes :: Lens.Lens' DBEngineVersion (Prelude.Maybe [Prelude.Text])
dbEngineVersion_supportedEngineModes :: (Maybe [Text] -> f (Maybe [Text]))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_supportedEngineModes = (DBEngineVersion -> Maybe [Text])
-> (DBEngineVersion -> Maybe [Text] -> DBEngineVersion)
-> Lens
     DBEngineVersion DBEngineVersion (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe [Text]
supportedEngineModes :: Maybe [Text]
$sel:supportedEngineModes:DBEngineVersion' :: DBEngineVersion -> Maybe [Text]
supportedEngineModes} -> Maybe [Text]
supportedEngineModes) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe [Text]
a -> DBEngineVersion
s {$sel:supportedEngineModes:DBEngineVersion' :: Maybe [Text]
supportedEngineModes = Maybe [Text]
a} :: DBEngineVersion) ((Maybe [Text] -> f (Maybe [Text]))
 -> DBEngineVersion -> f DBEngineVersion)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DBEngineVersion
-> f DBEngineVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The default character set for new instances of this engine version, if
-- the @CharacterSetName@ parameter of the CreateDBInstance API isn\'t
-- specified.
dbEngineVersion_defaultCharacterSet :: Lens.Lens' DBEngineVersion (Prelude.Maybe CharacterSet)
dbEngineVersion_defaultCharacterSet :: (Maybe CharacterSet -> f (Maybe CharacterSet))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_defaultCharacterSet = (DBEngineVersion -> Maybe CharacterSet)
-> (DBEngineVersion -> Maybe CharacterSet -> DBEngineVersion)
-> Lens
     DBEngineVersion
     DBEngineVersion
     (Maybe CharacterSet)
     (Maybe CharacterSet)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe CharacterSet
defaultCharacterSet :: Maybe CharacterSet
$sel:defaultCharacterSet:DBEngineVersion' :: DBEngineVersion -> Maybe CharacterSet
defaultCharacterSet} -> Maybe CharacterSet
defaultCharacterSet) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe CharacterSet
a -> DBEngineVersion
s {$sel:defaultCharacterSet:DBEngineVersion' :: Maybe CharacterSet
defaultCharacterSet = Maybe CharacterSet
a} :: DBEngineVersion)

-- | The name of the database engine.
dbEngineVersion_engine :: Lens.Lens' DBEngineVersion (Prelude.Maybe Prelude.Text)
dbEngineVersion_engine :: (Maybe Text -> f (Maybe Text))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_engine = (DBEngineVersion -> Maybe Text)
-> (DBEngineVersion -> Maybe Text -> DBEngineVersion)
-> Lens DBEngineVersion DBEngineVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe Text
engine :: Maybe Text
$sel:engine:DBEngineVersion' :: DBEngineVersion -> Maybe Text
engine} -> Maybe Text
engine) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe Text
a -> DBEngineVersion
s {$sel:engine:DBEngineVersion' :: Maybe Text
engine = Maybe Text
a} :: DBEngineVersion)

-- | The name of the DB parameter group family for the database engine.
dbEngineVersion_dbParameterGroupFamily :: Lens.Lens' DBEngineVersion (Prelude.Maybe Prelude.Text)
dbEngineVersion_dbParameterGroupFamily :: (Maybe Text -> f (Maybe Text))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_dbParameterGroupFamily = (DBEngineVersion -> Maybe Text)
-> (DBEngineVersion -> Maybe Text -> DBEngineVersion)
-> Lens DBEngineVersion DBEngineVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe Text
dbParameterGroupFamily :: Maybe Text
$sel:dbParameterGroupFamily:DBEngineVersion' :: DBEngineVersion -> Maybe Text
dbParameterGroupFamily} -> Maybe Text
dbParameterGroupFamily) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe Text
a -> DBEngineVersion
s {$sel:dbParameterGroupFamily:DBEngineVersion' :: Maybe Text
dbParameterGroupFamily = Maybe Text
a} :: DBEngineVersion)

-- | A list of the character sets supported by this engine for the
-- @CharacterSetName@ parameter of the @CreateDBInstance@ operation.
dbEngineVersion_supportedCharacterSets :: Lens.Lens' DBEngineVersion (Prelude.Maybe [CharacterSet])
dbEngineVersion_supportedCharacterSets :: (Maybe [CharacterSet] -> f (Maybe [CharacterSet]))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_supportedCharacterSets = (DBEngineVersion -> Maybe [CharacterSet])
-> (DBEngineVersion -> Maybe [CharacterSet] -> DBEngineVersion)
-> Lens
     DBEngineVersion
     DBEngineVersion
     (Maybe [CharacterSet])
     (Maybe [CharacterSet])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe [CharacterSet]
supportedCharacterSets :: Maybe [CharacterSet]
$sel:supportedCharacterSets:DBEngineVersion' :: DBEngineVersion -> Maybe [CharacterSet]
supportedCharacterSets} -> Maybe [CharacterSet]
supportedCharacterSets) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe [CharacterSet]
a -> DBEngineVersion
s {$sel:supportedCharacterSets:DBEngineVersion' :: Maybe [CharacterSet]
supportedCharacterSets = Maybe [CharacterSet]
a} :: DBEngineVersion) ((Maybe [CharacterSet] -> f (Maybe [CharacterSet]))
 -> DBEngineVersion -> f DBEngineVersion)
-> ((Maybe [CharacterSet] -> f (Maybe [CharacterSet]))
    -> Maybe [CharacterSet] -> f (Maybe [CharacterSet]))
-> (Maybe [CharacterSet] -> f (Maybe [CharacterSet]))
-> DBEngineVersion
-> f DBEngineVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [CharacterSet] [CharacterSet] [CharacterSet] [CharacterSet]
-> Iso
     (Maybe [CharacterSet])
     (Maybe [CharacterSet])
     (Maybe [CharacterSet])
     (Maybe [CharacterSet])
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 [CharacterSet] [CharacterSet] [CharacterSet] [CharacterSet]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The description of the database engine.
dbEngineVersion_dbEngineDescription :: Lens.Lens' DBEngineVersion (Prelude.Maybe Prelude.Text)
dbEngineVersion_dbEngineDescription :: (Maybe Text -> f (Maybe Text))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_dbEngineDescription = (DBEngineVersion -> Maybe Text)
-> (DBEngineVersion -> Maybe Text -> DBEngineVersion)
-> Lens DBEngineVersion DBEngineVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe Text
dbEngineDescription :: Maybe Text
$sel:dbEngineDescription:DBEngineVersion' :: DBEngineVersion -> Maybe Text
dbEngineDescription} -> Maybe Text
dbEngineDescription) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe Text
a -> DBEngineVersion
s {$sel:dbEngineDescription:DBEngineVersion' :: Maybe Text
dbEngineDescription = Maybe Text
a} :: DBEngineVersion)

-- | A value that indicates whether you can use Aurora global databases with
-- a specific DB engine version.
dbEngineVersion_supportsGlobalDatabases :: Lens.Lens' DBEngineVersion (Prelude.Maybe Prelude.Bool)
dbEngineVersion_supportsGlobalDatabases :: (Maybe Bool -> f (Maybe Bool))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_supportsGlobalDatabases = (DBEngineVersion -> Maybe Bool)
-> (DBEngineVersion -> Maybe Bool -> DBEngineVersion)
-> Lens DBEngineVersion DBEngineVersion (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe Bool
supportsGlobalDatabases :: Maybe Bool
$sel:supportsGlobalDatabases:DBEngineVersion' :: DBEngineVersion -> Maybe Bool
supportsGlobalDatabases} -> Maybe Bool
supportsGlobalDatabases) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe Bool
a -> DBEngineVersion
s {$sel:supportsGlobalDatabases:DBEngineVersion' :: Maybe Bool
supportsGlobalDatabases = Maybe Bool
a} :: DBEngineVersion)

-- | A list of engine versions that this database engine version can be
-- upgraded to.
dbEngineVersion_validUpgradeTarget :: Lens.Lens' DBEngineVersion (Prelude.Maybe [UpgradeTarget])
dbEngineVersion_validUpgradeTarget :: (Maybe [UpgradeTarget] -> f (Maybe [UpgradeTarget]))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_validUpgradeTarget = (DBEngineVersion -> Maybe [UpgradeTarget])
-> (DBEngineVersion -> Maybe [UpgradeTarget] -> DBEngineVersion)
-> Lens
     DBEngineVersion
     DBEngineVersion
     (Maybe [UpgradeTarget])
     (Maybe [UpgradeTarget])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe [UpgradeTarget]
validUpgradeTarget :: Maybe [UpgradeTarget]
$sel:validUpgradeTarget:DBEngineVersion' :: DBEngineVersion -> Maybe [UpgradeTarget]
validUpgradeTarget} -> Maybe [UpgradeTarget]
validUpgradeTarget) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe [UpgradeTarget]
a -> DBEngineVersion
s {$sel:validUpgradeTarget:DBEngineVersion' :: Maybe [UpgradeTarget]
validUpgradeTarget = Maybe [UpgradeTarget]
a} :: DBEngineVersion) ((Maybe [UpgradeTarget] -> f (Maybe [UpgradeTarget]))
 -> DBEngineVersion -> f DBEngineVersion)
-> ((Maybe [UpgradeTarget] -> f (Maybe [UpgradeTarget]))
    -> Maybe [UpgradeTarget] -> f (Maybe [UpgradeTarget]))
-> (Maybe [UpgradeTarget] -> f (Maybe [UpgradeTarget]))
-> DBEngineVersion
-> f DBEngineVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [UpgradeTarget] [UpgradeTarget] [UpgradeTarget] [UpgradeTarget]
-> Iso
     (Maybe [UpgradeTarget])
     (Maybe [UpgradeTarget])
     (Maybe [UpgradeTarget])
     (Maybe [UpgradeTarget])
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
  [UpgradeTarget] [UpgradeTarget] [UpgradeTarget] [UpgradeTarget]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A value that indicates whether you can use Aurora parallel query with a
-- specific DB engine version.
dbEngineVersion_supportsParallelQuery :: Lens.Lens' DBEngineVersion (Prelude.Maybe Prelude.Bool)
dbEngineVersion_supportsParallelQuery :: (Maybe Bool -> f (Maybe Bool))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_supportsParallelQuery = (DBEngineVersion -> Maybe Bool)
-> (DBEngineVersion -> Maybe Bool -> DBEngineVersion)
-> Lens DBEngineVersion DBEngineVersion (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe Bool
supportsParallelQuery :: Maybe Bool
$sel:supportsParallelQuery:DBEngineVersion' :: DBEngineVersion -> Maybe Bool
supportsParallelQuery} -> Maybe Bool
supportsParallelQuery) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe Bool
a -> DBEngineVersion
s {$sel:supportsParallelQuery:DBEngineVersion' :: Maybe Bool
supportsParallelQuery = Maybe Bool
a} :: DBEngineVersion)

-- | A list of the character sets supported by the Oracle DB engine for the
-- @NcharCharacterSetName@ parameter of the @CreateDBInstance@ operation.
dbEngineVersion_supportedNcharCharacterSets :: Lens.Lens' DBEngineVersion (Prelude.Maybe [CharacterSet])
dbEngineVersion_supportedNcharCharacterSets :: (Maybe [CharacterSet] -> f (Maybe [CharacterSet]))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_supportedNcharCharacterSets = (DBEngineVersion -> Maybe [CharacterSet])
-> (DBEngineVersion -> Maybe [CharacterSet] -> DBEngineVersion)
-> Lens
     DBEngineVersion
     DBEngineVersion
     (Maybe [CharacterSet])
     (Maybe [CharacterSet])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe [CharacterSet]
supportedNcharCharacterSets :: Maybe [CharacterSet]
$sel:supportedNcharCharacterSets:DBEngineVersion' :: DBEngineVersion -> Maybe [CharacterSet]
supportedNcharCharacterSets} -> Maybe [CharacterSet]
supportedNcharCharacterSets) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe [CharacterSet]
a -> DBEngineVersion
s {$sel:supportedNcharCharacterSets:DBEngineVersion' :: Maybe [CharacterSet]
supportedNcharCharacterSets = Maybe [CharacterSet]
a} :: DBEngineVersion) ((Maybe [CharacterSet] -> f (Maybe [CharacterSet]))
 -> DBEngineVersion -> f DBEngineVersion)
-> ((Maybe [CharacterSet] -> f (Maybe [CharacterSet]))
    -> Maybe [CharacterSet] -> f (Maybe [CharacterSet]))
-> (Maybe [CharacterSet] -> f (Maybe [CharacterSet]))
-> DBEngineVersion
-> f DBEngineVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [CharacterSet] [CharacterSet] [CharacterSet] [CharacterSet]
-> Iso
     (Maybe [CharacterSet])
     (Maybe [CharacterSet])
     (Maybe [CharacterSet])
     (Maybe [CharacterSet])
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 [CharacterSet] [CharacterSet] [CharacterSet] [CharacterSet]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A value that indicates whether the engine version supports exporting the
-- log types specified by ExportableLogTypes to CloudWatch Logs.
dbEngineVersion_supportsLogExportsToCloudwatchLogs :: Lens.Lens' DBEngineVersion (Prelude.Maybe Prelude.Bool)
dbEngineVersion_supportsLogExportsToCloudwatchLogs :: (Maybe Bool -> f (Maybe Bool))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_supportsLogExportsToCloudwatchLogs = (DBEngineVersion -> Maybe Bool)
-> (DBEngineVersion -> Maybe Bool -> DBEngineVersion)
-> Lens DBEngineVersion DBEngineVersion (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe Bool
supportsLogExportsToCloudwatchLogs :: Maybe Bool
$sel:supportsLogExportsToCloudwatchLogs:DBEngineVersion' :: DBEngineVersion -> Maybe Bool
supportsLogExportsToCloudwatchLogs} -> Maybe Bool
supportsLogExportsToCloudwatchLogs) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe Bool
a -> DBEngineVersion
s {$sel:supportsLogExportsToCloudwatchLogs:DBEngineVersion' :: Maybe Bool
supportsLogExportsToCloudwatchLogs = Maybe Bool
a} :: DBEngineVersion)

-- | Indicates whether the database engine version supports read replicas.
dbEngineVersion_supportsReadReplica :: Lens.Lens' DBEngineVersion (Prelude.Maybe Prelude.Bool)
dbEngineVersion_supportsReadReplica :: (Maybe Bool -> f (Maybe Bool))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_supportsReadReplica = (DBEngineVersion -> Maybe Bool)
-> (DBEngineVersion -> Maybe Bool -> DBEngineVersion)
-> Lens DBEngineVersion DBEngineVersion (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe Bool
supportsReadReplica :: Maybe Bool
$sel:supportsReadReplica:DBEngineVersion' :: DBEngineVersion -> Maybe Bool
supportsReadReplica} -> Maybe Bool
supportsReadReplica) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe Bool
a -> DBEngineVersion
s {$sel:supportsReadReplica:DBEngineVersion' :: Maybe Bool
supportsReadReplica = Maybe Bool
a} :: DBEngineVersion)

-- | A list of features supported by the DB engine. Supported feature names
-- include the following.
--
-- -   s3Import
dbEngineVersion_supportedFeatureNames :: Lens.Lens' DBEngineVersion (Prelude.Maybe [Prelude.Text])
dbEngineVersion_supportedFeatureNames :: (Maybe [Text] -> f (Maybe [Text]))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_supportedFeatureNames = (DBEngineVersion -> Maybe [Text])
-> (DBEngineVersion -> Maybe [Text] -> DBEngineVersion)
-> Lens
     DBEngineVersion DBEngineVersion (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe [Text]
supportedFeatureNames :: Maybe [Text]
$sel:supportedFeatureNames:DBEngineVersion' :: DBEngineVersion -> Maybe [Text]
supportedFeatureNames} -> Maybe [Text]
supportedFeatureNames) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe [Text]
a -> DBEngineVersion
s {$sel:supportedFeatureNames:DBEngineVersion' :: Maybe [Text]
supportedFeatureNames = Maybe [Text]
a} :: DBEngineVersion) ((Maybe [Text] -> f (Maybe [Text]))
 -> DBEngineVersion -> f DBEngineVersion)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DBEngineVersion
-> f DBEngineVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of the time zones supported by this engine for the @Timezone@
-- parameter of the @CreateDBInstance@ action.
dbEngineVersion_supportedTimezones :: Lens.Lens' DBEngineVersion (Prelude.Maybe [Timezone])
dbEngineVersion_supportedTimezones :: (Maybe [Timezone] -> f (Maybe [Timezone]))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_supportedTimezones = (DBEngineVersion -> Maybe [Timezone])
-> (DBEngineVersion -> Maybe [Timezone] -> DBEngineVersion)
-> Lens
     DBEngineVersion
     DBEngineVersion
     (Maybe [Timezone])
     (Maybe [Timezone])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe [Timezone]
supportedTimezones :: Maybe [Timezone]
$sel:supportedTimezones:DBEngineVersion' :: DBEngineVersion -> Maybe [Timezone]
supportedTimezones} -> Maybe [Timezone]
supportedTimezones) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe [Timezone]
a -> DBEngineVersion
s {$sel:supportedTimezones:DBEngineVersion' :: Maybe [Timezone]
supportedTimezones = Maybe [Timezone]
a} :: DBEngineVersion) ((Maybe [Timezone] -> f (Maybe [Timezone]))
 -> DBEngineVersion -> f DBEngineVersion)
-> ((Maybe [Timezone] -> f (Maybe [Timezone]))
    -> Maybe [Timezone] -> f (Maybe [Timezone]))
-> (Maybe [Timezone] -> f (Maybe [Timezone]))
-> DBEngineVersion
-> f DBEngineVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Timezone] [Timezone] [Timezone] [Timezone]
-> Iso
     (Maybe [Timezone])
     (Maybe [Timezone])
     (Maybe [Timezone])
     (Maybe [Timezone])
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 [Timezone] [Timezone] [Timezone] [Timezone]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The types of logs that the database engine has available for export to
-- CloudWatch Logs.
dbEngineVersion_exportableLogTypes :: Lens.Lens' DBEngineVersion (Prelude.Maybe [Prelude.Text])
dbEngineVersion_exportableLogTypes :: (Maybe [Text] -> f (Maybe [Text]))
-> DBEngineVersion -> f DBEngineVersion
dbEngineVersion_exportableLogTypes = (DBEngineVersion -> Maybe [Text])
-> (DBEngineVersion -> Maybe [Text] -> DBEngineVersion)
-> Lens
     DBEngineVersion DBEngineVersion (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBEngineVersion' {Maybe [Text]
exportableLogTypes :: Maybe [Text]
$sel:exportableLogTypes:DBEngineVersion' :: DBEngineVersion -> Maybe [Text]
exportableLogTypes} -> Maybe [Text]
exportableLogTypes) (\s :: DBEngineVersion
s@DBEngineVersion' {} Maybe [Text]
a -> DBEngineVersion
s {$sel:exportableLogTypes:DBEngineVersion' :: Maybe [Text]
exportableLogTypes = Maybe [Text]
a} :: DBEngineVersion) ((Maybe [Text] -> f (Maybe [Text]))
 -> DBEngineVersion -> f DBEngineVersion)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DBEngineVersion
-> f DBEngineVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromXML DBEngineVersion where
  parseXML :: [Node] -> Either String DBEngineVersion
parseXML [Node]
x =
    Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe CharacterSet
-> Maybe Text
-> Maybe Text
-> Maybe [CharacterSet]
-> Maybe Text
-> Maybe Bool
-> Maybe [UpgradeTarget]
-> Maybe Bool
-> Maybe [CharacterSet]
-> Maybe Bool
-> Maybe Bool
-> Maybe [Text]
-> Maybe [Timezone]
-> Maybe [Text]
-> DBEngineVersion
DBEngineVersion'
      (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe [Text]
 -> Maybe CharacterSet
 -> Maybe Text
 -> Maybe Text
 -> Maybe [CharacterSet]
 -> Maybe Text
 -> Maybe Bool
 -> Maybe [UpgradeTarget]
 -> Maybe Bool
 -> Maybe [CharacterSet]
 -> Maybe Bool
 -> Maybe Bool
 -> Maybe [Text]
 -> Maybe [Timezone]
 -> Maybe [Text]
 -> DBEngineVersion)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe CharacterSet
      -> Maybe Text
      -> Maybe Text
      -> Maybe [CharacterSet]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe [UpgradeTarget]
      -> Maybe Bool
      -> Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
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
"EngineVersion")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe CharacterSet
   -> Maybe Text
   -> Maybe Text
   -> Maybe [CharacterSet]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe [UpgradeTarget]
   -> Maybe Bool
   -> Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe [Text]
      -> Maybe CharacterSet
      -> Maybe Text
      -> Maybe Text
      -> Maybe [CharacterSet]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe [UpgradeTarget]
      -> Maybe Bool
      -> Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
forall (f :: * -> *) a b. Applicative f => 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
"Status")
      Either
  String
  (Maybe Text
   -> Maybe [Text]
   -> Maybe CharacterSet
   -> Maybe Text
   -> Maybe Text
   -> Maybe [CharacterSet]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe [UpgradeTarget]
   -> Maybe Bool
   -> Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [Text]
      -> Maybe CharacterSet
      -> Maybe Text
      -> Maybe Text
      -> Maybe [CharacterSet]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe [UpgradeTarget]
      -> Maybe Bool
      -> Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
forall (f :: * -> *) a b. Applicative f => 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
"DBEngineVersionDescription")
      Either
  String
  (Maybe [Text]
   -> Maybe CharacterSet
   -> Maybe Text
   -> Maybe Text
   -> Maybe [CharacterSet]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe [UpgradeTarget]
   -> Maybe Bool
   -> Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe CharacterSet
      -> Maybe Text
      -> Maybe Text
      -> Maybe [CharacterSet]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe [UpgradeTarget]
      -> Maybe Bool
      -> Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
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
"SupportedEngineModes"
                      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 [Text]))
-> Either String (Maybe [Text])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Text])
-> [Node] -> Either String (Maybe [Text])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Text]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
                  )
      Either
  String
  (Maybe CharacterSet
   -> Maybe Text
   -> Maybe Text
   -> Maybe [CharacterSet]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe [UpgradeTarget]
   -> Maybe Bool
   -> Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe CharacterSet)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe [CharacterSet]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe [UpgradeTarget]
      -> Maybe Bool
      -> Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe CharacterSet)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DefaultCharacterSet")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe [CharacterSet]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe [UpgradeTarget]
   -> Maybe Bool
   -> Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe [CharacterSet]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe [UpgradeTarget]
      -> Maybe Bool
      -> Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
forall (f :: * -> *) a b. Applicative f => 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
"Engine")
      Either
  String
  (Maybe Text
   -> Maybe [CharacterSet]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe [UpgradeTarget]
   -> Maybe Bool
   -> Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [CharacterSet]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe [UpgradeTarget]
      -> Maybe Bool
      -> Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
forall (f :: * -> *) a b. Applicative f => 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
"DBParameterGroupFamily")
      Either
  String
  (Maybe [CharacterSet]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe [UpgradeTarget]
   -> Maybe Bool
   -> Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe [CharacterSet])
-> Either
     String
     (Maybe Text
      -> Maybe Bool
      -> Maybe [UpgradeTarget]
      -> Maybe Bool
      -> Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
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
"SupportedCharacterSets"
                      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 [CharacterSet]))
-> Either String (Maybe [CharacterSet])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [CharacterSet])
-> [Node] -> Either String (Maybe [CharacterSet])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [CharacterSet]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"CharacterSet")
                  )
      Either
  String
  (Maybe Text
   -> Maybe Bool
   -> Maybe [UpgradeTarget]
   -> Maybe Bool
   -> Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Bool
      -> Maybe [UpgradeTarget]
      -> Maybe Bool
      -> Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
forall (f :: * -> *) a b. Applicative f => 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
"DBEngineDescription")
      Either
  String
  (Maybe Bool
   -> Maybe [UpgradeTarget]
   -> Maybe Bool
   -> Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe [UpgradeTarget]
      -> Maybe Bool
      -> Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SupportsGlobalDatabases")
      Either
  String
  (Maybe [UpgradeTarget]
   -> Maybe Bool
   -> Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe [UpgradeTarget])
-> Either
     String
     (Maybe Bool
      -> Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
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
"ValidUpgradeTarget"
                      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 [UpgradeTarget]))
-> Either String (Maybe [UpgradeTarget])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [UpgradeTarget])
-> [Node] -> Either String (Maybe [UpgradeTarget])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [UpgradeTarget]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"UpgradeTarget")
                  )
      Either
  String
  (Maybe Bool
   -> Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe [CharacterSet]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SupportsParallelQuery")
      Either
  String
  (Maybe [CharacterSet]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe [CharacterSet])
-> Either
     String
     (Maybe Bool
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
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
"SupportedNcharCharacterSets"
                      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 [CharacterSet]))
-> Either String (Maybe [CharacterSet])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [CharacterSet])
-> [Node] -> Either String (Maybe [CharacterSet])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [CharacterSet]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"CharacterSet")
                  )
      Either
  String
  (Maybe Bool
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Bool
      -> Maybe [Text]
      -> Maybe [Timezone]
      -> Maybe [Text]
      -> DBEngineVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SupportsLogExportsToCloudwatchLogs")
      Either
  String
  (Maybe Bool
   -> Maybe [Text]
   -> Maybe [Timezone]
   -> Maybe [Text]
   -> DBEngineVersion)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe [Text]
      -> Maybe [Timezone] -> Maybe [Text] -> DBEngineVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SupportsReadReplica")
      Either
  String
  (Maybe [Text]
   -> Maybe [Timezone] -> Maybe [Text] -> DBEngineVersion)
-> Either String (Maybe [Text])
-> Either
     String (Maybe [Timezone] -> Maybe [Text] -> DBEngineVersion)
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
"SupportedFeatureNames"
                      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 [Text]))
-> Either String (Maybe [Text])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Text])
-> [Node] -> Either String (Maybe [Text])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Text]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
                  )
      Either String (Maybe [Timezone] -> Maybe [Text] -> DBEngineVersion)
-> Either String (Maybe [Timezone])
-> Either String (Maybe [Text] -> DBEngineVersion)
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
"SupportedTimezones"
                      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 [Timezone]))
-> Either String (Maybe [Timezone])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Timezone])
-> [Node] -> Either String (Maybe [Timezone])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Timezone]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"Timezone")
                  )
      Either String (Maybe [Text] -> DBEngineVersion)
-> Either String (Maybe [Text]) -> Either String DBEngineVersion
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
"ExportableLogTypes"
                      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 [Text]))
-> Either String (Maybe [Text])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Text])
-> [Node] -> Either String (Maybe [Text])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Text]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
                  )

instance Prelude.Hashable DBEngineVersion

instance Prelude.NFData DBEngineVersion