module Stratosphere.AppSync.ChannelNamespace.HandlerConfigProperty (
        module Exports, HandlerConfigProperty(..), mkHandlerConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppSync.ChannelNamespace.IntegrationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HandlerConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-channelnamespace-handlerconfig.html>
    HandlerConfigProperty {HandlerConfigProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-channelnamespace-handlerconfig.html#cfn-appsync-channelnamespace-handlerconfig-behavior>
                           HandlerConfigProperty -> Value Text
behavior :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-channelnamespace-handlerconfig.html#cfn-appsync-channelnamespace-handlerconfig-integration>
                           HandlerConfigProperty -> IntegrationProperty
integration :: IntegrationProperty}
  deriving stock (HandlerConfigProperty -> HandlerConfigProperty -> Bool
(HandlerConfigProperty -> HandlerConfigProperty -> Bool)
-> (HandlerConfigProperty -> HandlerConfigProperty -> Bool)
-> Eq HandlerConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HandlerConfigProperty -> HandlerConfigProperty -> Bool
== :: HandlerConfigProperty -> HandlerConfigProperty -> Bool
$c/= :: HandlerConfigProperty -> HandlerConfigProperty -> Bool
/= :: HandlerConfigProperty -> HandlerConfigProperty -> Bool
Prelude.Eq, Int -> HandlerConfigProperty -> ShowS
[HandlerConfigProperty] -> ShowS
HandlerConfigProperty -> String
(Int -> HandlerConfigProperty -> ShowS)
-> (HandlerConfigProperty -> String)
-> ([HandlerConfigProperty] -> ShowS)
-> Show HandlerConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HandlerConfigProperty -> ShowS
showsPrec :: Int -> HandlerConfigProperty -> ShowS
$cshow :: HandlerConfigProperty -> String
show :: HandlerConfigProperty -> String
$cshowList :: [HandlerConfigProperty] -> ShowS
showList :: [HandlerConfigProperty] -> ShowS
Prelude.Show)
mkHandlerConfigProperty ::
  Value Prelude.Text -> IntegrationProperty -> HandlerConfigProperty
mkHandlerConfigProperty :: Value Text -> IntegrationProperty -> HandlerConfigProperty
mkHandlerConfigProperty Value Text
behavior IntegrationProperty
integration
  = HandlerConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), behavior :: Value Text
behavior = Value Text
behavior,
       integration :: IntegrationProperty
integration = IntegrationProperty
integration}
instance ToResourceProperties HandlerConfigProperty where
  toResourceProperties :: HandlerConfigProperty -> ResourceProperties
toResourceProperties HandlerConfigProperty {()
Value Text
IntegrationProperty
haddock_workaround_ :: HandlerConfigProperty -> ()
behavior :: HandlerConfigProperty -> Value Text
integration :: HandlerConfigProperty -> IntegrationProperty
haddock_workaround_ :: ()
behavior :: Value Text
integration :: IntegrationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppSync::ChannelNamespace.HandlerConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Behavior" 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
behavior,
                       Key
"Integration" Key -> IntegrationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= IntegrationProperty
integration]}
instance JSON.ToJSON HandlerConfigProperty where
  toJSON :: HandlerConfigProperty -> Value
toJSON HandlerConfigProperty {()
Value Text
IntegrationProperty
haddock_workaround_ :: HandlerConfigProperty -> ()
behavior :: HandlerConfigProperty -> Value Text
integration :: HandlerConfigProperty -> IntegrationProperty
haddock_workaround_ :: ()
behavior :: Value Text
integration :: IntegrationProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Behavior" 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
behavior, Key
"Integration" Key -> IntegrationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= IntegrationProperty
integration]
instance Property "Behavior" HandlerConfigProperty where
  type PropertyType "Behavior" HandlerConfigProperty = Value Prelude.Text
  set :: PropertyType "Behavior" HandlerConfigProperty
-> HandlerConfigProperty -> HandlerConfigProperty
set PropertyType "Behavior" HandlerConfigProperty
newValue HandlerConfigProperty {()
Value Text
IntegrationProperty
haddock_workaround_ :: HandlerConfigProperty -> ()
behavior :: HandlerConfigProperty -> Value Text
integration :: HandlerConfigProperty -> IntegrationProperty
haddock_workaround_ :: ()
behavior :: Value Text
integration :: IntegrationProperty
..}
    = HandlerConfigProperty {behavior :: Value Text
behavior = PropertyType "Behavior" HandlerConfigProperty
Value Text
newValue, ()
IntegrationProperty
haddock_workaround_ :: ()
integration :: IntegrationProperty
haddock_workaround_ :: ()
integration :: IntegrationProperty
..}
instance Property "Integration" HandlerConfigProperty where
  type PropertyType "Integration" HandlerConfigProperty = IntegrationProperty
  set :: PropertyType "Integration" HandlerConfigProperty
-> HandlerConfigProperty -> HandlerConfigProperty
set PropertyType "Integration" HandlerConfigProperty
newValue HandlerConfigProperty {()
Value Text
IntegrationProperty
haddock_workaround_ :: HandlerConfigProperty -> ()
behavior :: HandlerConfigProperty -> Value Text
integration :: HandlerConfigProperty -> IntegrationProperty
haddock_workaround_ :: ()
behavior :: Value Text
integration :: IntegrationProperty
..}
    = HandlerConfigProperty {integration :: IntegrationProperty
integration = PropertyType "Integration" HandlerConfigProperty
IntegrationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
behavior :: Value Text
haddock_workaround_ :: ()
behavior :: Value Text
..}