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