GitHubConfiguration
¶
Source code in docs_src/capo_kendra/types/git_hub_configuration.py
exclusion_file_name_patterns
instance-attribute
¶
exclusion_file_name_patterns: NotRequired[StringList]
A list of regular expression patterns to exclude certain file names in your GitHub repository or repositories. File names that match the patterns are excluded from the index. File names that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
exclusion_file_type_patterns
instance-attribute
¶
exclusion_file_type_patterns: NotRequired[StringList]
A list of regular expression patterns to exclude certain file types in your GitHub repository or repositories. File types that match the patterns are excluded from the index. File types that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
exclusion_folder_name_patterns
instance-attribute
¶
exclusion_folder_name_patterns: NotRequired[StringList]
A list of regular expression patterns to exclude certain folder names in your GitHub repository or repositories. Folder names that match the patterns are excluded from the index. Folder names that don't match the patterns are included in the index. If a folder matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.
git_hub_commit_configuration_field_mappings
instance-attribute
¶
git_hub_commit_configuration_field_mappings: NotRequired[
DataSourceToIndexFieldMappingList
]
A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub commits to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
git_hub_document_crawl_properties
instance-attribute
¶
git_hub_document_crawl_properties: NotRequired[GitHubDocumentCrawlProperties]
Configuration information to include certain types of GitHub content. You can configure to index repository files only, or also include issues and pull requests, comments, and comment attachments.
git_hub_issue_attachment_configuration_field_mappings
instance-attribute
¶
git_hub_issue_attachment_configuration_field_mappings: NotRequired[
DataSourceToIndexFieldMappingList
]
A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issue attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
git_hub_issue_comment_configuration_field_mappings
instance-attribute
¶
git_hub_issue_comment_configuration_field_mappings: NotRequired[
DataSourceToIndexFieldMappingList
]
A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issue comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
git_hub_issue_document_configuration_field_mappings
instance-attribute
¶
git_hub_issue_document_configuration_field_mappings: NotRequired[
DataSourceToIndexFieldMappingList
]
A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issues to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
git_hub_pull_request_comment_configuration_field_mappings
instance-attribute
¶
git_hub_pull_request_comment_configuration_field_mappings: NotRequired[
DataSourceToIndexFieldMappingList
]
A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull request comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
git_hub_pull_request_document_attachment_configuration_field_mappings
instance-attribute
¶
git_hub_pull_request_document_attachment_configuration_field_mappings: NotRequired[
DataSourceToIndexFieldMappingList
]
A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull request attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
git_hub_pull_request_document_configuration_field_mappings
instance-attribute
¶
git_hub_pull_request_document_configuration_field_mappings: NotRequired[
DataSourceToIndexFieldMappingList
]
A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull requests to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
git_hub_repository_configuration_field_mappings
instance-attribute
¶
git_hub_repository_configuration_field_mappings: NotRequired[
DataSourceToIndexFieldMappingList
]
A list of DataSourceToIndexFieldMapping objects that map GitHub repository attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.
inclusion_file_name_patterns
instance-attribute
¶
inclusion_file_name_patterns: NotRequired[StringList]
A list of regular expression patterns to include certain file names in your GitHub repository or repositories. File names that match the patterns are included in the index. File names that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
inclusion_file_type_patterns
instance-attribute
¶
inclusion_file_type_patterns: NotRequired[StringList]
A list of regular expression patterns to include certain file types in your GitHub repository or repositories. File types that match the patterns are included in the index. File types that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
inclusion_folder_name_patterns
instance-attribute
¶
inclusion_folder_name_patterns: NotRequired[StringList]
A list of regular expression patterns to include certain folder names in your GitHub repository or repositories. Folder names that match the patterns are included in the index. Folder names that don't match the patterns are excluded from the index. If a folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.
on_premise_configuration
instance-attribute
¶
on_premise_configuration: NotRequired[OnPremiseConfiguration]
Configuration information to connect to GitHub Enterprise Server (on premises).
repository_filter
instance-attribute
¶
repository_filter: NotRequired[RepositoryNames]
A list of names of the specific repositories you want to index.
saa_s_configuration
instance-attribute
¶
saa_s_configuration: NotRequired[SaaSConfiguration]
Configuration information to connect to GitHub Enterprise Cloud (SaaS).
secret_arn
instance-attribute
¶
secret_arn: SecretArn
The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your GitHub. The secret must contain a JSON structure with the following keys:
-
personalToken—The access token created in GitHub. For more information on creating a token in GitHub, see Using a GitHub data source.
type
instance-attribute
¶
type: NotRequired[Type]
The type of GitHub service you want to connect to—GitHub Enterprise Cloud (SaaS) or GitHub Enterprise Server (on premises).
use_change_log
instance-attribute
¶
use_change_log: Boolean
TRUE to use the GitHub change log to determine which documents require updating in the index. Depending on the GitHub change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in GitHub.
vpc_configuration
instance-attribute
¶
vpc_configuration: NotRequired[DataSourceVpcConfiguration]
Configuration information of an Amazon Virtual Private Cloud to connect to your GitHub. For more information, see Configuring a VPC.