module Stratosphere.AppTest.TestCase.BatchProperty (
        BatchProperty(..), mkBatchProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BatchProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-batch.html>
    BatchProperty {BatchProperty -> ()
haddock_workaround_ :: (),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-batch.html#cfn-apptest-testcase-batch-batchjobname>
                   BatchProperty -> Value Text
batchJobName :: (Value Prelude.Text),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-batch.html#cfn-apptest-testcase-batch-batchjobparameters>
                   BatchProperty -> Maybe (Map Text (Value Text))
batchJobParameters :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-batch.html#cfn-apptest-testcase-batch-exportdatasetnames>
                   BatchProperty -> Maybe (ValueList Text)
exportDataSetNames :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (BatchProperty -> BatchProperty -> Bool
(BatchProperty -> BatchProperty -> Bool)
-> (BatchProperty -> BatchProperty -> Bool) -> Eq BatchProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BatchProperty -> BatchProperty -> Bool
== :: BatchProperty -> BatchProperty -> Bool
$c/= :: BatchProperty -> BatchProperty -> Bool
/= :: BatchProperty -> BatchProperty -> Bool
Prelude.Eq, Int -> BatchProperty -> ShowS
[BatchProperty] -> ShowS
BatchProperty -> String
(Int -> BatchProperty -> ShowS)
-> (BatchProperty -> String)
-> ([BatchProperty] -> ShowS)
-> Show BatchProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BatchProperty -> ShowS
showsPrec :: Int -> BatchProperty -> ShowS
$cshow :: BatchProperty -> String
show :: BatchProperty -> String
$cshowList :: [BatchProperty] -> ShowS
showList :: [BatchProperty] -> ShowS
Prelude.Show)
mkBatchProperty :: Value Prelude.Text -> BatchProperty
mkBatchProperty :: Value Text -> BatchProperty
mkBatchProperty Value Text
batchJobName
  = BatchProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), batchJobName :: Value Text
batchJobName = Value Text
batchJobName,
       batchJobParameters :: Maybe (Map Text (Value Text))
batchJobParameters = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing,
       exportDataSetNames :: Maybe (ValueList Text)
exportDataSetNames = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BatchProperty where
  toResourceProperties :: BatchProperty -> ResourceProperties
toResourceProperties BatchProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: BatchProperty -> ()
batchJobName :: BatchProperty -> Value Text
batchJobParameters :: BatchProperty -> Maybe (Map Text (Value Text))
exportDataSetNames :: BatchProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
batchJobName :: Value Text
batchJobParameters :: Maybe (Map Text (Value Text))
exportDataSetNames :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppTest::TestCase.Batch",
         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
"BatchJobName" 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
batchJobName]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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
"BatchJobParameters" (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))
batchJobParameters,
                               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
"ExportDataSetNames" (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)
exportDataSetNames]))}
instance JSON.ToJSON BatchProperty where
  toJSON :: BatchProperty -> Value
toJSON BatchProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: BatchProperty -> ()
batchJobName :: BatchProperty -> Value Text
batchJobParameters :: BatchProperty -> Maybe (Map Text (Value Text))
exportDataSetNames :: BatchProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
batchJobName :: Value Text
batchJobParameters :: Maybe (Map Text (Value Text))
exportDataSetNames :: Maybe (ValueList Text)
..}
    = [(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
"BatchJobName" 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
batchJobName]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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
"BatchJobParameters" (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))
batchJobParameters,
                  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
"ExportDataSetNames" (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)
exportDataSetNames])))
instance Property "BatchJobName" BatchProperty where
  type PropertyType "BatchJobName" BatchProperty = Value Prelude.Text
  set :: PropertyType "BatchJobName" BatchProperty
-> BatchProperty -> BatchProperty
set PropertyType "BatchJobName" BatchProperty
newValue BatchProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: BatchProperty -> ()
batchJobName :: BatchProperty -> Value Text
batchJobParameters :: BatchProperty -> Maybe (Map Text (Value Text))
exportDataSetNames :: BatchProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
batchJobName :: Value Text
batchJobParameters :: Maybe (Map Text (Value Text))
exportDataSetNames :: Maybe (ValueList Text)
..}
    = BatchProperty {batchJobName :: Value Text
batchJobName = PropertyType "BatchJobName" BatchProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (ValueList Text)
()
haddock_workaround_ :: ()
batchJobParameters :: Maybe (Map Text (Value Text))
exportDataSetNames :: Maybe (ValueList Text)
haddock_workaround_ :: ()
batchJobParameters :: Maybe (Map Text (Value Text))
exportDataSetNames :: Maybe (ValueList Text)
..}
instance Property "BatchJobParameters" BatchProperty where
  type PropertyType "BatchJobParameters" BatchProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "BatchJobParameters" BatchProperty
-> BatchProperty -> BatchProperty
set PropertyType "BatchJobParameters" BatchProperty
newValue BatchProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: BatchProperty -> ()
batchJobName :: BatchProperty -> Value Text
batchJobParameters :: BatchProperty -> Maybe (Map Text (Value Text))
exportDataSetNames :: BatchProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
batchJobName :: Value Text
batchJobParameters :: Maybe (Map Text (Value Text))
exportDataSetNames :: Maybe (ValueList Text)
..}
    = BatchProperty {batchJobParameters :: Maybe (Map Text (Value Text))
batchJobParameters = 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 "BatchJobParameters" BatchProperty
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
batchJobName :: Value Text
exportDataSetNames :: Maybe (ValueList Text)
haddock_workaround_ :: ()
batchJobName :: Value Text
exportDataSetNames :: Maybe (ValueList Text)
..}
instance Property "ExportDataSetNames" BatchProperty where
  type PropertyType "ExportDataSetNames" BatchProperty = ValueList Prelude.Text
  set :: PropertyType "ExportDataSetNames" BatchProperty
-> BatchProperty -> BatchProperty
set PropertyType "ExportDataSetNames" BatchProperty
newValue BatchProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: BatchProperty -> ()
batchJobName :: BatchProperty -> Value Text
batchJobParameters :: BatchProperty -> Maybe (Map Text (Value Text))
exportDataSetNames :: BatchProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
batchJobName :: Value Text
batchJobParameters :: Maybe (Map Text (Value Text))
exportDataSetNames :: Maybe (ValueList Text)
..}
    = BatchProperty {exportDataSetNames :: Maybe (ValueList Text)
exportDataSetNames = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExportDataSetNames" BatchProperty
ValueList Text
newValue, Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ()
batchJobName :: Value Text
batchJobParameters :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
batchJobName :: Value Text
batchJobParameters :: Maybe (Map Text (Value Text))
..}