module Stratosphere.Rekognition.StreamProcessor.NotificationChannelProperty (
NotificationChannelProperty(..), mkNotificationChannelProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NotificationChannelProperty
=
NotificationChannelProperty {NotificationChannelProperty -> ()
haddock_workaround_ :: (),
NotificationChannelProperty -> Value Text
arn :: (Value Prelude.Text)}
deriving stock (NotificationChannelProperty -> NotificationChannelProperty -> Bool
(NotificationChannelProperty
-> NotificationChannelProperty -> Bool)
-> (NotificationChannelProperty
-> NotificationChannelProperty -> Bool)
-> Eq NotificationChannelProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NotificationChannelProperty -> NotificationChannelProperty -> Bool
== :: NotificationChannelProperty -> NotificationChannelProperty -> Bool
$c/= :: NotificationChannelProperty -> NotificationChannelProperty -> Bool
/= :: NotificationChannelProperty -> NotificationChannelProperty -> Bool
Prelude.Eq, Int -> NotificationChannelProperty -> ShowS
[NotificationChannelProperty] -> ShowS
NotificationChannelProperty -> String
(Int -> NotificationChannelProperty -> ShowS)
-> (NotificationChannelProperty -> String)
-> ([NotificationChannelProperty] -> ShowS)
-> Show NotificationChannelProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NotificationChannelProperty -> ShowS
showsPrec :: Int -> NotificationChannelProperty -> ShowS
$cshow :: NotificationChannelProperty -> String
show :: NotificationChannelProperty -> String
$cshowList :: [NotificationChannelProperty] -> ShowS
showList :: [NotificationChannelProperty] -> ShowS
Prelude.Show)
mkNotificationChannelProperty ::
Value Prelude.Text -> NotificationChannelProperty
mkNotificationChannelProperty :: Value Text -> NotificationChannelProperty
mkNotificationChannelProperty Value Text
arn
= NotificationChannelProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), arn :: Value Text
arn = Value Text
arn}
instance ToResourceProperties NotificationChannelProperty where
toResourceProperties :: NotificationChannelProperty -> ResourceProperties
toResourceProperties NotificationChannelProperty {()
Value Text
haddock_workaround_ :: NotificationChannelProperty -> ()
arn :: NotificationChannelProperty -> Value Text
haddock_workaround_ :: ()
arn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Rekognition::StreamProcessor.NotificationChannel",
supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Arn" 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
arn]}
instance JSON.ToJSON NotificationChannelProperty where
toJSON :: NotificationChannelProperty -> Value
toJSON NotificationChannelProperty {()
Value Text
haddock_workaround_ :: NotificationChannelProperty -> ()
arn :: NotificationChannelProperty -> Value Text
haddock_workaround_ :: ()
arn :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Arn" 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
arn]
instance Property "Arn" NotificationChannelProperty where
type PropertyType "Arn" NotificationChannelProperty = Value Prelude.Text
set :: PropertyType "Arn" NotificationChannelProperty
-> NotificationChannelProperty -> NotificationChannelProperty
set PropertyType "Arn" NotificationChannelProperty
newValue NotificationChannelProperty {()
Value Text
haddock_workaround_ :: NotificationChannelProperty -> ()
arn :: NotificationChannelProperty -> Value Text
haddock_workaround_ :: ()
arn :: Value Text
..}
= NotificationChannelProperty {arn :: Value Text
arn = PropertyType "Arn" NotificationChannelProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}