module Stratosphere.Lambda.Function.ImageConfigProperty (
        ImageConfigProperty(..), mkImageConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ImageConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html>
    ImageConfigProperty {ImageConfigProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html#cfn-lambda-function-imageconfig-command>
                         ImageConfigProperty -> Maybe (ValueList Text)
command :: (Prelude.Maybe (ValueList Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html#cfn-lambda-function-imageconfig-entrypoint>
                         ImageConfigProperty -> Maybe (ValueList Text)
entryPoint :: (Prelude.Maybe (ValueList Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html#cfn-lambda-function-imageconfig-workingdirectory>
                         ImageConfigProperty -> Maybe (Value Text)
workingDirectory :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ImageConfigProperty -> ImageConfigProperty -> Bool
(ImageConfigProperty -> ImageConfigProperty -> Bool)
-> (ImageConfigProperty -> ImageConfigProperty -> Bool)
-> Eq ImageConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ImageConfigProperty -> ImageConfigProperty -> Bool
== :: ImageConfigProperty -> ImageConfigProperty -> Bool
$c/= :: ImageConfigProperty -> ImageConfigProperty -> Bool
/= :: ImageConfigProperty -> ImageConfigProperty -> Bool
Prelude.Eq, Int -> ImageConfigProperty -> ShowS
[ImageConfigProperty] -> ShowS
ImageConfigProperty -> String
(Int -> ImageConfigProperty -> ShowS)
-> (ImageConfigProperty -> String)
-> ([ImageConfigProperty] -> ShowS)
-> Show ImageConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ImageConfigProperty -> ShowS
showsPrec :: Int -> ImageConfigProperty -> ShowS
$cshow :: ImageConfigProperty -> String
show :: ImageConfigProperty -> String
$cshowList :: [ImageConfigProperty] -> ShowS
showList :: [ImageConfigProperty] -> ShowS
Prelude.Show)
mkImageConfigProperty :: ImageConfigProperty
mkImageConfigProperty :: ImageConfigProperty
mkImageConfigProperty
  = ImageConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), command :: Maybe (ValueList Text)
command = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       entryPoint :: Maybe (ValueList Text)
entryPoint = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, workingDirectory :: Maybe (Value Text)
workingDirectory = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ImageConfigProperty where
  toResourceProperties :: ImageConfigProperty -> ResourceProperties
toResourceProperties ImageConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ImageConfigProperty -> ()
command :: ImageConfigProperty -> Maybe (ValueList Text)
entryPoint :: ImageConfigProperty -> Maybe (ValueList Text)
workingDirectory :: ImageConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
command :: Maybe (ValueList Text)
entryPoint :: Maybe (ValueList Text)
workingDirectory :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lambda::Function.ImageConfig",
         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 -> 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
"Command" (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)
command,
                            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
"EntryPoint" (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)
entryPoint,
                            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
"WorkingDirectory" (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)
workingDirectory])}
instance JSON.ToJSON ImageConfigProperty where
  toJSON :: ImageConfigProperty -> Value
toJSON ImageConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ImageConfigProperty -> ()
command :: ImageConfigProperty -> Maybe (ValueList Text)
entryPoint :: ImageConfigProperty -> Maybe (ValueList Text)
workingDirectory :: ImageConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
command :: Maybe (ValueList Text)
entryPoint :: Maybe (ValueList Text)
workingDirectory :: 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 -> 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
"Command" (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)
command,
               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
"EntryPoint" (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)
entryPoint,
               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
"WorkingDirectory" (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)
workingDirectory]))
instance Property "Command" ImageConfigProperty where
  type PropertyType "Command" ImageConfigProperty = ValueList Prelude.Text
  set :: PropertyType "Command" ImageConfigProperty
-> ImageConfigProperty -> ImageConfigProperty
set PropertyType "Command" ImageConfigProperty
newValue ImageConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ImageConfigProperty -> ()
command :: ImageConfigProperty -> Maybe (ValueList Text)
entryPoint :: ImageConfigProperty -> Maybe (ValueList Text)
workingDirectory :: ImageConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
command :: Maybe (ValueList Text)
entryPoint :: Maybe (ValueList Text)
workingDirectory :: Maybe (Value Text)
..}
    = ImageConfigProperty {command :: Maybe (ValueList Text)
command = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Command" ImageConfigProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
entryPoint :: Maybe (ValueList Text)
workingDirectory :: Maybe (Value Text)
haddock_workaround_ :: ()
entryPoint :: Maybe (ValueList Text)
workingDirectory :: Maybe (Value Text)
..}
instance Property "EntryPoint" ImageConfigProperty where
  type PropertyType "EntryPoint" ImageConfigProperty = ValueList Prelude.Text
  set :: PropertyType "EntryPoint" ImageConfigProperty
-> ImageConfigProperty -> ImageConfigProperty
set PropertyType "EntryPoint" ImageConfigProperty
newValue ImageConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ImageConfigProperty -> ()
command :: ImageConfigProperty -> Maybe (ValueList Text)
entryPoint :: ImageConfigProperty -> Maybe (ValueList Text)
workingDirectory :: ImageConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
command :: Maybe (ValueList Text)
entryPoint :: Maybe (ValueList Text)
workingDirectory :: Maybe (Value Text)
..}
    = ImageConfigProperty {entryPoint :: Maybe (ValueList Text)
entryPoint = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EntryPoint" ImageConfigProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
command :: Maybe (ValueList Text)
workingDirectory :: Maybe (Value Text)
haddock_workaround_ :: ()
command :: Maybe (ValueList Text)
workingDirectory :: Maybe (Value Text)
..}
instance Property "WorkingDirectory" ImageConfigProperty where
  type PropertyType "WorkingDirectory" ImageConfigProperty = Value Prelude.Text
  set :: PropertyType "WorkingDirectory" ImageConfigProperty
-> ImageConfigProperty -> ImageConfigProperty
set PropertyType "WorkingDirectory" ImageConfigProperty
newValue ImageConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ImageConfigProperty -> ()
command :: ImageConfigProperty -> Maybe (ValueList Text)
entryPoint :: ImageConfigProperty -> Maybe (ValueList Text)
workingDirectory :: ImageConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
command :: Maybe (ValueList Text)
entryPoint :: Maybe (ValueList Text)
workingDirectory :: Maybe (Value Text)
..}
    = ImageConfigProperty
        {workingDirectory :: Maybe (Value Text)
workingDirectory = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "WorkingDirectory" ImageConfigProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
command :: Maybe (ValueList Text)
entryPoint :: Maybe (ValueList Text)
haddock_workaround_ :: ()
command :: Maybe (ValueList Text)
entryPoint :: Maybe (ValueList Text)
..}