module Stratosphere.SES.VdmAttributes.DashboardAttributesProperty (
        DashboardAttributesProperty(..), mkDashboardAttributesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DashboardAttributesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-vdmattributes-dashboardattributes.html>
    DashboardAttributesProperty {DashboardAttributesProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-vdmattributes-dashboardattributes.html#cfn-ses-vdmattributes-dashboardattributes-engagementmetrics>
                                 DashboardAttributesProperty -> Maybe (Value Text)
engagementMetrics :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DashboardAttributesProperty -> DashboardAttributesProperty -> Bool
(DashboardAttributesProperty
 -> DashboardAttributesProperty -> Bool)
-> (DashboardAttributesProperty
    -> DashboardAttributesProperty -> Bool)
-> Eq DashboardAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DashboardAttributesProperty -> DashboardAttributesProperty -> Bool
== :: DashboardAttributesProperty -> DashboardAttributesProperty -> Bool
$c/= :: DashboardAttributesProperty -> DashboardAttributesProperty -> Bool
/= :: DashboardAttributesProperty -> DashboardAttributesProperty -> Bool
Prelude.Eq, Int -> DashboardAttributesProperty -> ShowS
[DashboardAttributesProperty] -> ShowS
DashboardAttributesProperty -> String
(Int -> DashboardAttributesProperty -> ShowS)
-> (DashboardAttributesProperty -> String)
-> ([DashboardAttributesProperty] -> ShowS)
-> Show DashboardAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DashboardAttributesProperty -> ShowS
showsPrec :: Int -> DashboardAttributesProperty -> ShowS
$cshow :: DashboardAttributesProperty -> String
show :: DashboardAttributesProperty -> String
$cshowList :: [DashboardAttributesProperty] -> ShowS
showList :: [DashboardAttributesProperty] -> ShowS
Prelude.Show)
mkDashboardAttributesProperty :: DashboardAttributesProperty
mkDashboardAttributesProperty :: DashboardAttributesProperty
mkDashboardAttributesProperty
  = DashboardAttributesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), engagementMetrics :: Maybe (Value Text)
engagementMetrics = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DashboardAttributesProperty where
  toResourceProperties :: DashboardAttributesProperty -> ResourceProperties
toResourceProperties DashboardAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashboardAttributesProperty -> ()
engagementMetrics :: DashboardAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
engagementMetrics :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SES::VdmAttributes.DashboardAttributes",
         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 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
"EngagementMetrics" (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)
engagementMetrics])}
instance JSON.ToJSON DashboardAttributesProperty where
  toJSON :: DashboardAttributesProperty -> Value
toJSON DashboardAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashboardAttributesProperty -> ()
engagementMetrics :: DashboardAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
engagementMetrics :: 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 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
"EngagementMetrics" (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)
engagementMetrics]))
instance Property "EngagementMetrics" DashboardAttributesProperty where
  type PropertyType "EngagementMetrics" DashboardAttributesProperty = Value Prelude.Text
  set :: PropertyType "EngagementMetrics" DashboardAttributesProperty
-> DashboardAttributesProperty -> DashboardAttributesProperty
set PropertyType "EngagementMetrics" DashboardAttributesProperty
newValue DashboardAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashboardAttributesProperty -> ()
engagementMetrics :: DashboardAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
engagementMetrics :: Maybe (Value Text)
..}
    = DashboardAttributesProperty
        {engagementMetrics :: Maybe (Value Text)
engagementMetrics = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EngagementMetrics" DashboardAttributesProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}