module Stratosphere.SES.ConfigurationSetEventDestination.EventBridgeDestinationProperty (
        EventBridgeDestinationProperty(..),
        mkEventBridgeDestinationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EventBridgeDestinationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventbridgedestination.html>
    EventBridgeDestinationProperty {EventBridgeDestinationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventbridgedestination.html#cfn-ses-configurationseteventdestination-eventbridgedestination-eventbusarn>
                                    EventBridgeDestinationProperty -> Value Text
eventBusArn :: (Value Prelude.Text)}
  deriving stock (EventBridgeDestinationProperty
-> EventBridgeDestinationProperty -> Bool
(EventBridgeDestinationProperty
 -> EventBridgeDestinationProperty -> Bool)
-> (EventBridgeDestinationProperty
    -> EventBridgeDestinationProperty -> Bool)
-> Eq EventBridgeDestinationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EventBridgeDestinationProperty
-> EventBridgeDestinationProperty -> Bool
== :: EventBridgeDestinationProperty
-> EventBridgeDestinationProperty -> Bool
$c/= :: EventBridgeDestinationProperty
-> EventBridgeDestinationProperty -> Bool
/= :: EventBridgeDestinationProperty
-> EventBridgeDestinationProperty -> Bool
Prelude.Eq, Int -> EventBridgeDestinationProperty -> ShowS
[EventBridgeDestinationProperty] -> ShowS
EventBridgeDestinationProperty -> String
(Int -> EventBridgeDestinationProperty -> ShowS)
-> (EventBridgeDestinationProperty -> String)
-> ([EventBridgeDestinationProperty] -> ShowS)
-> Show EventBridgeDestinationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EventBridgeDestinationProperty -> ShowS
showsPrec :: Int -> EventBridgeDestinationProperty -> ShowS
$cshow :: EventBridgeDestinationProperty -> String
show :: EventBridgeDestinationProperty -> String
$cshowList :: [EventBridgeDestinationProperty] -> ShowS
showList :: [EventBridgeDestinationProperty] -> ShowS
Prelude.Show)
mkEventBridgeDestinationProperty ::
  Value Prelude.Text -> EventBridgeDestinationProperty
mkEventBridgeDestinationProperty :: Value Text -> EventBridgeDestinationProperty
mkEventBridgeDestinationProperty Value Text
eventBusArn
  = EventBridgeDestinationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), eventBusArn :: Value Text
eventBusArn = Value Text
eventBusArn}
instance ToResourceProperties EventBridgeDestinationProperty where
  toResourceProperties :: EventBridgeDestinationProperty -> ResourceProperties
toResourceProperties EventBridgeDestinationProperty {()
Value Text
haddock_workaround_ :: EventBridgeDestinationProperty -> ()
eventBusArn :: EventBridgeDestinationProperty -> Value Text
haddock_workaround_ :: ()
eventBusArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SES::ConfigurationSetEventDestination.EventBridgeDestination",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"EventBusArn" 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
eventBusArn]}
instance JSON.ToJSON EventBridgeDestinationProperty where
  toJSON :: EventBridgeDestinationProperty -> Value
toJSON EventBridgeDestinationProperty {()
Value Text
haddock_workaround_ :: EventBridgeDestinationProperty -> ()
eventBusArn :: EventBridgeDestinationProperty -> Value Text
haddock_workaround_ :: ()
eventBusArn :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"EventBusArn" 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
eventBusArn]
instance Property "EventBusArn" EventBridgeDestinationProperty where
  type PropertyType "EventBusArn" EventBridgeDestinationProperty = Value Prelude.Text
  set :: PropertyType "EventBusArn" EventBridgeDestinationProperty
-> EventBridgeDestinationProperty -> EventBridgeDestinationProperty
set PropertyType "EventBusArn" EventBridgeDestinationProperty
newValue EventBridgeDestinationProperty {()
Value Text
haddock_workaround_ :: EventBridgeDestinationProperty -> ()
eventBusArn :: EventBridgeDestinationProperty -> Value Text
haddock_workaround_ :: ()
eventBusArn :: Value Text
..}
    = EventBridgeDestinationProperty {eventBusArn :: Value Text
eventBusArn = PropertyType "EventBusArn" EventBridgeDestinationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}