module Stratosphere.Pipes.Pipe.SelfManagedKafkaAccessConfigurationCredentialsProperty (
SelfManagedKafkaAccessConfigurationCredentialsProperty(..),
mkSelfManagedKafkaAccessConfigurationCredentialsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SelfManagedKafkaAccessConfigurationCredentialsProperty
=
SelfManagedKafkaAccessConfigurationCredentialsProperty {SelfManagedKafkaAccessConfigurationCredentialsProperty -> ()
haddock_workaround_ :: (),
SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
basicAuth :: (Prelude.Maybe (Value Prelude.Text)),
SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
clientCertificateTlsAuth :: (Prelude.Maybe (Value Prelude.Text)),
SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram256Auth :: (Prelude.Maybe (Value Prelude.Text)),
SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram512Auth :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty -> Bool
(SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty -> Bool)
-> (SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty -> Bool)
-> Eq SelfManagedKafkaAccessConfigurationCredentialsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty -> Bool
== :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty -> Bool
$c/= :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty -> Bool
/= :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty -> Bool
Prelude.Eq, Int
-> SelfManagedKafkaAccessConfigurationCredentialsProperty -> ShowS
[SelfManagedKafkaAccessConfigurationCredentialsProperty] -> ShowS
SelfManagedKafkaAccessConfigurationCredentialsProperty -> String
(Int
-> SelfManagedKafkaAccessConfigurationCredentialsProperty -> ShowS)
-> (SelfManagedKafkaAccessConfigurationCredentialsProperty
-> String)
-> ([SelfManagedKafkaAccessConfigurationCredentialsProperty]
-> ShowS)
-> Show SelfManagedKafkaAccessConfigurationCredentialsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int
-> SelfManagedKafkaAccessConfigurationCredentialsProperty -> ShowS
showsPrec :: Int
-> SelfManagedKafkaAccessConfigurationCredentialsProperty -> ShowS
$cshow :: SelfManagedKafkaAccessConfigurationCredentialsProperty -> String
show :: SelfManagedKafkaAccessConfigurationCredentialsProperty -> String
$cshowList :: [SelfManagedKafkaAccessConfigurationCredentialsProperty] -> ShowS
showList :: [SelfManagedKafkaAccessConfigurationCredentialsProperty] -> ShowS
Prelude.Show)
mkSelfManagedKafkaAccessConfigurationCredentialsProperty ::
SelfManagedKafkaAccessConfigurationCredentialsProperty
mkSelfManagedKafkaAccessConfigurationCredentialsProperty :: SelfManagedKafkaAccessConfigurationCredentialsProperty
mkSelfManagedKafkaAccessConfigurationCredentialsProperty
= SelfManagedKafkaAccessConfigurationCredentialsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), basicAuth :: Maybe (Value Text)
basicAuth = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
clientCertificateTlsAuth :: Maybe (Value Text)
clientCertificateTlsAuth = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
saslScram256Auth :: Maybe (Value Text)
saslScram256Auth = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
saslScram512Auth :: Maybe (Value Text)
saslScram512Auth = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SelfManagedKafkaAccessConfigurationCredentialsProperty where
toResourceProperties :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> ResourceProperties
toResourceProperties
SelfManagedKafkaAccessConfigurationCredentialsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SelfManagedKafkaAccessConfigurationCredentialsProperty -> ()
basicAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
clientCertificateTlsAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram256Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram512Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.SelfManagedKafkaAccessConfigurationCredentials",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"BasicAuth" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
basicAuth,
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..=) Key
"ClientCertificateTlsAuth"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
clientCertificateTlsAuth,
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..=) Key
"SaslScram256Auth" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
saslScram256Auth,
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..=) Key
"SaslScram512Auth" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
saslScram512Auth])}
instance JSON.ToJSON SelfManagedKafkaAccessConfigurationCredentialsProperty where
toJSON :: SelfManagedKafkaAccessConfigurationCredentialsProperty -> Value
toJSON SelfManagedKafkaAccessConfigurationCredentialsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SelfManagedKafkaAccessConfigurationCredentialsProperty -> ()
basicAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
clientCertificateTlsAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram256Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram512Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"BasicAuth" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
basicAuth,
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..=) Key
"ClientCertificateTlsAuth"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
clientCertificateTlsAuth,
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..=) Key
"SaslScram256Auth" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
saslScram256Auth,
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..=) Key
"SaslScram512Auth" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
saslScram512Auth]))
instance Property "BasicAuth" SelfManagedKafkaAccessConfigurationCredentialsProperty where
type PropertyType "BasicAuth" SelfManagedKafkaAccessConfigurationCredentialsProperty = Value Prelude.Text
set :: PropertyType
"BasicAuth" SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty
set
PropertyType
"BasicAuth" SelfManagedKafkaAccessConfigurationCredentialsProperty
newValue
SelfManagedKafkaAccessConfigurationCredentialsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SelfManagedKafkaAccessConfigurationCredentialsProperty -> ()
basicAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
clientCertificateTlsAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram256Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram512Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
..}
= SelfManagedKafkaAccessConfigurationCredentialsProperty
{basicAuth :: Maybe (Value Text)
basicAuth = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"BasicAuth" SelfManagedKafkaAccessConfigurationCredentialsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
haddock_workaround_ :: ()
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
..}
instance Property "ClientCertificateTlsAuth" SelfManagedKafkaAccessConfigurationCredentialsProperty where
type PropertyType "ClientCertificateTlsAuth" SelfManagedKafkaAccessConfigurationCredentialsProperty = Value Prelude.Text
set :: PropertyType
"ClientCertificateTlsAuth"
SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty
set
PropertyType
"ClientCertificateTlsAuth"
SelfManagedKafkaAccessConfigurationCredentialsProperty
newValue
SelfManagedKafkaAccessConfigurationCredentialsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SelfManagedKafkaAccessConfigurationCredentialsProperty -> ()
basicAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
clientCertificateTlsAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram256Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram512Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
..}
= SelfManagedKafkaAccessConfigurationCredentialsProperty
{clientCertificateTlsAuth :: Maybe (Value Text)
clientCertificateTlsAuth = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ClientCertificateTlsAuth"
SelfManagedKafkaAccessConfigurationCredentialsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
..}
instance Property "SaslScram256Auth" SelfManagedKafkaAccessConfigurationCredentialsProperty where
type PropertyType "SaslScram256Auth" SelfManagedKafkaAccessConfigurationCredentialsProperty = Value Prelude.Text
set :: PropertyType
"SaslScram256Auth"
SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty
set
PropertyType
"SaslScram256Auth"
SelfManagedKafkaAccessConfigurationCredentialsProperty
newValue
SelfManagedKafkaAccessConfigurationCredentialsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SelfManagedKafkaAccessConfigurationCredentialsProperty -> ()
basicAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
clientCertificateTlsAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram256Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram512Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
..}
= SelfManagedKafkaAccessConfigurationCredentialsProperty
{saslScram256Auth :: Maybe (Value Text)
saslScram256Auth = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SaslScram256Auth"
SelfManagedKafkaAccessConfigurationCredentialsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
..}
instance Property "SaslScram512Auth" SelfManagedKafkaAccessConfigurationCredentialsProperty where
type PropertyType "SaslScram512Auth" SelfManagedKafkaAccessConfigurationCredentialsProperty = Value Prelude.Text
set :: PropertyType
"SaslScram512Auth"
SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty
-> SelfManagedKafkaAccessConfigurationCredentialsProperty
set
PropertyType
"SaslScram512Auth"
SelfManagedKafkaAccessConfigurationCredentialsProperty
newValue
SelfManagedKafkaAccessConfigurationCredentialsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SelfManagedKafkaAccessConfigurationCredentialsProperty -> ()
basicAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
clientCertificateTlsAuth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram256Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
saslScram512Auth :: SelfManagedKafkaAccessConfigurationCredentialsProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
saslScram512Auth :: Maybe (Value Text)
..}
= SelfManagedKafkaAccessConfigurationCredentialsProperty
{saslScram512Auth :: Maybe (Value Text)
saslScram512Auth = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SaslScram512Auth"
SelfManagedKafkaAccessConfigurationCredentialsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
haddock_workaround_ :: ()
basicAuth :: Maybe (Value Text)
clientCertificateTlsAuth :: Maybe (Value Text)
saslScram256Auth :: Maybe (Value Text)
..}