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

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

-- |
-- Module      : Amazonka.Redshift.Types.PendingModifiedValues
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Redshift.Types.PendingModifiedValues where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Internal

-- | Describes cluster attributes that are in a pending state. A change to
-- one or more the attributes was requested and is in progress or will be
-- applied.
--
-- /See:/ 'newPendingModifiedValues' smart constructor.
data PendingModifiedValues = PendingModifiedValues'
  { -- | The encryption type for a cluster. Possible values are: KMS and None.
    PendingModifiedValues -> Maybe Text
encryptionType :: Prelude.Maybe Prelude.Text,
    -- | An option that specifies whether to create the cluster with enhanced VPC
    -- routing enabled. To create a cluster that uses enhanced VPC routing, the
    -- cluster must be in a VPC. For more information, see
    -- <https://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html Enhanced VPC Routing>
    -- in the Amazon Redshift Cluster Management Guide.
    --
    -- If this option is @true@, enhanced VPC routing is enabled.
    --
    -- Default: false
    PendingModifiedValues -> Maybe Bool
enhancedVpcRouting :: Prelude.Maybe Prelude.Bool,
    -- | The pending or in-progress change of the admin user password for the
    -- cluster.
    PendingModifiedValues -> Maybe Text
masterUserPassword :: Prelude.Maybe Prelude.Text,
    -- | The pending or in-progress change of the ability to connect to the
    -- cluster from the public network.
    PendingModifiedValues -> Maybe Bool
publiclyAccessible :: Prelude.Maybe Prelude.Bool,
    -- | The name of the maintenance track that the cluster will change to during
    -- the next maintenance window.
    PendingModifiedValues -> Maybe Text
maintenanceTrackName :: Prelude.Maybe Prelude.Text,
    -- | The pending or in-progress change of the automated snapshot retention
    -- period.
    PendingModifiedValues -> Maybe Int
automatedSnapshotRetentionPeriod :: Prelude.Maybe Prelude.Int,
    -- | The pending or in-progress change of the new identifier for the cluster.
    PendingModifiedValues -> Maybe Text
clusterIdentifier :: Prelude.Maybe Prelude.Text,
    -- | The pending or in-progress change of the number of nodes in the cluster.
    PendingModifiedValues -> Maybe Int
numberOfNodes :: Prelude.Maybe Prelude.Int,
    -- | The pending or in-progress change of the cluster type.
    PendingModifiedValues -> Maybe Text
clusterType :: Prelude.Maybe Prelude.Text,
    -- | The pending or in-progress change of the service version.
    PendingModifiedValues -> Maybe Text
clusterVersion :: Prelude.Maybe Prelude.Text,
    -- | The pending or in-progress change of the cluster\'s node type.
    PendingModifiedValues -> Maybe Text
nodeType :: Prelude.Maybe Prelude.Text
  }
  deriving (PendingModifiedValues -> PendingModifiedValues -> Bool
(PendingModifiedValues -> PendingModifiedValues -> Bool)
-> (PendingModifiedValues -> PendingModifiedValues -> Bool)
-> Eq PendingModifiedValues
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PendingModifiedValues -> PendingModifiedValues -> Bool
$c/= :: PendingModifiedValues -> PendingModifiedValues -> Bool
== :: PendingModifiedValues -> PendingModifiedValues -> Bool
$c== :: PendingModifiedValues -> PendingModifiedValues -> Bool
Prelude.Eq, ReadPrec [PendingModifiedValues]
ReadPrec PendingModifiedValues
Int -> ReadS PendingModifiedValues
ReadS [PendingModifiedValues]
(Int -> ReadS PendingModifiedValues)
-> ReadS [PendingModifiedValues]
-> ReadPrec PendingModifiedValues
-> ReadPrec [PendingModifiedValues]
-> Read PendingModifiedValues
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PendingModifiedValues]
$creadListPrec :: ReadPrec [PendingModifiedValues]
readPrec :: ReadPrec PendingModifiedValues
$creadPrec :: ReadPrec PendingModifiedValues
readList :: ReadS [PendingModifiedValues]
$creadList :: ReadS [PendingModifiedValues]
readsPrec :: Int -> ReadS PendingModifiedValues
$creadsPrec :: Int -> ReadS PendingModifiedValues
Prelude.Read, Int -> PendingModifiedValues -> ShowS
[PendingModifiedValues] -> ShowS
PendingModifiedValues -> String
(Int -> PendingModifiedValues -> ShowS)
-> (PendingModifiedValues -> String)
-> ([PendingModifiedValues] -> ShowS)
-> Show PendingModifiedValues
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PendingModifiedValues] -> ShowS
$cshowList :: [PendingModifiedValues] -> ShowS
show :: PendingModifiedValues -> String
$cshow :: PendingModifiedValues -> String
showsPrec :: Int -> PendingModifiedValues -> ShowS
$cshowsPrec :: Int -> PendingModifiedValues -> ShowS
Prelude.Show, (forall x. PendingModifiedValues -> Rep PendingModifiedValues x)
-> (forall x. Rep PendingModifiedValues x -> PendingModifiedValues)
-> Generic PendingModifiedValues
forall x. Rep PendingModifiedValues x -> PendingModifiedValues
forall x. PendingModifiedValues -> Rep PendingModifiedValues x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PendingModifiedValues x -> PendingModifiedValues
$cfrom :: forall x. PendingModifiedValues -> Rep PendingModifiedValues x
Prelude.Generic)

-- |
-- Create a value of 'PendingModifiedValues' 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:
--
-- 'encryptionType', 'pendingModifiedValues_encryptionType' - The encryption type for a cluster. Possible values are: KMS and None.
--
-- 'enhancedVpcRouting', 'pendingModifiedValues_enhancedVpcRouting' - An option that specifies whether to create the cluster with enhanced VPC
-- routing enabled. To create a cluster that uses enhanced VPC routing, the
-- cluster must be in a VPC. For more information, see
-- <https://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html Enhanced VPC Routing>
-- in the Amazon Redshift Cluster Management Guide.
--
-- If this option is @true@, enhanced VPC routing is enabled.
--
-- Default: false
--
-- 'masterUserPassword', 'pendingModifiedValues_masterUserPassword' - The pending or in-progress change of the admin user password for the
-- cluster.
--
-- 'publiclyAccessible', 'pendingModifiedValues_publiclyAccessible' - The pending or in-progress change of the ability to connect to the
-- cluster from the public network.
--
-- 'maintenanceTrackName', 'pendingModifiedValues_maintenanceTrackName' - The name of the maintenance track that the cluster will change to during
-- the next maintenance window.
--
-- 'automatedSnapshotRetentionPeriod', 'pendingModifiedValues_automatedSnapshotRetentionPeriod' - The pending or in-progress change of the automated snapshot retention
-- period.
--
-- 'clusterIdentifier', 'pendingModifiedValues_clusterIdentifier' - The pending or in-progress change of the new identifier for the cluster.
--
-- 'numberOfNodes', 'pendingModifiedValues_numberOfNodes' - The pending or in-progress change of the number of nodes in the cluster.
--
-- 'clusterType', 'pendingModifiedValues_clusterType' - The pending or in-progress change of the cluster type.
--
-- 'clusterVersion', 'pendingModifiedValues_clusterVersion' - The pending or in-progress change of the service version.
--
-- 'nodeType', 'pendingModifiedValues_nodeType' - The pending or in-progress change of the cluster\'s node type.
newPendingModifiedValues ::
  PendingModifiedValues
newPendingModifiedValues :: PendingModifiedValues
newPendingModifiedValues =
  PendingModifiedValues' :: Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> PendingModifiedValues
PendingModifiedValues'
    { $sel:encryptionType:PendingModifiedValues' :: Maybe Text
encryptionType =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:enhancedVpcRouting:PendingModifiedValues' :: Maybe Bool
enhancedVpcRouting = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:masterUserPassword:PendingModifiedValues' :: Maybe Text
masterUserPassword = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:publiclyAccessible:PendingModifiedValues' :: Maybe Bool
publiclyAccessible = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:maintenanceTrackName:PendingModifiedValues' :: Maybe Text
maintenanceTrackName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:automatedSnapshotRetentionPeriod:PendingModifiedValues' :: Maybe Int
automatedSnapshotRetentionPeriod = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:clusterIdentifier:PendingModifiedValues' :: Maybe Text
clusterIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:numberOfNodes:PendingModifiedValues' :: Maybe Int
numberOfNodes = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:clusterType:PendingModifiedValues' :: Maybe Text
clusterType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:clusterVersion:PendingModifiedValues' :: Maybe Text
clusterVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nodeType:PendingModifiedValues' :: Maybe Text
nodeType = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The encryption type for a cluster. Possible values are: KMS and None.
pendingModifiedValues_encryptionType :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_encryptionType :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_encryptionType = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
encryptionType :: Maybe Text
$sel:encryptionType:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
encryptionType} -> Maybe Text
encryptionType) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:encryptionType:PendingModifiedValues' :: Maybe Text
encryptionType = Maybe Text
a} :: PendingModifiedValues)

-- | An option that specifies whether to create the cluster with enhanced VPC
-- routing enabled. To create a cluster that uses enhanced VPC routing, the
-- cluster must be in a VPC. For more information, see
-- <https://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html Enhanced VPC Routing>
-- in the Amazon Redshift Cluster Management Guide.
--
-- If this option is @true@, enhanced VPC routing is enabled.
--
-- Default: false
pendingModifiedValues_enhancedVpcRouting :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Bool)
pendingModifiedValues_enhancedVpcRouting :: (Maybe Bool -> f (Maybe Bool))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_enhancedVpcRouting = (PendingModifiedValues -> Maybe Bool)
-> (PendingModifiedValues -> Maybe Bool -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Bool
enhancedVpcRouting :: Maybe Bool
$sel:enhancedVpcRouting:PendingModifiedValues' :: PendingModifiedValues -> Maybe Bool
enhancedVpcRouting} -> Maybe Bool
enhancedVpcRouting) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Bool
a -> PendingModifiedValues
s {$sel:enhancedVpcRouting:PendingModifiedValues' :: Maybe Bool
enhancedVpcRouting = Maybe Bool
a} :: PendingModifiedValues)

-- | The pending or in-progress change of the admin user password for the
-- cluster.
pendingModifiedValues_masterUserPassword :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_masterUserPassword :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_masterUserPassword = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
masterUserPassword :: Maybe Text
$sel:masterUserPassword:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
masterUserPassword} -> Maybe Text
masterUserPassword) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:masterUserPassword:PendingModifiedValues' :: Maybe Text
masterUserPassword = Maybe Text
a} :: PendingModifiedValues)

-- | The pending or in-progress change of the ability to connect to the
-- cluster from the public network.
pendingModifiedValues_publiclyAccessible :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Bool)
pendingModifiedValues_publiclyAccessible :: (Maybe Bool -> f (Maybe Bool))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_publiclyAccessible = (PendingModifiedValues -> Maybe Bool)
-> (PendingModifiedValues -> Maybe Bool -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Bool
publiclyAccessible :: Maybe Bool
$sel:publiclyAccessible:PendingModifiedValues' :: PendingModifiedValues -> Maybe Bool
publiclyAccessible} -> Maybe Bool
publiclyAccessible) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Bool
a -> PendingModifiedValues
s {$sel:publiclyAccessible:PendingModifiedValues' :: Maybe Bool
publiclyAccessible = Maybe Bool
a} :: PendingModifiedValues)

-- | The name of the maintenance track that the cluster will change to during
-- the next maintenance window.
pendingModifiedValues_maintenanceTrackName :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_maintenanceTrackName :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_maintenanceTrackName = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
maintenanceTrackName :: Maybe Text
$sel:maintenanceTrackName:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
maintenanceTrackName} -> Maybe Text
maintenanceTrackName) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:maintenanceTrackName:PendingModifiedValues' :: Maybe Text
maintenanceTrackName = Maybe Text
a} :: PendingModifiedValues)

-- | The pending or in-progress change of the automated snapshot retention
-- period.
pendingModifiedValues_automatedSnapshotRetentionPeriod :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Int)
pendingModifiedValues_automatedSnapshotRetentionPeriod :: (Maybe Int -> f (Maybe Int))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_automatedSnapshotRetentionPeriod = (PendingModifiedValues -> Maybe Int)
-> (PendingModifiedValues -> Maybe Int -> PendingModifiedValues)
-> Lens
     PendingModifiedValues PendingModifiedValues (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Int
automatedSnapshotRetentionPeriod :: Maybe Int
$sel:automatedSnapshotRetentionPeriod:PendingModifiedValues' :: PendingModifiedValues -> Maybe Int
automatedSnapshotRetentionPeriod} -> Maybe Int
automatedSnapshotRetentionPeriod) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Int
a -> PendingModifiedValues
s {$sel:automatedSnapshotRetentionPeriod:PendingModifiedValues' :: Maybe Int
automatedSnapshotRetentionPeriod = Maybe Int
a} :: PendingModifiedValues)

-- | The pending or in-progress change of the new identifier for the cluster.
pendingModifiedValues_clusterIdentifier :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_clusterIdentifier :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_clusterIdentifier = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
clusterIdentifier :: Maybe Text
$sel:clusterIdentifier:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
clusterIdentifier} -> Maybe Text
clusterIdentifier) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:clusterIdentifier:PendingModifiedValues' :: Maybe Text
clusterIdentifier = Maybe Text
a} :: PendingModifiedValues)

-- | The pending or in-progress change of the number of nodes in the cluster.
pendingModifiedValues_numberOfNodes :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Int)
pendingModifiedValues_numberOfNodes :: (Maybe Int -> f (Maybe Int))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_numberOfNodes = (PendingModifiedValues -> Maybe Int)
-> (PendingModifiedValues -> Maybe Int -> PendingModifiedValues)
-> Lens
     PendingModifiedValues PendingModifiedValues (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Int
numberOfNodes :: Maybe Int
$sel:numberOfNodes:PendingModifiedValues' :: PendingModifiedValues -> Maybe Int
numberOfNodes} -> Maybe Int
numberOfNodes) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Int
a -> PendingModifiedValues
s {$sel:numberOfNodes:PendingModifiedValues' :: Maybe Int
numberOfNodes = Maybe Int
a} :: PendingModifiedValues)

-- | The pending or in-progress change of the cluster type.
pendingModifiedValues_clusterType :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_clusterType :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_clusterType = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
clusterType :: Maybe Text
$sel:clusterType:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
clusterType} -> Maybe Text
clusterType) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:clusterType:PendingModifiedValues' :: Maybe Text
clusterType = Maybe Text
a} :: PendingModifiedValues)

-- | The pending or in-progress change of the service version.
pendingModifiedValues_clusterVersion :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_clusterVersion :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_clusterVersion = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
clusterVersion :: Maybe Text
$sel:clusterVersion:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
clusterVersion} -> Maybe Text
clusterVersion) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:clusterVersion:PendingModifiedValues' :: Maybe Text
clusterVersion = Maybe Text
a} :: PendingModifiedValues)

-- | The pending or in-progress change of the cluster\'s node type.
pendingModifiedValues_nodeType :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_nodeType :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_nodeType = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
nodeType :: Maybe Text
$sel:nodeType:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
nodeType} -> Maybe Text
nodeType) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:nodeType:PendingModifiedValues' :: Maybe Text
nodeType = Maybe Text
a} :: PendingModifiedValues)

instance Core.FromXML PendingModifiedValues where
  parseXML :: [Node] -> Either String PendingModifiedValues
parseXML [Node]
x =
    Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> PendingModifiedValues
PendingModifiedValues'
      (Maybe Text
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Bool
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EncryptionType")
      Either
  String
  (Maybe Bool
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EnhancedVpcRouting")
      Either
  String
  (Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Bool
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> PendingModifiedValues)
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
"MasterUserPassword")
      Either
  String
  (Maybe Bool
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PubliclyAccessible")
      Either
  String
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> PendingModifiedValues)
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
"MaintenanceTrackName")
      Either
  String
  (Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AutomatedSnapshotRetentionPeriod")
      Either
  String
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Int
      -> Maybe Text -> Maybe Text -> Maybe Text -> PendingModifiedValues)
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
"ClusterIdentifier")
      Either
  String
  (Maybe Int
   -> Maybe Text -> Maybe Text -> Maybe Text -> PendingModifiedValues)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe Text -> Maybe Text -> Maybe Text -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NumberOfNodes")
      Either
  String
  (Maybe Text -> Maybe Text -> Maybe Text -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String (Maybe Text -> Maybe Text -> PendingModifiedValues)
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
"ClusterType")
      Either String (Maybe Text -> Maybe Text -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> PendingModifiedValues)
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
"ClusterVersion")
      Either String (Maybe Text -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either String PendingModifiedValues
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
"NodeType")

instance Prelude.Hashable PendingModifiedValues

instance Prelude.NFData PendingModifiedValues