-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnDataSource_ServiceNowConfigurationProperty.go
103 lines (100 loc) · 5.86 KB
/
CfnDataSource_ServiceNowConfigurationProperty.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package awskendra
// Provides the configuration information to connect to ServiceNow as your data source.
//
// 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"
//
// serviceNowConfigurationProperty := &ServiceNowConfigurationProperty{
// HostUrl: jsii.String("hostUrl"),
// SecretArn: jsii.String("secretArn"),
// ServiceNowBuildVersion: jsii.String("serviceNowBuildVersion"),
//
// // the properties below are optional
// AuthenticationType: jsii.String("authenticationType"),
// KnowledgeArticleConfiguration: &ServiceNowKnowledgeArticleConfigurationProperty{
// DocumentDataFieldName: jsii.String("documentDataFieldName"),
//
// // the properties below are optional
// CrawlAttachments: jsii.Boolean(false),
// DocumentTitleFieldName: jsii.String("documentTitleFieldName"),
// ExcludeAttachmentFilePatterns: []*string{
// jsii.String("excludeAttachmentFilePatterns"),
// },
// FieldMappings: []interface{}{
// &DataSourceToIndexFieldMappingProperty{
// DataSourceFieldName: jsii.String("dataSourceFieldName"),
// IndexFieldName: jsii.String("indexFieldName"),
//
// // the properties below are optional
// DateFieldFormat: jsii.String("dateFieldFormat"),
// },
// },
// FilterQuery: jsii.String("filterQuery"),
// IncludeAttachmentFilePatterns: []*string{
// jsii.String("includeAttachmentFilePatterns"),
// },
// },
// ServiceCatalogConfiguration: &ServiceNowServiceCatalogConfigurationProperty{
// DocumentDataFieldName: jsii.String("documentDataFieldName"),
//
// // the properties below are optional
// CrawlAttachments: jsii.Boolean(false),
// DocumentTitleFieldName: jsii.String("documentTitleFieldName"),
// ExcludeAttachmentFilePatterns: []*string{
// jsii.String("excludeAttachmentFilePatterns"),
// },
// FieldMappings: []interface{}{
// &DataSourceToIndexFieldMappingProperty{
// DataSourceFieldName: jsii.String("dataSourceFieldName"),
// IndexFieldName: jsii.String("indexFieldName"),
//
// // the properties below are optional
// DateFieldFormat: jsii.String("dateFieldFormat"),
// },
// },
// IncludeAttachmentFilePatterns: []*string{
// jsii.String("includeAttachmentFilePatterns"),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-servicenowconfiguration.html
//
type CfnDataSource_ServiceNowConfigurationProperty struct {
// The ServiceNow instance that the data source connects to.
//
// The host endpoint should look like the following: *{instance}.service-now.com.*
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-servicenowconfiguration.html#cfn-kendra-datasource-servicenowconfiguration-hosturl
//
HostUrl *string `field:"required" json:"hostUrl" yaml:"hostUrl"`
// The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the user name and password required to connect to the ServiceNow instance.
//
// You can also provide OAuth authentication credentials of user name, password, client ID, and client secret. For more information, see [Using a ServiceNow data source](https://docs.aws.amazon.com/kendra/latest/dg/data-source-servicenow.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-servicenowconfiguration.html#cfn-kendra-datasource-servicenowconfiguration-secretarn
//
SecretArn *string `field:"required" json:"secretArn" yaml:"secretArn"`
// The identifier of the release that the ServiceNow host is running.
//
// If the host is not running the `LONDON` release, use `OTHERS` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-servicenowconfiguration.html#cfn-kendra-datasource-servicenowconfiguration-servicenowbuildversion
//
ServiceNowBuildVersion *string `field:"required" json:"serviceNowBuildVersion" yaml:"serviceNowBuildVersion"`
// The type of authentication used to connect to the ServiceNow instance.
//
// If you choose `HTTP_BASIC` , Amazon Kendra is authenticated using the user name and password provided in the AWS Secrets Manager secret in the `SecretArn` field. If you choose `OAUTH2` , Amazon Kendra is authenticated using the credentials of client ID, client secret, user name and password.
//
// When you use `OAUTH2` authentication, you must generate a token and a client secret using the ServiceNow console. For more information, see [Using a ServiceNow data source](https://docs.aws.amazon.com/kendra/latest/dg/data-source-servicenow.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-servicenowconfiguration.html#cfn-kendra-datasource-servicenowconfiguration-authenticationtype
//
AuthenticationType *string `field:"optional" json:"authenticationType" yaml:"authenticationType"`
// Configuration information for crawling knowledge articles in the ServiceNow site.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-servicenowconfiguration.html#cfn-kendra-datasource-servicenowconfiguration-knowledgearticleconfiguration
//
KnowledgeArticleConfiguration interface{} `field:"optional" json:"knowledgeArticleConfiguration" yaml:"knowledgeArticleConfiguration"`
// Configuration information for crawling service catalogs in the ServiceNow site.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-servicenowconfiguration.html#cfn-kendra-datasource-servicenowconfiguration-servicecatalogconfiguration
//
ServiceCatalogConfiguration interface{} `field:"optional" json:"serviceCatalogConfiguration" yaml:"serviceCatalogConfiguration"`
}