#[non_exhaustive]pub struct AppIntegrationsConfigurationBuilder { /* private fields */ }Expand description
A builder for AppIntegrationsConfiguration.
Implementations§
source§impl AppIntegrationsConfigurationBuilder
impl AppIntegrationsConfigurationBuilder
sourcepub fn app_integration_arn(self, input: impl Into<String>) -> Self
pub fn app_integration_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting content.
-
For Salesforce, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least
Id,ArticleNumber,VersionNumber,Title,PublishStatus, andIsDeletedas source fields. -
For ServiceNow, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least
number,short_description,sys_mod_count,workflow_state, andactiveas source fields. -
For Zendesk, your AppIntegrations DataIntegration must have an ObjectConfiguration if
objectFieldsis not provided, including at leastid,title,updated_at, anddraftas source fields. -
For SharePoint, your AppIntegrations DataIntegration must have a FileConfiguration, including only file extensions that are among
docx,pdf,html,htm, andtxt. -
For Amazon S3, the ObjectConfiguration and FileConfiguration of your AppIntegrations DataIntegration must be null. The
SourceURIof your DataIntegration must use the following format:s3://your_s3_bucket_name.The bucket policy of the corresponding S3 bucket must allow the Amazon Web Services principal
app-integrations.amazonaws.comto performs3:ListBucket,s3:GetObject, ands3:GetBucketLocationagainst the bucket.
sourcepub fn set_app_integration_arn(self, input: Option<String>) -> Self
pub fn set_app_integration_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting content.
-
For Salesforce, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least
Id,ArticleNumber,VersionNumber,Title,PublishStatus, andIsDeletedas source fields. -
For ServiceNow, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least
number,short_description,sys_mod_count,workflow_state, andactiveas source fields. -
For Zendesk, your AppIntegrations DataIntegration must have an ObjectConfiguration if
objectFieldsis not provided, including at leastid,title,updated_at, anddraftas source fields. -
For SharePoint, your AppIntegrations DataIntegration must have a FileConfiguration, including only file extensions that are among
docx,pdf,html,htm, andtxt. -
For Amazon S3, the ObjectConfiguration and FileConfiguration of your AppIntegrations DataIntegration must be null. The
SourceURIof your DataIntegration must use the following format:s3://your_s3_bucket_name.The bucket policy of the corresponding S3 bucket must allow the Amazon Web Services principal
app-integrations.amazonaws.comto performs3:ListBucket,s3:GetObject, ands3:GetBucketLocationagainst the bucket.
sourcepub fn get_app_integration_arn(&self) -> &Option<String>
pub fn get_app_integration_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting content.
-
For Salesforce, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least
Id,ArticleNumber,VersionNumber,Title,PublishStatus, andIsDeletedas source fields. -
For ServiceNow, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least
number,short_description,sys_mod_count,workflow_state, andactiveas source fields. -
For Zendesk, your AppIntegrations DataIntegration must have an ObjectConfiguration if
objectFieldsis not provided, including at leastid,title,updated_at, anddraftas source fields. -
For SharePoint, your AppIntegrations DataIntegration must have a FileConfiguration, including only file extensions that are among
docx,pdf,html,htm, andtxt. -
For Amazon S3, the ObjectConfiguration and FileConfiguration of your AppIntegrations DataIntegration must be null. The
SourceURIof your DataIntegration must use the following format:s3://your_s3_bucket_name.The bucket policy of the corresponding S3 bucket must allow the Amazon Web Services principal
app-integrations.amazonaws.comto performs3:ListBucket,s3:GetObject, ands3:GetBucketLocationagainst the bucket.
sourcepub fn object_fields(self, input: impl Into<String>) -> Self
pub fn object_fields(self, input: impl Into<String>) -> Self
Appends an item to object_fields.
To override the contents of this collection use set_object_fields.
The fields from the source that are made available to your agents in Amazon Q. Optional if ObjectConfiguration is included in the provided DataIntegration.
-
For Salesforce, you must include at least
Id,ArticleNumber,VersionNumber,Title,PublishStatus, andIsDeleted. -
For ServiceNow, you must include at least
number,short_description,sys_mod_count,workflow_state, andactive. -
For Zendesk, you must include at least
id,title,updated_at, anddraft.
Make sure to include additional fields. These fields are indexed and used to source recommendations.
sourcepub fn set_object_fields(self, input: Option<Vec<String>>) -> Self
pub fn set_object_fields(self, input: Option<Vec<String>>) -> Self
The fields from the source that are made available to your agents in Amazon Q. Optional if ObjectConfiguration is included in the provided DataIntegration.
-
For Salesforce, you must include at least
Id,ArticleNumber,VersionNumber,Title,PublishStatus, andIsDeleted. -
For ServiceNow, you must include at least
number,short_description,sys_mod_count,workflow_state, andactive. -
For Zendesk, you must include at least
id,title,updated_at, anddraft.
Make sure to include additional fields. These fields are indexed and used to source recommendations.
sourcepub fn get_object_fields(&self) -> &Option<Vec<String>>
pub fn get_object_fields(&self) -> &Option<Vec<String>>
The fields from the source that are made available to your agents in Amazon Q. Optional if ObjectConfiguration is included in the provided DataIntegration.
-
For Salesforce, you must include at least
Id,ArticleNumber,VersionNumber,Title,PublishStatus, andIsDeleted. -
For ServiceNow, you must include at least
number,short_description,sys_mod_count,workflow_state, andactive. -
For Zendesk, you must include at least
id,title,updated_at, anddraft.
Make sure to include additional fields. These fields are indexed and used to source recommendations.
sourcepub fn build(self) -> Result<AppIntegrationsConfiguration, BuildError>
pub fn build(self) -> Result<AppIntegrationsConfiguration, BuildError>
Consumes the builder and constructs a AppIntegrationsConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AppIntegrationsConfigurationBuilder
impl Clone for AppIntegrationsConfigurationBuilder
source§fn clone(&self) -> AppIntegrationsConfigurationBuilder
fn clone(&self) -> AppIntegrationsConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AppIntegrationsConfigurationBuilder
impl Default for AppIntegrationsConfigurationBuilder
source§fn default() -> AppIntegrationsConfigurationBuilder
fn default() -> AppIntegrationsConfigurationBuilder
source§impl PartialEq for AppIntegrationsConfigurationBuilder
impl PartialEq for AppIntegrationsConfigurationBuilder
source§fn eq(&self, other: &AppIntegrationsConfigurationBuilder) -> bool
fn eq(&self, other: &AppIntegrationsConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.