module Stratosphere.WAFRegional.GeoMatchSet.GeoMatchConstraintProperty (
        GeoMatchConstraintProperty(..), mkGeoMatchConstraintProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GeoMatchConstraintProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-geomatchset-geomatchconstraint.html>
    GeoMatchConstraintProperty {GeoMatchConstraintProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-geomatchset-geomatchconstraint.html#cfn-wafregional-geomatchset-geomatchconstraint-type>
                                GeoMatchConstraintProperty -> Value Text
type' :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-geomatchset-geomatchconstraint.html#cfn-wafregional-geomatchset-geomatchconstraint-value>
                                GeoMatchConstraintProperty -> Value Text
value :: (Value Prelude.Text)}
  deriving stock (GeoMatchConstraintProperty -> GeoMatchConstraintProperty -> Bool
(GeoMatchConstraintProperty -> GeoMatchConstraintProperty -> Bool)
-> (GeoMatchConstraintProperty
    -> GeoMatchConstraintProperty -> Bool)
-> Eq GeoMatchConstraintProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GeoMatchConstraintProperty -> GeoMatchConstraintProperty -> Bool
== :: GeoMatchConstraintProperty -> GeoMatchConstraintProperty -> Bool
$c/= :: GeoMatchConstraintProperty -> GeoMatchConstraintProperty -> Bool
/= :: GeoMatchConstraintProperty -> GeoMatchConstraintProperty -> Bool
Prelude.Eq, Int -> GeoMatchConstraintProperty -> ShowS
[GeoMatchConstraintProperty] -> ShowS
GeoMatchConstraintProperty -> String
(Int -> GeoMatchConstraintProperty -> ShowS)
-> (GeoMatchConstraintProperty -> String)
-> ([GeoMatchConstraintProperty] -> ShowS)
-> Show GeoMatchConstraintProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GeoMatchConstraintProperty -> ShowS
showsPrec :: Int -> GeoMatchConstraintProperty -> ShowS
$cshow :: GeoMatchConstraintProperty -> String
show :: GeoMatchConstraintProperty -> String
$cshowList :: [GeoMatchConstraintProperty] -> ShowS
showList :: [GeoMatchConstraintProperty] -> ShowS
Prelude.Show)
mkGeoMatchConstraintProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> GeoMatchConstraintProperty
mkGeoMatchConstraintProperty :: Value Text -> Value Text -> GeoMatchConstraintProperty
mkGeoMatchConstraintProperty Value Text
type' Value Text
value
  = GeoMatchConstraintProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', value :: Value Text
value = Value Text
value}
instance ToResourceProperties GeoMatchConstraintProperty where
  toResourceProperties :: GeoMatchConstraintProperty -> ResourceProperties
toResourceProperties GeoMatchConstraintProperty {()
Value Text
haddock_workaround_ :: GeoMatchConstraintProperty -> ()
type' :: GeoMatchConstraintProperty -> Value Text
value :: GeoMatchConstraintProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WAFRegional::GeoMatchSet.GeoMatchConstraint",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Type" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
type', Key
"Value" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
value]}
instance JSON.ToJSON GeoMatchConstraintProperty where
  toJSON :: GeoMatchConstraintProperty -> Value
toJSON GeoMatchConstraintProperty {()
Value Text
haddock_workaround_ :: GeoMatchConstraintProperty -> ()
type' :: GeoMatchConstraintProperty -> Value Text
value :: GeoMatchConstraintProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Type" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
type', Key
"Value" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
value]
instance Property "Type" GeoMatchConstraintProperty where
  type PropertyType "Type" GeoMatchConstraintProperty = Value Prelude.Text
  set :: PropertyType "Type" GeoMatchConstraintProperty
-> GeoMatchConstraintProperty -> GeoMatchConstraintProperty
set PropertyType "Type" GeoMatchConstraintProperty
newValue GeoMatchConstraintProperty {()
Value Text
haddock_workaround_ :: GeoMatchConstraintProperty -> ()
type' :: GeoMatchConstraintProperty -> Value Text
value :: GeoMatchConstraintProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = GeoMatchConstraintProperty {type' :: Value Text
type' = PropertyType "Type" GeoMatchConstraintProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" GeoMatchConstraintProperty where
  type PropertyType "Value" GeoMatchConstraintProperty = Value Prelude.Text
  set :: PropertyType "Value" GeoMatchConstraintProperty
-> GeoMatchConstraintProperty -> GeoMatchConstraintProperty
set PropertyType "Value" GeoMatchConstraintProperty
newValue GeoMatchConstraintProperty {()
Value Text
haddock_workaround_ :: GeoMatchConstraintProperty -> ()
type' :: GeoMatchConstraintProperty -> Value Text
value :: GeoMatchConstraintProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = GeoMatchConstraintProperty {value :: Value Text
value = PropertyType "Value" GeoMatchConstraintProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}