module Stratosphere.ApiGatewayV2.RouteResponse.ParameterConstraintsProperty (
        ParameterConstraintsProperty(..), mkParameterConstraintsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ParameterConstraintsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-routeresponse-parameterconstraints.html>
    ParameterConstraintsProperty {ParameterConstraintsProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-routeresponse-parameterconstraints.html#cfn-apigatewayv2-routeresponse-parameterconstraints-required>
                                  ParameterConstraintsProperty -> Value Bool
required :: (Value Prelude.Bool)}
  deriving stock (ParameterConstraintsProperty
-> ParameterConstraintsProperty -> Bool
(ParameterConstraintsProperty
 -> ParameterConstraintsProperty -> Bool)
-> (ParameterConstraintsProperty
    -> ParameterConstraintsProperty -> Bool)
-> Eq ParameterConstraintsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ParameterConstraintsProperty
-> ParameterConstraintsProperty -> Bool
== :: ParameterConstraintsProperty
-> ParameterConstraintsProperty -> Bool
$c/= :: ParameterConstraintsProperty
-> ParameterConstraintsProperty -> Bool
/= :: ParameterConstraintsProperty
-> ParameterConstraintsProperty -> Bool
Prelude.Eq, Int -> ParameterConstraintsProperty -> ShowS
[ParameterConstraintsProperty] -> ShowS
ParameterConstraintsProperty -> String
(Int -> ParameterConstraintsProperty -> ShowS)
-> (ParameterConstraintsProperty -> String)
-> ([ParameterConstraintsProperty] -> ShowS)
-> Show ParameterConstraintsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ParameterConstraintsProperty -> ShowS
showsPrec :: Int -> ParameterConstraintsProperty -> ShowS
$cshow :: ParameterConstraintsProperty -> String
show :: ParameterConstraintsProperty -> String
$cshowList :: [ParameterConstraintsProperty] -> ShowS
showList :: [ParameterConstraintsProperty] -> ShowS
Prelude.Show)
mkParameterConstraintsProperty ::
  Value Prelude.Bool -> ParameterConstraintsProperty
mkParameterConstraintsProperty :: Value Bool -> ParameterConstraintsProperty
mkParameterConstraintsProperty Value Bool
required
  = ParameterConstraintsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), required :: Value Bool
required = Value Bool
required}
instance ToResourceProperties ParameterConstraintsProperty where
  toResourceProperties :: ParameterConstraintsProperty -> ResourceProperties
toResourceProperties ParameterConstraintsProperty {()
Value Bool
haddock_workaround_ :: ParameterConstraintsProperty -> ()
required :: ParameterConstraintsProperty -> Value Bool
haddock_workaround_ :: ()
required :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ApiGatewayV2::RouteResponse.ParameterConstraints",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Required" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
required]}
instance JSON.ToJSON ParameterConstraintsProperty where
  toJSON :: ParameterConstraintsProperty -> Value
toJSON ParameterConstraintsProperty {()
Value Bool
haddock_workaround_ :: ParameterConstraintsProperty -> ()
required :: ParameterConstraintsProperty -> Value Bool
haddock_workaround_ :: ()
required :: Value Bool
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Required" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
required]
instance Property "Required" ParameterConstraintsProperty where
  type PropertyType "Required" ParameterConstraintsProperty = Value Prelude.Bool
  set :: PropertyType "Required" ParameterConstraintsProperty
-> ParameterConstraintsProperty -> ParameterConstraintsProperty
set PropertyType "Required" ParameterConstraintsProperty
newValue ParameterConstraintsProperty {()
Value Bool
haddock_workaround_ :: ParameterConstraintsProperty -> ()
required :: ParameterConstraintsProperty -> Value Bool
haddock_workaround_ :: ()
required :: Value Bool
..}
    = ParameterConstraintsProperty {required :: Value Bool
required = PropertyType "Required" ParameterConstraintsProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}