module Stratosphere.Kendra.DataSource.ColumnConfigurationProperty (
module Exports, ColumnConfigurationProperty(..),
mkColumnConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Kendra.DataSource.DataSourceToIndexFieldMappingProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ColumnConfigurationProperty
=
ColumnConfigurationProperty {ColumnConfigurationProperty -> ()
haddock_workaround_ :: (),
ColumnConfigurationProperty -> ValueList Text
changeDetectingColumns :: (ValueList Prelude.Text),
ColumnConfigurationProperty -> Value Text
documentDataColumnName :: (Value Prelude.Text),
ColumnConfigurationProperty -> Value Text
documentIdColumnName :: (Value Prelude.Text),
ColumnConfigurationProperty -> Maybe (Value Text)
documentTitleColumnName :: (Prelude.Maybe (Value Prelude.Text)),
ColumnConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings :: (Prelude.Maybe [DataSourceToIndexFieldMappingProperty])}
deriving stock (ColumnConfigurationProperty -> ColumnConfigurationProperty -> Bool
(ColumnConfigurationProperty
-> ColumnConfigurationProperty -> Bool)
-> (ColumnConfigurationProperty
-> ColumnConfigurationProperty -> Bool)
-> Eq ColumnConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ColumnConfigurationProperty -> ColumnConfigurationProperty -> Bool
== :: ColumnConfigurationProperty -> ColumnConfigurationProperty -> Bool
$c/= :: ColumnConfigurationProperty -> ColumnConfigurationProperty -> Bool
/= :: ColumnConfigurationProperty -> ColumnConfigurationProperty -> Bool
Prelude.Eq, Int -> ColumnConfigurationProperty -> ShowS
[ColumnConfigurationProperty] -> ShowS
ColumnConfigurationProperty -> String
(Int -> ColumnConfigurationProperty -> ShowS)
-> (ColumnConfigurationProperty -> String)
-> ([ColumnConfigurationProperty] -> ShowS)
-> Show ColumnConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ColumnConfigurationProperty -> ShowS
showsPrec :: Int -> ColumnConfigurationProperty -> ShowS
$cshow :: ColumnConfigurationProperty -> String
show :: ColumnConfigurationProperty -> String
$cshowList :: [ColumnConfigurationProperty] -> ShowS
showList :: [ColumnConfigurationProperty] -> ShowS
Prelude.Show)
mkColumnConfigurationProperty ::
ValueList Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> ColumnConfigurationProperty
mkColumnConfigurationProperty :: ValueList Text
-> Value Text -> Value Text -> ColumnConfigurationProperty
mkColumnConfigurationProperty
ValueList Text
changeDetectingColumns
Value Text
documentDataColumnName
Value Text
documentIdColumnName
= ColumnConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
changeDetectingColumns :: ValueList Text
changeDetectingColumns = ValueList Text
changeDetectingColumns,
documentDataColumnName :: Value Text
documentDataColumnName = Value Text
documentDataColumnName,
documentIdColumnName :: Value Text
documentIdColumnName = Value Text
documentIdColumnName,
documentTitleColumnName :: Maybe (Value Text)
documentTitleColumnName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings = Maybe [DataSourceToIndexFieldMappingProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ColumnConfigurationProperty where
toResourceProperties :: ColumnConfigurationProperty -> ResourceProperties
toResourceProperties ColumnConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ColumnConfigurationProperty -> ()
changeDetectingColumns :: ColumnConfigurationProperty -> ValueList Text
documentDataColumnName :: ColumnConfigurationProperty -> Value Text
documentIdColumnName :: ColumnConfigurationProperty -> Value Text
documentTitleColumnName :: ColumnConfigurationProperty -> Maybe (Value Text)
fieldMappings :: ColumnConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Kendra::DataSource.ColumnConfiguration",
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
"ChangeDetectingColumns" 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..= ValueList Text
changeDetectingColumns,
Key
"DocumentDataColumnName" 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
documentDataColumnName,
Key
"DocumentIdColumnName" 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
documentIdColumnName]
([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
"DocumentTitleColumnName"
(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)
documentTitleColumnName,
Key -> [DataSourceToIndexFieldMappingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FieldMappings" ([DataSourceToIndexFieldMappingProperty] -> (Key, Value))
-> Maybe [DataSourceToIndexFieldMappingProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings]))}
instance JSON.ToJSON ColumnConfigurationProperty where
toJSON :: ColumnConfigurationProperty -> Value
toJSON ColumnConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ColumnConfigurationProperty -> ()
changeDetectingColumns :: ColumnConfigurationProperty -> ValueList Text
documentDataColumnName :: ColumnConfigurationProperty -> Value Text
documentIdColumnName :: ColumnConfigurationProperty -> Value Text
documentTitleColumnName :: ColumnConfigurationProperty -> Maybe (Value Text)
fieldMappings :: ColumnConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
= [(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
"ChangeDetectingColumns" 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..= ValueList Text
changeDetectingColumns,
Key
"DocumentDataColumnName" 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
documentDataColumnName,
Key
"DocumentIdColumnName" 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
documentIdColumnName]
([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
"DocumentTitleColumnName"
(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)
documentTitleColumnName,
Key -> [DataSourceToIndexFieldMappingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FieldMappings" ([DataSourceToIndexFieldMappingProperty] -> (Key, Value))
-> Maybe [DataSourceToIndexFieldMappingProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings])))
instance Property "ChangeDetectingColumns" ColumnConfigurationProperty where
type PropertyType "ChangeDetectingColumns" ColumnConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "ChangeDetectingColumns" ColumnConfigurationProperty
-> ColumnConfigurationProperty -> ColumnConfigurationProperty
set PropertyType "ChangeDetectingColumns" ColumnConfigurationProperty
newValue ColumnConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ColumnConfigurationProperty -> ()
changeDetectingColumns :: ColumnConfigurationProperty -> ValueList Text
documentDataColumnName :: ColumnConfigurationProperty -> Value Text
documentIdColumnName :: ColumnConfigurationProperty -> Value Text
documentTitleColumnName :: ColumnConfigurationProperty -> Maybe (Value Text)
fieldMappings :: ColumnConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
= ColumnConfigurationProperty
{changeDetectingColumns :: ValueList Text
changeDetectingColumns = PropertyType "ChangeDetectingColumns" ColumnConfigurationProperty
ValueList Text
newValue, Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
instance Property "DocumentDataColumnName" ColumnConfigurationProperty where
type PropertyType "DocumentDataColumnName" ColumnConfigurationProperty = Value Prelude.Text
set :: PropertyType "DocumentDataColumnName" ColumnConfigurationProperty
-> ColumnConfigurationProperty -> ColumnConfigurationProperty
set PropertyType "DocumentDataColumnName" ColumnConfigurationProperty
newValue ColumnConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ColumnConfigurationProperty -> ()
changeDetectingColumns :: ColumnConfigurationProperty -> ValueList Text
documentDataColumnName :: ColumnConfigurationProperty -> Value Text
documentIdColumnName :: ColumnConfigurationProperty -> Value Text
documentTitleColumnName :: ColumnConfigurationProperty -> Maybe (Value Text)
fieldMappings :: ColumnConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
= ColumnConfigurationProperty
{documentDataColumnName :: Value Text
documentDataColumnName = PropertyType "DocumentDataColumnName" ColumnConfigurationProperty
Value Text
newValue, Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
instance Property "DocumentIdColumnName" ColumnConfigurationProperty where
type PropertyType "DocumentIdColumnName" ColumnConfigurationProperty = Value Prelude.Text
set :: PropertyType "DocumentIdColumnName" ColumnConfigurationProperty
-> ColumnConfigurationProperty -> ColumnConfigurationProperty
set PropertyType "DocumentIdColumnName" ColumnConfigurationProperty
newValue ColumnConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ColumnConfigurationProperty -> ()
changeDetectingColumns :: ColumnConfigurationProperty -> ValueList Text
documentDataColumnName :: ColumnConfigurationProperty -> Value Text
documentIdColumnName :: ColumnConfigurationProperty -> Value Text
documentTitleColumnName :: ColumnConfigurationProperty -> Maybe (Value Text)
fieldMappings :: ColumnConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
= ColumnConfigurationProperty {documentIdColumnName :: Value Text
documentIdColumnName = PropertyType "DocumentIdColumnName" ColumnConfigurationProperty
Value Text
newValue, Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
instance Property "DocumentTitleColumnName" ColumnConfigurationProperty where
type PropertyType "DocumentTitleColumnName" ColumnConfigurationProperty = Value Prelude.Text
set :: PropertyType "DocumentTitleColumnName" ColumnConfigurationProperty
-> ColumnConfigurationProperty -> ColumnConfigurationProperty
set PropertyType "DocumentTitleColumnName" ColumnConfigurationProperty
newValue ColumnConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ColumnConfigurationProperty -> ()
changeDetectingColumns :: ColumnConfigurationProperty -> ValueList Text
documentDataColumnName :: ColumnConfigurationProperty -> Value Text
documentIdColumnName :: ColumnConfigurationProperty -> Value Text
documentTitleColumnName :: ColumnConfigurationProperty -> Maybe (Value Text)
fieldMappings :: ColumnConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
= ColumnConfigurationProperty
{documentTitleColumnName :: Maybe (Value Text)
documentTitleColumnName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DocumentTitleColumnName" ColumnConfigurationProperty
Value Text
newValue, Maybe [DataSourceToIndexFieldMappingProperty]
()
ValueList Text
Value Text
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
instance Property "FieldMappings" ColumnConfigurationProperty where
type PropertyType "FieldMappings" ColumnConfigurationProperty = [DataSourceToIndexFieldMappingProperty]
set :: PropertyType "FieldMappings" ColumnConfigurationProperty
-> ColumnConfigurationProperty -> ColumnConfigurationProperty
set PropertyType "FieldMappings" ColumnConfigurationProperty
newValue ColumnConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ColumnConfigurationProperty -> ()
changeDetectingColumns :: ColumnConfigurationProperty -> ValueList Text
documentDataColumnName :: ColumnConfigurationProperty -> Value Text
documentIdColumnName :: ColumnConfigurationProperty -> Value Text
documentTitleColumnName :: ColumnConfigurationProperty -> Maybe (Value Text)
fieldMappings :: ColumnConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
= ColumnConfigurationProperty
{fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings = [DataSourceToIndexFieldMappingProperty]
-> Maybe [DataSourceToIndexFieldMappingProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [DataSourceToIndexFieldMappingProperty]
PropertyType "FieldMappings" ColumnConfigurationProperty
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
haddock_workaround_ :: ()
changeDetectingColumns :: ValueList Text
documentDataColumnName :: Value Text
documentIdColumnName :: Value Text
documentTitleColumnName :: Maybe (Value Text)
..}