module Stratosphere.IoTAnalytics.Dataset.VariableProperty (
        module Exports, VariableProperty(..), mkVariableProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTAnalytics.Dataset.DatasetContentVersionValueProperty as Exports
import {-# SOURCE #-} Stratosphere.IoTAnalytics.Dataset.OutputFileUriValueProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VariableProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable.html>
    VariableProperty {VariableProperty -> ()
haddock_workaround_ :: (),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable.html#cfn-iotanalytics-dataset-variable-datasetcontentversionvalue>
                      VariableProperty -> Maybe DatasetContentVersionValueProperty
datasetContentVersionValue :: (Prelude.Maybe DatasetContentVersionValueProperty),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable.html#cfn-iotanalytics-dataset-variable-doublevalue>
                      VariableProperty -> Maybe (Value Double)
doubleValue :: (Prelude.Maybe (Value Prelude.Double)),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable.html#cfn-iotanalytics-dataset-variable-outputfileurivalue>
                      VariableProperty -> Maybe OutputFileUriValueProperty
outputFileUriValue :: (Prelude.Maybe OutputFileUriValueProperty),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable.html#cfn-iotanalytics-dataset-variable-stringvalue>
                      VariableProperty -> Maybe (Value Text)
stringValue :: (Prelude.Maybe (Value Prelude.Text)),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-variable.html#cfn-iotanalytics-dataset-variable-variablename>
                      VariableProperty -> Value Text
variableName :: (Value Prelude.Text)}
  deriving stock (VariableProperty -> VariableProperty -> Bool
(VariableProperty -> VariableProperty -> Bool)
-> (VariableProperty -> VariableProperty -> Bool)
-> Eq VariableProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VariableProperty -> VariableProperty -> Bool
== :: VariableProperty -> VariableProperty -> Bool
$c/= :: VariableProperty -> VariableProperty -> Bool
/= :: VariableProperty -> VariableProperty -> Bool
Prelude.Eq, Int -> VariableProperty -> ShowS
[VariableProperty] -> ShowS
VariableProperty -> String
(Int -> VariableProperty -> ShowS)
-> (VariableProperty -> String)
-> ([VariableProperty] -> ShowS)
-> Show VariableProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VariableProperty -> ShowS
showsPrec :: Int -> VariableProperty -> ShowS
$cshow :: VariableProperty -> String
show :: VariableProperty -> String
$cshowList :: [VariableProperty] -> ShowS
showList :: [VariableProperty] -> ShowS
Prelude.Show)
mkVariableProperty :: Value Prelude.Text -> VariableProperty
mkVariableProperty :: Value Text -> VariableProperty
mkVariableProperty Value Text
variableName
  = VariableProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), variableName :: Value Text
variableName = Value Text
variableName,
       datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
datasetContentVersionValue = Maybe DatasetContentVersionValueProperty
forall a. Maybe a
Prelude.Nothing,
       doubleValue :: Maybe (Value Double)
doubleValue = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       outputFileUriValue :: Maybe OutputFileUriValueProperty
outputFileUriValue = Maybe OutputFileUriValueProperty
forall a. Maybe a
Prelude.Nothing,
       stringValue :: Maybe (Value Text)
stringValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VariableProperty where
  toResourceProperties :: VariableProperty -> ResourceProperties
toResourceProperties VariableProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe DatasetContentVersionValueProperty
Maybe OutputFileUriValueProperty
()
Value Text
haddock_workaround_ :: VariableProperty -> ()
datasetContentVersionValue :: VariableProperty -> Maybe DatasetContentVersionValueProperty
doubleValue :: VariableProperty -> Maybe (Value Double)
outputFileUriValue :: VariableProperty -> Maybe OutputFileUriValueProperty
stringValue :: VariableProperty -> Maybe (Value Text)
variableName :: VariableProperty -> Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
variableName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Dataset.Variable",
         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
"VariableName" 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
variableName]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> DatasetContentVersionValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DatasetContentVersionValue"
                                 (DatasetContentVersionValueProperty -> (Key, Value))
-> Maybe DatasetContentVersionValueProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DatasetContentVersionValueProperty
datasetContentVersionValue,
                               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DoubleValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
doubleValue,
                               Key -> OutputFileUriValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OutputFileUriValue" (OutputFileUriValueProperty -> (Key, Value))
-> Maybe OutputFileUriValueProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputFileUriValueProperty
outputFileUriValue,
                               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
"StringValue" (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)
stringValue]))}
instance JSON.ToJSON VariableProperty where
  toJSON :: VariableProperty -> Value
toJSON VariableProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe DatasetContentVersionValueProperty
Maybe OutputFileUriValueProperty
()
Value Text
haddock_workaround_ :: VariableProperty -> ()
datasetContentVersionValue :: VariableProperty -> Maybe DatasetContentVersionValueProperty
doubleValue :: VariableProperty -> Maybe (Value Double)
outputFileUriValue :: VariableProperty -> Maybe OutputFileUriValueProperty
stringValue :: VariableProperty -> Maybe (Value Text)
variableName :: VariableProperty -> Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
variableName :: 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
"VariableName" 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
variableName]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> DatasetContentVersionValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DatasetContentVersionValue"
                    (DatasetContentVersionValueProperty -> (Key, Value))
-> Maybe DatasetContentVersionValueProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DatasetContentVersionValueProperty
datasetContentVersionValue,
                  Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DoubleValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
doubleValue,
                  Key -> OutputFileUriValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OutputFileUriValue" (OutputFileUriValueProperty -> (Key, Value))
-> Maybe OutputFileUriValueProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputFileUriValueProperty
outputFileUriValue,
                  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
"StringValue" (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)
stringValue])))
instance Property "DatasetContentVersionValue" VariableProperty where
  type PropertyType "DatasetContentVersionValue" VariableProperty = DatasetContentVersionValueProperty
  set :: PropertyType "DatasetContentVersionValue" VariableProperty
-> VariableProperty -> VariableProperty
set PropertyType "DatasetContentVersionValue" VariableProperty
newValue VariableProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe DatasetContentVersionValueProperty
Maybe OutputFileUriValueProperty
()
Value Text
haddock_workaround_ :: VariableProperty -> ()
datasetContentVersionValue :: VariableProperty -> Maybe DatasetContentVersionValueProperty
doubleValue :: VariableProperty -> Maybe (Value Double)
outputFileUriValue :: VariableProperty -> Maybe OutputFileUriValueProperty
stringValue :: VariableProperty -> Maybe (Value Text)
variableName :: VariableProperty -> Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
variableName :: Value Text
..}
    = VariableProperty
        {datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
datasetContentVersionValue = DatasetContentVersionValueProperty
-> Maybe DatasetContentVersionValueProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatasetContentVersionValue" VariableProperty
DatasetContentVersionValueProperty
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe OutputFileUriValueProperty
()
Value Text
haddock_workaround_ :: ()
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
variableName :: Value Text
haddock_workaround_ :: ()
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
variableName :: Value Text
..}
instance Property "DoubleValue" VariableProperty where
  type PropertyType "DoubleValue" VariableProperty = Value Prelude.Double
  set :: PropertyType "DoubleValue" VariableProperty
-> VariableProperty -> VariableProperty
set PropertyType "DoubleValue" VariableProperty
newValue VariableProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe DatasetContentVersionValueProperty
Maybe OutputFileUriValueProperty
()
Value Text
haddock_workaround_ :: VariableProperty -> ()
datasetContentVersionValue :: VariableProperty -> Maybe DatasetContentVersionValueProperty
doubleValue :: VariableProperty -> Maybe (Value Double)
outputFileUriValue :: VariableProperty -> Maybe OutputFileUriValueProperty
stringValue :: VariableProperty -> Maybe (Value Text)
variableName :: VariableProperty -> Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
variableName :: Value Text
..}
    = VariableProperty {doubleValue :: Maybe (Value Double)
doubleValue = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DoubleValue" VariableProperty
Value Double
newValue, Maybe (Value Text)
Maybe DatasetContentVersionValueProperty
Maybe OutputFileUriValueProperty
()
Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
variableName :: Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
variableName :: Value Text
..}
instance Property "OutputFileUriValue" VariableProperty where
  type PropertyType "OutputFileUriValue" VariableProperty = OutputFileUriValueProperty
  set :: PropertyType "OutputFileUriValue" VariableProperty
-> VariableProperty -> VariableProperty
set PropertyType "OutputFileUriValue" VariableProperty
newValue VariableProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe DatasetContentVersionValueProperty
Maybe OutputFileUriValueProperty
()
Value Text
haddock_workaround_ :: VariableProperty -> ()
datasetContentVersionValue :: VariableProperty -> Maybe DatasetContentVersionValueProperty
doubleValue :: VariableProperty -> Maybe (Value Double)
outputFileUriValue :: VariableProperty -> Maybe OutputFileUriValueProperty
stringValue :: VariableProperty -> Maybe (Value Text)
variableName :: VariableProperty -> Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
variableName :: Value Text
..}
    = VariableProperty {outputFileUriValue :: Maybe OutputFileUriValueProperty
outputFileUriValue = OutputFileUriValueProperty -> Maybe OutputFileUriValueProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutputFileUriValue" VariableProperty
OutputFileUriValueProperty
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe DatasetContentVersionValueProperty
()
Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variableName :: Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variableName :: Value Text
..}
instance Property "StringValue" VariableProperty where
  type PropertyType "StringValue" VariableProperty = Value Prelude.Text
  set :: PropertyType "StringValue" VariableProperty
-> VariableProperty -> VariableProperty
set PropertyType "StringValue" VariableProperty
newValue VariableProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe DatasetContentVersionValueProperty
Maybe OutputFileUriValueProperty
()
Value Text
haddock_workaround_ :: VariableProperty -> ()
datasetContentVersionValue :: VariableProperty -> Maybe DatasetContentVersionValueProperty
doubleValue :: VariableProperty -> Maybe (Value Double)
outputFileUriValue :: VariableProperty -> Maybe OutputFileUriValueProperty
stringValue :: VariableProperty -> Maybe (Value Text)
variableName :: VariableProperty -> Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
variableName :: Value Text
..}
    = VariableProperty {stringValue :: Maybe (Value Text)
stringValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StringValue" VariableProperty
Value Text
newValue, Maybe (Value Double)
Maybe DatasetContentVersionValueProperty
Maybe OutputFileUriValueProperty
()
Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
variableName :: Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
variableName :: Value Text
..}
instance Property "VariableName" VariableProperty where
  type PropertyType "VariableName" VariableProperty = Value Prelude.Text
  set :: PropertyType "VariableName" VariableProperty
-> VariableProperty -> VariableProperty
set PropertyType "VariableName" VariableProperty
newValue VariableProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe DatasetContentVersionValueProperty
Maybe OutputFileUriValueProperty
()
Value Text
haddock_workaround_ :: VariableProperty -> ()
datasetContentVersionValue :: VariableProperty -> Maybe DatasetContentVersionValueProperty
doubleValue :: VariableProperty -> Maybe (Value Double)
outputFileUriValue :: VariableProperty -> Maybe OutputFileUriValueProperty
stringValue :: VariableProperty -> Maybe (Value Text)
variableName :: VariableProperty -> Value Text
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
variableName :: Value Text
..}
    = VariableProperty {variableName :: Value Text
variableName = PropertyType "VariableName" VariableProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe DatasetContentVersionValueProperty
Maybe OutputFileUriValueProperty
()
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
haddock_workaround_ :: ()
datasetContentVersionValue :: Maybe DatasetContentVersionValueProperty
doubleValue :: Maybe (Value Double)
outputFileUriValue :: Maybe OutputFileUriValueProperty
stringValue :: Maybe (Value Text)
..}