module Stratosphere.Elasticsearch.Domain.MasterUserOptionsProperty (
MasterUserOptionsProperty(..), mkMasterUserOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MasterUserOptionsProperty
=
MasterUserOptionsProperty {MasterUserOptionsProperty -> ()
haddock_workaround_ :: (),
MasterUserOptionsProperty -> Maybe (Value Text)
masterUserARN :: (Prelude.Maybe (Value Prelude.Text)),
MasterUserOptionsProperty -> Maybe (Value Text)
masterUserName :: (Prelude.Maybe (Value Prelude.Text)),
MasterUserOptionsProperty -> Maybe (Value Text)
masterUserPassword :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (MasterUserOptionsProperty -> MasterUserOptionsProperty -> Bool
(MasterUserOptionsProperty -> MasterUserOptionsProperty -> Bool)
-> (MasterUserOptionsProperty -> MasterUserOptionsProperty -> Bool)
-> Eq MasterUserOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MasterUserOptionsProperty -> MasterUserOptionsProperty -> Bool
== :: MasterUserOptionsProperty -> MasterUserOptionsProperty -> Bool
$c/= :: MasterUserOptionsProperty -> MasterUserOptionsProperty -> Bool
/= :: MasterUserOptionsProperty -> MasterUserOptionsProperty -> Bool
Prelude.Eq, Int -> MasterUserOptionsProperty -> ShowS
[MasterUserOptionsProperty] -> ShowS
MasterUserOptionsProperty -> String
(Int -> MasterUserOptionsProperty -> ShowS)
-> (MasterUserOptionsProperty -> String)
-> ([MasterUserOptionsProperty] -> ShowS)
-> Show MasterUserOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MasterUserOptionsProperty -> ShowS
showsPrec :: Int -> MasterUserOptionsProperty -> ShowS
$cshow :: MasterUserOptionsProperty -> String
show :: MasterUserOptionsProperty -> String
$cshowList :: [MasterUserOptionsProperty] -> ShowS
showList :: [MasterUserOptionsProperty] -> ShowS
Prelude.Show)
mkMasterUserOptionsProperty :: MasterUserOptionsProperty
mkMasterUserOptionsProperty :: MasterUserOptionsProperty
mkMasterUserOptionsProperty
= MasterUserOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), masterUserARN :: Maybe (Value Text)
masterUserARN = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
masterUserName :: Maybe (Value Text)
masterUserName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
masterUserPassword :: Maybe (Value Text)
masterUserPassword = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MasterUserOptionsProperty where
toResourceProperties :: MasterUserOptionsProperty -> ResourceProperties
toResourceProperties MasterUserOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MasterUserOptionsProperty -> ()
masterUserARN :: MasterUserOptionsProperty -> Maybe (Value Text)
masterUserName :: MasterUserOptionsProperty -> Maybe (Value Text)
masterUserPassword :: MasterUserOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
masterUserARN :: Maybe (Value Text)
masterUserName :: Maybe (Value Text)
masterUserPassword :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Elasticsearch::Domain.MasterUserOptions",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MasterUserARN" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
masterUserARN,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MasterUserName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
masterUserName,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MasterUserPassword" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
masterUserPassword])}
instance JSON.ToJSON MasterUserOptionsProperty where
toJSON :: MasterUserOptionsProperty -> Value
toJSON MasterUserOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MasterUserOptionsProperty -> ()
masterUserARN :: MasterUserOptionsProperty -> Maybe (Value Text)
masterUserName :: MasterUserOptionsProperty -> Maybe (Value Text)
masterUserPassword :: MasterUserOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
masterUserARN :: Maybe (Value Text)
masterUserName :: Maybe (Value Text)
masterUserPassword :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MasterUserARN" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
masterUserARN,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MasterUserName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
masterUserName,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MasterUserPassword" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
masterUserPassword]))
instance Property "MasterUserARN" MasterUserOptionsProperty where
type PropertyType "MasterUserARN" MasterUserOptionsProperty = Value Prelude.Text
set :: PropertyType "MasterUserARN" MasterUserOptionsProperty
-> MasterUserOptionsProperty -> MasterUserOptionsProperty
set PropertyType "MasterUserARN" MasterUserOptionsProperty
newValue MasterUserOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MasterUserOptionsProperty -> ()
masterUserARN :: MasterUserOptionsProperty -> Maybe (Value Text)
masterUserName :: MasterUserOptionsProperty -> Maybe (Value Text)
masterUserPassword :: MasterUserOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
masterUserARN :: Maybe (Value Text)
masterUserName :: Maybe (Value Text)
masterUserPassword :: Maybe (Value Text)
..}
= MasterUserOptionsProperty
{masterUserARN :: Maybe (Value Text)
masterUserARN = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MasterUserARN" MasterUserOptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
masterUserName :: Maybe (Value Text)
masterUserPassword :: Maybe (Value Text)
haddock_workaround_ :: ()
masterUserName :: Maybe (Value Text)
masterUserPassword :: Maybe (Value Text)
..}
instance Property "MasterUserName" MasterUserOptionsProperty where
type PropertyType "MasterUserName" MasterUserOptionsProperty = Value Prelude.Text
set :: PropertyType "MasterUserName" MasterUserOptionsProperty
-> MasterUserOptionsProperty -> MasterUserOptionsProperty
set PropertyType "MasterUserName" MasterUserOptionsProperty
newValue MasterUserOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MasterUserOptionsProperty -> ()
masterUserARN :: MasterUserOptionsProperty -> Maybe (Value Text)
masterUserName :: MasterUserOptionsProperty -> Maybe (Value Text)
masterUserPassword :: MasterUserOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
masterUserARN :: Maybe (Value Text)
masterUserName :: Maybe (Value Text)
masterUserPassword :: Maybe (Value Text)
..}
= MasterUserOptionsProperty
{masterUserName :: Maybe (Value Text)
masterUserName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MasterUserName" MasterUserOptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
masterUserARN :: Maybe (Value Text)
masterUserPassword :: Maybe (Value Text)
haddock_workaround_ :: ()
masterUserARN :: Maybe (Value Text)
masterUserPassword :: Maybe (Value Text)
..}
instance Property "MasterUserPassword" MasterUserOptionsProperty where
type PropertyType "MasterUserPassword" MasterUserOptionsProperty = Value Prelude.Text
set :: PropertyType "MasterUserPassword" MasterUserOptionsProperty
-> MasterUserOptionsProperty -> MasterUserOptionsProperty
set PropertyType "MasterUserPassword" MasterUserOptionsProperty
newValue MasterUserOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MasterUserOptionsProperty -> ()
masterUserARN :: MasterUserOptionsProperty -> Maybe (Value Text)
masterUserName :: MasterUserOptionsProperty -> Maybe (Value Text)
masterUserPassword :: MasterUserOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
masterUserARN :: Maybe (Value Text)
masterUserName :: Maybe (Value Text)
masterUserPassword :: Maybe (Value Text)
..}
= MasterUserOptionsProperty
{masterUserPassword :: Maybe (Value Text)
masterUserPassword = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MasterUserPassword" MasterUserOptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
masterUserARN :: Maybe (Value Text)
masterUserName :: Maybe (Value Text)
haddock_workaround_ :: ()
masterUserARN :: Maybe (Value Text)
masterUserName :: Maybe (Value Text)
..}