module Stratosphere.AppRunner.Service.SourceConfigurationProperty (
module Exports, SourceConfigurationProperty(..),
mkSourceConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppRunner.Service.AuthenticationConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.AppRunner.Service.CodeRepositoryProperty as Exports
import {-# SOURCE #-} Stratosphere.AppRunner.Service.ImageRepositoryProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SourceConfigurationProperty
=
SourceConfigurationProperty {SourceConfigurationProperty -> ()
haddock_workaround_ :: (),
SourceConfigurationProperty
-> Maybe AuthenticationConfigurationProperty
authenticationConfiguration :: (Prelude.Maybe AuthenticationConfigurationProperty),
SourceConfigurationProperty -> Maybe (Value Bool)
autoDeploymentsEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
SourceConfigurationProperty -> Maybe CodeRepositoryProperty
codeRepository :: (Prelude.Maybe CodeRepositoryProperty),
SourceConfigurationProperty -> Maybe ImageRepositoryProperty
imageRepository :: (Prelude.Maybe ImageRepositoryProperty)}
deriving stock (SourceConfigurationProperty -> SourceConfigurationProperty -> Bool
(SourceConfigurationProperty
-> SourceConfigurationProperty -> Bool)
-> (SourceConfigurationProperty
-> SourceConfigurationProperty -> Bool)
-> Eq SourceConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SourceConfigurationProperty -> SourceConfigurationProperty -> Bool
== :: SourceConfigurationProperty -> SourceConfigurationProperty -> Bool
$c/= :: SourceConfigurationProperty -> SourceConfigurationProperty -> Bool
/= :: SourceConfigurationProperty -> SourceConfigurationProperty -> Bool
Prelude.Eq, Int -> SourceConfigurationProperty -> ShowS
[SourceConfigurationProperty] -> ShowS
SourceConfigurationProperty -> String
(Int -> SourceConfigurationProperty -> ShowS)
-> (SourceConfigurationProperty -> String)
-> ([SourceConfigurationProperty] -> ShowS)
-> Show SourceConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SourceConfigurationProperty -> ShowS
showsPrec :: Int -> SourceConfigurationProperty -> ShowS
$cshow :: SourceConfigurationProperty -> String
show :: SourceConfigurationProperty -> String
$cshowList :: [SourceConfigurationProperty] -> ShowS
showList :: [SourceConfigurationProperty] -> ShowS
Prelude.Show)
mkSourceConfigurationProperty :: SourceConfigurationProperty
mkSourceConfigurationProperty :: SourceConfigurationProperty
mkSourceConfigurationProperty
= SourceConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
authenticationConfiguration = Maybe AuthenticationConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
autoDeploymentsEnabled :: Maybe (Value Bool)
autoDeploymentsEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
codeRepository :: Maybe CodeRepositoryProperty
codeRepository = Maybe CodeRepositoryProperty
forall a. Maybe a
Prelude.Nothing,
imageRepository :: Maybe ImageRepositoryProperty
imageRepository = Maybe ImageRepositoryProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SourceConfigurationProperty where
toResourceProperties :: SourceConfigurationProperty -> ResourceProperties
toResourceProperties SourceConfigurationProperty {Maybe (Value Bool)
Maybe AuthenticationConfigurationProperty
Maybe ImageRepositoryProperty
Maybe CodeRepositoryProperty
()
haddock_workaround_ :: SourceConfigurationProperty -> ()
authenticationConfiguration :: SourceConfigurationProperty
-> Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: SourceConfigurationProperty -> Maybe (Value Bool)
codeRepository :: SourceConfigurationProperty -> Maybe CodeRepositoryProperty
imageRepository :: SourceConfigurationProperty -> Maybe ImageRepositoryProperty
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: Maybe (Value Bool)
codeRepository :: Maybe CodeRepositoryProperty
imageRepository :: Maybe ImageRepositoryProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppRunner::Service.SourceConfiguration",
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 -> AuthenticationConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AuthenticationConfiguration"
(AuthenticationConfigurationProperty -> (Key, Value))
-> Maybe AuthenticationConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AuthenticationConfigurationProperty
authenticationConfiguration,
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
"AutoDeploymentsEnabled"
(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)
autoDeploymentsEnabled,
Key -> CodeRepositoryProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CodeRepository" (CodeRepositoryProperty -> (Key, Value))
-> Maybe CodeRepositoryProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CodeRepositoryProperty
codeRepository,
Key -> ImageRepositoryProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImageRepository" (ImageRepositoryProperty -> (Key, Value))
-> Maybe ImageRepositoryProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ImageRepositoryProperty
imageRepository])}
instance JSON.ToJSON SourceConfigurationProperty where
toJSON :: SourceConfigurationProperty -> Value
toJSON SourceConfigurationProperty {Maybe (Value Bool)
Maybe AuthenticationConfigurationProperty
Maybe ImageRepositoryProperty
Maybe CodeRepositoryProperty
()
haddock_workaround_ :: SourceConfigurationProperty -> ()
authenticationConfiguration :: SourceConfigurationProperty
-> Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: SourceConfigurationProperty -> Maybe (Value Bool)
codeRepository :: SourceConfigurationProperty -> Maybe CodeRepositoryProperty
imageRepository :: SourceConfigurationProperty -> Maybe ImageRepositoryProperty
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: Maybe (Value Bool)
codeRepository :: Maybe CodeRepositoryProperty
imageRepository :: Maybe ImageRepositoryProperty
..}
= [(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 -> AuthenticationConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AuthenticationConfiguration"
(AuthenticationConfigurationProperty -> (Key, Value))
-> Maybe AuthenticationConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AuthenticationConfigurationProperty
authenticationConfiguration,
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
"AutoDeploymentsEnabled"
(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)
autoDeploymentsEnabled,
Key -> CodeRepositoryProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CodeRepository" (CodeRepositoryProperty -> (Key, Value))
-> Maybe CodeRepositoryProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CodeRepositoryProperty
codeRepository,
Key -> ImageRepositoryProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImageRepository" (ImageRepositoryProperty -> (Key, Value))
-> Maybe ImageRepositoryProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ImageRepositoryProperty
imageRepository]))
instance Property "AuthenticationConfiguration" SourceConfigurationProperty where
type PropertyType "AuthenticationConfiguration" SourceConfigurationProperty = AuthenticationConfigurationProperty
set :: PropertyType
"AuthenticationConfiguration" SourceConfigurationProperty
-> SourceConfigurationProperty -> SourceConfigurationProperty
set PropertyType
"AuthenticationConfiguration" SourceConfigurationProperty
newValue SourceConfigurationProperty {Maybe (Value Bool)
Maybe AuthenticationConfigurationProperty
Maybe ImageRepositoryProperty
Maybe CodeRepositoryProperty
()
haddock_workaround_ :: SourceConfigurationProperty -> ()
authenticationConfiguration :: SourceConfigurationProperty
-> Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: SourceConfigurationProperty -> Maybe (Value Bool)
codeRepository :: SourceConfigurationProperty -> Maybe CodeRepositoryProperty
imageRepository :: SourceConfigurationProperty -> Maybe ImageRepositoryProperty
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: Maybe (Value Bool)
codeRepository :: Maybe CodeRepositoryProperty
imageRepository :: Maybe ImageRepositoryProperty
..}
= SourceConfigurationProperty
{authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
authenticationConfiguration = AuthenticationConfigurationProperty
-> Maybe AuthenticationConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AuthenticationConfiguration" SourceConfigurationProperty
AuthenticationConfigurationProperty
newValue, Maybe (Value Bool)
Maybe ImageRepositoryProperty
Maybe CodeRepositoryProperty
()
haddock_workaround_ :: ()
autoDeploymentsEnabled :: Maybe (Value Bool)
codeRepository :: Maybe CodeRepositoryProperty
imageRepository :: Maybe ImageRepositoryProperty
haddock_workaround_ :: ()
autoDeploymentsEnabled :: Maybe (Value Bool)
codeRepository :: Maybe CodeRepositoryProperty
imageRepository :: Maybe ImageRepositoryProperty
..}
instance Property "AutoDeploymentsEnabled" SourceConfigurationProperty where
type PropertyType "AutoDeploymentsEnabled" SourceConfigurationProperty = Value Prelude.Bool
set :: PropertyType "AutoDeploymentsEnabled" SourceConfigurationProperty
-> SourceConfigurationProperty -> SourceConfigurationProperty
set PropertyType "AutoDeploymentsEnabled" SourceConfigurationProperty
newValue SourceConfigurationProperty {Maybe (Value Bool)
Maybe AuthenticationConfigurationProperty
Maybe ImageRepositoryProperty
Maybe CodeRepositoryProperty
()
haddock_workaround_ :: SourceConfigurationProperty -> ()
authenticationConfiguration :: SourceConfigurationProperty
-> Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: SourceConfigurationProperty -> Maybe (Value Bool)
codeRepository :: SourceConfigurationProperty -> Maybe CodeRepositoryProperty
imageRepository :: SourceConfigurationProperty -> Maybe ImageRepositoryProperty
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: Maybe (Value Bool)
codeRepository :: Maybe CodeRepositoryProperty
imageRepository :: Maybe ImageRepositoryProperty
..}
= SourceConfigurationProperty
{autoDeploymentsEnabled :: Maybe (Value Bool)
autoDeploymentsEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoDeploymentsEnabled" SourceConfigurationProperty
Value Bool
newValue, Maybe AuthenticationConfigurationProperty
Maybe ImageRepositoryProperty
Maybe CodeRepositoryProperty
()
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
codeRepository :: Maybe CodeRepositoryProperty
imageRepository :: Maybe ImageRepositoryProperty
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
codeRepository :: Maybe CodeRepositoryProperty
imageRepository :: Maybe ImageRepositoryProperty
..}
instance Property "CodeRepository" SourceConfigurationProperty where
type PropertyType "CodeRepository" SourceConfigurationProperty = CodeRepositoryProperty
set :: PropertyType "CodeRepository" SourceConfigurationProperty
-> SourceConfigurationProperty -> SourceConfigurationProperty
set PropertyType "CodeRepository" SourceConfigurationProperty
newValue SourceConfigurationProperty {Maybe (Value Bool)
Maybe AuthenticationConfigurationProperty
Maybe ImageRepositoryProperty
Maybe CodeRepositoryProperty
()
haddock_workaround_ :: SourceConfigurationProperty -> ()
authenticationConfiguration :: SourceConfigurationProperty
-> Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: SourceConfigurationProperty -> Maybe (Value Bool)
codeRepository :: SourceConfigurationProperty -> Maybe CodeRepositoryProperty
imageRepository :: SourceConfigurationProperty -> Maybe ImageRepositoryProperty
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: Maybe (Value Bool)
codeRepository :: Maybe CodeRepositoryProperty
imageRepository :: Maybe ImageRepositoryProperty
..}
= SourceConfigurationProperty
{codeRepository :: Maybe CodeRepositoryProperty
codeRepository = CodeRepositoryProperty -> Maybe CodeRepositoryProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CodeRepository" SourceConfigurationProperty
CodeRepositoryProperty
newValue, Maybe (Value Bool)
Maybe AuthenticationConfigurationProperty
Maybe ImageRepositoryProperty
()
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: Maybe (Value Bool)
imageRepository :: Maybe ImageRepositoryProperty
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: Maybe (Value Bool)
imageRepository :: Maybe ImageRepositoryProperty
..}
instance Property "ImageRepository" SourceConfigurationProperty where
type PropertyType "ImageRepository" SourceConfigurationProperty = ImageRepositoryProperty
set :: PropertyType "ImageRepository" SourceConfigurationProperty
-> SourceConfigurationProperty -> SourceConfigurationProperty
set PropertyType "ImageRepository" SourceConfigurationProperty
newValue SourceConfigurationProperty {Maybe (Value Bool)
Maybe AuthenticationConfigurationProperty
Maybe ImageRepositoryProperty
Maybe CodeRepositoryProperty
()
haddock_workaround_ :: SourceConfigurationProperty -> ()
authenticationConfiguration :: SourceConfigurationProperty
-> Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: SourceConfigurationProperty -> Maybe (Value Bool)
codeRepository :: SourceConfigurationProperty -> Maybe CodeRepositoryProperty
imageRepository :: SourceConfigurationProperty -> Maybe ImageRepositoryProperty
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: Maybe (Value Bool)
codeRepository :: Maybe CodeRepositoryProperty
imageRepository :: Maybe ImageRepositoryProperty
..}
= SourceConfigurationProperty
{imageRepository :: Maybe ImageRepositoryProperty
imageRepository = ImageRepositoryProperty -> Maybe ImageRepositoryProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ImageRepository" SourceConfigurationProperty
ImageRepositoryProperty
newValue, Maybe (Value Bool)
Maybe AuthenticationConfigurationProperty
Maybe CodeRepositoryProperty
()
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: Maybe (Value Bool)
codeRepository :: Maybe CodeRepositoryProperty
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe AuthenticationConfigurationProperty
autoDeploymentsEnabled :: Maybe (Value Bool)
codeRepository :: Maybe CodeRepositoryProperty
..}