module Stratosphere.CodeBuild.ReportGroup (
module Exports, ReportGroup(..), mkReportGroup
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CodeBuild.ReportGroup.ReportExportConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data ReportGroup
=
ReportGroup {ReportGroup -> ()
haddock_workaround_ :: (),
ReportGroup -> Maybe (Value Bool)
deleteReports :: (Prelude.Maybe (Value Prelude.Bool)),
ReportGroup -> ReportExportConfigProperty
exportConfig :: ReportExportConfigProperty,
ReportGroup -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
ReportGroup -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
ReportGroup -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (ReportGroup -> ReportGroup -> Bool
(ReportGroup -> ReportGroup -> Bool)
-> (ReportGroup -> ReportGroup -> Bool) -> Eq ReportGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReportGroup -> ReportGroup -> Bool
== :: ReportGroup -> ReportGroup -> Bool
$c/= :: ReportGroup -> ReportGroup -> Bool
/= :: ReportGroup -> ReportGroup -> Bool
Prelude.Eq, Int -> ReportGroup -> ShowS
[ReportGroup] -> ShowS
ReportGroup -> String
(Int -> ReportGroup -> ShowS)
-> (ReportGroup -> String)
-> ([ReportGroup] -> ShowS)
-> Show ReportGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReportGroup -> ShowS
showsPrec :: Int -> ReportGroup -> ShowS
$cshow :: ReportGroup -> String
show :: ReportGroup -> String
$cshowList :: [ReportGroup] -> ShowS
showList :: [ReportGroup] -> ShowS
Prelude.Show)
mkReportGroup ::
ReportExportConfigProperty -> Value Prelude.Text -> ReportGroup
mkReportGroup :: ReportExportConfigProperty -> Value Text -> ReportGroup
mkReportGroup ReportExportConfigProperty
exportConfig Value Text
type'
= ReportGroup
{haddock_workaround_ :: ()
haddock_workaround_ = (), exportConfig :: ReportExportConfigProperty
exportConfig = ReportExportConfigProperty
exportConfig,
type' :: Value Text
type' = Value Text
type', deleteReports :: Maybe (Value Bool)
deleteReports = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ReportGroup where
toResourceProperties :: ReportGroup -> ResourceProperties
toResourceProperties ReportGroup {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ReportExportConfigProperty
haddock_workaround_ :: ReportGroup -> ()
deleteReports :: ReportGroup -> Maybe (Value Bool)
exportConfig :: ReportGroup -> ReportExportConfigProperty
name :: ReportGroup -> Maybe (Value Text)
tags :: ReportGroup -> Maybe [Tag]
type' :: ReportGroup -> Value Text
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CodeBuild::ReportGroup",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"ExportConfig" Key -> ReportExportConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ReportExportConfigProperty
exportConfig, Key
"Type" 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
type']
([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
"DeleteReports" (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)
deleteReports,
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
"Name" (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)
name,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON ReportGroup where
toJSON :: ReportGroup -> Value
toJSON ReportGroup {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ReportExportConfigProperty
haddock_workaround_ :: ReportGroup -> ()
deleteReports :: ReportGroup -> Maybe (Value Bool)
exportConfig :: ReportGroup -> ReportExportConfigProperty
name :: ReportGroup -> Maybe (Value Text)
tags :: ReportGroup -> Maybe [Tag]
type' :: ReportGroup -> Value Text
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: 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
"ExportConfig" Key -> ReportExportConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ReportExportConfigProperty
exportConfig, Key
"Type" 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
type']
([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
"DeleteReports" (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)
deleteReports,
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
"Name" (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)
name,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "DeleteReports" ReportGroup where
type PropertyType "DeleteReports" ReportGroup = Value Prelude.Bool
set :: PropertyType "DeleteReports" ReportGroup
-> ReportGroup -> ReportGroup
set PropertyType "DeleteReports" ReportGroup
newValue ReportGroup {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ReportExportConfigProperty
haddock_workaround_ :: ReportGroup -> ()
deleteReports :: ReportGroup -> Maybe (Value Bool)
exportConfig :: ReportGroup -> ReportExportConfigProperty
name :: ReportGroup -> Maybe (Value Text)
tags :: ReportGroup -> Maybe [Tag]
type' :: ReportGroup -> Value Text
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= ReportGroup {deleteReports :: Maybe (Value Bool)
deleteReports = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DeleteReports" ReportGroup
Value Bool
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
ReportExportConfigProperty
haddock_workaround_ :: ()
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "ExportConfig" ReportGroup where
type PropertyType "ExportConfig" ReportGroup = ReportExportConfigProperty
set :: PropertyType "ExportConfig" ReportGroup
-> ReportGroup -> ReportGroup
set PropertyType "ExportConfig" ReportGroup
newValue ReportGroup {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ReportExportConfigProperty
haddock_workaround_ :: ReportGroup -> ()
deleteReports :: ReportGroup -> Maybe (Value Bool)
exportConfig :: ReportGroup -> ReportExportConfigProperty
name :: ReportGroup -> Maybe (Value Text)
tags :: ReportGroup -> Maybe [Tag]
type' :: ReportGroup -> Value Text
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= ReportGroup {exportConfig :: ReportExportConfigProperty
exportConfig = PropertyType "ExportConfig" ReportGroup
ReportExportConfigProperty
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Name" ReportGroup where
type PropertyType "Name" ReportGroup = Value Prelude.Text
set :: PropertyType "Name" ReportGroup -> ReportGroup -> ReportGroup
set PropertyType "Name" ReportGroup
newValue ReportGroup {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ReportExportConfigProperty
haddock_workaround_ :: ReportGroup -> ()
deleteReports :: ReportGroup -> Maybe (Value Bool)
exportConfig :: ReportGroup -> ReportExportConfigProperty
name :: ReportGroup -> Maybe (Value Text)
tags :: ReportGroup -> Maybe [Tag]
type' :: ReportGroup -> Value Text
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= ReportGroup {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" ReportGroup
Value Text
newValue, Maybe [Tag]
Maybe (Value Bool)
()
Value Text
ReportExportConfigProperty
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Tags" ReportGroup where
type PropertyType "Tags" ReportGroup = [Tag]
set :: PropertyType "Tags" ReportGroup -> ReportGroup -> ReportGroup
set PropertyType "Tags" ReportGroup
newValue ReportGroup {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ReportExportConfigProperty
haddock_workaround_ :: ReportGroup -> ()
deleteReports :: ReportGroup -> Maybe (Value Bool)
exportConfig :: ReportGroup -> ReportExportConfigProperty
name :: ReportGroup -> Maybe (Value Text)
tags :: ReportGroup -> Maybe [Tag]
type' :: ReportGroup -> Value Text
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
= ReportGroup {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" ReportGroup
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ReportExportConfigProperty
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Type" ReportGroup where
type PropertyType "Type" ReportGroup = Value Prelude.Text
set :: PropertyType "Type" ReportGroup -> ReportGroup -> ReportGroup
set PropertyType "Type" ReportGroup
newValue ReportGroup {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ReportExportConfigProperty
haddock_workaround_ :: ReportGroup -> ()
deleteReports :: ReportGroup -> Maybe (Value Bool)
exportConfig :: ReportGroup -> ReportExportConfigProperty
name :: ReportGroup -> Maybe (Value Text)
tags :: ReportGroup -> Maybe [Tag]
type' :: ReportGroup -> Value Text
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..} = ReportGroup {type' :: Value Text
type' = PropertyType "Type" ReportGroup
Value Text
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
ReportExportConfigProperty
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
deleteReports :: Maybe (Value Bool)
exportConfig :: ReportExportConfigProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}