Struct aws_sdk_kendra::types::ServiceNowConfiguration
source · #[non_exhaustive]pub struct ServiceNowConfiguration {
pub host_url: String,
pub secret_arn: String,
pub service_now_build_version: ServiceNowBuildVersionType,
pub knowledge_article_configuration: Option<ServiceNowKnowledgeArticleConfiguration>,
pub service_catalog_configuration: Option<ServiceNowServiceCatalogConfiguration>,
pub authentication_type: Option<ServiceNowAuthenticationType>,
}Expand description
Provides the configuration information to connect to ServiceNow as your data source.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.host_url: StringThe ServiceNow instance that the data source connects to. The host endpoint should look like the following: {instance}.service-now.com.
secret_arn: StringThe Amazon Resource Name (ARN) of the 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.
service_now_build_version: ServiceNowBuildVersionTypeThe identifier of the release that the ServiceNow host is running. If the host is not running the LONDON release, use OTHERS.
knowledge_article_configuration: Option<ServiceNowKnowledgeArticleConfiguration>Configuration information for crawling knowledge articles in the ServiceNow site.
service_catalog_configuration: Option<ServiceNowServiceCatalogConfiguration>Configuration information for crawling service catalogs in the ServiceNow site.
authentication_type: Option<ServiceNowAuthenticationType>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 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.
Implementations§
source§impl ServiceNowConfiguration
impl ServiceNowConfiguration
sourcepub fn host_url(&self) -> &str
pub fn host_url(&self) -> &str
The ServiceNow instance that the data source connects to. The host endpoint should look like the following: {instance}.service-now.com.
sourcepub fn secret_arn(&self) -> &str
pub fn secret_arn(&self) -> &str
The Amazon Resource Name (ARN) of the 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.
sourcepub fn service_now_build_version(&self) -> &ServiceNowBuildVersionType
pub fn service_now_build_version(&self) -> &ServiceNowBuildVersionType
The identifier of the release that the ServiceNow host is running. If the host is not running the LONDON release, use OTHERS.
sourcepub fn knowledge_article_configuration(
&self
) -> Option<&ServiceNowKnowledgeArticleConfiguration>
pub fn knowledge_article_configuration( &self ) -> Option<&ServiceNowKnowledgeArticleConfiguration>
Configuration information for crawling knowledge articles in the ServiceNow site.
sourcepub fn service_catalog_configuration(
&self
) -> Option<&ServiceNowServiceCatalogConfiguration>
pub fn service_catalog_configuration( &self ) -> Option<&ServiceNowServiceCatalogConfiguration>
Configuration information for crawling service catalogs in the ServiceNow site.
sourcepub fn authentication_type(&self) -> Option<&ServiceNowAuthenticationType>
pub fn authentication_type(&self) -> Option<&ServiceNowAuthenticationType>
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 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.
source§impl ServiceNowConfiguration
impl ServiceNowConfiguration
sourcepub fn builder() -> ServiceNowConfigurationBuilder
pub fn builder() -> ServiceNowConfigurationBuilder
Creates a new builder-style object to manufacture ServiceNowConfiguration.
Trait Implementations§
source§impl Clone for ServiceNowConfiguration
impl Clone for ServiceNowConfiguration
source§fn clone(&self) -> ServiceNowConfiguration
fn clone(&self) -> ServiceNowConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ServiceNowConfiguration
impl Debug for ServiceNowConfiguration
source§impl PartialEq for ServiceNowConfiguration
impl PartialEq for ServiceNowConfiguration
source§fn eq(&self, other: &ServiceNowConfiguration) -> bool
fn eq(&self, other: &ServiceNowConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ServiceNowConfiguration
Auto Trait Implementations§
impl Freeze for ServiceNowConfiguration
impl RefUnwindSafe for ServiceNowConfiguration
impl Send for ServiceNowConfiguration
impl Sync for ServiceNowConfiguration
impl Unpin for ServiceNowConfiguration
impl UnwindSafe for ServiceNowConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more