{-# 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.RDS.Types.DBParameterGroup where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data DBParameterGroup = DBParameterGroup'
{
DBParameterGroup -> Maybe Text
dbParameterGroupArn :: Prelude.Maybe Prelude.Text,
DBParameterGroup -> Maybe Text
dbParameterGroupFamily :: Prelude.Maybe Prelude.Text,
DBParameterGroup -> Maybe Text
dbParameterGroupName :: Prelude.Maybe Prelude.Text,
DBParameterGroup -> Maybe Text
description :: Prelude.Maybe Prelude.Text
}
deriving (DBParameterGroup -> DBParameterGroup -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DBParameterGroup -> DBParameterGroup -> Bool
$c/= :: DBParameterGroup -> DBParameterGroup -> Bool
== :: DBParameterGroup -> DBParameterGroup -> Bool
$c== :: DBParameterGroup -> DBParameterGroup -> Bool
Prelude.Eq, ReadPrec [DBParameterGroup]
ReadPrec DBParameterGroup
Int -> ReadS DBParameterGroup
ReadS [DBParameterGroup]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DBParameterGroup]
$creadListPrec :: ReadPrec [DBParameterGroup]
readPrec :: ReadPrec DBParameterGroup
$creadPrec :: ReadPrec DBParameterGroup
readList :: ReadS [DBParameterGroup]
$creadList :: ReadS [DBParameterGroup]
readsPrec :: Int -> ReadS DBParameterGroup
$creadsPrec :: Int -> ReadS DBParameterGroup
Prelude.Read, Int -> DBParameterGroup -> ShowS
[DBParameterGroup] -> ShowS
DBParameterGroup -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DBParameterGroup] -> ShowS
$cshowList :: [DBParameterGroup] -> ShowS
show :: DBParameterGroup -> String
$cshow :: DBParameterGroup -> String
showsPrec :: Int -> DBParameterGroup -> ShowS
$cshowsPrec :: Int -> DBParameterGroup -> ShowS
Prelude.Show, forall x. Rep DBParameterGroup x -> DBParameterGroup
forall x. DBParameterGroup -> Rep DBParameterGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DBParameterGroup x -> DBParameterGroup
$cfrom :: forall x. DBParameterGroup -> Rep DBParameterGroup x
Prelude.Generic)
newDBParameterGroup ::
DBParameterGroup
newDBParameterGroup :: DBParameterGroup
newDBParameterGroup =
DBParameterGroup'
{ $sel:dbParameterGroupArn:DBParameterGroup' :: Maybe Text
dbParameterGroupArn =
forall a. Maybe a
Prelude.Nothing,
$sel:dbParameterGroupFamily:DBParameterGroup' :: Maybe Text
dbParameterGroupFamily = forall a. Maybe a
Prelude.Nothing,
$sel:dbParameterGroupName:DBParameterGroup' :: Maybe Text
dbParameterGroupName = forall a. Maybe a
Prelude.Nothing,
$sel:description:DBParameterGroup' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing
}
dbParameterGroup_dbParameterGroupArn :: Lens.Lens' DBParameterGroup (Prelude.Maybe Prelude.Text)
dbParameterGroup_dbParameterGroupArn :: Lens' DBParameterGroup (Maybe Text)
dbParameterGroup_dbParameterGroupArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBParameterGroup' {Maybe Text
dbParameterGroupArn :: Maybe Text
$sel:dbParameterGroupArn:DBParameterGroup' :: DBParameterGroup -> Maybe Text
dbParameterGroupArn} -> Maybe Text
dbParameterGroupArn) (\s :: DBParameterGroup
s@DBParameterGroup' {} Maybe Text
a -> DBParameterGroup
s {$sel:dbParameterGroupArn:DBParameterGroup' :: Maybe Text
dbParameterGroupArn = Maybe Text
a} :: DBParameterGroup)
dbParameterGroup_dbParameterGroupFamily :: Lens.Lens' DBParameterGroup (Prelude.Maybe Prelude.Text)
dbParameterGroup_dbParameterGroupFamily :: Lens' DBParameterGroup (Maybe Text)
dbParameterGroup_dbParameterGroupFamily = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBParameterGroup' {Maybe Text
dbParameterGroupFamily :: Maybe Text
$sel:dbParameterGroupFamily:DBParameterGroup' :: DBParameterGroup -> Maybe Text
dbParameterGroupFamily} -> Maybe Text
dbParameterGroupFamily) (\s :: DBParameterGroup
s@DBParameterGroup' {} Maybe Text
a -> DBParameterGroup
s {$sel:dbParameterGroupFamily:DBParameterGroup' :: Maybe Text
dbParameterGroupFamily = Maybe Text
a} :: DBParameterGroup)
dbParameterGroup_dbParameterGroupName :: Lens.Lens' DBParameterGroup (Prelude.Maybe Prelude.Text)
dbParameterGroup_dbParameterGroupName :: Lens' DBParameterGroup (Maybe Text)
dbParameterGroup_dbParameterGroupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBParameterGroup' {Maybe Text
dbParameterGroupName :: Maybe Text
$sel:dbParameterGroupName:DBParameterGroup' :: DBParameterGroup -> Maybe Text
dbParameterGroupName} -> Maybe Text
dbParameterGroupName) (\s :: DBParameterGroup
s@DBParameterGroup' {} Maybe Text
a -> DBParameterGroup
s {$sel:dbParameterGroupName:DBParameterGroup' :: Maybe Text
dbParameterGroupName = Maybe Text
a} :: DBParameterGroup)
dbParameterGroup_description :: Lens.Lens' DBParameterGroup (Prelude.Maybe Prelude.Text)
dbParameterGroup_description :: Lens' DBParameterGroup (Maybe Text)
dbParameterGroup_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBParameterGroup' {Maybe Text
description :: Maybe Text
$sel:description:DBParameterGroup' :: DBParameterGroup -> Maybe Text
description} -> Maybe Text
description) (\s :: DBParameterGroup
s@DBParameterGroup' {} Maybe Text
a -> DBParameterGroup
s {$sel:description:DBParameterGroup' :: Maybe Text
description = Maybe Text
a} :: DBParameterGroup)
instance Data.FromXML DBParameterGroup where
parseXML :: [Node] -> Either String DBParameterGroup
parseXML [Node]
x =
Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> DBParameterGroup
DBParameterGroup'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"DBParameterGroupArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"DBParameterGroupFamily")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"DBParameterGroupName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Description")
instance Prelude.Hashable DBParameterGroup where
hashWithSalt :: Int -> DBParameterGroup -> Int
hashWithSalt Int
_salt DBParameterGroup' {Maybe Text
description :: Maybe Text
dbParameterGroupName :: Maybe Text
dbParameterGroupFamily :: Maybe Text
dbParameterGroupArn :: Maybe Text
$sel:description:DBParameterGroup' :: DBParameterGroup -> Maybe Text
$sel:dbParameterGroupName:DBParameterGroup' :: DBParameterGroup -> Maybe Text
$sel:dbParameterGroupFamily:DBParameterGroup' :: DBParameterGroup -> Maybe Text
$sel:dbParameterGroupArn:DBParameterGroup' :: DBParameterGroup -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dbParameterGroupArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dbParameterGroupFamily
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dbParameterGroupName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
instance Prelude.NFData DBParameterGroup where
rnf :: DBParameterGroup -> ()
rnf DBParameterGroup' {Maybe Text
description :: Maybe Text
dbParameterGroupName :: Maybe Text
dbParameterGroupFamily :: Maybe Text
dbParameterGroupArn :: Maybe Text
$sel:description:DBParameterGroup' :: DBParameterGroup -> Maybe Text
$sel:dbParameterGroupName:DBParameterGroup' :: DBParameterGroup -> Maybe Text
$sel:dbParameterGroupFamily:DBParameterGroup' :: DBParameterGroup -> Maybe Text
$sel:dbParameterGroupArn:DBParameterGroup' :: DBParameterGroup -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dbParameterGroupArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dbParameterGroupFamily
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dbParameterGroupName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description