packages feed

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

module Stratosphere.AppTest.TestCase.ScriptProperty (
        ScriptProperty(..), mkScriptProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScriptProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-script.html>
    ScriptProperty {haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-script.html#cfn-apptest-testcase-script-scriptlocation>
                    scriptLocation :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-script.html#cfn-apptest-testcase-script-type>
                    type' :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkScriptProperty ::
  Value Prelude.Text -> Value Prelude.Text -> ScriptProperty
mkScriptProperty scriptLocation type'
  = ScriptProperty
      {haddock_workaround_ = (), scriptLocation = scriptLocation,
       type' = type'}
instance ToResourceProperties ScriptProperty where
  toResourceProperties ScriptProperty {..}
    = ResourceProperties
        {awsType = "AWS::AppTest::TestCase.Script",
         supportsTags = Prelude.False,
         properties = ["ScriptLocation" JSON..= scriptLocation,
                       "Type" JSON..= type']}
instance JSON.ToJSON ScriptProperty where
  toJSON ScriptProperty {..}
    = JSON.object
        ["ScriptLocation" JSON..= scriptLocation, "Type" JSON..= type']
instance Property "ScriptLocation" ScriptProperty where
  type PropertyType "ScriptLocation" ScriptProperty = Value Prelude.Text
  set newValue ScriptProperty {..}
    = ScriptProperty {scriptLocation = newValue, ..}
instance Property "Type" ScriptProperty where
  type PropertyType "Type" ScriptProperty = Value Prelude.Text
  set newValue ScriptProperty {..}
    = ScriptProperty {type' = newValue, ..}