module Stratosphere.Lambda.Function.RuntimeManagementConfigProperty (
RuntimeManagementConfigProperty(..),
mkRuntimeManagementConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RuntimeManagementConfigProperty
=
RuntimeManagementConfigProperty {RuntimeManagementConfigProperty -> ()
haddock_workaround_ :: (),
RuntimeManagementConfigProperty -> Maybe (Value Text)
runtimeVersionArn :: (Prelude.Maybe (Value Prelude.Text)),
RuntimeManagementConfigProperty -> Value Text
updateRuntimeOn :: (Value Prelude.Text)}
deriving stock (RuntimeManagementConfigProperty
-> RuntimeManagementConfigProperty -> Bool
(RuntimeManagementConfigProperty
-> RuntimeManagementConfigProperty -> Bool)
-> (RuntimeManagementConfigProperty
-> RuntimeManagementConfigProperty -> Bool)
-> Eq RuntimeManagementConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RuntimeManagementConfigProperty
-> RuntimeManagementConfigProperty -> Bool
== :: RuntimeManagementConfigProperty
-> RuntimeManagementConfigProperty -> Bool
$c/= :: RuntimeManagementConfigProperty
-> RuntimeManagementConfigProperty -> Bool
/= :: RuntimeManagementConfigProperty
-> RuntimeManagementConfigProperty -> Bool
Prelude.Eq, Int -> RuntimeManagementConfigProperty -> ShowS
[RuntimeManagementConfigProperty] -> ShowS
RuntimeManagementConfigProperty -> String
(Int -> RuntimeManagementConfigProperty -> ShowS)
-> (RuntimeManagementConfigProperty -> String)
-> ([RuntimeManagementConfigProperty] -> ShowS)
-> Show RuntimeManagementConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RuntimeManagementConfigProperty -> ShowS
showsPrec :: Int -> RuntimeManagementConfigProperty -> ShowS
$cshow :: RuntimeManagementConfigProperty -> String
show :: RuntimeManagementConfigProperty -> String
$cshowList :: [RuntimeManagementConfigProperty] -> ShowS
showList :: [RuntimeManagementConfigProperty] -> ShowS
Prelude.Show)
mkRuntimeManagementConfigProperty ::
Value Prelude.Text -> RuntimeManagementConfigProperty
mkRuntimeManagementConfigProperty :: Value Text -> RuntimeManagementConfigProperty
mkRuntimeManagementConfigProperty Value Text
updateRuntimeOn
= RuntimeManagementConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), updateRuntimeOn :: Value Text
updateRuntimeOn = Value Text
updateRuntimeOn,
runtimeVersionArn :: Maybe (Value Text)
runtimeVersionArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RuntimeManagementConfigProperty where
toResourceProperties :: RuntimeManagementConfigProperty -> ResourceProperties
toResourceProperties RuntimeManagementConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuntimeManagementConfigProperty -> ()
runtimeVersionArn :: RuntimeManagementConfigProperty -> Maybe (Value Text)
updateRuntimeOn :: RuntimeManagementConfigProperty -> Value Text
haddock_workaround_ :: ()
runtimeVersionArn :: Maybe (Value Text)
updateRuntimeOn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lambda::Function.RuntimeManagementConfig",
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
"UpdateRuntimeOn" 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..= Value Text
updateRuntimeOn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"RuntimeVersionArn" (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)
runtimeVersionArn]))}
instance JSON.ToJSON RuntimeManagementConfigProperty where
toJSON :: RuntimeManagementConfigProperty -> Value
toJSON RuntimeManagementConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuntimeManagementConfigProperty -> ()
runtimeVersionArn :: RuntimeManagementConfigProperty -> Maybe (Value Text)
updateRuntimeOn :: RuntimeManagementConfigProperty -> Value Text
haddock_workaround_ :: ()
runtimeVersionArn :: Maybe (Value Text)
updateRuntimeOn :: Value Text
..}
= [(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
"UpdateRuntimeOn" 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..= Value Text
updateRuntimeOn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"RuntimeVersionArn" (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)
runtimeVersionArn])))
instance Property "RuntimeVersionArn" RuntimeManagementConfigProperty where
type PropertyType "RuntimeVersionArn" RuntimeManagementConfigProperty = Value Prelude.Text
set :: PropertyType "RuntimeVersionArn" RuntimeManagementConfigProperty
-> RuntimeManagementConfigProperty
-> RuntimeManagementConfigProperty
set PropertyType "RuntimeVersionArn" RuntimeManagementConfigProperty
newValue RuntimeManagementConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuntimeManagementConfigProperty -> ()
runtimeVersionArn :: RuntimeManagementConfigProperty -> Maybe (Value Text)
updateRuntimeOn :: RuntimeManagementConfigProperty -> Value Text
haddock_workaround_ :: ()
runtimeVersionArn :: Maybe (Value Text)
updateRuntimeOn :: Value Text
..}
= RuntimeManagementConfigProperty
{runtimeVersionArn :: Maybe (Value Text)
runtimeVersionArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RuntimeVersionArn" RuntimeManagementConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
updateRuntimeOn :: Value Text
haddock_workaround_ :: ()
updateRuntimeOn :: Value Text
..}
instance Property "UpdateRuntimeOn" RuntimeManagementConfigProperty where
type PropertyType "UpdateRuntimeOn" RuntimeManagementConfigProperty = Value Prelude.Text
set :: PropertyType "UpdateRuntimeOn" RuntimeManagementConfigProperty
-> RuntimeManagementConfigProperty
-> RuntimeManagementConfigProperty
set PropertyType "UpdateRuntimeOn" RuntimeManagementConfigProperty
newValue RuntimeManagementConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RuntimeManagementConfigProperty -> ()
runtimeVersionArn :: RuntimeManagementConfigProperty -> Maybe (Value Text)
updateRuntimeOn :: RuntimeManagementConfigProperty -> Value Text
haddock_workaround_ :: ()
runtimeVersionArn :: Maybe (Value Text)
updateRuntimeOn :: Value Text
..}
= RuntimeManagementConfigProperty {updateRuntimeOn :: Value Text
updateRuntimeOn = PropertyType "UpdateRuntimeOn" RuntimeManagementConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
runtimeVersionArn :: Maybe (Value Text)
haddock_workaround_ :: ()
runtimeVersionArn :: Maybe (Value Text)
..}