module Stratosphere.Lambda.Function.SnapStartResponseProperty (
        SnapStartResponseProperty(..), mkSnapStartResponseProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SnapStartResponseProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html>
    SnapStartResponseProperty {SnapStartResponseProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html#cfn-lambda-function-snapstartresponse-applyon>
                               SnapStartResponseProperty -> Maybe (Value Text)
applyOn :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html#cfn-lambda-function-snapstartresponse-optimizationstatus>
                               SnapStartResponseProperty -> Maybe (Value Text)
optimizationStatus :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SnapStartResponseProperty -> SnapStartResponseProperty -> Bool
(SnapStartResponseProperty -> SnapStartResponseProperty -> Bool)
-> (SnapStartResponseProperty -> SnapStartResponseProperty -> Bool)
-> Eq SnapStartResponseProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SnapStartResponseProperty -> SnapStartResponseProperty -> Bool
== :: SnapStartResponseProperty -> SnapStartResponseProperty -> Bool
$c/= :: SnapStartResponseProperty -> SnapStartResponseProperty -> Bool
/= :: SnapStartResponseProperty -> SnapStartResponseProperty -> Bool
Prelude.Eq, Int -> SnapStartResponseProperty -> ShowS
[SnapStartResponseProperty] -> ShowS
SnapStartResponseProperty -> String
(Int -> SnapStartResponseProperty -> ShowS)
-> (SnapStartResponseProperty -> String)
-> ([SnapStartResponseProperty] -> ShowS)
-> Show SnapStartResponseProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SnapStartResponseProperty -> ShowS
showsPrec :: Int -> SnapStartResponseProperty -> ShowS
$cshow :: SnapStartResponseProperty -> String
show :: SnapStartResponseProperty -> String
$cshowList :: [SnapStartResponseProperty] -> ShowS
showList :: [SnapStartResponseProperty] -> ShowS
Prelude.Show)
mkSnapStartResponseProperty :: SnapStartResponseProperty
mkSnapStartResponseProperty :: SnapStartResponseProperty
mkSnapStartResponseProperty
  = SnapStartResponseProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), applyOn :: Maybe (Value Text)
applyOn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       optimizationStatus :: Maybe (Value Text)
optimizationStatus = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SnapStartResponseProperty where
  toResourceProperties :: SnapStartResponseProperty -> ResourceProperties
toResourceProperties SnapStartResponseProperty {Maybe (Value Text)
()
haddock_workaround_ :: SnapStartResponseProperty -> ()
applyOn :: SnapStartResponseProperty -> Maybe (Value Text)
optimizationStatus :: SnapStartResponseProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applyOn :: Maybe (Value Text)
optimizationStatus :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lambda::Function.SnapStartResponse",
         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 -> 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
"ApplyOn" (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)
applyOn,
                            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
"OptimizationStatus" (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)
optimizationStatus])}
instance JSON.ToJSON SnapStartResponseProperty where
  toJSON :: SnapStartResponseProperty -> Value
toJSON SnapStartResponseProperty {Maybe (Value Text)
()
haddock_workaround_ :: SnapStartResponseProperty -> ()
applyOn :: SnapStartResponseProperty -> Maybe (Value Text)
optimizationStatus :: SnapStartResponseProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applyOn :: Maybe (Value Text)
optimizationStatus :: 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 -> 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
"ApplyOn" (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)
applyOn,
               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
"OptimizationStatus" (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)
optimizationStatus]))
instance Property "ApplyOn" SnapStartResponseProperty where
  type PropertyType "ApplyOn" SnapStartResponseProperty = Value Prelude.Text
  set :: PropertyType "ApplyOn" SnapStartResponseProperty
-> SnapStartResponseProperty -> SnapStartResponseProperty
set PropertyType "ApplyOn" SnapStartResponseProperty
newValue SnapStartResponseProperty {Maybe (Value Text)
()
haddock_workaround_ :: SnapStartResponseProperty -> ()
applyOn :: SnapStartResponseProperty -> Maybe (Value Text)
optimizationStatus :: SnapStartResponseProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applyOn :: Maybe (Value Text)
optimizationStatus :: Maybe (Value Text)
..}
    = SnapStartResponseProperty {applyOn :: Maybe (Value Text)
applyOn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApplyOn" SnapStartResponseProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
optimizationStatus :: Maybe (Value Text)
haddock_workaround_ :: ()
optimizationStatus :: Maybe (Value Text)
..}
instance Property "OptimizationStatus" SnapStartResponseProperty where
  type PropertyType "OptimizationStatus" SnapStartResponseProperty = Value Prelude.Text
  set :: PropertyType "OptimizationStatus" SnapStartResponseProperty
-> SnapStartResponseProperty -> SnapStartResponseProperty
set PropertyType "OptimizationStatus" SnapStartResponseProperty
newValue SnapStartResponseProperty {Maybe (Value Text)
()
haddock_workaround_ :: SnapStartResponseProperty -> ()
applyOn :: SnapStartResponseProperty -> Maybe (Value Text)
optimizationStatus :: SnapStartResponseProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applyOn :: Maybe (Value Text)
optimizationStatus :: Maybe (Value Text)
..}
    = SnapStartResponseProperty
        {optimizationStatus :: Maybe (Value Text)
optimizationStatus = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OptimizationStatus" SnapStartResponseProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
applyOn :: Maybe (Value Text)
haddock_workaround_ :: ()
applyOn :: Maybe (Value Text)
..}