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