module Stratosphere.Batch.ComputeEnvironment.LaunchTemplateSpecificationProperty (
module Exports, LaunchTemplateSpecificationProperty(..),
mkLaunchTemplateSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Batch.ComputeEnvironment.LaunchTemplateSpecificationOverrideProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LaunchTemplateSpecificationProperty
=
LaunchTemplateSpecificationProperty {LaunchTemplateSpecificationProperty -> ()
haddock_workaround_ :: (),
LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateId :: (Prelude.Maybe (Value Prelude.Text)),
LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: (Prelude.Maybe (Value Prelude.Text)),
LaunchTemplateSpecificationProperty
-> Maybe [LaunchTemplateSpecificationOverrideProperty]
overrides :: (Prelude.Maybe [LaunchTemplateSpecificationOverrideProperty]),
LaunchTemplateSpecificationProperty -> Maybe (Value Text)
userdataType :: (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_ = (), launchTemplateId :: Maybe (Value Text)
launchTemplateId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
launchTemplateName :: Maybe (Value Text)
launchTemplateName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
overrides = Maybe [LaunchTemplateSpecificationOverrideProperty]
forall a. Maybe a
Prelude.Nothing,
userdataType :: Maybe (Value Text)
userdataType = 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 [LaunchTemplateSpecificationOverrideProperty]
Maybe (Value Text)
()
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
overrides :: LaunchTemplateSpecificationProperty
-> Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Batch::ComputeEnvironment.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
"LaunchTemplateId" (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)
launchTemplateId,
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
"LaunchTemplateName" (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)
launchTemplateName,
Key
-> [LaunchTemplateSpecificationOverrideProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Overrides" ([LaunchTemplateSpecificationOverrideProperty] -> (Key, Value))
-> Maybe [LaunchTemplateSpecificationOverrideProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LaunchTemplateSpecificationOverrideProperty]
overrides,
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
"UserdataType" (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)
userdataType,
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 [LaunchTemplateSpecificationOverrideProperty]
Maybe (Value Text)
()
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
overrides :: LaunchTemplateSpecificationProperty
-> Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: 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
"LaunchTemplateId" (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)
launchTemplateId,
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
"LaunchTemplateName" (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)
launchTemplateName,
Key
-> [LaunchTemplateSpecificationOverrideProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Overrides" ([LaunchTemplateSpecificationOverrideProperty] -> (Key, Value))
-> Maybe [LaunchTemplateSpecificationOverrideProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LaunchTemplateSpecificationOverrideProperty]
overrides,
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
"UserdataType" (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)
userdataType,
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 "LaunchTemplateId" LaunchTemplateSpecificationProperty where
type PropertyType "LaunchTemplateId" LaunchTemplateSpecificationProperty = Value Prelude.Text
set :: PropertyType "LaunchTemplateId" LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
set PropertyType "LaunchTemplateId" LaunchTemplateSpecificationProperty
newValue LaunchTemplateSpecificationProperty {Maybe [LaunchTemplateSpecificationOverrideProperty]
Maybe (Value Text)
()
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
overrides :: LaunchTemplateSpecificationProperty
-> Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
= LaunchTemplateSpecificationProperty
{launchTemplateId :: Maybe (Value Text)
launchTemplateId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LaunchTemplateId" LaunchTemplateSpecificationProperty
Value Text
newValue, Maybe [LaunchTemplateSpecificationOverrideProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: Maybe (Value Text)
version :: Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
instance Property "LaunchTemplateName" LaunchTemplateSpecificationProperty where
type PropertyType "LaunchTemplateName" LaunchTemplateSpecificationProperty = Value Prelude.Text
set :: PropertyType
"LaunchTemplateName" LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
set PropertyType
"LaunchTemplateName" LaunchTemplateSpecificationProperty
newValue LaunchTemplateSpecificationProperty {Maybe [LaunchTemplateSpecificationOverrideProperty]
Maybe (Value Text)
()
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
overrides :: LaunchTemplateSpecificationProperty
-> Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
= LaunchTemplateSpecificationProperty
{launchTemplateName :: Maybe (Value Text)
launchTemplateName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"LaunchTemplateName" LaunchTemplateSpecificationProperty
Value Text
newValue, Maybe [LaunchTemplateSpecificationOverrideProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: Maybe (Value Text)
version :: Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
instance Property "Overrides" LaunchTemplateSpecificationProperty where
type PropertyType "Overrides" LaunchTemplateSpecificationProperty = [LaunchTemplateSpecificationOverrideProperty]
set :: PropertyType "Overrides" LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
set PropertyType "Overrides" LaunchTemplateSpecificationProperty
newValue LaunchTemplateSpecificationProperty {Maybe [LaunchTemplateSpecificationOverrideProperty]
Maybe (Value Text)
()
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
overrides :: LaunchTemplateSpecificationProperty
-> Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
= LaunchTemplateSpecificationProperty
{overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
overrides = [LaunchTemplateSpecificationOverrideProperty]
-> Maybe [LaunchTemplateSpecificationOverrideProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [LaunchTemplateSpecificationOverrideProperty]
PropertyType "Overrides" LaunchTemplateSpecificationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
userdataType :: Maybe (Value Text)
version :: Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
userdataType :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
instance Property "UserdataType" LaunchTemplateSpecificationProperty where
type PropertyType "UserdataType" LaunchTemplateSpecificationProperty = Value Prelude.Text
set :: PropertyType "UserdataType" LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
set PropertyType "UserdataType" LaunchTemplateSpecificationProperty
newValue LaunchTemplateSpecificationProperty {Maybe [LaunchTemplateSpecificationOverrideProperty]
Maybe (Value Text)
()
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
overrides :: LaunchTemplateSpecificationProperty
-> Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
= LaunchTemplateSpecificationProperty
{userdataType :: Maybe (Value Text)
userdataType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UserdataType" LaunchTemplateSpecificationProperty
Value Text
newValue, Maybe [LaunchTemplateSpecificationOverrideProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
version :: Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
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 [LaunchTemplateSpecificationOverrideProperty]
Maybe (Value Text)
()
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
overrides :: LaunchTemplateSpecificationProperty
-> Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: 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 [LaunchTemplateSpecificationOverrideProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
overrides :: Maybe [LaunchTemplateSpecificationOverrideProperty]
userdataType :: Maybe (Value Text)
..}