module Stratosphere.ImageBuilder.Image.ImageScanningConfigurationProperty (
module Exports, ImageScanningConfigurationProperty(..),
mkImageScanningConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ImageBuilder.Image.EcrConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ImageScanningConfigurationProperty
=
ImageScanningConfigurationProperty {ImageScanningConfigurationProperty -> ()
haddock_workaround_ :: (),
ImageScanningConfigurationProperty
-> Maybe EcrConfigurationProperty
ecrConfiguration :: (Prelude.Maybe EcrConfigurationProperty),
ImageScanningConfigurationProperty -> Maybe (Value Bool)
imageScanningEnabled :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (ImageScanningConfigurationProperty
-> ImageScanningConfigurationProperty -> Bool
(ImageScanningConfigurationProperty
-> ImageScanningConfigurationProperty -> Bool)
-> (ImageScanningConfigurationProperty
-> ImageScanningConfigurationProperty -> Bool)
-> Eq ImageScanningConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ImageScanningConfigurationProperty
-> ImageScanningConfigurationProperty -> Bool
== :: ImageScanningConfigurationProperty
-> ImageScanningConfigurationProperty -> Bool
$c/= :: ImageScanningConfigurationProperty
-> ImageScanningConfigurationProperty -> Bool
/= :: ImageScanningConfigurationProperty
-> ImageScanningConfigurationProperty -> Bool
Prelude.Eq, Int -> ImageScanningConfigurationProperty -> ShowS
[ImageScanningConfigurationProperty] -> ShowS
ImageScanningConfigurationProperty -> String
(Int -> ImageScanningConfigurationProperty -> ShowS)
-> (ImageScanningConfigurationProperty -> String)
-> ([ImageScanningConfigurationProperty] -> ShowS)
-> Show ImageScanningConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ImageScanningConfigurationProperty -> ShowS
showsPrec :: Int -> ImageScanningConfigurationProperty -> ShowS
$cshow :: ImageScanningConfigurationProperty -> String
show :: ImageScanningConfigurationProperty -> String
$cshowList :: [ImageScanningConfigurationProperty] -> ShowS
showList :: [ImageScanningConfigurationProperty] -> ShowS
Prelude.Show)
mkImageScanningConfigurationProperty ::
ImageScanningConfigurationProperty
mkImageScanningConfigurationProperty :: ImageScanningConfigurationProperty
mkImageScanningConfigurationProperty
= ImageScanningConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), ecrConfiguration :: Maybe EcrConfigurationProperty
ecrConfiguration = Maybe EcrConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
imageScanningEnabled :: Maybe (Value Bool)
imageScanningEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ImageScanningConfigurationProperty where
toResourceProperties :: ImageScanningConfigurationProperty -> ResourceProperties
toResourceProperties ImageScanningConfigurationProperty {Maybe (Value Bool)
Maybe EcrConfigurationProperty
()
haddock_workaround_ :: ImageScanningConfigurationProperty -> ()
ecrConfiguration :: ImageScanningConfigurationProperty
-> Maybe EcrConfigurationProperty
imageScanningEnabled :: ImageScanningConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
ecrConfiguration :: Maybe EcrConfigurationProperty
imageScanningEnabled :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ImageBuilder::Image.ImageScanningConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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 -> EcrConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EcrConfiguration" (EcrConfigurationProperty -> (Key, Value))
-> Maybe EcrConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EcrConfigurationProperty
ecrConfiguration,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImageScanningEnabled"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
imageScanningEnabled])}
instance JSON.ToJSON ImageScanningConfigurationProperty where
toJSON :: ImageScanningConfigurationProperty -> Value
toJSON ImageScanningConfigurationProperty {Maybe (Value Bool)
Maybe EcrConfigurationProperty
()
haddock_workaround_ :: ImageScanningConfigurationProperty -> ()
ecrConfiguration :: ImageScanningConfigurationProperty
-> Maybe EcrConfigurationProperty
imageScanningEnabled :: ImageScanningConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
ecrConfiguration :: Maybe EcrConfigurationProperty
imageScanningEnabled :: Maybe (Value Bool)
..}
= [(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 -> EcrConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EcrConfiguration" (EcrConfigurationProperty -> (Key, Value))
-> Maybe EcrConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EcrConfigurationProperty
ecrConfiguration,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImageScanningEnabled"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
imageScanningEnabled]))
instance Property "EcrConfiguration" ImageScanningConfigurationProperty where
type PropertyType "EcrConfiguration" ImageScanningConfigurationProperty = EcrConfigurationProperty
set :: PropertyType "EcrConfiguration" ImageScanningConfigurationProperty
-> ImageScanningConfigurationProperty
-> ImageScanningConfigurationProperty
set PropertyType "EcrConfiguration" ImageScanningConfigurationProperty
newValue ImageScanningConfigurationProperty {Maybe (Value Bool)
Maybe EcrConfigurationProperty
()
haddock_workaround_ :: ImageScanningConfigurationProperty -> ()
ecrConfiguration :: ImageScanningConfigurationProperty
-> Maybe EcrConfigurationProperty
imageScanningEnabled :: ImageScanningConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
ecrConfiguration :: Maybe EcrConfigurationProperty
imageScanningEnabled :: Maybe (Value Bool)
..}
= ImageScanningConfigurationProperty
{ecrConfiguration :: Maybe EcrConfigurationProperty
ecrConfiguration = EcrConfigurationProperty -> Maybe EcrConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EcrConfiguration" ImageScanningConfigurationProperty
EcrConfigurationProperty
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
imageScanningEnabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
imageScanningEnabled :: Maybe (Value Bool)
..}
instance Property "ImageScanningEnabled" ImageScanningConfigurationProperty where
type PropertyType "ImageScanningEnabled" ImageScanningConfigurationProperty = Value Prelude.Bool
set :: PropertyType
"ImageScanningEnabled" ImageScanningConfigurationProperty
-> ImageScanningConfigurationProperty
-> ImageScanningConfigurationProperty
set PropertyType
"ImageScanningEnabled" ImageScanningConfigurationProperty
newValue ImageScanningConfigurationProperty {Maybe (Value Bool)
Maybe EcrConfigurationProperty
()
haddock_workaround_ :: ImageScanningConfigurationProperty -> ()
ecrConfiguration :: ImageScanningConfigurationProperty
-> Maybe EcrConfigurationProperty
imageScanningEnabled :: ImageScanningConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
ecrConfiguration :: Maybe EcrConfigurationProperty
imageScanningEnabled :: Maybe (Value Bool)
..}
= ImageScanningConfigurationProperty
{imageScanningEnabled :: Maybe (Value Bool)
imageScanningEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ImageScanningEnabled" ImageScanningConfigurationProperty
Value Bool
newValue, Maybe EcrConfigurationProperty
()
haddock_workaround_ :: ()
ecrConfiguration :: Maybe EcrConfigurationProperty
haddock_workaround_ :: ()
ecrConfiguration :: Maybe EcrConfigurationProperty
..}