module Stratosphere.ODB.CloudVmCluster.DataCollectionOptionsProperty (
        DataCollectionOptionsProperty(..), mkDataCollectionOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataCollectionOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-cloudvmcluster-datacollectionoptions.html>
    DataCollectionOptionsProperty {DataCollectionOptionsProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-cloudvmcluster-datacollectionoptions.html#cfn-odb-cloudvmcluster-datacollectionoptions-isdiagnosticseventsenabled>
                                   DataCollectionOptionsProperty -> Maybe (Value Bool)
isDiagnosticsEventsEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-cloudvmcluster-datacollectionoptions.html#cfn-odb-cloudvmcluster-datacollectionoptions-ishealthmonitoringenabled>
                                   DataCollectionOptionsProperty -> Maybe (Value Bool)
isHealthMonitoringEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-cloudvmcluster-datacollectionoptions.html#cfn-odb-cloudvmcluster-datacollectionoptions-isincidentlogsenabled>
                                   DataCollectionOptionsProperty -> Maybe (Value Bool)
isIncidentLogsEnabled :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (DataCollectionOptionsProperty
-> DataCollectionOptionsProperty -> Bool
(DataCollectionOptionsProperty
 -> DataCollectionOptionsProperty -> Bool)
-> (DataCollectionOptionsProperty
    -> DataCollectionOptionsProperty -> Bool)
-> Eq DataCollectionOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataCollectionOptionsProperty
-> DataCollectionOptionsProperty -> Bool
== :: DataCollectionOptionsProperty
-> DataCollectionOptionsProperty -> Bool
$c/= :: DataCollectionOptionsProperty
-> DataCollectionOptionsProperty -> Bool
/= :: DataCollectionOptionsProperty
-> DataCollectionOptionsProperty -> Bool
Prelude.Eq, Int -> DataCollectionOptionsProperty -> ShowS
[DataCollectionOptionsProperty] -> ShowS
DataCollectionOptionsProperty -> String
(Int -> DataCollectionOptionsProperty -> ShowS)
-> (DataCollectionOptionsProperty -> String)
-> ([DataCollectionOptionsProperty] -> ShowS)
-> Show DataCollectionOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataCollectionOptionsProperty -> ShowS
showsPrec :: Int -> DataCollectionOptionsProperty -> ShowS
$cshow :: DataCollectionOptionsProperty -> String
show :: DataCollectionOptionsProperty -> String
$cshowList :: [DataCollectionOptionsProperty] -> ShowS
showList :: [DataCollectionOptionsProperty] -> ShowS
Prelude.Show)
mkDataCollectionOptionsProperty :: DataCollectionOptionsProperty
mkDataCollectionOptionsProperty :: DataCollectionOptionsProperty
mkDataCollectionOptionsProperty
  = DataCollectionOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       isDiagnosticsEventsEnabled :: Maybe (Value Bool)
isDiagnosticsEventsEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       isHealthMonitoringEnabled :: Maybe (Value Bool)
isHealthMonitoringEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       isIncidentLogsEnabled :: Maybe (Value Bool)
isIncidentLogsEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataCollectionOptionsProperty where
  toResourceProperties :: DataCollectionOptionsProperty -> ResourceProperties
toResourceProperties DataCollectionOptionsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DataCollectionOptionsProperty -> ()
isDiagnosticsEventsEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
isHealthMonitoringEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
isIncidentLogsEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
isDiagnosticsEventsEnabled :: Maybe (Value Bool)
isHealthMonitoringEnabled :: Maybe (Value Bool)
isIncidentLogsEnabled :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ODB::CloudVmCluster.DataCollectionOptions",
         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 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
"IsDiagnosticsEventsEnabled"
                              (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)
isDiagnosticsEventsEnabled,
                            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
"IsHealthMonitoringEnabled"
                              (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)
isHealthMonitoringEnabled,
                            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
"IsIncidentLogsEnabled"
                              (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)
isIncidentLogsEnabled])}
instance JSON.ToJSON DataCollectionOptionsProperty where
  toJSON :: DataCollectionOptionsProperty -> Value
toJSON DataCollectionOptionsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DataCollectionOptionsProperty -> ()
isDiagnosticsEventsEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
isHealthMonitoringEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
isIncidentLogsEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
isDiagnosticsEventsEnabled :: Maybe (Value Bool)
isHealthMonitoringEnabled :: Maybe (Value Bool)
isIncidentLogsEnabled :: Maybe (Value Bool)
..}
    = [(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 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
"IsDiagnosticsEventsEnabled"
                 (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)
isDiagnosticsEventsEnabled,
               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
"IsHealthMonitoringEnabled"
                 (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)
isHealthMonitoringEnabled,
               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
"IsIncidentLogsEnabled"
                 (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)
isIncidentLogsEnabled]))
instance Property "IsDiagnosticsEventsEnabled" DataCollectionOptionsProperty where
  type PropertyType "IsDiagnosticsEventsEnabled" DataCollectionOptionsProperty = Value Prelude.Bool
  set :: PropertyType
  "IsDiagnosticsEventsEnabled" DataCollectionOptionsProperty
-> DataCollectionOptionsProperty -> DataCollectionOptionsProperty
set PropertyType
  "IsDiagnosticsEventsEnabled" DataCollectionOptionsProperty
newValue DataCollectionOptionsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DataCollectionOptionsProperty -> ()
isDiagnosticsEventsEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
isHealthMonitoringEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
isIncidentLogsEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
isDiagnosticsEventsEnabled :: Maybe (Value Bool)
isHealthMonitoringEnabled :: Maybe (Value Bool)
isIncidentLogsEnabled :: Maybe (Value Bool)
..}
    = DataCollectionOptionsProperty
        {isDiagnosticsEventsEnabled :: Maybe (Value Bool)
isDiagnosticsEventsEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "IsDiagnosticsEventsEnabled" DataCollectionOptionsProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
isHealthMonitoringEnabled :: Maybe (Value Bool)
isIncidentLogsEnabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
isHealthMonitoringEnabled :: Maybe (Value Bool)
isIncidentLogsEnabled :: Maybe (Value Bool)
..}
instance Property "IsHealthMonitoringEnabled" DataCollectionOptionsProperty where
  type PropertyType "IsHealthMonitoringEnabled" DataCollectionOptionsProperty = Value Prelude.Bool
  set :: PropertyType
  "IsHealthMonitoringEnabled" DataCollectionOptionsProperty
-> DataCollectionOptionsProperty -> DataCollectionOptionsProperty
set PropertyType
  "IsHealthMonitoringEnabled" DataCollectionOptionsProperty
newValue DataCollectionOptionsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DataCollectionOptionsProperty -> ()
isDiagnosticsEventsEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
isHealthMonitoringEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
isIncidentLogsEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
isDiagnosticsEventsEnabled :: Maybe (Value Bool)
isHealthMonitoringEnabled :: Maybe (Value Bool)
isIncidentLogsEnabled :: Maybe (Value Bool)
..}
    = DataCollectionOptionsProperty
        {isHealthMonitoringEnabled :: Maybe (Value Bool)
isHealthMonitoringEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "IsHealthMonitoringEnabled" DataCollectionOptionsProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
isDiagnosticsEventsEnabled :: Maybe (Value Bool)
isIncidentLogsEnabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
isDiagnosticsEventsEnabled :: Maybe (Value Bool)
isIncidentLogsEnabled :: Maybe (Value Bool)
..}
instance Property "IsIncidentLogsEnabled" DataCollectionOptionsProperty where
  type PropertyType "IsIncidentLogsEnabled" DataCollectionOptionsProperty = Value Prelude.Bool
  set :: PropertyType "IsIncidentLogsEnabled" DataCollectionOptionsProperty
-> DataCollectionOptionsProperty -> DataCollectionOptionsProperty
set PropertyType "IsIncidentLogsEnabled" DataCollectionOptionsProperty
newValue DataCollectionOptionsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DataCollectionOptionsProperty -> ()
isDiagnosticsEventsEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
isHealthMonitoringEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
isIncidentLogsEnabled :: DataCollectionOptionsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
isDiagnosticsEventsEnabled :: Maybe (Value Bool)
isHealthMonitoringEnabled :: Maybe (Value Bool)
isIncidentLogsEnabled :: Maybe (Value Bool)
..}
    = DataCollectionOptionsProperty
        {isIncidentLogsEnabled :: Maybe (Value Bool)
isIncidentLogsEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IsIncidentLogsEnabled" DataCollectionOptionsProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
isDiagnosticsEventsEnabled :: Maybe (Value Bool)
isHealthMonitoringEnabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
isDiagnosticsEventsEnabled :: Maybe (Value Bool)
isHealthMonitoringEnabled :: Maybe (Value Bool)
..}