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