module Stratosphere.CustomerProfiles.Integration.ObjectTypeMappingProperty (
        ObjectTypeMappingProperty(..), mkObjectTypeMappingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ObjectTypeMappingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-integration-objecttypemapping.html>
    ObjectTypeMappingProperty {ObjectTypeMappingProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-integration-objecttypemapping.html#cfn-customerprofiles-integration-objecttypemapping-key>
                               ObjectTypeMappingProperty -> Value Text
key :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-integration-objecttypemapping.html#cfn-customerprofiles-integration-objecttypemapping-value>
                               ObjectTypeMappingProperty -> Value Text
value :: (Value Prelude.Text)}
  deriving stock (ObjectTypeMappingProperty -> ObjectTypeMappingProperty -> Bool
(ObjectTypeMappingProperty -> ObjectTypeMappingProperty -> Bool)
-> (ObjectTypeMappingProperty -> ObjectTypeMappingProperty -> Bool)
-> Eq ObjectTypeMappingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ObjectTypeMappingProperty -> ObjectTypeMappingProperty -> Bool
== :: ObjectTypeMappingProperty -> ObjectTypeMappingProperty -> Bool
$c/= :: ObjectTypeMappingProperty -> ObjectTypeMappingProperty -> Bool
/= :: ObjectTypeMappingProperty -> ObjectTypeMappingProperty -> Bool
Prelude.Eq, Int -> ObjectTypeMappingProperty -> ShowS
[ObjectTypeMappingProperty] -> ShowS
ObjectTypeMappingProperty -> String
(Int -> ObjectTypeMappingProperty -> ShowS)
-> (ObjectTypeMappingProperty -> String)
-> ([ObjectTypeMappingProperty] -> ShowS)
-> Show ObjectTypeMappingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ObjectTypeMappingProperty -> ShowS
showsPrec :: Int -> ObjectTypeMappingProperty -> ShowS
$cshow :: ObjectTypeMappingProperty -> String
show :: ObjectTypeMappingProperty -> String
$cshowList :: [ObjectTypeMappingProperty] -> ShowS
showList :: [ObjectTypeMappingProperty] -> ShowS
Prelude.Show)
mkObjectTypeMappingProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> ObjectTypeMappingProperty
mkObjectTypeMappingProperty :: Value Text -> Value Text -> ObjectTypeMappingProperty
mkObjectTypeMappingProperty Value Text
key Value Text
value
  = ObjectTypeMappingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key, value :: Value Text
value = Value Text
value}
instance ToResourceProperties ObjectTypeMappingProperty where
  toResourceProperties :: ObjectTypeMappingProperty -> ResourceProperties
toResourceProperties ObjectTypeMappingProperty {()
Value Text
haddock_workaround_ :: ObjectTypeMappingProperty -> ()
key :: ObjectTypeMappingProperty -> Value Text
value :: ObjectTypeMappingProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CustomerProfiles::Integration.ObjectTypeMapping",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Key" 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
key, Key
"Value" 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
value]}
instance JSON.ToJSON ObjectTypeMappingProperty where
  toJSON :: ObjectTypeMappingProperty -> Value
toJSON ObjectTypeMappingProperty {()
Value Text
haddock_workaround_ :: ObjectTypeMappingProperty -> ()
key :: ObjectTypeMappingProperty -> Value Text
value :: ObjectTypeMappingProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Key" 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
key, Key
"Value" 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
value]
instance Property "Key" ObjectTypeMappingProperty where
  type PropertyType "Key" ObjectTypeMappingProperty = Value Prelude.Text
  set :: PropertyType "Key" ObjectTypeMappingProperty
-> ObjectTypeMappingProperty -> ObjectTypeMappingProperty
set PropertyType "Key" ObjectTypeMappingProperty
newValue ObjectTypeMappingProperty {()
Value Text
haddock_workaround_ :: ObjectTypeMappingProperty -> ()
key :: ObjectTypeMappingProperty -> Value Text
value :: ObjectTypeMappingProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = ObjectTypeMappingProperty {key :: Value Text
key = PropertyType "Key" ObjectTypeMappingProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" ObjectTypeMappingProperty where
  type PropertyType "Value" ObjectTypeMappingProperty = Value Prelude.Text
  set :: PropertyType "Value" ObjectTypeMappingProperty
-> ObjectTypeMappingProperty -> ObjectTypeMappingProperty
set PropertyType "Value" ObjectTypeMappingProperty
newValue ObjectTypeMappingProperty {()
Value Text
haddock_workaround_ :: ObjectTypeMappingProperty -> ()
key :: ObjectTypeMappingProperty -> Value Text
value :: ObjectTypeMappingProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
    = ObjectTypeMappingProperty {value :: Value Text
value = PropertyType "Value" ObjectTypeMappingProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}