module Stratosphere.AppFlow.Flow.EventBridgeDestinationPropertiesProperty (
module Exports, EventBridgeDestinationPropertiesProperty(..),
mkEventBridgeDestinationPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppFlow.Flow.ErrorHandlingConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EventBridgeDestinationPropertiesProperty
=
EventBridgeDestinationPropertiesProperty {EventBridgeDestinationPropertiesProperty -> ()
haddock_workaround_ :: (),
EventBridgeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
errorHandlingConfig :: (Prelude.Maybe ErrorHandlingConfigProperty),
EventBridgeDestinationPropertiesProperty -> Value Text
object :: (Value Prelude.Text)}
deriving stock (EventBridgeDestinationPropertiesProperty
-> EventBridgeDestinationPropertiesProperty -> Bool
(EventBridgeDestinationPropertiesProperty
-> EventBridgeDestinationPropertiesProperty -> Bool)
-> (EventBridgeDestinationPropertiesProperty
-> EventBridgeDestinationPropertiesProperty -> Bool)
-> Eq EventBridgeDestinationPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EventBridgeDestinationPropertiesProperty
-> EventBridgeDestinationPropertiesProperty -> Bool
== :: EventBridgeDestinationPropertiesProperty
-> EventBridgeDestinationPropertiesProperty -> Bool
$c/= :: EventBridgeDestinationPropertiesProperty
-> EventBridgeDestinationPropertiesProperty -> Bool
/= :: EventBridgeDestinationPropertiesProperty
-> EventBridgeDestinationPropertiesProperty -> Bool
Prelude.Eq, Int -> EventBridgeDestinationPropertiesProperty -> ShowS
[EventBridgeDestinationPropertiesProperty] -> ShowS
EventBridgeDestinationPropertiesProperty -> String
(Int -> EventBridgeDestinationPropertiesProperty -> ShowS)
-> (EventBridgeDestinationPropertiesProperty -> String)
-> ([EventBridgeDestinationPropertiesProperty] -> ShowS)
-> Show EventBridgeDestinationPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EventBridgeDestinationPropertiesProperty -> ShowS
showsPrec :: Int -> EventBridgeDestinationPropertiesProperty -> ShowS
$cshow :: EventBridgeDestinationPropertiesProperty -> String
show :: EventBridgeDestinationPropertiesProperty -> String
$cshowList :: [EventBridgeDestinationPropertiesProperty] -> ShowS
showList :: [EventBridgeDestinationPropertiesProperty] -> ShowS
Prelude.Show)
mkEventBridgeDestinationPropertiesProperty ::
Value Prelude.Text -> EventBridgeDestinationPropertiesProperty
mkEventBridgeDestinationPropertiesProperty :: Value Text -> EventBridgeDestinationPropertiesProperty
mkEventBridgeDestinationPropertiesProperty Value Text
object
= EventBridgeDestinationPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), object :: Value Text
object = Value Text
object,
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
errorHandlingConfig = Maybe ErrorHandlingConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EventBridgeDestinationPropertiesProperty where
toResourceProperties :: EventBridgeDestinationPropertiesProperty -> ResourceProperties
toResourceProperties EventBridgeDestinationPropertiesProperty {Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: EventBridgeDestinationPropertiesProperty -> ()
errorHandlingConfig :: EventBridgeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
object :: EventBridgeDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.EventBridgeDestinationProperties",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Object" 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
object]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ErrorHandlingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ErrorHandlingConfig"
(ErrorHandlingConfigProperty -> (Key, Value))
-> Maybe ErrorHandlingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ErrorHandlingConfigProperty
errorHandlingConfig]))}
instance JSON.ToJSON EventBridgeDestinationPropertiesProperty where
toJSON :: EventBridgeDestinationPropertiesProperty -> Value
toJSON EventBridgeDestinationPropertiesProperty {Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: EventBridgeDestinationPropertiesProperty -> ()
errorHandlingConfig :: EventBridgeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
object :: EventBridgeDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Object" 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
object]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ErrorHandlingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ErrorHandlingConfig"
(ErrorHandlingConfigProperty -> (Key, Value))
-> Maybe ErrorHandlingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ErrorHandlingConfigProperty
errorHandlingConfig])))
instance Property "ErrorHandlingConfig" EventBridgeDestinationPropertiesProperty where
type PropertyType "ErrorHandlingConfig" EventBridgeDestinationPropertiesProperty = ErrorHandlingConfigProperty
set :: PropertyType
"ErrorHandlingConfig" EventBridgeDestinationPropertiesProperty
-> EventBridgeDestinationPropertiesProperty
-> EventBridgeDestinationPropertiesProperty
set PropertyType
"ErrorHandlingConfig" EventBridgeDestinationPropertiesProperty
newValue EventBridgeDestinationPropertiesProperty {Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: EventBridgeDestinationPropertiesProperty -> ()
errorHandlingConfig :: EventBridgeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
object :: EventBridgeDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
..}
= EventBridgeDestinationPropertiesProperty
{errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
errorHandlingConfig = ErrorHandlingConfigProperty -> Maybe ErrorHandlingConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ErrorHandlingConfig" EventBridgeDestinationPropertiesProperty
ErrorHandlingConfigProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
object :: Value Text
haddock_workaround_ :: ()
object :: Value Text
..}
instance Property "Object" EventBridgeDestinationPropertiesProperty where
type PropertyType "Object" EventBridgeDestinationPropertiesProperty = Value Prelude.Text
set :: PropertyType "Object" EventBridgeDestinationPropertiesProperty
-> EventBridgeDestinationPropertiesProperty
-> EventBridgeDestinationPropertiesProperty
set PropertyType "Object" EventBridgeDestinationPropertiesProperty
newValue EventBridgeDestinationPropertiesProperty {Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: EventBridgeDestinationPropertiesProperty -> ()
errorHandlingConfig :: EventBridgeDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
object :: EventBridgeDestinationPropertiesProperty -> Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
..}
= EventBridgeDestinationPropertiesProperty {object :: Value Text
object = PropertyType "Object" EventBridgeDestinationPropertiesProperty
Value Text
newValue, Maybe ErrorHandlingConfigProperty
()
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
..}