module Stratosphere.WAFv2.RuleGroup.IPSetForwardedIPConfigurationProperty (
        IPSetForwardedIPConfigurationProperty(..),
        mkIPSetForwardedIPConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IPSetForwardedIPConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html>
    IPSetForwardedIPConfigurationProperty {IPSetForwardedIPConfigurationProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html#cfn-wafv2-rulegroup-ipsetforwardedipconfiguration-fallbackbehavior>
                                           IPSetForwardedIPConfigurationProperty -> Value Text
fallbackBehavior :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html#cfn-wafv2-rulegroup-ipsetforwardedipconfiguration-headername>
                                           IPSetForwardedIPConfigurationProperty -> Value Text
headerName :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html#cfn-wafv2-rulegroup-ipsetforwardedipconfiguration-position>
                                           IPSetForwardedIPConfigurationProperty -> Value Text
position :: (Value Prelude.Text)}
  deriving stock (IPSetForwardedIPConfigurationProperty
-> IPSetForwardedIPConfigurationProperty -> Bool
(IPSetForwardedIPConfigurationProperty
 -> IPSetForwardedIPConfigurationProperty -> Bool)
-> (IPSetForwardedIPConfigurationProperty
    -> IPSetForwardedIPConfigurationProperty -> Bool)
-> Eq IPSetForwardedIPConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IPSetForwardedIPConfigurationProperty
-> IPSetForwardedIPConfigurationProperty -> Bool
== :: IPSetForwardedIPConfigurationProperty
-> IPSetForwardedIPConfigurationProperty -> Bool
$c/= :: IPSetForwardedIPConfigurationProperty
-> IPSetForwardedIPConfigurationProperty -> Bool
/= :: IPSetForwardedIPConfigurationProperty
-> IPSetForwardedIPConfigurationProperty -> Bool
Prelude.Eq, Int -> IPSetForwardedIPConfigurationProperty -> ShowS
[IPSetForwardedIPConfigurationProperty] -> ShowS
IPSetForwardedIPConfigurationProperty -> String
(Int -> IPSetForwardedIPConfigurationProperty -> ShowS)
-> (IPSetForwardedIPConfigurationProperty -> String)
-> ([IPSetForwardedIPConfigurationProperty] -> ShowS)
-> Show IPSetForwardedIPConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IPSetForwardedIPConfigurationProperty -> ShowS
showsPrec :: Int -> IPSetForwardedIPConfigurationProperty -> ShowS
$cshow :: IPSetForwardedIPConfigurationProperty -> String
show :: IPSetForwardedIPConfigurationProperty -> String
$cshowList :: [IPSetForwardedIPConfigurationProperty] -> ShowS
showList :: [IPSetForwardedIPConfigurationProperty] -> ShowS
Prelude.Show)
mkIPSetForwardedIPConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> IPSetForwardedIPConfigurationProperty
mkIPSetForwardedIPConfigurationProperty :: Value Text
-> Value Text
-> Value Text
-> IPSetForwardedIPConfigurationProperty
mkIPSetForwardedIPConfigurationProperty
  Value Text
fallbackBehavior
  Value Text
headerName
  Value Text
position
  = IPSetForwardedIPConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), fallbackBehavior :: Value Text
fallbackBehavior = Value Text
fallbackBehavior,
       headerName :: Value Text
headerName = Value Text
headerName, position :: Value Text
position = Value Text
position}
instance ToResourceProperties IPSetForwardedIPConfigurationProperty where
  toResourceProperties :: IPSetForwardedIPConfigurationProperty -> ResourceProperties
toResourceProperties IPSetForwardedIPConfigurationProperty {()
Value Text
haddock_workaround_ :: IPSetForwardedIPConfigurationProperty -> ()
fallbackBehavior :: IPSetForwardedIPConfigurationProperty -> Value Text
headerName :: IPSetForwardedIPConfigurationProperty -> Value Text
position :: IPSetForwardedIPConfigurationProperty -> Value Text
haddock_workaround_ :: ()
fallbackBehavior :: Value Text
headerName :: Value Text
position :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WAFv2::RuleGroup.IPSetForwardedIPConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"FallbackBehavior" 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
fallbackBehavior,
                       Key
"HeaderName" 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
headerName, Key
"Position" 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
position]}
instance JSON.ToJSON IPSetForwardedIPConfigurationProperty where
  toJSON :: IPSetForwardedIPConfigurationProperty -> Value
toJSON IPSetForwardedIPConfigurationProperty {()
Value Text
haddock_workaround_ :: IPSetForwardedIPConfigurationProperty -> ()
fallbackBehavior :: IPSetForwardedIPConfigurationProperty -> Value Text
headerName :: IPSetForwardedIPConfigurationProperty -> Value Text
position :: IPSetForwardedIPConfigurationProperty -> Value Text
haddock_workaround_ :: ()
fallbackBehavior :: Value Text
headerName :: Value Text
position :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"FallbackBehavior" 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
fallbackBehavior,
         Key
"HeaderName" 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
headerName, Key
"Position" 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
position]
instance Property "FallbackBehavior" IPSetForwardedIPConfigurationProperty where
  type PropertyType "FallbackBehavior" IPSetForwardedIPConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "FallbackBehavior" IPSetForwardedIPConfigurationProperty
-> IPSetForwardedIPConfigurationProperty
-> IPSetForwardedIPConfigurationProperty
set PropertyType
  "FallbackBehavior" IPSetForwardedIPConfigurationProperty
newValue IPSetForwardedIPConfigurationProperty {()
Value Text
haddock_workaround_ :: IPSetForwardedIPConfigurationProperty -> ()
fallbackBehavior :: IPSetForwardedIPConfigurationProperty -> Value Text
headerName :: IPSetForwardedIPConfigurationProperty -> Value Text
position :: IPSetForwardedIPConfigurationProperty -> Value Text
haddock_workaround_ :: ()
fallbackBehavior :: Value Text
headerName :: Value Text
position :: Value Text
..}
    = IPSetForwardedIPConfigurationProperty
        {fallbackBehavior :: Value Text
fallbackBehavior = PropertyType
  "FallbackBehavior" IPSetForwardedIPConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
headerName :: Value Text
position :: Value Text
haddock_workaround_ :: ()
headerName :: Value Text
position :: Value Text
..}
instance Property "HeaderName" IPSetForwardedIPConfigurationProperty where
  type PropertyType "HeaderName" IPSetForwardedIPConfigurationProperty = Value Prelude.Text
  set :: PropertyType "HeaderName" IPSetForwardedIPConfigurationProperty
-> IPSetForwardedIPConfigurationProperty
-> IPSetForwardedIPConfigurationProperty
set PropertyType "HeaderName" IPSetForwardedIPConfigurationProperty
newValue IPSetForwardedIPConfigurationProperty {()
Value Text
haddock_workaround_ :: IPSetForwardedIPConfigurationProperty -> ()
fallbackBehavior :: IPSetForwardedIPConfigurationProperty -> Value Text
headerName :: IPSetForwardedIPConfigurationProperty -> Value Text
position :: IPSetForwardedIPConfigurationProperty -> Value Text
haddock_workaround_ :: ()
fallbackBehavior :: Value Text
headerName :: Value Text
position :: Value Text
..}
    = IPSetForwardedIPConfigurationProperty {headerName :: Value Text
headerName = PropertyType "HeaderName" IPSetForwardedIPConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
fallbackBehavior :: Value Text
position :: Value Text
haddock_workaround_ :: ()
fallbackBehavior :: Value Text
position :: Value Text
..}
instance Property "Position" IPSetForwardedIPConfigurationProperty where
  type PropertyType "Position" IPSetForwardedIPConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Position" IPSetForwardedIPConfigurationProperty
-> IPSetForwardedIPConfigurationProperty
-> IPSetForwardedIPConfigurationProperty
set PropertyType "Position" IPSetForwardedIPConfigurationProperty
newValue IPSetForwardedIPConfigurationProperty {()
Value Text
haddock_workaround_ :: IPSetForwardedIPConfigurationProperty -> ()
fallbackBehavior :: IPSetForwardedIPConfigurationProperty -> Value Text
headerName :: IPSetForwardedIPConfigurationProperty -> Value Text
position :: IPSetForwardedIPConfigurationProperty -> Value Text
haddock_workaround_ :: ()
fallbackBehavior :: Value Text
headerName :: Value Text
position :: Value Text
..}
    = IPSetForwardedIPConfigurationProperty {position :: Value Text
position = PropertyType "Position" IPSetForwardedIPConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
fallbackBehavior :: Value Text
headerName :: Value Text
haddock_workaround_ :: ()
fallbackBehavior :: Value Text
headerName :: Value Text
..}