module Stratosphere.AppTest.TestCase.InputFileProperty (
        module Exports, InputFileProperty(..), mkInputFileProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppTest.TestCase.FileMetadataProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputFileProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-inputfile.html>
    InputFileProperty {InputFileProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-inputfile.html#cfn-apptest-testcase-inputfile-filemetadata>
                       InputFileProperty -> FileMetadataProperty
fileMetadata :: FileMetadataProperty,
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-inputfile.html#cfn-apptest-testcase-inputfile-sourcelocation>
                       InputFileProperty -> Value Text
sourceLocation :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-inputfile.html#cfn-apptest-testcase-inputfile-targetlocation>
                       InputFileProperty -> Value Text
targetLocation :: (Value Prelude.Text)}
  deriving stock (InputFileProperty -> InputFileProperty -> Bool
(InputFileProperty -> InputFileProperty -> Bool)
-> (InputFileProperty -> InputFileProperty -> Bool)
-> Eq InputFileProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputFileProperty -> InputFileProperty -> Bool
== :: InputFileProperty -> InputFileProperty -> Bool
$c/= :: InputFileProperty -> InputFileProperty -> Bool
/= :: InputFileProperty -> InputFileProperty -> Bool
Prelude.Eq, Int -> InputFileProperty -> ShowS
[InputFileProperty] -> ShowS
InputFileProperty -> String
(Int -> InputFileProperty -> ShowS)
-> (InputFileProperty -> String)
-> ([InputFileProperty] -> ShowS)
-> Show InputFileProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputFileProperty -> ShowS
showsPrec :: Int -> InputFileProperty -> ShowS
$cshow :: InputFileProperty -> String
show :: InputFileProperty -> String
$cshowList :: [InputFileProperty] -> ShowS
showList :: [InputFileProperty] -> ShowS
Prelude.Show)
mkInputFileProperty ::
  FileMetadataProperty
  -> Value Prelude.Text -> Value Prelude.Text -> InputFileProperty
mkInputFileProperty :: FileMetadataProperty
-> Value Text -> Value Text -> InputFileProperty
mkInputFileProperty FileMetadataProperty
fileMetadata Value Text
sourceLocation Value Text
targetLocation
  = InputFileProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), fileMetadata :: FileMetadataProperty
fileMetadata = FileMetadataProperty
fileMetadata,
       sourceLocation :: Value Text
sourceLocation = Value Text
sourceLocation, targetLocation :: Value Text
targetLocation = Value Text
targetLocation}
instance ToResourceProperties InputFileProperty where
  toResourceProperties :: InputFileProperty -> ResourceProperties
toResourceProperties InputFileProperty {()
Value Text
FileMetadataProperty
haddock_workaround_ :: InputFileProperty -> ()
fileMetadata :: InputFileProperty -> FileMetadataProperty
sourceLocation :: InputFileProperty -> Value Text
targetLocation :: InputFileProperty -> Value Text
haddock_workaround_ :: ()
fileMetadata :: FileMetadataProperty
sourceLocation :: Value Text
targetLocation :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppTest::TestCase.InputFile",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"FileMetadata" Key -> FileMetadataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FileMetadataProperty
fileMetadata,
                       Key
"SourceLocation" 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
sourceLocation,
                       Key
"TargetLocation" 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
targetLocation]}
instance JSON.ToJSON InputFileProperty where
  toJSON :: InputFileProperty -> Value
toJSON InputFileProperty {()
Value Text
FileMetadataProperty
haddock_workaround_ :: InputFileProperty -> ()
fileMetadata :: InputFileProperty -> FileMetadataProperty
sourceLocation :: InputFileProperty -> Value Text
targetLocation :: InputFileProperty -> Value Text
haddock_workaround_ :: ()
fileMetadata :: FileMetadataProperty
sourceLocation :: Value Text
targetLocation :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"FileMetadata" Key -> FileMetadataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FileMetadataProperty
fileMetadata,
         Key
"SourceLocation" 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
sourceLocation,
         Key
"TargetLocation" 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
targetLocation]
instance Property "FileMetadata" InputFileProperty where
  type PropertyType "FileMetadata" InputFileProperty = FileMetadataProperty
  set :: PropertyType "FileMetadata" InputFileProperty
-> InputFileProperty -> InputFileProperty
set PropertyType "FileMetadata" InputFileProperty
newValue InputFileProperty {()
Value Text
FileMetadataProperty
haddock_workaround_ :: InputFileProperty -> ()
fileMetadata :: InputFileProperty -> FileMetadataProperty
sourceLocation :: InputFileProperty -> Value Text
targetLocation :: InputFileProperty -> Value Text
haddock_workaround_ :: ()
fileMetadata :: FileMetadataProperty
sourceLocation :: Value Text
targetLocation :: Value Text
..}
    = InputFileProperty {fileMetadata :: FileMetadataProperty
fileMetadata = PropertyType "FileMetadata" InputFileProperty
FileMetadataProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
sourceLocation :: Value Text
targetLocation :: Value Text
haddock_workaround_ :: ()
sourceLocation :: Value Text
targetLocation :: Value Text
..}
instance Property "SourceLocation" InputFileProperty where
  type PropertyType "SourceLocation" InputFileProperty = Value Prelude.Text
  set :: PropertyType "SourceLocation" InputFileProperty
-> InputFileProperty -> InputFileProperty
set PropertyType "SourceLocation" InputFileProperty
newValue InputFileProperty {()
Value Text
FileMetadataProperty
haddock_workaround_ :: InputFileProperty -> ()
fileMetadata :: InputFileProperty -> FileMetadataProperty
sourceLocation :: InputFileProperty -> Value Text
targetLocation :: InputFileProperty -> Value Text
haddock_workaround_ :: ()
fileMetadata :: FileMetadataProperty
sourceLocation :: Value Text
targetLocation :: Value Text
..}
    = InputFileProperty {sourceLocation :: Value Text
sourceLocation = PropertyType "SourceLocation" InputFileProperty
Value Text
newValue, ()
Value Text
FileMetadataProperty
haddock_workaround_ :: ()
fileMetadata :: FileMetadataProperty
targetLocation :: Value Text
haddock_workaround_ :: ()
fileMetadata :: FileMetadataProperty
targetLocation :: Value Text
..}
instance Property "TargetLocation" InputFileProperty where
  type PropertyType "TargetLocation" InputFileProperty = Value Prelude.Text
  set :: PropertyType "TargetLocation" InputFileProperty
-> InputFileProperty -> InputFileProperty
set PropertyType "TargetLocation" InputFileProperty
newValue InputFileProperty {()
Value Text
FileMetadataProperty
haddock_workaround_ :: InputFileProperty -> ()
fileMetadata :: InputFileProperty -> FileMetadataProperty
sourceLocation :: InputFileProperty -> Value Text
targetLocation :: InputFileProperty -> Value Text
haddock_workaround_ :: ()
fileMetadata :: FileMetadataProperty
sourceLocation :: Value Text
targetLocation :: Value Text
..}
    = InputFileProperty {targetLocation :: Value Text
targetLocation = PropertyType "TargetLocation" InputFileProperty
Value Text
newValue, ()
Value Text
FileMetadataProperty
haddock_workaround_ :: ()
fileMetadata :: FileMetadataProperty
sourceLocation :: Value Text
haddock_workaround_ :: ()
fileMetadata :: FileMetadataProperty
sourceLocation :: Value Text
..}