module Stratosphere.IoTTwinMaker.ComponentType.FunctionProperty (
module Exports, FunctionProperty(..), mkFunctionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTTwinMaker.ComponentType.DataConnectorProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FunctionProperty
=
FunctionProperty {FunctionProperty -> ()
haddock_workaround_ :: (),
FunctionProperty -> Maybe DataConnectorProperty
implementedBy :: (Prelude.Maybe DataConnectorProperty),
FunctionProperty -> Maybe (ValueList Text)
requiredProperties :: (Prelude.Maybe (ValueList Prelude.Text)),
FunctionProperty -> Maybe (Value Text)
scope :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (FunctionProperty -> FunctionProperty -> Bool
(FunctionProperty -> FunctionProperty -> Bool)
-> (FunctionProperty -> FunctionProperty -> Bool)
-> Eq FunctionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FunctionProperty -> FunctionProperty -> Bool
== :: FunctionProperty -> FunctionProperty -> Bool
$c/= :: FunctionProperty -> FunctionProperty -> Bool
/= :: FunctionProperty -> FunctionProperty -> Bool
Prelude.Eq, Int -> FunctionProperty -> ShowS
[FunctionProperty] -> ShowS
FunctionProperty -> String
(Int -> FunctionProperty -> ShowS)
-> (FunctionProperty -> String)
-> ([FunctionProperty] -> ShowS)
-> Show FunctionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FunctionProperty -> ShowS
showsPrec :: Int -> FunctionProperty -> ShowS
$cshow :: FunctionProperty -> String
show :: FunctionProperty -> String
$cshowList :: [FunctionProperty] -> ShowS
showList :: [FunctionProperty] -> ShowS
Prelude.Show)
mkFunctionProperty :: FunctionProperty
mkFunctionProperty :: FunctionProperty
mkFunctionProperty
= FunctionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), implementedBy :: Maybe DataConnectorProperty
implementedBy = Maybe DataConnectorProperty
forall a. Maybe a
Prelude.Nothing,
requiredProperties :: Maybe (ValueList Text)
requiredProperties = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, scope :: Maybe (Value Text)
scope = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FunctionProperty where
toResourceProperties :: FunctionProperty -> ResourceProperties
toResourceProperties FunctionProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe DataConnectorProperty
()
haddock_workaround_ :: FunctionProperty -> ()
implementedBy :: FunctionProperty -> Maybe DataConnectorProperty
requiredProperties :: FunctionProperty -> Maybe (ValueList Text)
scope :: FunctionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
implementedBy :: Maybe DataConnectorProperty
requiredProperties :: Maybe (ValueList Text)
scope :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTTwinMaker::ComponentType.Function",
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 -> DataConnectorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImplementedBy" (DataConnectorProperty -> (Key, Value))
-> Maybe DataConnectorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataConnectorProperty
implementedBy,
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..=) Key
"RequiredProperties" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
requiredProperties,
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
"Scope" (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)
scope])}
instance JSON.ToJSON FunctionProperty where
toJSON :: FunctionProperty -> Value
toJSON FunctionProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe DataConnectorProperty
()
haddock_workaround_ :: FunctionProperty -> ()
implementedBy :: FunctionProperty -> Maybe DataConnectorProperty
requiredProperties :: FunctionProperty -> Maybe (ValueList Text)
scope :: FunctionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
implementedBy :: Maybe DataConnectorProperty
requiredProperties :: Maybe (ValueList Text)
scope :: Maybe (Value Text)
..}
= [(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 -> DataConnectorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImplementedBy" (DataConnectorProperty -> (Key, Value))
-> Maybe DataConnectorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataConnectorProperty
implementedBy,
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..=) Key
"RequiredProperties" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
requiredProperties,
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
"Scope" (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)
scope]))
instance Property "ImplementedBy" FunctionProperty where
type PropertyType "ImplementedBy" FunctionProperty = DataConnectorProperty
set :: PropertyType "ImplementedBy" FunctionProperty
-> FunctionProperty -> FunctionProperty
set PropertyType "ImplementedBy" FunctionProperty
newValue FunctionProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe DataConnectorProperty
()
haddock_workaround_ :: FunctionProperty -> ()
implementedBy :: FunctionProperty -> Maybe DataConnectorProperty
requiredProperties :: FunctionProperty -> Maybe (ValueList Text)
scope :: FunctionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
implementedBy :: Maybe DataConnectorProperty
requiredProperties :: Maybe (ValueList Text)
scope :: Maybe (Value Text)
..}
= FunctionProperty {implementedBy :: Maybe DataConnectorProperty
implementedBy = DataConnectorProperty -> Maybe DataConnectorProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ImplementedBy" FunctionProperty
DataConnectorProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
requiredProperties :: Maybe (ValueList Text)
scope :: Maybe (Value Text)
haddock_workaround_ :: ()
requiredProperties :: Maybe (ValueList Text)
scope :: Maybe (Value Text)
..}
instance Property "RequiredProperties" FunctionProperty where
type PropertyType "RequiredProperties" FunctionProperty = ValueList Prelude.Text
set :: PropertyType "RequiredProperties" FunctionProperty
-> FunctionProperty -> FunctionProperty
set PropertyType "RequiredProperties" FunctionProperty
newValue FunctionProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe DataConnectorProperty
()
haddock_workaround_ :: FunctionProperty -> ()
implementedBy :: FunctionProperty -> Maybe DataConnectorProperty
requiredProperties :: FunctionProperty -> Maybe (ValueList Text)
scope :: FunctionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
implementedBy :: Maybe DataConnectorProperty
requiredProperties :: Maybe (ValueList Text)
scope :: Maybe (Value Text)
..}
= FunctionProperty {requiredProperties :: Maybe (ValueList Text)
requiredProperties = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RequiredProperties" FunctionProperty
ValueList Text
newValue, Maybe (Value Text)
Maybe DataConnectorProperty
()
haddock_workaround_ :: ()
implementedBy :: Maybe DataConnectorProperty
scope :: Maybe (Value Text)
haddock_workaround_ :: ()
implementedBy :: Maybe DataConnectorProperty
scope :: Maybe (Value Text)
..}
instance Property "Scope" FunctionProperty where
type PropertyType "Scope" FunctionProperty = Value Prelude.Text
set :: PropertyType "Scope" FunctionProperty
-> FunctionProperty -> FunctionProperty
set PropertyType "Scope" FunctionProperty
newValue FunctionProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe DataConnectorProperty
()
haddock_workaround_ :: FunctionProperty -> ()
implementedBy :: FunctionProperty -> Maybe DataConnectorProperty
requiredProperties :: FunctionProperty -> Maybe (ValueList Text)
scope :: FunctionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
implementedBy :: Maybe DataConnectorProperty
requiredProperties :: Maybe (ValueList Text)
scope :: Maybe (Value Text)
..}
= FunctionProperty {scope :: Maybe (Value Text)
scope = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Scope" FunctionProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe DataConnectorProperty
()
haddock_workaround_ :: ()
implementedBy :: Maybe DataConnectorProperty
requiredProperties :: Maybe (ValueList Text)
haddock_workaround_ :: ()
implementedBy :: Maybe DataConnectorProperty
requiredProperties :: Maybe (ValueList Text)
..}