module Stratosphere.MSK.Cluster.VpcConnectivityIamProperty (
VpcConnectivityIamProperty(..), mkVpcConnectivityIamProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcConnectivityIamProperty
=
VpcConnectivityIamProperty {VpcConnectivityIamProperty -> ()
haddock_workaround_ :: (),
VpcConnectivityIamProperty -> Value Bool
enabled :: (Value Prelude.Bool)}
deriving stock (VpcConnectivityIamProperty -> VpcConnectivityIamProperty -> Bool
(VpcConnectivityIamProperty -> VpcConnectivityIamProperty -> Bool)
-> (VpcConnectivityIamProperty
-> VpcConnectivityIamProperty -> Bool)
-> Eq VpcConnectivityIamProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcConnectivityIamProperty -> VpcConnectivityIamProperty -> Bool
== :: VpcConnectivityIamProperty -> VpcConnectivityIamProperty -> Bool
$c/= :: VpcConnectivityIamProperty -> VpcConnectivityIamProperty -> Bool
/= :: VpcConnectivityIamProperty -> VpcConnectivityIamProperty -> Bool
Prelude.Eq, Int -> VpcConnectivityIamProperty -> ShowS
[VpcConnectivityIamProperty] -> ShowS
VpcConnectivityIamProperty -> String
(Int -> VpcConnectivityIamProperty -> ShowS)
-> (VpcConnectivityIamProperty -> String)
-> ([VpcConnectivityIamProperty] -> ShowS)
-> Show VpcConnectivityIamProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcConnectivityIamProperty -> ShowS
showsPrec :: Int -> VpcConnectivityIamProperty -> ShowS
$cshow :: VpcConnectivityIamProperty -> String
show :: VpcConnectivityIamProperty -> String
$cshowList :: [VpcConnectivityIamProperty] -> ShowS
showList :: [VpcConnectivityIamProperty] -> ShowS
Prelude.Show)
mkVpcConnectivityIamProperty ::
Value Prelude.Bool -> VpcConnectivityIamProperty
mkVpcConnectivityIamProperty :: Value Bool -> VpcConnectivityIamProperty
mkVpcConnectivityIamProperty Value Bool
enabled
= VpcConnectivityIamProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Value Bool
enabled = Value Bool
enabled}
instance ToResourceProperties VpcConnectivityIamProperty where
toResourceProperties :: VpcConnectivityIamProperty -> ResourceProperties
toResourceProperties VpcConnectivityIamProperty {()
Value Bool
haddock_workaround_ :: VpcConnectivityIamProperty -> ()
enabled :: VpcConnectivityIamProperty -> Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MSK::Cluster.VpcConnectivityIam",
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 VpcConnectivityIamProperty where
toJSON :: VpcConnectivityIamProperty -> Value
toJSON VpcConnectivityIamProperty {()
Value Bool
haddock_workaround_ :: VpcConnectivityIamProperty -> ()
enabled :: VpcConnectivityIamProperty -> 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" VpcConnectivityIamProperty where
type PropertyType "Enabled" VpcConnectivityIamProperty = Value Prelude.Bool
set :: PropertyType "Enabled" VpcConnectivityIamProperty
-> VpcConnectivityIamProperty -> VpcConnectivityIamProperty
set PropertyType "Enabled" VpcConnectivityIamProperty
newValue VpcConnectivityIamProperty {()
Value Bool
haddock_workaround_ :: VpcConnectivityIamProperty -> ()
enabled :: VpcConnectivityIamProperty -> Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}
= VpcConnectivityIamProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" VpcConnectivityIamProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}