module Stratosphere.EMRServerless.Application.ManagedPersistenceMonitoringConfigurationProperty (
ManagedPersistenceMonitoringConfigurationProperty(..),
mkManagedPersistenceMonitoringConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ManagedPersistenceMonitoringConfigurationProperty
=
ManagedPersistenceMonitoringConfigurationProperty {ManagedPersistenceMonitoringConfigurationProperty -> ()
haddock_workaround_ :: (),
ManagedPersistenceMonitoringConfigurationProperty
-> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool)),
ManagedPersistenceMonitoringConfigurationProperty
-> Maybe (Value Text)
encryptionKeyArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ManagedPersistenceMonitoringConfigurationProperty
-> ManagedPersistenceMonitoringConfigurationProperty -> Bool
(ManagedPersistenceMonitoringConfigurationProperty
-> ManagedPersistenceMonitoringConfigurationProperty -> Bool)
-> (ManagedPersistenceMonitoringConfigurationProperty
-> ManagedPersistenceMonitoringConfigurationProperty -> Bool)
-> Eq ManagedPersistenceMonitoringConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ManagedPersistenceMonitoringConfigurationProperty
-> ManagedPersistenceMonitoringConfigurationProperty -> Bool
== :: ManagedPersistenceMonitoringConfigurationProperty
-> ManagedPersistenceMonitoringConfigurationProperty -> Bool
$c/= :: ManagedPersistenceMonitoringConfigurationProperty
-> ManagedPersistenceMonitoringConfigurationProperty -> Bool
/= :: ManagedPersistenceMonitoringConfigurationProperty
-> ManagedPersistenceMonitoringConfigurationProperty -> Bool
Prelude.Eq, Int -> ManagedPersistenceMonitoringConfigurationProperty -> ShowS
[ManagedPersistenceMonitoringConfigurationProperty] -> ShowS
ManagedPersistenceMonitoringConfigurationProperty -> String
(Int -> ManagedPersistenceMonitoringConfigurationProperty -> ShowS)
-> (ManagedPersistenceMonitoringConfigurationProperty -> String)
-> ([ManagedPersistenceMonitoringConfigurationProperty] -> ShowS)
-> Show ManagedPersistenceMonitoringConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ManagedPersistenceMonitoringConfigurationProperty -> ShowS
showsPrec :: Int -> ManagedPersistenceMonitoringConfigurationProperty -> ShowS
$cshow :: ManagedPersistenceMonitoringConfigurationProperty -> String
show :: ManagedPersistenceMonitoringConfigurationProperty -> String
$cshowList :: [ManagedPersistenceMonitoringConfigurationProperty] -> ShowS
showList :: [ManagedPersistenceMonitoringConfigurationProperty] -> ShowS
Prelude.Show)
mkManagedPersistenceMonitoringConfigurationProperty ::
ManagedPersistenceMonitoringConfigurationProperty
mkManagedPersistenceMonitoringConfigurationProperty :: ManagedPersistenceMonitoringConfigurationProperty
mkManagedPersistenceMonitoringConfigurationProperty
= ManagedPersistenceMonitoringConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
encryptionKeyArn :: Maybe (Value Text)
encryptionKeyArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ManagedPersistenceMonitoringConfigurationProperty where
toResourceProperties :: ManagedPersistenceMonitoringConfigurationProperty
-> ResourceProperties
toResourceProperties
ManagedPersistenceMonitoringConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ManagedPersistenceMonitoringConfigurationProperty -> ()
enabled :: ManagedPersistenceMonitoringConfigurationProperty
-> Maybe (Value Bool)
encryptionKeyArn :: ManagedPersistenceMonitoringConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
encryptionKeyArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EMRServerless::Application.ManagedPersistenceMonitoringConfiguration",
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
"Enabled" (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)
enabled,
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
"EncryptionKeyArn" (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)
encryptionKeyArn])}
instance JSON.ToJSON ManagedPersistenceMonitoringConfigurationProperty where
toJSON :: ManagedPersistenceMonitoringConfigurationProperty -> Value
toJSON ManagedPersistenceMonitoringConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ManagedPersistenceMonitoringConfigurationProperty -> ()
enabled :: ManagedPersistenceMonitoringConfigurationProperty
-> Maybe (Value Bool)
encryptionKeyArn :: ManagedPersistenceMonitoringConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
encryptionKeyArn :: Maybe (Value Text)
..}
= [(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
"Enabled" (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)
enabled,
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
"EncryptionKeyArn" (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)
encryptionKeyArn]))
instance Property "Enabled" ManagedPersistenceMonitoringConfigurationProperty where
type PropertyType "Enabled" ManagedPersistenceMonitoringConfigurationProperty = Value Prelude.Bool
set :: PropertyType
"Enabled" ManagedPersistenceMonitoringConfigurationProperty
-> ManagedPersistenceMonitoringConfigurationProperty
-> ManagedPersistenceMonitoringConfigurationProperty
set PropertyType
"Enabled" ManagedPersistenceMonitoringConfigurationProperty
newValue ManagedPersistenceMonitoringConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ManagedPersistenceMonitoringConfigurationProperty -> ()
enabled :: ManagedPersistenceMonitoringConfigurationProperty
-> Maybe (Value Bool)
encryptionKeyArn :: ManagedPersistenceMonitoringConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
encryptionKeyArn :: Maybe (Value Text)
..}
= ManagedPersistenceMonitoringConfigurationProperty
{enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"Enabled" ManagedPersistenceMonitoringConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
encryptionKeyArn :: Maybe (Value Text)
haddock_workaround_ :: ()
encryptionKeyArn :: Maybe (Value Text)
..}
instance Property "EncryptionKeyArn" ManagedPersistenceMonitoringConfigurationProperty where
type PropertyType "EncryptionKeyArn" ManagedPersistenceMonitoringConfigurationProperty = Value Prelude.Text
set :: PropertyType
"EncryptionKeyArn"
ManagedPersistenceMonitoringConfigurationProperty
-> ManagedPersistenceMonitoringConfigurationProperty
-> ManagedPersistenceMonitoringConfigurationProperty
set PropertyType
"EncryptionKeyArn"
ManagedPersistenceMonitoringConfigurationProperty
newValue ManagedPersistenceMonitoringConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ManagedPersistenceMonitoringConfigurationProperty -> ()
enabled :: ManagedPersistenceMonitoringConfigurationProperty
-> Maybe (Value Bool)
encryptionKeyArn :: ManagedPersistenceMonitoringConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
encryptionKeyArn :: Maybe (Value Text)
..}
= ManagedPersistenceMonitoringConfigurationProperty
{encryptionKeyArn :: Maybe (Value Text)
encryptionKeyArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"EncryptionKeyArn"
ManagedPersistenceMonitoringConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}