module Stratosphere.DevOpsGuru.NotificationChannel.NotificationFilterConfigProperty (
        NotificationFilterConfigProperty(..),
        mkNotificationFilterConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NotificationFilterConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devopsguru-notificationchannel-notificationfilterconfig.html>
    NotificationFilterConfigProperty {NotificationFilterConfigProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devopsguru-notificationchannel-notificationfilterconfig.html#cfn-devopsguru-notificationchannel-notificationfilterconfig-messagetypes>
                                      NotificationFilterConfigProperty -> Maybe (ValueList Text)
messageTypes :: (Prelude.Maybe (ValueList Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devopsguru-notificationchannel-notificationfilterconfig.html#cfn-devopsguru-notificationchannel-notificationfilterconfig-severities>
                                      NotificationFilterConfigProperty -> Maybe (ValueList Text)
severities :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (NotificationFilterConfigProperty
-> NotificationFilterConfigProperty -> Bool
(NotificationFilterConfigProperty
 -> NotificationFilterConfigProperty -> Bool)
-> (NotificationFilterConfigProperty
    -> NotificationFilterConfigProperty -> Bool)
-> Eq NotificationFilterConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NotificationFilterConfigProperty
-> NotificationFilterConfigProperty -> Bool
== :: NotificationFilterConfigProperty
-> NotificationFilterConfigProperty -> Bool
$c/= :: NotificationFilterConfigProperty
-> NotificationFilterConfigProperty -> Bool
/= :: NotificationFilterConfigProperty
-> NotificationFilterConfigProperty -> Bool
Prelude.Eq, Int -> NotificationFilterConfigProperty -> ShowS
[NotificationFilterConfigProperty] -> ShowS
NotificationFilterConfigProperty -> String
(Int -> NotificationFilterConfigProperty -> ShowS)
-> (NotificationFilterConfigProperty -> String)
-> ([NotificationFilterConfigProperty] -> ShowS)
-> Show NotificationFilterConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NotificationFilterConfigProperty -> ShowS
showsPrec :: Int -> NotificationFilterConfigProperty -> ShowS
$cshow :: NotificationFilterConfigProperty -> String
show :: NotificationFilterConfigProperty -> String
$cshowList :: [NotificationFilterConfigProperty] -> ShowS
showList :: [NotificationFilterConfigProperty] -> ShowS
Prelude.Show)
mkNotificationFilterConfigProperty ::
  NotificationFilterConfigProperty
mkNotificationFilterConfigProperty :: NotificationFilterConfigProperty
mkNotificationFilterConfigProperty
  = NotificationFilterConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), messageTypes :: Maybe (ValueList Text)
messageTypes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       severities :: Maybe (ValueList Text)
severities = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NotificationFilterConfigProperty where
  toResourceProperties :: NotificationFilterConfigProperty -> ResourceProperties
toResourceProperties NotificationFilterConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: NotificationFilterConfigProperty -> ()
messageTypes :: NotificationFilterConfigProperty -> Maybe (ValueList Text)
severities :: NotificationFilterConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
messageTypes :: Maybe (ValueList Text)
severities :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DevOpsGuru::NotificationChannel.NotificationFilterConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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..=) Key
"MessageTypes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
messageTypes,
                            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..=) Key
"Severities" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
severities])}
instance JSON.ToJSON NotificationFilterConfigProperty where
  toJSON :: NotificationFilterConfigProperty -> Value
toJSON NotificationFilterConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: NotificationFilterConfigProperty -> ()
messageTypes :: NotificationFilterConfigProperty -> Maybe (ValueList Text)
severities :: NotificationFilterConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
messageTypes :: Maybe (ValueList Text)
severities :: Maybe (ValueList Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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..=) Key
"MessageTypes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
messageTypes,
               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..=) Key
"Severities" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
severities]))
instance Property "MessageTypes" NotificationFilterConfigProperty where
  type PropertyType "MessageTypes" NotificationFilterConfigProperty = ValueList Prelude.Text
  set :: PropertyType "MessageTypes" NotificationFilterConfigProperty
-> NotificationFilterConfigProperty
-> NotificationFilterConfigProperty
set PropertyType "MessageTypes" NotificationFilterConfigProperty
newValue NotificationFilterConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: NotificationFilterConfigProperty -> ()
messageTypes :: NotificationFilterConfigProperty -> Maybe (ValueList Text)
severities :: NotificationFilterConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
messageTypes :: Maybe (ValueList Text)
severities :: Maybe (ValueList Text)
..}
    = NotificationFilterConfigProperty
        {messageTypes :: Maybe (ValueList Text)
messageTypes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MessageTypes" NotificationFilterConfigProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
severities :: Maybe (ValueList Text)
haddock_workaround_ :: ()
severities :: Maybe (ValueList Text)
..}
instance Property "Severities" NotificationFilterConfigProperty where
  type PropertyType "Severities" NotificationFilterConfigProperty = ValueList Prelude.Text
  set :: PropertyType "Severities" NotificationFilterConfigProperty
-> NotificationFilterConfigProperty
-> NotificationFilterConfigProperty
set PropertyType "Severities" NotificationFilterConfigProperty
newValue NotificationFilterConfigProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: NotificationFilterConfigProperty -> ()
messageTypes :: NotificationFilterConfigProperty -> Maybe (ValueList Text)
severities :: NotificationFilterConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
messageTypes :: Maybe (ValueList Text)
severities :: Maybe (ValueList Text)
..}
    = NotificationFilterConfigProperty
        {severities :: Maybe (ValueList Text)
severities = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Severities" NotificationFilterConfigProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
messageTypes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
messageTypes :: Maybe (ValueList Text)
..}