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