Class CfnDataSource
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.qbusiness.CfnDataSource
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,IDataSourceRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:46.578Z")
@Stability(Stable)
public class CfnDataSource
extends CfnResource
implements IInspectable, IDataSourceRef, ITaggableV2
Creates a data source connector for an Amazon Q Business application.
CreateDataSource is a synchronous operation. The operation returns 200 if the data source was successfully created. Otherwise, an exception is raised.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.qbusiness.*;
Object configuration;
CfnDataSource cfnDataSource = CfnDataSource.Builder.create(this, "MyCfnDataSource")
.applicationId("applicationId")
.configuration(configuration)
.displayName("displayName")
.indexId("indexId")
// the properties below are optional
.description("description")
.documentEnrichmentConfiguration(DocumentEnrichmentConfigurationProperty.builder()
.inlineConfigurations(List.of(InlineDocumentEnrichmentConfigurationProperty.builder()
.condition(DocumentAttributeConditionProperty.builder()
.key("key")
.operator("operator")
// the properties below are optional
.value(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.build())
.documentContentOperator("documentContentOperator")
.target(DocumentAttributeTargetProperty.builder()
.key("key")
// the properties below are optional
.attributeValueOperator("attributeValueOperator")
.value(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.build())
.build()))
.postExtractionHookConfiguration(HookConfigurationProperty.builder()
.invocationCondition(DocumentAttributeConditionProperty.builder()
.key("key")
.operator("operator")
// the properties below are optional
.value(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.build())
.lambdaArn("lambdaArn")
.roleArn("roleArn")
.s3BucketName("s3BucketName")
.build())
.preExtractionHookConfiguration(HookConfigurationProperty.builder()
.invocationCondition(DocumentAttributeConditionProperty.builder()
.key("key")
.operator("operator")
// the properties below are optional
.value(DocumentAttributeValueProperty.builder()
.dateValue("dateValue")
.longValue(123)
.stringListValue(List.of("stringListValue"))
.stringValue("stringValue")
.build())
.build())
.lambdaArn("lambdaArn")
.roleArn("roleArn")
.s3BucketName("s3BucketName")
.build())
.build())
.mediaExtractionConfiguration(MediaExtractionConfigurationProperty.builder()
.audioExtractionConfiguration(AudioExtractionConfigurationProperty.builder()
.audioExtractionStatus("audioExtractionStatus")
.build())
.imageExtractionConfiguration(ImageExtractionConfigurationProperty.builder()
.imageExtractionStatus("imageExtractionStatus")
.build())
.videoExtractionConfiguration(VideoExtractionConfigurationProperty.builder()
.videoExtractionStatus("videoExtractionStatus")
.build())
.build())
.roleArn("roleArn")
.syncSchedule("syncSchedule")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcConfiguration(DataSourceVpcConfigurationProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceConfiguration settings for audio content extraction and processing.static final classA fluent builder forCfnDataSource.static interfaceProvides configuration information needed to connect to an Amazon VPC (Virtual Private Cloud).static interfaceThe condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business.static interfaceThe target document attribute or metadata field you want to alter when ingesting documents into Amazon Q Business.static interfaceThe value of a document attribute.static interfaceProvides the configuration information for altering document metadata and content during the document ingestion process.static interfaceProvides the configuration information for invoking a Lambda function in AWS Lambda to alter document metadata and content when ingesting documents into Amazon Q Business.static interfaceThe configuration for extracting semantic meaning from images in documents.static interfaceProvides the configuration information for applying basic logic to alter document metadata and content when ingesting documents into Amazon Q Business.static interfaceThe configuration for extracting information from media in documents.static interfaceConfiguration settings for video content extraction and processing.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.qbusiness.IDataSourceRef
IDataSourceRef.Jsii$Default, IDataSourceRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDataSource(software.amazon.jsii.JsiiObjectRef objRef) CfnDataSource(software.constructs.Construct scope, String id, CfnDataSourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the Amazon Q Business application the data source will be attached to.The Unix timestamp when the Amazon Q Business data source was created.The Amazon Resource Name (ARN) of a data source in an Amazon Q Business application.The identifier of the Amazon Q Business data source.The status of the Amazon Q Business data source.The type of the Amazon Q Business data source.The Unix timestamp when the Amazon Q Business data source was last updated.Tag Manager which manages the tags for this resource.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 .A reference to a DataSource resource.A description for the data source connector.The name of the Amazon Q Business data source.Provides the configuration information for altering document metadata and content during the document ingestion process.The identifier of the index the data source is attached to.The configuration for extracting information from media in documents.The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index.getTags()A list of key-value pairs that identify or categorize the data source connector.Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetApplicationId(String value) The identifier of the Amazon Q Business application the data source will be attached to.voidsetConfiguration(Object value) 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 .voidsetDescription(String value) A description for the data source connector.voidsetDisplayName(String value) The name of the Amazon Q Business data source.voidProvides the configuration information for altering document metadata and content during the document ingestion process.voidProvides the configuration information for altering document metadata and content during the document ingestion process.voidsetIndexId(String value) The identifier of the index the data source is attached to.voidThe configuration for extracting information from media in documents.voidThe configuration for extracting information from media in documents.voidsetRoleArn(String value) The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.voidsetSyncSchedule(String value) Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index.voidA list of key-value pairs that identify or categorize the data source connector.voidsetVpcConfiguration(IResolvable value) Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.voidConfiguration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDataSource
protected CfnDataSource(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDataSource
protected CfnDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDataSource
@Stability(Stable) public CfnDataSource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDataSourceProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
The Unix timestamp when the Amazon Q Business data source was created. -
getAttrDataSourceArn
The Amazon Resource Name (ARN) of a data source in an Amazon Q Business application. -
getAttrDataSourceId
The identifier of the Amazon Q Business data source. -
getAttrStatus
The status of the Amazon Q Business data source. -
getAttrType
The type of the Amazon Q Business data source. -
getAttrUpdatedAt
The Unix timestamp when the Amazon Q Business data source was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDataSourceRef
A reference to a DataSource resource.- Specified by:
getDataSourceRefin interfaceIDataSourceRef
-
getApplicationId
The identifier of the Amazon Q Business application the data source will be attached to. -
setApplicationId
The identifier of the Amazon Q Business application the data source will be attached to. -
getConfiguration
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 . -
setConfiguration
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 . -
getDisplayName
The name of the Amazon Q Business data source. -
setDisplayName
The name of the Amazon Q Business data source. -
getIndexId
The identifier of the index the data source is attached to. -
setIndexId
The identifier of the index the data source is attached to. -
getDescription
A description for the data source connector. -
setDescription
A description for the data source connector. -
getDocumentEnrichmentConfiguration
Provides the configuration information for altering document metadata and content during the document ingestion process.Returns union: either
IResolvableorCfnDataSource.DocumentEnrichmentConfigurationProperty -
setDocumentEnrichmentConfiguration
Provides the configuration information for altering document metadata and content during the document ingestion process. -
setDocumentEnrichmentConfiguration
@Stability(Stable) public void setDocumentEnrichmentConfiguration(@Nullable CfnDataSource.DocumentEnrichmentConfigurationProperty value) Provides the configuration information for altering document metadata and content during the document ingestion process. -
getMediaExtractionConfiguration
The configuration for extracting information from media in documents.Returns union: either
IResolvableorCfnDataSource.MediaExtractionConfigurationProperty -
setMediaExtractionConfiguration
The configuration for extracting information from media in documents. -
setMediaExtractionConfiguration
@Stability(Stable) public void setMediaExtractionConfiguration(@Nullable CfnDataSource.MediaExtractionConfigurationProperty value) The configuration for extracting information from media in documents. -
getRoleArn
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. -
setRoleArn
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. -
getSyncSchedule
Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index. -
setSyncSchedule
Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index. -
getTags
A list of key-value pairs that identify or categorize the data source connector. -
setTags
A list of key-value pairs that identify or categorize the data source connector. -
getVpcConfiguration
Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.Returns union: either
IResolvableorCfnDataSource.DataSourceVpcConfigurationProperty -
setVpcConfiguration
Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source. -
setVpcConfiguration
@Stability(Stable) public void setVpcConfiguration(@Nullable CfnDataSource.DataSourceVpcConfigurationProperty value) Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.
-