-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnDataSource_WorkDocsConfigurationProperty.go
78 lines (75 loc) · 5.17 KB
/
CfnDataSource_WorkDocsConfigurationProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package awskendra
// Provides the configuration information to connect to Amazon WorkDocs as your data source.
//
// Amazon WorkDocs connector is available in Oregon, North Virginia, Sydney, Singapore and Ireland regions.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// workDocsConfigurationProperty := &WorkDocsConfigurationProperty{
// OrganizationId: jsii.String("organizationId"),
//
// // the properties below are optional
// CrawlComments: jsii.Boolean(false),
// ExclusionPatterns: []*string{
// jsii.String("exclusionPatterns"),
// },
// FieldMappings: []interface{}{
// &DataSourceToIndexFieldMappingProperty{
// DataSourceFieldName: jsii.String("dataSourceFieldName"),
// IndexFieldName: jsii.String("indexFieldName"),
//
// // the properties below are optional
// DateFieldFormat: jsii.String("dateFieldFormat"),
// },
// },
// InclusionPatterns: []*string{
// jsii.String("inclusionPatterns"),
// },
// UseChangeLog: jsii.Boolean(false),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-workdocsconfiguration.html
//
type CfnDataSource_WorkDocsConfigurationProperty struct {
// The identifier of the directory corresponding to your Amazon WorkDocs site repository.
//
// You can find the organization ID in the [AWS Directory Service](https://docs.aws.amazon.com/directoryservicev2/) by going to *Active Directory* , then *Directories* . Your Amazon WorkDocs site directory has an ID, which is the organization ID. You can also set up a new Amazon WorkDocs directory in the AWS Directory Service console and enable a Amazon WorkDocs site for the directory in the Amazon WorkDocs console.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-workdocsconfiguration.html#cfn-kendra-datasource-workdocsconfiguration-organizationid
//
OrganizationId *string `field:"required" json:"organizationId" yaml:"organizationId"`
// `TRUE` to include comments on documents in your index.
//
// Including comments in your index means each comment is a document that can be searched on.
//
// The default is set to `FALSE` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-workdocsconfiguration.html#cfn-kendra-datasource-workdocsconfiguration-crawlcomments
//
CrawlComments interface{} `field:"optional" json:"crawlComments" yaml:"crawlComments"`
// A list of regular expression patterns to exclude certain files in your Amazon WorkDocs site repository.
//
// Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-workdocsconfiguration.html#cfn-kendra-datasource-workdocsconfiguration-exclusionpatterns
//
ExclusionPatterns *[]*string `field:"optional" json:"exclusionPatterns" yaml:"exclusionPatterns"`
// A list of `DataSourceToIndexFieldMapping` objects that map Amazon WorkDocs data source attributes or field names to Amazon Kendra index field names.
//
// To create custom fields, use the `UpdateIndex` API before you map to Amazon WorkDocs fields. For more information, see [Mapping data source fields](https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html) . The Amazon WorkDocs data source field names must exist in your Amazon WorkDocs custom metadata.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-workdocsconfiguration.html#cfn-kendra-datasource-workdocsconfiguration-fieldmappings
//
FieldMappings interface{} `field:"optional" json:"fieldMappings" yaml:"fieldMappings"`
// A list of regular expression patterns to include certain files in your Amazon WorkDocs site repository.
//
// Files that match the patterns are included in the index. Files 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-workdocsconfiguration.html#cfn-kendra-datasource-workdocsconfiguration-inclusionpatterns
//
InclusionPatterns *[]*string `field:"optional" json:"inclusionPatterns" yaml:"inclusionPatterns"`
// `TRUE` to use the Amazon WorkDocs change log to determine which documents require updating in the index.
//
// Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Amazon WorkDocs.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-workdocsconfiguration.html#cfn-kendra-datasource-workdocsconfiguration-usechangelog
//
UseChangeLog interface{} `field:"optional" json:"useChangeLog" yaml:"useChangeLog"`
}