interface CfnDataSourceProps
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_qbusiness.CfnDataSourceProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsqbusiness#CfnDataSourceProps |
![]() | software.amazon.awscdk.services.qbusiness.CfnDataSourceProps |
![]() | aws_cdk.aws_qbusiness.CfnDataSourceProps |
![]() | aws-cdk-lib » aws_qbusiness » CfnDataSourceProps |
Properties for defining a CfnDataSource
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-datasource.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_qbusiness as qbusiness } from 'aws-cdk-lib';
declare const configuration: any;
const cfnDataSourceProps: qbusiness.CfnDataSourceProps = {
applicationId: 'applicationId',
configuration: configuration,
displayName: 'displayName',
indexId: 'indexId',
// the properties below are optional
description: 'description',
documentEnrichmentConfiguration: {
inlineConfigurations: [{
condition: {
key: 'key',
operator: 'operator',
// the properties below are optional
value: {
dateValue: 'dateValue',
longValue: 123,
stringListValue: ['stringListValue'],
stringValue: 'stringValue',
},
},
documentContentOperator: 'documentContentOperator',
target: {
key: 'key',
// the properties below are optional
attributeValueOperator: 'attributeValueOperator',
value: {
dateValue: 'dateValue',
longValue: 123,
stringListValue: ['stringListValue'],
stringValue: 'stringValue',
},
},
}],
postExtractionHookConfiguration: {
invocationCondition: {
key: 'key',
operator: 'operator',
// the properties below are optional
value: {
dateValue: 'dateValue',
longValue: 123,
stringListValue: ['stringListValue'],
stringValue: 'stringValue',
},
},
lambdaArn: 'lambdaArn',
roleArn: 'roleArn',
s3BucketName: 's3BucketName',
},
preExtractionHookConfiguration: {
invocationCondition: {
key: 'key',
operator: 'operator',
// the properties below are optional
value: {
dateValue: 'dateValue',
longValue: 123,
stringListValue: ['stringListValue'],
stringValue: 'stringValue',
},
},
lambdaArn: 'lambdaArn',
roleArn: 'roleArn',
s3BucketName: 's3BucketName',
},
},
mediaExtractionConfiguration: {
imageExtractionConfiguration: {
imageExtractionStatus: 'imageExtractionStatus',
},
},
roleArn: 'roleArn',
syncSchedule: 'syncSchedule',
tags: [{
key: 'key',
value: 'value',
}],
vpcConfiguration: {
securityGroupIds: ['securityGroupIds'],
subnetIds: ['subnetIds'],
},
};
Properties
Name | Type | Description |
---|---|---|
application | string | The identifier of the Amazon Q Business application the data source will be attached to. |
configuration | any | Use this property to specify a JSON or YAML schema with configuration properties specific to your data source connector to connect your data source repository to Amazon Q Business . |
display | string | The name of the Amazon Q Business data source. |
index | string | The identifier of the index the data source is attached to. |
description? | string | A description for the data source connector. |
document | IResolvable | Document | Provides the configuration information for altering document metadata and content during the document ingestion process. |
media | IResolvable | Media | The configuration for extracting information from media in documents. |
role | string | The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. |
sync | string | Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index. |
tags? | Cfn [] | A list of key-value pairs that identify or categorize the data source connector. |
vpc | IResolvable | Data | Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source. |
applicationId
Type:
string
The identifier of the Amazon Q Business application the data source will be attached to.
configuration
Type:
any
Use this property to specify a JSON or YAML schema with configuration properties specific to your data source connector to connect your data source repository to Amazon Q Business .
You must use the JSON or YAML schema provided by Amazon Q .
The following links have the configuration properties and schemas for AWS CloudFormation for the following connectors:
Similarly, you can find configuration templates and properties for your specific data source using the following steps:
- Navigate to the Supported connectors page in the Amazon Q Business User Guide, and select the data source connector of your choice.
- Then, from that specific data source connector's page, choose the topic containing Using AWS CloudFormation to find the schemas for your data source connector, including configuration parameter descriptions and examples.
displayName
Type:
string
The name of the Amazon Q Business data source.
indexId
Type:
string
The identifier of the index the data source is attached to.
description?
Type:
string
(optional)
A description for the data source connector.
documentEnrichmentConfiguration?
Type:
IResolvable
|
Document
(optional)
Provides the configuration information for altering document metadata and content during the document ingestion process.
For more information, see Custom document enrichment .
mediaExtractionConfiguration?
Type:
IResolvable
|
Media
(optional)
The configuration for extracting information from media in documents.
roleArn?
Type:
string
(optional)
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.
syncSchedule?
Type:
string
(optional)
Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index.
If you don't set a schedule, Amazon Q Business won't periodically update the index.
Specify a cron-
format schedule string or an empty string to indicate that the index is updated on demand. You can't specify the Schedule
parameter when the Type
parameter is set to CUSTOM
. If you do, you receive a ValidationException
exception.
tags?
Type:
Cfn
[]
(optional)
A list of key-value pairs that identify or categorize the data source connector.
You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + -
vpcConfiguration?
Type:
IResolvable
|
Data
(optional)
Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.
For more information, see Using Amazon VPC with Amazon Q Business connectors .