module Stratosphere.InspectorV2.CodeSecurityIntegration (
module Exports, CodeSecurityIntegration(..),
mkCodeSecurityIntegration
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.InspectorV2.CodeSecurityIntegration.CreateDetailsProperty as Exports
import {-# SOURCE #-} Stratosphere.InspectorV2.CodeSecurityIntegration.UpdateDetailsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CodeSecurityIntegration
=
CodeSecurityIntegration {CodeSecurityIntegration -> ()
haddock_workaround_ :: (),
CodeSecurityIntegration -> Maybe CreateDetailsProperty
createIntegrationDetails :: (Prelude.Maybe CreateDetailsProperty),
CodeSecurityIntegration -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
CodeSecurityIntegration -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
CodeSecurityIntegration -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text)),
CodeSecurityIntegration -> Maybe UpdateDetailsProperty
updateIntegrationDetails :: (Prelude.Maybe UpdateDetailsProperty)}
deriving stock (CodeSecurityIntegration -> CodeSecurityIntegration -> Bool
(CodeSecurityIntegration -> CodeSecurityIntegration -> Bool)
-> (CodeSecurityIntegration -> CodeSecurityIntegration -> Bool)
-> Eq CodeSecurityIntegration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CodeSecurityIntegration -> CodeSecurityIntegration -> Bool
== :: CodeSecurityIntegration -> CodeSecurityIntegration -> Bool
$c/= :: CodeSecurityIntegration -> CodeSecurityIntegration -> Bool
/= :: CodeSecurityIntegration -> CodeSecurityIntegration -> Bool
Prelude.Eq, Int -> CodeSecurityIntegration -> ShowS
[CodeSecurityIntegration] -> ShowS
CodeSecurityIntegration -> String
(Int -> CodeSecurityIntegration -> ShowS)
-> (CodeSecurityIntegration -> String)
-> ([CodeSecurityIntegration] -> ShowS)
-> Show CodeSecurityIntegration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CodeSecurityIntegration -> ShowS
showsPrec :: Int -> CodeSecurityIntegration -> ShowS
$cshow :: CodeSecurityIntegration -> String
show :: CodeSecurityIntegration -> String
$cshowList :: [CodeSecurityIntegration] -> ShowS
showList :: [CodeSecurityIntegration] -> ShowS
Prelude.Show)
mkCodeSecurityIntegration :: CodeSecurityIntegration
mkCodeSecurityIntegration :: CodeSecurityIntegration
mkCodeSecurityIntegration
= CodeSecurityIntegration
{haddock_workaround_ :: ()
haddock_workaround_ = (),
createIntegrationDetails :: Maybe CreateDetailsProperty
createIntegrationDetails = Maybe CreateDetailsProperty
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing, type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
updateIntegrationDetails :: Maybe UpdateDetailsProperty
updateIntegrationDetails = Maybe UpdateDetailsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CodeSecurityIntegration where
toResourceProperties :: CodeSecurityIntegration -> ResourceProperties
toResourceProperties CodeSecurityIntegration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CreateDetailsProperty
Maybe UpdateDetailsProperty
()
haddock_workaround_ :: CodeSecurityIntegration -> ()
createIntegrationDetails :: CodeSecurityIntegration -> Maybe CreateDetailsProperty
name :: CodeSecurityIntegration -> Maybe (Value Text)
tags :: CodeSecurityIntegration -> Maybe (Map Text (Value Text))
type' :: CodeSecurityIntegration -> Maybe (Value Text)
updateIntegrationDetails :: CodeSecurityIntegration -> Maybe UpdateDetailsProperty
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::InspectorV2::CodeSecurityIntegration",
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 -> CreateDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CreateIntegrationDetails"
(CreateDetailsProperty -> (Key, Value))
-> Maybe CreateDetailsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CreateDetailsProperty
createIntegrationDetails,
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 -> 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,
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
"Type" (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)
type',
Key -> UpdateDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UpdateIntegrationDetails"
(UpdateDetailsProperty -> (Key, Value))
-> Maybe UpdateDetailsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateDetailsProperty
updateIntegrationDetails])}
instance JSON.ToJSON CodeSecurityIntegration where
toJSON :: CodeSecurityIntegration -> Value
toJSON CodeSecurityIntegration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CreateDetailsProperty
Maybe UpdateDetailsProperty
()
haddock_workaround_ :: CodeSecurityIntegration -> ()
createIntegrationDetails :: CodeSecurityIntegration -> Maybe CreateDetailsProperty
name :: CodeSecurityIntegration -> Maybe (Value Text)
tags :: CodeSecurityIntegration -> Maybe (Map Text (Value Text))
type' :: CodeSecurityIntegration -> Maybe (Value Text)
updateIntegrationDetails :: CodeSecurityIntegration -> Maybe UpdateDetailsProperty
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
..}
= [(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 -> CreateDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CreateIntegrationDetails"
(CreateDetailsProperty -> (Key, Value))
-> Maybe CreateDetailsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CreateDetailsProperty
createIntegrationDetails,
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 -> 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,
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
"Type" (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)
type',
Key -> UpdateDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UpdateIntegrationDetails"
(UpdateDetailsProperty -> (Key, Value))
-> Maybe UpdateDetailsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateDetailsProperty
updateIntegrationDetails]))
instance Property "CreateIntegrationDetails" CodeSecurityIntegration where
type PropertyType "CreateIntegrationDetails" CodeSecurityIntegration = CreateDetailsProperty
set :: PropertyType "CreateIntegrationDetails" CodeSecurityIntegration
-> CodeSecurityIntegration -> CodeSecurityIntegration
set PropertyType "CreateIntegrationDetails" CodeSecurityIntegration
newValue CodeSecurityIntegration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CreateDetailsProperty
Maybe UpdateDetailsProperty
()
haddock_workaround_ :: CodeSecurityIntegration -> ()
createIntegrationDetails :: CodeSecurityIntegration -> Maybe CreateDetailsProperty
name :: CodeSecurityIntegration -> Maybe (Value Text)
tags :: CodeSecurityIntegration -> Maybe (Map Text (Value Text))
type' :: CodeSecurityIntegration -> Maybe (Value Text)
updateIntegrationDetails :: CodeSecurityIntegration -> Maybe UpdateDetailsProperty
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
..}
= CodeSecurityIntegration
{createIntegrationDetails :: Maybe CreateDetailsProperty
createIntegrationDetails = CreateDetailsProperty -> Maybe CreateDetailsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CreateIntegrationDetails" CodeSecurityIntegration
CreateDetailsProperty
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe UpdateDetailsProperty
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
haddock_workaround_ :: ()
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
..}
instance Property "Name" CodeSecurityIntegration where
type PropertyType "Name" CodeSecurityIntegration = Value Prelude.Text
set :: PropertyType "Name" CodeSecurityIntegration
-> CodeSecurityIntegration -> CodeSecurityIntegration
set PropertyType "Name" CodeSecurityIntegration
newValue CodeSecurityIntegration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CreateDetailsProperty
Maybe UpdateDetailsProperty
()
haddock_workaround_ :: CodeSecurityIntegration -> ()
createIntegrationDetails :: CodeSecurityIntegration -> Maybe CreateDetailsProperty
name :: CodeSecurityIntegration -> Maybe (Value Text)
tags :: CodeSecurityIntegration -> Maybe (Map Text (Value Text))
type' :: CodeSecurityIntegration -> Maybe (Value Text)
updateIntegrationDetails :: CodeSecurityIntegration -> Maybe UpdateDetailsProperty
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
..}
= CodeSecurityIntegration {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" CodeSecurityIntegration
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CreateDetailsProperty
Maybe UpdateDetailsProperty
()
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
..}
instance Property "Tags" CodeSecurityIntegration where
type PropertyType "Tags" CodeSecurityIntegration = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Tags" CodeSecurityIntegration
-> CodeSecurityIntegration -> CodeSecurityIntegration
set PropertyType "Tags" CodeSecurityIntegration
newValue CodeSecurityIntegration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CreateDetailsProperty
Maybe UpdateDetailsProperty
()
haddock_workaround_ :: CodeSecurityIntegration -> ()
createIntegrationDetails :: CodeSecurityIntegration -> Maybe CreateDetailsProperty
name :: CodeSecurityIntegration -> Maybe (Value Text)
tags :: CodeSecurityIntegration -> Maybe (Map Text (Value Text))
type' :: CodeSecurityIntegration -> Maybe (Value Text)
updateIntegrationDetails :: CodeSecurityIntegration -> Maybe UpdateDetailsProperty
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
..}
= CodeSecurityIntegration {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" CodeSecurityIntegration
newValue, Maybe (Value Text)
Maybe CreateDetailsProperty
Maybe UpdateDetailsProperty
()
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
..}
instance Property "Type" CodeSecurityIntegration where
type PropertyType "Type" CodeSecurityIntegration = Value Prelude.Text
set :: PropertyType "Type" CodeSecurityIntegration
-> CodeSecurityIntegration -> CodeSecurityIntegration
set PropertyType "Type" CodeSecurityIntegration
newValue CodeSecurityIntegration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CreateDetailsProperty
Maybe UpdateDetailsProperty
()
haddock_workaround_ :: CodeSecurityIntegration -> ()
createIntegrationDetails :: CodeSecurityIntegration -> Maybe CreateDetailsProperty
name :: CodeSecurityIntegration -> Maybe (Value Text)
tags :: CodeSecurityIntegration -> Maybe (Map Text (Value Text))
type' :: CodeSecurityIntegration -> Maybe (Value Text)
updateIntegrationDetails :: CodeSecurityIntegration -> Maybe UpdateDetailsProperty
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
..}
= CodeSecurityIntegration {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" CodeSecurityIntegration
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CreateDetailsProperty
Maybe UpdateDetailsProperty
()
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
updateIntegrationDetails :: Maybe UpdateDetailsProperty
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
updateIntegrationDetails :: Maybe UpdateDetailsProperty
..}
instance Property "UpdateIntegrationDetails" CodeSecurityIntegration where
type PropertyType "UpdateIntegrationDetails" CodeSecurityIntegration = UpdateDetailsProperty
set :: PropertyType "UpdateIntegrationDetails" CodeSecurityIntegration
-> CodeSecurityIntegration -> CodeSecurityIntegration
set PropertyType "UpdateIntegrationDetails" CodeSecurityIntegration
newValue CodeSecurityIntegration {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CreateDetailsProperty
Maybe UpdateDetailsProperty
()
haddock_workaround_ :: CodeSecurityIntegration -> ()
createIntegrationDetails :: CodeSecurityIntegration -> Maybe CreateDetailsProperty
name :: CodeSecurityIntegration -> Maybe (Value Text)
tags :: CodeSecurityIntegration -> Maybe (Map Text (Value Text))
type' :: CodeSecurityIntegration -> Maybe (Value Text)
updateIntegrationDetails :: CodeSecurityIntegration -> Maybe UpdateDetailsProperty
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
updateIntegrationDetails :: Maybe UpdateDetailsProperty
..}
= CodeSecurityIntegration
{updateIntegrationDetails :: Maybe UpdateDetailsProperty
updateIntegrationDetails = UpdateDetailsProperty -> Maybe UpdateDetailsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UpdateIntegrationDetails" CodeSecurityIntegration
UpdateDetailsProperty
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe CreateDetailsProperty
()
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
createIntegrationDetails :: Maybe CreateDetailsProperty
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
type' :: Maybe (Value Text)
..}