module Stratosphere.SES.ConfigurationSetEventDestination (
        module Exports, ConfigurationSetEventDestination(..),
        mkConfigurationSetEventDestination
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SES.ConfigurationSetEventDestination.EventDestinationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfigurationSetEventDestination
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html>
    ConfigurationSetEventDestination {ConfigurationSetEventDestination -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-configurationsetname>
                                      ConfigurationSetEventDestination -> Value Text
configurationSetName :: (Value Prelude.Text),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-configurationseteventdestination.html#cfn-ses-configurationseteventdestination-eventdestination>
                                      ConfigurationSetEventDestination -> EventDestinationProperty
eventDestination :: EventDestinationProperty}
  deriving stock (ConfigurationSetEventDestination
-> ConfigurationSetEventDestination -> Bool
(ConfigurationSetEventDestination
 -> ConfigurationSetEventDestination -> Bool)
-> (ConfigurationSetEventDestination
    -> ConfigurationSetEventDestination -> Bool)
-> Eq ConfigurationSetEventDestination
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConfigurationSetEventDestination
-> ConfigurationSetEventDestination -> Bool
== :: ConfigurationSetEventDestination
-> ConfigurationSetEventDestination -> Bool
$c/= :: ConfigurationSetEventDestination
-> ConfigurationSetEventDestination -> Bool
/= :: ConfigurationSetEventDestination
-> ConfigurationSetEventDestination -> Bool
Prelude.Eq, Int -> ConfigurationSetEventDestination -> ShowS
[ConfigurationSetEventDestination] -> ShowS
ConfigurationSetEventDestination -> String
(Int -> ConfigurationSetEventDestination -> ShowS)
-> (ConfigurationSetEventDestination -> String)
-> ([ConfigurationSetEventDestination] -> ShowS)
-> Show ConfigurationSetEventDestination
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConfigurationSetEventDestination -> ShowS
showsPrec :: Int -> ConfigurationSetEventDestination -> ShowS
$cshow :: ConfigurationSetEventDestination -> String
show :: ConfigurationSetEventDestination -> String
$cshowList :: [ConfigurationSetEventDestination] -> ShowS
showList :: [ConfigurationSetEventDestination] -> ShowS
Prelude.Show)
mkConfigurationSetEventDestination ::
  Value Prelude.Text
  -> EventDestinationProperty -> ConfigurationSetEventDestination
mkConfigurationSetEventDestination :: Value Text
-> EventDestinationProperty -> ConfigurationSetEventDestination
mkConfigurationSetEventDestination
  Value Text
configurationSetName
  EventDestinationProperty
eventDestination
  = ConfigurationSetEventDestination
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       configurationSetName :: Value Text
configurationSetName = Value Text
configurationSetName,
       eventDestination :: EventDestinationProperty
eventDestination = EventDestinationProperty
eventDestination}
instance ToResourceProperties ConfigurationSetEventDestination where
  toResourceProperties :: ConfigurationSetEventDestination -> ResourceProperties
toResourceProperties ConfigurationSetEventDestination {()
Value Text
EventDestinationProperty
haddock_workaround_ :: ConfigurationSetEventDestination -> ()
configurationSetName :: ConfigurationSetEventDestination -> Value Text
eventDestination :: ConfigurationSetEventDestination -> EventDestinationProperty
haddock_workaround_ :: ()
configurationSetName :: Value Text
eventDestination :: EventDestinationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SES::ConfigurationSetEventDestination",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ConfigurationSetName" 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..= Value Text
configurationSetName,
                       Key
"EventDestination" Key -> EventDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= EventDestinationProperty
eventDestination]}
instance JSON.ToJSON ConfigurationSetEventDestination where
  toJSON :: ConfigurationSetEventDestination -> Value
toJSON ConfigurationSetEventDestination {()
Value Text
EventDestinationProperty
haddock_workaround_ :: ConfigurationSetEventDestination -> ()
configurationSetName :: ConfigurationSetEventDestination -> Value Text
eventDestination :: ConfigurationSetEventDestination -> EventDestinationProperty
haddock_workaround_ :: ()
configurationSetName :: Value Text
eventDestination :: EventDestinationProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ConfigurationSetName" 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..= Value Text
configurationSetName,
         Key
"EventDestination" Key -> EventDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= EventDestinationProperty
eventDestination]
instance Property "ConfigurationSetName" ConfigurationSetEventDestination where
  type PropertyType "ConfigurationSetName" ConfigurationSetEventDestination = Value Prelude.Text
  set :: PropertyType
  "ConfigurationSetName" ConfigurationSetEventDestination
-> ConfigurationSetEventDestination
-> ConfigurationSetEventDestination
set PropertyType
  "ConfigurationSetName" ConfigurationSetEventDestination
newValue ConfigurationSetEventDestination {()
Value Text
EventDestinationProperty
haddock_workaround_ :: ConfigurationSetEventDestination -> ()
configurationSetName :: ConfigurationSetEventDestination -> Value Text
eventDestination :: ConfigurationSetEventDestination -> EventDestinationProperty
haddock_workaround_ :: ()
configurationSetName :: Value Text
eventDestination :: EventDestinationProperty
..}
    = ConfigurationSetEventDestination
        {configurationSetName :: Value Text
configurationSetName = PropertyType
  "ConfigurationSetName" ConfigurationSetEventDestination
Value Text
newValue, ()
EventDestinationProperty
haddock_workaround_ :: ()
eventDestination :: EventDestinationProperty
haddock_workaround_ :: ()
eventDestination :: EventDestinationProperty
..}
instance Property "EventDestination" ConfigurationSetEventDestination where
  type PropertyType "EventDestination" ConfigurationSetEventDestination = EventDestinationProperty
  set :: PropertyType "EventDestination" ConfigurationSetEventDestination
-> ConfigurationSetEventDestination
-> ConfigurationSetEventDestination
set PropertyType "EventDestination" ConfigurationSetEventDestination
newValue ConfigurationSetEventDestination {()
Value Text
EventDestinationProperty
haddock_workaround_ :: ConfigurationSetEventDestination -> ()
configurationSetName :: ConfigurationSetEventDestination -> Value Text
eventDestination :: ConfigurationSetEventDestination -> EventDestinationProperty
haddock_workaround_ :: ()
configurationSetName :: Value Text
eventDestination :: EventDestinationProperty
..}
    = ConfigurationSetEventDestination
        {eventDestination :: EventDestinationProperty
eventDestination = PropertyType "EventDestination" ConfigurationSetEventDestination
EventDestinationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
configurationSetName :: Value Text
haddock_workaround_ :: ()
configurationSetName :: Value Text
..}