{-# 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 #-}
module Amazonka.DocumentDB.Types.DBClusterParameterGroup where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data DBClusterParameterGroup = DBClusterParameterGroup'
{
DBClusterParameterGroup -> Maybe Text
dbClusterParameterGroupArn :: Prelude.Maybe Prelude.Text,
DBClusterParameterGroup -> Maybe Text
dbParameterGroupFamily :: Prelude.Maybe Prelude.Text,
DBClusterParameterGroup -> Maybe Text
dbClusterParameterGroupName :: Prelude.Maybe Prelude.Text,
DBClusterParameterGroup -> Maybe Text
description :: Prelude.Maybe Prelude.Text
}
deriving (DBClusterParameterGroup -> DBClusterParameterGroup -> Bool
(DBClusterParameterGroup -> DBClusterParameterGroup -> Bool)
-> (DBClusterParameterGroup -> DBClusterParameterGroup -> Bool)
-> Eq DBClusterParameterGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DBClusterParameterGroup -> DBClusterParameterGroup -> Bool
$c/= :: DBClusterParameterGroup -> DBClusterParameterGroup -> Bool
== :: DBClusterParameterGroup -> DBClusterParameterGroup -> Bool
$c== :: DBClusterParameterGroup -> DBClusterParameterGroup -> Bool
Prelude.Eq, ReadPrec [DBClusterParameterGroup]
ReadPrec DBClusterParameterGroup
Int -> ReadS DBClusterParameterGroup
ReadS [DBClusterParameterGroup]
(Int -> ReadS DBClusterParameterGroup)
-> ReadS [DBClusterParameterGroup]
-> ReadPrec DBClusterParameterGroup
-> ReadPrec [DBClusterParameterGroup]
-> Read DBClusterParameterGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DBClusterParameterGroup]
$creadListPrec :: ReadPrec [DBClusterParameterGroup]
readPrec :: ReadPrec DBClusterParameterGroup
$creadPrec :: ReadPrec DBClusterParameterGroup
readList :: ReadS [DBClusterParameterGroup]
$creadList :: ReadS [DBClusterParameterGroup]
readsPrec :: Int -> ReadS DBClusterParameterGroup
$creadsPrec :: Int -> ReadS DBClusterParameterGroup
Prelude.Read, Int -> DBClusterParameterGroup -> ShowS
[DBClusterParameterGroup] -> ShowS
DBClusterParameterGroup -> String
(Int -> DBClusterParameterGroup -> ShowS)
-> (DBClusterParameterGroup -> String)
-> ([DBClusterParameterGroup] -> ShowS)
-> Show DBClusterParameterGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DBClusterParameterGroup] -> ShowS
$cshowList :: [DBClusterParameterGroup] -> ShowS
show :: DBClusterParameterGroup -> String
$cshow :: DBClusterParameterGroup -> String
showsPrec :: Int -> DBClusterParameterGroup -> ShowS
$cshowsPrec :: Int -> DBClusterParameterGroup -> ShowS
Prelude.Show, (forall x.
DBClusterParameterGroup -> Rep DBClusterParameterGroup x)
-> (forall x.
Rep DBClusterParameterGroup x -> DBClusterParameterGroup)
-> Generic DBClusterParameterGroup
forall x. Rep DBClusterParameterGroup x -> DBClusterParameterGroup
forall x. DBClusterParameterGroup -> Rep DBClusterParameterGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DBClusterParameterGroup x -> DBClusterParameterGroup
$cfrom :: forall x. DBClusterParameterGroup -> Rep DBClusterParameterGroup x
Prelude.Generic)
newDBClusterParameterGroup ::
DBClusterParameterGroup
newDBClusterParameterGroup :: DBClusterParameterGroup
newDBClusterParameterGroup =
DBClusterParameterGroup' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DBClusterParameterGroup
DBClusterParameterGroup'
{ $sel:dbClusterParameterGroupArn:DBClusterParameterGroup' :: Maybe Text
dbClusterParameterGroupArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbParameterGroupFamily:DBClusterParameterGroup' :: Maybe Text
dbParameterGroupFamily = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterParameterGroupName:DBClusterParameterGroup' :: Maybe Text
dbClusterParameterGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:DBClusterParameterGroup' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
dbClusterParameterGroup_dbClusterParameterGroupArn :: Lens.Lens' DBClusterParameterGroup (Prelude.Maybe Prelude.Text)
dbClusterParameterGroup_dbClusterParameterGroupArn :: (Maybe Text -> f (Maybe Text))
-> DBClusterParameterGroup -> f DBClusterParameterGroup
dbClusterParameterGroup_dbClusterParameterGroupArn = (DBClusterParameterGroup -> Maybe Text)
-> (DBClusterParameterGroup
-> Maybe Text -> DBClusterParameterGroup)
-> Lens
DBClusterParameterGroup
DBClusterParameterGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterParameterGroup' {Maybe Text
dbClusterParameterGroupArn :: Maybe Text
$sel:dbClusterParameterGroupArn:DBClusterParameterGroup' :: DBClusterParameterGroup -> Maybe Text
dbClusterParameterGroupArn} -> Maybe Text
dbClusterParameterGroupArn) (\s :: DBClusterParameterGroup
s@DBClusterParameterGroup' {} Maybe Text
a -> DBClusterParameterGroup
s {$sel:dbClusterParameterGroupArn:DBClusterParameterGroup' :: Maybe Text
dbClusterParameterGroupArn = Maybe Text
a} :: DBClusterParameterGroup)
dbClusterParameterGroup_dbParameterGroupFamily :: Lens.Lens' DBClusterParameterGroup (Prelude.Maybe Prelude.Text)
dbClusterParameterGroup_dbParameterGroupFamily :: (Maybe Text -> f (Maybe Text))
-> DBClusterParameterGroup -> f DBClusterParameterGroup
dbClusterParameterGroup_dbParameterGroupFamily = (DBClusterParameterGroup -> Maybe Text)
-> (DBClusterParameterGroup
-> Maybe Text -> DBClusterParameterGroup)
-> Lens
DBClusterParameterGroup
DBClusterParameterGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterParameterGroup' {Maybe Text
dbParameterGroupFamily :: Maybe Text
$sel:dbParameterGroupFamily:DBClusterParameterGroup' :: DBClusterParameterGroup -> Maybe Text
dbParameterGroupFamily} -> Maybe Text
dbParameterGroupFamily) (\s :: DBClusterParameterGroup
s@DBClusterParameterGroup' {} Maybe Text
a -> DBClusterParameterGroup
s {$sel:dbParameterGroupFamily:DBClusterParameterGroup' :: Maybe Text
dbParameterGroupFamily = Maybe Text
a} :: DBClusterParameterGroup)
dbClusterParameterGroup_dbClusterParameterGroupName :: Lens.Lens' DBClusterParameterGroup (Prelude.Maybe Prelude.Text)
dbClusterParameterGroup_dbClusterParameterGroupName :: (Maybe Text -> f (Maybe Text))
-> DBClusterParameterGroup -> f DBClusterParameterGroup
dbClusterParameterGroup_dbClusterParameterGroupName = (DBClusterParameterGroup -> Maybe Text)
-> (DBClusterParameterGroup
-> Maybe Text -> DBClusterParameterGroup)
-> Lens
DBClusterParameterGroup
DBClusterParameterGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterParameterGroup' {Maybe Text
dbClusterParameterGroupName :: Maybe Text
$sel:dbClusterParameterGroupName:DBClusterParameterGroup' :: DBClusterParameterGroup -> Maybe Text
dbClusterParameterGroupName} -> Maybe Text
dbClusterParameterGroupName) (\s :: DBClusterParameterGroup
s@DBClusterParameterGroup' {} Maybe Text
a -> DBClusterParameterGroup
s {$sel:dbClusterParameterGroupName:DBClusterParameterGroup' :: Maybe Text
dbClusterParameterGroupName = Maybe Text
a} :: DBClusterParameterGroup)
dbClusterParameterGroup_description :: Lens.Lens' DBClusterParameterGroup (Prelude.Maybe Prelude.Text)
dbClusterParameterGroup_description :: (Maybe Text -> f (Maybe Text))
-> DBClusterParameterGroup -> f DBClusterParameterGroup
dbClusterParameterGroup_description = (DBClusterParameterGroup -> Maybe Text)
-> (DBClusterParameterGroup
-> Maybe Text -> DBClusterParameterGroup)
-> Lens
DBClusterParameterGroup
DBClusterParameterGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterParameterGroup' {Maybe Text
description :: Maybe Text
$sel:description:DBClusterParameterGroup' :: DBClusterParameterGroup -> Maybe Text
description} -> Maybe Text
description) (\s :: DBClusterParameterGroup
s@DBClusterParameterGroup' {} Maybe Text
a -> DBClusterParameterGroup
s {$sel:description:DBClusterParameterGroup' :: Maybe Text
description = Maybe Text
a} :: DBClusterParameterGroup)
instance Core.FromXML DBClusterParameterGroup where
parseXML :: [Node] -> Either String DBClusterParameterGroup
parseXML [Node]
x =
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DBClusterParameterGroup
DBClusterParameterGroup'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DBClusterParameterGroup)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Maybe Text -> DBClusterParameterGroup)
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
"DBClusterParameterGroupArn")
Either
String
(Maybe Text -> Maybe Text -> Maybe Text -> DBClusterParameterGroup)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Maybe Text -> DBClusterParameterGroup)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBParameterGroupFamily")
Either String (Maybe Text -> Maybe Text -> DBClusterParameterGroup)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> DBClusterParameterGroup)
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
"DBClusterParameterGroupName")
Either String (Maybe Text -> DBClusterParameterGroup)
-> Either String (Maybe Text)
-> Either String DBClusterParameterGroup
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
"Description")
instance Prelude.Hashable DBClusterParameterGroup
instance Prelude.NFData DBClusterParameterGroup