{-# 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.Redshift.DescribeNodeConfigurationOptions
-- 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 properties of possible node configurations such as node type,
-- number of nodes, and disk usage for the specified action type.
--
-- This operation returns paginated results.
module Amazonka.Redshift.DescribeNodeConfigurationOptions
  ( -- * Creating a Request
    DescribeNodeConfigurationOptions (..),
    newDescribeNodeConfigurationOptions,

    -- * Request Lenses
    describeNodeConfigurationOptions_snapshotIdentifier,
    describeNodeConfigurationOptions_filters,
    describeNodeConfigurationOptions_clusterIdentifier,
    describeNodeConfigurationOptions_marker,
    describeNodeConfigurationOptions_maxRecords,
    describeNodeConfigurationOptions_ownerAccount,
    describeNodeConfigurationOptions_actionType,

    -- * Destructuring the Response
    DescribeNodeConfigurationOptionsResponse (..),
    newDescribeNodeConfigurationOptionsResponse,

    -- * Response Lenses
    describeNodeConfigurationOptionsResponse_nodeConfigurationOptionList,
    describeNodeConfigurationOptionsResponse_marker,
    describeNodeConfigurationOptionsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeNodeConfigurationOptions' smart constructor.
data DescribeNodeConfigurationOptions = DescribeNodeConfigurationOptions'
  { -- | The identifier of the snapshot to evaluate for possible node
    -- configurations.
    DescribeNodeConfigurationOptions -> Maybe Text
snapshotIdentifier :: Prelude.Maybe Prelude.Text,
    -- | A set of name, operator, and value items to filter the results.
    DescribeNodeConfigurationOptions
-> Maybe [NodeConfigurationOptionsFilter]
filters :: Prelude.Maybe [NodeConfigurationOptionsFilter],
    -- | The identifier of the cluster to evaluate for possible node
    -- configurations.
    DescribeNodeConfigurationOptions -> Maybe Text
clusterIdentifier :: Prelude.Maybe Prelude.Text,
    -- | An optional parameter that specifies the starting point to return a set
    -- of response records. When the results of a
    -- DescribeNodeConfigurationOptions request exceed the value specified in
    -- @MaxRecords@, Amazon Web Services returns a value in the @Marker@ field
    -- of the response. You can retrieve the next set of response records by
    -- providing the returned marker value in the @Marker@ parameter and
    -- retrying the request.
    DescribeNodeConfigurationOptions -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of response records to return in each call. If the
    -- number of remaining response records exceeds the specified @MaxRecords@
    -- value, a value is returned in a @marker@ field of the response. You can
    -- retrieve the next set of records by retrying the command with the
    -- returned marker value.
    --
    -- Default: @500@
    --
    -- Constraints: minimum 100, maximum 500.
    DescribeNodeConfigurationOptions -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
    -- | The Amazon Web Services account used to create or copy the snapshot.
    -- Required if you are restoring a snapshot you do not own, optional if you
    -- own the snapshot.
    DescribeNodeConfigurationOptions -> Maybe Text
ownerAccount :: Prelude.Maybe Prelude.Text,
    -- | The action type to evaluate for possible node configurations. Specify
    -- \"restore-cluster\" to get configuration combinations based on an
    -- existing snapshot. Specify \"recommend-node-config\" to get
    -- configuration recommendations based on an existing cluster or snapshot.
    -- Specify \"resize-cluster\" to get configuration combinations for elastic
    -- resize based on an existing cluster.
    DescribeNodeConfigurationOptions -> ActionType
actionType :: ActionType
  }
  deriving (DescribeNodeConfigurationOptions
-> DescribeNodeConfigurationOptions -> Bool
(DescribeNodeConfigurationOptions
 -> DescribeNodeConfigurationOptions -> Bool)
-> (DescribeNodeConfigurationOptions
    -> DescribeNodeConfigurationOptions -> Bool)
-> Eq DescribeNodeConfigurationOptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeNodeConfigurationOptions
-> DescribeNodeConfigurationOptions -> Bool
$c/= :: DescribeNodeConfigurationOptions
-> DescribeNodeConfigurationOptions -> Bool
== :: DescribeNodeConfigurationOptions
-> DescribeNodeConfigurationOptions -> Bool
$c== :: DescribeNodeConfigurationOptions
-> DescribeNodeConfigurationOptions -> Bool
Prelude.Eq, ReadPrec [DescribeNodeConfigurationOptions]
ReadPrec DescribeNodeConfigurationOptions
Int -> ReadS DescribeNodeConfigurationOptions
ReadS [DescribeNodeConfigurationOptions]
(Int -> ReadS DescribeNodeConfigurationOptions)
-> ReadS [DescribeNodeConfigurationOptions]
-> ReadPrec DescribeNodeConfigurationOptions
-> ReadPrec [DescribeNodeConfigurationOptions]
-> Read DescribeNodeConfigurationOptions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeNodeConfigurationOptions]
$creadListPrec :: ReadPrec [DescribeNodeConfigurationOptions]
readPrec :: ReadPrec DescribeNodeConfigurationOptions
$creadPrec :: ReadPrec DescribeNodeConfigurationOptions
readList :: ReadS [DescribeNodeConfigurationOptions]
$creadList :: ReadS [DescribeNodeConfigurationOptions]
readsPrec :: Int -> ReadS DescribeNodeConfigurationOptions
$creadsPrec :: Int -> ReadS DescribeNodeConfigurationOptions
Prelude.Read, Int -> DescribeNodeConfigurationOptions -> ShowS
[DescribeNodeConfigurationOptions] -> ShowS
DescribeNodeConfigurationOptions -> String
(Int -> DescribeNodeConfigurationOptions -> ShowS)
-> (DescribeNodeConfigurationOptions -> String)
-> ([DescribeNodeConfigurationOptions] -> ShowS)
-> Show DescribeNodeConfigurationOptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeNodeConfigurationOptions] -> ShowS
$cshowList :: [DescribeNodeConfigurationOptions] -> ShowS
show :: DescribeNodeConfigurationOptions -> String
$cshow :: DescribeNodeConfigurationOptions -> String
showsPrec :: Int -> DescribeNodeConfigurationOptions -> ShowS
$cshowsPrec :: Int -> DescribeNodeConfigurationOptions -> ShowS
Prelude.Show, (forall x.
 DescribeNodeConfigurationOptions
 -> Rep DescribeNodeConfigurationOptions x)
-> (forall x.
    Rep DescribeNodeConfigurationOptions x
    -> DescribeNodeConfigurationOptions)
-> Generic DescribeNodeConfigurationOptions
forall x.
Rep DescribeNodeConfigurationOptions x
-> DescribeNodeConfigurationOptions
forall x.
DescribeNodeConfigurationOptions
-> Rep DescribeNodeConfigurationOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeNodeConfigurationOptions x
-> DescribeNodeConfigurationOptions
$cfrom :: forall x.
DescribeNodeConfigurationOptions
-> Rep DescribeNodeConfigurationOptions x
Prelude.Generic)

-- |
-- Create a value of 'DescribeNodeConfigurationOptions' 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:
--
-- 'snapshotIdentifier', 'describeNodeConfigurationOptions_snapshotIdentifier' - The identifier of the snapshot to evaluate for possible node
-- configurations.
--
-- 'filters', 'describeNodeConfigurationOptions_filters' - A set of name, operator, and value items to filter the results.
--
-- 'clusterIdentifier', 'describeNodeConfigurationOptions_clusterIdentifier' - The identifier of the cluster to evaluate for possible node
-- configurations.
--
-- 'marker', 'describeNodeConfigurationOptions_marker' - An optional parameter that specifies the starting point to return a set
-- of response records. When the results of a
-- DescribeNodeConfigurationOptions request exceed the value specified in
-- @MaxRecords@, Amazon Web Services returns a value in the @Marker@ field
-- of the response. You can retrieve the next set of response records by
-- providing the returned marker value in the @Marker@ parameter and
-- retrying the request.
--
-- 'maxRecords', 'describeNodeConfigurationOptions_maxRecords' - The maximum number of response records to return in each call. If the
-- number of remaining response records exceeds the specified @MaxRecords@
-- value, a value is returned in a @marker@ field of the response. You can
-- retrieve the next set of records by retrying the command with the
-- returned marker value.
--
-- Default: @500@
--
-- Constraints: minimum 100, maximum 500.
--
-- 'ownerAccount', 'describeNodeConfigurationOptions_ownerAccount' - The Amazon Web Services account used to create or copy the snapshot.
-- Required if you are restoring a snapshot you do not own, optional if you
-- own the snapshot.
--
-- 'actionType', 'describeNodeConfigurationOptions_actionType' - The action type to evaluate for possible node configurations. Specify
-- \"restore-cluster\" to get configuration combinations based on an
-- existing snapshot. Specify \"recommend-node-config\" to get
-- configuration recommendations based on an existing cluster or snapshot.
-- Specify \"resize-cluster\" to get configuration combinations for elastic
-- resize based on an existing cluster.
newDescribeNodeConfigurationOptions ::
  -- | 'actionType'
  ActionType ->
  DescribeNodeConfigurationOptions
newDescribeNodeConfigurationOptions :: ActionType -> DescribeNodeConfigurationOptions
newDescribeNodeConfigurationOptions ActionType
pActionType_ =
  DescribeNodeConfigurationOptions' :: Maybe Text
-> Maybe [NodeConfigurationOptionsFilter]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> ActionType
-> DescribeNodeConfigurationOptions
DescribeNodeConfigurationOptions'
    { $sel:snapshotIdentifier:DescribeNodeConfigurationOptions' :: Maybe Text
snapshotIdentifier =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:filters:DescribeNodeConfigurationOptions' :: Maybe [NodeConfigurationOptionsFilter]
filters = Maybe [NodeConfigurationOptionsFilter]
forall a. Maybe a
Prelude.Nothing,
      $sel:clusterIdentifier:DescribeNodeConfigurationOptions' :: Maybe Text
clusterIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:marker:DescribeNodeConfigurationOptions' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxRecords:DescribeNodeConfigurationOptions' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:ownerAccount:DescribeNodeConfigurationOptions' :: Maybe Text
ownerAccount = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:actionType:DescribeNodeConfigurationOptions' :: ActionType
actionType = ActionType
pActionType_
    }

-- | The identifier of the snapshot to evaluate for possible node
-- configurations.
describeNodeConfigurationOptions_snapshotIdentifier :: Lens.Lens' DescribeNodeConfigurationOptions (Prelude.Maybe Prelude.Text)
describeNodeConfigurationOptions_snapshotIdentifier :: (Maybe Text -> f (Maybe Text))
-> DescribeNodeConfigurationOptions
-> f DescribeNodeConfigurationOptions
describeNodeConfigurationOptions_snapshotIdentifier = (DescribeNodeConfigurationOptions -> Maybe Text)
-> (DescribeNodeConfigurationOptions
    -> Maybe Text -> DescribeNodeConfigurationOptions)
-> Lens
     DescribeNodeConfigurationOptions
     DescribeNodeConfigurationOptions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeConfigurationOptions' {Maybe Text
snapshotIdentifier :: Maybe Text
$sel:snapshotIdentifier:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> Maybe Text
snapshotIdentifier} -> Maybe Text
snapshotIdentifier) (\s :: DescribeNodeConfigurationOptions
s@DescribeNodeConfigurationOptions' {} Maybe Text
a -> DescribeNodeConfigurationOptions
s {$sel:snapshotIdentifier:DescribeNodeConfigurationOptions' :: Maybe Text
snapshotIdentifier = Maybe Text
a} :: DescribeNodeConfigurationOptions)

-- | A set of name, operator, and value items to filter the results.
describeNodeConfigurationOptions_filters :: Lens.Lens' DescribeNodeConfigurationOptions (Prelude.Maybe [NodeConfigurationOptionsFilter])
describeNodeConfigurationOptions_filters :: (Maybe [NodeConfigurationOptionsFilter]
 -> f (Maybe [NodeConfigurationOptionsFilter]))
-> DescribeNodeConfigurationOptions
-> f DescribeNodeConfigurationOptions
describeNodeConfigurationOptions_filters = (DescribeNodeConfigurationOptions
 -> Maybe [NodeConfigurationOptionsFilter])
-> (DescribeNodeConfigurationOptions
    -> Maybe [NodeConfigurationOptionsFilter]
    -> DescribeNodeConfigurationOptions)
-> Lens
     DescribeNodeConfigurationOptions
     DescribeNodeConfigurationOptions
     (Maybe [NodeConfigurationOptionsFilter])
     (Maybe [NodeConfigurationOptionsFilter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeConfigurationOptions' {Maybe [NodeConfigurationOptionsFilter]
filters :: Maybe [NodeConfigurationOptionsFilter]
$sel:filters:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions
-> Maybe [NodeConfigurationOptionsFilter]
filters} -> Maybe [NodeConfigurationOptionsFilter]
filters) (\s :: DescribeNodeConfigurationOptions
s@DescribeNodeConfigurationOptions' {} Maybe [NodeConfigurationOptionsFilter]
a -> DescribeNodeConfigurationOptions
s {$sel:filters:DescribeNodeConfigurationOptions' :: Maybe [NodeConfigurationOptionsFilter]
filters = Maybe [NodeConfigurationOptionsFilter]
a} :: DescribeNodeConfigurationOptions) ((Maybe [NodeConfigurationOptionsFilter]
  -> f (Maybe [NodeConfigurationOptionsFilter]))
 -> DescribeNodeConfigurationOptions
 -> f DescribeNodeConfigurationOptions)
-> ((Maybe [NodeConfigurationOptionsFilter]
     -> f (Maybe [NodeConfigurationOptionsFilter]))
    -> Maybe [NodeConfigurationOptionsFilter]
    -> f (Maybe [NodeConfigurationOptionsFilter]))
-> (Maybe [NodeConfigurationOptionsFilter]
    -> f (Maybe [NodeConfigurationOptionsFilter]))
-> DescribeNodeConfigurationOptions
-> f DescribeNodeConfigurationOptions
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [NodeConfigurationOptionsFilter]
  [NodeConfigurationOptionsFilter]
  [NodeConfigurationOptionsFilter]
  [NodeConfigurationOptionsFilter]
-> Iso
     (Maybe [NodeConfigurationOptionsFilter])
     (Maybe [NodeConfigurationOptionsFilter])
     (Maybe [NodeConfigurationOptionsFilter])
     (Maybe [NodeConfigurationOptionsFilter])
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
  [NodeConfigurationOptionsFilter]
  [NodeConfigurationOptionsFilter]
  [NodeConfigurationOptionsFilter]
  [NodeConfigurationOptionsFilter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The identifier of the cluster to evaluate for possible node
-- configurations.
describeNodeConfigurationOptions_clusterIdentifier :: Lens.Lens' DescribeNodeConfigurationOptions (Prelude.Maybe Prelude.Text)
describeNodeConfigurationOptions_clusterIdentifier :: (Maybe Text -> f (Maybe Text))
-> DescribeNodeConfigurationOptions
-> f DescribeNodeConfigurationOptions
describeNodeConfigurationOptions_clusterIdentifier = (DescribeNodeConfigurationOptions -> Maybe Text)
-> (DescribeNodeConfigurationOptions
    -> Maybe Text -> DescribeNodeConfigurationOptions)
-> Lens
     DescribeNodeConfigurationOptions
     DescribeNodeConfigurationOptions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeConfigurationOptions' {Maybe Text
clusterIdentifier :: Maybe Text
$sel:clusterIdentifier:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> Maybe Text
clusterIdentifier} -> Maybe Text
clusterIdentifier) (\s :: DescribeNodeConfigurationOptions
s@DescribeNodeConfigurationOptions' {} Maybe Text
a -> DescribeNodeConfigurationOptions
s {$sel:clusterIdentifier:DescribeNodeConfigurationOptions' :: Maybe Text
clusterIdentifier = Maybe Text
a} :: DescribeNodeConfigurationOptions)

-- | An optional parameter that specifies the starting point to return a set
-- of response records. When the results of a
-- DescribeNodeConfigurationOptions request exceed the value specified in
-- @MaxRecords@, Amazon Web Services returns a value in the @Marker@ field
-- of the response. You can retrieve the next set of response records by
-- providing the returned marker value in the @Marker@ parameter and
-- retrying the request.
describeNodeConfigurationOptions_marker :: Lens.Lens' DescribeNodeConfigurationOptions (Prelude.Maybe Prelude.Text)
describeNodeConfigurationOptions_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeNodeConfigurationOptions
-> f DescribeNodeConfigurationOptions
describeNodeConfigurationOptions_marker = (DescribeNodeConfigurationOptions -> Maybe Text)
-> (DescribeNodeConfigurationOptions
    -> Maybe Text -> DescribeNodeConfigurationOptions)
-> Lens
     DescribeNodeConfigurationOptions
     DescribeNodeConfigurationOptions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeConfigurationOptions' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeNodeConfigurationOptions
s@DescribeNodeConfigurationOptions' {} Maybe Text
a -> DescribeNodeConfigurationOptions
s {$sel:marker:DescribeNodeConfigurationOptions' :: Maybe Text
marker = Maybe Text
a} :: DescribeNodeConfigurationOptions)

-- | The maximum number of response records to return in each call. If the
-- number of remaining response records exceeds the specified @MaxRecords@
-- value, a value is returned in a @marker@ field of the response. You can
-- retrieve the next set of records by retrying the command with the
-- returned marker value.
--
-- Default: @500@
--
-- Constraints: minimum 100, maximum 500.
describeNodeConfigurationOptions_maxRecords :: Lens.Lens' DescribeNodeConfigurationOptions (Prelude.Maybe Prelude.Int)
describeNodeConfigurationOptions_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeNodeConfigurationOptions
-> f DescribeNodeConfigurationOptions
describeNodeConfigurationOptions_maxRecords = (DescribeNodeConfigurationOptions -> Maybe Int)
-> (DescribeNodeConfigurationOptions
    -> Maybe Int -> DescribeNodeConfigurationOptions)
-> Lens
     DescribeNodeConfigurationOptions
     DescribeNodeConfigurationOptions
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeConfigurationOptions' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeNodeConfigurationOptions
s@DescribeNodeConfigurationOptions' {} Maybe Int
a -> DescribeNodeConfigurationOptions
s {$sel:maxRecords:DescribeNodeConfigurationOptions' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeNodeConfigurationOptions)

-- | The Amazon Web Services account used to create or copy the snapshot.
-- Required if you are restoring a snapshot you do not own, optional if you
-- own the snapshot.
describeNodeConfigurationOptions_ownerAccount :: Lens.Lens' DescribeNodeConfigurationOptions (Prelude.Maybe Prelude.Text)
describeNodeConfigurationOptions_ownerAccount :: (Maybe Text -> f (Maybe Text))
-> DescribeNodeConfigurationOptions
-> f DescribeNodeConfigurationOptions
describeNodeConfigurationOptions_ownerAccount = (DescribeNodeConfigurationOptions -> Maybe Text)
-> (DescribeNodeConfigurationOptions
    -> Maybe Text -> DescribeNodeConfigurationOptions)
-> Lens
     DescribeNodeConfigurationOptions
     DescribeNodeConfigurationOptions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeConfigurationOptions' {Maybe Text
ownerAccount :: Maybe Text
$sel:ownerAccount:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> Maybe Text
ownerAccount} -> Maybe Text
ownerAccount) (\s :: DescribeNodeConfigurationOptions
s@DescribeNodeConfigurationOptions' {} Maybe Text
a -> DescribeNodeConfigurationOptions
s {$sel:ownerAccount:DescribeNodeConfigurationOptions' :: Maybe Text
ownerAccount = Maybe Text
a} :: DescribeNodeConfigurationOptions)

-- | The action type to evaluate for possible node configurations. Specify
-- \"restore-cluster\" to get configuration combinations based on an
-- existing snapshot. Specify \"recommend-node-config\" to get
-- configuration recommendations based on an existing cluster or snapshot.
-- Specify \"resize-cluster\" to get configuration combinations for elastic
-- resize based on an existing cluster.
describeNodeConfigurationOptions_actionType :: Lens.Lens' DescribeNodeConfigurationOptions ActionType
describeNodeConfigurationOptions_actionType :: (ActionType -> f ActionType)
-> DescribeNodeConfigurationOptions
-> f DescribeNodeConfigurationOptions
describeNodeConfigurationOptions_actionType = (DescribeNodeConfigurationOptions -> ActionType)
-> (DescribeNodeConfigurationOptions
    -> ActionType -> DescribeNodeConfigurationOptions)
-> Lens
     DescribeNodeConfigurationOptions
     DescribeNodeConfigurationOptions
     ActionType
     ActionType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeConfigurationOptions' {ActionType
actionType :: ActionType
$sel:actionType:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> ActionType
actionType} -> ActionType
actionType) (\s :: DescribeNodeConfigurationOptions
s@DescribeNodeConfigurationOptions' {} ActionType
a -> DescribeNodeConfigurationOptions
s {$sel:actionType:DescribeNodeConfigurationOptions' :: ActionType
actionType = ActionType
a} :: DescribeNodeConfigurationOptions)

instance
  Core.AWSPager
    DescribeNodeConfigurationOptions
  where
  page :: DescribeNodeConfigurationOptions
-> AWSResponse DescribeNodeConfigurationOptions
-> Maybe DescribeNodeConfigurationOptions
page DescribeNodeConfigurationOptions
rq AWSResponse DescribeNodeConfigurationOptions
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeNodeConfigurationOptions
DescribeNodeConfigurationOptionsResponse
rs
            DescribeNodeConfigurationOptionsResponse
-> Getting
     (First Text) DescribeNodeConfigurationOptionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeNodeConfigurationOptionsResponse
-> Const (First Text) DescribeNodeConfigurationOptionsResponse
Lens' DescribeNodeConfigurationOptionsResponse (Maybe Text)
describeNodeConfigurationOptionsResponse_marker
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeNodeConfigurationOptionsResponse
 -> Const (First Text) DescribeNodeConfigurationOptionsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) DescribeNodeConfigurationOptionsResponse 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 DescribeNodeConfigurationOptions
forall a. Maybe a
Prelude.Nothing
    | Maybe [NodeConfigurationOption] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeNodeConfigurationOptions
DescribeNodeConfigurationOptionsResponse
rs
            DescribeNodeConfigurationOptionsResponse
-> Getting
     (First [NodeConfigurationOption])
     DescribeNodeConfigurationOptionsResponse
     [NodeConfigurationOption]
-> Maybe [NodeConfigurationOption]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [NodeConfigurationOption]
 -> Const
      (First [NodeConfigurationOption])
      (Maybe [NodeConfigurationOption]))
-> DescribeNodeConfigurationOptionsResponse
-> Const
     (First [NodeConfigurationOption])
     DescribeNodeConfigurationOptionsResponse
Lens'
  DescribeNodeConfigurationOptionsResponse
  (Maybe [NodeConfigurationOption])
describeNodeConfigurationOptionsResponse_nodeConfigurationOptionList
              ((Maybe [NodeConfigurationOption]
  -> Const
       (First [NodeConfigurationOption])
       (Maybe [NodeConfigurationOption]))
 -> DescribeNodeConfigurationOptionsResponse
 -> Const
      (First [NodeConfigurationOption])
      DescribeNodeConfigurationOptionsResponse)
-> (([NodeConfigurationOption]
     -> Const
          (First [NodeConfigurationOption]) [NodeConfigurationOption])
    -> Maybe [NodeConfigurationOption]
    -> Const
         (First [NodeConfigurationOption])
         (Maybe [NodeConfigurationOption]))
-> Getting
     (First [NodeConfigurationOption])
     DescribeNodeConfigurationOptionsResponse
     [NodeConfigurationOption]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([NodeConfigurationOption]
 -> Const
      (First [NodeConfigurationOption]) [NodeConfigurationOption])
-> Maybe [NodeConfigurationOption]
-> Const
     (First [NodeConfigurationOption]) (Maybe [NodeConfigurationOption])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe DescribeNodeConfigurationOptions
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      DescribeNodeConfigurationOptions
-> Maybe DescribeNodeConfigurationOptions
forall a. a -> Maybe a
Prelude.Just (DescribeNodeConfigurationOptions
 -> Maybe DescribeNodeConfigurationOptions)
-> DescribeNodeConfigurationOptions
-> Maybe DescribeNodeConfigurationOptions
forall a b. (a -> b) -> a -> b
Prelude.$
        DescribeNodeConfigurationOptions
rq
          DescribeNodeConfigurationOptions
-> (DescribeNodeConfigurationOptions
    -> DescribeNodeConfigurationOptions)
-> DescribeNodeConfigurationOptions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeNodeConfigurationOptions
-> Identity DescribeNodeConfigurationOptions
Lens
  DescribeNodeConfigurationOptions
  DescribeNodeConfigurationOptions
  (Maybe Text)
  (Maybe Text)
describeNodeConfigurationOptions_marker
          ((Maybe Text -> Identity (Maybe Text))
 -> DescribeNodeConfigurationOptions
 -> Identity DescribeNodeConfigurationOptions)
-> Maybe Text
-> DescribeNodeConfigurationOptions
-> DescribeNodeConfigurationOptions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeNodeConfigurationOptions
DescribeNodeConfigurationOptionsResponse
rs
          DescribeNodeConfigurationOptionsResponse
-> Getting
     (First Text) DescribeNodeConfigurationOptionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeNodeConfigurationOptionsResponse
-> Const (First Text) DescribeNodeConfigurationOptionsResponse
Lens' DescribeNodeConfigurationOptionsResponse (Maybe Text)
describeNodeConfigurationOptionsResponse_marker
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeNodeConfigurationOptionsResponse
 -> Const (First Text) DescribeNodeConfigurationOptionsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) DescribeNodeConfigurationOptionsResponse 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
    DescribeNodeConfigurationOptions
  where
  type
    AWSResponse DescribeNodeConfigurationOptions =
      DescribeNodeConfigurationOptionsResponse
  request :: DescribeNodeConfigurationOptions
-> Request DescribeNodeConfigurationOptions
request = Service
-> DescribeNodeConfigurationOptions
-> Request DescribeNodeConfigurationOptions
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeNodeConfigurationOptions
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeNodeConfigurationOptions)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DescribeNodeConfigurationOptions))
-> Logger
-> Service
-> Proxy DescribeNodeConfigurationOptions
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeNodeConfigurationOptions)))
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
"DescribeNodeConfigurationOptionsResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe [NodeConfigurationOption]
-> Maybe Text -> Int -> DescribeNodeConfigurationOptionsResponse
DescribeNodeConfigurationOptionsResponse'
            (Maybe [NodeConfigurationOption]
 -> Maybe Text -> Int -> DescribeNodeConfigurationOptionsResponse)
-> Either String (Maybe [NodeConfigurationOption])
-> Either
     String
     (Maybe Text -> Int -> DescribeNodeConfigurationOptionsResponse)
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
"NodeConfigurationOptionList"
                            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 [NodeConfigurationOption]))
-> Either String (Maybe [NodeConfigurationOption])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [NodeConfigurationOption])
-> [Node] -> Either String (Maybe [NodeConfigurationOption])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may
                              (Text -> [Node] -> Either String [NodeConfigurationOption]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"NodeConfigurationOption")
                        )
            Either
  String
  (Maybe Text -> Int -> DescribeNodeConfigurationOptionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeNodeConfigurationOptionsResponse)
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 -> DescribeNodeConfigurationOptionsResponse)
-> Either String Int
-> Either String DescribeNodeConfigurationOptionsResponse
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
    DescribeNodeConfigurationOptions

instance
  Prelude.NFData
    DescribeNodeConfigurationOptions

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

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

instance
  Core.ToQuery
    DescribeNodeConfigurationOptions
  where
  toQuery :: DescribeNodeConfigurationOptions -> QueryString
toQuery DescribeNodeConfigurationOptions' {Maybe Int
Maybe [NodeConfigurationOptionsFilter]
Maybe Text
ActionType
actionType :: ActionType
ownerAccount :: Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
clusterIdentifier :: Maybe Text
filters :: Maybe [NodeConfigurationOptionsFilter]
snapshotIdentifier :: Maybe Text
$sel:actionType:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> ActionType
$sel:ownerAccount:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> Maybe Text
$sel:maxRecords:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> Maybe Int
$sel:marker:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> Maybe Text
$sel:clusterIdentifier:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> Maybe Text
$sel:filters:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions
-> Maybe [NodeConfigurationOptionsFilter]
$sel:snapshotIdentifier:DescribeNodeConfigurationOptions' :: DescribeNodeConfigurationOptions -> 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
"DescribeNodeConfigurationOptions" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
        ByteString
"SnapshotIdentifier" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
snapshotIdentifier,
        ByteString
"Filter"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            ( ByteString -> [NodeConfigurationOptionsFilter] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"NodeConfigurationOptionsFilter"
                ([NodeConfigurationOptionsFilter] -> QueryString)
-> Maybe [NodeConfigurationOptionsFilter] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [NodeConfigurationOptionsFilter]
filters
            ),
        ByteString
"ClusterIdentifier" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
clusterIdentifier,
        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
"OwnerAccount" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
ownerAccount,
        ByteString
"ActionType" ByteString -> ActionType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ActionType
actionType
      ]

-- | /See:/ 'newDescribeNodeConfigurationOptionsResponse' smart constructor.
data DescribeNodeConfigurationOptionsResponse = DescribeNodeConfigurationOptionsResponse'
  { -- | A list of valid node configurations.
    DescribeNodeConfigurationOptionsResponse
-> Maybe [NodeConfigurationOption]
nodeConfigurationOptionList :: Prelude.Maybe [NodeConfigurationOption],
    -- | A value that indicates the starting point for the next set of response
    -- records in a subsequent request. If a value is returned in a response,
    -- you can retrieve the next set of records by providing this returned
    -- marker value in the @Marker@ parameter and retrying the command. If the
    -- @Marker@ field is empty, all response records have been retrieved for
    -- the request.
    DescribeNodeConfigurationOptionsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeNodeConfigurationOptionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeNodeConfigurationOptionsResponse
-> DescribeNodeConfigurationOptionsResponse -> Bool
(DescribeNodeConfigurationOptionsResponse
 -> DescribeNodeConfigurationOptionsResponse -> Bool)
-> (DescribeNodeConfigurationOptionsResponse
    -> DescribeNodeConfigurationOptionsResponse -> Bool)
-> Eq DescribeNodeConfigurationOptionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeNodeConfigurationOptionsResponse
-> DescribeNodeConfigurationOptionsResponse -> Bool
$c/= :: DescribeNodeConfigurationOptionsResponse
-> DescribeNodeConfigurationOptionsResponse -> Bool
== :: DescribeNodeConfigurationOptionsResponse
-> DescribeNodeConfigurationOptionsResponse -> Bool
$c== :: DescribeNodeConfigurationOptionsResponse
-> DescribeNodeConfigurationOptionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeNodeConfigurationOptionsResponse]
ReadPrec DescribeNodeConfigurationOptionsResponse
Int -> ReadS DescribeNodeConfigurationOptionsResponse
ReadS [DescribeNodeConfigurationOptionsResponse]
(Int -> ReadS DescribeNodeConfigurationOptionsResponse)
-> ReadS [DescribeNodeConfigurationOptionsResponse]
-> ReadPrec DescribeNodeConfigurationOptionsResponse
-> ReadPrec [DescribeNodeConfigurationOptionsResponse]
-> Read DescribeNodeConfigurationOptionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeNodeConfigurationOptionsResponse]
$creadListPrec :: ReadPrec [DescribeNodeConfigurationOptionsResponse]
readPrec :: ReadPrec DescribeNodeConfigurationOptionsResponse
$creadPrec :: ReadPrec DescribeNodeConfigurationOptionsResponse
readList :: ReadS [DescribeNodeConfigurationOptionsResponse]
$creadList :: ReadS [DescribeNodeConfigurationOptionsResponse]
readsPrec :: Int -> ReadS DescribeNodeConfigurationOptionsResponse
$creadsPrec :: Int -> ReadS DescribeNodeConfigurationOptionsResponse
Prelude.Read, Int -> DescribeNodeConfigurationOptionsResponse -> ShowS
[DescribeNodeConfigurationOptionsResponse] -> ShowS
DescribeNodeConfigurationOptionsResponse -> String
(Int -> DescribeNodeConfigurationOptionsResponse -> ShowS)
-> (DescribeNodeConfigurationOptionsResponse -> String)
-> ([DescribeNodeConfigurationOptionsResponse] -> ShowS)
-> Show DescribeNodeConfigurationOptionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeNodeConfigurationOptionsResponse] -> ShowS
$cshowList :: [DescribeNodeConfigurationOptionsResponse] -> ShowS
show :: DescribeNodeConfigurationOptionsResponse -> String
$cshow :: DescribeNodeConfigurationOptionsResponse -> String
showsPrec :: Int -> DescribeNodeConfigurationOptionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeNodeConfigurationOptionsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeNodeConfigurationOptionsResponse
 -> Rep DescribeNodeConfigurationOptionsResponse x)
-> (forall x.
    Rep DescribeNodeConfigurationOptionsResponse x
    -> DescribeNodeConfigurationOptionsResponse)
-> Generic DescribeNodeConfigurationOptionsResponse
forall x.
Rep DescribeNodeConfigurationOptionsResponse x
-> DescribeNodeConfigurationOptionsResponse
forall x.
DescribeNodeConfigurationOptionsResponse
-> Rep DescribeNodeConfigurationOptionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeNodeConfigurationOptionsResponse x
-> DescribeNodeConfigurationOptionsResponse
$cfrom :: forall x.
DescribeNodeConfigurationOptionsResponse
-> Rep DescribeNodeConfigurationOptionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeNodeConfigurationOptionsResponse' 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:
--
-- 'nodeConfigurationOptionList', 'describeNodeConfigurationOptionsResponse_nodeConfigurationOptionList' - A list of valid node configurations.
--
-- 'marker', 'describeNodeConfigurationOptionsResponse_marker' - A value that indicates the starting point for the next set of response
-- records in a subsequent request. If a value is returned in a response,
-- you can retrieve the next set of records by providing this returned
-- marker value in the @Marker@ parameter and retrying the command. If the
-- @Marker@ field is empty, all response records have been retrieved for
-- the request.
--
-- 'httpStatus', 'describeNodeConfigurationOptionsResponse_httpStatus' - The response's http status code.
newDescribeNodeConfigurationOptionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeNodeConfigurationOptionsResponse
newDescribeNodeConfigurationOptionsResponse :: Int -> DescribeNodeConfigurationOptionsResponse
newDescribeNodeConfigurationOptionsResponse
  Int
pHttpStatus_ =
    DescribeNodeConfigurationOptionsResponse' :: Maybe [NodeConfigurationOption]
-> Maybe Text -> Int -> DescribeNodeConfigurationOptionsResponse
DescribeNodeConfigurationOptionsResponse'
      { $sel:nodeConfigurationOptionList:DescribeNodeConfigurationOptionsResponse' :: Maybe [NodeConfigurationOption]
nodeConfigurationOptionList =
          Maybe [NodeConfigurationOption]
forall a. Maybe a
Prelude.Nothing,
        $sel:marker:DescribeNodeConfigurationOptionsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeNodeConfigurationOptionsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A list of valid node configurations.
describeNodeConfigurationOptionsResponse_nodeConfigurationOptionList :: Lens.Lens' DescribeNodeConfigurationOptionsResponse (Prelude.Maybe [NodeConfigurationOption])
describeNodeConfigurationOptionsResponse_nodeConfigurationOptionList :: (Maybe [NodeConfigurationOption]
 -> f (Maybe [NodeConfigurationOption]))
-> DescribeNodeConfigurationOptionsResponse
-> f DescribeNodeConfigurationOptionsResponse
describeNodeConfigurationOptionsResponse_nodeConfigurationOptionList = (DescribeNodeConfigurationOptionsResponse
 -> Maybe [NodeConfigurationOption])
-> (DescribeNodeConfigurationOptionsResponse
    -> Maybe [NodeConfigurationOption]
    -> DescribeNodeConfigurationOptionsResponse)
-> Lens'
     DescribeNodeConfigurationOptionsResponse
     (Maybe [NodeConfigurationOption])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeConfigurationOptionsResponse' {Maybe [NodeConfigurationOption]
nodeConfigurationOptionList :: Maybe [NodeConfigurationOption]
$sel:nodeConfigurationOptionList:DescribeNodeConfigurationOptionsResponse' :: DescribeNodeConfigurationOptionsResponse
-> Maybe [NodeConfigurationOption]
nodeConfigurationOptionList} -> Maybe [NodeConfigurationOption]
nodeConfigurationOptionList) (\s :: DescribeNodeConfigurationOptionsResponse
s@DescribeNodeConfigurationOptionsResponse' {} Maybe [NodeConfigurationOption]
a -> DescribeNodeConfigurationOptionsResponse
s {$sel:nodeConfigurationOptionList:DescribeNodeConfigurationOptionsResponse' :: Maybe [NodeConfigurationOption]
nodeConfigurationOptionList = Maybe [NodeConfigurationOption]
a} :: DescribeNodeConfigurationOptionsResponse) ((Maybe [NodeConfigurationOption]
  -> f (Maybe [NodeConfigurationOption]))
 -> DescribeNodeConfigurationOptionsResponse
 -> f DescribeNodeConfigurationOptionsResponse)
-> ((Maybe [NodeConfigurationOption]
     -> f (Maybe [NodeConfigurationOption]))
    -> Maybe [NodeConfigurationOption]
    -> f (Maybe [NodeConfigurationOption]))
-> (Maybe [NodeConfigurationOption]
    -> f (Maybe [NodeConfigurationOption]))
-> DescribeNodeConfigurationOptionsResponse
-> f DescribeNodeConfigurationOptionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [NodeConfigurationOption]
  [NodeConfigurationOption]
  [NodeConfigurationOption]
  [NodeConfigurationOption]
-> Iso
     (Maybe [NodeConfigurationOption])
     (Maybe [NodeConfigurationOption])
     (Maybe [NodeConfigurationOption])
     (Maybe [NodeConfigurationOption])
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
  [NodeConfigurationOption]
  [NodeConfigurationOption]
  [NodeConfigurationOption]
  [NodeConfigurationOption]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A value that indicates the starting point for the next set of response
-- records in a subsequent request. If a value is returned in a response,
-- you can retrieve the next set of records by providing this returned
-- marker value in the @Marker@ parameter and retrying the command. If the
-- @Marker@ field is empty, all response records have been retrieved for
-- the request.
describeNodeConfigurationOptionsResponse_marker :: Lens.Lens' DescribeNodeConfigurationOptionsResponse (Prelude.Maybe Prelude.Text)
describeNodeConfigurationOptionsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeNodeConfigurationOptionsResponse
-> f DescribeNodeConfigurationOptionsResponse
describeNodeConfigurationOptionsResponse_marker = (DescribeNodeConfigurationOptionsResponse -> Maybe Text)
-> (DescribeNodeConfigurationOptionsResponse
    -> Maybe Text -> DescribeNodeConfigurationOptionsResponse)
-> Lens' DescribeNodeConfigurationOptionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNodeConfigurationOptionsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeNodeConfigurationOptionsResponse' :: DescribeNodeConfigurationOptionsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeNodeConfigurationOptionsResponse
s@DescribeNodeConfigurationOptionsResponse' {} Maybe Text
a -> DescribeNodeConfigurationOptionsResponse
s {$sel:marker:DescribeNodeConfigurationOptionsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeNodeConfigurationOptionsResponse)

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

instance
  Prelude.NFData
    DescribeNodeConfigurationOptionsResponse