module Stratosphere.Kendra.DataSource (
        module Exports, DataSource(..), mkDataSource
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Kendra.DataSource.CustomDocumentEnrichmentConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Kendra.DataSource.DataSourceConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data DataSource
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html>
    DataSource {DataSource -> ()
haddock_workaround_ :: (),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html#cfn-kendra-datasource-customdocumentenrichmentconfiguration>
                DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
customDocumentEnrichmentConfiguration :: (Prelude.Maybe CustomDocumentEnrichmentConfigurationProperty),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html#cfn-kendra-datasource-datasourceconfiguration>
                DataSource -> Maybe DataSourceConfigurationProperty
dataSourceConfiguration :: (Prelude.Maybe DataSourceConfigurationProperty),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html#cfn-kendra-datasource-description>
                DataSource -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html#cfn-kendra-datasource-indexid>
                DataSource -> Value Text
indexId :: (Value Prelude.Text),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html#cfn-kendra-datasource-languagecode>
                DataSource -> Maybe (Value Text)
languageCode :: (Prelude.Maybe (Value Prelude.Text)),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html#cfn-kendra-datasource-name>
                DataSource -> Value Text
name :: (Value Prelude.Text),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html#cfn-kendra-datasource-rolearn>
                DataSource -> Maybe (Value Text)
roleArn :: (Prelude.Maybe (Value Prelude.Text)),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html#cfn-kendra-datasource-schedule>
                DataSource -> Maybe (Value Text)
schedule :: (Prelude.Maybe (Value Prelude.Text)),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html#cfn-kendra-datasource-tags>
                DataSource -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kendra-datasource.html#cfn-kendra-datasource-type>
                DataSource -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (DataSource -> DataSource -> Bool
(DataSource -> DataSource -> Bool)
-> (DataSource -> DataSource -> Bool) -> Eq DataSource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataSource -> DataSource -> Bool
== :: DataSource -> DataSource -> Bool
$c/= :: DataSource -> DataSource -> Bool
/= :: DataSource -> DataSource -> Bool
Prelude.Eq, Int -> DataSource -> ShowS
[DataSource] -> ShowS
DataSource -> String
(Int -> DataSource -> ShowS)
-> (DataSource -> String)
-> ([DataSource] -> ShowS)
-> Show DataSource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataSource -> ShowS
showsPrec :: Int -> DataSource -> ShowS
$cshow :: DataSource -> String
show :: DataSource -> String
$cshowList :: [DataSource] -> ShowS
showList :: [DataSource] -> ShowS
Prelude.Show)
mkDataSource ::
  Value Prelude.Text
  -> Value Prelude.Text -> Value Prelude.Text -> DataSource
mkDataSource :: Value Text -> Value Text -> Value Text -> DataSource
mkDataSource Value Text
indexId Value Text
name Value Text
type'
  = DataSource
      {haddock_workaround_ :: ()
haddock_workaround_ = (), indexId :: Value Text
indexId = Value Text
indexId, name :: Value Text
name = Value Text
name,
       type' :: Value Text
type' = Value Text
type',
       customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
customDocumentEnrichmentConfiguration = Maybe CustomDocumentEnrichmentConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
dataSourceConfiguration = Maybe DataSourceConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, languageCode :: Maybe (Value Text)
languageCode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       roleArn :: Maybe (Value Text)
roleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, schedule :: Maybe (Value Text)
schedule = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataSource where
  toResourceProperties :: DataSource -> ResourceProperties
toResourceProperties DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Kendra::DataSource", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"IndexId" 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
indexId, 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,
                            Key
"Type" 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
type']
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key
-> CustomDocumentEnrichmentConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomDocumentEnrichmentConfiguration"
                                 (CustomDocumentEnrichmentConfigurationProperty -> (Key, Value))
-> Maybe CustomDocumentEnrichmentConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomDocumentEnrichmentConfigurationProperty
customDocumentEnrichmentConfiguration,
                               Key -> DataSourceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DataSourceConfiguration"
                                 (DataSourceConfigurationProperty -> (Key, Value))
-> Maybe DataSourceConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataSourceConfigurationProperty
dataSourceConfiguration,
                               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
"Description" (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)
description,
                               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
"LanguageCode" (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)
languageCode,
                               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
"RoleArn" (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)
roleArn,
                               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
"Schedule" (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)
schedule,
                               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON DataSource where
  toJSON :: DataSource -> Value
toJSON DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: 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
"IndexId" 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
indexId, 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,
               Key
"Type" 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
type']
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key
-> CustomDocumentEnrichmentConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomDocumentEnrichmentConfiguration"
                    (CustomDocumentEnrichmentConfigurationProperty -> (Key, Value))
-> Maybe CustomDocumentEnrichmentConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomDocumentEnrichmentConfigurationProperty
customDocumentEnrichmentConfiguration,
                  Key -> DataSourceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DataSourceConfiguration"
                    (DataSourceConfigurationProperty -> (Key, Value))
-> Maybe DataSourceConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataSourceConfigurationProperty
dataSourceConfiguration,
                  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
"Description" (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)
description,
                  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
"LanguageCode" (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)
languageCode,
                  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
"RoleArn" (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)
roleArn,
                  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
"Schedule" (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)
schedule,
                  Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "CustomDocumentEnrichmentConfiguration" DataSource where
  type PropertyType "CustomDocumentEnrichmentConfiguration" DataSource = CustomDocumentEnrichmentConfigurationProperty
  set :: PropertyType "CustomDocumentEnrichmentConfiguration" DataSource
-> DataSource -> DataSource
set PropertyType "CustomDocumentEnrichmentConfiguration" DataSource
newValue DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = DataSource
        {customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
customDocumentEnrichmentConfiguration = CustomDocumentEnrichmentConfigurationProperty
-> Maybe CustomDocumentEnrichmentConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomDocumentEnrichmentConfiguration" DataSource
CustomDocumentEnrichmentConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "DataSourceConfiguration" DataSource where
  type PropertyType "DataSourceConfiguration" DataSource = DataSourceConfigurationProperty
  set :: PropertyType "DataSourceConfiguration" DataSource
-> DataSource -> DataSource
set PropertyType "DataSourceConfiguration" DataSource
newValue DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = DataSource {dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
dataSourceConfiguration = DataSourceConfigurationProperty
-> Maybe DataSourceConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DataSourceConfiguration" DataSource
DataSourceConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Description" DataSource where
  type PropertyType "Description" DataSource = Value Prelude.Text
  set :: PropertyType "Description" DataSource -> DataSource -> DataSource
set PropertyType "Description" DataSource
newValue DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = DataSource {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" DataSource
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "IndexId" DataSource where
  type PropertyType "IndexId" DataSource = Value Prelude.Text
  set :: PropertyType "IndexId" DataSource -> DataSource -> DataSource
set PropertyType "IndexId" DataSource
newValue DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..} = DataSource {indexId :: Value Text
indexId = PropertyType "IndexId" DataSource
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "LanguageCode" DataSource where
  type PropertyType "LanguageCode" DataSource = Value Prelude.Text
  set :: PropertyType "LanguageCode" DataSource -> DataSource -> DataSource
set PropertyType "LanguageCode" DataSource
newValue DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = DataSource {languageCode :: Maybe (Value Text)
languageCode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LanguageCode" DataSource
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Name" DataSource where
  type PropertyType "Name" DataSource = Value Prelude.Text
  set :: PropertyType "Name" DataSource -> DataSource -> DataSource
set PropertyType "Name" DataSource
newValue DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..} = DataSource {name :: Value Text
name = PropertyType "Name" DataSource
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "RoleArn" DataSource where
  type PropertyType "RoleArn" DataSource = Value Prelude.Text
  set :: PropertyType "RoleArn" DataSource -> DataSource -> DataSource
set PropertyType "RoleArn" DataSource
newValue DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = DataSource {roleArn :: Maybe (Value Text)
roleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoleArn" DataSource
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Schedule" DataSource where
  type PropertyType "Schedule" DataSource = Value Prelude.Text
  set :: PropertyType "Schedule" DataSource -> DataSource -> DataSource
set PropertyType "Schedule" DataSource
newValue DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = DataSource {schedule :: Maybe (Value Text)
schedule = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Schedule" DataSource
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Tags" DataSource where
  type PropertyType "Tags" DataSource = [Tag]
  set :: PropertyType "Tags" DataSource -> DataSource -> DataSource
set PropertyType "Tags" DataSource
newValue DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = DataSource {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" DataSource
newValue, Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Type" DataSource where
  type PropertyType "Type" DataSource = Value Prelude.Text
  set :: PropertyType "Type" DataSource -> DataSource -> DataSource
set PropertyType "Type" DataSource
newValue DataSource {Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: DataSource -> ()
customDocumentEnrichmentConfiguration :: DataSource -> Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: DataSource -> Maybe DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
indexId :: DataSource -> Value Text
languageCode :: DataSource -> Maybe (Value Text)
name :: DataSource -> Value Text
roleArn :: DataSource -> Maybe (Value Text)
schedule :: DataSource -> Maybe (Value Text)
tags :: DataSource -> Maybe [Tag]
type' :: DataSource -> Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..} = DataSource {type' :: Value Text
type' = PropertyType "Type" DataSource
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe CustomDocumentEnrichmentConfigurationProperty
Maybe DataSourceConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
customDocumentEnrichmentConfiguration :: Maybe CustomDocumentEnrichmentConfigurationProperty
dataSourceConfiguration :: Maybe DataSourceConfigurationProperty
description :: Maybe (Value Text)
indexId :: Value Text
languageCode :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
schedule :: Maybe (Value Text)
tags :: Maybe [Tag]
..}