module Stratosphere.FIS.ExperimentTemplate.ExperimentTemplateLogConfigurationProperty (
module Exports, ExperimentTemplateLogConfigurationProperty(..),
mkExperimentTemplateLogConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.FIS.ExperimentTemplate.CloudWatchLogsConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.FIS.ExperimentTemplate.S3ConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ExperimentTemplateLogConfigurationProperty
=
ExperimentTemplateLogConfigurationProperty {ExperimentTemplateLogConfigurationProperty -> ()
haddock_workaround_ :: (),
ExperimentTemplateLogConfigurationProperty
-> Maybe CloudWatchLogsConfigurationProperty
cloudWatchLogsConfiguration :: (Prelude.Maybe CloudWatchLogsConfigurationProperty),
ExperimentTemplateLogConfigurationProperty -> Value Integer
logSchemaVersion :: (Value Prelude.Integer),
ExperimentTemplateLogConfigurationProperty
-> Maybe S3ConfigurationProperty
s3Configuration :: (Prelude.Maybe S3ConfigurationProperty)}
deriving stock (ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty -> Bool
(ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty -> Bool)
-> (ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty -> Bool)
-> Eq ExperimentTemplateLogConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty -> Bool
== :: ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty -> Bool
$c/= :: ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty -> Bool
/= :: ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty -> Bool
Prelude.Eq, Int -> ExperimentTemplateLogConfigurationProperty -> ShowS
[ExperimentTemplateLogConfigurationProperty] -> ShowS
ExperimentTemplateLogConfigurationProperty -> String
(Int -> ExperimentTemplateLogConfigurationProperty -> ShowS)
-> (ExperimentTemplateLogConfigurationProperty -> String)
-> ([ExperimentTemplateLogConfigurationProperty] -> ShowS)
-> Show ExperimentTemplateLogConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ExperimentTemplateLogConfigurationProperty -> ShowS
showsPrec :: Int -> ExperimentTemplateLogConfigurationProperty -> ShowS
$cshow :: ExperimentTemplateLogConfigurationProperty -> String
show :: ExperimentTemplateLogConfigurationProperty -> String
$cshowList :: [ExperimentTemplateLogConfigurationProperty] -> ShowS
showList :: [ExperimentTemplateLogConfigurationProperty] -> ShowS
Prelude.Show)
mkExperimentTemplateLogConfigurationProperty ::
Value Prelude.Integer -> ExperimentTemplateLogConfigurationProperty
mkExperimentTemplateLogConfigurationProperty :: Value Integer -> ExperimentTemplateLogConfigurationProperty
mkExperimentTemplateLogConfigurationProperty Value Integer
logSchemaVersion
= ExperimentTemplateLogConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), logSchemaVersion :: Value Integer
logSchemaVersion = Value Integer
logSchemaVersion,
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfigurationProperty
cloudWatchLogsConfiguration = Maybe CloudWatchLogsConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
s3Configuration :: Maybe S3ConfigurationProperty
s3Configuration = Maybe S3ConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ExperimentTemplateLogConfigurationProperty where
toResourceProperties :: ExperimentTemplateLogConfigurationProperty -> ResourceProperties
toResourceProperties
ExperimentTemplateLogConfigurationProperty {Maybe CloudWatchLogsConfigurationProperty
Maybe S3ConfigurationProperty
()
Value Integer
haddock_workaround_ :: ExperimentTemplateLogConfigurationProperty -> ()
cloudWatchLogsConfiguration :: ExperimentTemplateLogConfigurationProperty
-> Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: ExperimentTemplateLogConfigurationProperty -> Value Integer
s3Configuration :: ExperimentTemplateLogConfigurationProperty
-> Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: Value Integer
s3Configuration :: Maybe S3ConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FIS::ExperimentTemplate.ExperimentTemplateLogConfiguration",
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
"LogSchemaVersion" 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..= Value Integer
logSchemaVersion]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CloudWatchLogsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudWatchLogsConfiguration"
(CloudWatchLogsConfigurationProperty -> (Key, Value))
-> Maybe CloudWatchLogsConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudWatchLogsConfigurationProperty
cloudWatchLogsConfiguration,
Key -> S3ConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Configuration" (S3ConfigurationProperty -> (Key, Value))
-> Maybe S3ConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3ConfigurationProperty
s3Configuration]))}
instance JSON.ToJSON ExperimentTemplateLogConfigurationProperty where
toJSON :: ExperimentTemplateLogConfigurationProperty -> Value
toJSON ExperimentTemplateLogConfigurationProperty {Maybe CloudWatchLogsConfigurationProperty
Maybe S3ConfigurationProperty
()
Value Integer
haddock_workaround_ :: ExperimentTemplateLogConfigurationProperty -> ()
cloudWatchLogsConfiguration :: ExperimentTemplateLogConfigurationProperty
-> Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: ExperimentTemplateLogConfigurationProperty -> Value Integer
s3Configuration :: ExperimentTemplateLogConfigurationProperty
-> Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: Value Integer
s3Configuration :: Maybe S3ConfigurationProperty
..}
= [(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
"LogSchemaVersion" 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..= Value Integer
logSchemaVersion]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CloudWatchLogsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudWatchLogsConfiguration"
(CloudWatchLogsConfigurationProperty -> (Key, Value))
-> Maybe CloudWatchLogsConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudWatchLogsConfigurationProperty
cloudWatchLogsConfiguration,
Key -> S3ConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Configuration" (S3ConfigurationProperty -> (Key, Value))
-> Maybe S3ConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3ConfigurationProperty
s3Configuration])))
instance Property "CloudWatchLogsConfiguration" ExperimentTemplateLogConfigurationProperty where
type PropertyType "CloudWatchLogsConfiguration" ExperimentTemplateLogConfigurationProperty = CloudWatchLogsConfigurationProperty
set :: PropertyType
"CloudWatchLogsConfiguration"
ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty
set PropertyType
"CloudWatchLogsConfiguration"
ExperimentTemplateLogConfigurationProperty
newValue ExperimentTemplateLogConfigurationProperty {Maybe CloudWatchLogsConfigurationProperty
Maybe S3ConfigurationProperty
()
Value Integer
haddock_workaround_ :: ExperimentTemplateLogConfigurationProperty -> ()
cloudWatchLogsConfiguration :: ExperimentTemplateLogConfigurationProperty
-> Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: ExperimentTemplateLogConfigurationProperty -> Value Integer
s3Configuration :: ExperimentTemplateLogConfigurationProperty
-> Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: Value Integer
s3Configuration :: Maybe S3ConfigurationProperty
..}
= ExperimentTemplateLogConfigurationProperty
{cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfigurationProperty
cloudWatchLogsConfiguration = CloudWatchLogsConfigurationProperty
-> Maybe CloudWatchLogsConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CloudWatchLogsConfiguration"
ExperimentTemplateLogConfigurationProperty
CloudWatchLogsConfigurationProperty
newValue, Maybe S3ConfigurationProperty
()
Value Integer
haddock_workaround_ :: ()
logSchemaVersion :: Value Integer
s3Configuration :: Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
logSchemaVersion :: Value Integer
s3Configuration :: Maybe S3ConfigurationProperty
..}
instance Property "LogSchemaVersion" ExperimentTemplateLogConfigurationProperty where
type PropertyType "LogSchemaVersion" ExperimentTemplateLogConfigurationProperty = Value Prelude.Integer
set :: PropertyType
"LogSchemaVersion" ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty
set PropertyType
"LogSchemaVersion" ExperimentTemplateLogConfigurationProperty
newValue ExperimentTemplateLogConfigurationProperty {Maybe CloudWatchLogsConfigurationProperty
Maybe S3ConfigurationProperty
()
Value Integer
haddock_workaround_ :: ExperimentTemplateLogConfigurationProperty -> ()
cloudWatchLogsConfiguration :: ExperimentTemplateLogConfigurationProperty
-> Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: ExperimentTemplateLogConfigurationProperty -> Value Integer
s3Configuration :: ExperimentTemplateLogConfigurationProperty
-> Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: Value Integer
s3Configuration :: Maybe S3ConfigurationProperty
..}
= ExperimentTemplateLogConfigurationProperty
{logSchemaVersion :: Value Integer
logSchemaVersion = PropertyType
"LogSchemaVersion" ExperimentTemplateLogConfigurationProperty
Value Integer
newValue, Maybe CloudWatchLogsConfigurationProperty
Maybe S3ConfigurationProperty
()
haddock_workaround_ :: ()
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfigurationProperty
s3Configuration :: Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfigurationProperty
s3Configuration :: Maybe S3ConfigurationProperty
..}
instance Property "S3Configuration" ExperimentTemplateLogConfigurationProperty where
type PropertyType "S3Configuration" ExperimentTemplateLogConfigurationProperty = S3ConfigurationProperty
set :: PropertyType
"S3Configuration" ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty
-> ExperimentTemplateLogConfigurationProperty
set PropertyType
"S3Configuration" ExperimentTemplateLogConfigurationProperty
newValue ExperimentTemplateLogConfigurationProperty {Maybe CloudWatchLogsConfigurationProperty
Maybe S3ConfigurationProperty
()
Value Integer
haddock_workaround_ :: ExperimentTemplateLogConfigurationProperty -> ()
cloudWatchLogsConfiguration :: ExperimentTemplateLogConfigurationProperty
-> Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: ExperimentTemplateLogConfigurationProperty -> Value Integer
s3Configuration :: ExperimentTemplateLogConfigurationProperty
-> Maybe S3ConfigurationProperty
haddock_workaround_ :: ()
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: Value Integer
s3Configuration :: Maybe S3ConfigurationProperty
..}
= ExperimentTemplateLogConfigurationProperty
{s3Configuration :: Maybe S3ConfigurationProperty
s3Configuration = S3ConfigurationProperty -> Maybe S3ConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"S3Configuration" ExperimentTemplateLogConfigurationProperty
S3ConfigurationProperty
newValue, Maybe CloudWatchLogsConfigurationProperty
()
Value Integer
haddock_workaround_ :: ()
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: Value Integer
haddock_workaround_ :: ()
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfigurationProperty
logSchemaVersion :: Value Integer
..}