module Stratosphere.InspectorV2.CodeSecurityScanConfiguration (
module Exports, CodeSecurityScanConfiguration(..),
mkCodeSecurityScanConfiguration
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.InspectorV2.CodeSecurityScanConfiguration.CodeSecurityScanConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.InspectorV2.CodeSecurityScanConfiguration.ScopeSettingsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CodeSecurityScanConfiguration
=
CodeSecurityScanConfiguration {CodeSecurityScanConfiguration -> ()
haddock_workaround_ :: (),
CodeSecurityScanConfiguration
-> Maybe CodeSecurityScanConfigurationProperty
configuration :: (Prelude.Maybe CodeSecurityScanConfigurationProperty),
CodeSecurityScanConfiguration -> Maybe (Value Text)
level :: (Prelude.Maybe (Value Prelude.Text)),
CodeSecurityScanConfiguration -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
CodeSecurityScanConfiguration -> Maybe ScopeSettingsProperty
scopeSettings :: (Prelude.Maybe ScopeSettingsProperty),
CodeSecurityScanConfiguration -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
deriving stock (CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> Bool
(CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> Bool)
-> (CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> Bool)
-> Eq CodeSecurityScanConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> Bool
== :: CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> Bool
$c/= :: CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> Bool
/= :: CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> Bool
Prelude.Eq, Int -> CodeSecurityScanConfiguration -> ShowS
[CodeSecurityScanConfiguration] -> ShowS
CodeSecurityScanConfiguration -> String
(Int -> CodeSecurityScanConfiguration -> ShowS)
-> (CodeSecurityScanConfiguration -> String)
-> ([CodeSecurityScanConfiguration] -> ShowS)
-> Show CodeSecurityScanConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CodeSecurityScanConfiguration -> ShowS
showsPrec :: Int -> CodeSecurityScanConfiguration -> ShowS
$cshow :: CodeSecurityScanConfiguration -> String
show :: CodeSecurityScanConfiguration -> String
$cshowList :: [CodeSecurityScanConfiguration] -> ShowS
showList :: [CodeSecurityScanConfiguration] -> ShowS
Prelude.Show)
mkCodeSecurityScanConfiguration :: CodeSecurityScanConfiguration
mkCodeSecurityScanConfiguration :: CodeSecurityScanConfiguration
mkCodeSecurityScanConfiguration
= CodeSecurityScanConfiguration
{haddock_workaround_ :: ()
haddock_workaround_ = (), configuration :: Maybe CodeSecurityScanConfigurationProperty
configuration = Maybe CodeSecurityScanConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
level :: Maybe (Value Text)
level = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
scopeSettings :: Maybe ScopeSettingsProperty
scopeSettings = Maybe ScopeSettingsProperty
forall a. Maybe a
Prelude.Nothing, tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CodeSecurityScanConfiguration where
toResourceProperties :: CodeSecurityScanConfiguration -> ResourceProperties
toResourceProperties CodeSecurityScanConfiguration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CodeSecurityScanConfigurationProperty
Maybe ScopeSettingsProperty
()
haddock_workaround_ :: CodeSecurityScanConfiguration -> ()
configuration :: CodeSecurityScanConfiguration
-> Maybe CodeSecurityScanConfigurationProperty
level :: CodeSecurityScanConfiguration -> Maybe (Value Text)
name :: CodeSecurityScanConfiguration -> Maybe (Value Text)
scopeSettings :: CodeSecurityScanConfiguration -> Maybe ScopeSettingsProperty
tags :: CodeSecurityScanConfiguration -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::InspectorV2::CodeSecurityScanConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CodeSecurityScanConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Configuration" (CodeSecurityScanConfigurationProperty -> (Key, Value))
-> Maybe CodeSecurityScanConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CodeSecurityScanConfigurationProperty
configuration,
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..=) Key
"Level" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
level,
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..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name,
Key -> ScopeSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScopeSettings" (ScopeSettingsProperty -> (Key, Value))
-> Maybe ScopeSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ScopeSettingsProperty
scopeSettings,
Key -> Map Text (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..=) Key
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])}
instance JSON.ToJSON CodeSecurityScanConfiguration where
toJSON :: CodeSecurityScanConfiguration -> Value
toJSON CodeSecurityScanConfiguration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CodeSecurityScanConfigurationProperty
Maybe ScopeSettingsProperty
()
haddock_workaround_ :: CodeSecurityScanConfiguration -> ()
configuration :: CodeSecurityScanConfiguration
-> Maybe CodeSecurityScanConfigurationProperty
level :: CodeSecurityScanConfiguration -> Maybe (Value Text)
name :: CodeSecurityScanConfiguration -> Maybe (Value Text)
scopeSettings :: CodeSecurityScanConfiguration -> Maybe ScopeSettingsProperty
tags :: CodeSecurityScanConfiguration -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CodeSecurityScanConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Configuration" (CodeSecurityScanConfigurationProperty -> (Key, Value))
-> Maybe CodeSecurityScanConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CodeSecurityScanConfigurationProperty
configuration,
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..=) Key
"Level" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
level,
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..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name,
Key -> ScopeSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScopeSettings" (ScopeSettingsProperty -> (Key, Value))
-> Maybe ScopeSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ScopeSettingsProperty
scopeSettings,
Key -> Map Text (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..=) Key
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))
instance Property "Configuration" CodeSecurityScanConfiguration where
type PropertyType "Configuration" CodeSecurityScanConfiguration = CodeSecurityScanConfigurationProperty
set :: PropertyType "Configuration" CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> CodeSecurityScanConfiguration
set PropertyType "Configuration" CodeSecurityScanConfiguration
newValue CodeSecurityScanConfiguration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CodeSecurityScanConfigurationProperty
Maybe ScopeSettingsProperty
()
haddock_workaround_ :: CodeSecurityScanConfiguration -> ()
configuration :: CodeSecurityScanConfiguration
-> Maybe CodeSecurityScanConfigurationProperty
level :: CodeSecurityScanConfiguration -> Maybe (Value Text)
name :: CodeSecurityScanConfiguration -> Maybe (Value Text)
scopeSettings :: CodeSecurityScanConfiguration -> Maybe ScopeSettingsProperty
tags :: CodeSecurityScanConfiguration -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
..}
= CodeSecurityScanConfiguration
{configuration :: Maybe CodeSecurityScanConfigurationProperty
configuration = CodeSecurityScanConfigurationProperty
-> Maybe CodeSecurityScanConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Configuration" CodeSecurityScanConfiguration
CodeSecurityScanConfigurationProperty
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe ScopeSettingsProperty
()
haddock_workaround_ :: ()
level :: Maybe (Value Text)
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
level :: Maybe (Value Text)
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Level" CodeSecurityScanConfiguration where
type PropertyType "Level" CodeSecurityScanConfiguration = Value Prelude.Text
set :: PropertyType "Level" CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> CodeSecurityScanConfiguration
set PropertyType "Level" CodeSecurityScanConfiguration
newValue CodeSecurityScanConfiguration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CodeSecurityScanConfigurationProperty
Maybe ScopeSettingsProperty
()
haddock_workaround_ :: CodeSecurityScanConfiguration -> ()
configuration :: CodeSecurityScanConfiguration
-> Maybe CodeSecurityScanConfigurationProperty
level :: CodeSecurityScanConfiguration -> Maybe (Value Text)
name :: CodeSecurityScanConfiguration -> Maybe (Value Text)
scopeSettings :: CodeSecurityScanConfiguration -> Maybe ScopeSettingsProperty
tags :: CodeSecurityScanConfiguration -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
..}
= CodeSecurityScanConfiguration {level :: Maybe (Value Text)
level = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Level" CodeSecurityScanConfiguration
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CodeSecurityScanConfigurationProperty
Maybe ScopeSettingsProperty
()
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Name" CodeSecurityScanConfiguration where
type PropertyType "Name" CodeSecurityScanConfiguration = Value Prelude.Text
set :: PropertyType "Name" CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> CodeSecurityScanConfiguration
set PropertyType "Name" CodeSecurityScanConfiguration
newValue CodeSecurityScanConfiguration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CodeSecurityScanConfigurationProperty
Maybe ScopeSettingsProperty
()
haddock_workaround_ :: CodeSecurityScanConfiguration -> ()
configuration :: CodeSecurityScanConfiguration
-> Maybe CodeSecurityScanConfigurationProperty
level :: CodeSecurityScanConfiguration -> Maybe (Value Text)
name :: CodeSecurityScanConfiguration -> Maybe (Value Text)
scopeSettings :: CodeSecurityScanConfiguration -> Maybe ScopeSettingsProperty
tags :: CodeSecurityScanConfiguration -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
..}
= CodeSecurityScanConfiguration {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" CodeSecurityScanConfiguration
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CodeSecurityScanConfigurationProperty
Maybe ScopeSettingsProperty
()
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
..}
instance Property "ScopeSettings" CodeSecurityScanConfiguration where
type PropertyType "ScopeSettings" CodeSecurityScanConfiguration = ScopeSettingsProperty
set :: PropertyType "ScopeSettings" CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> CodeSecurityScanConfiguration
set PropertyType "ScopeSettings" CodeSecurityScanConfiguration
newValue CodeSecurityScanConfiguration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CodeSecurityScanConfigurationProperty
Maybe ScopeSettingsProperty
()
haddock_workaround_ :: CodeSecurityScanConfiguration -> ()
configuration :: CodeSecurityScanConfiguration
-> Maybe CodeSecurityScanConfigurationProperty
level :: CodeSecurityScanConfiguration -> Maybe (Value Text)
name :: CodeSecurityScanConfiguration -> Maybe (Value Text)
scopeSettings :: CodeSecurityScanConfiguration -> Maybe ScopeSettingsProperty
tags :: CodeSecurityScanConfiguration -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
..}
= CodeSecurityScanConfiguration
{scopeSettings :: Maybe ScopeSettingsProperty
scopeSettings = ScopeSettingsProperty -> Maybe ScopeSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ScopeSettings" CodeSecurityScanConfiguration
ScopeSettingsProperty
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CodeSecurityScanConfigurationProperty
()
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" CodeSecurityScanConfiguration where
type PropertyType "Tags" CodeSecurityScanConfiguration = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Tags" CodeSecurityScanConfiguration
-> CodeSecurityScanConfiguration -> CodeSecurityScanConfiguration
set PropertyType "Tags" CodeSecurityScanConfiguration
newValue CodeSecurityScanConfiguration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CodeSecurityScanConfigurationProperty
Maybe ScopeSettingsProperty
()
haddock_workaround_ :: CodeSecurityScanConfiguration -> ()
configuration :: CodeSecurityScanConfiguration
-> Maybe CodeSecurityScanConfigurationProperty
level :: CodeSecurityScanConfiguration -> Maybe (Value Text)
name :: CodeSecurityScanConfiguration -> Maybe (Value Text)
scopeSettings :: CodeSecurityScanConfiguration -> Maybe ScopeSettingsProperty
tags :: CodeSecurityScanConfiguration -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
tags :: Maybe (Map Text (Value Text))
..}
= CodeSecurityScanConfiguration {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" CodeSecurityScanConfiguration
newValue, Maybe (Value Text)
Maybe CodeSecurityScanConfigurationProperty
Maybe ScopeSettingsProperty
()
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
haddock_workaround_ :: ()
configuration :: Maybe CodeSecurityScanConfigurationProperty
level :: Maybe (Value Text)
name :: Maybe (Value Text)
scopeSettings :: Maybe ScopeSettingsProperty
..}