module Stratosphere.Omics.WorkflowVersion.ImageMappingProperty (
        ImageMappingProperty(..), mkImageMappingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ImageMappingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-workflowversion-imagemapping.html>
    ImageMappingProperty {ImageMappingProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-workflowversion-imagemapping.html#cfn-omics-workflowversion-imagemapping-destinationimage>
                          ImageMappingProperty -> Maybe (Value Text)
destinationImage :: (Prelude.Maybe (Value Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-workflowversion-imagemapping.html#cfn-omics-workflowversion-imagemapping-sourceimage>
                          ImageMappingProperty -> Maybe (Value Text)
sourceImage :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ImageMappingProperty -> ImageMappingProperty -> Bool
(ImageMappingProperty -> ImageMappingProperty -> Bool)
-> (ImageMappingProperty -> ImageMappingProperty -> Bool)
-> Eq ImageMappingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ImageMappingProperty -> ImageMappingProperty -> Bool
== :: ImageMappingProperty -> ImageMappingProperty -> Bool
$c/= :: ImageMappingProperty -> ImageMappingProperty -> Bool
/= :: ImageMappingProperty -> ImageMappingProperty -> Bool
Prelude.Eq, Int -> ImageMappingProperty -> ShowS
[ImageMappingProperty] -> ShowS
ImageMappingProperty -> String
(Int -> ImageMappingProperty -> ShowS)
-> (ImageMappingProperty -> String)
-> ([ImageMappingProperty] -> ShowS)
-> Show ImageMappingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ImageMappingProperty -> ShowS
showsPrec :: Int -> ImageMappingProperty -> ShowS
$cshow :: ImageMappingProperty -> String
show :: ImageMappingProperty -> String
$cshowList :: [ImageMappingProperty] -> ShowS
showList :: [ImageMappingProperty] -> ShowS
Prelude.Show)
mkImageMappingProperty :: ImageMappingProperty
mkImageMappingProperty :: ImageMappingProperty
mkImageMappingProperty
  = ImageMappingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), destinationImage :: Maybe (Value Text)
destinationImage = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       sourceImage :: Maybe (Value Text)
sourceImage = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ImageMappingProperty where
  toResourceProperties :: ImageMappingProperty -> ResourceProperties
toResourceProperties ImageMappingProperty {Maybe (Value Text)
()
haddock_workaround_ :: ImageMappingProperty -> ()
destinationImage :: ImageMappingProperty -> Maybe (Value Text)
sourceImage :: ImageMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destinationImage :: Maybe (Value Text)
sourceImage :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Omics::WorkflowVersion.ImageMapping",
         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
"DestinationImage" (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)
destinationImage,
                            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
"SourceImage" (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)
sourceImage])}
instance JSON.ToJSON ImageMappingProperty where
  toJSON :: ImageMappingProperty -> Value
toJSON ImageMappingProperty {Maybe (Value Text)
()
haddock_workaround_ :: ImageMappingProperty -> ()
destinationImage :: ImageMappingProperty -> Maybe (Value Text)
sourceImage :: ImageMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destinationImage :: Maybe (Value Text)
sourceImage :: 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
"DestinationImage" (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)
destinationImage,
               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
"SourceImage" (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)
sourceImage]))
instance Property "DestinationImage" ImageMappingProperty where
  type PropertyType "DestinationImage" ImageMappingProperty = Value Prelude.Text
  set :: PropertyType "DestinationImage" ImageMappingProperty
-> ImageMappingProperty -> ImageMappingProperty
set PropertyType "DestinationImage" ImageMappingProperty
newValue ImageMappingProperty {Maybe (Value Text)
()
haddock_workaround_ :: ImageMappingProperty -> ()
destinationImage :: ImageMappingProperty -> Maybe (Value Text)
sourceImage :: ImageMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destinationImage :: Maybe (Value Text)
sourceImage :: Maybe (Value Text)
..}
    = ImageMappingProperty
        {destinationImage :: Maybe (Value Text)
destinationImage = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DestinationImage" ImageMappingProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
sourceImage :: Maybe (Value Text)
haddock_workaround_ :: ()
sourceImage :: Maybe (Value Text)
..}
instance Property "SourceImage" ImageMappingProperty where
  type PropertyType "SourceImage" ImageMappingProperty = Value Prelude.Text
  set :: PropertyType "SourceImage" ImageMappingProperty
-> ImageMappingProperty -> ImageMappingProperty
set PropertyType "SourceImage" ImageMappingProperty
newValue ImageMappingProperty {Maybe (Value Text)
()
haddock_workaround_ :: ImageMappingProperty -> ()
destinationImage :: ImageMappingProperty -> Maybe (Value Text)
sourceImage :: ImageMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destinationImage :: Maybe (Value Text)
sourceImage :: Maybe (Value Text)
..}
    = ImageMappingProperty {sourceImage :: Maybe (Value Text)
sourceImage = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SourceImage" ImageMappingProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
destinationImage :: Maybe (Value Text)
haddock_workaround_ :: ()
destinationImage :: Maybe (Value Text)
..}