module Stratosphere.WAFv2.WebACL.OnSourceDDoSProtectionConfigProperty (
        OnSourceDDoSProtectionConfigProperty(..),
        mkOnSourceDDoSProtectionConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OnSourceDDoSProtectionConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-onsourceddosprotectionconfig.html>
    OnSourceDDoSProtectionConfigProperty {OnSourceDDoSProtectionConfigProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-onsourceddosprotectionconfig.html#cfn-wafv2-webacl-onsourceddosprotectionconfig-alblowreputationmode>
                                          OnSourceDDoSProtectionConfigProperty -> Value Text
aLBLowReputationMode :: (Value Prelude.Text)}
  deriving stock (OnSourceDDoSProtectionConfigProperty
-> OnSourceDDoSProtectionConfigProperty -> Bool
(OnSourceDDoSProtectionConfigProperty
 -> OnSourceDDoSProtectionConfigProperty -> Bool)
-> (OnSourceDDoSProtectionConfigProperty
    -> OnSourceDDoSProtectionConfigProperty -> Bool)
-> Eq OnSourceDDoSProtectionConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OnSourceDDoSProtectionConfigProperty
-> OnSourceDDoSProtectionConfigProperty -> Bool
== :: OnSourceDDoSProtectionConfigProperty
-> OnSourceDDoSProtectionConfigProperty -> Bool
$c/= :: OnSourceDDoSProtectionConfigProperty
-> OnSourceDDoSProtectionConfigProperty -> Bool
/= :: OnSourceDDoSProtectionConfigProperty
-> OnSourceDDoSProtectionConfigProperty -> Bool
Prelude.Eq, Int -> OnSourceDDoSProtectionConfigProperty -> ShowS
[OnSourceDDoSProtectionConfigProperty] -> ShowS
OnSourceDDoSProtectionConfigProperty -> String
(Int -> OnSourceDDoSProtectionConfigProperty -> ShowS)
-> (OnSourceDDoSProtectionConfigProperty -> String)
-> ([OnSourceDDoSProtectionConfigProperty] -> ShowS)
-> Show OnSourceDDoSProtectionConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OnSourceDDoSProtectionConfigProperty -> ShowS
showsPrec :: Int -> OnSourceDDoSProtectionConfigProperty -> ShowS
$cshow :: OnSourceDDoSProtectionConfigProperty -> String
show :: OnSourceDDoSProtectionConfigProperty -> String
$cshowList :: [OnSourceDDoSProtectionConfigProperty] -> ShowS
showList :: [OnSourceDDoSProtectionConfigProperty] -> ShowS
Prelude.Show)
mkOnSourceDDoSProtectionConfigProperty ::
  Value Prelude.Text -> OnSourceDDoSProtectionConfigProperty
mkOnSourceDDoSProtectionConfigProperty :: Value Text -> OnSourceDDoSProtectionConfigProperty
mkOnSourceDDoSProtectionConfigProperty Value Text
aLBLowReputationMode
  = OnSourceDDoSProtectionConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       aLBLowReputationMode :: Value Text
aLBLowReputationMode = Value Text
aLBLowReputationMode}
instance ToResourceProperties OnSourceDDoSProtectionConfigProperty where
  toResourceProperties :: OnSourceDDoSProtectionConfigProperty -> ResourceProperties
toResourceProperties OnSourceDDoSProtectionConfigProperty {()
Value Text
haddock_workaround_ :: OnSourceDDoSProtectionConfigProperty -> ()
aLBLowReputationMode :: OnSourceDDoSProtectionConfigProperty -> Value Text
haddock_workaround_ :: ()
aLBLowReputationMode :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WAFv2::WebACL.OnSourceDDoSProtectionConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ALBLowReputationMode" 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
aLBLowReputationMode]}
instance JSON.ToJSON OnSourceDDoSProtectionConfigProperty where
  toJSON :: OnSourceDDoSProtectionConfigProperty -> Value
toJSON OnSourceDDoSProtectionConfigProperty {()
Value Text
haddock_workaround_ :: OnSourceDDoSProtectionConfigProperty -> ()
aLBLowReputationMode :: OnSourceDDoSProtectionConfigProperty -> Value Text
haddock_workaround_ :: ()
aLBLowReputationMode :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"ALBLowReputationMode" 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
aLBLowReputationMode]
instance Property "ALBLowReputationMode" OnSourceDDoSProtectionConfigProperty where
  type PropertyType "ALBLowReputationMode" OnSourceDDoSProtectionConfigProperty = Value Prelude.Text
  set :: PropertyType
  "ALBLowReputationMode" OnSourceDDoSProtectionConfigProperty
-> OnSourceDDoSProtectionConfigProperty
-> OnSourceDDoSProtectionConfigProperty
set PropertyType
  "ALBLowReputationMode" OnSourceDDoSProtectionConfigProperty
newValue OnSourceDDoSProtectionConfigProperty {()
Value Text
haddock_workaround_ :: OnSourceDDoSProtectionConfigProperty -> ()
aLBLowReputationMode :: OnSourceDDoSProtectionConfigProperty -> Value Text
haddock_workaround_ :: ()
aLBLowReputationMode :: Value Text
..}
    = OnSourceDDoSProtectionConfigProperty
        {aLBLowReputationMode :: Value Text
aLBLowReputationMode = PropertyType
  "ALBLowReputationMode" OnSourceDDoSProtectionConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}