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