module Stratosphere.KinesisFirehose.DeliveryStream.MSKSourceConfigurationProperty (
        module Exports, MSKSourceConfigurationProperty(..),
        mkMSKSourceConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KinesisFirehose.DeliveryStream.AuthenticationConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MSKSourceConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-msksourceconfiguration.html>
    MSKSourceConfigurationProperty {MSKSourceConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-msksourceconfiguration.html#cfn-kinesisfirehose-deliverystream-msksourceconfiguration-authenticationconfiguration>
                                    MSKSourceConfigurationProperty
-> AuthenticationConfigurationProperty
authenticationConfiguration :: AuthenticationConfigurationProperty,
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-msksourceconfiguration.html#cfn-kinesisfirehose-deliverystream-msksourceconfiguration-mskclusterarn>
                                    MSKSourceConfigurationProperty -> Value Text
mSKClusterARN :: (Value Prelude.Text),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-msksourceconfiguration.html#cfn-kinesisfirehose-deliverystream-msksourceconfiguration-readfromtimestamp>
                                    MSKSourceConfigurationProperty -> Maybe (Value Text)
readFromTimestamp :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-msksourceconfiguration.html#cfn-kinesisfirehose-deliverystream-msksourceconfiguration-topicname>
                                    MSKSourceConfigurationProperty -> Value Text
topicName :: (Value Prelude.Text)}
  deriving stock (MSKSourceConfigurationProperty
-> MSKSourceConfigurationProperty -> Bool
(MSKSourceConfigurationProperty
 -> MSKSourceConfigurationProperty -> Bool)
-> (MSKSourceConfigurationProperty
    -> MSKSourceConfigurationProperty -> Bool)
-> Eq MSKSourceConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MSKSourceConfigurationProperty
-> MSKSourceConfigurationProperty -> Bool
== :: MSKSourceConfigurationProperty
-> MSKSourceConfigurationProperty -> Bool
$c/= :: MSKSourceConfigurationProperty
-> MSKSourceConfigurationProperty -> Bool
/= :: MSKSourceConfigurationProperty
-> MSKSourceConfigurationProperty -> Bool
Prelude.Eq, Int -> MSKSourceConfigurationProperty -> ShowS
[MSKSourceConfigurationProperty] -> ShowS
MSKSourceConfigurationProperty -> String
(Int -> MSKSourceConfigurationProperty -> ShowS)
-> (MSKSourceConfigurationProperty -> String)
-> ([MSKSourceConfigurationProperty] -> ShowS)
-> Show MSKSourceConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MSKSourceConfigurationProperty -> ShowS
showsPrec :: Int -> MSKSourceConfigurationProperty -> ShowS
$cshow :: MSKSourceConfigurationProperty -> String
show :: MSKSourceConfigurationProperty -> String
$cshowList :: [MSKSourceConfigurationProperty] -> ShowS
showList :: [MSKSourceConfigurationProperty] -> ShowS
Prelude.Show)
mkMSKSourceConfigurationProperty ::
  AuthenticationConfigurationProperty
  -> Value Prelude.Text
     -> Value Prelude.Text -> MSKSourceConfigurationProperty
mkMSKSourceConfigurationProperty :: AuthenticationConfigurationProperty
-> Value Text -> Value Text -> MSKSourceConfigurationProperty
mkMSKSourceConfigurationProperty
  AuthenticationConfigurationProperty
authenticationConfiguration
  Value Text
mSKClusterARN
  Value Text
topicName
  = MSKSourceConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       authenticationConfiguration :: AuthenticationConfigurationProperty
authenticationConfiguration = AuthenticationConfigurationProperty
authenticationConfiguration,
       mSKClusterARN :: Value Text
mSKClusterARN = Value Text
mSKClusterARN, topicName :: Value Text
topicName = Value Text
topicName,
       readFromTimestamp :: Maybe (Value Text)
readFromTimestamp = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MSKSourceConfigurationProperty where
  toResourceProperties :: MSKSourceConfigurationProperty -> ResourceProperties
toResourceProperties MSKSourceConfigurationProperty {Maybe (Value Text)
()
Value Text
AuthenticationConfigurationProperty
haddock_workaround_ :: MSKSourceConfigurationProperty -> ()
authenticationConfiguration :: MSKSourceConfigurationProperty
-> AuthenticationConfigurationProperty
mSKClusterARN :: MSKSourceConfigurationProperty -> Value Text
readFromTimestamp :: MSKSourceConfigurationProperty -> Maybe (Value Text)
topicName :: MSKSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
mSKClusterARN :: Value Text
readFromTimestamp :: Maybe (Value Text)
topicName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.MSKSourceConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"AuthenticationConfiguration" Key -> AuthenticationConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AuthenticationConfigurationProperty
authenticationConfiguration,
                            Key
"MSKClusterARN" 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
mSKClusterARN,
                            Key
"TopicName" 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
topicName]
                           ([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
"ReadFromTimestamp" (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)
readFromTimestamp]))}
instance JSON.ToJSON MSKSourceConfigurationProperty where
  toJSON :: MSKSourceConfigurationProperty -> Value
toJSON MSKSourceConfigurationProperty {Maybe (Value Text)
()
Value Text
AuthenticationConfigurationProperty
haddock_workaround_ :: MSKSourceConfigurationProperty -> ()
authenticationConfiguration :: MSKSourceConfigurationProperty
-> AuthenticationConfigurationProperty
mSKClusterARN :: MSKSourceConfigurationProperty -> Value Text
readFromTimestamp :: MSKSourceConfigurationProperty -> Maybe (Value Text)
topicName :: MSKSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
mSKClusterARN :: Value Text
readFromTimestamp :: Maybe (Value Text)
topicName :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"AuthenticationConfiguration" Key -> AuthenticationConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AuthenticationConfigurationProperty
authenticationConfiguration,
               Key
"MSKClusterARN" 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
mSKClusterARN,
               Key
"TopicName" 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
topicName]
              ([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
"ReadFromTimestamp" (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)
readFromTimestamp])))
instance Property "AuthenticationConfiguration" MSKSourceConfigurationProperty where
  type PropertyType "AuthenticationConfiguration" MSKSourceConfigurationProperty = AuthenticationConfigurationProperty
  set :: PropertyType
  "AuthenticationConfiguration" MSKSourceConfigurationProperty
-> MSKSourceConfigurationProperty -> MSKSourceConfigurationProperty
set PropertyType
  "AuthenticationConfiguration" MSKSourceConfigurationProperty
newValue MSKSourceConfigurationProperty {Maybe (Value Text)
()
Value Text
AuthenticationConfigurationProperty
haddock_workaround_ :: MSKSourceConfigurationProperty -> ()
authenticationConfiguration :: MSKSourceConfigurationProperty
-> AuthenticationConfigurationProperty
mSKClusterARN :: MSKSourceConfigurationProperty -> Value Text
readFromTimestamp :: MSKSourceConfigurationProperty -> Maybe (Value Text)
topicName :: MSKSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
mSKClusterARN :: Value Text
readFromTimestamp :: Maybe (Value Text)
topicName :: Value Text
..}
    = MSKSourceConfigurationProperty
        {authenticationConfiguration :: AuthenticationConfigurationProperty
authenticationConfiguration = PropertyType
  "AuthenticationConfiguration" MSKSourceConfigurationProperty
AuthenticationConfigurationProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
mSKClusterARN :: Value Text
readFromTimestamp :: Maybe (Value Text)
topicName :: Value Text
haddock_workaround_ :: ()
mSKClusterARN :: Value Text
readFromTimestamp :: Maybe (Value Text)
topicName :: Value Text
..}
instance Property "MSKClusterARN" MSKSourceConfigurationProperty where
  type PropertyType "MSKClusterARN" MSKSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "MSKClusterARN" MSKSourceConfigurationProperty
-> MSKSourceConfigurationProperty -> MSKSourceConfigurationProperty
set PropertyType "MSKClusterARN" MSKSourceConfigurationProperty
newValue MSKSourceConfigurationProperty {Maybe (Value Text)
()
Value Text
AuthenticationConfigurationProperty
haddock_workaround_ :: MSKSourceConfigurationProperty -> ()
authenticationConfiguration :: MSKSourceConfigurationProperty
-> AuthenticationConfigurationProperty
mSKClusterARN :: MSKSourceConfigurationProperty -> Value Text
readFromTimestamp :: MSKSourceConfigurationProperty -> Maybe (Value Text)
topicName :: MSKSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
mSKClusterARN :: Value Text
readFromTimestamp :: Maybe (Value Text)
topicName :: Value Text
..}
    = MSKSourceConfigurationProperty {mSKClusterARN :: Value Text
mSKClusterARN = PropertyType "MSKClusterARN" MSKSourceConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
AuthenticationConfigurationProperty
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
readFromTimestamp :: Maybe (Value Text)
topicName :: Value Text
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
readFromTimestamp :: Maybe (Value Text)
topicName :: Value Text
..}
instance Property "ReadFromTimestamp" MSKSourceConfigurationProperty where
  type PropertyType "ReadFromTimestamp" MSKSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "ReadFromTimestamp" MSKSourceConfigurationProperty
-> MSKSourceConfigurationProperty -> MSKSourceConfigurationProperty
set PropertyType "ReadFromTimestamp" MSKSourceConfigurationProperty
newValue MSKSourceConfigurationProperty {Maybe (Value Text)
()
Value Text
AuthenticationConfigurationProperty
haddock_workaround_ :: MSKSourceConfigurationProperty -> ()
authenticationConfiguration :: MSKSourceConfigurationProperty
-> AuthenticationConfigurationProperty
mSKClusterARN :: MSKSourceConfigurationProperty -> Value Text
readFromTimestamp :: MSKSourceConfigurationProperty -> Maybe (Value Text)
topicName :: MSKSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
mSKClusterARN :: Value Text
readFromTimestamp :: Maybe (Value Text)
topicName :: Value Text
..}
    = MSKSourceConfigurationProperty
        {readFromTimestamp :: Maybe (Value Text)
readFromTimestamp = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ReadFromTimestamp" MSKSourceConfigurationProperty
Value Text
newValue, ()
Value Text
AuthenticationConfigurationProperty
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
mSKClusterARN :: Value Text
topicName :: Value Text
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
mSKClusterARN :: Value Text
topicName :: Value Text
..}
instance Property "TopicName" MSKSourceConfigurationProperty where
  type PropertyType "TopicName" MSKSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "TopicName" MSKSourceConfigurationProperty
-> MSKSourceConfigurationProperty -> MSKSourceConfigurationProperty
set PropertyType "TopicName" MSKSourceConfigurationProperty
newValue MSKSourceConfigurationProperty {Maybe (Value Text)
()
Value Text
AuthenticationConfigurationProperty
haddock_workaround_ :: MSKSourceConfigurationProperty -> ()
authenticationConfiguration :: MSKSourceConfigurationProperty
-> AuthenticationConfigurationProperty
mSKClusterARN :: MSKSourceConfigurationProperty -> Value Text
readFromTimestamp :: MSKSourceConfigurationProperty -> Maybe (Value Text)
topicName :: MSKSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
mSKClusterARN :: Value Text
readFromTimestamp :: Maybe (Value Text)
topicName :: Value Text
..}
    = MSKSourceConfigurationProperty {topicName :: Value Text
topicName = PropertyType "TopicName" MSKSourceConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
AuthenticationConfigurationProperty
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
mSKClusterARN :: Value Text
readFromTimestamp :: Maybe (Value Text)
haddock_workaround_ :: ()
authenticationConfiguration :: AuthenticationConfigurationProperty
mSKClusterARN :: Value Text
readFromTimestamp :: Maybe (Value Text)
..}