module Stratosphere.IoTAnalytics.Dataset.LateDataRuleConfigurationProperty (
module Exports, LateDataRuleConfigurationProperty(..),
mkLateDataRuleConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTAnalytics.Dataset.DeltaTimeSessionWindowConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data LateDataRuleConfigurationProperty
=
LateDataRuleConfigurationProperty {LateDataRuleConfigurationProperty -> ()
haddock_workaround_ :: (),
LateDataRuleConfigurationProperty
-> Maybe DeltaTimeSessionWindowConfigurationProperty
deltaTimeSessionWindowConfiguration :: (Prelude.Maybe DeltaTimeSessionWindowConfigurationProperty)}
deriving stock (LateDataRuleConfigurationProperty
-> LateDataRuleConfigurationProperty -> Bool
(LateDataRuleConfigurationProperty
-> LateDataRuleConfigurationProperty -> Bool)
-> (LateDataRuleConfigurationProperty
-> LateDataRuleConfigurationProperty -> Bool)
-> Eq LateDataRuleConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LateDataRuleConfigurationProperty
-> LateDataRuleConfigurationProperty -> Bool
== :: LateDataRuleConfigurationProperty
-> LateDataRuleConfigurationProperty -> Bool
$c/= :: LateDataRuleConfigurationProperty
-> LateDataRuleConfigurationProperty -> Bool
/= :: LateDataRuleConfigurationProperty
-> LateDataRuleConfigurationProperty -> Bool
Prelude.Eq, Int -> LateDataRuleConfigurationProperty -> ShowS
[LateDataRuleConfigurationProperty] -> ShowS
LateDataRuleConfigurationProperty -> String
(Int -> LateDataRuleConfigurationProperty -> ShowS)
-> (LateDataRuleConfigurationProperty -> String)
-> ([LateDataRuleConfigurationProperty] -> ShowS)
-> Show LateDataRuleConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LateDataRuleConfigurationProperty -> ShowS
showsPrec :: Int -> LateDataRuleConfigurationProperty -> ShowS
$cshow :: LateDataRuleConfigurationProperty -> String
show :: LateDataRuleConfigurationProperty -> String
$cshowList :: [LateDataRuleConfigurationProperty] -> ShowS
showList :: [LateDataRuleConfigurationProperty] -> ShowS
Prelude.Show)
mkLateDataRuleConfigurationProperty ::
LateDataRuleConfigurationProperty
mkLateDataRuleConfigurationProperty :: LateDataRuleConfigurationProperty
mkLateDataRuleConfigurationProperty
= LateDataRuleConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
deltaTimeSessionWindowConfiguration :: Maybe DeltaTimeSessionWindowConfigurationProperty
deltaTimeSessionWindowConfiguration = Maybe DeltaTimeSessionWindowConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LateDataRuleConfigurationProperty where
toResourceProperties :: LateDataRuleConfigurationProperty -> ResourceProperties
toResourceProperties LateDataRuleConfigurationProperty {Maybe DeltaTimeSessionWindowConfigurationProperty
()
haddock_workaround_ :: LateDataRuleConfigurationProperty -> ()
deltaTimeSessionWindowConfiguration :: LateDataRuleConfigurationProperty
-> Maybe DeltaTimeSessionWindowConfigurationProperty
haddock_workaround_ :: ()
deltaTimeSessionWindowConfiguration :: Maybe DeltaTimeSessionWindowConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Dataset.LateDataRuleConfiguration",
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 -> DeltaTimeSessionWindowConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DeltaTimeSessionWindowConfiguration"
(DeltaTimeSessionWindowConfigurationProperty -> (Key, Value))
-> Maybe DeltaTimeSessionWindowConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeltaTimeSessionWindowConfigurationProperty
deltaTimeSessionWindowConfiguration])}
instance JSON.ToJSON LateDataRuleConfigurationProperty where
toJSON :: LateDataRuleConfigurationProperty -> Value
toJSON LateDataRuleConfigurationProperty {Maybe DeltaTimeSessionWindowConfigurationProperty
()
haddock_workaround_ :: LateDataRuleConfigurationProperty -> ()
deltaTimeSessionWindowConfiguration :: LateDataRuleConfigurationProperty
-> Maybe DeltaTimeSessionWindowConfigurationProperty
haddock_workaround_ :: ()
deltaTimeSessionWindowConfiguration :: Maybe DeltaTimeSessionWindowConfigurationProperty
..}
= [(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 -> DeltaTimeSessionWindowConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DeltaTimeSessionWindowConfiguration"
(DeltaTimeSessionWindowConfigurationProperty -> (Key, Value))
-> Maybe DeltaTimeSessionWindowConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeltaTimeSessionWindowConfigurationProperty
deltaTimeSessionWindowConfiguration]))
instance Property "DeltaTimeSessionWindowConfiguration" LateDataRuleConfigurationProperty where
type PropertyType "DeltaTimeSessionWindowConfiguration" LateDataRuleConfigurationProperty = DeltaTimeSessionWindowConfigurationProperty
set :: PropertyType
"DeltaTimeSessionWindowConfiguration"
LateDataRuleConfigurationProperty
-> LateDataRuleConfigurationProperty
-> LateDataRuleConfigurationProperty
set PropertyType
"DeltaTimeSessionWindowConfiguration"
LateDataRuleConfigurationProperty
newValue LateDataRuleConfigurationProperty {Maybe DeltaTimeSessionWindowConfigurationProperty
()
haddock_workaround_ :: LateDataRuleConfigurationProperty -> ()
deltaTimeSessionWindowConfiguration :: LateDataRuleConfigurationProperty
-> Maybe DeltaTimeSessionWindowConfigurationProperty
haddock_workaround_ :: ()
deltaTimeSessionWindowConfiguration :: Maybe DeltaTimeSessionWindowConfigurationProperty
..}
= LateDataRuleConfigurationProperty
{deltaTimeSessionWindowConfiguration :: Maybe DeltaTimeSessionWindowConfigurationProperty
deltaTimeSessionWindowConfiguration = DeltaTimeSessionWindowConfigurationProperty
-> Maybe DeltaTimeSessionWindowConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DeltaTimeSessionWindowConfiguration"
LateDataRuleConfigurationProperty
DeltaTimeSessionWindowConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}