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