module Stratosphere.IoTAnalytics.Dataset.LateDataRuleProperty (
        module Exports, LateDataRuleProperty(..), mkLateDataRuleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTAnalytics.Dataset.LateDataRuleConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LateDataRuleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-latedatarule.html>
    LateDataRuleProperty {LateDataRuleProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-latedatarule.html#cfn-iotanalytics-dataset-latedatarule-ruleconfiguration>
                          LateDataRuleProperty -> LateDataRuleConfigurationProperty
ruleConfiguration :: LateDataRuleConfigurationProperty,
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-latedatarule.html#cfn-iotanalytics-dataset-latedatarule-rulename>
                          LateDataRuleProperty -> Maybe (Value Text)
ruleName :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (LateDataRuleProperty -> LateDataRuleProperty -> Bool
(LateDataRuleProperty -> LateDataRuleProperty -> Bool)
-> (LateDataRuleProperty -> LateDataRuleProperty -> Bool)
-> Eq LateDataRuleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LateDataRuleProperty -> LateDataRuleProperty -> Bool
== :: LateDataRuleProperty -> LateDataRuleProperty -> Bool
$c/= :: LateDataRuleProperty -> LateDataRuleProperty -> Bool
/= :: LateDataRuleProperty -> LateDataRuleProperty -> Bool
Prelude.Eq, Int -> LateDataRuleProperty -> ShowS
[LateDataRuleProperty] -> ShowS
LateDataRuleProperty -> String
(Int -> LateDataRuleProperty -> ShowS)
-> (LateDataRuleProperty -> String)
-> ([LateDataRuleProperty] -> ShowS)
-> Show LateDataRuleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LateDataRuleProperty -> ShowS
showsPrec :: Int -> LateDataRuleProperty -> ShowS
$cshow :: LateDataRuleProperty -> String
show :: LateDataRuleProperty -> String
$cshowList :: [LateDataRuleProperty] -> ShowS
showList :: [LateDataRuleProperty] -> ShowS
Prelude.Show)
mkLateDataRuleProperty ::
  LateDataRuleConfigurationProperty -> LateDataRuleProperty
mkLateDataRuleProperty :: LateDataRuleConfigurationProperty -> LateDataRuleProperty
mkLateDataRuleProperty LateDataRuleConfigurationProperty
ruleConfiguration
  = LateDataRuleProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), ruleConfiguration :: LateDataRuleConfigurationProperty
ruleConfiguration = LateDataRuleConfigurationProperty
ruleConfiguration,
       ruleName :: Maybe (Value Text)
ruleName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LateDataRuleProperty where
  toResourceProperties :: LateDataRuleProperty -> ResourceProperties
toResourceProperties LateDataRuleProperty {Maybe (Value Text)
()
LateDataRuleConfigurationProperty
haddock_workaround_ :: LateDataRuleProperty -> ()
ruleConfiguration :: LateDataRuleProperty -> LateDataRuleConfigurationProperty
ruleName :: LateDataRuleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ruleConfiguration :: LateDataRuleConfigurationProperty
ruleName :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Dataset.LateDataRule",
         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
"RuleConfiguration" Key -> LateDataRuleConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LateDataRuleConfigurationProperty
ruleConfiguration]
                           ([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
"RuleName" (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)
ruleName]))}
instance JSON.ToJSON LateDataRuleProperty where
  toJSON :: LateDataRuleProperty -> Value
toJSON LateDataRuleProperty {Maybe (Value Text)
()
LateDataRuleConfigurationProperty
haddock_workaround_ :: LateDataRuleProperty -> ()
ruleConfiguration :: LateDataRuleProperty -> LateDataRuleConfigurationProperty
ruleName :: LateDataRuleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ruleConfiguration :: LateDataRuleConfigurationProperty
ruleName :: Maybe (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
"RuleConfiguration" Key -> LateDataRuleConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LateDataRuleConfigurationProperty
ruleConfiguration]
              ([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
"RuleName" (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)
ruleName])))
instance Property "RuleConfiguration" LateDataRuleProperty where
  type PropertyType "RuleConfiguration" LateDataRuleProperty = LateDataRuleConfigurationProperty
  set :: PropertyType "RuleConfiguration" LateDataRuleProperty
-> LateDataRuleProperty -> LateDataRuleProperty
set PropertyType "RuleConfiguration" LateDataRuleProperty
newValue LateDataRuleProperty {Maybe (Value Text)
()
LateDataRuleConfigurationProperty
haddock_workaround_ :: LateDataRuleProperty -> ()
ruleConfiguration :: LateDataRuleProperty -> LateDataRuleConfigurationProperty
ruleName :: LateDataRuleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ruleConfiguration :: LateDataRuleConfigurationProperty
ruleName :: Maybe (Value Text)
..}
    = LateDataRuleProperty {ruleConfiguration :: LateDataRuleConfigurationProperty
ruleConfiguration = PropertyType "RuleConfiguration" LateDataRuleProperty
LateDataRuleConfigurationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
ruleName :: Maybe (Value Text)
haddock_workaround_ :: ()
ruleName :: Maybe (Value Text)
..}
instance Property "RuleName" LateDataRuleProperty where
  type PropertyType "RuleName" LateDataRuleProperty = Value Prelude.Text
  set :: PropertyType "RuleName" LateDataRuleProperty
-> LateDataRuleProperty -> LateDataRuleProperty
set PropertyType "RuleName" LateDataRuleProperty
newValue LateDataRuleProperty {Maybe (Value Text)
()
LateDataRuleConfigurationProperty
haddock_workaround_ :: LateDataRuleProperty -> ()
ruleConfiguration :: LateDataRuleProperty -> LateDataRuleConfigurationProperty
ruleName :: LateDataRuleProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
ruleConfiguration :: LateDataRuleConfigurationProperty
ruleName :: Maybe (Value Text)
..}
    = LateDataRuleProperty {ruleName :: Maybe (Value Text)
ruleName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RuleName" LateDataRuleProperty
Value Text
newValue, ()
LateDataRuleConfigurationProperty
haddock_workaround_ :: ()
ruleConfiguration :: LateDataRuleConfigurationProperty
haddock_workaround_ :: ()
ruleConfiguration :: LateDataRuleConfigurationProperty
..}