module Stratosphere.WAFv2.WebACL.ResponseInspectionBodyContainsProperty (
        ResponseInspectionBodyContainsProperty(..),
        mkResponseInspectionBodyContainsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ResponseInspectionBodyContainsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionbodycontains.html>
    ResponseInspectionBodyContainsProperty {ResponseInspectionBodyContainsProperty -> ()
haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionbodycontains.html#cfn-wafv2-webacl-responseinspectionbodycontains-failurestrings>
                                            ResponseInspectionBodyContainsProperty -> ValueList Text
failureStrings :: (ValueList Prelude.Text),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionbodycontains.html#cfn-wafv2-webacl-responseinspectionbodycontains-successstrings>
                                            ResponseInspectionBodyContainsProperty -> ValueList Text
successStrings :: (ValueList Prelude.Text)}
  deriving stock (ResponseInspectionBodyContainsProperty
-> ResponseInspectionBodyContainsProperty -> Bool
(ResponseInspectionBodyContainsProperty
 -> ResponseInspectionBodyContainsProperty -> Bool)
-> (ResponseInspectionBodyContainsProperty
    -> ResponseInspectionBodyContainsProperty -> Bool)
-> Eq ResponseInspectionBodyContainsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResponseInspectionBodyContainsProperty
-> ResponseInspectionBodyContainsProperty -> Bool
== :: ResponseInspectionBodyContainsProperty
-> ResponseInspectionBodyContainsProperty -> Bool
$c/= :: ResponseInspectionBodyContainsProperty
-> ResponseInspectionBodyContainsProperty -> Bool
/= :: ResponseInspectionBodyContainsProperty
-> ResponseInspectionBodyContainsProperty -> Bool
Prelude.Eq, Int -> ResponseInspectionBodyContainsProperty -> ShowS
[ResponseInspectionBodyContainsProperty] -> ShowS
ResponseInspectionBodyContainsProperty -> String
(Int -> ResponseInspectionBodyContainsProperty -> ShowS)
-> (ResponseInspectionBodyContainsProperty -> String)
-> ([ResponseInspectionBodyContainsProperty] -> ShowS)
-> Show ResponseInspectionBodyContainsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResponseInspectionBodyContainsProperty -> ShowS
showsPrec :: Int -> ResponseInspectionBodyContainsProperty -> ShowS
$cshow :: ResponseInspectionBodyContainsProperty -> String
show :: ResponseInspectionBodyContainsProperty -> String
$cshowList :: [ResponseInspectionBodyContainsProperty] -> ShowS
showList :: [ResponseInspectionBodyContainsProperty] -> ShowS
Prelude.Show)
mkResponseInspectionBodyContainsProperty ::
  ValueList Prelude.Text
  -> ValueList Prelude.Text -> ResponseInspectionBodyContainsProperty
mkResponseInspectionBodyContainsProperty :: ValueList Text
-> ValueList Text -> ResponseInspectionBodyContainsProperty
mkResponseInspectionBodyContainsProperty
  ValueList Text
failureStrings
  ValueList Text
successStrings
  = ResponseInspectionBodyContainsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), failureStrings :: ValueList Text
failureStrings = ValueList Text
failureStrings,
       successStrings :: ValueList Text
successStrings = ValueList Text
successStrings}
instance ToResourceProperties ResponseInspectionBodyContainsProperty where
  toResourceProperties :: ResponseInspectionBodyContainsProperty -> ResourceProperties
toResourceProperties ResponseInspectionBodyContainsProperty {()
ValueList Text
haddock_workaround_ :: ResponseInspectionBodyContainsProperty -> ()
failureStrings :: ResponseInspectionBodyContainsProperty -> ValueList Text
successStrings :: ResponseInspectionBodyContainsProperty -> ValueList Text
haddock_workaround_ :: ()
failureStrings :: ValueList Text
successStrings :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WAFv2::WebACL.ResponseInspectionBodyContains",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"FailureStrings" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
failureStrings,
                       Key
"SuccessStrings" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
successStrings]}
instance JSON.ToJSON ResponseInspectionBodyContainsProperty where
  toJSON :: ResponseInspectionBodyContainsProperty -> Value
toJSON ResponseInspectionBodyContainsProperty {()
ValueList Text
haddock_workaround_ :: ResponseInspectionBodyContainsProperty -> ()
failureStrings :: ResponseInspectionBodyContainsProperty -> ValueList Text
successStrings :: ResponseInspectionBodyContainsProperty -> ValueList Text
haddock_workaround_ :: ()
failureStrings :: ValueList Text
successStrings :: ValueList Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"FailureStrings" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
failureStrings,
         Key
"SuccessStrings" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
successStrings]
instance Property "FailureStrings" ResponseInspectionBodyContainsProperty where
  type PropertyType "FailureStrings" ResponseInspectionBodyContainsProperty = ValueList Prelude.Text
  set :: PropertyType
  "FailureStrings" ResponseInspectionBodyContainsProperty
-> ResponseInspectionBodyContainsProperty
-> ResponseInspectionBodyContainsProperty
set PropertyType
  "FailureStrings" ResponseInspectionBodyContainsProperty
newValue ResponseInspectionBodyContainsProperty {()
ValueList Text
haddock_workaround_ :: ResponseInspectionBodyContainsProperty -> ()
failureStrings :: ResponseInspectionBodyContainsProperty -> ValueList Text
successStrings :: ResponseInspectionBodyContainsProperty -> ValueList Text
haddock_workaround_ :: ()
failureStrings :: ValueList Text
successStrings :: ValueList Text
..}
    = ResponseInspectionBodyContainsProperty
        {failureStrings :: ValueList Text
failureStrings = PropertyType
  "FailureStrings" ResponseInspectionBodyContainsProperty
ValueList Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
successStrings :: ValueList Text
haddock_workaround_ :: ()
successStrings :: ValueList Text
..}
instance Property "SuccessStrings" ResponseInspectionBodyContainsProperty where
  type PropertyType "SuccessStrings" ResponseInspectionBodyContainsProperty = ValueList Prelude.Text
  set :: PropertyType
  "SuccessStrings" ResponseInspectionBodyContainsProperty
-> ResponseInspectionBodyContainsProperty
-> ResponseInspectionBodyContainsProperty
set PropertyType
  "SuccessStrings" ResponseInspectionBodyContainsProperty
newValue ResponseInspectionBodyContainsProperty {()
ValueList Text
haddock_workaround_ :: ResponseInspectionBodyContainsProperty -> ()
failureStrings :: ResponseInspectionBodyContainsProperty -> ValueList Text
successStrings :: ResponseInspectionBodyContainsProperty -> ValueList Text
haddock_workaround_ :: ()
failureStrings :: ValueList Text
successStrings :: ValueList Text
..}
    = ResponseInspectionBodyContainsProperty
        {successStrings :: ValueList Text
successStrings = PropertyType
  "SuccessStrings" ResponseInspectionBodyContainsProperty
ValueList Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
failureStrings :: ValueList Text
haddock_workaround_ :: ()
failureStrings :: ValueList Text
..}