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