module Stratosphere.SecurityHub.AutomationRuleV2.OcsfMapFilterProperty (
        module Exports, OcsfMapFilterProperty(..), mkOcsfMapFilterProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SecurityHub.AutomationRuleV2.MapFilterProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OcsfMapFilterProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-automationrulev2-ocsfmapfilter.html>
    OcsfMapFilterProperty {OcsfMapFilterProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-automationrulev2-ocsfmapfilter.html#cfn-securityhub-automationrulev2-ocsfmapfilter-fieldname>
                           OcsfMapFilterProperty -> Value Text
fieldName :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-automationrulev2-ocsfmapfilter.html#cfn-securityhub-automationrulev2-ocsfmapfilter-filter>
                           OcsfMapFilterProperty -> MapFilterProperty
filter :: MapFilterProperty}
  deriving stock (OcsfMapFilterProperty -> OcsfMapFilterProperty -> Bool
(OcsfMapFilterProperty -> OcsfMapFilterProperty -> Bool)
-> (OcsfMapFilterProperty -> OcsfMapFilterProperty -> Bool)
-> Eq OcsfMapFilterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OcsfMapFilterProperty -> OcsfMapFilterProperty -> Bool
== :: OcsfMapFilterProperty -> OcsfMapFilterProperty -> Bool
$c/= :: OcsfMapFilterProperty -> OcsfMapFilterProperty -> Bool
/= :: OcsfMapFilterProperty -> OcsfMapFilterProperty -> Bool
Prelude.Eq, Int -> OcsfMapFilterProperty -> ShowS
[OcsfMapFilterProperty] -> ShowS
OcsfMapFilterProperty -> String
(Int -> OcsfMapFilterProperty -> ShowS)
-> (OcsfMapFilterProperty -> String)
-> ([OcsfMapFilterProperty] -> ShowS)
-> Show OcsfMapFilterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OcsfMapFilterProperty -> ShowS
showsPrec :: Int -> OcsfMapFilterProperty -> ShowS
$cshow :: OcsfMapFilterProperty -> String
show :: OcsfMapFilterProperty -> String
$cshowList :: [OcsfMapFilterProperty] -> ShowS
showList :: [OcsfMapFilterProperty] -> ShowS
Prelude.Show)
mkOcsfMapFilterProperty ::
  Value Prelude.Text -> MapFilterProperty -> OcsfMapFilterProperty
mkOcsfMapFilterProperty :: Value Text -> MapFilterProperty -> OcsfMapFilterProperty
mkOcsfMapFilterProperty Value Text
fieldName MapFilterProperty
filter
  = OcsfMapFilterProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), fieldName :: Value Text
fieldName = Value Text
fieldName, filter :: MapFilterProperty
filter = MapFilterProperty
filter}
instance ToResourceProperties OcsfMapFilterProperty where
  toResourceProperties :: OcsfMapFilterProperty -> ResourceProperties
toResourceProperties OcsfMapFilterProperty {()
Value Text
MapFilterProperty
haddock_workaround_ :: OcsfMapFilterProperty -> ()
fieldName :: OcsfMapFilterProperty -> Value Text
filter :: OcsfMapFilterProperty -> MapFilterProperty
haddock_workaround_ :: ()
fieldName :: Value Text
filter :: MapFilterProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SecurityHub::AutomationRuleV2.OcsfMapFilter",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"FieldName" 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
fieldName,
                       Key
"Filter" Key -> MapFilterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= MapFilterProperty
filter]}
instance JSON.ToJSON OcsfMapFilterProperty where
  toJSON :: OcsfMapFilterProperty -> Value
toJSON OcsfMapFilterProperty {()
Value Text
MapFilterProperty
haddock_workaround_ :: OcsfMapFilterProperty -> ()
fieldName :: OcsfMapFilterProperty -> Value Text
filter :: OcsfMapFilterProperty -> MapFilterProperty
haddock_workaround_ :: ()
fieldName :: Value Text
filter :: MapFilterProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"FieldName" 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
fieldName, Key
"Filter" Key -> MapFilterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= MapFilterProperty
filter]
instance Property "FieldName" OcsfMapFilterProperty where
  type PropertyType "FieldName" OcsfMapFilterProperty = Value Prelude.Text
  set :: PropertyType "FieldName" OcsfMapFilterProperty
-> OcsfMapFilterProperty -> OcsfMapFilterProperty
set PropertyType "FieldName" OcsfMapFilterProperty
newValue OcsfMapFilterProperty {()
Value Text
MapFilterProperty
haddock_workaround_ :: OcsfMapFilterProperty -> ()
fieldName :: OcsfMapFilterProperty -> Value Text
filter :: OcsfMapFilterProperty -> MapFilterProperty
haddock_workaround_ :: ()
fieldName :: Value Text
filter :: MapFilterProperty
..}
    = OcsfMapFilterProperty {fieldName :: Value Text
fieldName = PropertyType "FieldName" OcsfMapFilterProperty
Value Text
newValue, ()
MapFilterProperty
haddock_workaround_ :: ()
filter :: MapFilterProperty
haddock_workaround_ :: ()
filter :: MapFilterProperty
..}
instance Property "Filter" OcsfMapFilterProperty where
  type PropertyType "Filter" OcsfMapFilterProperty = MapFilterProperty
  set :: PropertyType "Filter" OcsfMapFilterProperty
-> OcsfMapFilterProperty -> OcsfMapFilterProperty
set PropertyType "Filter" OcsfMapFilterProperty
newValue OcsfMapFilterProperty {()
Value Text
MapFilterProperty
haddock_workaround_ :: OcsfMapFilterProperty -> ()
fieldName :: OcsfMapFilterProperty -> Value Text
filter :: OcsfMapFilterProperty -> MapFilterProperty
haddock_workaround_ :: ()
fieldName :: Value Text
filter :: MapFilterProperty
..}
    = OcsfMapFilterProperty {filter :: MapFilterProperty
filter = PropertyType "Filter" OcsfMapFilterProperty
MapFilterProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
fieldName :: Value Text
haddock_workaround_ :: ()
fieldName :: Value Text
..}