module Stratosphere.Timestream.ScheduledQuery.NotificationConfigurationProperty (
        module Exports, NotificationConfigurationProperty(..),
        mkNotificationConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Timestream.ScheduledQuery.SnsConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data NotificationConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-scheduledquery-notificationconfiguration.html>
    NotificationConfigurationProperty {NotificationConfigurationProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-scheduledquery-notificationconfiguration.html#cfn-timestream-scheduledquery-notificationconfiguration-snsconfiguration>
                                       NotificationConfigurationProperty -> SnsConfigurationProperty
snsConfiguration :: SnsConfigurationProperty}
  deriving stock (NotificationConfigurationProperty
-> NotificationConfigurationProperty -> Bool
(NotificationConfigurationProperty
 -> NotificationConfigurationProperty -> Bool)
-> (NotificationConfigurationProperty
    -> NotificationConfigurationProperty -> Bool)
-> Eq NotificationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NotificationConfigurationProperty
-> NotificationConfigurationProperty -> Bool
== :: NotificationConfigurationProperty
-> NotificationConfigurationProperty -> Bool
$c/= :: NotificationConfigurationProperty
-> NotificationConfigurationProperty -> Bool
/= :: NotificationConfigurationProperty
-> NotificationConfigurationProperty -> Bool
Prelude.Eq, Int -> NotificationConfigurationProperty -> ShowS
[NotificationConfigurationProperty] -> ShowS
NotificationConfigurationProperty -> String
(Int -> NotificationConfigurationProperty -> ShowS)
-> (NotificationConfigurationProperty -> String)
-> ([NotificationConfigurationProperty] -> ShowS)
-> Show NotificationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NotificationConfigurationProperty -> ShowS
showsPrec :: Int -> NotificationConfigurationProperty -> ShowS
$cshow :: NotificationConfigurationProperty -> String
show :: NotificationConfigurationProperty -> String
$cshowList :: [NotificationConfigurationProperty] -> ShowS
showList :: [NotificationConfigurationProperty] -> ShowS
Prelude.Show)
mkNotificationConfigurationProperty ::
  SnsConfigurationProperty -> NotificationConfigurationProperty
mkNotificationConfigurationProperty :: SnsConfigurationProperty -> NotificationConfigurationProperty
mkNotificationConfigurationProperty SnsConfigurationProperty
snsConfiguration
  = NotificationConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), snsConfiguration :: SnsConfigurationProperty
snsConfiguration = SnsConfigurationProperty
snsConfiguration}
instance ToResourceProperties NotificationConfigurationProperty where
  toResourceProperties :: NotificationConfigurationProperty -> ResourceProperties
toResourceProperties NotificationConfigurationProperty {()
SnsConfigurationProperty
haddock_workaround_ :: NotificationConfigurationProperty -> ()
snsConfiguration :: NotificationConfigurationProperty -> SnsConfigurationProperty
haddock_workaround_ :: ()
snsConfiguration :: SnsConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Timestream::ScheduledQuery.NotificationConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"SnsConfiguration" Key -> SnsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SnsConfigurationProperty
snsConfiguration]}
instance JSON.ToJSON NotificationConfigurationProperty where
  toJSON :: NotificationConfigurationProperty -> Value
toJSON NotificationConfigurationProperty {()
SnsConfigurationProperty
haddock_workaround_ :: NotificationConfigurationProperty -> ()
snsConfiguration :: NotificationConfigurationProperty -> SnsConfigurationProperty
haddock_workaround_ :: ()
snsConfiguration :: SnsConfigurationProperty
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"SnsConfiguration" Key -> SnsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SnsConfigurationProperty
snsConfiguration]
instance Property "SnsConfiguration" NotificationConfigurationProperty where
  type PropertyType "SnsConfiguration" NotificationConfigurationProperty = SnsConfigurationProperty
  set :: PropertyType "SnsConfiguration" NotificationConfigurationProperty
-> NotificationConfigurationProperty
-> NotificationConfigurationProperty
set PropertyType "SnsConfiguration" NotificationConfigurationProperty
newValue NotificationConfigurationProperty {()
SnsConfigurationProperty
haddock_workaround_ :: NotificationConfigurationProperty -> ()
snsConfiguration :: NotificationConfigurationProperty -> SnsConfigurationProperty
haddock_workaround_ :: ()
snsConfiguration :: SnsConfigurationProperty
..}
    = NotificationConfigurationProperty
        {snsConfiguration :: SnsConfigurationProperty
snsConfiguration = PropertyType "SnsConfiguration" NotificationConfigurationProperty
SnsConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}