module Stratosphere.WAFv2.WebACL.LabelProperty (
LabelProperty(..), mkLabelProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LabelProperty
=
LabelProperty {LabelProperty -> ()
haddock_workaround_ :: (),
LabelProperty -> Value Text
name :: (Value Prelude.Text)}
deriving stock (LabelProperty -> LabelProperty -> Bool
(LabelProperty -> LabelProperty -> Bool)
-> (LabelProperty -> LabelProperty -> Bool) -> Eq LabelProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LabelProperty -> LabelProperty -> Bool
== :: LabelProperty -> LabelProperty -> Bool
$c/= :: LabelProperty -> LabelProperty -> Bool
/= :: LabelProperty -> LabelProperty -> Bool
Prelude.Eq, Int -> LabelProperty -> ShowS
[LabelProperty] -> ShowS
LabelProperty -> String
(Int -> LabelProperty -> ShowS)
-> (LabelProperty -> String)
-> ([LabelProperty] -> ShowS)
-> Show LabelProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LabelProperty -> ShowS
showsPrec :: Int -> LabelProperty -> ShowS
$cshow :: LabelProperty -> String
show :: LabelProperty -> String
$cshowList :: [LabelProperty] -> ShowS
showList :: [LabelProperty] -> ShowS
Prelude.Show)
mkLabelProperty :: Value Prelude.Text -> LabelProperty
mkLabelProperty :: Value Text -> LabelProperty
mkLabelProperty Value Text
name
= LabelProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name}
instance ToResourceProperties LabelProperty where
toResourceProperties :: LabelProperty -> ResourceProperties
toResourceProperties LabelProperty {()
Value Text
haddock_workaround_ :: LabelProperty -> ()
name :: LabelProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAFv2::WebACL.Label",
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]}
instance JSON.ToJSON LabelProperty where
toJSON :: LabelProperty -> Value
toJSON LabelProperty {()
Value Text
haddock_workaround_ :: LabelProperty -> ()
name :: LabelProperty -> Value Text
haddock_workaround_ :: ()
name :: Value 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]
instance Property "Name" LabelProperty where
type PropertyType "Name" LabelProperty = Value Prelude.Text
set :: PropertyType "Name" LabelProperty -> LabelProperty -> LabelProperty
set PropertyType "Name" LabelProperty
newValue LabelProperty {()
Value Text
haddock_workaround_ :: LabelProperty -> ()
name :: LabelProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
= LabelProperty {name :: Value Text
name = PropertyType "Name" LabelProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}