module Stratosphere.AppSync.Resolver.LambdaConflictHandlerConfigProperty (
        LambdaConflictHandlerConfigProperty(..),
        mkLambdaConflictHandlerConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LambdaConflictHandlerConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-lambdaconflicthandlerconfig.html>
    LambdaConflictHandlerConfigProperty {LambdaConflictHandlerConfigProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-lambdaconflicthandlerconfig.html#cfn-appsync-resolver-lambdaconflicthandlerconfig-lambdaconflicthandlerarn>
                                         LambdaConflictHandlerConfigProperty -> Maybe (Value Text)
lambdaConflictHandlerArn :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (LambdaConflictHandlerConfigProperty
-> LambdaConflictHandlerConfigProperty -> Bool
(LambdaConflictHandlerConfigProperty
 -> LambdaConflictHandlerConfigProperty -> Bool)
-> (LambdaConflictHandlerConfigProperty
    -> LambdaConflictHandlerConfigProperty -> Bool)
-> Eq LambdaConflictHandlerConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LambdaConflictHandlerConfigProperty
-> LambdaConflictHandlerConfigProperty -> Bool
== :: LambdaConflictHandlerConfigProperty
-> LambdaConflictHandlerConfigProperty -> Bool
$c/= :: LambdaConflictHandlerConfigProperty
-> LambdaConflictHandlerConfigProperty -> Bool
/= :: LambdaConflictHandlerConfigProperty
-> LambdaConflictHandlerConfigProperty -> Bool
Prelude.Eq, Int -> LambdaConflictHandlerConfigProperty -> ShowS
[LambdaConflictHandlerConfigProperty] -> ShowS
LambdaConflictHandlerConfigProperty -> String
(Int -> LambdaConflictHandlerConfigProperty -> ShowS)
-> (LambdaConflictHandlerConfigProperty -> String)
-> ([LambdaConflictHandlerConfigProperty] -> ShowS)
-> Show LambdaConflictHandlerConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LambdaConflictHandlerConfigProperty -> ShowS
showsPrec :: Int -> LambdaConflictHandlerConfigProperty -> ShowS
$cshow :: LambdaConflictHandlerConfigProperty -> String
show :: LambdaConflictHandlerConfigProperty -> String
$cshowList :: [LambdaConflictHandlerConfigProperty] -> ShowS
showList :: [LambdaConflictHandlerConfigProperty] -> ShowS
Prelude.Show)
mkLambdaConflictHandlerConfigProperty ::
  LambdaConflictHandlerConfigProperty
mkLambdaConflictHandlerConfigProperty :: LambdaConflictHandlerConfigProperty
mkLambdaConflictHandlerConfigProperty
  = LambdaConflictHandlerConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       lambdaConflictHandlerArn :: Maybe (Value Text)
lambdaConflictHandlerArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LambdaConflictHandlerConfigProperty where
  toResourceProperties :: LambdaConflictHandlerConfigProperty -> ResourceProperties
toResourceProperties LambdaConflictHandlerConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdaConflictHandlerConfigProperty -> ()
lambdaConflictHandlerArn :: LambdaConflictHandlerConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
lambdaConflictHandlerArn :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppSync::Resolver.LambdaConflictHandlerConfig",
         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 -> 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
"LambdaConflictHandlerArn"
                              (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)
lambdaConflictHandlerArn])}
instance JSON.ToJSON LambdaConflictHandlerConfigProperty where
  toJSON :: LambdaConflictHandlerConfigProperty -> Value
toJSON LambdaConflictHandlerConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdaConflictHandlerConfigProperty -> ()
lambdaConflictHandlerArn :: LambdaConflictHandlerConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
lambdaConflictHandlerArn :: 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 -> 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
"LambdaConflictHandlerArn"
                 (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)
lambdaConflictHandlerArn]))
instance Property "LambdaConflictHandlerArn" LambdaConflictHandlerConfigProperty where
  type PropertyType "LambdaConflictHandlerArn" LambdaConflictHandlerConfigProperty = Value Prelude.Text
  set :: PropertyType
  "LambdaConflictHandlerArn" LambdaConflictHandlerConfigProperty
-> LambdaConflictHandlerConfigProperty
-> LambdaConflictHandlerConfigProperty
set PropertyType
  "LambdaConflictHandlerArn" LambdaConflictHandlerConfigProperty
newValue LambdaConflictHandlerConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: LambdaConflictHandlerConfigProperty -> ()
lambdaConflictHandlerArn :: LambdaConflictHandlerConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
lambdaConflictHandlerArn :: Maybe (Value Text)
..}
    = LambdaConflictHandlerConfigProperty
        {lambdaConflictHandlerArn :: Maybe (Value Text)
lambdaConflictHandlerArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "LambdaConflictHandlerArn" LambdaConflictHandlerConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}