module Stratosphere.EMR.Step.HadoopJarStepConfigProperty (
module Exports, HadoopJarStepConfigProperty(..),
mkHadoopJarStepConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EMR.Step.KeyValueProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HadoopJarStepConfigProperty
=
HadoopJarStepConfigProperty {HadoopJarStepConfigProperty -> ()
haddock_workaround_ :: (),
HadoopJarStepConfigProperty -> Maybe (ValueList Text)
args :: (Prelude.Maybe (ValueList Prelude.Text)),
HadoopJarStepConfigProperty -> Value Text
jar :: (Value Prelude.Text),
HadoopJarStepConfigProperty -> Maybe (Value Text)
mainClass :: (Prelude.Maybe (Value Prelude.Text)),
HadoopJarStepConfigProperty -> Maybe [KeyValueProperty]
stepProperties :: (Prelude.Maybe [KeyValueProperty])}
deriving stock (HadoopJarStepConfigProperty -> HadoopJarStepConfigProperty -> Bool
(HadoopJarStepConfigProperty
-> HadoopJarStepConfigProperty -> Bool)
-> (HadoopJarStepConfigProperty
-> HadoopJarStepConfigProperty -> Bool)
-> Eq HadoopJarStepConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HadoopJarStepConfigProperty -> HadoopJarStepConfigProperty -> Bool
== :: HadoopJarStepConfigProperty -> HadoopJarStepConfigProperty -> Bool
$c/= :: HadoopJarStepConfigProperty -> HadoopJarStepConfigProperty -> Bool
/= :: HadoopJarStepConfigProperty -> HadoopJarStepConfigProperty -> Bool
Prelude.Eq, Int -> HadoopJarStepConfigProperty -> ShowS
[HadoopJarStepConfigProperty] -> ShowS
HadoopJarStepConfigProperty -> String
(Int -> HadoopJarStepConfigProperty -> ShowS)
-> (HadoopJarStepConfigProperty -> String)
-> ([HadoopJarStepConfigProperty] -> ShowS)
-> Show HadoopJarStepConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HadoopJarStepConfigProperty -> ShowS
showsPrec :: Int -> HadoopJarStepConfigProperty -> ShowS
$cshow :: HadoopJarStepConfigProperty -> String
show :: HadoopJarStepConfigProperty -> String
$cshowList :: [HadoopJarStepConfigProperty] -> ShowS
showList :: [HadoopJarStepConfigProperty] -> ShowS
Prelude.Show)
mkHadoopJarStepConfigProperty ::
Value Prelude.Text -> HadoopJarStepConfigProperty
mkHadoopJarStepConfigProperty :: Value Text -> HadoopJarStepConfigProperty
mkHadoopJarStepConfigProperty Value Text
jar
= HadoopJarStepConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), jar :: Value Text
jar = Value Text
jar, args :: Maybe (ValueList Text)
args = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
mainClass :: Maybe (Value Text)
mainClass = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, stepProperties :: Maybe [KeyValueProperty]
stepProperties = Maybe [KeyValueProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties HadoopJarStepConfigProperty where
toResourceProperties :: HadoopJarStepConfigProperty -> ResourceProperties
toResourceProperties HadoopJarStepConfigProperty {Maybe [KeyValueProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HadoopJarStepConfigProperty -> ()
args :: HadoopJarStepConfigProperty -> Maybe (ValueList Text)
jar :: HadoopJarStepConfigProperty -> Value Text
mainClass :: HadoopJarStepConfigProperty -> Maybe (Value Text)
stepProperties :: HadoopJarStepConfigProperty -> Maybe [KeyValueProperty]
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
jar :: Value Text
mainClass :: Maybe (Value Text)
stepProperties :: Maybe [KeyValueProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EMR::Step.HadoopJarStepConfig",
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
"Jar" 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
jar]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"Args" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
args,
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
"MainClass" (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)
mainClass,
Key -> [KeyValueProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StepProperties" ([KeyValueProperty] -> (Key, Value))
-> Maybe [KeyValueProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [KeyValueProperty]
stepProperties]))}
instance JSON.ToJSON HadoopJarStepConfigProperty where
toJSON :: HadoopJarStepConfigProperty -> Value
toJSON HadoopJarStepConfigProperty {Maybe [KeyValueProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HadoopJarStepConfigProperty -> ()
args :: HadoopJarStepConfigProperty -> Maybe (ValueList Text)
jar :: HadoopJarStepConfigProperty -> Value Text
mainClass :: HadoopJarStepConfigProperty -> Maybe (Value Text)
stepProperties :: HadoopJarStepConfigProperty -> Maybe [KeyValueProperty]
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
jar :: Value Text
mainClass :: Maybe (Value Text)
stepProperties :: Maybe [KeyValueProperty]
..}
= [(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
"Jar" 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
jar]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"Args" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
args,
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
"MainClass" (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)
mainClass,
Key -> [KeyValueProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StepProperties" ([KeyValueProperty] -> (Key, Value))
-> Maybe [KeyValueProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [KeyValueProperty]
stepProperties])))
instance Property "Args" HadoopJarStepConfigProperty where
type PropertyType "Args" HadoopJarStepConfigProperty = ValueList Prelude.Text
set :: PropertyType "Args" HadoopJarStepConfigProperty
-> HadoopJarStepConfigProperty -> HadoopJarStepConfigProperty
set PropertyType "Args" HadoopJarStepConfigProperty
newValue HadoopJarStepConfigProperty {Maybe [KeyValueProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HadoopJarStepConfigProperty -> ()
args :: HadoopJarStepConfigProperty -> Maybe (ValueList Text)
jar :: HadoopJarStepConfigProperty -> Value Text
mainClass :: HadoopJarStepConfigProperty -> Maybe (Value Text)
stepProperties :: HadoopJarStepConfigProperty -> Maybe [KeyValueProperty]
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
jar :: Value Text
mainClass :: Maybe (Value Text)
stepProperties :: Maybe [KeyValueProperty]
..}
= HadoopJarStepConfigProperty {args :: Maybe (ValueList Text)
args = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Args" HadoopJarStepConfigProperty
ValueList Text
newValue, Maybe [KeyValueProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
jar :: Value Text
mainClass :: Maybe (Value Text)
stepProperties :: Maybe [KeyValueProperty]
haddock_workaround_ :: ()
jar :: Value Text
mainClass :: Maybe (Value Text)
stepProperties :: Maybe [KeyValueProperty]
..}
instance Property "Jar" HadoopJarStepConfigProperty where
type PropertyType "Jar" HadoopJarStepConfigProperty = Value Prelude.Text
set :: PropertyType "Jar" HadoopJarStepConfigProperty
-> HadoopJarStepConfigProperty -> HadoopJarStepConfigProperty
set PropertyType "Jar" HadoopJarStepConfigProperty
newValue HadoopJarStepConfigProperty {Maybe [KeyValueProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HadoopJarStepConfigProperty -> ()
args :: HadoopJarStepConfigProperty -> Maybe (ValueList Text)
jar :: HadoopJarStepConfigProperty -> Value Text
mainClass :: HadoopJarStepConfigProperty -> Maybe (Value Text)
stepProperties :: HadoopJarStepConfigProperty -> Maybe [KeyValueProperty]
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
jar :: Value Text
mainClass :: Maybe (Value Text)
stepProperties :: Maybe [KeyValueProperty]
..}
= HadoopJarStepConfigProperty {jar :: Value Text
jar = PropertyType "Jar" HadoopJarStepConfigProperty
Value Text
newValue, Maybe [KeyValueProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
mainClass :: Maybe (Value Text)
stepProperties :: Maybe [KeyValueProperty]
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
mainClass :: Maybe (Value Text)
stepProperties :: Maybe [KeyValueProperty]
..}
instance Property "MainClass" HadoopJarStepConfigProperty where
type PropertyType "MainClass" HadoopJarStepConfigProperty = Value Prelude.Text
set :: PropertyType "MainClass" HadoopJarStepConfigProperty
-> HadoopJarStepConfigProperty -> HadoopJarStepConfigProperty
set PropertyType "MainClass" HadoopJarStepConfigProperty
newValue HadoopJarStepConfigProperty {Maybe [KeyValueProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HadoopJarStepConfigProperty -> ()
args :: HadoopJarStepConfigProperty -> Maybe (ValueList Text)
jar :: HadoopJarStepConfigProperty -> Value Text
mainClass :: HadoopJarStepConfigProperty -> Maybe (Value Text)
stepProperties :: HadoopJarStepConfigProperty -> Maybe [KeyValueProperty]
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
jar :: Value Text
mainClass :: Maybe (Value Text)
stepProperties :: Maybe [KeyValueProperty]
..}
= HadoopJarStepConfigProperty
{mainClass :: Maybe (Value Text)
mainClass = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MainClass" HadoopJarStepConfigProperty
Value Text
newValue, Maybe [KeyValueProperty]
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
jar :: Value Text
stepProperties :: Maybe [KeyValueProperty]
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
jar :: Value Text
stepProperties :: Maybe [KeyValueProperty]
..}
instance Property "StepProperties" HadoopJarStepConfigProperty where
type PropertyType "StepProperties" HadoopJarStepConfigProperty = [KeyValueProperty]
set :: PropertyType "StepProperties" HadoopJarStepConfigProperty
-> HadoopJarStepConfigProperty -> HadoopJarStepConfigProperty
set PropertyType "StepProperties" HadoopJarStepConfigProperty
newValue HadoopJarStepConfigProperty {Maybe [KeyValueProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HadoopJarStepConfigProperty -> ()
args :: HadoopJarStepConfigProperty -> Maybe (ValueList Text)
jar :: HadoopJarStepConfigProperty -> Value Text
mainClass :: HadoopJarStepConfigProperty -> Maybe (Value Text)
stepProperties :: HadoopJarStepConfigProperty -> Maybe [KeyValueProperty]
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
jar :: Value Text
mainClass :: Maybe (Value Text)
stepProperties :: Maybe [KeyValueProperty]
..}
= HadoopJarStepConfigProperty
{stepProperties :: Maybe [KeyValueProperty]
stepProperties = [KeyValueProperty] -> Maybe [KeyValueProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [KeyValueProperty]
PropertyType "StepProperties" HadoopJarStepConfigProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
jar :: Value Text
mainClass :: Maybe (Value Text)
haddock_workaround_ :: ()
args :: Maybe (ValueList Text)
jar :: Value Text
mainClass :: Maybe (Value Text)
..}