module Stratosphere.MSK.Cluster.VpcConnectivityScramProperty (
        VpcConnectivityScramProperty(..), mkVpcConnectivityScramProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcConnectivityScramProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivityscram.html>
    VpcConnectivityScramProperty {VpcConnectivityScramProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-vpcconnectivityscram.html#cfn-msk-cluster-vpcconnectivityscram-enabled>
                                  VpcConnectivityScramProperty -> Value Bool
enabled :: (Value Prelude.Bool)}
  deriving stock (VpcConnectivityScramProperty
-> VpcConnectivityScramProperty -> Bool
(VpcConnectivityScramProperty
 -> VpcConnectivityScramProperty -> Bool)
-> (VpcConnectivityScramProperty
    -> VpcConnectivityScramProperty -> Bool)
-> Eq VpcConnectivityScramProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcConnectivityScramProperty
-> VpcConnectivityScramProperty -> Bool
== :: VpcConnectivityScramProperty
-> VpcConnectivityScramProperty -> Bool
$c/= :: VpcConnectivityScramProperty
-> VpcConnectivityScramProperty -> Bool
/= :: VpcConnectivityScramProperty
-> VpcConnectivityScramProperty -> Bool
Prelude.Eq, Int -> VpcConnectivityScramProperty -> ShowS
[VpcConnectivityScramProperty] -> ShowS
VpcConnectivityScramProperty -> String
(Int -> VpcConnectivityScramProperty -> ShowS)
-> (VpcConnectivityScramProperty -> String)
-> ([VpcConnectivityScramProperty] -> ShowS)
-> Show VpcConnectivityScramProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcConnectivityScramProperty -> ShowS
showsPrec :: Int -> VpcConnectivityScramProperty -> ShowS
$cshow :: VpcConnectivityScramProperty -> String
show :: VpcConnectivityScramProperty -> String
$cshowList :: [VpcConnectivityScramProperty] -> ShowS
showList :: [VpcConnectivityScramProperty] -> ShowS
Prelude.Show)
mkVpcConnectivityScramProperty ::
  Value Prelude.Bool -> VpcConnectivityScramProperty
mkVpcConnectivityScramProperty :: Value Bool -> VpcConnectivityScramProperty
mkVpcConnectivityScramProperty Value Bool
enabled
  = VpcConnectivityScramProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Value Bool
enabled = Value Bool
enabled}
instance ToResourceProperties VpcConnectivityScramProperty where
  toResourceProperties :: VpcConnectivityScramProperty -> ResourceProperties
toResourceProperties VpcConnectivityScramProperty {()
Value Bool
haddock_workaround_ :: VpcConnectivityScramProperty -> ()
enabled :: VpcConnectivityScramProperty -> Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MSK::Cluster.VpcConnectivityScram",
         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 VpcConnectivityScramProperty where
  toJSON :: VpcConnectivityScramProperty -> Value
toJSON VpcConnectivityScramProperty {()
Value Bool
haddock_workaround_ :: VpcConnectivityScramProperty -> ()
enabled :: VpcConnectivityScramProperty -> 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" VpcConnectivityScramProperty where
  type PropertyType "Enabled" VpcConnectivityScramProperty = Value Prelude.Bool
  set :: PropertyType "Enabled" VpcConnectivityScramProperty
-> VpcConnectivityScramProperty -> VpcConnectivityScramProperty
set PropertyType "Enabled" VpcConnectivityScramProperty
newValue VpcConnectivityScramProperty {()
Value Bool
haddock_workaround_ :: VpcConnectivityScramProperty -> ()
enabled :: VpcConnectivityScramProperty -> Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}
    = VpcConnectivityScramProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" VpcConnectivityScramProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}