packages feed

stratosphere-apptest-1.0.0: gen/Stratosphere/AppTest/TestCase/OutputProperty.hs

module Stratosphere.AppTest.TestCase.OutputProperty (
        module Exports, OutputProperty(..), mkOutputProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppTest.TestCase.OutputFileProperty as Exports
import Stratosphere.ResourceProperties
data OutputProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-output.html>
    OutputProperty {haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-output.html#cfn-apptest-testcase-output-file>
                    file :: OutputFileProperty}
  deriving stock (Prelude.Eq, Prelude.Show)
mkOutputProperty :: OutputFileProperty -> OutputProperty
mkOutputProperty file
  = OutputProperty {haddock_workaround_ = (), file = file}
instance ToResourceProperties OutputProperty where
  toResourceProperties OutputProperty {..}
    = ResourceProperties
        {awsType = "AWS::AppTest::TestCase.Output",
         supportsTags = Prelude.False, properties = ["File" JSON..= file]}
instance JSON.ToJSON OutputProperty where
  toJSON OutputProperty {..} = JSON.object ["File" JSON..= file]
instance Property "File" OutputProperty where
  type PropertyType "File" OutputProperty = OutputFileProperty
  set newValue OutputProperty {..}
    = OutputProperty {file = newValue, ..}