module Stratosphere.ImageBuilder.LifecyclePolicy.LastLaunchedProperty (
LastLaunchedProperty(..), mkLastLaunchedProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LastLaunchedProperty
=
LastLaunchedProperty {LastLaunchedProperty -> ()
haddock_workaround_ :: (),
LastLaunchedProperty -> Value Text
unit :: (Value Prelude.Text),
LastLaunchedProperty -> Value Integer
value :: (Value Prelude.Integer)}
deriving stock (LastLaunchedProperty -> LastLaunchedProperty -> Bool
(LastLaunchedProperty -> LastLaunchedProperty -> Bool)
-> (LastLaunchedProperty -> LastLaunchedProperty -> Bool)
-> Eq LastLaunchedProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LastLaunchedProperty -> LastLaunchedProperty -> Bool
== :: LastLaunchedProperty -> LastLaunchedProperty -> Bool
$c/= :: LastLaunchedProperty -> LastLaunchedProperty -> Bool
/= :: LastLaunchedProperty -> LastLaunchedProperty -> Bool
Prelude.Eq, Int -> LastLaunchedProperty -> ShowS
[LastLaunchedProperty] -> ShowS
LastLaunchedProperty -> String
(Int -> LastLaunchedProperty -> ShowS)
-> (LastLaunchedProperty -> String)
-> ([LastLaunchedProperty] -> ShowS)
-> Show LastLaunchedProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LastLaunchedProperty -> ShowS
showsPrec :: Int -> LastLaunchedProperty -> ShowS
$cshow :: LastLaunchedProperty -> String
show :: LastLaunchedProperty -> String
$cshowList :: [LastLaunchedProperty] -> ShowS
showList :: [LastLaunchedProperty] -> ShowS
Prelude.Show)
mkLastLaunchedProperty ::
Value Prelude.Text -> Value Prelude.Integer -> LastLaunchedProperty
mkLastLaunchedProperty :: Value Text -> Value Integer -> LastLaunchedProperty
mkLastLaunchedProperty Value Text
unit Value Integer
value
= LastLaunchedProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), unit :: Value Text
unit = Value Text
unit, value :: Value Integer
value = Value Integer
value}
instance ToResourceProperties LastLaunchedProperty where
toResourceProperties :: LastLaunchedProperty -> ResourceProperties
toResourceProperties LastLaunchedProperty {()
Value Integer
Value Text
haddock_workaround_ :: LastLaunchedProperty -> ()
unit :: LastLaunchedProperty -> Value Text
value :: LastLaunchedProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ImageBuilder::LifecyclePolicy.LastLaunched",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Unit" 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
unit, Key
"Value" 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..= Value Integer
value]}
instance JSON.ToJSON LastLaunchedProperty where
toJSON :: LastLaunchedProperty -> Value
toJSON LastLaunchedProperty {()
Value Integer
Value Text
haddock_workaround_ :: LastLaunchedProperty -> ()
unit :: LastLaunchedProperty -> Value Text
value :: LastLaunchedProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Unit" 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
unit, Key
"Value" 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..= Value Integer
value]
instance Property "Unit" LastLaunchedProperty where
type PropertyType "Unit" LastLaunchedProperty = Value Prelude.Text
set :: PropertyType "Unit" LastLaunchedProperty
-> LastLaunchedProperty -> LastLaunchedProperty
set PropertyType "Unit" LastLaunchedProperty
newValue LastLaunchedProperty {()
Value Integer
Value Text
haddock_workaround_ :: LastLaunchedProperty -> ()
unit :: LastLaunchedProperty -> Value Text
value :: LastLaunchedProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= LastLaunchedProperty {unit :: Value Text
unit = PropertyType "Unit" LastLaunchedProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
value :: Value Integer
haddock_workaround_ :: ()
value :: Value Integer
..}
instance Property "Value" LastLaunchedProperty where
type PropertyType "Value" LastLaunchedProperty = Value Prelude.Integer
set :: PropertyType "Value" LastLaunchedProperty
-> LastLaunchedProperty -> LastLaunchedProperty
set PropertyType "Value" LastLaunchedProperty
newValue LastLaunchedProperty {()
Value Integer
Value Text
haddock_workaround_ :: LastLaunchedProperty -> ()
unit :: LastLaunchedProperty -> Value Text
value :: LastLaunchedProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= LastLaunchedProperty {value :: Value Integer
value = PropertyType "Value" LastLaunchedProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
unit :: Value Text
haddock_workaround_ :: ()
unit :: Value Text
..}