module Stratosphere.EntityResolution.MatchingWorkflow.OutputAttributeProperty (
OutputAttributeProperty(..), mkOutputAttributeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutputAttributeProperty
=
OutputAttributeProperty {OutputAttributeProperty -> ()
haddock_workaround_ :: (),
OutputAttributeProperty -> Maybe (Value Bool)
hashed :: (Prelude.Maybe (Value Prelude.Bool)),
OutputAttributeProperty -> Value Text
name :: (Value Prelude.Text)}
deriving stock (OutputAttributeProperty -> OutputAttributeProperty -> Bool
(OutputAttributeProperty -> OutputAttributeProperty -> Bool)
-> (OutputAttributeProperty -> OutputAttributeProperty -> Bool)
-> Eq OutputAttributeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutputAttributeProperty -> OutputAttributeProperty -> Bool
== :: OutputAttributeProperty -> OutputAttributeProperty -> Bool
$c/= :: OutputAttributeProperty -> OutputAttributeProperty -> Bool
/= :: OutputAttributeProperty -> OutputAttributeProperty -> Bool
Prelude.Eq, Int -> OutputAttributeProperty -> ShowS
[OutputAttributeProperty] -> ShowS
OutputAttributeProperty -> String
(Int -> OutputAttributeProperty -> ShowS)
-> (OutputAttributeProperty -> String)
-> ([OutputAttributeProperty] -> ShowS)
-> Show OutputAttributeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutputAttributeProperty -> ShowS
showsPrec :: Int -> OutputAttributeProperty -> ShowS
$cshow :: OutputAttributeProperty -> String
show :: OutputAttributeProperty -> String
$cshowList :: [OutputAttributeProperty] -> ShowS
showList :: [OutputAttributeProperty] -> ShowS
Prelude.Show)
mkOutputAttributeProperty ::
Value Prelude.Text -> OutputAttributeProperty
mkOutputAttributeProperty :: Value Text -> OutputAttributeProperty
mkOutputAttributeProperty Value Text
name
= OutputAttributeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, hashed :: Maybe (Value Bool)
hashed = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OutputAttributeProperty where
toResourceProperties :: OutputAttributeProperty -> ResourceProperties
toResourceProperties OutputAttributeProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: OutputAttributeProperty -> ()
hashed :: OutputAttributeProperty -> Maybe (Value Bool)
name :: OutputAttributeProperty -> Value Text
haddock_workaround_ :: ()
hashed :: Maybe (Value Bool)
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EntityResolution::MatchingWorkflow.OutputAttribute",
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
"Name" 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
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Hashed" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
hashed]))}
instance JSON.ToJSON OutputAttributeProperty where
toJSON :: OutputAttributeProperty -> Value
toJSON OutputAttributeProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: OutputAttributeProperty -> ()
hashed :: OutputAttributeProperty -> Maybe (Value Bool)
name :: OutputAttributeProperty -> Value Text
haddock_workaround_ :: ()
hashed :: Maybe (Value Bool)
name :: 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
"Name" 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
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Hashed" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
hashed])))
instance Property "Hashed" OutputAttributeProperty where
type PropertyType "Hashed" OutputAttributeProperty = Value Prelude.Bool
set :: PropertyType "Hashed" OutputAttributeProperty
-> OutputAttributeProperty -> OutputAttributeProperty
set PropertyType "Hashed" OutputAttributeProperty
newValue OutputAttributeProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: OutputAttributeProperty -> ()
hashed :: OutputAttributeProperty -> Maybe (Value Bool)
name :: OutputAttributeProperty -> Value Text
haddock_workaround_ :: ()
hashed :: Maybe (Value Bool)
name :: Value Text
..}
= OutputAttributeProperty {hashed :: Maybe (Value Bool)
hashed = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Hashed" OutputAttributeProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
instance Property "Name" OutputAttributeProperty where
type PropertyType "Name" OutputAttributeProperty = Value Prelude.Text
set :: PropertyType "Name" OutputAttributeProperty
-> OutputAttributeProperty -> OutputAttributeProperty
set PropertyType "Name" OutputAttributeProperty
newValue OutputAttributeProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: OutputAttributeProperty -> ()
hashed :: OutputAttributeProperty -> Maybe (Value Bool)
name :: OutputAttributeProperty -> Value Text
haddock_workaround_ :: ()
hashed :: Maybe (Value Bool)
name :: Value Text
..}
= OutputAttributeProperty {name :: Value Text
name = PropertyType "Name" OutputAttributeProperty
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
hashed :: Maybe (Value Bool)
haddock_workaround_ :: ()
hashed :: Maybe (Value Bool)
..}