@Stability(value=Stable)
public static interface CfnDataSource.ServiceNowConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kendra.*;
ServiceNowConfigurationProperty serviceNowConfigurationProperty = ServiceNowConfigurationProperty.builder()
.hostUrl("hostUrl")
.secretArn("secretArn")
.serviceNowBuildVersion("serviceNowBuildVersion")
// the properties below are optional
.authenticationType("authenticationType")
.knowledgeArticleConfiguration(ServiceNowKnowledgeArticleConfigurationProperty.builder()
.documentDataFieldName("documentDataFieldName")
// the properties below are optional
.crawlAttachments(false)
.documentTitleFieldName("documentTitleFieldName")
.excludeAttachmentFilePatterns(List.of("excludeAttachmentFilePatterns"))
.fieldMappings(List.of(DataSourceToIndexFieldMappingProperty.builder()
.dataSourceFieldName("dataSourceFieldName")
.indexFieldName("indexFieldName")
// the properties below are optional
.dateFieldFormat("dateFieldFormat")
.build()))
.filterQuery("filterQuery")
.includeAttachmentFilePatterns(List.of("includeAttachmentFilePatterns"))
.build())
.serviceCatalogConfiguration(ServiceNowServiceCatalogConfigurationProperty.builder()
.documentDataFieldName("documentDataFieldName")
// the properties below are optional
.crawlAttachments(false)
.documentTitleFieldName("documentTitleFieldName")
.excludeAttachmentFilePatterns(List.of("excludeAttachmentFilePatterns"))
.fieldMappings(List.of(DataSourceToIndexFieldMappingProperty.builder()
.dataSourceFieldName("dataSourceFieldName")
.indexFieldName("indexFieldName")
// the properties below are optional
.dateFieldFormat("dateFieldFormat")
.build()))
.includeAttachmentFilePatterns(List.of("includeAttachmentFilePatterns"))
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDataSource.ServiceNowConfigurationProperty.Builder
A builder for
CfnDataSource.ServiceNowConfigurationProperty |
static class |
CfnDataSource.ServiceNowConfigurationProperty.Jsii$Proxy
An implementation for
CfnDataSource.ServiceNowConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDataSource.ServiceNowConfigurationProperty.Builder |
builder() |
default String |
getAuthenticationType()
The type of authentication used to connect to the ServiceNow instance.
|
String |
getHostUrl()
The ServiceNow instance that the data source connects to.
|
default Object |
getKnowledgeArticleConfiguration()
Configuration information for crawling knowledge articles in the ServiceNow site.
|
String |
getSecretArn()
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.
|
default Object |
getServiceCatalogConfiguration()
Configuration information for crawling service catalogs in the ServiceNow site.
|
String |
getServiceNowBuildVersion()
The identifier of the release that the ServiceNow host is running.
|
@Stability(value=Stable) @NotNull String getHostUrl()
The host endpoint should look like the following: {instance}.service-now.com.
@Stability(value=Stable) @NotNull String getSecretArn()
@Stability(value=Stable) @NotNull String getServiceNowBuildVersion()
If the host is not running the LONDON release, use OTHERS .
@Stability(value=Stable) @Nullable default String getAuthenticationType()
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. When you choose OAUTH2 , Amazon Kendra is authenticated using the OAuth token and secret provided in the Secrets Manager secret, and the user name and password are used to determine which information Amazon Kendra has access to.
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 .
@Stability(value=Stable) @Nullable default Object getKnowledgeArticleConfiguration()
@Stability(value=Stable) @Nullable default Object getServiceCatalogConfiguration()
@Stability(value=Stable) static CfnDataSource.ServiceNowConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.