module Stratosphere.EMRServerless.Application.WorkerTypeSpecificationInputProperty (
module Exports, WorkerTypeSpecificationInputProperty(..),
mkWorkerTypeSpecificationInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EMRServerless.Application.ImageConfigurationInputProperty as Exports
import Stratosphere.ResourceProperties
data WorkerTypeSpecificationInputProperty
=
WorkerTypeSpecificationInputProperty {WorkerTypeSpecificationInputProperty -> ()
haddock_workaround_ :: (),
WorkerTypeSpecificationInputProperty
-> Maybe ImageConfigurationInputProperty
imageConfiguration :: (Prelude.Maybe ImageConfigurationInputProperty)}
deriving stock (WorkerTypeSpecificationInputProperty
-> WorkerTypeSpecificationInputProperty -> Bool
(WorkerTypeSpecificationInputProperty
-> WorkerTypeSpecificationInputProperty -> Bool)
-> (WorkerTypeSpecificationInputProperty
-> WorkerTypeSpecificationInputProperty -> Bool)
-> Eq WorkerTypeSpecificationInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WorkerTypeSpecificationInputProperty
-> WorkerTypeSpecificationInputProperty -> Bool
== :: WorkerTypeSpecificationInputProperty
-> WorkerTypeSpecificationInputProperty -> Bool
$c/= :: WorkerTypeSpecificationInputProperty
-> WorkerTypeSpecificationInputProperty -> Bool
/= :: WorkerTypeSpecificationInputProperty
-> WorkerTypeSpecificationInputProperty -> Bool
Prelude.Eq, Int -> WorkerTypeSpecificationInputProperty -> ShowS
[WorkerTypeSpecificationInputProperty] -> ShowS
WorkerTypeSpecificationInputProperty -> String
(Int -> WorkerTypeSpecificationInputProperty -> ShowS)
-> (WorkerTypeSpecificationInputProperty -> String)
-> ([WorkerTypeSpecificationInputProperty] -> ShowS)
-> Show WorkerTypeSpecificationInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WorkerTypeSpecificationInputProperty -> ShowS
showsPrec :: Int -> WorkerTypeSpecificationInputProperty -> ShowS
$cshow :: WorkerTypeSpecificationInputProperty -> String
show :: WorkerTypeSpecificationInputProperty -> String
$cshowList :: [WorkerTypeSpecificationInputProperty] -> ShowS
showList :: [WorkerTypeSpecificationInputProperty] -> ShowS
Prelude.Show)
mkWorkerTypeSpecificationInputProperty ::
WorkerTypeSpecificationInputProperty
mkWorkerTypeSpecificationInputProperty :: WorkerTypeSpecificationInputProperty
mkWorkerTypeSpecificationInputProperty
= WorkerTypeSpecificationInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), imageConfiguration :: Maybe ImageConfigurationInputProperty
imageConfiguration = Maybe ImageConfigurationInputProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties WorkerTypeSpecificationInputProperty where
toResourceProperties :: WorkerTypeSpecificationInputProperty -> ResourceProperties
toResourceProperties WorkerTypeSpecificationInputProperty {Maybe ImageConfigurationInputProperty
()
haddock_workaround_ :: WorkerTypeSpecificationInputProperty -> ()
imageConfiguration :: WorkerTypeSpecificationInputProperty
-> Maybe ImageConfigurationInputProperty
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationInputProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EMRServerless::Application.WorkerTypeSpecificationInput",
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 -> ImageConfigurationInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImageConfiguration" (ImageConfigurationInputProperty -> (Key, Value))
-> Maybe ImageConfigurationInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ImageConfigurationInputProperty
imageConfiguration])}
instance JSON.ToJSON WorkerTypeSpecificationInputProperty where
toJSON :: WorkerTypeSpecificationInputProperty -> Value
toJSON WorkerTypeSpecificationInputProperty {Maybe ImageConfigurationInputProperty
()
haddock_workaround_ :: WorkerTypeSpecificationInputProperty -> ()
imageConfiguration :: WorkerTypeSpecificationInputProperty
-> Maybe ImageConfigurationInputProperty
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationInputProperty
..}
= [(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 -> ImageConfigurationInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImageConfiguration" (ImageConfigurationInputProperty -> (Key, Value))
-> Maybe ImageConfigurationInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ImageConfigurationInputProperty
imageConfiguration]))
instance Property "ImageConfiguration" WorkerTypeSpecificationInputProperty where
type PropertyType "ImageConfiguration" WorkerTypeSpecificationInputProperty = ImageConfigurationInputProperty
set :: PropertyType
"ImageConfiguration" WorkerTypeSpecificationInputProperty
-> WorkerTypeSpecificationInputProperty
-> WorkerTypeSpecificationInputProperty
set PropertyType
"ImageConfiguration" WorkerTypeSpecificationInputProperty
newValue WorkerTypeSpecificationInputProperty {Maybe ImageConfigurationInputProperty
()
haddock_workaround_ :: WorkerTypeSpecificationInputProperty -> ()
imageConfiguration :: WorkerTypeSpecificationInputProperty
-> Maybe ImageConfigurationInputProperty
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationInputProperty
..}
= WorkerTypeSpecificationInputProperty
{imageConfiguration :: Maybe ImageConfigurationInputProperty
imageConfiguration = ImageConfigurationInputProperty
-> Maybe ImageConfigurationInputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ImageConfiguration" WorkerTypeSpecificationInputProperty
ImageConfigurationInputProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}