module Stratosphere.AppRunner.Service.CodeConfigurationProperty (
module Exports, CodeConfigurationProperty(..),
mkCodeConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppRunner.Service.CodeConfigurationValuesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CodeConfigurationProperty
=
CodeConfigurationProperty {CodeConfigurationProperty -> ()
haddock_workaround_ :: (),
CodeConfigurationProperty -> Maybe CodeConfigurationValuesProperty
codeConfigurationValues :: (Prelude.Maybe CodeConfigurationValuesProperty),
CodeConfigurationProperty -> Value Text
configurationSource :: (Value Prelude.Text)}
deriving stock (CodeConfigurationProperty -> CodeConfigurationProperty -> Bool
(CodeConfigurationProperty -> CodeConfigurationProperty -> Bool)
-> (CodeConfigurationProperty -> CodeConfigurationProperty -> Bool)
-> Eq CodeConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CodeConfigurationProperty -> CodeConfigurationProperty -> Bool
== :: CodeConfigurationProperty -> CodeConfigurationProperty -> Bool
$c/= :: CodeConfigurationProperty -> CodeConfigurationProperty -> Bool
/= :: CodeConfigurationProperty -> CodeConfigurationProperty -> Bool
Prelude.Eq, Int -> CodeConfigurationProperty -> ShowS
[CodeConfigurationProperty] -> ShowS
CodeConfigurationProperty -> String
(Int -> CodeConfigurationProperty -> ShowS)
-> (CodeConfigurationProperty -> String)
-> ([CodeConfigurationProperty] -> ShowS)
-> Show CodeConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CodeConfigurationProperty -> ShowS
showsPrec :: Int -> CodeConfigurationProperty -> ShowS
$cshow :: CodeConfigurationProperty -> String
show :: CodeConfigurationProperty -> String
$cshowList :: [CodeConfigurationProperty] -> ShowS
showList :: [CodeConfigurationProperty] -> ShowS
Prelude.Show)
mkCodeConfigurationProperty ::
Value Prelude.Text -> CodeConfigurationProperty
mkCodeConfigurationProperty :: Value Text -> CodeConfigurationProperty
mkCodeConfigurationProperty Value Text
configurationSource
= CodeConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
configurationSource :: Value Text
configurationSource = Value Text
configurationSource,
codeConfigurationValues :: Maybe CodeConfigurationValuesProperty
codeConfigurationValues = Maybe CodeConfigurationValuesProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CodeConfigurationProperty where
toResourceProperties :: CodeConfigurationProperty -> ResourceProperties
toResourceProperties CodeConfigurationProperty {Maybe CodeConfigurationValuesProperty
()
Value Text
haddock_workaround_ :: CodeConfigurationProperty -> ()
codeConfigurationValues :: CodeConfigurationProperty -> Maybe CodeConfigurationValuesProperty
configurationSource :: CodeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
codeConfigurationValues :: Maybe CodeConfigurationValuesProperty
configurationSource :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppRunner::Service.CodeConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ConfigurationSource" 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
configurationSource]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CodeConfigurationValuesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CodeConfigurationValues"
(CodeConfigurationValuesProperty -> (Key, Value))
-> Maybe CodeConfigurationValuesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CodeConfigurationValuesProperty
codeConfigurationValues]))}
instance JSON.ToJSON CodeConfigurationProperty where
toJSON :: CodeConfigurationProperty -> Value
toJSON CodeConfigurationProperty {Maybe CodeConfigurationValuesProperty
()
Value Text
haddock_workaround_ :: CodeConfigurationProperty -> ()
codeConfigurationValues :: CodeConfigurationProperty -> Maybe CodeConfigurationValuesProperty
configurationSource :: CodeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
codeConfigurationValues :: Maybe CodeConfigurationValuesProperty
configurationSource :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ConfigurationSource" 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
configurationSource]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CodeConfigurationValuesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CodeConfigurationValues"
(CodeConfigurationValuesProperty -> (Key, Value))
-> Maybe CodeConfigurationValuesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CodeConfigurationValuesProperty
codeConfigurationValues])))
instance Property "CodeConfigurationValues" CodeConfigurationProperty where
type PropertyType "CodeConfigurationValues" CodeConfigurationProperty = CodeConfigurationValuesProperty
set :: PropertyType "CodeConfigurationValues" CodeConfigurationProperty
-> CodeConfigurationProperty -> CodeConfigurationProperty
set PropertyType "CodeConfigurationValues" CodeConfigurationProperty
newValue CodeConfigurationProperty {Maybe CodeConfigurationValuesProperty
()
Value Text
haddock_workaround_ :: CodeConfigurationProperty -> ()
codeConfigurationValues :: CodeConfigurationProperty -> Maybe CodeConfigurationValuesProperty
configurationSource :: CodeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
codeConfigurationValues :: Maybe CodeConfigurationValuesProperty
configurationSource :: Value Text
..}
= CodeConfigurationProperty
{codeConfigurationValues :: Maybe CodeConfigurationValuesProperty
codeConfigurationValues = CodeConfigurationValuesProperty
-> Maybe CodeConfigurationValuesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CodeConfigurationValues" CodeConfigurationProperty
CodeConfigurationValuesProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
configurationSource :: Value Text
haddock_workaround_ :: ()
configurationSource :: Value Text
..}
instance Property "ConfigurationSource" CodeConfigurationProperty where
type PropertyType "ConfigurationSource" CodeConfigurationProperty = Value Prelude.Text
set :: PropertyType "ConfigurationSource" CodeConfigurationProperty
-> CodeConfigurationProperty -> CodeConfigurationProperty
set PropertyType "ConfigurationSource" CodeConfigurationProperty
newValue CodeConfigurationProperty {Maybe CodeConfigurationValuesProperty
()
Value Text
haddock_workaround_ :: CodeConfigurationProperty -> ()
codeConfigurationValues :: CodeConfigurationProperty -> Maybe CodeConfigurationValuesProperty
configurationSource :: CodeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
codeConfigurationValues :: Maybe CodeConfigurationValuesProperty
configurationSource :: Value Text
..}
= CodeConfigurationProperty {configurationSource :: Value Text
configurationSource = PropertyType "ConfigurationSource" CodeConfigurationProperty
Value Text
newValue, Maybe CodeConfigurationValuesProperty
()
haddock_workaround_ :: ()
codeConfigurationValues :: Maybe CodeConfigurationValuesProperty
haddock_workaround_ :: ()
codeConfigurationValues :: Maybe CodeConfigurationValuesProperty
..}