packages feed

stratosphere-devopsguru-1.0.0: gen/Stratosphere/DevOpsGuru/NotificationChannel.hs

module Stratosphere.DevOpsGuru.NotificationChannel (
        module Exports, NotificationChannel(..), mkNotificationChannel
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DevOpsGuru.NotificationChannel.NotificationChannelConfigProperty as Exports
import Stratosphere.ResourceProperties
data NotificationChannel
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsguru-notificationchannel.html>
    NotificationChannel {haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsguru-notificationchannel.html#cfn-devopsguru-notificationchannel-config>
                         config :: NotificationChannelConfigProperty}
  deriving stock (Prelude.Eq, Prelude.Show)
mkNotificationChannel ::
  NotificationChannelConfigProperty -> NotificationChannel
mkNotificationChannel config
  = NotificationChannel {haddock_workaround_ = (), config = config}
instance ToResourceProperties NotificationChannel where
  toResourceProperties NotificationChannel {..}
    = ResourceProperties
        {awsType = "AWS::DevOpsGuru::NotificationChannel",
         supportsTags = Prelude.False,
         properties = ["Config" JSON..= config]}
instance JSON.ToJSON NotificationChannel where
  toJSON NotificationChannel {..}
    = JSON.object ["Config" JSON..= config]
instance Property "Config" NotificationChannel where
  type PropertyType "Config" NotificationChannel = NotificationChannelConfigProperty
  set newValue NotificationChannel {..}
    = NotificationChannel {config = newValue, ..}