Class: Aws::Kendra::Types::DataSourceConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb

Overview

Note:

When making an API call, you may pass DataSourceConfiguration data as a hash:

{
  s3_configuration: {
    bucket_name: "S3BucketName", # required
    inclusion_prefixes: ["DataSourceInclusionsExclusionsStringsMember"],
    inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
    exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
    documents_metadata_configuration: {
      s3_prefix: "S3ObjectKey",
    },
    access_control_list_configuration: {
      key_path: "S3ObjectKey",
    },
  },
  share_point_configuration: {
    share_point_version: "SHAREPOINT_ONLINE", # required, accepts SHAREPOINT_ONLINE
    urls: ["Url"], # required
    secret_arn: "SecretArn", # required
    crawl_attachments: false,
    use_change_log: false,
    inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
    exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
    vpc_configuration: {
      subnet_ids: ["SubnetId"], # required
      security_group_ids: ["VpcSecurityGroupId"], # required
    },
    field_mappings: [
      {
        data_source_field_name: "DataSourceFieldName", # required
        date_field_format: "DataSourceDateFieldFormat",
        index_field_name: "IndexFieldName", # required
      },
    ],
    document_title_field_name: "DataSourceFieldName",
  },
  database_configuration: {
    database_engine_type: "RDS_AURORA_MYSQL", # required, accepts RDS_AURORA_MYSQL, RDS_AURORA_POSTGRESQL, RDS_MYSQL, RDS_POSTGRESQL
    connection_configuration: { # required
      database_host: "DatabaseHost", # required
      database_port: 1, # required
      database_name: "DatabaseName", # required
      table_name: "TableName", # required
      secret_arn: "SecretArn", # required
    },
    vpc_configuration: {
      subnet_ids: ["SubnetId"], # required
      security_group_ids: ["VpcSecurityGroupId"], # required
    },
    column_configuration: { # required
      document_id_column_name: "ColumnName", # required
      document_data_column_name: "ColumnName", # required
      document_title_column_name: "ColumnName",
      field_mappings: [
        {
          data_source_field_name: "DataSourceFieldName", # required
          date_field_format: "DataSourceDateFieldFormat",
          index_field_name: "IndexFieldName", # required
        },
      ],
      change_detecting_columns: ["ColumnName"], # required
    },
    acl_configuration: {
      allowed_groups_column_name: "ColumnName", # required
    },
    sql_configuration: {
      query_identifiers_enclosing_option: "DOUBLE_QUOTES", # accepts DOUBLE_QUOTES, NONE
    },
  },
  salesforce_configuration: {
    server_url: "Url", # required
    secret_arn: "SecretArn", # required
    standard_object_configurations: [
      {
        name: "ACCOUNT", # required, accepts ACCOUNT, CAMPAIGN, CASE, CONTACT, CONTRACT, DOCUMENT, GROUP, IDEA, LEAD, OPPORTUNITY, PARTNER, PRICEBOOK, PRODUCT, PROFILE, SOLUTION, TASK, USER
        document_data_field_name: "DataSourceFieldName", # required
        document_title_field_name: "DataSourceFieldName",
        field_mappings: [
          {
            data_source_field_name: "DataSourceFieldName", # required
            date_field_format: "DataSourceDateFieldFormat",
            index_field_name: "IndexFieldName", # required
          },
        ],
      },
    ],
    knowledge_article_configuration: {
      included_states: ["DRAFT"], # required, accepts DRAFT, PUBLISHED, ARCHIVED
      standard_knowledge_article_type_configuration: {
        document_data_field_name: "DataSourceFieldName", # required
        document_title_field_name: "DataSourceFieldName",
        field_mappings: [
          {
            data_source_field_name: "DataSourceFieldName", # required
            date_field_format: "DataSourceDateFieldFormat",
            index_field_name: "IndexFieldName", # required
          },
        ],
      },
      custom_knowledge_article_type_configurations: [
        {
          name: "SalesforceCustomKnowledgeArticleTypeName", # required
          document_data_field_name: "DataSourceFieldName", # required
          document_title_field_name: "DataSourceFieldName",
          field_mappings: [
            {
              data_source_field_name: "DataSourceFieldName", # required
              date_field_format: "DataSourceDateFieldFormat",
              index_field_name: "IndexFieldName", # required
            },
          ],
        },
      ],
    },
    chatter_feed_configuration: {
      document_data_field_name: "DataSourceFieldName", # required
      document_title_field_name: "DataSourceFieldName",
      field_mappings: [
        {
          data_source_field_name: "DataSourceFieldName", # required
          date_field_format: "DataSourceDateFieldFormat",
          index_field_name: "IndexFieldName", # required
        },
      ],
      include_filter_types: ["ACTIVE_USER"], # accepts ACTIVE_USER, STANDARD_USER
    },
    crawl_attachments: false,
    standard_object_attachment_configuration: {
      document_title_field_name: "DataSourceFieldName",
      field_mappings: [
        {
          data_source_field_name: "DataSourceFieldName", # required
          date_field_format: "DataSourceDateFieldFormat",
          index_field_name: "IndexFieldName", # required
        },
      ],
    },
    include_attachment_file_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
    exclude_attachment_file_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
  },
  one_drive_configuration: {
    tenant_domain: "TenantDomain", # required
    secret_arn: "SecretArn", # required
    one_drive_users: { # required
      one_drive_user_list: ["OneDriveUser"],
      one_drive_user_s3_path: {
        bucket: "S3BucketName", # required
        key: "S3ObjectKey", # required
      },
    },
    inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
    exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
    field_mappings: [
      {
        data_source_field_name: "DataSourceFieldName", # required
        date_field_format: "DataSourceDateFieldFormat",
        index_field_name: "IndexFieldName", # required
      },
    ],
  },
  service_now_configuration: {
    host_url: "ServiceNowHostUrl", # required
    secret_arn: "SecretArn", # required
    service_now_build_version: "LONDON", # required, accepts LONDON, OTHERS
    knowledge_article_configuration: {
      crawl_attachments: false,
      include_attachment_file_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
      exclude_attachment_file_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
      document_data_field_name: "DataSourceFieldName", # required
      document_title_field_name: "DataSourceFieldName",
      field_mappings: [
        {
          data_source_field_name: "DataSourceFieldName", # required
          date_field_format: "DataSourceDateFieldFormat",
          index_field_name: "IndexFieldName", # required
        },
      ],
    },
    service_catalog_configuration: {
      crawl_attachments: false,
      include_attachment_file_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
      exclude_attachment_file_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
      document_data_field_name: "DataSourceFieldName", # required
      document_title_field_name: "DataSourceFieldName",
      field_mappings: [
        {
          data_source_field_name: "DataSourceFieldName", # required
          date_field_format: "DataSourceDateFieldFormat",
          index_field_name: "IndexFieldName", # required
        },
      ],
    },
  },
}

Configuration information for a Amazon Kendra data source.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#database_configurationTypes::DatabaseConfiguration

Provides information necessary to create a data source connector for a database.



1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
# File 'gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb', line 1617

class DataSourceConfiguration < Struct.new(
  :s3_configuration,
  :share_point_configuration,
  :database_configuration,
  :salesforce_configuration,
  :one_drive_configuration,
  :service_now_configuration)
  SENSITIVE = []
  include Aws::Structure
end

#one_drive_configurationTypes::OneDriveConfiguration

Provided configuration for data sources that connect to Microsoft OneDrive.



1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
# File 'gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb', line 1617

class DataSourceConfiguration < Struct.new(
  :s3_configuration,
  :share_point_configuration,
  :database_configuration,
  :salesforce_configuration,
  :one_drive_configuration,
  :service_now_configuration)
  SENSITIVE = []
  include Aws::Structure
end

#s3_configurationTypes::S3DataSourceConfiguration

Provides information to create a data source connector for a document repository in an Amazon S3 bucket.



1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
# File 'gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb', line 1617

class DataSourceConfiguration < Struct.new(
  :s3_configuration,
  :share_point_configuration,
  :database_configuration,
  :salesforce_configuration,
  :one_drive_configuration,
  :service_now_configuration)
  SENSITIVE = []
  include Aws::Structure
end

#salesforce_configurationTypes::SalesforceConfiguration

Provides configuration information for data sources that connect to a Salesforce site.



1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
# File 'gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb', line 1617

class DataSourceConfiguration < Struct.new(
  :s3_configuration,
  :share_point_configuration,
  :database_configuration,
  :salesforce_configuration,
  :one_drive_configuration,
  :service_now_configuration)
  SENSITIVE = []
  include Aws::Structure
end

#service_now_configurationTypes::ServiceNowConfiguration

Provides configuration for data sources that connect to ServiceNow instances.



1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
# File 'gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb', line 1617

class DataSourceConfiguration < Struct.new(
  :s3_configuration,
  :share_point_configuration,
  :database_configuration,
  :salesforce_configuration,
  :one_drive_configuration,
  :service_now_configuration)
  SENSITIVE = []
  include Aws::Structure
end

#share_point_configurationTypes::SharePointConfiguration

Provides information necessary to create a data source connector for a Microsoft SharePoint site.



1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
# File 'gems/aws-sdk-kendra/lib/aws-sdk-kendra/types.rb', line 1617

class DataSourceConfiguration < Struct.new(
  :s3_configuration,
  :share_point_configuration,
  :database_configuration,
  :salesforce_configuration,
  :one_drive_configuration,
  :service_now_configuration)
  SENSITIVE = []
  include Aws::Structure
end