module Stratosphere.WAFRegional.WebACL.ActionProperty (
ActionProperty(..), mkActionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ActionProperty
=
ActionProperty {ActionProperty -> ()
haddock_workaround_ :: (),
ActionProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (ActionProperty -> ActionProperty -> Bool
(ActionProperty -> ActionProperty -> Bool)
-> (ActionProperty -> ActionProperty -> Bool) -> Eq ActionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ActionProperty -> ActionProperty -> Bool
== :: ActionProperty -> ActionProperty -> Bool
$c/= :: ActionProperty -> ActionProperty -> Bool
/= :: ActionProperty -> ActionProperty -> Bool
Prelude.Eq, Int -> ActionProperty -> ShowS
[ActionProperty] -> ShowS
ActionProperty -> String
(Int -> ActionProperty -> ShowS)
-> (ActionProperty -> String)
-> ([ActionProperty] -> ShowS)
-> Show ActionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ActionProperty -> ShowS
showsPrec :: Int -> ActionProperty -> ShowS
$cshow :: ActionProperty -> String
show :: ActionProperty -> String
$cshowList :: [ActionProperty] -> ShowS
showList :: [ActionProperty] -> ShowS
Prelude.Show)
mkActionProperty :: Value Prelude.Text -> ActionProperty
mkActionProperty :: Value Text -> ActionProperty
mkActionProperty Value Text
type'
= ActionProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties ActionProperty where
toResourceProperties :: ActionProperty -> ResourceProperties
toResourceProperties ActionProperty {()
Value Text
haddock_workaround_ :: ActionProperty -> ()
type' :: ActionProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFRegional::WebACL.Action",
supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Type" 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
type']}
instance JSON.ToJSON ActionProperty where
toJSON :: ActionProperty -> Value
toJSON ActionProperty {()
Value Text
haddock_workaround_ :: ActionProperty -> ()
type' :: ActionProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
..} = [(Key, Value)] -> Value
JSON.object [Key
"Type" 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
type']
instance Property "Type" ActionProperty where
type PropertyType "Type" ActionProperty = Value Prelude.Text
set :: PropertyType "Type" ActionProperty
-> ActionProperty -> ActionProperty
set PropertyType "Type" ActionProperty
newValue ActionProperty {()
Value Text
haddock_workaround_ :: ActionProperty -> ()
type' :: ActionProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
= ActionProperty {type' :: Value Text
type' = PropertyType "Type" ActionProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}