module Stratosphere.SecurityHub.Insight (
module Exports, Insight(..), mkInsight
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SecurityHub.Insight.AwsSecurityFindingFiltersProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Insight
=
Insight {Insight -> ()
haddock_workaround_ :: (),
Insight -> AwsSecurityFindingFiltersProperty
filters :: AwsSecurityFindingFiltersProperty,
Insight -> Value Text
groupByAttribute :: (Value Prelude.Text),
Insight -> Value Text
name :: (Value Prelude.Text)}
deriving stock (Insight -> Insight -> Bool
(Insight -> Insight -> Bool)
-> (Insight -> Insight -> Bool) -> Eq Insight
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Insight -> Insight -> Bool
== :: Insight -> Insight -> Bool
$c/= :: Insight -> Insight -> Bool
/= :: Insight -> Insight -> Bool
Prelude.Eq, Int -> Insight -> ShowS
[Insight] -> ShowS
Insight -> String
(Int -> Insight -> ShowS)
-> (Insight -> String) -> ([Insight] -> ShowS) -> Show Insight
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Insight -> ShowS
showsPrec :: Int -> Insight -> ShowS
$cshow :: Insight -> String
show :: Insight -> String
$cshowList :: [Insight] -> ShowS
showList :: [Insight] -> ShowS
Prelude.Show)
mkInsight ::
AwsSecurityFindingFiltersProperty
-> Value Prelude.Text -> Value Prelude.Text -> Insight
mkInsight :: AwsSecurityFindingFiltersProperty
-> Value Text -> Value Text -> Insight
mkInsight AwsSecurityFindingFiltersProperty
filters Value Text
groupByAttribute Value Text
name
= Insight
{haddock_workaround_ :: ()
haddock_workaround_ = (), filters :: AwsSecurityFindingFiltersProperty
filters = AwsSecurityFindingFiltersProperty
filters,
groupByAttribute :: Value Text
groupByAttribute = Value Text
groupByAttribute, name :: Value Text
name = Value Text
name}
instance ToResourceProperties Insight where
toResourceProperties :: Insight -> ResourceProperties
toResourceProperties Insight {()
Value Text
AwsSecurityFindingFiltersProperty
haddock_workaround_ :: Insight -> ()
filters :: Insight -> AwsSecurityFindingFiltersProperty
groupByAttribute :: Insight -> Value Text
name :: Insight -> Value Text
haddock_workaround_ :: ()
filters :: AwsSecurityFindingFiltersProperty
groupByAttribute :: Value Text
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SecurityHub::Insight",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Filters" Key -> AwsSecurityFindingFiltersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AwsSecurityFindingFiltersProperty
filters,
Key
"GroupByAttribute" 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
groupByAttribute, Key
"Name" 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
name]}
instance JSON.ToJSON Insight where
toJSON :: Insight -> Value
toJSON Insight {()
Value Text
AwsSecurityFindingFiltersProperty
haddock_workaround_ :: Insight -> ()
filters :: Insight -> AwsSecurityFindingFiltersProperty
groupByAttribute :: Insight -> Value Text
name :: Insight -> Value Text
haddock_workaround_ :: ()
filters :: AwsSecurityFindingFiltersProperty
groupByAttribute :: Value Text
name :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Filters" Key -> AwsSecurityFindingFiltersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AwsSecurityFindingFiltersProperty
filters,
Key
"GroupByAttribute" 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
groupByAttribute, Key
"Name" 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
name]
instance Property "Filters" Insight where
type PropertyType "Filters" Insight = AwsSecurityFindingFiltersProperty
set :: PropertyType "Filters" Insight -> Insight -> Insight
set PropertyType "Filters" Insight
newValue Insight {()
Value Text
AwsSecurityFindingFiltersProperty
haddock_workaround_ :: Insight -> ()
filters :: Insight -> AwsSecurityFindingFiltersProperty
groupByAttribute :: Insight -> Value Text
name :: Insight -> Value Text
haddock_workaround_ :: ()
filters :: AwsSecurityFindingFiltersProperty
groupByAttribute :: Value Text
name :: Value Text
..} = Insight {filters :: AwsSecurityFindingFiltersProperty
filters = PropertyType "Filters" Insight
AwsSecurityFindingFiltersProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
groupByAttribute :: Value Text
name :: Value Text
haddock_workaround_ :: ()
groupByAttribute :: Value Text
name :: Value Text
..}
instance Property "GroupByAttribute" Insight where
type PropertyType "GroupByAttribute" Insight = Value Prelude.Text
set :: PropertyType "GroupByAttribute" Insight -> Insight -> Insight
set PropertyType "GroupByAttribute" Insight
newValue Insight {()
Value Text
AwsSecurityFindingFiltersProperty
haddock_workaround_ :: Insight -> ()
filters :: Insight -> AwsSecurityFindingFiltersProperty
groupByAttribute :: Insight -> Value Text
name :: Insight -> Value Text
haddock_workaround_ :: ()
filters :: AwsSecurityFindingFiltersProperty
groupByAttribute :: Value Text
name :: Value Text
..}
= Insight {groupByAttribute :: Value Text
groupByAttribute = PropertyType "GroupByAttribute" Insight
Value Text
newValue, ()
Value Text
AwsSecurityFindingFiltersProperty
haddock_workaround_ :: ()
filters :: AwsSecurityFindingFiltersProperty
name :: Value Text
haddock_workaround_ :: ()
filters :: AwsSecurityFindingFiltersProperty
name :: Value Text
..}
instance Property "Name" Insight where
type PropertyType "Name" Insight = Value Prelude.Text
set :: PropertyType "Name" Insight -> Insight -> Insight
set PropertyType "Name" Insight
newValue Insight {()
Value Text
AwsSecurityFindingFiltersProperty
haddock_workaround_ :: Insight -> ()
filters :: Insight -> AwsSecurityFindingFiltersProperty
groupByAttribute :: Insight -> Value Text
name :: Insight -> Value Text
haddock_workaround_ :: ()
filters :: AwsSecurityFindingFiltersProperty
groupByAttribute :: Value Text
name :: Value Text
..} = Insight {name :: Value Text
name = PropertyType "Name" Insight
Value Text
newValue, ()
Value Text
AwsSecurityFindingFiltersProperty
haddock_workaround_ :: ()
filters :: AwsSecurityFindingFiltersProperty
groupByAttribute :: Value Text
haddock_workaround_ :: ()
filters :: AwsSecurityFindingFiltersProperty
groupByAttribute :: Value Text
..}