module Stratosphere.MSK.ServerlessCluster.ClientAuthenticationProperty (
        module Exports, ClientAuthenticationProperty(..),
        mkClientAuthenticationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MSK.ServerlessCluster.SaslProperty as Exports
import Stratosphere.ResourceProperties
data ClientAuthenticationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-clientauthentication.html>
    ClientAuthenticationProperty {ClientAuthenticationProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-serverlesscluster-clientauthentication.html#cfn-msk-serverlesscluster-clientauthentication-sasl>
                                  ClientAuthenticationProperty -> SaslProperty
sasl :: SaslProperty}
  deriving stock (ClientAuthenticationProperty
-> ClientAuthenticationProperty -> Bool
(ClientAuthenticationProperty
 -> ClientAuthenticationProperty -> Bool)
-> (ClientAuthenticationProperty
    -> ClientAuthenticationProperty -> Bool)
-> Eq ClientAuthenticationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClientAuthenticationProperty
-> ClientAuthenticationProperty -> Bool
== :: ClientAuthenticationProperty
-> ClientAuthenticationProperty -> Bool
$c/= :: ClientAuthenticationProperty
-> ClientAuthenticationProperty -> Bool
/= :: ClientAuthenticationProperty
-> ClientAuthenticationProperty -> Bool
Prelude.Eq, Int -> ClientAuthenticationProperty -> ShowS
[ClientAuthenticationProperty] -> ShowS
ClientAuthenticationProperty -> String
(Int -> ClientAuthenticationProperty -> ShowS)
-> (ClientAuthenticationProperty -> String)
-> ([ClientAuthenticationProperty] -> ShowS)
-> Show ClientAuthenticationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClientAuthenticationProperty -> ShowS
showsPrec :: Int -> ClientAuthenticationProperty -> ShowS
$cshow :: ClientAuthenticationProperty -> String
show :: ClientAuthenticationProperty -> String
$cshowList :: [ClientAuthenticationProperty] -> ShowS
showList :: [ClientAuthenticationProperty] -> ShowS
Prelude.Show)
mkClientAuthenticationProperty ::
  SaslProperty -> ClientAuthenticationProperty
mkClientAuthenticationProperty :: SaslProperty -> ClientAuthenticationProperty
mkClientAuthenticationProperty SaslProperty
sasl
  = ClientAuthenticationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), sasl :: SaslProperty
sasl = SaslProperty
sasl}
instance ToResourceProperties ClientAuthenticationProperty where
  toResourceProperties :: ClientAuthenticationProperty -> ResourceProperties
toResourceProperties ClientAuthenticationProperty {()
SaslProperty
haddock_workaround_ :: ClientAuthenticationProperty -> ()
sasl :: ClientAuthenticationProperty -> SaslProperty
haddock_workaround_ :: ()
sasl :: SaslProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MSK::ServerlessCluster.ClientAuthentication",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Sasl" Key -> SaslProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SaslProperty
sasl]}
instance JSON.ToJSON ClientAuthenticationProperty where
  toJSON :: ClientAuthenticationProperty -> Value
toJSON ClientAuthenticationProperty {()
SaslProperty
haddock_workaround_ :: ClientAuthenticationProperty -> ()
sasl :: ClientAuthenticationProperty -> SaslProperty
haddock_workaround_ :: ()
sasl :: SaslProperty
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Sasl" Key -> SaslProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SaslProperty
sasl]
instance Property "Sasl" ClientAuthenticationProperty where
  type PropertyType "Sasl" ClientAuthenticationProperty = SaslProperty
  set :: PropertyType "Sasl" ClientAuthenticationProperty
-> ClientAuthenticationProperty -> ClientAuthenticationProperty
set PropertyType "Sasl" ClientAuthenticationProperty
newValue ClientAuthenticationProperty {()
SaslProperty
haddock_workaround_ :: ClientAuthenticationProperty -> ()
sasl :: ClientAuthenticationProperty -> SaslProperty
haddock_workaround_ :: ()
sasl :: SaslProperty
..}
    = ClientAuthenticationProperty {sasl :: SaslProperty
sasl = PropertyType "Sasl" ClientAuthenticationProperty
SaslProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}