module Stratosphere.VpcLattice.Rule.FixedResponseProperty (
        FixedResponseProperty(..), mkFixedResponseProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FixedResponseProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-rule-fixedresponse.html>
    FixedResponseProperty {FixedResponseProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-rule-fixedresponse.html#cfn-vpclattice-rule-fixedresponse-statuscode>
                           FixedResponseProperty -> Value Integer
statusCode :: (Value Prelude.Integer)}
  deriving stock (FixedResponseProperty -> FixedResponseProperty -> Bool
(FixedResponseProperty -> FixedResponseProperty -> Bool)
-> (FixedResponseProperty -> FixedResponseProperty -> Bool)
-> Eq FixedResponseProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FixedResponseProperty -> FixedResponseProperty -> Bool
== :: FixedResponseProperty -> FixedResponseProperty -> Bool
$c/= :: FixedResponseProperty -> FixedResponseProperty -> Bool
/= :: FixedResponseProperty -> FixedResponseProperty -> Bool
Prelude.Eq, Int -> FixedResponseProperty -> ShowS
[FixedResponseProperty] -> ShowS
FixedResponseProperty -> String
(Int -> FixedResponseProperty -> ShowS)
-> (FixedResponseProperty -> String)
-> ([FixedResponseProperty] -> ShowS)
-> Show FixedResponseProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FixedResponseProperty -> ShowS
showsPrec :: Int -> FixedResponseProperty -> ShowS
$cshow :: FixedResponseProperty -> String
show :: FixedResponseProperty -> String
$cshowList :: [FixedResponseProperty] -> ShowS
showList :: [FixedResponseProperty] -> ShowS
Prelude.Show)
mkFixedResponseProperty ::
  Value Prelude.Integer -> FixedResponseProperty
mkFixedResponseProperty :: Value Integer -> FixedResponseProperty
mkFixedResponseProperty Value Integer
statusCode
  = FixedResponseProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), statusCode :: Value Integer
statusCode = Value Integer
statusCode}
instance ToResourceProperties FixedResponseProperty where
  toResourceProperties :: FixedResponseProperty -> ResourceProperties
toResourceProperties FixedResponseProperty {()
Value Integer
haddock_workaround_ :: FixedResponseProperty -> ()
statusCode :: FixedResponseProperty -> Value Integer
haddock_workaround_ :: ()
statusCode :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::VpcLattice::Rule.FixedResponse",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"StatusCode" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
statusCode]}
instance JSON.ToJSON FixedResponseProperty where
  toJSON :: FixedResponseProperty -> Value
toJSON FixedResponseProperty {()
Value Integer
haddock_workaround_ :: FixedResponseProperty -> ()
statusCode :: FixedResponseProperty -> Value Integer
haddock_workaround_ :: ()
statusCode :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"StatusCode" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
statusCode]
instance Property "StatusCode" FixedResponseProperty where
  type PropertyType "StatusCode" FixedResponseProperty = Value Prelude.Integer
  set :: PropertyType "StatusCode" FixedResponseProperty
-> FixedResponseProperty -> FixedResponseProperty
set PropertyType "StatusCode" FixedResponseProperty
newValue FixedResponseProperty {()
Value Integer
haddock_workaround_ :: FixedResponseProperty -> ()
statusCode :: FixedResponseProperty -> Value Integer
haddock_workaround_ :: ()
statusCode :: Value Integer
..}
    = FixedResponseProperty {statusCode :: Value Integer
statusCode = PropertyType "StatusCode" FixedResponseProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}