module Stratosphere.MSK.Cluster.FirehoseProperty (
FirehoseProperty(..), mkFirehoseProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FirehoseProperty
=
FirehoseProperty {FirehoseProperty -> ()
haddock_workaround_ :: (),
FirehoseProperty -> Maybe (Value Text)
deliveryStream :: (Prelude.Maybe (Value Prelude.Text)),
FirehoseProperty -> Value Bool
enabled :: (Value Prelude.Bool)}
deriving stock (FirehoseProperty -> FirehoseProperty -> Bool
(FirehoseProperty -> FirehoseProperty -> Bool)
-> (FirehoseProperty -> FirehoseProperty -> Bool)
-> Eq FirehoseProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FirehoseProperty -> FirehoseProperty -> Bool
== :: FirehoseProperty -> FirehoseProperty -> Bool
$c/= :: FirehoseProperty -> FirehoseProperty -> Bool
/= :: FirehoseProperty -> FirehoseProperty -> Bool
Prelude.Eq, Int -> FirehoseProperty -> ShowS
[FirehoseProperty] -> ShowS
FirehoseProperty -> String
(Int -> FirehoseProperty -> ShowS)
-> (FirehoseProperty -> String)
-> ([FirehoseProperty] -> ShowS)
-> Show FirehoseProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FirehoseProperty -> ShowS
showsPrec :: Int -> FirehoseProperty -> ShowS
$cshow :: FirehoseProperty -> String
show :: FirehoseProperty -> String
$cshowList :: [FirehoseProperty] -> ShowS
showList :: [FirehoseProperty] -> ShowS
Prelude.Show)
mkFirehoseProperty :: Value Prelude.Bool -> FirehoseProperty
mkFirehoseProperty :: Value Bool -> FirehoseProperty
mkFirehoseProperty Value Bool
enabled
= FirehoseProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Value Bool
enabled = Value Bool
enabled,
deliveryStream :: Maybe (Value Text)
deliveryStream = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FirehoseProperty where
toResourceProperties :: FirehoseProperty -> ResourceProperties
toResourceProperties FirehoseProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: FirehoseProperty -> ()
deliveryStream :: FirehoseProperty -> Maybe (Value Text)
enabled :: FirehoseProperty -> Value Bool
haddock_workaround_ :: ()
deliveryStream :: Maybe (Value Text)
enabled :: Value Bool
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MSK::Cluster.Firehose",
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
"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]
([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
"DeliveryStream" (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)
deliveryStream]))}
instance JSON.ToJSON FirehoseProperty where
toJSON :: FirehoseProperty -> Value
toJSON FirehoseProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: FirehoseProperty -> ()
deliveryStream :: FirehoseProperty -> Maybe (Value Text)
enabled :: FirehoseProperty -> Value Bool
haddock_workaround_ :: ()
deliveryStream :: Maybe (Value Text)
enabled :: Value Bool
..}
= [(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
"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]
([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
"DeliveryStream" (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)
deliveryStream])))
instance Property "DeliveryStream" FirehoseProperty where
type PropertyType "DeliveryStream" FirehoseProperty = Value Prelude.Text
set :: PropertyType "DeliveryStream" FirehoseProperty
-> FirehoseProperty -> FirehoseProperty
set PropertyType "DeliveryStream" FirehoseProperty
newValue FirehoseProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: FirehoseProperty -> ()
deliveryStream :: FirehoseProperty -> Maybe (Value Text)
enabled :: FirehoseProperty -> Value Bool
haddock_workaround_ :: ()
deliveryStream :: Maybe (Value Text)
enabled :: Value Bool
..}
= FirehoseProperty {deliveryStream :: Maybe (Value Text)
deliveryStream = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DeliveryStream" FirehoseProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}
instance Property "Enabled" FirehoseProperty where
type PropertyType "Enabled" FirehoseProperty = Value Prelude.Bool
set :: PropertyType "Enabled" FirehoseProperty
-> FirehoseProperty -> FirehoseProperty
set PropertyType "Enabled" FirehoseProperty
newValue FirehoseProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: FirehoseProperty -> ()
deliveryStream :: FirehoseProperty -> Maybe (Value Text)
enabled :: FirehoseProperty -> Value Bool
haddock_workaround_ :: ()
deliveryStream :: Maybe (Value Text)
enabled :: Value Bool
..}
= FirehoseProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" FirehoseProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
deliveryStream :: Maybe (Value Text)
haddock_workaround_ :: ()
deliveryStream :: Maybe (Value Text)
..}