module Stratosphere.IoTFleetWise.Campaign.SignalFetchInformationProperty (
module Exports, SignalFetchInformationProperty(..),
mkSignalFetchInformationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTFleetWise.Campaign.SignalFetchConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SignalFetchInformationProperty
=
SignalFetchInformationProperty {SignalFetchInformationProperty -> ()
haddock_workaround_ :: (),
SignalFetchInformationProperty -> ValueList Text
actions :: (ValueList Prelude.Text),
SignalFetchInformationProperty -> Maybe (Value Double)
conditionLanguageVersion :: (Prelude.Maybe (Value Prelude.Double)),
SignalFetchInformationProperty -> Value Text
fullyQualifiedName :: (Value Prelude.Text),
SignalFetchInformationProperty -> SignalFetchConfigProperty
signalFetchConfig :: SignalFetchConfigProperty}
deriving stock (SignalFetchInformationProperty
-> SignalFetchInformationProperty -> Bool
(SignalFetchInformationProperty
-> SignalFetchInformationProperty -> Bool)
-> (SignalFetchInformationProperty
-> SignalFetchInformationProperty -> Bool)
-> Eq SignalFetchInformationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SignalFetchInformationProperty
-> SignalFetchInformationProperty -> Bool
== :: SignalFetchInformationProperty
-> SignalFetchInformationProperty -> Bool
$c/= :: SignalFetchInformationProperty
-> SignalFetchInformationProperty -> Bool
/= :: SignalFetchInformationProperty
-> SignalFetchInformationProperty -> Bool
Prelude.Eq, Int -> SignalFetchInformationProperty -> ShowS
[SignalFetchInformationProperty] -> ShowS
SignalFetchInformationProperty -> String
(Int -> SignalFetchInformationProperty -> ShowS)
-> (SignalFetchInformationProperty -> String)
-> ([SignalFetchInformationProperty] -> ShowS)
-> Show SignalFetchInformationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SignalFetchInformationProperty -> ShowS
showsPrec :: Int -> SignalFetchInformationProperty -> ShowS
$cshow :: SignalFetchInformationProperty -> String
show :: SignalFetchInformationProperty -> String
$cshowList :: [SignalFetchInformationProperty] -> ShowS
showList :: [SignalFetchInformationProperty] -> ShowS
Prelude.Show)
mkSignalFetchInformationProperty ::
ValueList Prelude.Text
-> Value Prelude.Text
-> SignalFetchConfigProperty -> SignalFetchInformationProperty
mkSignalFetchInformationProperty :: ValueList Text
-> Value Text
-> SignalFetchConfigProperty
-> SignalFetchInformationProperty
mkSignalFetchInformationProperty
ValueList Text
actions
Value Text
fullyQualifiedName
SignalFetchConfigProperty
signalFetchConfig
= SignalFetchInformationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), actions :: ValueList Text
actions = ValueList Text
actions,
fullyQualifiedName :: Value Text
fullyQualifiedName = Value Text
fullyQualifiedName,
signalFetchConfig :: SignalFetchConfigProperty
signalFetchConfig = SignalFetchConfigProperty
signalFetchConfig,
conditionLanguageVersion :: Maybe (Value Double)
conditionLanguageVersion = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SignalFetchInformationProperty where
toResourceProperties :: SignalFetchInformationProperty -> ResourceProperties
toResourceProperties SignalFetchInformationProperty {Maybe (Value Double)
()
ValueList Text
Value Text
SignalFetchConfigProperty
haddock_workaround_ :: SignalFetchInformationProperty -> ()
actions :: SignalFetchInformationProperty -> ValueList Text
conditionLanguageVersion :: SignalFetchInformationProperty -> Maybe (Value Double)
fullyQualifiedName :: SignalFetchInformationProperty -> Value Text
signalFetchConfig :: SignalFetchInformationProperty -> SignalFetchConfigProperty
haddock_workaround_ :: ()
actions :: ValueList Text
conditionLanguageVersion :: Maybe (Value Double)
fullyQualifiedName :: Value Text
signalFetchConfig :: SignalFetchConfigProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTFleetWise::Campaign.SignalFetchInformation",
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
"Actions" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
actions,
Key
"FullyQualifiedName" 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
fullyQualifiedName,
Key
"SignalFetchConfig" Key -> SignalFetchConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SignalFetchConfigProperty
signalFetchConfig]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"ConditionLanguageVersion"
(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)
conditionLanguageVersion]))}
instance JSON.ToJSON SignalFetchInformationProperty where
toJSON :: SignalFetchInformationProperty -> Value
toJSON SignalFetchInformationProperty {Maybe (Value Double)
()
ValueList Text
Value Text
SignalFetchConfigProperty
haddock_workaround_ :: SignalFetchInformationProperty -> ()
actions :: SignalFetchInformationProperty -> ValueList Text
conditionLanguageVersion :: SignalFetchInformationProperty -> Maybe (Value Double)
fullyQualifiedName :: SignalFetchInformationProperty -> Value Text
signalFetchConfig :: SignalFetchInformationProperty -> SignalFetchConfigProperty
haddock_workaround_ :: ()
actions :: ValueList Text
conditionLanguageVersion :: Maybe (Value Double)
fullyQualifiedName :: Value Text
signalFetchConfig :: SignalFetchConfigProperty
..}
= [(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
"Actions" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
actions,
Key
"FullyQualifiedName" 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
fullyQualifiedName,
Key
"SignalFetchConfig" Key -> SignalFetchConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SignalFetchConfigProperty
signalFetchConfig]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"ConditionLanguageVersion"
(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)
conditionLanguageVersion])))
instance Property "Actions" SignalFetchInformationProperty where
type PropertyType "Actions" SignalFetchInformationProperty = ValueList Prelude.Text
set :: PropertyType "Actions" SignalFetchInformationProperty
-> SignalFetchInformationProperty -> SignalFetchInformationProperty
set PropertyType "Actions" SignalFetchInformationProperty
newValue SignalFetchInformationProperty {Maybe (Value Double)
()
ValueList Text
Value Text
SignalFetchConfigProperty
haddock_workaround_ :: SignalFetchInformationProperty -> ()
actions :: SignalFetchInformationProperty -> ValueList Text
conditionLanguageVersion :: SignalFetchInformationProperty -> Maybe (Value Double)
fullyQualifiedName :: SignalFetchInformationProperty -> Value Text
signalFetchConfig :: SignalFetchInformationProperty -> SignalFetchConfigProperty
haddock_workaround_ :: ()
actions :: ValueList Text
conditionLanguageVersion :: Maybe (Value Double)
fullyQualifiedName :: Value Text
signalFetchConfig :: SignalFetchConfigProperty
..}
= SignalFetchInformationProperty {actions :: ValueList Text
actions = PropertyType "Actions" SignalFetchInformationProperty
ValueList Text
newValue, Maybe (Value Double)
()
Value Text
SignalFetchConfigProperty
haddock_workaround_ :: ()
conditionLanguageVersion :: Maybe (Value Double)
fullyQualifiedName :: Value Text
signalFetchConfig :: SignalFetchConfigProperty
haddock_workaround_ :: ()
conditionLanguageVersion :: Maybe (Value Double)
fullyQualifiedName :: Value Text
signalFetchConfig :: SignalFetchConfigProperty
..}
instance Property "ConditionLanguageVersion" SignalFetchInformationProperty where
type PropertyType "ConditionLanguageVersion" SignalFetchInformationProperty = Value Prelude.Double
set :: PropertyType
"ConditionLanguageVersion" SignalFetchInformationProperty
-> SignalFetchInformationProperty -> SignalFetchInformationProperty
set PropertyType
"ConditionLanguageVersion" SignalFetchInformationProperty
newValue SignalFetchInformationProperty {Maybe (Value Double)
()
ValueList Text
Value Text
SignalFetchConfigProperty
haddock_workaround_ :: SignalFetchInformationProperty -> ()
actions :: SignalFetchInformationProperty -> ValueList Text
conditionLanguageVersion :: SignalFetchInformationProperty -> Maybe (Value Double)
fullyQualifiedName :: SignalFetchInformationProperty -> Value Text
signalFetchConfig :: SignalFetchInformationProperty -> SignalFetchConfigProperty
haddock_workaround_ :: ()
actions :: ValueList Text
conditionLanguageVersion :: Maybe (Value Double)
fullyQualifiedName :: Value Text
signalFetchConfig :: SignalFetchConfigProperty
..}
= SignalFetchInformationProperty
{conditionLanguageVersion :: Maybe (Value Double)
conditionLanguageVersion = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ConditionLanguageVersion" SignalFetchInformationProperty
Value Double
newValue, ()
ValueList Text
Value Text
SignalFetchConfigProperty
haddock_workaround_ :: ()
actions :: ValueList Text
fullyQualifiedName :: Value Text
signalFetchConfig :: SignalFetchConfigProperty
haddock_workaround_ :: ()
actions :: ValueList Text
fullyQualifiedName :: Value Text
signalFetchConfig :: SignalFetchConfigProperty
..}
instance Property "FullyQualifiedName" SignalFetchInformationProperty where
type PropertyType "FullyQualifiedName" SignalFetchInformationProperty = Value Prelude.Text
set :: PropertyType "FullyQualifiedName" SignalFetchInformationProperty
-> SignalFetchInformationProperty -> SignalFetchInformationProperty
set PropertyType "FullyQualifiedName" SignalFetchInformationProperty
newValue SignalFetchInformationProperty {Maybe (Value Double)
()
ValueList Text
Value Text
SignalFetchConfigProperty
haddock_workaround_ :: SignalFetchInformationProperty -> ()
actions :: SignalFetchInformationProperty -> ValueList Text
conditionLanguageVersion :: SignalFetchInformationProperty -> Maybe (Value Double)
fullyQualifiedName :: SignalFetchInformationProperty -> Value Text
signalFetchConfig :: SignalFetchInformationProperty -> SignalFetchConfigProperty
haddock_workaround_ :: ()
actions :: ValueList Text
conditionLanguageVersion :: Maybe (Value Double)
fullyQualifiedName :: Value Text
signalFetchConfig :: SignalFetchConfigProperty
..}
= SignalFetchInformationProperty
{fullyQualifiedName :: Value Text
fullyQualifiedName = PropertyType "FullyQualifiedName" SignalFetchInformationProperty
Value Text
newValue, Maybe (Value Double)
()
ValueList Text
SignalFetchConfigProperty
haddock_workaround_ :: ()
actions :: ValueList Text
conditionLanguageVersion :: Maybe (Value Double)
signalFetchConfig :: SignalFetchConfigProperty
haddock_workaround_ :: ()
actions :: ValueList Text
conditionLanguageVersion :: Maybe (Value Double)
signalFetchConfig :: SignalFetchConfigProperty
..}
instance Property "SignalFetchConfig" SignalFetchInformationProperty where
type PropertyType "SignalFetchConfig" SignalFetchInformationProperty = SignalFetchConfigProperty
set :: PropertyType "SignalFetchConfig" SignalFetchInformationProperty
-> SignalFetchInformationProperty -> SignalFetchInformationProperty
set PropertyType "SignalFetchConfig" SignalFetchInformationProperty
newValue SignalFetchInformationProperty {Maybe (Value Double)
()
ValueList Text
Value Text
SignalFetchConfigProperty
haddock_workaround_ :: SignalFetchInformationProperty -> ()
actions :: SignalFetchInformationProperty -> ValueList Text
conditionLanguageVersion :: SignalFetchInformationProperty -> Maybe (Value Double)
fullyQualifiedName :: SignalFetchInformationProperty -> Value Text
signalFetchConfig :: SignalFetchInformationProperty -> SignalFetchConfigProperty
haddock_workaround_ :: ()
actions :: ValueList Text
conditionLanguageVersion :: Maybe (Value Double)
fullyQualifiedName :: Value Text
signalFetchConfig :: SignalFetchConfigProperty
..}
= SignalFetchInformationProperty {signalFetchConfig :: SignalFetchConfigProperty
signalFetchConfig = PropertyType "SignalFetchConfig" SignalFetchInformationProperty
SignalFetchConfigProperty
newValue, Maybe (Value Double)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
actions :: ValueList Text
conditionLanguageVersion :: Maybe (Value Double)
fullyQualifiedName :: Value Text
haddock_workaround_ :: ()
actions :: ValueList Text
conditionLanguageVersion :: Maybe (Value Double)
fullyQualifiedName :: Value Text
..}