packages feed

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

module Stratosphere.AppTest.TestCase.CloudFormationActionProperty (
        CloudFormationActionProperty(..), mkCloudFormationActionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CloudFormationActionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-cloudformationaction.html>
    CloudFormationActionProperty {haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-cloudformationaction.html#cfn-apptest-testcase-cloudformationaction-actiontype>
                                  actionType :: (Prelude.Maybe (Value Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apptest-testcase-cloudformationaction.html#cfn-apptest-testcase-cloudformationaction-resource>
                                  resource :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkCloudFormationActionProperty ::
  Value Prelude.Text -> CloudFormationActionProperty
mkCloudFormationActionProperty resource
  = CloudFormationActionProperty
      {haddock_workaround_ = (), resource = resource,
       actionType = Prelude.Nothing}
instance ToResourceProperties CloudFormationActionProperty where
  toResourceProperties CloudFormationActionProperty {..}
    = ResourceProperties
        {awsType = "AWS::AppTest::TestCase.CloudFormationAction",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        ((Prelude.<>)
                           ["Resource" JSON..= resource]
                           (Prelude.catMaybes
                              [(JSON..=) "ActionType" Prelude.<$> actionType]))}
instance JSON.ToJSON CloudFormationActionProperty where
  toJSON CloudFormationActionProperty {..}
    = JSON.object
        (Prelude.fromList
           ((Prelude.<>)
              ["Resource" JSON..= resource]
              (Prelude.catMaybes
                 [(JSON..=) "ActionType" Prelude.<$> actionType])))
instance Property "ActionType" CloudFormationActionProperty where
  type PropertyType "ActionType" CloudFormationActionProperty = Value Prelude.Text
  set newValue CloudFormationActionProperty {..}
    = CloudFormationActionProperty
        {actionType = Prelude.pure newValue, ..}
instance Property "Resource" CloudFormationActionProperty where
  type PropertyType "Resource" CloudFormationActionProperty = Value Prelude.Text
  set newValue CloudFormationActionProperty {..}
    = CloudFormationActionProperty {resource = newValue, ..}