module Stratosphere.Connect.Rule.NotificationRecipientTypeProperty (
        NotificationRecipientTypeProperty(..),
        mkNotificationRecipientTypeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NotificationRecipientTypeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-notificationrecipienttype.html>
    NotificationRecipientTypeProperty {NotificationRecipientTypeProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-notificationrecipienttype.html#cfn-connect-rule-notificationrecipienttype-userarns>
                                       NotificationRecipientTypeProperty -> Maybe (ValueList Text)
userArns :: (Prelude.Maybe (ValueList Prelude.Text)),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-notificationrecipienttype.html#cfn-connect-rule-notificationrecipienttype-usertags>
                                       NotificationRecipientTypeProperty -> Maybe (Map Text (Value Text))
userTags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
  deriving stock (NotificationRecipientTypeProperty
-> NotificationRecipientTypeProperty -> Bool
(NotificationRecipientTypeProperty
 -> NotificationRecipientTypeProperty -> Bool)
-> (NotificationRecipientTypeProperty
    -> NotificationRecipientTypeProperty -> Bool)
-> Eq NotificationRecipientTypeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NotificationRecipientTypeProperty
-> NotificationRecipientTypeProperty -> Bool
== :: NotificationRecipientTypeProperty
-> NotificationRecipientTypeProperty -> Bool
$c/= :: NotificationRecipientTypeProperty
-> NotificationRecipientTypeProperty -> Bool
/= :: NotificationRecipientTypeProperty
-> NotificationRecipientTypeProperty -> Bool
Prelude.Eq, Int -> NotificationRecipientTypeProperty -> ShowS
[NotificationRecipientTypeProperty] -> ShowS
NotificationRecipientTypeProperty -> String
(Int -> NotificationRecipientTypeProperty -> ShowS)
-> (NotificationRecipientTypeProperty -> String)
-> ([NotificationRecipientTypeProperty] -> ShowS)
-> Show NotificationRecipientTypeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NotificationRecipientTypeProperty -> ShowS
showsPrec :: Int -> NotificationRecipientTypeProperty -> ShowS
$cshow :: NotificationRecipientTypeProperty -> String
show :: NotificationRecipientTypeProperty -> String
$cshowList :: [NotificationRecipientTypeProperty] -> ShowS
showList :: [NotificationRecipientTypeProperty] -> ShowS
Prelude.Show)
mkNotificationRecipientTypeProperty ::
  NotificationRecipientTypeProperty
mkNotificationRecipientTypeProperty :: NotificationRecipientTypeProperty
mkNotificationRecipientTypeProperty
  = NotificationRecipientTypeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), userArns :: Maybe (ValueList Text)
userArns = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       userTags :: Maybe (Map Text (Value Text))
userTags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NotificationRecipientTypeProperty where
  toResourceProperties :: NotificationRecipientTypeProperty -> ResourceProperties
toResourceProperties NotificationRecipientTypeProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
()
haddock_workaround_ :: NotificationRecipientTypeProperty -> ()
userArns :: NotificationRecipientTypeProperty -> Maybe (ValueList Text)
userTags :: NotificationRecipientTypeProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
userArns :: Maybe (ValueList Text)
userTags :: Maybe (Map Text (Value Text))
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::Rule.NotificationRecipientType",
         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
"UserArns" (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)
userArns,
                            Key -> Map Text (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
"UserTags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
userTags])}
instance JSON.ToJSON NotificationRecipientTypeProperty where
  toJSON :: NotificationRecipientTypeProperty -> Value
toJSON NotificationRecipientTypeProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
()
haddock_workaround_ :: NotificationRecipientTypeProperty -> ()
userArns :: NotificationRecipientTypeProperty -> Maybe (ValueList Text)
userTags :: NotificationRecipientTypeProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
userArns :: Maybe (ValueList Text)
userTags :: Maybe (Map Text (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
"UserArns" (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)
userArns,
               Key -> Map Text (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
"UserTags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
userTags]))
instance Property "UserArns" NotificationRecipientTypeProperty where
  type PropertyType "UserArns" NotificationRecipientTypeProperty = ValueList Prelude.Text
  set :: PropertyType "UserArns" NotificationRecipientTypeProperty
-> NotificationRecipientTypeProperty
-> NotificationRecipientTypeProperty
set PropertyType "UserArns" NotificationRecipientTypeProperty
newValue NotificationRecipientTypeProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
()
haddock_workaround_ :: NotificationRecipientTypeProperty -> ()
userArns :: NotificationRecipientTypeProperty -> Maybe (ValueList Text)
userTags :: NotificationRecipientTypeProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
userArns :: Maybe (ValueList Text)
userTags :: Maybe (Map Text (Value Text))
..}
    = NotificationRecipientTypeProperty
        {userArns :: Maybe (ValueList Text)
userArns = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UserArns" NotificationRecipientTypeProperty
ValueList Text
newValue, Maybe (Map Text (Value Text))
()
haddock_workaround_ :: ()
userTags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
userTags :: Maybe (Map Text (Value Text))
..}
instance Property "UserTags" NotificationRecipientTypeProperty where
  type PropertyType "UserTags" NotificationRecipientTypeProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "UserTags" NotificationRecipientTypeProperty
-> NotificationRecipientTypeProperty
-> NotificationRecipientTypeProperty
set PropertyType "UserTags" NotificationRecipientTypeProperty
newValue NotificationRecipientTypeProperty {Maybe (Map Text (Value Text))
Maybe (ValueList Text)
()
haddock_workaround_ :: NotificationRecipientTypeProperty -> ()
userArns :: NotificationRecipientTypeProperty -> Maybe (ValueList Text)
userTags :: NotificationRecipientTypeProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
userArns :: Maybe (ValueList Text)
userTags :: Maybe (Map Text (Value Text))
..}
    = NotificationRecipientTypeProperty
        {userTags :: Maybe (Map Text (Value Text))
userTags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "UserTags" NotificationRecipientTypeProperty
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
userArns :: Maybe (ValueList Text)
haddock_workaround_ :: ()
userArns :: Maybe (ValueList Text)
..}