module Stratosphere.Omics.RunGroup (
        RunGroup(..), mkRunGroup
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RunGroup
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-rungroup.html>
    RunGroup {RunGroup -> ()
haddock_workaround_ :: (),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-rungroup.html#cfn-omics-rungroup-maxcpus>
              RunGroup -> Maybe (Value Double)
maxCpus :: (Prelude.Maybe (Value Prelude.Double)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-rungroup.html#cfn-omics-rungroup-maxduration>
              RunGroup -> Maybe (Value Double)
maxDuration :: (Prelude.Maybe (Value Prelude.Double)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-rungroup.html#cfn-omics-rungroup-maxgpus>
              RunGroup -> Maybe (Value Double)
maxGpus :: (Prelude.Maybe (Value Prelude.Double)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-rungroup.html#cfn-omics-rungroup-maxruns>
              RunGroup -> Maybe (Value Double)
maxRuns :: (Prelude.Maybe (Value Prelude.Double)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-rungroup.html#cfn-omics-rungroup-name>
              RunGroup -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-omics-rungroup.html#cfn-omics-rungroup-tags>
              RunGroup -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (RunGroup -> RunGroup -> Bool
(RunGroup -> RunGroup -> Bool)
-> (RunGroup -> RunGroup -> Bool) -> Eq RunGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RunGroup -> RunGroup -> Bool
== :: RunGroup -> RunGroup -> Bool
$c/= :: RunGroup -> RunGroup -> Bool
/= :: RunGroup -> RunGroup -> Bool
Prelude.Eq, Int -> RunGroup -> ShowS
[RunGroup] -> ShowS
RunGroup -> String
(Int -> RunGroup -> ShowS)
-> (RunGroup -> String) -> ([RunGroup] -> ShowS) -> Show RunGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RunGroup -> ShowS
showsPrec :: Int -> RunGroup -> ShowS
$cshow :: RunGroup -> String
show :: RunGroup -> String
$cshowList :: [RunGroup] -> ShowS
showList :: [RunGroup] -> ShowS
Prelude.Show)
mkRunGroup :: RunGroup
mkRunGroup :: RunGroup
mkRunGroup
  = RunGroup
      {haddock_workaround_ :: ()
haddock_workaround_ = (), maxCpus :: Maybe (Value Double)
maxCpus = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       maxDuration :: Maybe (Value Double)
maxDuration = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, maxGpus :: Maybe (Value Double)
maxGpus = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       maxRuns :: Maybe (Value Double)
maxRuns = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RunGroup where
  toResourceProperties :: RunGroup -> ResourceProperties
toResourceProperties RunGroup {Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: RunGroup -> ()
maxCpus :: RunGroup -> Maybe (Value Double)
maxDuration :: RunGroup -> Maybe (Value Double)
maxGpus :: RunGroup -> Maybe (Value Double)
maxRuns :: RunGroup -> Maybe (Value Double)
name :: RunGroup -> Maybe (Value Text)
tags :: RunGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Omics::RunGroup", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxCpus" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxCpus,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxDuration" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxDuration,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxGpus" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxGpus,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxRuns" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxRuns,
                            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
"Name" (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)
name,
                            Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])}
instance JSON.ToJSON RunGroup where
  toJSON :: RunGroup -> Value
toJSON RunGroup {Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: RunGroup -> ()
maxCpus :: RunGroup -> Maybe (Value Double)
maxDuration :: RunGroup -> Maybe (Value Double)
maxGpus :: RunGroup -> Maybe (Value Double)
maxRuns :: RunGroup -> Maybe (Value Double)
name :: RunGroup -> Maybe (Value Text)
tags :: RunGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxCpus" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxCpus,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxDuration" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxDuration,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxGpus" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxGpus,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxRuns" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maxRuns,
               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
"Name" (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)
name,
               Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))
instance Property "MaxCpus" RunGroup where
  type PropertyType "MaxCpus" RunGroup = Value Prelude.Double
  set :: PropertyType "MaxCpus" RunGroup -> RunGroup -> RunGroup
set PropertyType "MaxCpus" RunGroup
newValue RunGroup {Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: RunGroup -> ()
maxCpus :: RunGroup -> Maybe (Value Double)
maxDuration :: RunGroup -> Maybe (Value Double)
maxGpus :: RunGroup -> Maybe (Value Double)
maxRuns :: RunGroup -> Maybe (Value Double)
name :: RunGroup -> Maybe (Value Text)
tags :: RunGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = RunGroup {maxCpus :: Maybe (Value Double)
maxCpus = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxCpus" RunGroup
Value Double
newValue, Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "MaxDuration" RunGroup where
  type PropertyType "MaxDuration" RunGroup = Value Prelude.Double
  set :: PropertyType "MaxDuration" RunGroup -> RunGroup -> RunGroup
set PropertyType "MaxDuration" RunGroup
newValue RunGroup {Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: RunGroup -> ()
maxCpus :: RunGroup -> Maybe (Value Double)
maxDuration :: RunGroup -> Maybe (Value Double)
maxGpus :: RunGroup -> Maybe (Value Double)
maxRuns :: RunGroup -> Maybe (Value Double)
name :: RunGroup -> Maybe (Value Text)
tags :: RunGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = RunGroup {maxDuration :: Maybe (Value Double)
maxDuration = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxDuration" RunGroup
Value Double
newValue, Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "MaxGpus" RunGroup where
  type PropertyType "MaxGpus" RunGroup = Value Prelude.Double
  set :: PropertyType "MaxGpus" RunGroup -> RunGroup -> RunGroup
set PropertyType "MaxGpus" RunGroup
newValue RunGroup {Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: RunGroup -> ()
maxCpus :: RunGroup -> Maybe (Value Double)
maxDuration :: RunGroup -> Maybe (Value Double)
maxGpus :: RunGroup -> Maybe (Value Double)
maxRuns :: RunGroup -> Maybe (Value Double)
name :: RunGroup -> Maybe (Value Text)
tags :: RunGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = RunGroup {maxGpus :: Maybe (Value Double)
maxGpus = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxGpus" RunGroup
Value Double
newValue, Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "MaxRuns" RunGroup where
  type PropertyType "MaxRuns" RunGroup = Value Prelude.Double
  set :: PropertyType "MaxRuns" RunGroup -> RunGroup -> RunGroup
set PropertyType "MaxRuns" RunGroup
newValue RunGroup {Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: RunGroup -> ()
maxCpus :: RunGroup -> Maybe (Value Double)
maxDuration :: RunGroup -> Maybe (Value Double)
maxGpus :: RunGroup -> Maybe (Value Double)
maxRuns :: RunGroup -> Maybe (Value Double)
name :: RunGroup -> Maybe (Value Text)
tags :: RunGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = RunGroup {maxRuns :: Maybe (Value Double)
maxRuns = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxRuns" RunGroup
Value Double
newValue, Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Name" RunGroup where
  type PropertyType "Name" RunGroup = Value Prelude.Text
  set :: PropertyType "Name" RunGroup -> RunGroup -> RunGroup
set PropertyType "Name" RunGroup
newValue RunGroup {Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: RunGroup -> ()
maxCpus :: RunGroup -> Maybe (Value Double)
maxDuration :: RunGroup -> Maybe (Value Double)
maxGpus :: RunGroup -> Maybe (Value Double)
maxRuns :: RunGroup -> Maybe (Value Double)
name :: RunGroup -> Maybe (Value Text)
tags :: RunGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = RunGroup {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" RunGroup
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Double)
()
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" RunGroup where
  type PropertyType "Tags" RunGroup = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "Tags" RunGroup -> RunGroup -> RunGroup
set PropertyType "Tags" RunGroup
newValue RunGroup {Maybe (Map Text (Value Text))
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: RunGroup -> ()
maxCpus :: RunGroup -> Maybe (Value Double)
maxDuration :: RunGroup -> Maybe (Value Double)
maxGpus :: RunGroup -> Maybe (Value Double)
maxRuns :: RunGroup -> Maybe (Value Double)
name :: RunGroup -> Maybe (Value Text)
tags :: RunGroup -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
    = RunGroup {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" RunGroup
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
maxCpus :: Maybe (Value Double)
maxDuration :: Maybe (Value Double)
maxGpus :: Maybe (Value Double)
maxRuns :: Maybe (Value Double)
name :: Maybe (Value Text)
..}