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

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

-- |
-- Module      : Amazonka.DocumentDB.DescribeOrderableDBInstanceOptions
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a list of orderable instance options for the specified engine.
--
-- This operation returns paginated results.
module Amazonka.DocumentDB.DescribeOrderableDBInstanceOptions
  ( -- * Creating a Request
    DescribeOrderableDBInstanceOptions (..),
    newDescribeOrderableDBInstanceOptions,

    -- * Request Lenses
    describeOrderableDBInstanceOptions_engineVersion,
    describeOrderableDBInstanceOptions_filters,
    describeOrderableDBInstanceOptions_dbInstanceClass,
    describeOrderableDBInstanceOptions_licenseModel,
    describeOrderableDBInstanceOptions_marker,
    describeOrderableDBInstanceOptions_maxRecords,
    describeOrderableDBInstanceOptions_vpc,
    describeOrderableDBInstanceOptions_engine,

    -- * Destructuring the Response
    DescribeOrderableDBInstanceOptionsResponse (..),
    newDescribeOrderableDBInstanceOptionsResponse,

    -- * Response Lenses
    describeOrderableDBInstanceOptionsResponse_orderableDBInstanceOptions,
    describeOrderableDBInstanceOptionsResponse_marker,
    describeOrderableDBInstanceOptionsResponse_httpStatus,
  )
where

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

-- | Represents the input to DescribeOrderableDBInstanceOptions.
--
-- /See:/ 'newDescribeOrderableDBInstanceOptions' smart constructor.
data DescribeOrderableDBInstanceOptions = DescribeOrderableDBInstanceOptions'
  { -- | The engine version filter value. Specify this parameter to show only the
    -- available offerings that match the specified engine version.
    DescribeOrderableDBInstanceOptions -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
    -- | This parameter is not currently supported.
    DescribeOrderableDBInstanceOptions -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
    -- | The instance class filter value. Specify this parameter to show only the
    -- available offerings that match the specified instance class.
    DescribeOrderableDBInstanceOptions -> Maybe Text
dbInstanceClass :: Prelude.Maybe Prelude.Text,
    -- | The license model filter value. Specify this parameter to show only the
    -- available offerings that match the specified license model.
    DescribeOrderableDBInstanceOptions -> Maybe Text
licenseModel :: Prelude.Maybe Prelude.Text,
    -- | An optional pagination token provided by a previous request. If this
    -- parameter is specified, the response includes only records beyond the
    -- marker, up to the value specified by @MaxRecords@.
    DescribeOrderableDBInstanceOptions -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of records to include in the response. If more
    -- records exist than the specified @MaxRecords@ value, a pagination token
    -- (marker) is included in the response so that the remaining results can
    -- be retrieved.
    --
    -- Default: 100
    --
    -- Constraints: Minimum 20, maximum 100.
    DescribeOrderableDBInstanceOptions -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
    -- | The virtual private cloud (VPC) filter value. Specify this parameter to
    -- show only the available VPC or non-VPC offerings.
    DescribeOrderableDBInstanceOptions -> Maybe Bool
vpc :: Prelude.Maybe Prelude.Bool,
    -- | The name of the engine to retrieve instance options for.
    DescribeOrderableDBInstanceOptions -> Text
engine :: Prelude.Text
  }
  deriving (DescribeOrderableDBInstanceOptions
-> DescribeOrderableDBInstanceOptions -> Bool
(DescribeOrderableDBInstanceOptions
 -> DescribeOrderableDBInstanceOptions -> Bool)
-> (DescribeOrderableDBInstanceOptions
    -> DescribeOrderableDBInstanceOptions -> Bool)
-> Eq DescribeOrderableDBInstanceOptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeOrderableDBInstanceOptions
-> DescribeOrderableDBInstanceOptions -> Bool
$c/= :: DescribeOrderableDBInstanceOptions
-> DescribeOrderableDBInstanceOptions -> Bool
== :: DescribeOrderableDBInstanceOptions
-> DescribeOrderableDBInstanceOptions -> Bool
$c== :: DescribeOrderableDBInstanceOptions
-> DescribeOrderableDBInstanceOptions -> Bool
Prelude.Eq, ReadPrec [DescribeOrderableDBInstanceOptions]
ReadPrec DescribeOrderableDBInstanceOptions
Int -> ReadS DescribeOrderableDBInstanceOptions
ReadS [DescribeOrderableDBInstanceOptions]
(Int -> ReadS DescribeOrderableDBInstanceOptions)
-> ReadS [DescribeOrderableDBInstanceOptions]
-> ReadPrec DescribeOrderableDBInstanceOptions
-> ReadPrec [DescribeOrderableDBInstanceOptions]
-> Read DescribeOrderableDBInstanceOptions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeOrderableDBInstanceOptions]
$creadListPrec :: ReadPrec [DescribeOrderableDBInstanceOptions]
readPrec :: ReadPrec DescribeOrderableDBInstanceOptions
$creadPrec :: ReadPrec DescribeOrderableDBInstanceOptions
readList :: ReadS [DescribeOrderableDBInstanceOptions]
$creadList :: ReadS [DescribeOrderableDBInstanceOptions]
readsPrec :: Int -> ReadS DescribeOrderableDBInstanceOptions
$creadsPrec :: Int -> ReadS DescribeOrderableDBInstanceOptions
Prelude.Read, Int -> DescribeOrderableDBInstanceOptions -> ShowS
[DescribeOrderableDBInstanceOptions] -> ShowS
DescribeOrderableDBInstanceOptions -> String
(Int -> DescribeOrderableDBInstanceOptions -> ShowS)
-> (DescribeOrderableDBInstanceOptions -> String)
-> ([DescribeOrderableDBInstanceOptions] -> ShowS)
-> Show DescribeOrderableDBInstanceOptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeOrderableDBInstanceOptions] -> ShowS
$cshowList :: [DescribeOrderableDBInstanceOptions] -> ShowS
show :: DescribeOrderableDBInstanceOptions -> String
$cshow :: DescribeOrderableDBInstanceOptions -> String
showsPrec :: Int -> DescribeOrderableDBInstanceOptions -> ShowS
$cshowsPrec :: Int -> DescribeOrderableDBInstanceOptions -> ShowS
Prelude.Show, (forall x.
 DescribeOrderableDBInstanceOptions
 -> Rep DescribeOrderableDBInstanceOptions x)
-> (forall x.
    Rep DescribeOrderableDBInstanceOptions x
    -> DescribeOrderableDBInstanceOptions)
-> Generic DescribeOrderableDBInstanceOptions
forall x.
Rep DescribeOrderableDBInstanceOptions x
-> DescribeOrderableDBInstanceOptions
forall x.
DescribeOrderableDBInstanceOptions
-> Rep DescribeOrderableDBInstanceOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeOrderableDBInstanceOptions x
-> DescribeOrderableDBInstanceOptions
$cfrom :: forall x.
DescribeOrderableDBInstanceOptions
-> Rep DescribeOrderableDBInstanceOptions x
Prelude.Generic)

-- |
-- Create a value of 'DescribeOrderableDBInstanceOptions' 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', 'describeOrderableDBInstanceOptions_engineVersion' - The engine version filter value. Specify this parameter to show only the
-- available offerings that match the specified engine version.
--
-- 'filters', 'describeOrderableDBInstanceOptions_filters' - This parameter is not currently supported.
--
-- 'dbInstanceClass', 'describeOrderableDBInstanceOptions_dbInstanceClass' - The instance class filter value. Specify this parameter to show only the
-- available offerings that match the specified instance class.
--
-- 'licenseModel', 'describeOrderableDBInstanceOptions_licenseModel' - The license model filter value. Specify this parameter to show only the
-- available offerings that match the specified license model.
--
-- 'marker', 'describeOrderableDBInstanceOptions_marker' - An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
--
-- 'maxRecords', 'describeOrderableDBInstanceOptions_maxRecords' - The maximum number of records to include in the response. If more
-- records exist than the specified @MaxRecords@ value, a pagination token
-- (marker) is included in the response so that the remaining results can
-- be retrieved.
--
-- Default: 100
--
-- Constraints: Minimum 20, maximum 100.
--
-- 'vpc', 'describeOrderableDBInstanceOptions_vpc' - The virtual private cloud (VPC) filter value. Specify this parameter to
-- show only the available VPC or non-VPC offerings.
--
-- 'engine', 'describeOrderableDBInstanceOptions_engine' - The name of the engine to retrieve instance options for.
newDescribeOrderableDBInstanceOptions ::
  -- | 'engine'
  Prelude.Text ->
  DescribeOrderableDBInstanceOptions
newDescribeOrderableDBInstanceOptions :: Text -> DescribeOrderableDBInstanceOptions
newDescribeOrderableDBInstanceOptions Text
pEngine_ =
  DescribeOrderableDBInstanceOptions' :: Maybe Text
-> Maybe [Filter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Text
-> DescribeOrderableDBInstanceOptions
DescribeOrderableDBInstanceOptions'
    { $sel:engineVersion:DescribeOrderableDBInstanceOptions' :: Maybe Text
engineVersion =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:filters:DescribeOrderableDBInstanceOptions' :: Maybe [Filter]
filters = Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
      $sel:dbInstanceClass:DescribeOrderableDBInstanceOptions' :: Maybe Text
dbInstanceClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:licenseModel:DescribeOrderableDBInstanceOptions' :: Maybe Text
licenseModel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:marker:DescribeOrderableDBInstanceOptions' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxRecords:DescribeOrderableDBInstanceOptions' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:vpc:DescribeOrderableDBInstanceOptions' :: Maybe Bool
vpc = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:engine:DescribeOrderableDBInstanceOptions' :: Text
engine = Text
pEngine_
    }

-- | The engine version filter value. Specify this parameter to show only the
-- available offerings that match the specified engine version.
describeOrderableDBInstanceOptions_engineVersion :: Lens.Lens' DescribeOrderableDBInstanceOptions (Prelude.Maybe Prelude.Text)
describeOrderableDBInstanceOptions_engineVersion :: (Maybe Text -> f (Maybe Text))
-> DescribeOrderableDBInstanceOptions
-> f DescribeOrderableDBInstanceOptions
describeOrderableDBInstanceOptions_engineVersion = (DescribeOrderableDBInstanceOptions -> Maybe Text)
-> (DescribeOrderableDBInstanceOptions
    -> Maybe Text -> DescribeOrderableDBInstanceOptions)
-> Lens
     DescribeOrderableDBInstanceOptions
     DescribeOrderableDBInstanceOptions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableDBInstanceOptions' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: DescribeOrderableDBInstanceOptions
s@DescribeOrderableDBInstanceOptions' {} Maybe Text
a -> DescribeOrderableDBInstanceOptions
s {$sel:engineVersion:DescribeOrderableDBInstanceOptions' :: Maybe Text
engineVersion = Maybe Text
a} :: DescribeOrderableDBInstanceOptions)

-- | This parameter is not currently supported.
describeOrderableDBInstanceOptions_filters :: Lens.Lens' DescribeOrderableDBInstanceOptions (Prelude.Maybe [Filter])
describeOrderableDBInstanceOptions_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeOrderableDBInstanceOptions
-> f DescribeOrderableDBInstanceOptions
describeOrderableDBInstanceOptions_filters = (DescribeOrderableDBInstanceOptions -> Maybe [Filter])
-> (DescribeOrderableDBInstanceOptions
    -> Maybe [Filter] -> DescribeOrderableDBInstanceOptions)
-> Lens
     DescribeOrderableDBInstanceOptions
     DescribeOrderableDBInstanceOptions
     (Maybe [Filter])
     (Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableDBInstanceOptions' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeOrderableDBInstanceOptions
s@DescribeOrderableDBInstanceOptions' {} Maybe [Filter]
a -> DescribeOrderableDBInstanceOptions
s {$sel:filters:DescribeOrderableDBInstanceOptions' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeOrderableDBInstanceOptions) ((Maybe [Filter] -> f (Maybe [Filter]))
 -> DescribeOrderableDBInstanceOptions
 -> f DescribeOrderableDBInstanceOptions)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
    -> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeOrderableDBInstanceOptions
-> f DescribeOrderableDBInstanceOptions
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
     (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The instance class filter value. Specify this parameter to show only the
-- available offerings that match the specified instance class.
describeOrderableDBInstanceOptions_dbInstanceClass :: Lens.Lens' DescribeOrderableDBInstanceOptions (Prelude.Maybe Prelude.Text)
describeOrderableDBInstanceOptions_dbInstanceClass :: (Maybe Text -> f (Maybe Text))
-> DescribeOrderableDBInstanceOptions
-> f DescribeOrderableDBInstanceOptions
describeOrderableDBInstanceOptions_dbInstanceClass = (DescribeOrderableDBInstanceOptions -> Maybe Text)
-> (DescribeOrderableDBInstanceOptions
    -> Maybe Text -> DescribeOrderableDBInstanceOptions)
-> Lens
     DescribeOrderableDBInstanceOptions
     DescribeOrderableDBInstanceOptions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableDBInstanceOptions' {Maybe Text
dbInstanceClass :: Maybe Text
$sel:dbInstanceClass:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe Text
dbInstanceClass} -> Maybe Text
dbInstanceClass) (\s :: DescribeOrderableDBInstanceOptions
s@DescribeOrderableDBInstanceOptions' {} Maybe Text
a -> DescribeOrderableDBInstanceOptions
s {$sel:dbInstanceClass:DescribeOrderableDBInstanceOptions' :: Maybe Text
dbInstanceClass = Maybe Text
a} :: DescribeOrderableDBInstanceOptions)

-- | The license model filter value. Specify this parameter to show only the
-- available offerings that match the specified license model.
describeOrderableDBInstanceOptions_licenseModel :: Lens.Lens' DescribeOrderableDBInstanceOptions (Prelude.Maybe Prelude.Text)
describeOrderableDBInstanceOptions_licenseModel :: (Maybe Text -> f (Maybe Text))
-> DescribeOrderableDBInstanceOptions
-> f DescribeOrderableDBInstanceOptions
describeOrderableDBInstanceOptions_licenseModel = (DescribeOrderableDBInstanceOptions -> Maybe Text)
-> (DescribeOrderableDBInstanceOptions
    -> Maybe Text -> DescribeOrderableDBInstanceOptions)
-> Lens
     DescribeOrderableDBInstanceOptions
     DescribeOrderableDBInstanceOptions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableDBInstanceOptions' {Maybe Text
licenseModel :: Maybe Text
$sel:licenseModel:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe Text
licenseModel} -> Maybe Text
licenseModel) (\s :: DescribeOrderableDBInstanceOptions
s@DescribeOrderableDBInstanceOptions' {} Maybe Text
a -> DescribeOrderableDBInstanceOptions
s {$sel:licenseModel:DescribeOrderableDBInstanceOptions' :: Maybe Text
licenseModel = Maybe Text
a} :: DescribeOrderableDBInstanceOptions)

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

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

-- | The virtual private cloud (VPC) filter value. Specify this parameter to
-- show only the available VPC or non-VPC offerings.
describeOrderableDBInstanceOptions_vpc :: Lens.Lens' DescribeOrderableDBInstanceOptions (Prelude.Maybe Prelude.Bool)
describeOrderableDBInstanceOptions_vpc :: (Maybe Bool -> f (Maybe Bool))
-> DescribeOrderableDBInstanceOptions
-> f DescribeOrderableDBInstanceOptions
describeOrderableDBInstanceOptions_vpc = (DescribeOrderableDBInstanceOptions -> Maybe Bool)
-> (DescribeOrderableDBInstanceOptions
    -> Maybe Bool -> DescribeOrderableDBInstanceOptions)
-> Lens
     DescribeOrderableDBInstanceOptions
     DescribeOrderableDBInstanceOptions
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableDBInstanceOptions' {Maybe Bool
vpc :: Maybe Bool
$sel:vpc:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe Bool
vpc} -> Maybe Bool
vpc) (\s :: DescribeOrderableDBInstanceOptions
s@DescribeOrderableDBInstanceOptions' {} Maybe Bool
a -> DescribeOrderableDBInstanceOptions
s {$sel:vpc:DescribeOrderableDBInstanceOptions' :: Maybe Bool
vpc = Maybe Bool
a} :: DescribeOrderableDBInstanceOptions)

-- | The name of the engine to retrieve instance options for.
describeOrderableDBInstanceOptions_engine :: Lens.Lens' DescribeOrderableDBInstanceOptions Prelude.Text
describeOrderableDBInstanceOptions_engine :: (Text -> f Text)
-> DescribeOrderableDBInstanceOptions
-> f DescribeOrderableDBInstanceOptions
describeOrderableDBInstanceOptions_engine = (DescribeOrderableDBInstanceOptions -> Text)
-> (DescribeOrderableDBInstanceOptions
    -> Text -> DescribeOrderableDBInstanceOptions)
-> Lens
     DescribeOrderableDBInstanceOptions
     DescribeOrderableDBInstanceOptions
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableDBInstanceOptions' {Text
engine :: Text
$sel:engine:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Text
engine} -> Text
engine) (\s :: DescribeOrderableDBInstanceOptions
s@DescribeOrderableDBInstanceOptions' {} Text
a -> DescribeOrderableDBInstanceOptions
s {$sel:engine:DescribeOrderableDBInstanceOptions' :: Text
engine = Text
a} :: DescribeOrderableDBInstanceOptions)

instance
  Core.AWSPager
    DescribeOrderableDBInstanceOptions
  where
  page :: DescribeOrderableDBInstanceOptions
-> AWSResponse DescribeOrderableDBInstanceOptions
-> Maybe DescribeOrderableDBInstanceOptions
page DescribeOrderableDBInstanceOptions
rq AWSResponse DescribeOrderableDBInstanceOptions
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeOrderableDBInstanceOptions
DescribeOrderableDBInstanceOptionsResponse
rs
            DescribeOrderableDBInstanceOptionsResponse
-> Getting
     (First Text) DescribeOrderableDBInstanceOptionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeOrderableDBInstanceOptionsResponse
-> Const (First Text) DescribeOrderableDBInstanceOptionsResponse
Lens' DescribeOrderableDBInstanceOptionsResponse (Maybe Text)
describeOrderableDBInstanceOptionsResponse_marker
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeOrderableDBInstanceOptionsResponse
 -> Const (First Text) DescribeOrderableDBInstanceOptionsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) DescribeOrderableDBInstanceOptionsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe DescribeOrderableDBInstanceOptions
forall a. Maybe a
Prelude.Nothing
    | Maybe [OrderableDBInstanceOption] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeOrderableDBInstanceOptions
DescribeOrderableDBInstanceOptionsResponse
rs
            DescribeOrderableDBInstanceOptionsResponse
-> Getting
     (First [OrderableDBInstanceOption])
     DescribeOrderableDBInstanceOptionsResponse
     [OrderableDBInstanceOption]
-> Maybe [OrderableDBInstanceOption]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [OrderableDBInstanceOption]
 -> Const
      (First [OrderableDBInstanceOption])
      (Maybe [OrderableDBInstanceOption]))
-> DescribeOrderableDBInstanceOptionsResponse
-> Const
     (First [OrderableDBInstanceOption])
     DescribeOrderableDBInstanceOptionsResponse
Lens'
  DescribeOrderableDBInstanceOptionsResponse
  (Maybe [OrderableDBInstanceOption])
describeOrderableDBInstanceOptionsResponse_orderableDBInstanceOptions
              ((Maybe [OrderableDBInstanceOption]
  -> Const
       (First [OrderableDBInstanceOption])
       (Maybe [OrderableDBInstanceOption]))
 -> DescribeOrderableDBInstanceOptionsResponse
 -> Const
      (First [OrderableDBInstanceOption])
      DescribeOrderableDBInstanceOptionsResponse)
-> (([OrderableDBInstanceOption]
     -> Const
          (First [OrderableDBInstanceOption]) [OrderableDBInstanceOption])
    -> Maybe [OrderableDBInstanceOption]
    -> Const
         (First [OrderableDBInstanceOption])
         (Maybe [OrderableDBInstanceOption]))
-> Getting
     (First [OrderableDBInstanceOption])
     DescribeOrderableDBInstanceOptionsResponse
     [OrderableDBInstanceOption]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([OrderableDBInstanceOption]
 -> Const
      (First [OrderableDBInstanceOption]) [OrderableDBInstanceOption])
-> Maybe [OrderableDBInstanceOption]
-> Const
     (First [OrderableDBInstanceOption])
     (Maybe [OrderableDBInstanceOption])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe DescribeOrderableDBInstanceOptions
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      DescribeOrderableDBInstanceOptions
-> Maybe DescribeOrderableDBInstanceOptions
forall a. a -> Maybe a
Prelude.Just (DescribeOrderableDBInstanceOptions
 -> Maybe DescribeOrderableDBInstanceOptions)
-> DescribeOrderableDBInstanceOptions
-> Maybe DescribeOrderableDBInstanceOptions
forall a b. (a -> b) -> a -> b
Prelude.$
        DescribeOrderableDBInstanceOptions
rq
          DescribeOrderableDBInstanceOptions
-> (DescribeOrderableDBInstanceOptions
    -> DescribeOrderableDBInstanceOptions)
-> DescribeOrderableDBInstanceOptions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeOrderableDBInstanceOptions
-> Identity DescribeOrderableDBInstanceOptions
Lens
  DescribeOrderableDBInstanceOptions
  DescribeOrderableDBInstanceOptions
  (Maybe Text)
  (Maybe Text)
describeOrderableDBInstanceOptions_marker
          ((Maybe Text -> Identity (Maybe Text))
 -> DescribeOrderableDBInstanceOptions
 -> Identity DescribeOrderableDBInstanceOptions)
-> Maybe Text
-> DescribeOrderableDBInstanceOptions
-> DescribeOrderableDBInstanceOptions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeOrderableDBInstanceOptions
DescribeOrderableDBInstanceOptionsResponse
rs
          DescribeOrderableDBInstanceOptionsResponse
-> Getting
     (First Text) DescribeOrderableDBInstanceOptionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeOrderableDBInstanceOptionsResponse
-> Const (First Text) DescribeOrderableDBInstanceOptionsResponse
Lens' DescribeOrderableDBInstanceOptionsResponse (Maybe Text)
describeOrderableDBInstanceOptionsResponse_marker
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeOrderableDBInstanceOptionsResponse
 -> Const (First Text) DescribeOrderableDBInstanceOptionsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) DescribeOrderableDBInstanceOptionsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    DescribeOrderableDBInstanceOptions
  where
  type
    AWSResponse DescribeOrderableDBInstanceOptions =
      DescribeOrderableDBInstanceOptionsResponse
  request :: DescribeOrderableDBInstanceOptions
-> Request DescribeOrderableDBInstanceOptions
request = Service
-> DescribeOrderableDBInstanceOptions
-> Request DescribeOrderableDBInstanceOptions
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeOrderableDBInstanceOptions
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeOrderableDBInstanceOptions)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DescribeOrderableDBInstanceOptions))
-> Logger
-> Service
-> Proxy DescribeOrderableDBInstanceOptions
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeOrderableDBInstanceOptions)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"DescribeOrderableDBInstanceOptionsResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe [OrderableDBInstanceOption]
-> Maybe Text -> Int -> DescribeOrderableDBInstanceOptionsResponse
DescribeOrderableDBInstanceOptionsResponse'
            (Maybe [OrderableDBInstanceOption]
 -> Maybe Text -> Int -> DescribeOrderableDBInstanceOptionsResponse)
-> Either String (Maybe [OrderableDBInstanceOption])
-> Either
     String
     (Maybe Text -> Int -> DescribeOrderableDBInstanceOptionsResponse)
forall (f :: * -> *) a b. Functor 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
"OrderableDBInstanceOptions"
                            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 [OrderableDBInstanceOption]))
-> Either String (Maybe [OrderableDBInstanceOption])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [OrderableDBInstanceOption])
-> [Node] -> Either String (Maybe [OrderableDBInstanceOption])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may
                              (Text -> [Node] -> Either String [OrderableDBInstanceOption]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"OrderableDBInstanceOption")
                        )
              Either
  String
  (Maybe Text -> Int -> DescribeOrderableDBInstanceOptionsResponse)
-> Either String (Maybe Text)
-> Either
     String (Int -> DescribeOrderableDBInstanceOptionsResponse)
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
"Marker")
              Either String (Int -> DescribeOrderableDBInstanceOptionsResponse)
-> Either String Int
-> Either String DescribeOrderableDBInstanceOptionsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    DescribeOrderableDBInstanceOptions

instance
  Prelude.NFData
    DescribeOrderableDBInstanceOptions

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

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

instance
  Core.ToQuery
    DescribeOrderableDBInstanceOptions
  where
  toQuery :: DescribeOrderableDBInstanceOptions -> QueryString
toQuery DescribeOrderableDBInstanceOptions' {Maybe Bool
Maybe Int
Maybe [Filter]
Maybe Text
Text
engine :: Text
vpc :: Maybe Bool
maxRecords :: Maybe Int
marker :: Maybe Text
licenseModel :: Maybe Text
dbInstanceClass :: Maybe Text
filters :: Maybe [Filter]
engineVersion :: Maybe Text
$sel:engine:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Text
$sel:vpc:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe Bool
$sel:maxRecords:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe Int
$sel:marker:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe Text
$sel:licenseModel:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe Text
$sel:dbInstanceClass:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe Text
$sel:filters:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe [Filter]
$sel:engineVersion:DescribeOrderableDBInstanceOptions' :: DescribeOrderableDBInstanceOptions -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"DescribeOrderableDBInstanceOptions" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
        ByteString
"EngineVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
engineVersion,
        ByteString
"Filters"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            (ByteString -> [Filter] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Filter" ([Filter] -> QueryString) -> Maybe [Filter] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters),
        ByteString
"DBInstanceClass" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbInstanceClass,
        ByteString
"LicenseModel" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
licenseModel,
        ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
        ByteString
"MaxRecords" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxRecords,
        ByteString
"Vpc" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
vpc,
        ByteString
"Engine" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
engine
      ]

-- | Represents the output of DescribeOrderableDBInstanceOptions.
--
-- /See:/ 'newDescribeOrderableDBInstanceOptionsResponse' smart constructor.
data DescribeOrderableDBInstanceOptionsResponse = DescribeOrderableDBInstanceOptionsResponse'
  { -- | The options that are available for a particular orderable instance.
    DescribeOrderableDBInstanceOptionsResponse
-> Maybe [OrderableDBInstanceOption]
orderableDBInstanceOptions :: Prelude.Maybe [OrderableDBInstanceOption],
    -- | An optional pagination token provided by a previous request. If this
    -- parameter is specified, the response includes only records beyond the
    -- marker, up to the value specified by @MaxRecords@.
    DescribeOrderableDBInstanceOptionsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeOrderableDBInstanceOptionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeOrderableDBInstanceOptionsResponse
-> DescribeOrderableDBInstanceOptionsResponse -> Bool
(DescribeOrderableDBInstanceOptionsResponse
 -> DescribeOrderableDBInstanceOptionsResponse -> Bool)
-> (DescribeOrderableDBInstanceOptionsResponse
    -> DescribeOrderableDBInstanceOptionsResponse -> Bool)
-> Eq DescribeOrderableDBInstanceOptionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeOrderableDBInstanceOptionsResponse
-> DescribeOrderableDBInstanceOptionsResponse -> Bool
$c/= :: DescribeOrderableDBInstanceOptionsResponse
-> DescribeOrderableDBInstanceOptionsResponse -> Bool
== :: DescribeOrderableDBInstanceOptionsResponse
-> DescribeOrderableDBInstanceOptionsResponse -> Bool
$c== :: DescribeOrderableDBInstanceOptionsResponse
-> DescribeOrderableDBInstanceOptionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeOrderableDBInstanceOptionsResponse]
ReadPrec DescribeOrderableDBInstanceOptionsResponse
Int -> ReadS DescribeOrderableDBInstanceOptionsResponse
ReadS [DescribeOrderableDBInstanceOptionsResponse]
(Int -> ReadS DescribeOrderableDBInstanceOptionsResponse)
-> ReadS [DescribeOrderableDBInstanceOptionsResponse]
-> ReadPrec DescribeOrderableDBInstanceOptionsResponse
-> ReadPrec [DescribeOrderableDBInstanceOptionsResponse]
-> Read DescribeOrderableDBInstanceOptionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeOrderableDBInstanceOptionsResponse]
$creadListPrec :: ReadPrec [DescribeOrderableDBInstanceOptionsResponse]
readPrec :: ReadPrec DescribeOrderableDBInstanceOptionsResponse
$creadPrec :: ReadPrec DescribeOrderableDBInstanceOptionsResponse
readList :: ReadS [DescribeOrderableDBInstanceOptionsResponse]
$creadList :: ReadS [DescribeOrderableDBInstanceOptionsResponse]
readsPrec :: Int -> ReadS DescribeOrderableDBInstanceOptionsResponse
$creadsPrec :: Int -> ReadS DescribeOrderableDBInstanceOptionsResponse
Prelude.Read, Int -> DescribeOrderableDBInstanceOptionsResponse -> ShowS
[DescribeOrderableDBInstanceOptionsResponse] -> ShowS
DescribeOrderableDBInstanceOptionsResponse -> String
(Int -> DescribeOrderableDBInstanceOptionsResponse -> ShowS)
-> (DescribeOrderableDBInstanceOptionsResponse -> String)
-> ([DescribeOrderableDBInstanceOptionsResponse] -> ShowS)
-> Show DescribeOrderableDBInstanceOptionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeOrderableDBInstanceOptionsResponse] -> ShowS
$cshowList :: [DescribeOrderableDBInstanceOptionsResponse] -> ShowS
show :: DescribeOrderableDBInstanceOptionsResponse -> String
$cshow :: DescribeOrderableDBInstanceOptionsResponse -> String
showsPrec :: Int -> DescribeOrderableDBInstanceOptionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeOrderableDBInstanceOptionsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeOrderableDBInstanceOptionsResponse
 -> Rep DescribeOrderableDBInstanceOptionsResponse x)
-> (forall x.
    Rep DescribeOrderableDBInstanceOptionsResponse x
    -> DescribeOrderableDBInstanceOptionsResponse)
-> Generic DescribeOrderableDBInstanceOptionsResponse
forall x.
Rep DescribeOrderableDBInstanceOptionsResponse x
-> DescribeOrderableDBInstanceOptionsResponse
forall x.
DescribeOrderableDBInstanceOptionsResponse
-> Rep DescribeOrderableDBInstanceOptionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeOrderableDBInstanceOptionsResponse x
-> DescribeOrderableDBInstanceOptionsResponse
$cfrom :: forall x.
DescribeOrderableDBInstanceOptionsResponse
-> Rep DescribeOrderableDBInstanceOptionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeOrderableDBInstanceOptionsResponse' 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:
--
-- 'orderableDBInstanceOptions', 'describeOrderableDBInstanceOptionsResponse_orderableDBInstanceOptions' - The options that are available for a particular orderable instance.
--
-- 'marker', 'describeOrderableDBInstanceOptionsResponse_marker' - An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
--
-- 'httpStatus', 'describeOrderableDBInstanceOptionsResponse_httpStatus' - The response's http status code.
newDescribeOrderableDBInstanceOptionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeOrderableDBInstanceOptionsResponse
newDescribeOrderableDBInstanceOptionsResponse :: Int -> DescribeOrderableDBInstanceOptionsResponse
newDescribeOrderableDBInstanceOptionsResponse
  Int
pHttpStatus_ =
    DescribeOrderableDBInstanceOptionsResponse' :: Maybe [OrderableDBInstanceOption]
-> Maybe Text -> Int -> DescribeOrderableDBInstanceOptionsResponse
DescribeOrderableDBInstanceOptionsResponse'
      { $sel:orderableDBInstanceOptions:DescribeOrderableDBInstanceOptionsResponse' :: Maybe [OrderableDBInstanceOption]
orderableDBInstanceOptions =
          Maybe [OrderableDBInstanceOption]
forall a. Maybe a
Prelude.Nothing,
        $sel:marker:DescribeOrderableDBInstanceOptionsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeOrderableDBInstanceOptionsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The options that are available for a particular orderable instance.
describeOrderableDBInstanceOptionsResponse_orderableDBInstanceOptions :: Lens.Lens' DescribeOrderableDBInstanceOptionsResponse (Prelude.Maybe [OrderableDBInstanceOption])
describeOrderableDBInstanceOptionsResponse_orderableDBInstanceOptions :: (Maybe [OrderableDBInstanceOption]
 -> f (Maybe [OrderableDBInstanceOption]))
-> DescribeOrderableDBInstanceOptionsResponse
-> f DescribeOrderableDBInstanceOptionsResponse
describeOrderableDBInstanceOptionsResponse_orderableDBInstanceOptions = (DescribeOrderableDBInstanceOptionsResponse
 -> Maybe [OrderableDBInstanceOption])
-> (DescribeOrderableDBInstanceOptionsResponse
    -> Maybe [OrderableDBInstanceOption]
    -> DescribeOrderableDBInstanceOptionsResponse)
-> Lens'
     DescribeOrderableDBInstanceOptionsResponse
     (Maybe [OrderableDBInstanceOption])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeOrderableDBInstanceOptionsResponse' {Maybe [OrderableDBInstanceOption]
orderableDBInstanceOptions :: Maybe [OrderableDBInstanceOption]
$sel:orderableDBInstanceOptions:DescribeOrderableDBInstanceOptionsResponse' :: DescribeOrderableDBInstanceOptionsResponse
-> Maybe [OrderableDBInstanceOption]
orderableDBInstanceOptions} -> Maybe [OrderableDBInstanceOption]
orderableDBInstanceOptions) (\s :: DescribeOrderableDBInstanceOptionsResponse
s@DescribeOrderableDBInstanceOptionsResponse' {} Maybe [OrderableDBInstanceOption]
a -> DescribeOrderableDBInstanceOptionsResponse
s {$sel:orderableDBInstanceOptions:DescribeOrderableDBInstanceOptionsResponse' :: Maybe [OrderableDBInstanceOption]
orderableDBInstanceOptions = Maybe [OrderableDBInstanceOption]
a} :: DescribeOrderableDBInstanceOptionsResponse) ((Maybe [OrderableDBInstanceOption]
  -> f (Maybe [OrderableDBInstanceOption]))
 -> DescribeOrderableDBInstanceOptionsResponse
 -> f DescribeOrderableDBInstanceOptionsResponse)
-> ((Maybe [OrderableDBInstanceOption]
     -> f (Maybe [OrderableDBInstanceOption]))
    -> Maybe [OrderableDBInstanceOption]
    -> f (Maybe [OrderableDBInstanceOption]))
-> (Maybe [OrderableDBInstanceOption]
    -> f (Maybe [OrderableDBInstanceOption]))
-> DescribeOrderableDBInstanceOptionsResponse
-> f DescribeOrderableDBInstanceOptionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [OrderableDBInstanceOption]
  [OrderableDBInstanceOption]
  [OrderableDBInstanceOption]
  [OrderableDBInstanceOption]
-> Iso
     (Maybe [OrderableDBInstanceOption])
     (Maybe [OrderableDBInstanceOption])
     (Maybe [OrderableDBInstanceOption])
     (Maybe [OrderableDBInstanceOption])
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
  [OrderableDBInstanceOption]
  [OrderableDBInstanceOption]
  [OrderableDBInstanceOption]
  [OrderableDBInstanceOption]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

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

instance
  Prelude.NFData
    DescribeOrderableDBInstanceOptionsResponse