module Stratosphere.PCS.ComputeNodeGroup.CustomLaunchTemplateProperty (
CustomLaunchTemplateProperty(..), mkCustomLaunchTemplateProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomLaunchTemplateProperty
=
CustomLaunchTemplateProperty {CustomLaunchTemplateProperty -> ()
haddock_workaround_ :: (),
CustomLaunchTemplateProperty -> Maybe (Value Text)
templateId :: (Prelude.Maybe (Value Prelude.Text)),
CustomLaunchTemplateProperty -> Value Text
version :: (Value Prelude.Text)}
deriving stock (CustomLaunchTemplateProperty
-> CustomLaunchTemplateProperty -> Bool
(CustomLaunchTemplateProperty
-> CustomLaunchTemplateProperty -> Bool)
-> (CustomLaunchTemplateProperty
-> CustomLaunchTemplateProperty -> Bool)
-> Eq CustomLaunchTemplateProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomLaunchTemplateProperty
-> CustomLaunchTemplateProperty -> Bool
== :: CustomLaunchTemplateProperty
-> CustomLaunchTemplateProperty -> Bool
$c/= :: CustomLaunchTemplateProperty
-> CustomLaunchTemplateProperty -> Bool
/= :: CustomLaunchTemplateProperty
-> CustomLaunchTemplateProperty -> Bool
Prelude.Eq, Int -> CustomLaunchTemplateProperty -> ShowS
[CustomLaunchTemplateProperty] -> ShowS
CustomLaunchTemplateProperty -> String
(Int -> CustomLaunchTemplateProperty -> ShowS)
-> (CustomLaunchTemplateProperty -> String)
-> ([CustomLaunchTemplateProperty] -> ShowS)
-> Show CustomLaunchTemplateProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomLaunchTemplateProperty -> ShowS
showsPrec :: Int -> CustomLaunchTemplateProperty -> ShowS
$cshow :: CustomLaunchTemplateProperty -> String
show :: CustomLaunchTemplateProperty -> String
$cshowList :: [CustomLaunchTemplateProperty] -> ShowS
showList :: [CustomLaunchTemplateProperty] -> ShowS
Prelude.Show)
mkCustomLaunchTemplateProperty ::
Value Prelude.Text -> CustomLaunchTemplateProperty
mkCustomLaunchTemplateProperty :: Value Text -> CustomLaunchTemplateProperty
mkCustomLaunchTemplateProperty Value Text
version
= CustomLaunchTemplateProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), version :: Value Text
version = Value Text
version,
templateId :: Maybe (Value Text)
templateId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomLaunchTemplateProperty where
toResourceProperties :: CustomLaunchTemplateProperty -> ResourceProperties
toResourceProperties CustomLaunchTemplateProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomLaunchTemplateProperty -> ()
templateId :: CustomLaunchTemplateProperty -> Maybe (Value Text)
version :: CustomLaunchTemplateProperty -> Value Text
haddock_workaround_ :: ()
templateId :: Maybe (Value Text)
version :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::PCS::ComputeNodeGroup.CustomLaunchTemplate",
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
"Version" 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
version]
([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
"TemplateId" (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)
templateId]))}
instance JSON.ToJSON CustomLaunchTemplateProperty where
toJSON :: CustomLaunchTemplateProperty -> Value
toJSON CustomLaunchTemplateProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomLaunchTemplateProperty -> ()
templateId :: CustomLaunchTemplateProperty -> Maybe (Value Text)
version :: CustomLaunchTemplateProperty -> Value Text
haddock_workaround_ :: ()
templateId :: Maybe (Value Text)
version :: 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
"Version" 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
version]
([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
"TemplateId" (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)
templateId])))
instance Property "TemplateId" CustomLaunchTemplateProperty where
type PropertyType "TemplateId" CustomLaunchTemplateProperty = Value Prelude.Text
set :: PropertyType "TemplateId" CustomLaunchTemplateProperty
-> CustomLaunchTemplateProperty -> CustomLaunchTemplateProperty
set PropertyType "TemplateId" CustomLaunchTemplateProperty
newValue CustomLaunchTemplateProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomLaunchTemplateProperty -> ()
templateId :: CustomLaunchTemplateProperty -> Maybe (Value Text)
version :: CustomLaunchTemplateProperty -> Value Text
haddock_workaround_ :: ()
templateId :: Maybe (Value Text)
version :: Value Text
..}
= CustomLaunchTemplateProperty
{templateId :: Maybe (Value Text)
templateId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TemplateId" CustomLaunchTemplateProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
version :: Value Text
haddock_workaround_ :: ()
version :: Value Text
..}
instance Property "Version" CustomLaunchTemplateProperty where
type PropertyType "Version" CustomLaunchTemplateProperty = Value Prelude.Text
set :: PropertyType "Version" CustomLaunchTemplateProperty
-> CustomLaunchTemplateProperty -> CustomLaunchTemplateProperty
set PropertyType "Version" CustomLaunchTemplateProperty
newValue CustomLaunchTemplateProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomLaunchTemplateProperty -> ()
templateId :: CustomLaunchTemplateProperty -> Maybe (Value Text)
version :: CustomLaunchTemplateProperty -> Value Text
haddock_workaround_ :: ()
templateId :: Maybe (Value Text)
version :: Value Text
..}
= CustomLaunchTemplateProperty {version :: Value Text
version = PropertyType "Version" CustomLaunchTemplateProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
templateId :: Maybe (Value Text)
haddock_workaround_ :: ()
templateId :: Maybe (Value Text)
..}