module Stratosphere.GreengrassV2.ComponentVersion.LambdaContainerParamsProperty (
module Exports, LambdaContainerParamsProperty(..),
mkLambdaContainerParamsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GreengrassV2.ComponentVersion.LambdaDeviceMountProperty as Exports
import {-# SOURCE #-} Stratosphere.GreengrassV2.ComponentVersion.LambdaVolumeMountProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LambdaContainerParamsProperty
=
LambdaContainerParamsProperty {LambdaContainerParamsProperty -> ()
haddock_workaround_ :: (),
LambdaContainerParamsProperty -> Maybe [LambdaDeviceMountProperty]
devices :: (Prelude.Maybe [LambdaDeviceMountProperty]),
LambdaContainerParamsProperty -> Maybe (Value Integer)
memorySizeInKB :: (Prelude.Maybe (Value Prelude.Integer)),
LambdaContainerParamsProperty -> Maybe (Value Bool)
mountROSysfs :: (Prelude.Maybe (Value Prelude.Bool)),
LambdaContainerParamsProperty -> Maybe [LambdaVolumeMountProperty]
volumes :: (Prelude.Maybe [LambdaVolumeMountProperty])}
deriving stock (LambdaContainerParamsProperty
-> LambdaContainerParamsProperty -> Bool
(LambdaContainerParamsProperty
-> LambdaContainerParamsProperty -> Bool)
-> (LambdaContainerParamsProperty
-> LambdaContainerParamsProperty -> Bool)
-> Eq LambdaContainerParamsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LambdaContainerParamsProperty
-> LambdaContainerParamsProperty -> Bool
== :: LambdaContainerParamsProperty
-> LambdaContainerParamsProperty -> Bool
$c/= :: LambdaContainerParamsProperty
-> LambdaContainerParamsProperty -> Bool
/= :: LambdaContainerParamsProperty
-> LambdaContainerParamsProperty -> Bool
Prelude.Eq, Int -> LambdaContainerParamsProperty -> ShowS
[LambdaContainerParamsProperty] -> ShowS
LambdaContainerParamsProperty -> String
(Int -> LambdaContainerParamsProperty -> ShowS)
-> (LambdaContainerParamsProperty -> String)
-> ([LambdaContainerParamsProperty] -> ShowS)
-> Show LambdaContainerParamsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LambdaContainerParamsProperty -> ShowS
showsPrec :: Int -> LambdaContainerParamsProperty -> ShowS
$cshow :: LambdaContainerParamsProperty -> String
show :: LambdaContainerParamsProperty -> String
$cshowList :: [LambdaContainerParamsProperty] -> ShowS
showList :: [LambdaContainerParamsProperty] -> ShowS
Prelude.Show)
mkLambdaContainerParamsProperty :: LambdaContainerParamsProperty
mkLambdaContainerParamsProperty :: LambdaContainerParamsProperty
mkLambdaContainerParamsProperty
= LambdaContainerParamsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), devices :: Maybe [LambdaDeviceMountProperty]
devices = Maybe [LambdaDeviceMountProperty]
forall a. Maybe a
Prelude.Nothing,
memorySizeInKB :: Maybe (Value Integer)
memorySizeInKB = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, mountROSysfs :: Maybe (Value Bool)
mountROSysfs = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
volumes :: Maybe [LambdaVolumeMountProperty]
volumes = Maybe [LambdaVolumeMountProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LambdaContainerParamsProperty where
toResourceProperties :: LambdaContainerParamsProperty -> ResourceProperties
toResourceProperties LambdaContainerParamsProperty {Maybe [LambdaDeviceMountProperty]
Maybe [LambdaVolumeMountProperty]
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: LambdaContainerParamsProperty -> ()
devices :: LambdaContainerParamsProperty -> Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: LambdaContainerParamsProperty -> Maybe (Value Integer)
mountROSysfs :: LambdaContainerParamsProperty -> Maybe (Value Bool)
volumes :: LambdaContainerParamsProperty -> Maybe [LambdaVolumeMountProperty]
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: Maybe (Value Integer)
mountROSysfs :: Maybe (Value Bool)
volumes :: Maybe [LambdaVolumeMountProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::GreengrassV2::ComponentVersion.LambdaContainerParams",
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 -> [LambdaDeviceMountProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Devices" ([LambdaDeviceMountProperty] -> (Key, Value))
-> Maybe [LambdaDeviceMountProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LambdaDeviceMountProperty]
devices,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MemorySizeInKB" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
memorySizeInKB,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MountROSysfs" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
mountROSysfs,
Key -> [LambdaVolumeMountProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Volumes" ([LambdaVolumeMountProperty] -> (Key, Value))
-> Maybe [LambdaVolumeMountProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LambdaVolumeMountProperty]
volumes])}
instance JSON.ToJSON LambdaContainerParamsProperty where
toJSON :: LambdaContainerParamsProperty -> Value
toJSON LambdaContainerParamsProperty {Maybe [LambdaDeviceMountProperty]
Maybe [LambdaVolumeMountProperty]
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: LambdaContainerParamsProperty -> ()
devices :: LambdaContainerParamsProperty -> Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: LambdaContainerParamsProperty -> Maybe (Value Integer)
mountROSysfs :: LambdaContainerParamsProperty -> Maybe (Value Bool)
volumes :: LambdaContainerParamsProperty -> Maybe [LambdaVolumeMountProperty]
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: Maybe (Value Integer)
mountROSysfs :: Maybe (Value Bool)
volumes :: Maybe [LambdaVolumeMountProperty]
..}
= [(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 -> [LambdaDeviceMountProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Devices" ([LambdaDeviceMountProperty] -> (Key, Value))
-> Maybe [LambdaDeviceMountProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LambdaDeviceMountProperty]
devices,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MemorySizeInKB" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
memorySizeInKB,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MountROSysfs" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
mountROSysfs,
Key -> [LambdaVolumeMountProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Volumes" ([LambdaVolumeMountProperty] -> (Key, Value))
-> Maybe [LambdaVolumeMountProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LambdaVolumeMountProperty]
volumes]))
instance Property "Devices" LambdaContainerParamsProperty where
type PropertyType "Devices" LambdaContainerParamsProperty = [LambdaDeviceMountProperty]
set :: PropertyType "Devices" LambdaContainerParamsProperty
-> LambdaContainerParamsProperty -> LambdaContainerParamsProperty
set PropertyType "Devices" LambdaContainerParamsProperty
newValue LambdaContainerParamsProperty {Maybe [LambdaDeviceMountProperty]
Maybe [LambdaVolumeMountProperty]
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: LambdaContainerParamsProperty -> ()
devices :: LambdaContainerParamsProperty -> Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: LambdaContainerParamsProperty -> Maybe (Value Integer)
mountROSysfs :: LambdaContainerParamsProperty -> Maybe (Value Bool)
volumes :: LambdaContainerParamsProperty -> Maybe [LambdaVolumeMountProperty]
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: Maybe (Value Integer)
mountROSysfs :: Maybe (Value Bool)
volumes :: Maybe [LambdaVolumeMountProperty]
..}
= LambdaContainerParamsProperty
{devices :: Maybe [LambdaDeviceMountProperty]
devices = [LambdaDeviceMountProperty] -> Maybe [LambdaDeviceMountProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [LambdaDeviceMountProperty]
PropertyType "Devices" LambdaContainerParamsProperty
newValue, Maybe [LambdaVolumeMountProperty]
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
memorySizeInKB :: Maybe (Value Integer)
mountROSysfs :: Maybe (Value Bool)
volumes :: Maybe [LambdaVolumeMountProperty]
haddock_workaround_ :: ()
memorySizeInKB :: Maybe (Value Integer)
mountROSysfs :: Maybe (Value Bool)
volumes :: Maybe [LambdaVolumeMountProperty]
..}
instance Property "MemorySizeInKB" LambdaContainerParamsProperty where
type PropertyType "MemorySizeInKB" LambdaContainerParamsProperty = Value Prelude.Integer
set :: PropertyType "MemorySizeInKB" LambdaContainerParamsProperty
-> LambdaContainerParamsProperty -> LambdaContainerParamsProperty
set PropertyType "MemorySizeInKB" LambdaContainerParamsProperty
newValue LambdaContainerParamsProperty {Maybe [LambdaDeviceMountProperty]
Maybe [LambdaVolumeMountProperty]
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: LambdaContainerParamsProperty -> ()
devices :: LambdaContainerParamsProperty -> Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: LambdaContainerParamsProperty -> Maybe (Value Integer)
mountROSysfs :: LambdaContainerParamsProperty -> Maybe (Value Bool)
volumes :: LambdaContainerParamsProperty -> Maybe [LambdaVolumeMountProperty]
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: Maybe (Value Integer)
mountROSysfs :: Maybe (Value Bool)
volumes :: Maybe [LambdaVolumeMountProperty]
..}
= LambdaContainerParamsProperty
{memorySizeInKB :: Maybe (Value Integer)
memorySizeInKB = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MemorySizeInKB" LambdaContainerParamsProperty
Value Integer
newValue, Maybe [LambdaDeviceMountProperty]
Maybe [LambdaVolumeMountProperty]
Maybe (Value Bool)
()
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
mountROSysfs :: Maybe (Value Bool)
volumes :: Maybe [LambdaVolumeMountProperty]
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
mountROSysfs :: Maybe (Value Bool)
volumes :: Maybe [LambdaVolumeMountProperty]
..}
instance Property "MountROSysfs" LambdaContainerParamsProperty where
type PropertyType "MountROSysfs" LambdaContainerParamsProperty = Value Prelude.Bool
set :: PropertyType "MountROSysfs" LambdaContainerParamsProperty
-> LambdaContainerParamsProperty -> LambdaContainerParamsProperty
set PropertyType "MountROSysfs" LambdaContainerParamsProperty
newValue LambdaContainerParamsProperty {Maybe [LambdaDeviceMountProperty]
Maybe [LambdaVolumeMountProperty]
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: LambdaContainerParamsProperty -> ()
devices :: LambdaContainerParamsProperty -> Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: LambdaContainerParamsProperty -> Maybe (Value Integer)
mountROSysfs :: LambdaContainerParamsProperty -> Maybe (Value Bool)
volumes :: LambdaContainerParamsProperty -> Maybe [LambdaVolumeMountProperty]
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: Maybe (Value Integer)
mountROSysfs :: Maybe (Value Bool)
volumes :: Maybe [LambdaVolumeMountProperty]
..}
= LambdaContainerParamsProperty
{mountROSysfs :: Maybe (Value Bool)
mountROSysfs = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MountROSysfs" LambdaContainerParamsProperty
Value Bool
newValue, Maybe [LambdaDeviceMountProperty]
Maybe [LambdaVolumeMountProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: Maybe (Value Integer)
volumes :: Maybe [LambdaVolumeMountProperty]
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: Maybe (Value Integer)
volumes :: Maybe [LambdaVolumeMountProperty]
..}
instance Property "Volumes" LambdaContainerParamsProperty where
type PropertyType "Volumes" LambdaContainerParamsProperty = [LambdaVolumeMountProperty]
set :: PropertyType "Volumes" LambdaContainerParamsProperty
-> LambdaContainerParamsProperty -> LambdaContainerParamsProperty
set PropertyType "Volumes" LambdaContainerParamsProperty
newValue LambdaContainerParamsProperty {Maybe [LambdaDeviceMountProperty]
Maybe [LambdaVolumeMountProperty]
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: LambdaContainerParamsProperty -> ()
devices :: LambdaContainerParamsProperty -> Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: LambdaContainerParamsProperty -> Maybe (Value Integer)
mountROSysfs :: LambdaContainerParamsProperty -> Maybe (Value Bool)
volumes :: LambdaContainerParamsProperty -> Maybe [LambdaVolumeMountProperty]
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: Maybe (Value Integer)
mountROSysfs :: Maybe (Value Bool)
volumes :: Maybe [LambdaVolumeMountProperty]
..}
= LambdaContainerParamsProperty
{volumes :: Maybe [LambdaVolumeMountProperty]
volumes = [LambdaVolumeMountProperty] -> Maybe [LambdaVolumeMountProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [LambdaVolumeMountProperty]
PropertyType "Volumes" LambdaContainerParamsProperty
newValue, Maybe [LambdaDeviceMountProperty]
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: Maybe (Value Integer)
mountROSysfs :: Maybe (Value Bool)
haddock_workaround_ :: ()
devices :: Maybe [LambdaDeviceMountProperty]
memorySizeInKB :: Maybe (Value Integer)
mountROSysfs :: Maybe (Value Bool)
..}