module Stratosphere.CodeBuild.Project.ProjectBuildBatchConfigProperty (
module Exports, ProjectBuildBatchConfigProperty(..),
mkProjectBuildBatchConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CodeBuild.Project.BatchRestrictionsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProjectBuildBatchConfigProperty
=
ProjectBuildBatchConfigProperty {ProjectBuildBatchConfigProperty -> ()
haddock_workaround_ :: (),
ProjectBuildBatchConfigProperty -> Maybe (Value Text)
batchReportMode :: (Prelude.Maybe (Value Prelude.Text)),
ProjectBuildBatchConfigProperty -> Maybe (Value Bool)
combineArtifacts :: (Prelude.Maybe (Value Prelude.Bool)),
ProjectBuildBatchConfigProperty -> Maybe BatchRestrictionsProperty
restrictions :: (Prelude.Maybe BatchRestrictionsProperty),
ProjectBuildBatchConfigProperty -> Maybe (Value Text)
serviceRole :: (Prelude.Maybe (Value Prelude.Text)),
ProjectBuildBatchConfigProperty -> Maybe (Value Integer)
timeoutInMins :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty -> Bool
(ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty -> Bool)
-> (ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty -> Bool)
-> Eq ProjectBuildBatchConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty -> Bool
== :: ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty -> Bool
$c/= :: ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty -> Bool
/= :: ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty -> Bool
Prelude.Eq, Int -> ProjectBuildBatchConfigProperty -> ShowS
[ProjectBuildBatchConfigProperty] -> ShowS
ProjectBuildBatchConfigProperty -> String
(Int -> ProjectBuildBatchConfigProperty -> ShowS)
-> (ProjectBuildBatchConfigProperty -> String)
-> ([ProjectBuildBatchConfigProperty] -> ShowS)
-> Show ProjectBuildBatchConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProjectBuildBatchConfigProperty -> ShowS
showsPrec :: Int -> ProjectBuildBatchConfigProperty -> ShowS
$cshow :: ProjectBuildBatchConfigProperty -> String
show :: ProjectBuildBatchConfigProperty -> String
$cshowList :: [ProjectBuildBatchConfigProperty] -> ShowS
showList :: [ProjectBuildBatchConfigProperty] -> ShowS
Prelude.Show)
mkProjectBuildBatchConfigProperty ::
ProjectBuildBatchConfigProperty
mkProjectBuildBatchConfigProperty :: ProjectBuildBatchConfigProperty
mkProjectBuildBatchConfigProperty
= ProjectBuildBatchConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), batchReportMode :: Maybe (Value Text)
batchReportMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
combineArtifacts :: Maybe (Value Bool)
combineArtifacts = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, restrictions :: Maybe BatchRestrictionsProperty
restrictions = Maybe BatchRestrictionsProperty
forall a. Maybe a
Prelude.Nothing,
serviceRole :: Maybe (Value Text)
serviceRole = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, timeoutInMins :: Maybe (Value Integer)
timeoutInMins = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProjectBuildBatchConfigProperty where
toResourceProperties :: ProjectBuildBatchConfigProperty -> ResourceProperties
toResourceProperties ProjectBuildBatchConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe BatchRestrictionsProperty
()
haddock_workaround_ :: ProjectBuildBatchConfigProperty -> ()
batchReportMode :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
combineArtifacts :: ProjectBuildBatchConfigProperty -> Maybe (Value Bool)
restrictions :: ProjectBuildBatchConfigProperty -> Maybe BatchRestrictionsProperty
serviceRole :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
timeoutInMins :: ProjectBuildBatchConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodeBuild::Project.ProjectBuildBatchConfig",
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
"BatchReportMode" (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)
batchReportMode,
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
"CombineArtifacts" (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)
combineArtifacts,
Key -> BatchRestrictionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Restrictions" (BatchRestrictionsProperty -> (Key, Value))
-> Maybe BatchRestrictionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchRestrictionsProperty
restrictions,
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
"ServiceRole" (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)
serviceRole,
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
"TimeoutInMins" (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)
timeoutInMins])}
instance JSON.ToJSON ProjectBuildBatchConfigProperty where
toJSON :: ProjectBuildBatchConfigProperty -> Value
toJSON ProjectBuildBatchConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe BatchRestrictionsProperty
()
haddock_workaround_ :: ProjectBuildBatchConfigProperty -> ()
batchReportMode :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
combineArtifacts :: ProjectBuildBatchConfigProperty -> Maybe (Value Bool)
restrictions :: ProjectBuildBatchConfigProperty -> Maybe BatchRestrictionsProperty
serviceRole :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
timeoutInMins :: ProjectBuildBatchConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
timeoutInMins :: 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 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
"BatchReportMode" (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)
batchReportMode,
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
"CombineArtifacts" (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)
combineArtifacts,
Key -> BatchRestrictionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Restrictions" (BatchRestrictionsProperty -> (Key, Value))
-> Maybe BatchRestrictionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchRestrictionsProperty
restrictions,
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
"ServiceRole" (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)
serviceRole,
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
"TimeoutInMins" (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)
timeoutInMins]))
instance Property "BatchReportMode" ProjectBuildBatchConfigProperty where
type PropertyType "BatchReportMode" ProjectBuildBatchConfigProperty = Value Prelude.Text
set :: PropertyType "BatchReportMode" ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty
set PropertyType "BatchReportMode" ProjectBuildBatchConfigProperty
newValue ProjectBuildBatchConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe BatchRestrictionsProperty
()
haddock_workaround_ :: ProjectBuildBatchConfigProperty -> ()
batchReportMode :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
combineArtifacts :: ProjectBuildBatchConfigProperty -> Maybe (Value Bool)
restrictions :: ProjectBuildBatchConfigProperty -> Maybe BatchRestrictionsProperty
serviceRole :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
timeoutInMins :: ProjectBuildBatchConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
..}
= ProjectBuildBatchConfigProperty
{batchReportMode :: Maybe (Value Text)
batchReportMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BatchReportMode" ProjectBuildBatchConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe BatchRestrictionsProperty
()
haddock_workaround_ :: ()
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
haddock_workaround_ :: ()
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
..}
instance Property "CombineArtifacts" ProjectBuildBatchConfigProperty where
type PropertyType "CombineArtifacts" ProjectBuildBatchConfigProperty = Value Prelude.Bool
set :: PropertyType "CombineArtifacts" ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty
set PropertyType "CombineArtifacts" ProjectBuildBatchConfigProperty
newValue ProjectBuildBatchConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe BatchRestrictionsProperty
()
haddock_workaround_ :: ProjectBuildBatchConfigProperty -> ()
batchReportMode :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
combineArtifacts :: ProjectBuildBatchConfigProperty -> Maybe (Value Bool)
restrictions :: ProjectBuildBatchConfigProperty -> Maybe BatchRestrictionsProperty
serviceRole :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
timeoutInMins :: ProjectBuildBatchConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
..}
= ProjectBuildBatchConfigProperty
{combineArtifacts :: Maybe (Value Bool)
combineArtifacts = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CombineArtifacts" ProjectBuildBatchConfigProperty
Value Bool
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe BatchRestrictionsProperty
()
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
..}
instance Property "Restrictions" ProjectBuildBatchConfigProperty where
type PropertyType "Restrictions" ProjectBuildBatchConfigProperty = BatchRestrictionsProperty
set :: PropertyType "Restrictions" ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty
set PropertyType "Restrictions" ProjectBuildBatchConfigProperty
newValue ProjectBuildBatchConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe BatchRestrictionsProperty
()
haddock_workaround_ :: ProjectBuildBatchConfigProperty -> ()
batchReportMode :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
combineArtifacts :: ProjectBuildBatchConfigProperty -> Maybe (Value Bool)
restrictions :: ProjectBuildBatchConfigProperty -> Maybe BatchRestrictionsProperty
serviceRole :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
timeoutInMins :: ProjectBuildBatchConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
..}
= ProjectBuildBatchConfigProperty
{restrictions :: Maybe BatchRestrictionsProperty
restrictions = BatchRestrictionsProperty -> Maybe BatchRestrictionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Restrictions" ProjectBuildBatchConfigProperty
BatchRestrictionsProperty
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
..}
instance Property "ServiceRole" ProjectBuildBatchConfigProperty where
type PropertyType "ServiceRole" ProjectBuildBatchConfigProperty = Value Prelude.Text
set :: PropertyType "ServiceRole" ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty
set PropertyType "ServiceRole" ProjectBuildBatchConfigProperty
newValue ProjectBuildBatchConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe BatchRestrictionsProperty
()
haddock_workaround_ :: ProjectBuildBatchConfigProperty -> ()
batchReportMode :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
combineArtifacts :: ProjectBuildBatchConfigProperty -> Maybe (Value Bool)
restrictions :: ProjectBuildBatchConfigProperty -> Maybe BatchRestrictionsProperty
serviceRole :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
timeoutInMins :: ProjectBuildBatchConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
..}
= ProjectBuildBatchConfigProperty
{serviceRole :: Maybe (Value Text)
serviceRole = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ServiceRole" ProjectBuildBatchConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe BatchRestrictionsProperty
()
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
timeoutInMins :: Maybe (Value Integer)
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
timeoutInMins :: Maybe (Value Integer)
..}
instance Property "TimeoutInMins" ProjectBuildBatchConfigProperty where
type PropertyType "TimeoutInMins" ProjectBuildBatchConfigProperty = Value Prelude.Integer
set :: PropertyType "TimeoutInMins" ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty
-> ProjectBuildBatchConfigProperty
set PropertyType "TimeoutInMins" ProjectBuildBatchConfigProperty
newValue ProjectBuildBatchConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe BatchRestrictionsProperty
()
haddock_workaround_ :: ProjectBuildBatchConfigProperty -> ()
batchReportMode :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
combineArtifacts :: ProjectBuildBatchConfigProperty -> Maybe (Value Bool)
restrictions :: ProjectBuildBatchConfigProperty -> Maybe BatchRestrictionsProperty
serviceRole :: ProjectBuildBatchConfigProperty -> Maybe (Value Text)
timeoutInMins :: ProjectBuildBatchConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
timeoutInMins :: Maybe (Value Integer)
..}
= ProjectBuildBatchConfigProperty
{timeoutInMins :: Maybe (Value Integer)
timeoutInMins = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TimeoutInMins" ProjectBuildBatchConfigProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe BatchRestrictionsProperty
()
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
haddock_workaround_ :: ()
batchReportMode :: Maybe (Value Text)
combineArtifacts :: Maybe (Value Bool)
restrictions :: Maybe BatchRestrictionsProperty
serviceRole :: Maybe (Value Text)
..}