module Stratosphere.MSK.Cluster.ScramProperty (
ScramProperty(..), mkScramProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScramProperty
=
ScramProperty {ScramProperty -> ()
haddock_workaround_ :: (),
ScramProperty -> Value Bool
enabled :: (Value Prelude.Bool)}
deriving stock (ScramProperty -> ScramProperty -> Bool
(ScramProperty -> ScramProperty -> Bool)
-> (ScramProperty -> ScramProperty -> Bool) -> Eq ScramProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScramProperty -> ScramProperty -> Bool
== :: ScramProperty -> ScramProperty -> Bool
$c/= :: ScramProperty -> ScramProperty -> Bool
/= :: ScramProperty -> ScramProperty -> Bool
Prelude.Eq, Int -> ScramProperty -> ShowS
[ScramProperty] -> ShowS
ScramProperty -> String
(Int -> ScramProperty -> ShowS)
-> (ScramProperty -> String)
-> ([ScramProperty] -> ShowS)
-> Show ScramProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScramProperty -> ShowS
showsPrec :: Int -> ScramProperty -> ShowS
$cshow :: ScramProperty -> String
show :: ScramProperty -> String
$cshowList :: [ScramProperty] -> ShowS
showList :: [ScramProperty] -> ShowS
Prelude.Show)
mkScramProperty :: Value Prelude.Bool -> ScramProperty
mkScramProperty :: Value Bool -> ScramProperty
mkScramProperty Value Bool
enabled
= ScramProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Value Bool
enabled = Value Bool
enabled}
instance ToResourceProperties ScramProperty where
toResourceProperties :: ScramProperty -> ResourceProperties
toResourceProperties ScramProperty {()
Value Bool
haddock_workaround_ :: ScramProperty -> ()
enabled :: ScramProperty -> Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MSK::Cluster.Scram", supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]}
instance JSON.ToJSON ScramProperty where
toJSON :: ScramProperty -> Value
toJSON ScramProperty {()
Value Bool
haddock_workaround_ :: ScramProperty -> ()
enabled :: ScramProperty -> Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..} = [(Key, Value)] -> Value
JSON.object [Key
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]
instance Property "Enabled" ScramProperty where
type PropertyType "Enabled" ScramProperty = Value Prelude.Bool
set :: PropertyType "Enabled" ScramProperty
-> ScramProperty -> ScramProperty
set PropertyType "Enabled" ScramProperty
newValue ScramProperty {()
Value Bool
haddock_workaround_ :: ScramProperty -> ()
enabled :: ScramProperty -> Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}
= ScramProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" ScramProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}