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