module Stratosphere.CodeBuild.Project.BuildStatusConfigProperty (
BuildStatusConfigProperty(..), mkBuildStatusConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BuildStatusConfigProperty
=
BuildStatusConfigProperty {BuildStatusConfigProperty -> ()
haddock_workaround_ :: (),
BuildStatusConfigProperty -> Maybe (Value Text)
context :: (Prelude.Maybe (Value Prelude.Text)),
BuildStatusConfigProperty -> Maybe (Value Text)
targetUrl :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (BuildStatusConfigProperty -> BuildStatusConfigProperty -> Bool
(BuildStatusConfigProperty -> BuildStatusConfigProperty -> Bool)
-> (BuildStatusConfigProperty -> BuildStatusConfigProperty -> Bool)
-> Eq BuildStatusConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BuildStatusConfigProperty -> BuildStatusConfigProperty -> Bool
== :: BuildStatusConfigProperty -> BuildStatusConfigProperty -> Bool
$c/= :: BuildStatusConfigProperty -> BuildStatusConfigProperty -> Bool
/= :: BuildStatusConfigProperty -> BuildStatusConfigProperty -> Bool
Prelude.Eq, Int -> BuildStatusConfigProperty -> ShowS
[BuildStatusConfigProperty] -> ShowS
BuildStatusConfigProperty -> String
(Int -> BuildStatusConfigProperty -> ShowS)
-> (BuildStatusConfigProperty -> String)
-> ([BuildStatusConfigProperty] -> ShowS)
-> Show BuildStatusConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BuildStatusConfigProperty -> ShowS
showsPrec :: Int -> BuildStatusConfigProperty -> ShowS
$cshow :: BuildStatusConfigProperty -> String
show :: BuildStatusConfigProperty -> String
$cshowList :: [BuildStatusConfigProperty] -> ShowS
showList :: [BuildStatusConfigProperty] -> ShowS
Prelude.Show)
mkBuildStatusConfigProperty :: BuildStatusConfigProperty
mkBuildStatusConfigProperty :: BuildStatusConfigProperty
mkBuildStatusConfigProperty
= BuildStatusConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), context :: Maybe (Value Text)
context = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
targetUrl :: Maybe (Value Text)
targetUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BuildStatusConfigProperty where
toResourceProperties :: BuildStatusConfigProperty -> ResourceProperties
toResourceProperties BuildStatusConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: BuildStatusConfigProperty -> ()
context :: BuildStatusConfigProperty -> Maybe (Value Text)
targetUrl :: BuildStatusConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
context :: Maybe (Value Text)
targetUrl :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodeBuild::Project.BuildStatusConfig",
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 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
"Context" (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)
context,
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
"TargetUrl" (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)
targetUrl])}
instance JSON.ToJSON BuildStatusConfigProperty where
toJSON :: BuildStatusConfigProperty -> Value
toJSON BuildStatusConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: BuildStatusConfigProperty -> ()
context :: BuildStatusConfigProperty -> Maybe (Value Text)
targetUrl :: BuildStatusConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
context :: Maybe (Value Text)
targetUrl :: Maybe (Value Text)
..}
= [(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 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
"Context" (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)
context,
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
"TargetUrl" (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)
targetUrl]))
instance Property "Context" BuildStatusConfigProperty where
type PropertyType "Context" BuildStatusConfigProperty = Value Prelude.Text
set :: PropertyType "Context" BuildStatusConfigProperty
-> BuildStatusConfigProperty -> BuildStatusConfigProperty
set PropertyType "Context" BuildStatusConfigProperty
newValue BuildStatusConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: BuildStatusConfigProperty -> ()
context :: BuildStatusConfigProperty -> Maybe (Value Text)
targetUrl :: BuildStatusConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
context :: Maybe (Value Text)
targetUrl :: Maybe (Value Text)
..}
= BuildStatusConfigProperty {context :: Maybe (Value Text)
context = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Context" BuildStatusConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
targetUrl :: Maybe (Value Text)
haddock_workaround_ :: ()
targetUrl :: Maybe (Value Text)
..}
instance Property "TargetUrl" BuildStatusConfigProperty where
type PropertyType "TargetUrl" BuildStatusConfigProperty = Value Prelude.Text
set :: PropertyType "TargetUrl" BuildStatusConfigProperty
-> BuildStatusConfigProperty -> BuildStatusConfigProperty
set PropertyType "TargetUrl" BuildStatusConfigProperty
newValue BuildStatusConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: BuildStatusConfigProperty -> ()
context :: BuildStatusConfigProperty -> Maybe (Value Text)
targetUrl :: BuildStatusConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
context :: Maybe (Value Text)
targetUrl :: Maybe (Value Text)
..}
= BuildStatusConfigProperty {targetUrl :: Maybe (Value Text)
targetUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TargetUrl" BuildStatusConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
context :: Maybe (Value Text)
haddock_workaround_ :: ()
context :: Maybe (Value Text)
..}