{-# 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.Neptune.Types.OrderableDBInstanceOption
-- 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.Neptune.Types.OrderableDBInstanceOption where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Neptune.Types.AvailabilityZone
import qualified Amazonka.Prelude as Prelude

-- | Contains a list of available options for a DB instance.
--
-- This data type is used as a response element in the
-- DescribeOrderableDBInstanceOptions action.
--
-- /See:/ 'newOrderableDBInstanceOption' smart constructor.
data OrderableDBInstanceOption = OrderableDBInstanceOption'
  { -- | The engine version of a DB instance.
    OrderableDBInstanceOption -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
    -- | Minimum provisioned IOPS per GiB for a DB instance.
    OrderableDBInstanceOption -> Maybe Double
minIopsPerGib :: Prelude.Maybe Prelude.Double,
    -- | Indicates whether a DB instance supports IAM database authentication.
    OrderableDBInstanceOption -> Maybe Bool
supportsIAMDatabaseAuthentication :: Prelude.Maybe Prelude.Bool,
    -- | Minimum total provisioned IOPS for a DB instance.
    OrderableDBInstanceOption -> Maybe Int
minIopsPerDbInstance :: Prelude.Maybe Prelude.Int,
    -- | Indicates whether a DB instance is Multi-AZ capable.
    OrderableDBInstanceOption -> Maybe Bool
multiAZCapable :: Prelude.Maybe Prelude.Bool,
    -- | Maximum storage size for a DB instance.
    OrderableDBInstanceOption -> Maybe Int
maxStorageSize :: Prelude.Maybe Prelude.Int,
    -- | The engine type of a DB instance.
    OrderableDBInstanceOption -> Maybe Text
engine :: Prelude.Maybe Prelude.Text,
    -- | Minimum storage size for a DB instance.
    OrderableDBInstanceOption -> Maybe Int
minStorageSize :: Prelude.Maybe Prelude.Int,
    -- | Indicates whether a DB instance supports provisioned IOPS.
    OrderableDBInstanceOption -> Maybe Bool
supportsIops :: Prelude.Maybe Prelude.Bool,
    -- | /(Not supported by Neptune)/
    OrderableDBInstanceOption -> Maybe Bool
supportsPerformanceInsights :: Prelude.Maybe Prelude.Bool,
    -- | The DB instance class for a DB instance.
    OrderableDBInstanceOption -> Maybe Text
dbInstanceClass :: Prelude.Maybe Prelude.Text,
    -- | The license model for a DB instance.
    OrderableDBInstanceOption -> Maybe Text
licenseModel :: Prelude.Maybe Prelude.Text,
    -- | A list of Availability Zones for a DB instance.
    OrderableDBInstanceOption -> Maybe [AvailabilityZone]
availabilityZones :: Prelude.Maybe [AvailabilityZone],
    -- | Indicates whether a DB instance supports encrypted storage.
    OrderableDBInstanceOption -> Maybe Bool
supportsStorageEncryption :: Prelude.Maybe Prelude.Bool,
    -- | Indicates whether a DB instance can have a Read Replica.
    OrderableDBInstanceOption -> Maybe Bool
readReplicaCapable :: Prelude.Maybe Prelude.Bool,
    -- | Maximum provisioned IOPS per GiB for a DB instance.
    OrderableDBInstanceOption -> Maybe Double
maxIopsPerGib :: Prelude.Maybe Prelude.Double,
    -- | Indicates whether a DB instance is in a VPC.
    OrderableDBInstanceOption -> Maybe Bool
vpc :: Prelude.Maybe Prelude.Bool,
    -- | Indicates whether a DB instance supports Enhanced Monitoring at
    -- intervals from 1 to 60 seconds.
    OrderableDBInstanceOption -> Maybe Bool
supportsEnhancedMonitoring :: Prelude.Maybe Prelude.Bool,
    -- | Maximum total provisioned IOPS for a DB instance.
    OrderableDBInstanceOption -> Maybe Int
maxIopsPerDbInstance :: Prelude.Maybe Prelude.Int,
    -- | Indicates the storage type for a DB instance.
    OrderableDBInstanceOption -> Maybe Text
storageType :: Prelude.Maybe Prelude.Text
  }
  deriving (OrderableDBInstanceOption -> OrderableDBInstanceOption -> Bool
(OrderableDBInstanceOption -> OrderableDBInstanceOption -> Bool)
-> (OrderableDBInstanceOption -> OrderableDBInstanceOption -> Bool)
-> Eq OrderableDBInstanceOption
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OrderableDBInstanceOption -> OrderableDBInstanceOption -> Bool
$c/= :: OrderableDBInstanceOption -> OrderableDBInstanceOption -> Bool
== :: OrderableDBInstanceOption -> OrderableDBInstanceOption -> Bool
$c== :: OrderableDBInstanceOption -> OrderableDBInstanceOption -> Bool
Prelude.Eq, ReadPrec [OrderableDBInstanceOption]
ReadPrec OrderableDBInstanceOption
Int -> ReadS OrderableDBInstanceOption
ReadS [OrderableDBInstanceOption]
(Int -> ReadS OrderableDBInstanceOption)
-> ReadS [OrderableDBInstanceOption]
-> ReadPrec OrderableDBInstanceOption
-> ReadPrec [OrderableDBInstanceOption]
-> Read OrderableDBInstanceOption
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OrderableDBInstanceOption]
$creadListPrec :: ReadPrec [OrderableDBInstanceOption]
readPrec :: ReadPrec OrderableDBInstanceOption
$creadPrec :: ReadPrec OrderableDBInstanceOption
readList :: ReadS [OrderableDBInstanceOption]
$creadList :: ReadS [OrderableDBInstanceOption]
readsPrec :: Int -> ReadS OrderableDBInstanceOption
$creadsPrec :: Int -> ReadS OrderableDBInstanceOption
Prelude.Read, Int -> OrderableDBInstanceOption -> ShowS
[OrderableDBInstanceOption] -> ShowS
OrderableDBInstanceOption -> String
(Int -> OrderableDBInstanceOption -> ShowS)
-> (OrderableDBInstanceOption -> String)
-> ([OrderableDBInstanceOption] -> ShowS)
-> Show OrderableDBInstanceOption
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OrderableDBInstanceOption] -> ShowS
$cshowList :: [OrderableDBInstanceOption] -> ShowS
show :: OrderableDBInstanceOption -> String
$cshow :: OrderableDBInstanceOption -> String
showsPrec :: Int -> OrderableDBInstanceOption -> ShowS
$cshowsPrec :: Int -> OrderableDBInstanceOption -> ShowS
Prelude.Show, (forall x.
 OrderableDBInstanceOption -> Rep OrderableDBInstanceOption x)
-> (forall x.
    Rep OrderableDBInstanceOption x -> OrderableDBInstanceOption)
-> Generic OrderableDBInstanceOption
forall x.
Rep OrderableDBInstanceOption x -> OrderableDBInstanceOption
forall x.
OrderableDBInstanceOption -> Rep OrderableDBInstanceOption x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep OrderableDBInstanceOption x -> OrderableDBInstanceOption
$cfrom :: forall x.
OrderableDBInstanceOption -> Rep OrderableDBInstanceOption x
Prelude.Generic)

-- |
-- Create a value of 'OrderableDBInstanceOption' 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', 'orderableDBInstanceOption_engineVersion' - The engine version of a DB instance.
--
-- 'minIopsPerGib', 'orderableDBInstanceOption_minIopsPerGib' - Minimum provisioned IOPS per GiB for a DB instance.
--
-- 'supportsIAMDatabaseAuthentication', 'orderableDBInstanceOption_supportsIAMDatabaseAuthentication' - Indicates whether a DB instance supports IAM database authentication.
--
-- 'minIopsPerDbInstance', 'orderableDBInstanceOption_minIopsPerDbInstance' - Minimum total provisioned IOPS for a DB instance.
--
-- 'multiAZCapable', 'orderableDBInstanceOption_multiAZCapable' - Indicates whether a DB instance is Multi-AZ capable.
--
-- 'maxStorageSize', 'orderableDBInstanceOption_maxStorageSize' - Maximum storage size for a DB instance.
--
-- 'engine', 'orderableDBInstanceOption_engine' - The engine type of a DB instance.
--
-- 'minStorageSize', 'orderableDBInstanceOption_minStorageSize' - Minimum storage size for a DB instance.
--
-- 'supportsIops', 'orderableDBInstanceOption_supportsIops' - Indicates whether a DB instance supports provisioned IOPS.
--
-- 'supportsPerformanceInsights', 'orderableDBInstanceOption_supportsPerformanceInsights' - /(Not supported by Neptune)/
--
-- 'dbInstanceClass', 'orderableDBInstanceOption_dbInstanceClass' - The DB instance class for a DB instance.
--
-- 'licenseModel', 'orderableDBInstanceOption_licenseModel' - The license model for a DB instance.
--
-- 'availabilityZones', 'orderableDBInstanceOption_availabilityZones' - A list of Availability Zones for a DB instance.
--
-- 'supportsStorageEncryption', 'orderableDBInstanceOption_supportsStorageEncryption' - Indicates whether a DB instance supports encrypted storage.
--
-- 'readReplicaCapable', 'orderableDBInstanceOption_readReplicaCapable' - Indicates whether a DB instance can have a Read Replica.
--
-- 'maxIopsPerGib', 'orderableDBInstanceOption_maxIopsPerGib' - Maximum provisioned IOPS per GiB for a DB instance.
--
-- 'vpc', 'orderableDBInstanceOption_vpc' - Indicates whether a DB instance is in a VPC.
--
-- 'supportsEnhancedMonitoring', 'orderableDBInstanceOption_supportsEnhancedMonitoring' - Indicates whether a DB instance supports Enhanced Monitoring at
-- intervals from 1 to 60 seconds.
--
-- 'maxIopsPerDbInstance', 'orderableDBInstanceOption_maxIopsPerDbInstance' - Maximum total provisioned IOPS for a DB instance.
--
-- 'storageType', 'orderableDBInstanceOption_storageType' - Indicates the storage type for a DB instance.
newOrderableDBInstanceOption ::
  OrderableDBInstanceOption
newOrderableDBInstanceOption :: OrderableDBInstanceOption
newOrderableDBInstanceOption =
  OrderableDBInstanceOption' :: Maybe Text
-> Maybe Double
-> Maybe Bool
-> Maybe Int
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Bool
-> Maybe Bool
-> Maybe Double
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> OrderableDBInstanceOption
OrderableDBInstanceOption'
    { $sel:engineVersion:OrderableDBInstanceOption' :: Maybe Text
engineVersion =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:minIopsPerGib:OrderableDBInstanceOption' :: Maybe Double
minIopsPerGib = Maybe Double
forall a. Maybe a
Prelude.Nothing,
      $sel:supportsIAMDatabaseAuthentication:OrderableDBInstanceOption' :: Maybe Bool
supportsIAMDatabaseAuthentication =
        Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:minIopsPerDbInstance:OrderableDBInstanceOption' :: Maybe Int
minIopsPerDbInstance = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:multiAZCapable:OrderableDBInstanceOption' :: Maybe Bool
multiAZCapable = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:maxStorageSize:OrderableDBInstanceOption' :: Maybe Int
maxStorageSize = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:engine:OrderableDBInstanceOption' :: Maybe Text
engine = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:minStorageSize:OrderableDBInstanceOption' :: Maybe Int
minStorageSize = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:supportsIops:OrderableDBInstanceOption' :: Maybe Bool
supportsIops = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:supportsPerformanceInsights:OrderableDBInstanceOption' :: Maybe Bool
supportsPerformanceInsights = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:dbInstanceClass:OrderableDBInstanceOption' :: Maybe Text
dbInstanceClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:licenseModel:OrderableDBInstanceOption' :: Maybe Text
licenseModel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:availabilityZones:OrderableDBInstanceOption' :: Maybe [AvailabilityZone]
availabilityZones = Maybe [AvailabilityZone]
forall a. Maybe a
Prelude.Nothing,
      $sel:supportsStorageEncryption:OrderableDBInstanceOption' :: Maybe Bool
supportsStorageEncryption = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:readReplicaCapable:OrderableDBInstanceOption' :: Maybe Bool
readReplicaCapable = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:maxIopsPerGib:OrderableDBInstanceOption' :: Maybe Double
maxIopsPerGib = Maybe Double
forall a. Maybe a
Prelude.Nothing,
      $sel:vpc:OrderableDBInstanceOption' :: Maybe Bool
vpc = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:supportsEnhancedMonitoring:OrderableDBInstanceOption' :: Maybe Bool
supportsEnhancedMonitoring = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:maxIopsPerDbInstance:OrderableDBInstanceOption' :: Maybe Int
maxIopsPerDbInstance = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:storageType:OrderableDBInstanceOption' :: Maybe Text
storageType = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The engine version of a DB instance.
orderableDBInstanceOption_engineVersion :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Text)
orderableDBInstanceOption_engineVersion :: (Maybe Text -> f (Maybe Text))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_engineVersion = (OrderableDBInstanceOption -> Maybe Text)
-> (OrderableDBInstanceOption
    -> Maybe Text -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Text
a -> OrderableDBInstanceOption
s {$sel:engineVersion:OrderableDBInstanceOption' :: Maybe Text
engineVersion = Maybe Text
a} :: OrderableDBInstanceOption)

-- | Minimum provisioned IOPS per GiB for a DB instance.
orderableDBInstanceOption_minIopsPerGib :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Double)
orderableDBInstanceOption_minIopsPerGib :: (Maybe Double -> f (Maybe Double))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_minIopsPerGib = (OrderableDBInstanceOption -> Maybe Double)
-> (OrderableDBInstanceOption
    -> Maybe Double -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Double)
     (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Double
minIopsPerGib :: Maybe Double
$sel:minIopsPerGib:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Double
minIopsPerGib} -> Maybe Double
minIopsPerGib) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Double
a -> OrderableDBInstanceOption
s {$sel:minIopsPerGib:OrderableDBInstanceOption' :: Maybe Double
minIopsPerGib = Maybe Double
a} :: OrderableDBInstanceOption)

-- | Indicates whether a DB instance supports IAM database authentication.
orderableDBInstanceOption_supportsIAMDatabaseAuthentication :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Bool)
orderableDBInstanceOption_supportsIAMDatabaseAuthentication :: (Maybe Bool -> f (Maybe Bool))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_supportsIAMDatabaseAuthentication = (OrderableDBInstanceOption -> Maybe Bool)
-> (OrderableDBInstanceOption
    -> Maybe Bool -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Bool
supportsIAMDatabaseAuthentication :: Maybe Bool
$sel:supportsIAMDatabaseAuthentication:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Bool
supportsIAMDatabaseAuthentication} -> Maybe Bool
supportsIAMDatabaseAuthentication) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Bool
a -> OrderableDBInstanceOption
s {$sel:supportsIAMDatabaseAuthentication:OrderableDBInstanceOption' :: Maybe Bool
supportsIAMDatabaseAuthentication = Maybe Bool
a} :: OrderableDBInstanceOption)

-- | Minimum total provisioned IOPS for a DB instance.
orderableDBInstanceOption_minIopsPerDbInstance :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Int)
orderableDBInstanceOption_minIopsPerDbInstance :: (Maybe Int -> f (Maybe Int))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_minIopsPerDbInstance = (OrderableDBInstanceOption -> Maybe Int)
-> (OrderableDBInstanceOption
    -> Maybe Int -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Int
minIopsPerDbInstance :: Maybe Int
$sel:minIopsPerDbInstance:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Int
minIopsPerDbInstance} -> Maybe Int
minIopsPerDbInstance) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Int
a -> OrderableDBInstanceOption
s {$sel:minIopsPerDbInstance:OrderableDBInstanceOption' :: Maybe Int
minIopsPerDbInstance = Maybe Int
a} :: OrderableDBInstanceOption)

-- | Indicates whether a DB instance is Multi-AZ capable.
orderableDBInstanceOption_multiAZCapable :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Bool)
orderableDBInstanceOption_multiAZCapable :: (Maybe Bool -> f (Maybe Bool))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_multiAZCapable = (OrderableDBInstanceOption -> Maybe Bool)
-> (OrderableDBInstanceOption
    -> Maybe Bool -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Bool
multiAZCapable :: Maybe Bool
$sel:multiAZCapable:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Bool
multiAZCapable} -> Maybe Bool
multiAZCapable) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Bool
a -> OrderableDBInstanceOption
s {$sel:multiAZCapable:OrderableDBInstanceOption' :: Maybe Bool
multiAZCapable = Maybe Bool
a} :: OrderableDBInstanceOption)

-- | Maximum storage size for a DB instance.
orderableDBInstanceOption_maxStorageSize :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Int)
orderableDBInstanceOption_maxStorageSize :: (Maybe Int -> f (Maybe Int))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_maxStorageSize = (OrderableDBInstanceOption -> Maybe Int)
-> (OrderableDBInstanceOption
    -> Maybe Int -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Int
maxStorageSize :: Maybe Int
$sel:maxStorageSize:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Int
maxStorageSize} -> Maybe Int
maxStorageSize) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Int
a -> OrderableDBInstanceOption
s {$sel:maxStorageSize:OrderableDBInstanceOption' :: Maybe Int
maxStorageSize = Maybe Int
a} :: OrderableDBInstanceOption)

-- | The engine type of a DB instance.
orderableDBInstanceOption_engine :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Text)
orderableDBInstanceOption_engine :: (Maybe Text -> f (Maybe Text))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_engine = (OrderableDBInstanceOption -> Maybe Text)
-> (OrderableDBInstanceOption
    -> Maybe Text -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Text
engine :: Maybe Text
$sel:engine:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Text
engine} -> Maybe Text
engine) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Text
a -> OrderableDBInstanceOption
s {$sel:engine:OrderableDBInstanceOption' :: Maybe Text
engine = Maybe Text
a} :: OrderableDBInstanceOption)

-- | Minimum storage size for a DB instance.
orderableDBInstanceOption_minStorageSize :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Int)
orderableDBInstanceOption_minStorageSize :: (Maybe Int -> f (Maybe Int))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_minStorageSize = (OrderableDBInstanceOption -> Maybe Int)
-> (OrderableDBInstanceOption
    -> Maybe Int -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Int
minStorageSize :: Maybe Int
$sel:minStorageSize:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Int
minStorageSize} -> Maybe Int
minStorageSize) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Int
a -> OrderableDBInstanceOption
s {$sel:minStorageSize:OrderableDBInstanceOption' :: Maybe Int
minStorageSize = Maybe Int
a} :: OrderableDBInstanceOption)

-- | Indicates whether a DB instance supports provisioned IOPS.
orderableDBInstanceOption_supportsIops :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Bool)
orderableDBInstanceOption_supportsIops :: (Maybe Bool -> f (Maybe Bool))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_supportsIops = (OrderableDBInstanceOption -> Maybe Bool)
-> (OrderableDBInstanceOption
    -> Maybe Bool -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Bool
supportsIops :: Maybe Bool
$sel:supportsIops:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Bool
supportsIops} -> Maybe Bool
supportsIops) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Bool
a -> OrderableDBInstanceOption
s {$sel:supportsIops:OrderableDBInstanceOption' :: Maybe Bool
supportsIops = Maybe Bool
a} :: OrderableDBInstanceOption)

-- | /(Not supported by Neptune)/
orderableDBInstanceOption_supportsPerformanceInsights :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Bool)
orderableDBInstanceOption_supportsPerformanceInsights :: (Maybe Bool -> f (Maybe Bool))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_supportsPerformanceInsights = (OrderableDBInstanceOption -> Maybe Bool)
-> (OrderableDBInstanceOption
    -> Maybe Bool -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Bool
supportsPerformanceInsights :: Maybe Bool
$sel:supportsPerformanceInsights:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Bool
supportsPerformanceInsights} -> Maybe Bool
supportsPerformanceInsights) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Bool
a -> OrderableDBInstanceOption
s {$sel:supportsPerformanceInsights:OrderableDBInstanceOption' :: Maybe Bool
supportsPerformanceInsights = Maybe Bool
a} :: OrderableDBInstanceOption)

-- | The DB instance class for a DB instance.
orderableDBInstanceOption_dbInstanceClass :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Text)
orderableDBInstanceOption_dbInstanceClass :: (Maybe Text -> f (Maybe Text))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_dbInstanceClass = (OrderableDBInstanceOption -> Maybe Text)
-> (OrderableDBInstanceOption
    -> Maybe Text -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Text
dbInstanceClass :: Maybe Text
$sel:dbInstanceClass:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Text
dbInstanceClass} -> Maybe Text
dbInstanceClass) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Text
a -> OrderableDBInstanceOption
s {$sel:dbInstanceClass:OrderableDBInstanceOption' :: Maybe Text
dbInstanceClass = Maybe Text
a} :: OrderableDBInstanceOption)

-- | The license model for a DB instance.
orderableDBInstanceOption_licenseModel :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Text)
orderableDBInstanceOption_licenseModel :: (Maybe Text -> f (Maybe Text))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_licenseModel = (OrderableDBInstanceOption -> Maybe Text)
-> (OrderableDBInstanceOption
    -> Maybe Text -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Text
licenseModel :: Maybe Text
$sel:licenseModel:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Text
licenseModel} -> Maybe Text
licenseModel) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Text
a -> OrderableDBInstanceOption
s {$sel:licenseModel:OrderableDBInstanceOption' :: Maybe Text
licenseModel = Maybe Text
a} :: OrderableDBInstanceOption)

-- | A list of Availability Zones for a DB instance.
orderableDBInstanceOption_availabilityZones :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe [AvailabilityZone])
orderableDBInstanceOption_availabilityZones :: (Maybe [AvailabilityZone] -> f (Maybe [AvailabilityZone]))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_availabilityZones = (OrderableDBInstanceOption -> Maybe [AvailabilityZone])
-> (OrderableDBInstanceOption
    -> Maybe [AvailabilityZone] -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe [AvailabilityZone])
     (Maybe [AvailabilityZone])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe [AvailabilityZone]
availabilityZones :: Maybe [AvailabilityZone]
$sel:availabilityZones:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe [AvailabilityZone]
availabilityZones} -> Maybe [AvailabilityZone]
availabilityZones) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe [AvailabilityZone]
a -> OrderableDBInstanceOption
s {$sel:availabilityZones:OrderableDBInstanceOption' :: Maybe [AvailabilityZone]
availabilityZones = Maybe [AvailabilityZone]
a} :: OrderableDBInstanceOption) ((Maybe [AvailabilityZone] -> f (Maybe [AvailabilityZone]))
 -> OrderableDBInstanceOption -> f OrderableDBInstanceOption)
-> ((Maybe [AvailabilityZone] -> f (Maybe [AvailabilityZone]))
    -> Maybe [AvailabilityZone] -> f (Maybe [AvailabilityZone]))
-> (Maybe [AvailabilityZone] -> f (Maybe [AvailabilityZone]))
-> OrderableDBInstanceOption
-> f OrderableDBInstanceOption
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AvailabilityZone]
  [AvailabilityZone]
  [AvailabilityZone]
  [AvailabilityZone]
-> Iso
     (Maybe [AvailabilityZone])
     (Maybe [AvailabilityZone])
     (Maybe [AvailabilityZone])
     (Maybe [AvailabilityZone])
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
  [AvailabilityZone]
  [AvailabilityZone]
  [AvailabilityZone]
  [AvailabilityZone]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Indicates whether a DB instance supports encrypted storage.
orderableDBInstanceOption_supportsStorageEncryption :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Bool)
orderableDBInstanceOption_supportsStorageEncryption :: (Maybe Bool -> f (Maybe Bool))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_supportsStorageEncryption = (OrderableDBInstanceOption -> Maybe Bool)
-> (OrderableDBInstanceOption
    -> Maybe Bool -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Bool
supportsStorageEncryption :: Maybe Bool
$sel:supportsStorageEncryption:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Bool
supportsStorageEncryption} -> Maybe Bool
supportsStorageEncryption) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Bool
a -> OrderableDBInstanceOption
s {$sel:supportsStorageEncryption:OrderableDBInstanceOption' :: Maybe Bool
supportsStorageEncryption = Maybe Bool
a} :: OrderableDBInstanceOption)

-- | Indicates whether a DB instance can have a Read Replica.
orderableDBInstanceOption_readReplicaCapable :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Bool)
orderableDBInstanceOption_readReplicaCapable :: (Maybe Bool -> f (Maybe Bool))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_readReplicaCapable = (OrderableDBInstanceOption -> Maybe Bool)
-> (OrderableDBInstanceOption
    -> Maybe Bool -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Bool
readReplicaCapable :: Maybe Bool
$sel:readReplicaCapable:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Bool
readReplicaCapable} -> Maybe Bool
readReplicaCapable) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Bool
a -> OrderableDBInstanceOption
s {$sel:readReplicaCapable:OrderableDBInstanceOption' :: Maybe Bool
readReplicaCapable = Maybe Bool
a} :: OrderableDBInstanceOption)

-- | Maximum provisioned IOPS per GiB for a DB instance.
orderableDBInstanceOption_maxIopsPerGib :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Double)
orderableDBInstanceOption_maxIopsPerGib :: (Maybe Double -> f (Maybe Double))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_maxIopsPerGib = (OrderableDBInstanceOption -> Maybe Double)
-> (OrderableDBInstanceOption
    -> Maybe Double -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Double)
     (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Double
maxIopsPerGib :: Maybe Double
$sel:maxIopsPerGib:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Double
maxIopsPerGib} -> Maybe Double
maxIopsPerGib) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Double
a -> OrderableDBInstanceOption
s {$sel:maxIopsPerGib:OrderableDBInstanceOption' :: Maybe Double
maxIopsPerGib = Maybe Double
a} :: OrderableDBInstanceOption)

-- | Indicates whether a DB instance is in a VPC.
orderableDBInstanceOption_vpc :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Bool)
orderableDBInstanceOption_vpc :: (Maybe Bool -> f (Maybe Bool))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_vpc = (OrderableDBInstanceOption -> Maybe Bool)
-> (OrderableDBInstanceOption
    -> Maybe Bool -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Bool
vpc :: Maybe Bool
$sel:vpc:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Bool
vpc} -> Maybe Bool
vpc) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Bool
a -> OrderableDBInstanceOption
s {$sel:vpc:OrderableDBInstanceOption' :: Maybe Bool
vpc = Maybe Bool
a} :: OrderableDBInstanceOption)

-- | Indicates whether a DB instance supports Enhanced Monitoring at
-- intervals from 1 to 60 seconds.
orderableDBInstanceOption_supportsEnhancedMonitoring :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Bool)
orderableDBInstanceOption_supportsEnhancedMonitoring :: (Maybe Bool -> f (Maybe Bool))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_supportsEnhancedMonitoring = (OrderableDBInstanceOption -> Maybe Bool)
-> (OrderableDBInstanceOption
    -> Maybe Bool -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Bool
supportsEnhancedMonitoring :: Maybe Bool
$sel:supportsEnhancedMonitoring:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Bool
supportsEnhancedMonitoring} -> Maybe Bool
supportsEnhancedMonitoring) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Bool
a -> OrderableDBInstanceOption
s {$sel:supportsEnhancedMonitoring:OrderableDBInstanceOption' :: Maybe Bool
supportsEnhancedMonitoring = Maybe Bool
a} :: OrderableDBInstanceOption)

-- | Maximum total provisioned IOPS for a DB instance.
orderableDBInstanceOption_maxIopsPerDbInstance :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Int)
orderableDBInstanceOption_maxIopsPerDbInstance :: (Maybe Int -> f (Maybe Int))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_maxIopsPerDbInstance = (OrderableDBInstanceOption -> Maybe Int)
-> (OrderableDBInstanceOption
    -> Maybe Int -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Int
maxIopsPerDbInstance :: Maybe Int
$sel:maxIopsPerDbInstance:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Int
maxIopsPerDbInstance} -> Maybe Int
maxIopsPerDbInstance) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Int
a -> OrderableDBInstanceOption
s {$sel:maxIopsPerDbInstance:OrderableDBInstanceOption' :: Maybe Int
maxIopsPerDbInstance = Maybe Int
a} :: OrderableDBInstanceOption)

-- | Indicates the storage type for a DB instance.
orderableDBInstanceOption_storageType :: Lens.Lens' OrderableDBInstanceOption (Prelude.Maybe Prelude.Text)
orderableDBInstanceOption_storageType :: (Maybe Text -> f (Maybe Text))
-> OrderableDBInstanceOption -> f OrderableDBInstanceOption
orderableDBInstanceOption_storageType = (OrderableDBInstanceOption -> Maybe Text)
-> (OrderableDBInstanceOption
    -> Maybe Text -> OrderableDBInstanceOption)
-> Lens
     OrderableDBInstanceOption
     OrderableDBInstanceOption
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableDBInstanceOption' {Maybe Text
storageType :: Maybe Text
$sel:storageType:OrderableDBInstanceOption' :: OrderableDBInstanceOption -> Maybe Text
storageType} -> Maybe Text
storageType) (\s :: OrderableDBInstanceOption
s@OrderableDBInstanceOption' {} Maybe Text
a -> OrderableDBInstanceOption
s {$sel:storageType:OrderableDBInstanceOption' :: Maybe Text
storageType = Maybe Text
a} :: OrderableDBInstanceOption)

instance Core.FromXML OrderableDBInstanceOption where
  parseXML :: [Node] -> Either String OrderableDBInstanceOption
parseXML [Node]
x =
    Maybe Text
-> Maybe Double
-> Maybe Bool
-> Maybe Int
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [AvailabilityZone]
-> Maybe Bool
-> Maybe Bool
-> Maybe Double
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> OrderableDBInstanceOption
OrderableDBInstanceOption'
      (Maybe Text
 -> Maybe Double
 -> Maybe Bool
 -> Maybe Int
 -> Maybe Bool
 -> Maybe Int
 -> Maybe Text
 -> Maybe Int
 -> Maybe Bool
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> Maybe [AvailabilityZone]
 -> Maybe Bool
 -> Maybe Bool
 -> Maybe Double
 -> Maybe Bool
 -> Maybe Bool
 -> Maybe Int
 -> Maybe Text
 -> OrderableDBInstanceOption)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Double
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
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 Double
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Double)
-> Either
     String
     (Maybe Bool
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Double)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MinIopsPerGib")
      Either
  String
  (Maybe Bool
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
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
"SupportsIAMDatabaseAuthentication")
      Either
  String
  (Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MinIopsPerDbInstance")
      Either
  String
  (Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
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
"MultiAZCapable")
      Either
  String
  (Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe Text
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MaxStorageSize")
      Either
  String
  (Maybe Text
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Int
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
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 Int
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MinStorageSize")
      Either
  String
  (Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
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
"SupportsIops")
      Either
  String
  (Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
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
"SupportsPerformanceInsights")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
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
"DBInstanceClass")
      Either
  String
  (Maybe Text
   -> Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [AvailabilityZone]
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
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
"LicenseModel")
      Either
  String
  (Maybe [AvailabilityZone]
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe [AvailabilityZone])
-> Either
     String
     (Maybe Bool
      -> Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
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
"AvailabilityZones"
                      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 [AvailabilityZone]))
-> Either String (Maybe [AvailabilityZone])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [AvailabilityZone])
-> [Node] -> Either String (Maybe [AvailabilityZone])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [AvailabilityZone]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"AvailabilityZone")
                  )
      Either
  String
  (Maybe Bool
   -> Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Bool
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
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
"SupportsStorageEncryption")
      Either
  String
  (Maybe Bool
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Double
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
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
"ReadReplicaCapable")
      Either
  String
  (Maybe Double
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Double)
-> Either
     String
     (Maybe Bool
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> OrderableDBInstanceOption)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Double)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MaxIopsPerGib")
      Either
  String
  (Maybe Bool
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> OrderableDBInstanceOption)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Bool
      -> Maybe Int -> Maybe Text -> OrderableDBInstanceOption)
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
"Vpc")
      Either
  String
  (Maybe Bool
   -> Maybe Int -> Maybe Text -> OrderableDBInstanceOption)
-> Either String (Maybe Bool)
-> Either
     String (Maybe Int -> Maybe Text -> OrderableDBInstanceOption)
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
"SupportsEnhancedMonitoring")
      Either
  String (Maybe Int -> Maybe Text -> OrderableDBInstanceOption)
-> Either String (Maybe Int)
-> Either String (Maybe Text -> OrderableDBInstanceOption)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MaxIopsPerDbInstance")
      Either String (Maybe Text -> OrderableDBInstanceOption)
-> Either String (Maybe Text)
-> Either String OrderableDBInstanceOption
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
"StorageType")

instance Prelude.Hashable OrderableDBInstanceOption

instance Prelude.NFData OrderableDBInstanceOption