module Stratosphere.SMSVOICE.ConfigurationSet.EventDestinationProperty (
        module Exports, EventDestinationProperty(..),
        mkEventDestinationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SMSVOICE.ConfigurationSet.CloudWatchLogsDestinationProperty as Exports
import {-# SOURCE #-} Stratosphere.SMSVOICE.ConfigurationSet.KinesisFirehoseDestinationProperty as Exports
import {-# SOURCE #-} Stratosphere.SMSVOICE.ConfigurationSet.SnsDestinationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EventDestinationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-smsvoice-configurationset-eventdestination.html>
    EventDestinationProperty {EventDestinationProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-smsvoice-configurationset-eventdestination.html#cfn-smsvoice-configurationset-eventdestination-cloudwatchlogsdestination>
                              EventDestinationProperty -> Maybe CloudWatchLogsDestinationProperty
cloudWatchLogsDestination :: (Prelude.Maybe CloudWatchLogsDestinationProperty),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-smsvoice-configurationset-eventdestination.html#cfn-smsvoice-configurationset-eventdestination-enabled>
                              EventDestinationProperty -> Value Bool
enabled :: (Value Prelude.Bool),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-smsvoice-configurationset-eventdestination.html#cfn-smsvoice-configurationset-eventdestination-eventdestinationname>
                              EventDestinationProperty -> Value Text
eventDestinationName :: (Value Prelude.Text),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-smsvoice-configurationset-eventdestination.html#cfn-smsvoice-configurationset-eventdestination-kinesisfirehosedestination>
                              EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
kinesisFirehoseDestination :: (Prelude.Maybe KinesisFirehoseDestinationProperty),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-smsvoice-configurationset-eventdestination.html#cfn-smsvoice-configurationset-eventdestination-matchingeventtypes>
                              EventDestinationProperty -> ValueList Text
matchingEventTypes :: (ValueList Prelude.Text),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-smsvoice-configurationset-eventdestination.html#cfn-smsvoice-configurationset-eventdestination-snsdestination>
                              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 ::
  Value Prelude.Bool
  -> Value Prelude.Text
     -> ValueList Prelude.Text -> EventDestinationProperty
mkEventDestinationProperty :: Value Bool
-> Value Text -> ValueList Text -> EventDestinationProperty
mkEventDestinationProperty
  Value Bool
enabled
  Value Text
eventDestinationName
  ValueList Text
matchingEventTypes
  = EventDestinationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Value Bool
enabled = Value Bool
enabled,
       eventDestinationName :: Value Text
eventDestinationName = Value Text
eventDestinationName,
       matchingEventTypes :: ValueList Text
matchingEventTypes = ValueList Text
matchingEventTypes,
       cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
cloudWatchLogsDestination = Maybe CloudWatchLogsDestinationProperty
forall a. Maybe a
Prelude.Nothing,
       kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
kinesisFirehoseDestination = Maybe KinesisFirehoseDestinationProperty
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 CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Bool
Value Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchLogsDestination :: EventDestinationProperty -> Maybe CloudWatchLogsDestinationProperty
enabled :: EventDestinationProperty -> Value Bool
eventDestinationName :: EventDestinationProperty -> Value Text
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SMSVOICE::ConfigurationSet.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
"Enabled" 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..= Value Bool
enabled,
                            Key
"EventDestinationName" 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
eventDestinationName,
                            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 -> CloudWatchLogsDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudWatchLogsDestination"
                                 (CloudWatchLogsDestinationProperty -> (Key, Value))
-> Maybe CloudWatchLogsDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudWatchLogsDestinationProperty
cloudWatchLogsDestination,
                               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 -> 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 CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Bool
Value Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchLogsDestination :: EventDestinationProperty -> Maybe CloudWatchLogsDestinationProperty
enabled :: EventDestinationProperty -> Value Bool
eventDestinationName :: EventDestinationProperty -> Value Text
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
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
"Enabled" 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..= Value Bool
enabled,
               Key
"EventDestinationName" 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
eventDestinationName,
               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 -> CloudWatchLogsDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudWatchLogsDestination"
                    (CloudWatchLogsDestinationProperty -> (Key, Value))
-> Maybe CloudWatchLogsDestinationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudWatchLogsDestinationProperty
cloudWatchLogsDestination,
                  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 -> 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 "CloudWatchLogsDestination" EventDestinationProperty where
  type PropertyType "CloudWatchLogsDestination" EventDestinationProperty = CloudWatchLogsDestinationProperty
  set :: PropertyType "CloudWatchLogsDestination" EventDestinationProperty
-> EventDestinationProperty -> EventDestinationProperty
set PropertyType "CloudWatchLogsDestination" EventDestinationProperty
newValue EventDestinationProperty {Maybe CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Bool
Value Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchLogsDestination :: EventDestinationProperty -> Maybe CloudWatchLogsDestinationProperty
enabled :: EventDestinationProperty -> Value Bool
eventDestinationName :: EventDestinationProperty -> Value Text
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
..}
    = EventDestinationProperty
        {cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
cloudWatchLogsDestination = CloudWatchLogsDestinationProperty
-> Maybe CloudWatchLogsDestinationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CloudWatchLogsDestination" EventDestinationProperty
CloudWatchLogsDestinationProperty
newValue, Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Bool
Value Text
haddock_workaround_ :: ()
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
haddock_workaround_ :: ()
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
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 CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Bool
Value Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchLogsDestination :: EventDestinationProperty -> Maybe CloudWatchLogsDestinationProperty
enabled :: EventDestinationProperty -> Value Bool
eventDestinationName :: EventDestinationProperty -> Value Text
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
..}
    = EventDestinationProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" EventDestinationProperty
Value Bool
newValue, Maybe CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Text
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
..}
instance Property "EventDestinationName" EventDestinationProperty where
  type PropertyType "EventDestinationName" EventDestinationProperty = Value Prelude.Text
  set :: PropertyType "EventDestinationName" EventDestinationProperty
-> EventDestinationProperty -> EventDestinationProperty
set PropertyType "EventDestinationName" EventDestinationProperty
newValue EventDestinationProperty {Maybe CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Bool
Value Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchLogsDestination :: EventDestinationProperty -> Maybe CloudWatchLogsDestinationProperty
enabled :: EventDestinationProperty -> Value Bool
eventDestinationName :: EventDestinationProperty -> Value Text
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
..}
    = EventDestinationProperty {eventDestinationName :: Value Text
eventDestinationName = PropertyType "EventDestinationName" EventDestinationProperty
Value Text
newValue, Maybe CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Bool
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
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 CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Bool
Value Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchLogsDestination :: EventDestinationProperty -> Maybe CloudWatchLogsDestinationProperty
enabled :: EventDestinationProperty -> Value Bool
eventDestinationName :: EventDestinationProperty -> Value Text
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
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 CloudWatchLogsDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Bool
Value Text
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
matchingEventTypes :: ValueList Text
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 CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Bool
Value Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchLogsDestination :: EventDestinationProperty -> Maybe CloudWatchLogsDestinationProperty
enabled :: EventDestinationProperty -> Value Bool
eventDestinationName :: EventDestinationProperty -> Value Text
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
snsDestination :: Maybe SnsDestinationProperty
..}
    = EventDestinationProperty {matchingEventTypes :: ValueList Text
matchingEventTypes = PropertyType "MatchingEventTypes" EventDestinationProperty
ValueList Text
newValue, Maybe CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
Value Bool
Value Text
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
snsDestination :: Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
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 CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
Maybe SnsDestinationProperty
()
ValueList Text
Value Bool
Value Text
haddock_workaround_ :: EventDestinationProperty -> ()
cloudWatchLogsDestination :: EventDestinationProperty -> Maybe CloudWatchLogsDestinationProperty
enabled :: EventDestinationProperty -> Value Bool
eventDestinationName :: EventDestinationProperty -> Value Text
kinesisFirehoseDestination :: EventDestinationProperty
-> Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: EventDestinationProperty -> ValueList Text
snsDestination :: EventDestinationProperty -> Maybe SnsDestinationProperty
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
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 CloudWatchLogsDestinationProperty
Maybe KinesisFirehoseDestinationProperty
()
ValueList Text
Value Bool
Value Text
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
haddock_workaround_ :: ()
cloudWatchLogsDestination :: Maybe CloudWatchLogsDestinationProperty
enabled :: Value Bool
eventDestinationName :: Value Text
kinesisFirehoseDestination :: Maybe KinesisFirehoseDestinationProperty
matchingEventTypes :: ValueList Text
..}