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