module Stratosphere.AppTest.TestCase.OutputFileProperty (
OutputFileProperty(..), mkOutputFileProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutputFileProperty
=
OutputFileProperty {OutputFileProperty -> ()
haddock_workaround_ :: (),
OutputFileProperty -> Maybe (Value Text)
fileLocation :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (OutputFileProperty -> OutputFileProperty -> Bool
(OutputFileProperty -> OutputFileProperty -> Bool)
-> (OutputFileProperty -> OutputFileProperty -> Bool)
-> Eq OutputFileProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutputFileProperty -> OutputFileProperty -> Bool
== :: OutputFileProperty -> OutputFileProperty -> Bool
$c/= :: OutputFileProperty -> OutputFileProperty -> Bool
/= :: OutputFileProperty -> OutputFileProperty -> Bool
Prelude.Eq, Int -> OutputFileProperty -> ShowS
[OutputFileProperty] -> ShowS
OutputFileProperty -> String
(Int -> OutputFileProperty -> ShowS)
-> (OutputFileProperty -> String)
-> ([OutputFileProperty] -> ShowS)
-> Show OutputFileProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutputFileProperty -> ShowS
showsPrec :: Int -> OutputFileProperty -> ShowS
$cshow :: OutputFileProperty -> String
show :: OutputFileProperty -> String
$cshowList :: [OutputFileProperty] -> ShowS
showList :: [OutputFileProperty] -> ShowS
Prelude.Show)
mkOutputFileProperty :: OutputFileProperty
mkOutputFileProperty :: OutputFileProperty
mkOutputFileProperty
= OutputFileProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fileLocation :: Maybe (Value Text)
fileLocation = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OutputFileProperty where
toResourceProperties :: OutputFileProperty -> ResourceProperties
toResourceProperties OutputFileProperty {Maybe (Value Text)
()
haddock_workaround_ :: OutputFileProperty -> ()
fileLocation :: OutputFileProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fileLocation :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppTest::TestCase.OutputFile",
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
"FileLocation" (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)
fileLocation])}
instance JSON.ToJSON OutputFileProperty where
toJSON :: OutputFileProperty -> Value
toJSON OutputFileProperty {Maybe (Value Text)
()
haddock_workaround_ :: OutputFileProperty -> ()
fileLocation :: OutputFileProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fileLocation :: 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
"FileLocation" (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)
fileLocation]))
instance Property "FileLocation" OutputFileProperty where
type PropertyType "FileLocation" OutputFileProperty = Value Prelude.Text
set :: PropertyType "FileLocation" OutputFileProperty
-> OutputFileProperty -> OutputFileProperty
set PropertyType "FileLocation" OutputFileProperty
newValue OutputFileProperty {Maybe (Value Text)
()
haddock_workaround_ :: OutputFileProperty -> ()
fileLocation :: OutputFileProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fileLocation :: Maybe (Value Text)
..}
= OutputFileProperty {fileLocation :: Maybe (Value Text)
fileLocation = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FileLocation" OutputFileProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}