module Stratosphere.PinpointEmail.ConfigurationSetEventDestination.EventDestinationProperty (
module Exports, EventDestinationProperty(..),
mkEventDestinationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.PinpointEmail.ConfigurationSetEventDestination.CloudWatchDestinationProperty as Exports
import {-# SOURCE #-} Stratosphere.PinpointEmail.ConfigurationSetEventDestination.KinesisFirehoseDestinationProperty as Exports
import {-# SOURCE #-} Stratosphere.PinpointEmail.ConfigurationSetEventDestination.PinpointDestinationProperty as Exports
import {-# SOURCE #-} Stratosphere.PinpointEmail.ConfigurationSetEventDestination.SnsDestinationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EventDestinationProperty
=
EventDestinationProperty {EventDestinationProperty -> ()
haddock_workaround_ :: (),
EventDestinationProperty -> Maybe CloudWatchDestinationProperty
cloudWatchDestination :: (Prelude.Maybe CloudWatchDestinationProperty),
EventDestinationProperty -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool)),
EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
kinesisFirehoseDestination :: (Prelude.Maybe KinesisFirehoseDestinationProperty),
EventDestinationProperty -> ValueList Text
matchingEventTypes :: (ValueList Prelude.Text),
EventDestinationProperty -> Maybe PinpointDestinationProperty
pinpointDestination :: (Prelude.Maybe PinpointDestinationProperty),
EventDestinationProperty -> Maybe SnsDestinationProperty
snsDestination :: (Prelude.Maybe SnsDestinationProperty)}
deriving stock (EventDestinationProperty -> EventDestinationProperty -> Bool
(EventDestinationProperty -> EventDestinationProperty -> Bool)
-> (EventDestinationProperty -> EventDestinationProperty -> Bool)
-> Eq EventDestinationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EventDestinationProperty -> EventDestinationProperty -> Bool
== :: EventDestinationProperty -> EventDestinationProperty -> Bool
$c/= :: EventDestinationProperty -> EventDestinationProperty -> Bool
/= :: EventDestinationProperty -> EventDestinationProperty -> Bool
Prelude.Eq, Int -> EventDestinationProperty -> ShowS
[EventDestinationProperty] -> ShowS
EventDestinationProperty -> String
(Int -> EventDestinationProperty -> ShowS)
-> (EventDestinationProperty -> String)
-> ([EventDestinationProperty] -> ShowS)
-> Show EventDestinationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EventDestinationProperty -> ShowS
showsPrec :: Int -> EventDestinationProperty -> ShowS
$cshow :: EventDestinationProperty -> String
show :: EventDestinationProperty -> String
$cshowList :: [EventDestinationProperty] -> ShowS
showList :: [EventDestinationProperty] -> ShowS
Prelude.Show)
mkEventDestinationProperty ::
ValueList Prelude.Text -> EventDestinationProperty
mkEventDestinationProperty :: ValueList Text -> EventDestinationProperty
mkEventDestinationProperty ValueList Text
matchingEventTypes
= EventDestinationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), matchingEventTypes :: ValueList Text
matchingEventTypes = ValueList Text
matchingEventTypes,
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
cloudWatchDestination = Maybe CloudWatchDestinationProperty
forall a. Maybe a
Prelude.Nothing, enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
kinesisFirehoseDestination = Maybe KinesisFirehoseDestinationProperty
forall a. Maybe a
Prelude.Nothing,
pinpointDestination :: Maybe PinpointDestinationProperty
pinpointDestination = Maybe PinpointDestinationProperty
forall a. Maybe a
Prelude.Nothing,
snsDestination :: Maybe SnsDestinationProperty
snsDestination = Maybe SnsDestinationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EventDestinationProperty where
toResourceProperties :: EventDestinationProperty -> ResourceProperties
toResourceProperties EventDestinationProperty {Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchDestination :: EventDestinationProperty -> Maybe CloudWatchDestinationProperty
enabled :: EventDestinationProperty -> Maybe (Value Bool)
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
pinpointDestination :: EventDestinationProperty -> Maybe PinpointDestinationProperty
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::PinpointEmail::ConfigurationSetEventDestination.EventDestination",
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
"MatchingEventTypes" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
matchingEventTypes]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CloudWatchDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudWatchDestination"
(CloudWatchDestinationProperty -> (Key, Value))
-> Maybe CloudWatchDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudWatchDestinationProperty
cloudWatchDestination,
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
"Enabled" (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)
enabled,
Key -> KinesisFirehoseDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KinesisFirehoseDestination"
(KinesisFirehoseDestinationProperty -> (Key, Value))
-> Maybe KinesisFirehoseDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe KinesisFirehoseDestinationProperty
kinesisFirehoseDestination,
Key -> PinpointDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PinpointDestination" (PinpointDestinationProperty -> (Key, Value))
-> Maybe PinpointDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PinpointDestinationProperty
pinpointDestination,
Key -> SnsDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SnsDestination" (SnsDestinationProperty -> (Key, Value))
-> Maybe SnsDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SnsDestinationProperty
snsDestination]))}
instance JSON.ToJSON EventDestinationProperty where
toJSON :: EventDestinationProperty -> Value
toJSON EventDestinationProperty {Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchDestination :: EventDestinationProperty -> Maybe CloudWatchDestinationProperty
enabled :: EventDestinationProperty -> Maybe (Value Bool)
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
pinpointDestination :: EventDestinationProperty -> Maybe PinpointDestinationProperty
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
= [(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
"MatchingEventTypes" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
matchingEventTypes]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CloudWatchDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudWatchDestination"
(CloudWatchDestinationProperty -> (Key, Value))
-> Maybe CloudWatchDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudWatchDestinationProperty
cloudWatchDestination,
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
"Enabled" (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)
enabled,
Key -> KinesisFirehoseDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KinesisFirehoseDestination"
(KinesisFirehoseDestinationProperty -> (Key, Value))
-> Maybe KinesisFirehoseDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe KinesisFirehoseDestinationProperty
kinesisFirehoseDestination,
Key -> PinpointDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PinpointDestination" (PinpointDestinationProperty -> (Key, Value))
-> Maybe PinpointDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PinpointDestinationProperty
pinpointDestination,
Key -> SnsDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SnsDestination" (SnsDestinationProperty -> (Key, Value))
-> Maybe SnsDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SnsDestinationProperty
snsDestination])))
instance Property "CloudWatchDestination" EventDestinationProperty where
type PropertyType "CloudWatchDestination" EventDestinationProperty = CloudWatchDestinationProperty
set :: PropertyType "CloudWatchDestination" EventDestinationProperty
-> EventDestinationProperty -> EventDestinationProperty
set PropertyType "CloudWatchDestination" EventDestinationProperty
newValue EventDestinationProperty {Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchDestination :: EventDestinationProperty -> Maybe CloudWatchDestinationProperty
enabled :: EventDestinationProperty -> Maybe (Value Bool)
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
pinpointDestination :: EventDestinationProperty -> Maybe PinpointDestinationProperty
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
= EventDestinationProperty
{cloudWatchDestination :: Maybe CloudWatchDestinationProperty
cloudWatchDestination = CloudWatchDestinationProperty
-> Maybe CloudWatchDestinationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CloudWatchDestination" EventDestinationProperty
CloudWatchDestinationProperty
newValue, Maybe (Value Bool)
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
instance Property "Enabled" EventDestinationProperty where
type PropertyType "Enabled" EventDestinationProperty = Value Prelude.Bool
set :: PropertyType "Enabled" EventDestinationProperty
-> EventDestinationProperty -> EventDestinationProperty
set PropertyType "Enabled" EventDestinationProperty
newValue EventDestinationProperty {Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchDestination :: EventDestinationProperty -> Maybe CloudWatchDestinationProperty
enabled :: EventDestinationProperty -> Maybe (Value Bool)
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
pinpointDestination :: EventDestinationProperty -> Maybe PinpointDestinationProperty
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
= EventDestinationProperty {enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Enabled" EventDestinationProperty
Value Bool
newValue, Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
instance Property "KinesisFirehoseDestination" EventDestinationProperty where
type PropertyType "KinesisFirehoseDestination" EventDestinationProperty = KinesisFirehoseDestinationProperty
set :: PropertyType "KinesisFirehoseDestination" EventDestinationProperty
-> EventDestinationProperty -> EventDestinationProperty
set PropertyType "KinesisFirehoseDestination" EventDestinationProperty
newValue EventDestinationProperty {Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchDestination :: EventDestinationProperty -> Maybe CloudWatchDestinationProperty
enabled :: EventDestinationProperty -> Maybe (Value Bool)
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
pinpointDestination :: EventDestinationProperty -> Maybe PinpointDestinationProperty
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
= EventDestinationProperty
{kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
kinesisFirehoseDestination = KinesisFirehoseDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KinesisFirehoseDestination" EventDestinationProperty
KinesisFirehoseDestinationProperty
newValue, Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
instance Property "MatchingEventTypes" EventDestinationProperty where
type PropertyType "MatchingEventTypes" EventDestinationProperty = ValueList Prelude.Text
set :: PropertyType "MatchingEventTypes" EventDestinationProperty
-> EventDestinationProperty -> EventDestinationProperty
set PropertyType "MatchingEventTypes" EventDestinationProperty
newValue EventDestinationProperty {Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchDestination :: EventDestinationProperty -> Maybe CloudWatchDestinationProperty
enabled :: EventDestinationProperty -> Maybe (Value Bool)
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
pinpointDestination :: EventDestinationProperty -> Maybe PinpointDestinationProperty
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
= EventDestinationProperty {matchingEventTypes :: ValueList Text
matchingEventTypes = PropertyType "MatchingEventTypes" EventDestinationProperty
ValueList Text
newValue, Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
instance Property "PinpointDestination" EventDestinationProperty where
type PropertyType "PinpointDestination" EventDestinationProperty = PinpointDestinationProperty
set :: PropertyType "PinpointDestination" EventDestinationProperty
-> EventDestinationProperty -> EventDestinationProperty
set PropertyType "PinpointDestination" EventDestinationProperty
newValue EventDestinationProperty {Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchDestination :: EventDestinationProperty -> Maybe CloudWatchDestinationProperty
enabled :: EventDestinationProperty -> Maybe (Value Bool)
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
pinpointDestination :: EventDestinationProperty -> Maybe PinpointDestinationProperty
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
= EventDestinationProperty
{pinpointDestination :: Maybe PinpointDestinationProperty
pinpointDestination = PinpointDestinationProperty -> Maybe PinpointDestinationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PinpointDestination" EventDestinationProperty
PinpointDestinationProperty
newValue, Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
..}
instance Property "SnsDestination" EventDestinationProperty where
type PropertyType "SnsDestination" EventDestinationProperty = SnsDestinationProperty
set :: PropertyType "SnsDestination" EventDestinationProperty
-> EventDestinationProperty -> EventDestinationProperty
set PropertyType "SnsDestination" EventDestinationProperty
newValue EventDestinationProperty {Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchDestination :: EventDestinationProperty -> Maybe CloudWatchDestinationProperty
enabled :: EventDestinationProperty -> Maybe (Value Bool)
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
pinpointDestination :: EventDestinationProperty -> Maybe PinpointDestinationProperty
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
..}
= EventDestinationProperty
{snsDestination :: Maybe SnsDestinationProperty
snsDestination = SnsDestinationProperty -> Maybe SnsDestinationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SnsDestination" EventDestinationProperty
SnsDestinationProperty
newValue, Maybe (Value Bool)
Maybe CloudWatchDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe PinpointDestinationProperty
()
ValueList Text
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
haddock_workaround_ :: ()
cloudWatchDestination :: Maybe CloudWatchDestinationProperty
enabled :: Maybe (Value Bool)
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
pinpointDestination :: Maybe PinpointDestinationProperty
..}