module Stratosphere.GreengrassV2.ComponentVersion.LambdaLinuxProcessParamsProperty (
        module Exports, LambdaLinuxProcessParamsProperty(..),
        mkLambdaLinuxProcessParamsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GreengrassV2.ComponentVersion.LambdaContainerParamsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LambdaLinuxProcessParamsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-componentversion-lambdalinuxprocessparams.html>
    LambdaLinuxProcessParamsProperty {LambdaLinuxProcessParamsProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-componentversion-lambdalinuxprocessparams.html#cfn-greengrassv2-componentversion-lambdalinuxprocessparams-containerparams>
                                      LambdaLinuxProcessParamsProperty
-> Maybe LambdaContainerParamsProperty
containerParams :: (Prelude.Maybe LambdaContainerParamsProperty),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-componentversion-lambdalinuxprocessparams.html#cfn-greengrassv2-componentversion-lambdalinuxprocessparams-isolationmode>
                                      LambdaLinuxProcessParamsProperty -> Maybe (Value Text)
isolationMode :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (LambdaLinuxProcessParamsProperty
-> LambdaLinuxProcessParamsProperty -> Bool
(LambdaLinuxProcessParamsProperty
 -> LambdaLinuxProcessParamsProperty -> Bool)
-> (LambdaLinuxProcessParamsProperty
    -> LambdaLinuxProcessParamsProperty -> Bool)
-> Eq LambdaLinuxProcessParamsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LambdaLinuxProcessParamsProperty
-> LambdaLinuxProcessParamsProperty -> Bool
== :: LambdaLinuxProcessParamsProperty
-> LambdaLinuxProcessParamsProperty -> Bool
$c/= :: LambdaLinuxProcessParamsProperty
-> LambdaLinuxProcessParamsProperty -> Bool
/= :: LambdaLinuxProcessParamsProperty
-> LambdaLinuxProcessParamsProperty -> Bool
Prelude.Eq, Int -> LambdaLinuxProcessParamsProperty -> ShowS
[LambdaLinuxProcessParamsProperty] -> ShowS
LambdaLinuxProcessParamsProperty -> String
(Int -> LambdaLinuxProcessParamsProperty -> ShowS)
-> (LambdaLinuxProcessParamsProperty -> String)
-> ([LambdaLinuxProcessParamsProperty] -> ShowS)
-> Show LambdaLinuxProcessParamsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LambdaLinuxProcessParamsProperty -> ShowS
showsPrec :: Int -> LambdaLinuxProcessParamsProperty -> ShowS
$cshow :: LambdaLinuxProcessParamsProperty -> String
show :: LambdaLinuxProcessParamsProperty -> String
$cshowList :: [LambdaLinuxProcessParamsProperty] -> ShowS
showList :: [LambdaLinuxProcessParamsProperty] -> ShowS
Prelude.Show)
mkLambdaLinuxProcessParamsProperty ::
  LambdaLinuxProcessParamsProperty
mkLambdaLinuxProcessParamsProperty :: LambdaLinuxProcessParamsProperty
mkLambdaLinuxProcessParamsProperty
  = LambdaLinuxProcessParamsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), containerParams :: Maybe LambdaContainerParamsProperty
containerParams = Maybe LambdaContainerParamsProperty
forall a. Maybe a
Prelude.Nothing,
       isolationMode :: Maybe (Value Text)
isolationMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LambdaLinuxProcessParamsProperty where
  toResourceProperties :: LambdaLinuxProcessParamsProperty -> ResourceProperties
toResourceProperties LambdaLinuxProcessParamsProperty {Maybe (Value Text)
Maybe LambdaContainerParamsProperty
()
haddock_workaround_ :: LambdaLinuxProcessParamsProperty -> ()
containerParams :: LambdaLinuxProcessParamsProperty
-> Maybe LambdaContainerParamsProperty
isolationMode :: LambdaLinuxProcessParamsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerParams :: Maybe LambdaContainerParamsProperty
isolationMode :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GreengrassV2::ComponentVersion.LambdaLinuxProcessParams",
         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 -> LambdaContainerParamsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContainerParams" (LambdaContainerParamsProperty -> (Key, Value))
-> Maybe LambdaContainerParamsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LambdaContainerParamsProperty
containerParams,
                            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
"IsolationMode" (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)
isolationMode])}
instance JSON.ToJSON LambdaLinuxProcessParamsProperty where
  toJSON :: LambdaLinuxProcessParamsProperty -> Value
toJSON LambdaLinuxProcessParamsProperty {Maybe (Value Text)
Maybe LambdaContainerParamsProperty
()
haddock_workaround_ :: LambdaLinuxProcessParamsProperty -> ()
containerParams :: LambdaLinuxProcessParamsProperty
-> Maybe LambdaContainerParamsProperty
isolationMode :: LambdaLinuxProcessParamsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerParams :: Maybe LambdaContainerParamsProperty
isolationMode :: 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 -> LambdaContainerParamsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContainerParams" (LambdaContainerParamsProperty -> (Key, Value))
-> Maybe LambdaContainerParamsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LambdaContainerParamsProperty
containerParams,
               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
"IsolationMode" (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)
isolationMode]))
instance Property "ContainerParams" LambdaLinuxProcessParamsProperty where
  type PropertyType "ContainerParams" LambdaLinuxProcessParamsProperty = LambdaContainerParamsProperty
  set :: PropertyType "ContainerParams" LambdaLinuxProcessParamsProperty
-> LambdaLinuxProcessParamsProperty
-> LambdaLinuxProcessParamsProperty
set PropertyType "ContainerParams" LambdaLinuxProcessParamsProperty
newValue LambdaLinuxProcessParamsProperty {Maybe (Value Text)
Maybe LambdaContainerParamsProperty
()
haddock_workaround_ :: LambdaLinuxProcessParamsProperty -> ()
containerParams :: LambdaLinuxProcessParamsProperty
-> Maybe LambdaContainerParamsProperty
isolationMode :: LambdaLinuxProcessParamsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerParams :: Maybe LambdaContainerParamsProperty
isolationMode :: Maybe (Value Text)
..}
    = LambdaLinuxProcessParamsProperty
        {containerParams :: Maybe LambdaContainerParamsProperty
containerParams = LambdaContainerParamsProperty
-> Maybe LambdaContainerParamsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContainerParams" LambdaLinuxProcessParamsProperty
LambdaContainerParamsProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
isolationMode :: Maybe (Value Text)
haddock_workaround_ :: ()
isolationMode :: Maybe (Value Text)
..}
instance Property "IsolationMode" LambdaLinuxProcessParamsProperty where
  type PropertyType "IsolationMode" LambdaLinuxProcessParamsProperty = Value Prelude.Text
  set :: PropertyType "IsolationMode" LambdaLinuxProcessParamsProperty
-> LambdaLinuxProcessParamsProperty
-> LambdaLinuxProcessParamsProperty
set PropertyType "IsolationMode" LambdaLinuxProcessParamsProperty
newValue LambdaLinuxProcessParamsProperty {Maybe (Value Text)
Maybe LambdaContainerParamsProperty
()
haddock_workaround_ :: LambdaLinuxProcessParamsProperty -> ()
containerParams :: LambdaLinuxProcessParamsProperty
-> Maybe LambdaContainerParamsProperty
isolationMode :: LambdaLinuxProcessParamsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerParams :: Maybe LambdaContainerParamsProperty
isolationMode :: Maybe (Value Text)
..}
    = LambdaLinuxProcessParamsProperty
        {isolationMode :: Maybe (Value Text)
isolationMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IsolationMode" LambdaLinuxProcessParamsProperty
Value Text
newValue, Maybe LambdaContainerParamsProperty
()
haddock_workaround_ :: ()
containerParams :: Maybe LambdaContainerParamsProperty
haddock_workaround_ :: ()
containerParams :: Maybe LambdaContainerParamsProperty
..}