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