Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data GitHubConfiguration = GitHubConfiguration' {
- exclusionFileNamePatterns :: Maybe [Text]
- exclusionFileTypePatterns :: Maybe [Text]
- exclusionFolderNamePatterns :: Maybe [Text]
- gitHubCommitConfigurationFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
- gitHubDocumentCrawlProperties :: Maybe GitHubDocumentCrawlProperties
- gitHubIssueAttachmentConfigurationFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
- gitHubIssueCommentConfigurationFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
- gitHubIssueDocumentConfigurationFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
- gitHubPullRequestCommentConfigurationFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
- gitHubPullRequestDocumentAttachmentConfigurationFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
- gitHubPullRequestDocumentConfigurationFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
- gitHubRepositoryConfigurationFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
- inclusionFileNamePatterns :: Maybe [Text]
- inclusionFileTypePatterns :: Maybe [Text]
- inclusionFolderNamePatterns :: Maybe [Text]
- onPremiseConfiguration :: Maybe OnPremiseConfiguration
- repositoryFilter :: Maybe [Text]
- saaSConfiguration :: Maybe SaaSConfiguration
- type' :: Maybe Type
- useChangeLog :: Maybe Bool
- vpcConfiguration :: Maybe DataSourceVpcConfiguration
- secretArn :: Text
- newGitHubConfiguration :: Text -> GitHubConfiguration
- gitHubConfiguration_exclusionFileNamePatterns :: Lens' GitHubConfiguration (Maybe [Text])
- gitHubConfiguration_exclusionFileTypePatterns :: Lens' GitHubConfiguration (Maybe [Text])
- gitHubConfiguration_exclusionFolderNamePatterns :: Lens' GitHubConfiguration (Maybe [Text])
- gitHubConfiguration_gitHubCommitConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping))
- gitHubConfiguration_gitHubDocumentCrawlProperties :: Lens' GitHubConfiguration (Maybe GitHubDocumentCrawlProperties)
- gitHubConfiguration_gitHubIssueAttachmentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping))
- gitHubConfiguration_gitHubIssueCommentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping))
- gitHubConfiguration_gitHubIssueDocumentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping))
- gitHubConfiguration_gitHubPullRequestCommentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping))
- gitHubConfiguration_gitHubPullRequestDocumentAttachmentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping))
- gitHubConfiguration_gitHubPullRequestDocumentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping))
- gitHubConfiguration_gitHubRepositoryConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping))
- gitHubConfiguration_inclusionFileNamePatterns :: Lens' GitHubConfiguration (Maybe [Text])
- gitHubConfiguration_inclusionFileTypePatterns :: Lens' GitHubConfiguration (Maybe [Text])
- gitHubConfiguration_inclusionFolderNamePatterns :: Lens' GitHubConfiguration (Maybe [Text])
- gitHubConfiguration_onPremiseConfiguration :: Lens' GitHubConfiguration (Maybe OnPremiseConfiguration)
- gitHubConfiguration_repositoryFilter :: Lens' GitHubConfiguration (Maybe [Text])
- gitHubConfiguration_saaSConfiguration :: Lens' GitHubConfiguration (Maybe SaaSConfiguration)
- gitHubConfiguration_type :: Lens' GitHubConfiguration (Maybe Type)
- gitHubConfiguration_useChangeLog :: Lens' GitHubConfiguration (Maybe Bool)
- gitHubConfiguration_vpcConfiguration :: Lens' GitHubConfiguration (Maybe DataSourceVpcConfiguration)
- gitHubConfiguration_secretArn :: Lens' GitHubConfiguration Text
Documentation
data GitHubConfiguration Source #
Provides the configuration information to connect to GitHub as your data source.
See: newGitHubConfiguration
smart constructor.
GitHubConfiguration' | |
|
Instances
newGitHubConfiguration Source #
Create a value of GitHubConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:exclusionFileNamePatterns:GitHubConfiguration'
, gitHubConfiguration_exclusionFileNamePatterns
- 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.
$sel:exclusionFileTypePatterns:GitHubConfiguration'
, gitHubConfiguration_exclusionFileTypePatterns
- 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.
$sel:exclusionFolderNamePatterns:GitHubConfiguration'
, gitHubConfiguration_exclusionFolderNamePatterns
- 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.
$sel:gitHubCommitConfigurationFieldMappings:GitHubConfiguration'
, gitHubConfiguration_gitHubCommitConfigurationFieldMappings
- 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.
$sel:gitHubDocumentCrawlProperties:GitHubConfiguration'
, gitHubConfiguration_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.
$sel:gitHubIssueAttachmentConfigurationFieldMappings:GitHubConfiguration'
, gitHubConfiguration_gitHubIssueAttachmentConfigurationFieldMappings
- 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.
$sel:gitHubIssueCommentConfigurationFieldMappings:GitHubConfiguration'
, gitHubConfiguration_gitHubIssueCommentConfigurationFieldMappings
- 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.
$sel:gitHubIssueDocumentConfigurationFieldMappings:GitHubConfiguration'
, gitHubConfiguration_gitHubIssueDocumentConfigurationFieldMappings
- 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.
$sel:gitHubPullRequestCommentConfigurationFieldMappings:GitHubConfiguration'
, gitHubConfiguration_gitHubPullRequestCommentConfigurationFieldMappings
- 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.
$sel:gitHubPullRequestDocumentAttachmentConfigurationFieldMappings:GitHubConfiguration'
, gitHubConfiguration_gitHubPullRequestDocumentAttachmentConfigurationFieldMappings
- 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.
$sel:gitHubPullRequestDocumentConfigurationFieldMappings:GitHubConfiguration'
, gitHubConfiguration_gitHubPullRequestDocumentConfigurationFieldMappings
- 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.
$sel:gitHubRepositoryConfigurationFieldMappings:GitHubConfiguration'
, gitHubConfiguration_gitHubRepositoryConfigurationFieldMappings
- 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.
$sel:inclusionFileNamePatterns:GitHubConfiguration'
, gitHubConfiguration_inclusionFileNamePatterns
- 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.
$sel:inclusionFileTypePatterns:GitHubConfiguration'
, gitHubConfiguration_inclusionFileTypePatterns
- 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.
$sel:inclusionFolderNamePatterns:GitHubConfiguration'
, gitHubConfiguration_inclusionFolderNamePatterns
- 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.
$sel:onPremiseConfiguration:GitHubConfiguration'
, gitHubConfiguration_onPremiseConfiguration
- Configuration information to connect to GitHub Enterprise Server (on
premises).
$sel:repositoryFilter:GitHubConfiguration'
, gitHubConfiguration_repositoryFilter
- A list of names of the specific repositories you want to index.
$sel:saaSConfiguration:GitHubConfiguration'
, gitHubConfiguration_saaSConfiguration
- Configuration information to connect to GitHub Enterprise Cloud (SaaS).
$sel:type':GitHubConfiguration'
, gitHubConfiguration_type
- The type of GitHub service you want to connect to—GitHub Enterprise
Cloud (SaaS) or GitHub Enterprise Server (on premises).
$sel:useChangeLog:GitHubConfiguration'
, gitHubConfiguration_useChangeLog
- 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.
$sel:vpcConfiguration:GitHubConfiguration'
, gitHubConfiguration_vpcConfiguration
- Configuration information of an Amazon Virtual Private Cloud to connect
to your GitHub. For more information, see
Configuring a VPC.
$sel:secretArn:GitHubConfiguration'
, gitHubConfiguration_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.
gitHubConfiguration_exclusionFileNamePatterns :: Lens' GitHubConfiguration (Maybe [Text]) Source #
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.
gitHubConfiguration_exclusionFileTypePatterns :: Lens' GitHubConfiguration (Maybe [Text]) Source #
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.
gitHubConfiguration_exclusionFolderNamePatterns :: Lens' GitHubConfiguration (Maybe [Text]) Source #
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.
gitHubConfiguration_gitHubCommitConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping)) Source #
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.
gitHubConfiguration_gitHubDocumentCrawlProperties :: Lens' GitHubConfiguration (Maybe GitHubDocumentCrawlProperties) Source #
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.
gitHubConfiguration_gitHubIssueAttachmentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping)) Source #
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.
gitHubConfiguration_gitHubIssueCommentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping)) Source #
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.
gitHubConfiguration_gitHubIssueDocumentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping)) Source #
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.
gitHubConfiguration_gitHubPullRequestCommentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping)) Source #
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.
gitHubConfiguration_gitHubPullRequestDocumentAttachmentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping)) Source #
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.
gitHubConfiguration_gitHubPullRequestDocumentConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping)) Source #
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.
gitHubConfiguration_gitHubRepositoryConfigurationFieldMappings :: Lens' GitHubConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping)) Source #
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.
gitHubConfiguration_inclusionFileNamePatterns :: Lens' GitHubConfiguration (Maybe [Text]) Source #
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.
gitHubConfiguration_inclusionFileTypePatterns :: Lens' GitHubConfiguration (Maybe [Text]) Source #
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.
gitHubConfiguration_inclusionFolderNamePatterns :: Lens' GitHubConfiguration (Maybe [Text]) Source #
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.
gitHubConfiguration_onPremiseConfiguration :: Lens' GitHubConfiguration (Maybe OnPremiseConfiguration) Source #
Configuration information to connect to GitHub Enterprise Server (on premises).
gitHubConfiguration_repositoryFilter :: Lens' GitHubConfiguration (Maybe [Text]) Source #
A list of names of the specific repositories you want to index.
gitHubConfiguration_saaSConfiguration :: Lens' GitHubConfiguration (Maybe SaaSConfiguration) Source #
Configuration information to connect to GitHub Enterprise Cloud (SaaS).
gitHubConfiguration_type :: Lens' GitHubConfiguration (Maybe Type) Source #
The type of GitHub service you want to connect to—GitHub Enterprise Cloud (SaaS) or GitHub Enterprise Server (on premises).
gitHubConfiguration_useChangeLog :: Lens' GitHubConfiguration (Maybe Bool) Source #
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.
gitHubConfiguration_vpcConfiguration :: Lens' GitHubConfiguration (Maybe DataSourceVpcConfiguration) Source #
Configuration information of an Amazon Virtual Private Cloud to connect to your GitHub. For more information, see Configuring a VPC.
gitHubConfiguration_secretArn :: Lens' GitHubConfiguration Text Source #
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.