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