CfnDataSourceProps Struct
Properties for defining a CfnDataSource.
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: {
audioExtractionConfiguration: {
audioExtractionStatus: 'audioExtractionStatus',
},
imageExtractionConfiguration: {
imageExtractionStatus: 'imageExtractionStatus',
},
videoExtractionConfiguration: {
videoExtractionStatus: 'videoExtractionStatus',
},
},
roleArn: 'roleArn',
syncSchedule: 'syncSchedule',
tags: [{
key: 'key',
value: 'value',
}],
vpcConfiguration: {
securityGroupIds: ['securityGroupIds'],
subnetIds: ['subnetIds'],
},
};
Properties
applicationIdstringapplication_idstrapplicationIdStringApplicationIdstringApplicationId*stringrequired#configurationanyconfigurationAnyconfigurationObjectConfigurationobjectConfigurationinterface{}required#notes
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 CloudFormation to find the schemas for your data source connector, including configuration parameter descriptions and examples.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#documentEnrichmentConfigurationoptionalIResolvable | CfnDataSource.DocumentEnrichmentConfigurationPropertydocument_enrichment_configurationoptionaltyping.Union[IResolvable, DocumentEnrichmentConfigurationProperty]documentEnrichmentConfigurationoptionalIResolvableDocumentEnrichmentConfigurationoptionalIResolvableDocumentEnrichmentConfigurationoptionalinterface{}#For more information, see Custom document enrichment .
mediaExtractionConfigurationoptionalIResolvable | CfnDataSource.MediaExtractionConfigurationPropertymedia_extraction_configurationoptionaltyping.Union[IResolvable, MediaExtractionConfigurationProperty]mediaExtractionConfigurationoptionalIResolvableMediaExtractionConfigurationoptionalIResolvableMediaExtractionConfigurationoptionalinterface{}#roleArnoptionalstringrole_arnoptionalstrroleArnoptionalStringRoleArnoptionalstringRoleArnoptional*string#This field is required for all connector types except custom connectors, where it is optional.
syncScheduleoptionalstringsync_scheduleoptionalstrsyncScheduleoptionalStringSyncScheduleoptionalstringSyncScheduleoptional*string#notes
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.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#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: _ . : / = + -
vpcConfigurationoptionalIResolvable | CfnDataSource.DataSourceVpcConfigurationPropertyvpc_configurationoptionaltyping.Union[IResolvable, DataSourceVpcConfigurationProperty]vpcConfigurationoptionalIResolvableVpcConfigurationoptionalIResolvableVpcConfigurationoptionalinterface{}#For more information, see Using Amazon VPC with Amazon Q Business connectors .