module Stratosphere.SSMIncidents.ResponsePlan.ChatChannelProperty (
ChatChannelProperty(..), mkChatChannelProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ChatChannelProperty
=
ChatChannelProperty {ChatChannelProperty -> ()
haddock_workaround_ :: (),
ChatChannelProperty -> Maybe (ValueList Text)
chatbotSns :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (ChatChannelProperty -> ChatChannelProperty -> Bool
(ChatChannelProperty -> ChatChannelProperty -> Bool)
-> (ChatChannelProperty -> ChatChannelProperty -> Bool)
-> Eq ChatChannelProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ChatChannelProperty -> ChatChannelProperty -> Bool
== :: ChatChannelProperty -> ChatChannelProperty -> Bool
$c/= :: ChatChannelProperty -> ChatChannelProperty -> Bool
/= :: ChatChannelProperty -> ChatChannelProperty -> Bool
Prelude.Eq, Int -> ChatChannelProperty -> ShowS
[ChatChannelProperty] -> ShowS
ChatChannelProperty -> String
(Int -> ChatChannelProperty -> ShowS)
-> (ChatChannelProperty -> String)
-> ([ChatChannelProperty] -> ShowS)
-> Show ChatChannelProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ChatChannelProperty -> ShowS
showsPrec :: Int -> ChatChannelProperty -> ShowS
$cshow :: ChatChannelProperty -> String
show :: ChatChannelProperty -> String
$cshowList :: [ChatChannelProperty] -> ShowS
showList :: [ChatChannelProperty] -> ShowS
Prelude.Show)
mkChatChannelProperty :: ChatChannelProperty
mkChatChannelProperty :: ChatChannelProperty
mkChatChannelProperty
= ChatChannelProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), chatbotSns :: Maybe (ValueList Text)
chatbotSns = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ChatChannelProperty where
toResourceProperties :: ChatChannelProperty -> ResourceProperties
toResourceProperties ChatChannelProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ChatChannelProperty -> ()
chatbotSns :: ChatChannelProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
chatbotSns :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSMIncidents::ResponsePlan.ChatChannel",
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
"ChatbotSns" (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)
chatbotSns])}
instance JSON.ToJSON ChatChannelProperty where
toJSON :: ChatChannelProperty -> Value
toJSON ChatChannelProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ChatChannelProperty -> ()
chatbotSns :: ChatChannelProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
chatbotSns :: 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
"ChatbotSns" (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)
chatbotSns]))
instance Property "ChatbotSns" ChatChannelProperty where
type PropertyType "ChatbotSns" ChatChannelProperty = ValueList Prelude.Text
set :: PropertyType "ChatbotSns" ChatChannelProperty
-> ChatChannelProperty -> ChatChannelProperty
set PropertyType "ChatbotSns" ChatChannelProperty
newValue ChatChannelProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ChatChannelProperty -> ()
chatbotSns :: ChatChannelProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
chatbotSns :: Maybe (ValueList Text)
..}
= ChatChannelProperty {chatbotSns :: Maybe (ValueList Text)
chatbotSns = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ChatbotSns" ChatChannelProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}