module Stratosphere.AIOps.InvestigationGroup.ChatbotNotificationChannelProperty (
ChatbotNotificationChannelProperty(..),
mkChatbotNotificationChannelProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ChatbotNotificationChannelProperty
=
ChatbotNotificationChannelProperty {ChatbotNotificationChannelProperty -> ()
haddock_workaround_ :: (),
ChatbotNotificationChannelProperty -> Maybe (ValueList Text)
chatConfigurationArns :: (Prelude.Maybe (ValueList Prelude.Text)),
ChatbotNotificationChannelProperty -> Maybe (Value Text)
sNSTopicArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ChatbotNotificationChannelProperty
-> ChatbotNotificationChannelProperty -> Bool
(ChatbotNotificationChannelProperty
-> ChatbotNotificationChannelProperty -> Bool)
-> (ChatbotNotificationChannelProperty
-> ChatbotNotificationChannelProperty -> Bool)
-> Eq ChatbotNotificationChannelProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ChatbotNotificationChannelProperty
-> ChatbotNotificationChannelProperty -> Bool
== :: ChatbotNotificationChannelProperty
-> ChatbotNotificationChannelProperty -> Bool
$c/= :: ChatbotNotificationChannelProperty
-> ChatbotNotificationChannelProperty -> Bool
/= :: ChatbotNotificationChannelProperty
-> ChatbotNotificationChannelProperty -> Bool
Prelude.Eq, Int -> ChatbotNotificationChannelProperty -> ShowS
[ChatbotNotificationChannelProperty] -> ShowS
ChatbotNotificationChannelProperty -> String
(Int -> ChatbotNotificationChannelProperty -> ShowS)
-> (ChatbotNotificationChannelProperty -> String)
-> ([ChatbotNotificationChannelProperty] -> ShowS)
-> Show ChatbotNotificationChannelProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ChatbotNotificationChannelProperty -> ShowS
showsPrec :: Int -> ChatbotNotificationChannelProperty -> ShowS
$cshow :: ChatbotNotificationChannelProperty -> String
show :: ChatbotNotificationChannelProperty -> String
$cshowList :: [ChatbotNotificationChannelProperty] -> ShowS
showList :: [ChatbotNotificationChannelProperty] -> ShowS
Prelude.Show)
mkChatbotNotificationChannelProperty ::
ChatbotNotificationChannelProperty
mkChatbotNotificationChannelProperty :: ChatbotNotificationChannelProperty
mkChatbotNotificationChannelProperty
= ChatbotNotificationChannelProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), chatConfigurationArns :: Maybe (ValueList Text)
chatConfigurationArns = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
sNSTopicArn :: Maybe (Value Text)
sNSTopicArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ChatbotNotificationChannelProperty where
toResourceProperties :: ChatbotNotificationChannelProperty -> ResourceProperties
toResourceProperties ChatbotNotificationChannelProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ChatbotNotificationChannelProperty -> ()
chatConfigurationArns :: ChatbotNotificationChannelProperty -> Maybe (ValueList Text)
sNSTopicArn :: ChatbotNotificationChannelProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
chatConfigurationArns :: Maybe (ValueList Text)
sNSTopicArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AIOps::InvestigationGroup.ChatbotNotificationChannel",
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
"ChatConfigurationArns"
(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)
chatConfigurationArns,
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..=) Key
"SNSTopicArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
sNSTopicArn])}
instance JSON.ToJSON ChatbotNotificationChannelProperty where
toJSON :: ChatbotNotificationChannelProperty -> Value
toJSON ChatbotNotificationChannelProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ChatbotNotificationChannelProperty -> ()
chatConfigurationArns :: ChatbotNotificationChannelProperty -> Maybe (ValueList Text)
sNSTopicArn :: ChatbotNotificationChannelProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
chatConfigurationArns :: Maybe (ValueList Text)
sNSTopicArn :: Maybe (Value 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
"ChatConfigurationArns"
(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)
chatConfigurationArns,
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..=) Key
"SNSTopicArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
sNSTopicArn]))
instance Property "ChatConfigurationArns" ChatbotNotificationChannelProperty where
type PropertyType "ChatConfigurationArns" ChatbotNotificationChannelProperty = ValueList Prelude.Text
set :: PropertyType
"ChatConfigurationArns" ChatbotNotificationChannelProperty
-> ChatbotNotificationChannelProperty
-> ChatbotNotificationChannelProperty
set PropertyType
"ChatConfigurationArns" ChatbotNotificationChannelProperty
newValue ChatbotNotificationChannelProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ChatbotNotificationChannelProperty -> ()
chatConfigurationArns :: ChatbotNotificationChannelProperty -> Maybe (ValueList Text)
sNSTopicArn :: ChatbotNotificationChannelProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
chatConfigurationArns :: Maybe (ValueList Text)
sNSTopicArn :: Maybe (Value Text)
..}
= ChatbotNotificationChannelProperty
{chatConfigurationArns :: Maybe (ValueList Text)
chatConfigurationArns = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ChatConfigurationArns" ChatbotNotificationChannelProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
sNSTopicArn :: Maybe (Value Text)
haddock_workaround_ :: ()
sNSTopicArn :: Maybe (Value Text)
..}
instance Property "SNSTopicArn" ChatbotNotificationChannelProperty where
type PropertyType "SNSTopicArn" ChatbotNotificationChannelProperty = Value Prelude.Text
set :: PropertyType "SNSTopicArn" ChatbotNotificationChannelProperty
-> ChatbotNotificationChannelProperty
-> ChatbotNotificationChannelProperty
set PropertyType "SNSTopicArn" ChatbotNotificationChannelProperty
newValue ChatbotNotificationChannelProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ChatbotNotificationChannelProperty -> ()
chatConfigurationArns :: ChatbotNotificationChannelProperty -> Maybe (ValueList Text)
sNSTopicArn :: ChatbotNotificationChannelProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
chatConfigurationArns :: Maybe (ValueList Text)
sNSTopicArn :: Maybe (Value Text)
..}
= ChatbotNotificationChannelProperty
{sNSTopicArn :: Maybe (Value Text)
sNSTopicArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SNSTopicArn" ChatbotNotificationChannelProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
chatConfigurationArns :: Maybe (ValueList Text)
haddock_workaround_ :: ()
chatConfigurationArns :: Maybe (ValueList Text)
..}