module Stratosphere.AppFlow.Flow.ZendeskDestinationPropertiesProperty (
        module Exports, ZendeskDestinationPropertiesProperty(..),
        mkZendeskDestinationPropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppFlow.Flow.ErrorHandlingConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ZendeskDestinationPropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-zendeskdestinationproperties.html>
    ZendeskDestinationPropertiesProperty {ZendeskDestinationPropertiesProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-zendeskdestinationproperties.html#cfn-appflow-flow-zendeskdestinationproperties-errorhandlingconfig>
                                          ZendeskDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
errorHandlingConfig :: (Prelude.Maybe ErrorHandlingConfigProperty),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-zendeskdestinationproperties.html#cfn-appflow-flow-zendeskdestinationproperties-idfieldnames>
                                          ZendeskDestinationPropertiesProperty -> Maybe (ValueList Text)
idFieldNames :: (Prelude.Maybe (ValueList Prelude.Text)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-zendeskdestinationproperties.html#cfn-appflow-flow-zendeskdestinationproperties-object>
                                          ZendeskDestinationPropertiesProperty -> Value Text
object :: (Value Prelude.Text),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-zendeskdestinationproperties.html#cfn-appflow-flow-zendeskdestinationproperties-writeoperationtype>
                                          ZendeskDestinationPropertiesProperty -> Maybe (Value Text)
writeOperationType :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty -> Bool
(ZendeskDestinationPropertiesProperty
 -> ZendeskDestinationPropertiesProperty -> Bool)
-> (ZendeskDestinationPropertiesProperty
    -> ZendeskDestinationPropertiesProperty -> Bool)
-> Eq ZendeskDestinationPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty -> Bool
== :: ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty -> Bool
$c/= :: ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty -> Bool
/= :: ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty -> Bool
Prelude.Eq, Int -> ZendeskDestinationPropertiesProperty -> ShowS
[ZendeskDestinationPropertiesProperty] -> ShowS
ZendeskDestinationPropertiesProperty -> String
(Int -> ZendeskDestinationPropertiesProperty -> ShowS)
-> (ZendeskDestinationPropertiesProperty -> String)
-> ([ZendeskDestinationPropertiesProperty] -> ShowS)
-> Show ZendeskDestinationPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ZendeskDestinationPropertiesProperty -> ShowS
showsPrec :: Int -> ZendeskDestinationPropertiesProperty -> ShowS
$cshow :: ZendeskDestinationPropertiesProperty -> String
show :: ZendeskDestinationPropertiesProperty -> String
$cshowList :: [ZendeskDestinationPropertiesProperty] -> ShowS
showList :: [ZendeskDestinationPropertiesProperty] -> ShowS
Prelude.Show)
mkZendeskDestinationPropertiesProperty ::
  Value Prelude.Text -> ZendeskDestinationPropertiesProperty
mkZendeskDestinationPropertiesProperty :: Value Text -> ZendeskDestinationPropertiesProperty
mkZendeskDestinationPropertiesProperty Value Text
object
  = ZendeskDestinationPropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), object :: Value Text
object = Value Text
object,
       errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
errorHandlingConfig = Maybe ErrorHandlingConfigProperty
forall a. Maybe a
Prelude.Nothing,
       idFieldNames :: Maybe (ValueList Text)
idFieldNames = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       writeOperationType :: Maybe (Value Text)
writeOperationType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ZendeskDestinationPropertiesProperty where
  toResourceProperties :: ZendeskDestinationPropertiesProperty -> ResourceProperties
toResourceProperties ZendeskDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ZendeskDestinationPropertiesProperty -> ()
errorHandlingConfig :: ZendeskDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: ZendeskDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: ZendeskDestinationPropertiesProperty -> Value Text
writeOperationType :: ZendeskDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.ZendeskDestinationProperties",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Object" 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
object]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ErrorHandlingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ErrorHandlingConfig" (ErrorHandlingConfigProperty -> (Key, Value))
-> Maybe ErrorHandlingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ErrorHandlingConfigProperty
errorHandlingConfig,
                               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
"IdFieldNames" (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)
idFieldNames,
                               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
"WriteOperationType" (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)
writeOperationType]))}
instance JSON.ToJSON ZendeskDestinationPropertiesProperty where
  toJSON :: ZendeskDestinationPropertiesProperty -> Value
toJSON ZendeskDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ZendeskDestinationPropertiesProperty -> ()
errorHandlingConfig :: ZendeskDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: ZendeskDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: ZendeskDestinationPropertiesProperty -> Value Text
writeOperationType :: ZendeskDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Object" 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
object]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ErrorHandlingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ErrorHandlingConfig" (ErrorHandlingConfigProperty -> (Key, Value))
-> Maybe ErrorHandlingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ErrorHandlingConfigProperty
errorHandlingConfig,
                  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
"IdFieldNames" (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)
idFieldNames,
                  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
"WriteOperationType" (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)
writeOperationType])))
instance Property "ErrorHandlingConfig" ZendeskDestinationPropertiesProperty where
  type PropertyType "ErrorHandlingConfig" ZendeskDestinationPropertiesProperty = ErrorHandlingConfigProperty
  set :: PropertyType
  "ErrorHandlingConfig" ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty
set PropertyType
  "ErrorHandlingConfig" ZendeskDestinationPropertiesProperty
newValue ZendeskDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ZendeskDestinationPropertiesProperty -> ()
errorHandlingConfig :: ZendeskDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: ZendeskDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: ZendeskDestinationPropertiesProperty -> Value Text
writeOperationType :: ZendeskDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
    = ZendeskDestinationPropertiesProperty
        {errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
errorHandlingConfig = ErrorHandlingConfigProperty -> Maybe ErrorHandlingConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ErrorHandlingConfig" ZendeskDestinationPropertiesProperty
ErrorHandlingConfigProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
haddock_workaround_ :: ()
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
instance Property "IdFieldNames" ZendeskDestinationPropertiesProperty where
  type PropertyType "IdFieldNames" ZendeskDestinationPropertiesProperty = ValueList Prelude.Text
  set :: PropertyType "IdFieldNames" ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty
set PropertyType "IdFieldNames" ZendeskDestinationPropertiesProperty
newValue ZendeskDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ZendeskDestinationPropertiesProperty -> ()
errorHandlingConfig :: ZendeskDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: ZendeskDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: ZendeskDestinationPropertiesProperty -> Value Text
writeOperationType :: ZendeskDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
    = ZendeskDestinationPropertiesProperty
        {idFieldNames :: Maybe (ValueList Text)
idFieldNames = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IdFieldNames" ZendeskDestinationPropertiesProperty
ValueList Text
newValue, Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
writeOperationType :: Maybe (Value Text)
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
instance Property "Object" ZendeskDestinationPropertiesProperty where
  type PropertyType "Object" ZendeskDestinationPropertiesProperty = Value Prelude.Text
  set :: PropertyType "Object" ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty
set PropertyType "Object" ZendeskDestinationPropertiesProperty
newValue ZendeskDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ZendeskDestinationPropertiesProperty -> ()
errorHandlingConfig :: ZendeskDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: ZendeskDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: ZendeskDestinationPropertiesProperty -> Value Text
writeOperationType :: ZendeskDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
    = ZendeskDestinationPropertiesProperty {object :: Value Text
object = PropertyType "Object" ZendeskDestinationPropertiesProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
writeOperationType :: Maybe (Value Text)
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
writeOperationType :: Maybe (Value Text)
..}
instance Property "WriteOperationType" ZendeskDestinationPropertiesProperty where
  type PropertyType "WriteOperationType" ZendeskDestinationPropertiesProperty = Value Prelude.Text
  set :: PropertyType
  "WriteOperationType" ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty
-> ZendeskDestinationPropertiesProperty
set PropertyType
  "WriteOperationType" ZendeskDestinationPropertiesProperty
newValue ZendeskDestinationPropertiesProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ZendeskDestinationPropertiesProperty -> ()
errorHandlingConfig :: ZendeskDestinationPropertiesProperty
-> Maybe ErrorHandlingConfigProperty
idFieldNames :: ZendeskDestinationPropertiesProperty -> Maybe (ValueList Text)
object :: ZendeskDestinationPropertiesProperty -> Value Text
writeOperationType :: ZendeskDestinationPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
writeOperationType :: Maybe (Value Text)
..}
    = ZendeskDestinationPropertiesProperty
        {writeOperationType :: Maybe (Value Text)
writeOperationType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "WriteOperationType" ZendeskDestinationPropertiesProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe ErrorHandlingConfigProperty
()
Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
haddock_workaround_ :: ()
errorHandlingConfig :: Maybe ErrorHandlingConfigProperty
idFieldNames :: Maybe (ValueList Text)
object :: Value Text
..}