module Stratosphere.EMRServerless.Application.ImageConfigurationInputProperty (
        ImageConfigurationInputProperty(..),
        mkImageConfigurationInputProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ImageConfigurationInputProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-imageconfigurationinput.html>
    ImageConfigurationInputProperty {ImageConfigurationInputProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-imageconfigurationinput.html#cfn-emrserverless-application-imageconfigurationinput-imageuri>
                                     ImageConfigurationInputProperty -> Maybe (Value Text)
imageUri :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ImageConfigurationInputProperty
-> ImageConfigurationInputProperty -> Bool
(ImageConfigurationInputProperty
 -> ImageConfigurationInputProperty -> Bool)
-> (ImageConfigurationInputProperty
    -> ImageConfigurationInputProperty -> Bool)
-> Eq ImageConfigurationInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ImageConfigurationInputProperty
-> ImageConfigurationInputProperty -> Bool
== :: ImageConfigurationInputProperty
-> ImageConfigurationInputProperty -> Bool
$c/= :: ImageConfigurationInputProperty
-> ImageConfigurationInputProperty -> Bool
/= :: ImageConfigurationInputProperty
-> ImageConfigurationInputProperty -> Bool
Prelude.Eq, Int -> ImageConfigurationInputProperty -> ShowS
[ImageConfigurationInputProperty] -> ShowS
ImageConfigurationInputProperty -> String
(Int -> ImageConfigurationInputProperty -> ShowS)
-> (ImageConfigurationInputProperty -> String)
-> ([ImageConfigurationInputProperty] -> ShowS)
-> Show ImageConfigurationInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ImageConfigurationInputProperty -> ShowS
showsPrec :: Int -> ImageConfigurationInputProperty -> ShowS
$cshow :: ImageConfigurationInputProperty -> String
show :: ImageConfigurationInputProperty -> String
$cshowList :: [ImageConfigurationInputProperty] -> ShowS
showList :: [ImageConfigurationInputProperty] -> ShowS
Prelude.Show)
mkImageConfigurationInputProperty ::
  ImageConfigurationInputProperty
mkImageConfigurationInputProperty :: ImageConfigurationInputProperty
mkImageConfigurationInputProperty
  = ImageConfigurationInputProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), imageUri :: Maybe (Value Text)
imageUri = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ImageConfigurationInputProperty where
  toResourceProperties :: ImageConfigurationInputProperty -> ResourceProperties
toResourceProperties ImageConfigurationInputProperty {Maybe (Value Text)
()
haddock_workaround_ :: ImageConfigurationInputProperty -> ()
imageUri :: ImageConfigurationInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
imageUri :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EMRServerless::Application.ImageConfigurationInput",
         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
"ImageUri" (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)
imageUri])}
instance JSON.ToJSON ImageConfigurationInputProperty where
  toJSON :: ImageConfigurationInputProperty -> Value
toJSON ImageConfigurationInputProperty {Maybe (Value Text)
()
haddock_workaround_ :: ImageConfigurationInputProperty -> ()
imageUri :: ImageConfigurationInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
imageUri :: 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
"ImageUri" (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)
imageUri]))
instance Property "ImageUri" ImageConfigurationInputProperty where
  type PropertyType "ImageUri" ImageConfigurationInputProperty = Value Prelude.Text
  set :: PropertyType "ImageUri" ImageConfigurationInputProperty
-> ImageConfigurationInputProperty
-> ImageConfigurationInputProperty
set PropertyType "ImageUri" ImageConfigurationInputProperty
newValue ImageConfigurationInputProperty {Maybe (Value Text)
()
haddock_workaround_ :: ImageConfigurationInputProperty -> ()
imageUri :: ImageConfigurationInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
imageUri :: Maybe (Value Text)
..}
    = ImageConfigurationInputProperty
        {imageUri :: Maybe (Value Text)
imageUri = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ImageUri" ImageConfigurationInputProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}