module Stratosphere.EntityResolution.IdNamespace.NamespaceRuleBasedPropertiesProperty (
module Exports, NamespaceRuleBasedPropertiesProperty(..),
mkNamespaceRuleBasedPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EntityResolution.IdNamespace.RuleProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NamespaceRuleBasedPropertiesProperty
=
NamespaceRuleBasedPropertiesProperty {NamespaceRuleBasedPropertiesProperty -> ()
haddock_workaround_ :: (),
NamespaceRuleBasedPropertiesProperty -> Maybe (Value Text)
attributeMatchingModel :: (Prelude.Maybe (Value Prelude.Text)),
NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
recordMatchingModels :: (Prelude.Maybe (ValueList Prelude.Text)),
NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
ruleDefinitionTypes :: (Prelude.Maybe (ValueList Prelude.Text)),
NamespaceRuleBasedPropertiesProperty -> Maybe [RuleProperty]
rules :: (Prelude.Maybe [RuleProperty])}
deriving stock (NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty -> Bool
(NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty -> Bool)
-> (NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty -> Bool)
-> Eq NamespaceRuleBasedPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty -> Bool
== :: NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty -> Bool
$c/= :: NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty -> Bool
/= :: NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty -> Bool
Prelude.Eq, Int -> NamespaceRuleBasedPropertiesProperty -> ShowS
[NamespaceRuleBasedPropertiesProperty] -> ShowS
NamespaceRuleBasedPropertiesProperty -> String
(Int -> NamespaceRuleBasedPropertiesProperty -> ShowS)
-> (NamespaceRuleBasedPropertiesProperty -> String)
-> ([NamespaceRuleBasedPropertiesProperty] -> ShowS)
-> Show NamespaceRuleBasedPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NamespaceRuleBasedPropertiesProperty -> ShowS
showsPrec :: Int -> NamespaceRuleBasedPropertiesProperty -> ShowS
$cshow :: NamespaceRuleBasedPropertiesProperty -> String
show :: NamespaceRuleBasedPropertiesProperty -> String
$cshowList :: [NamespaceRuleBasedPropertiesProperty] -> ShowS
showList :: [NamespaceRuleBasedPropertiesProperty] -> ShowS
Prelude.Show)
mkNamespaceRuleBasedPropertiesProperty ::
NamespaceRuleBasedPropertiesProperty
mkNamespaceRuleBasedPropertiesProperty :: NamespaceRuleBasedPropertiesProperty
mkNamespaceRuleBasedPropertiesProperty
= NamespaceRuleBasedPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
attributeMatchingModel :: Maybe (Value Text)
attributeMatchingModel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
recordMatchingModels :: Maybe (ValueList Text)
recordMatchingModels = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
ruleDefinitionTypes :: Maybe (ValueList Text)
ruleDefinitionTypes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, rules :: Maybe [RuleProperty]
rules = Maybe [RuleProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NamespaceRuleBasedPropertiesProperty where
toResourceProperties :: NamespaceRuleBasedPropertiesProperty -> ResourceProperties
toResourceProperties NamespaceRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: NamespaceRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: NamespaceRuleBasedPropertiesProperty -> Maybe (Value Text)
recordMatchingModels :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
ruleDefinitionTypes :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
rules :: NamespaceRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
recordMatchingModels :: Maybe (ValueList Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EntityResolution::IdNamespace.NamespaceRuleBasedProperties",
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
"AttributeMatchingModel"
(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)
attributeMatchingModel,
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
"RecordMatchingModels" (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)
recordMatchingModels,
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
"RuleDefinitionTypes" (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)
ruleDefinitionTypes,
Key -> [RuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Rules" ([RuleProperty] -> (Key, Value))
-> Maybe [RuleProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RuleProperty]
rules])}
instance JSON.ToJSON NamespaceRuleBasedPropertiesProperty where
toJSON :: NamespaceRuleBasedPropertiesProperty -> Value
toJSON NamespaceRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: NamespaceRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: NamespaceRuleBasedPropertiesProperty -> Maybe (Value Text)
recordMatchingModels :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
ruleDefinitionTypes :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
rules :: NamespaceRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
recordMatchingModels :: Maybe (ValueList Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
..}
= [(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
"AttributeMatchingModel"
(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)
attributeMatchingModel,
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
"RecordMatchingModels" (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)
recordMatchingModels,
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
"RuleDefinitionTypes" (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)
ruleDefinitionTypes,
Key -> [RuleProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Rules" ([RuleProperty] -> (Key, Value))
-> Maybe [RuleProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [RuleProperty]
rules]))
instance Property "AttributeMatchingModel" NamespaceRuleBasedPropertiesProperty where
type PropertyType "AttributeMatchingModel" NamespaceRuleBasedPropertiesProperty = Value Prelude.Text
set :: PropertyType
"AttributeMatchingModel" NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty
set PropertyType
"AttributeMatchingModel" NamespaceRuleBasedPropertiesProperty
newValue NamespaceRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: NamespaceRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: NamespaceRuleBasedPropertiesProperty -> Maybe (Value Text)
recordMatchingModels :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
ruleDefinitionTypes :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
rules :: NamespaceRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
recordMatchingModels :: Maybe (ValueList Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
..}
= NamespaceRuleBasedPropertiesProperty
{attributeMatchingModel :: Maybe (Value Text)
attributeMatchingModel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AttributeMatchingModel" NamespaceRuleBasedPropertiesProperty
Value Text
newValue, Maybe [RuleProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: ()
recordMatchingModels :: Maybe (ValueList Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
haddock_workaround_ :: ()
recordMatchingModels :: Maybe (ValueList Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
..}
instance Property "RecordMatchingModels" NamespaceRuleBasedPropertiesProperty where
type PropertyType "RecordMatchingModels" NamespaceRuleBasedPropertiesProperty = ValueList Prelude.Text
set :: PropertyType
"RecordMatchingModels" NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty
set PropertyType
"RecordMatchingModels" NamespaceRuleBasedPropertiesProperty
newValue NamespaceRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: NamespaceRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: NamespaceRuleBasedPropertiesProperty -> Maybe (Value Text)
recordMatchingModels :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
ruleDefinitionTypes :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
rules :: NamespaceRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
recordMatchingModels :: Maybe (ValueList Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
..}
= NamespaceRuleBasedPropertiesProperty
{recordMatchingModels :: Maybe (ValueList Text)
recordMatchingModels = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"RecordMatchingModels" NamespaceRuleBasedPropertiesProperty
ValueList Text
newValue, Maybe [RuleProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
..}
instance Property "RuleDefinitionTypes" NamespaceRuleBasedPropertiesProperty where
type PropertyType "RuleDefinitionTypes" NamespaceRuleBasedPropertiesProperty = ValueList Prelude.Text
set :: PropertyType
"RuleDefinitionTypes" NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty
set PropertyType
"RuleDefinitionTypes" NamespaceRuleBasedPropertiesProperty
newValue NamespaceRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: NamespaceRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: NamespaceRuleBasedPropertiesProperty -> Maybe (Value Text)
recordMatchingModels :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
ruleDefinitionTypes :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
rules :: NamespaceRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
recordMatchingModels :: Maybe (ValueList Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
..}
= NamespaceRuleBasedPropertiesProperty
{ruleDefinitionTypes :: Maybe (ValueList Text)
ruleDefinitionTypes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"RuleDefinitionTypes" NamespaceRuleBasedPropertiesProperty
ValueList Text
newValue, Maybe [RuleProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
recordMatchingModels :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
recordMatchingModels :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
..}
instance Property "Rules" NamespaceRuleBasedPropertiesProperty where
type PropertyType "Rules" NamespaceRuleBasedPropertiesProperty = [RuleProperty]
set :: PropertyType "Rules" NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty
-> NamespaceRuleBasedPropertiesProperty
set PropertyType "Rules" NamespaceRuleBasedPropertiesProperty
newValue NamespaceRuleBasedPropertiesProperty {Maybe [RuleProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: NamespaceRuleBasedPropertiesProperty -> ()
attributeMatchingModel :: NamespaceRuleBasedPropertiesProperty -> Maybe (Value Text)
recordMatchingModels :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
ruleDefinitionTypes :: NamespaceRuleBasedPropertiesProperty -> Maybe (ValueList Text)
rules :: NamespaceRuleBasedPropertiesProperty -> Maybe [RuleProperty]
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
recordMatchingModels :: Maybe (ValueList Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
rules :: Maybe [RuleProperty]
..}
= NamespaceRuleBasedPropertiesProperty
{rules :: Maybe [RuleProperty]
rules = [RuleProperty] -> Maybe [RuleProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [RuleProperty]
PropertyType "Rules" NamespaceRuleBasedPropertiesProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
recordMatchingModels :: Maybe (ValueList Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
attributeMatchingModel :: Maybe (Value Text)
recordMatchingModels :: Maybe (ValueList Text)
ruleDefinitionTypes :: Maybe (ValueList Text)
..}