module Stratosphere.WAFRegional.RegexPatternSet (
        RegexPatternSet(..), mkRegexPatternSet
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RegexPatternSet
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-regexpatternset.html>
    RegexPatternSet {RegexPatternSet -> ()
haddock_workaround_ :: (),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-regexpatternset.html#cfn-wafregional-regexpatternset-name>
                     RegexPatternSet -> Value Text
name :: (Value Prelude.Text),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-regexpatternset.html#cfn-wafregional-regexpatternset-regexpatternstrings>
                     RegexPatternSet -> ValueList Text
regexPatternStrings :: (ValueList Prelude.Text)}
  deriving stock (RegexPatternSet -> RegexPatternSet -> Bool
(RegexPatternSet -> RegexPatternSet -> Bool)
-> (RegexPatternSet -> RegexPatternSet -> Bool)
-> Eq RegexPatternSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RegexPatternSet -> RegexPatternSet -> Bool
== :: RegexPatternSet -> RegexPatternSet -> Bool
$c/= :: RegexPatternSet -> RegexPatternSet -> Bool
/= :: RegexPatternSet -> RegexPatternSet -> Bool
Prelude.Eq, Int -> RegexPatternSet -> ShowS
[RegexPatternSet] -> ShowS
RegexPatternSet -> String
(Int -> RegexPatternSet -> ShowS)
-> (RegexPatternSet -> String)
-> ([RegexPatternSet] -> ShowS)
-> Show RegexPatternSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RegexPatternSet -> ShowS
showsPrec :: Int -> RegexPatternSet -> ShowS
$cshow :: RegexPatternSet -> String
show :: RegexPatternSet -> String
$cshowList :: [RegexPatternSet] -> ShowS
showList :: [RegexPatternSet] -> ShowS
Prelude.Show)
mkRegexPatternSet ::
  Value Prelude.Text -> ValueList Prelude.Text -> RegexPatternSet
mkRegexPatternSet :: Value Text -> ValueList Text -> RegexPatternSet
mkRegexPatternSet Value Text
name ValueList Text
regexPatternStrings
  = RegexPatternSet
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
       regexPatternStrings :: ValueList Text
regexPatternStrings = ValueList Text
regexPatternStrings}
instance ToResourceProperties RegexPatternSet where
  toResourceProperties :: RegexPatternSet -> ResourceProperties
toResourceProperties RegexPatternSet {()
ValueList Text
Value Text
haddock_workaround_ :: RegexPatternSet -> ()
name :: RegexPatternSet -> Value Text
regexPatternStrings :: RegexPatternSet -> ValueList Text
haddock_workaround_ :: ()
name :: Value Text
regexPatternStrings :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WAFRegional::RegexPatternSet",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Name" 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
name,
                       Key
"RegexPatternStrings" 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
regexPatternStrings]}
instance JSON.ToJSON RegexPatternSet where
  toJSON :: RegexPatternSet -> Value
toJSON RegexPatternSet {()
ValueList Text
Value Text
haddock_workaround_ :: RegexPatternSet -> ()
name :: RegexPatternSet -> Value Text
regexPatternStrings :: RegexPatternSet -> ValueList Text
haddock_workaround_ :: ()
name :: Value Text
regexPatternStrings :: ValueList Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Name" 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
name,
         Key
"RegexPatternStrings" 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
regexPatternStrings]
instance Property "Name" RegexPatternSet where
  type PropertyType "Name" RegexPatternSet = Value Prelude.Text
  set :: PropertyType "Name" RegexPatternSet
-> RegexPatternSet -> RegexPatternSet
set PropertyType "Name" RegexPatternSet
newValue RegexPatternSet {()
ValueList Text
Value Text
haddock_workaround_ :: RegexPatternSet -> ()
name :: RegexPatternSet -> Value Text
regexPatternStrings :: RegexPatternSet -> ValueList Text
haddock_workaround_ :: ()
name :: Value Text
regexPatternStrings :: ValueList Text
..}
    = RegexPatternSet {name :: Value Text
name = PropertyType "Name" RegexPatternSet
Value Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
regexPatternStrings :: ValueList Text
haddock_workaround_ :: ()
regexPatternStrings :: ValueList Text
..}
instance Property "RegexPatternStrings" RegexPatternSet where
  type PropertyType "RegexPatternStrings" RegexPatternSet = ValueList Prelude.Text
  set :: PropertyType "RegexPatternStrings" RegexPatternSet
-> RegexPatternSet -> RegexPatternSet
set PropertyType "RegexPatternStrings" RegexPatternSet
newValue RegexPatternSet {()
ValueList Text
Value Text
haddock_workaround_ :: RegexPatternSet -> ()
name :: RegexPatternSet -> Value Text
regexPatternStrings :: RegexPatternSet -> ValueList Text
haddock_workaround_ :: ()
name :: Value Text
regexPatternStrings :: ValueList Text
..}
    = RegexPatternSet {regexPatternStrings :: ValueList Text
regexPatternStrings = PropertyType "RegexPatternStrings" RegexPatternSet
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}