module Stratosphere.SecurityHub.Insight.StringFilterProperty (
StringFilterProperty(..), mkStringFilterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StringFilterProperty
=
StringFilterProperty {StringFilterProperty -> ()
haddock_workaround_ :: (),
StringFilterProperty -> Value Text
comparison :: (Value Prelude.Text),
StringFilterProperty -> Value Text
value :: (Value Prelude.Text)}
deriving stock (StringFilterProperty -> StringFilterProperty -> Bool
(StringFilterProperty -> StringFilterProperty -> Bool)
-> (StringFilterProperty -> StringFilterProperty -> Bool)
-> Eq StringFilterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StringFilterProperty -> StringFilterProperty -> Bool
== :: StringFilterProperty -> StringFilterProperty -> Bool
$c/= :: StringFilterProperty -> StringFilterProperty -> Bool
/= :: StringFilterProperty -> StringFilterProperty -> Bool
Prelude.Eq, Int -> StringFilterProperty -> ShowS
[StringFilterProperty] -> ShowS
StringFilterProperty -> String
(Int -> StringFilterProperty -> ShowS)
-> (StringFilterProperty -> String)
-> ([StringFilterProperty] -> ShowS)
-> Show StringFilterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StringFilterProperty -> ShowS
showsPrec :: Int -> StringFilterProperty -> ShowS
$cshow :: StringFilterProperty -> String
show :: StringFilterProperty -> String
$cshowList :: [StringFilterProperty] -> ShowS
showList :: [StringFilterProperty] -> ShowS
Prelude.Show)
mkStringFilterProperty ::
Value Prelude.Text -> Value Prelude.Text -> StringFilterProperty
mkStringFilterProperty :: Value Text -> Value Text -> StringFilterProperty
mkStringFilterProperty Value Text
comparison Value Text
value
= StringFilterProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), comparison :: Value Text
comparison = Value Text
comparison, value :: Value Text
value = Value Text
value}
instance ToResourceProperties StringFilterProperty where
toResourceProperties :: StringFilterProperty -> ResourceProperties
toResourceProperties StringFilterProperty {()
Value Text
haddock_workaround_ :: StringFilterProperty -> ()
comparison :: StringFilterProperty -> Value Text
value :: StringFilterProperty -> Value Text
haddock_workaround_ :: ()
comparison :: Value Text
value :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SecurityHub::Insight.StringFilter",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Comparison" 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
comparison,
Key
"Value" 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
value]}
instance JSON.ToJSON StringFilterProperty where
toJSON :: StringFilterProperty -> Value
toJSON StringFilterProperty {()
Value Text
haddock_workaround_ :: StringFilterProperty -> ()
comparison :: StringFilterProperty -> Value Text
value :: StringFilterProperty -> Value Text
haddock_workaround_ :: ()
comparison :: Value Text
value :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Comparison" 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
comparison, Key
"Value" 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
value]
instance Property "Comparison" StringFilterProperty where
type PropertyType "Comparison" StringFilterProperty = Value Prelude.Text
set :: PropertyType "Comparison" StringFilterProperty
-> StringFilterProperty -> StringFilterProperty
set PropertyType "Comparison" StringFilterProperty
newValue StringFilterProperty {()
Value Text
haddock_workaround_ :: StringFilterProperty -> ()
comparison :: StringFilterProperty -> Value Text
value :: StringFilterProperty -> Value Text
haddock_workaround_ :: ()
comparison :: Value Text
value :: Value Text
..}
= StringFilterProperty {comparison :: Value Text
comparison = PropertyType "Comparison" StringFilterProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" StringFilterProperty where
type PropertyType "Value" StringFilterProperty = Value Prelude.Text
set :: PropertyType "Value" StringFilterProperty
-> StringFilterProperty -> StringFilterProperty
set PropertyType "Value" StringFilterProperty
newValue StringFilterProperty {()
Value Text
haddock_workaround_ :: StringFilterProperty -> ()
comparison :: StringFilterProperty -> Value Text
value :: StringFilterProperty -> Value Text
haddock_workaround_ :: ()
comparison :: Value Text
value :: Value Text
..}
= StringFilterProperty {value :: Value Text
value = PropertyType "Value" StringFilterProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
comparison :: Value Text
haddock_workaround_ :: ()
comparison :: Value Text
..}