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