module Stratosphere.ImageBuilder.Image.ImageTestsConfigurationProperty (
ImageTestsConfigurationProperty(..),
mkImageTestsConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ImageTestsConfigurationProperty
=
ImageTestsConfigurationProperty {ImageTestsConfigurationProperty -> ()
haddock_workaround_ :: (),
ImageTestsConfigurationProperty -> Maybe (Value Bool)
imageTestsEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
ImageTestsConfigurationProperty -> Maybe (Value Integer)
timeoutMinutes :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (ImageTestsConfigurationProperty
-> ImageTestsConfigurationProperty -> Bool
(ImageTestsConfigurationProperty
-> ImageTestsConfigurationProperty -> Bool)
-> (ImageTestsConfigurationProperty
-> ImageTestsConfigurationProperty -> Bool)
-> Eq ImageTestsConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ImageTestsConfigurationProperty
-> ImageTestsConfigurationProperty -> Bool
== :: ImageTestsConfigurationProperty
-> ImageTestsConfigurationProperty -> Bool
$c/= :: ImageTestsConfigurationProperty
-> ImageTestsConfigurationProperty -> Bool
/= :: ImageTestsConfigurationProperty
-> ImageTestsConfigurationProperty -> Bool
Prelude.Eq, Int -> ImageTestsConfigurationProperty -> ShowS
[ImageTestsConfigurationProperty] -> ShowS
ImageTestsConfigurationProperty -> String
(Int -> ImageTestsConfigurationProperty -> ShowS)
-> (ImageTestsConfigurationProperty -> String)
-> ([ImageTestsConfigurationProperty] -> ShowS)
-> Show ImageTestsConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ImageTestsConfigurationProperty -> ShowS
showsPrec :: Int -> ImageTestsConfigurationProperty -> ShowS
$cshow :: ImageTestsConfigurationProperty -> String
show :: ImageTestsConfigurationProperty -> String
$cshowList :: [ImageTestsConfigurationProperty] -> ShowS
showList :: [ImageTestsConfigurationProperty] -> ShowS
Prelude.Show)
mkImageTestsConfigurationProperty ::
ImageTestsConfigurationProperty
mkImageTestsConfigurationProperty :: ImageTestsConfigurationProperty
mkImageTestsConfigurationProperty
= ImageTestsConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), imageTestsEnabled :: Maybe (Value Bool)
imageTestsEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
timeoutMinutes :: Maybe (Value Integer)
timeoutMinutes = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ImageTestsConfigurationProperty where
toResourceProperties :: ImageTestsConfigurationProperty -> ResourceProperties
toResourceProperties ImageTestsConfigurationProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ImageTestsConfigurationProperty -> ()
imageTestsEnabled :: ImageTestsConfigurationProperty -> Maybe (Value Bool)
timeoutMinutes :: ImageTestsConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
imageTestsEnabled :: Maybe (Value Bool)
timeoutMinutes :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ImageBuilder::Image.ImageTestsConfiguration",
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 -> 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
"ImageTestsEnabled" (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)
imageTestsEnabled,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimeoutMinutes" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
timeoutMinutes])}
instance JSON.ToJSON ImageTestsConfigurationProperty where
toJSON :: ImageTestsConfigurationProperty -> Value
toJSON ImageTestsConfigurationProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ImageTestsConfigurationProperty -> ()
imageTestsEnabled :: ImageTestsConfigurationProperty -> Maybe (Value Bool)
timeoutMinutes :: ImageTestsConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
imageTestsEnabled :: Maybe (Value Bool)
timeoutMinutes :: Maybe (Value Integer)
..}
= [(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 -> 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
"ImageTestsEnabled" (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)
imageTestsEnabled,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimeoutMinutes" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
timeoutMinutes]))
instance Property "ImageTestsEnabled" ImageTestsConfigurationProperty where
type PropertyType "ImageTestsEnabled" ImageTestsConfigurationProperty = Value Prelude.Bool
set :: PropertyType "ImageTestsEnabled" ImageTestsConfigurationProperty
-> ImageTestsConfigurationProperty
-> ImageTestsConfigurationProperty
set PropertyType "ImageTestsEnabled" ImageTestsConfigurationProperty
newValue ImageTestsConfigurationProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ImageTestsConfigurationProperty -> ()
imageTestsEnabled :: ImageTestsConfigurationProperty -> Maybe (Value Bool)
timeoutMinutes :: ImageTestsConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
imageTestsEnabled :: Maybe (Value Bool)
timeoutMinutes :: Maybe (Value Integer)
..}
= ImageTestsConfigurationProperty
{imageTestsEnabled :: Maybe (Value Bool)
imageTestsEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ImageTestsEnabled" ImageTestsConfigurationProperty
Value Bool
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
timeoutMinutes :: Maybe (Value Integer)
haddock_workaround_ :: ()
timeoutMinutes :: Maybe (Value Integer)
..}
instance Property "TimeoutMinutes" ImageTestsConfigurationProperty where
type PropertyType "TimeoutMinutes" ImageTestsConfigurationProperty = Value Prelude.Integer
set :: PropertyType "TimeoutMinutes" ImageTestsConfigurationProperty
-> ImageTestsConfigurationProperty
-> ImageTestsConfigurationProperty
set PropertyType "TimeoutMinutes" ImageTestsConfigurationProperty
newValue ImageTestsConfigurationProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ImageTestsConfigurationProperty -> ()
imageTestsEnabled :: ImageTestsConfigurationProperty -> Maybe (Value Bool)
timeoutMinutes :: ImageTestsConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
imageTestsEnabled :: Maybe (Value Bool)
timeoutMinutes :: Maybe (Value Integer)
..}
= ImageTestsConfigurationProperty
{timeoutMinutes :: Maybe (Value Integer)
timeoutMinutes = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TimeoutMinutes" ImageTestsConfigurationProperty
Value Integer
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
imageTestsEnabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
imageTestsEnabled :: Maybe (Value Bool)
..}