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