Class CfnDataSource.ServiceNowConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.ServiceNowConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.ServiceNowConfigurationProperty>
- Enclosing interface:
CfnDataSource.ServiceNowConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.ServiceNowConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.ServiceNowConfigurationProperty>
A builder for
CfnDataSource.ServiceNowConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticationType
(String authenticationType) Sets the value ofCfnDataSource.ServiceNowConfigurationProperty.getAuthenticationType()
build()
Builds the configured instance.Sets the value ofCfnDataSource.ServiceNowConfigurationProperty.getHostUrl()
knowledgeArticleConfiguration
(IResolvable knowledgeArticleConfiguration) knowledgeArticleConfiguration
(CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty knowledgeArticleConfiguration) Sets the value ofCfnDataSource.ServiceNowConfigurationProperty.getSecretArn()
serviceCatalogConfiguration
(IResolvable serviceCatalogConfiguration) serviceCatalogConfiguration
(CfnDataSource.ServiceNowServiceCatalogConfigurationProperty serviceCatalogConfiguration) serviceNowBuildVersion
(String serviceNowBuildVersion)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostUrl
@Stability(Stable) public CfnDataSource.ServiceNowConfigurationProperty.Builder hostUrl(String hostUrl) Sets the value ofCfnDataSource.ServiceNowConfigurationProperty.getHostUrl()
- Parameters:
hostUrl
- The ServiceNow instance that the data source connects to. This parameter is required. The host endpoint should look like the following: {instance}.service-now.com.- Returns:
this
-
secretArn
@Stability(Stable) public CfnDataSource.ServiceNowConfigurationProperty.Builder secretArn(String secretArn) Sets the value ofCfnDataSource.ServiceNowConfigurationProperty.getSecretArn()
- Parameters:
secretArn
- 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. This parameter is required. 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 .- Returns:
this
-
serviceNowBuildVersion
@Stability(Stable) public CfnDataSource.ServiceNowConfigurationProperty.Builder serviceNowBuildVersion(String serviceNowBuildVersion) - Parameters:
serviceNowBuildVersion
- The identifier of the release that the ServiceNow host is running. This parameter is required. If the host is not running theLONDON
release, useOTHERS
.- Returns:
this
-
authenticationType
@Stability(Stable) public CfnDataSource.ServiceNowConfigurationProperty.Builder authenticationType(String authenticationType) Sets the value ofCfnDataSource.ServiceNowConfigurationProperty.getAuthenticationType()
- Parameters:
authenticationType
- The type of authentication used to connect to the ServiceNow instance. If you chooseHTTP_BASIC
, Amazon Kendra is authenticated using the user name and password provided in the AWS Secrets Manager secret in theSecretArn
field. If you chooseOAUTH2
, 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 .- Returns:
this
-
knowledgeArticleConfiguration
@Stability(Stable) public CfnDataSource.ServiceNowConfigurationProperty.Builder knowledgeArticleConfiguration(IResolvable knowledgeArticleConfiguration) - Parameters:
knowledgeArticleConfiguration
- Configuration information for crawling knowledge articles in the ServiceNow site.- Returns:
this
-
knowledgeArticleConfiguration
@Stability(Stable) public CfnDataSource.ServiceNowConfigurationProperty.Builder knowledgeArticleConfiguration(CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty knowledgeArticleConfiguration) - Parameters:
knowledgeArticleConfiguration
- Configuration information for crawling knowledge articles in the ServiceNow site.- Returns:
this
-
serviceCatalogConfiguration
@Stability(Stable) public CfnDataSource.ServiceNowConfigurationProperty.Builder serviceCatalogConfiguration(IResolvable serviceCatalogConfiguration) - Parameters:
serviceCatalogConfiguration
- Configuration information for crawling service catalogs in the ServiceNow site.- Returns:
this
-
serviceCatalogConfiguration
@Stability(Stable) public CfnDataSource.ServiceNowConfigurationProperty.Builder serviceCatalogConfiguration(CfnDataSource.ServiceNowServiceCatalogConfigurationProperty serviceCatalogConfiguration) - Parameters:
serviceCatalogConfiguration
- Configuration information for crawling service catalogs in the ServiceNow site.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.ServiceNowConfigurationProperty>
- Returns:
- a new instance of
CfnDataSource.ServiceNowConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-