CfnDataSourcePropsMixin
- class aws_cdk.mixins_preview.aws_qbusiness.mixins.CfnDataSourcePropsMixin(props, *, strategy=None)
Bases:
MixinCreates a data source connector for an Amazon Q Business application.
CreateDataSourceis a synchronous operation. The operation returns 200 if the data source was successfully created. Otherwise, an exception is raised.- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-datasource.html
- CloudformationResource:
AWS::QBusiness::DataSource
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins # configuration: Any cfn_data_source_props_mixin = qbusiness_mixins.CfnDataSourcePropsMixin(qbusiness_mixins.CfnDataSourceMixinProps( application_id="applicationId", configuration=configuration, description="description", display_name="displayName", document_enrichment_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentEnrichmentConfigurationProperty( inline_configurations=[qbusiness_mixins.CfnDataSourcePropsMixin.InlineDocumentEnrichmentConfigurationProperty( condition=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeConditionProperty( key="key", operator="operator", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) ), document_content_operator="documentContentOperator", target=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeTargetProperty( attribute_value_operator="attributeValueOperator", key="key", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) ) )], post_extraction_hook_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.HookConfigurationProperty( invocation_condition=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeConditionProperty( key="key", operator="operator", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) ), lambda_arn="lambdaArn", role_arn="roleArn", s3_bucket_name="s3BucketName" ), pre_extraction_hook_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.HookConfigurationProperty( invocation_condition=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeConditionProperty( key="key", operator="operator", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) ), lambda_arn="lambdaArn", role_arn="roleArn", s3_bucket_name="s3BucketName" ) ), index_id="indexId", media_extraction_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.MediaExtractionConfigurationProperty( audio_extraction_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.AudioExtractionConfigurationProperty( audio_extraction_status="audioExtractionStatus" ), image_extraction_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.ImageExtractionConfigurationProperty( image_extraction_status="imageExtractionStatus" ), video_extraction_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.VideoExtractionConfigurationProperty( video_extraction_status="videoExtractionStatus" ) ), role_arn="roleArn", sync_schedule="syncSchedule", tags=[CfnTag( key="key", value="value" )], vpc_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.DataSourceVpcConfigurationProperty( security_group_ids=["securityGroupIds"], subnet_ids=["subnetIds"] ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::QBusiness::DataSource.- Parameters:
props (
Union[CfnDataSourceMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['applicationId', 'configuration', 'description', 'displayName', 'documentEnrichmentConfiguration', 'indexId', 'mediaExtractionConfiguration', 'roleArn', 'syncSchedule', 'tags', 'vpcConfiguration']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AudioExtractionConfigurationProperty
- class CfnDataSourcePropsMixin.AudioExtractionConfigurationProperty(*, audio_extraction_status=None)
Bases:
objectConfiguration settings for audio content extraction and processing.
- Parameters:
audio_extraction_status (
Optional[str]) – The status of audio extraction (ENABLED or DISABLED) for processing audio content from files.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins audio_extraction_configuration_property = qbusiness_mixins.CfnDataSourcePropsMixin.AudioExtractionConfigurationProperty( audio_extraction_status="audioExtractionStatus" )
Attributes
- audio_extraction_status
The status of audio extraction (ENABLED or DISABLED) for processing audio content from files.
DataSourceVpcConfigurationProperty
- class CfnDataSourcePropsMixin.DataSourceVpcConfigurationProperty(*, security_group_ids=None, subnet_ids=None)
Bases:
objectProvides configuration information needed to connect to an Amazon VPC (Virtual Private Cloud).
- Parameters:
security_group_ids (
Optional[Sequence[str]]) – A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Q Business to connect to the data source.subnet_ids (
Optional[Sequence[str]]) – A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins data_source_vpc_configuration_property = qbusiness_mixins.CfnDataSourcePropsMixin.DataSourceVpcConfigurationProperty( security_group_ids=["securityGroupIds"], subnet_ids=["subnetIds"] )
Attributes
- security_group_ids
A list of identifiers of security groups within your Amazon VPC.
The security groups should enable Amazon Q Business to connect to the data source.
- subnet_ids
A list of identifiers for subnets within your Amazon VPC.
The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.
DocumentAttributeConditionProperty
- class CfnDataSourcePropsMixin.DocumentAttributeConditionProperty(*, key=None, operator=None, value=None)
Bases:
objectThe condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business.
You use this with
`DocumentAttributeTarget<https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html>`_ to apply the condition.For example, you can create the ‘Department’ target field and have it prefill department names associated with the documents based on information in the ‘Source_URI’ field. Set the condition that if the ‘Source_URI’ field contains ‘financial’ in its URI value, then prefill the target field ‘Department’ with the target value ‘Finance’ for the document.
Amazon Q Business can’t create a target field if it has not already been created as an index field. After you create your index field, you can create a document metadata field using
DocumentAttributeTarget. Amazon Q Business then will map your newly created metadata field to your index field.- Parameters:
key (
Optional[str]) – The identifier of the document attribute used for the condition. For example, ‘Source_URI’ could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Q Business currently doesn’t support_document_bodyas an attribute key used for the condition.operator (
Optional[str]) – The identifier of the document attribute used for the condition. For example, ‘Source_URI’ could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Q Business currently does not support_document_bodyas an attribute key used for the condition.value (
Union[IResolvable,DocumentAttributeValueProperty,Dict[str,Any],None]) – The value of a document attribute. You can only provide one value for a document attribute.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins document_attribute_condition_property = qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeConditionProperty( key="key", operator="operator", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) )
Attributes
- key
The identifier of the document attribute used for the condition.
For example, ‘Source_URI’ could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
Amazon Q Business currently doesn’t support
_document_bodyas an attribute key used for the condition.
- operator
The identifier of the document attribute used for the condition.
For example, ‘Source_URI’ could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
Amazon Q Business currently does not support
_document_bodyas an attribute key used for the condition.
- value
The value of a document attribute.
You can only provide one value for a document attribute.
DocumentAttributeTargetProperty
- class CfnDataSourcePropsMixin.DocumentAttributeTargetProperty(*, attribute_value_operator=None, key=None, value=None)
Bases:
objectThe target document attribute or metadata field you want to alter when ingesting documents into Amazon Q Business.
For example, you can delete all customer identification numbers associated with the documents, stored in the document metadata field called ‘Customer_ID’ by setting the target key as ‘Customer_ID’ and the deletion flag to
TRUE. This removes all customer ID values in the field ‘Customer_ID’. This would scrub personally identifiable information from each document’s metadata.Amazon Q Business can’t create a target field if it has not already been created as an index field. After you create your index field, you can create a document metadata field using
`DocumentAttributeTarget<https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeTarget.html>`_ . Amazon Q Business will then map your newly created document attribute to your index field.You can also use this with
`DocumentAttributeCondition<https://docs.aws.amazon.com/amazonq/latest/api-reference/API_DocumentAttributeCondition.html>`_ .- Parameters:
attribute_value_operator (
Optional[str]) –TRUEto delete the existing target value for your specified target attribute key. You cannot create a target value and set this toTRUE.key (
Optional[str]) – The identifier of the target document attribute or metadata field. For example, ‘Department’ could be an identifier for the target attribute or metadata field that includes the department names associated with the documents.value (
Union[IResolvable,DocumentAttributeValueProperty,Dict[str,Any],None]) – The value of a document attribute. You can only provide one value for a document attribute.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins document_attribute_target_property = qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeTargetProperty( attribute_value_operator="attributeValueOperator", key="key", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) )
Attributes
- attribute_value_operator
TRUEto delete the existing target value for your specified target attribute key.You cannot create a target value and set this to
TRUE.
- key
The identifier of the target document attribute or metadata field.
For example, ‘Department’ could be an identifier for the target attribute or metadata field that includes the department names associated with the documents.
- value
The value of a document attribute.
You can only provide one value for a document attribute.
DocumentAttributeValueProperty
- class CfnDataSourcePropsMixin.DocumentAttributeValueProperty(*, date_value=None, long_value=None, string_list_value=None, string_value=None)
Bases:
objectThe value of a document attribute.
You can only provide one value for a document attribute.
- Parameters:
date_value (
Optional[str]) – A date expressed as an ISO 8601 string. It’s important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.long_value (
Union[int,float,None]) – A long integer value.string_list_value (
Optional[Sequence[str]]) – A list of strings.string_value (
Optional[str]) – A string.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins document_attribute_value_property = qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" )
Attributes
- date_value
A date expressed as an ISO 8601 string.
It’s important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.
- long_value
A long integer value.
- string_list_value
A list of strings.
DocumentEnrichmentConfigurationProperty
- class CfnDataSourcePropsMixin.DocumentEnrichmentConfigurationProperty(*, inline_configurations=None, post_extraction_hook_configuration=None, pre_extraction_hook_configuration=None)
Bases:
objectProvides the configuration information for altering document metadata and content during the document ingestion process.
For more information, see Custom document enrichment .
- Parameters:
inline_configurations (
Union[IResolvable,Sequence[Union[IResolvable,InlineDocumentEnrichmentConfigurationProperty,Dict[str,Any]]],None]) – Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.post_extraction_hook_configuration (
Union[IResolvable,HookConfigurationProperty,Dict[str,Any],None]) – Configuration information for invoking a Lambda function in AWS Lambda on the structured documents with their metadata and text extracted. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Using Lambda functions .pre_extraction_hook_configuration (
Union[IResolvable,HookConfigurationProperty,Dict[str,Any],None]) –Configuration information for invoking a Lambda function in AWS Lambda on the original or raw documents before extracting their metadata and text. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Using Lambda functions .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins document_enrichment_configuration_property = qbusiness_mixins.CfnDataSourcePropsMixin.DocumentEnrichmentConfigurationProperty( inline_configurations=[qbusiness_mixins.CfnDataSourcePropsMixin.InlineDocumentEnrichmentConfigurationProperty( condition=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeConditionProperty( key="key", operator="operator", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) ), document_content_operator="documentContentOperator", target=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeTargetProperty( attribute_value_operator="attributeValueOperator", key="key", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) ) )], post_extraction_hook_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.HookConfigurationProperty( invocation_condition=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeConditionProperty( key="key", operator="operator", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) ), lambda_arn="lambdaArn", role_arn="roleArn", s3_bucket_name="s3BucketName" ), pre_extraction_hook_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.HookConfigurationProperty( invocation_condition=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeConditionProperty( key="key", operator="operator", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) ), lambda_arn="lambdaArn", role_arn="roleArn", s3_bucket_name="s3BucketName" ) )
Attributes
- inline_configurations
Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
- post_extraction_hook_configuration
Configuration information for invoking a Lambda function in AWS Lambda on the structured documents with their metadata and text extracted.
You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Using Lambda functions .
- pre_extraction_hook_configuration
Configuration information for invoking a Lambda function in AWS Lambda on the original or raw documents before extracting their metadata and text.
You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Using Lambda functions .
HookConfigurationProperty
- class CfnDataSourcePropsMixin.HookConfigurationProperty(*, invocation_condition=None, lambda_arn=None, role_arn=None, s3_bucket_name=None)
Bases:
objectProvides the configuration information for invoking a Lambda function in AWS Lambda to alter document metadata and content when ingesting documents into Amazon Q Business.
You can configure your Lambda function using the
PreExtractionHookConfigurationparameter if you want to apply advanced alterations on the original or raw documents.If you want to apply advanced alterations on the Amazon Q Business structured documents, you must configure your Lambda function using
PostExtractionHookConfiguration.You can only invoke one Lambda function. However, this function can invoke other functions it requires.
For more information, see Custom document enrichment .
- Parameters:
invocation_condition (
Union[IResolvable,DocumentAttributeConditionProperty,Dict[str,Any],None]) – The condition used for when a Lambda function should be invoked. For example, you can specify a condition that if there are empty date-time values, then Amazon Q Business should invoke a function that inserts the current date-time.lambda_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the Lambda function during ingestion. For more information, see Using Lambda functions for Amazon Q Business document enrichment .role_arn (
Optional[str]) – The Amazon Resource Name (ARN) of a role with permission to runPreExtractionHookConfigurationandPostExtractionHookConfigurationfor altering document metadata and content during the document ingestion process.s3_bucket_name (
Optional[str]) – Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins hook_configuration_property = qbusiness_mixins.CfnDataSourcePropsMixin.HookConfigurationProperty( invocation_condition=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeConditionProperty( key="key", operator="operator", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) ), lambda_arn="lambdaArn", role_arn="roleArn", s3_bucket_name="s3BucketName" )
Attributes
- invocation_condition
The condition used for when a Lambda function should be invoked.
For example, you can specify a condition that if there are empty date-time values, then Amazon Q Business should invoke a function that inserts the current date-time.
- lambda_arn
The Amazon Resource Name (ARN) of the Lambda function during ingestion.
For more information, see Using Lambda functions for Amazon Q Business document enrichment .
- role_arn
The Amazon Resource Name (ARN) of a role with permission to run
PreExtractionHookConfigurationandPostExtractionHookConfigurationfor altering document metadata and content during the document ingestion process.
- s3_bucket_name
Stores the original, raw documents or the structured, parsed documents before and after altering them.
For more information, see Data contracts for Lambda functions .
ImageExtractionConfigurationProperty
- class CfnDataSourcePropsMixin.ImageExtractionConfigurationProperty(*, image_extraction_status=None)
Bases:
objectThe configuration for extracting semantic meaning from images in documents.
For more information, see Extracting semantic meaning from images and visuals .
- Parameters:
image_extraction_status (
Optional[str]) – Specify whether to extract semantic meaning from images and visuals from documents.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins image_extraction_configuration_property = qbusiness_mixins.CfnDataSourcePropsMixin.ImageExtractionConfigurationProperty( image_extraction_status="imageExtractionStatus" )
Attributes
- image_extraction_status
Specify whether to extract semantic meaning from images and visuals from documents.
InlineDocumentEnrichmentConfigurationProperty
- class CfnDataSourcePropsMixin.InlineDocumentEnrichmentConfigurationProperty(*, condition=None, document_content_operator=None, target=None)
Bases:
objectProvides the configuration information for applying basic logic to alter document metadata and content when ingesting documents into Amazon Q Business.
To apply advanced logic, to go beyond what you can do with basic logic, see
`HookConfiguration<https://docs.aws.amazon.com/amazonq/latest/api-reference/API_HookConfiguration.html>`_ .For more information, see Custom document enrichment .
- Parameters:
condition (
Union[IResolvable,DocumentAttributeConditionProperty,Dict[str,Any],None]) – Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business .document_content_operator (
Optional[str]) –TRUEto delete content if the condition used for the target attribute is met.target (
Union[IResolvable,DocumentAttributeTargetProperty,Dict[str,Any],None]) – Configuration of the target document attribute or metadata field when ingesting documents into Amazon Q Business . You can also include a value.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins inline_document_enrichment_configuration_property = qbusiness_mixins.CfnDataSourcePropsMixin.InlineDocumentEnrichmentConfigurationProperty( condition=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeConditionProperty( key="key", operator="operator", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) ), document_content_operator="documentContentOperator", target=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeTargetProperty( attribute_value_operator="attributeValueOperator", key="key", value=qbusiness_mixins.CfnDataSourcePropsMixin.DocumentAttributeValueProperty( date_value="dateValue", long_value=123, string_list_value=["stringListValue"], string_value="stringValue" ) ) )
Attributes
- condition
Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Q Business .
- document_content_operator
TRUEto delete content if the condition used for the target attribute is met.
- target
Configuration of the target document attribute or metadata field when ingesting documents into Amazon Q Business .
You can also include a value.
MediaExtractionConfigurationProperty
- class CfnDataSourcePropsMixin.MediaExtractionConfigurationProperty(*, audio_extraction_configuration=None, image_extraction_configuration=None, video_extraction_configuration=None)
Bases:
objectThe configuration for extracting information from media in documents.
- Parameters:
audio_extraction_configuration (
Union[IResolvable,AudioExtractionConfigurationProperty,Dict[str,Any],None]) – Configuration settings for extracting and processing audio content from media files.image_extraction_configuration (
Union[IResolvable,ImageExtractionConfigurationProperty,Dict[str,Any],None]) –The configuration for extracting semantic meaning from images in documents. For more information, see Extracting semantic meaning from images and visuals .
video_extraction_configuration (
Union[IResolvable,VideoExtractionConfigurationProperty,Dict[str,Any],None]) – Configuration settings for extracting and processing video content from media files.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins media_extraction_configuration_property = qbusiness_mixins.CfnDataSourcePropsMixin.MediaExtractionConfigurationProperty( audio_extraction_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.AudioExtractionConfigurationProperty( audio_extraction_status="audioExtractionStatus" ), image_extraction_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.ImageExtractionConfigurationProperty( image_extraction_status="imageExtractionStatus" ), video_extraction_configuration=qbusiness_mixins.CfnDataSourcePropsMixin.VideoExtractionConfigurationProperty( video_extraction_status="videoExtractionStatus" ) )
Attributes
- audio_extraction_configuration
Configuration settings for extracting and processing audio content from media files.
- image_extraction_configuration
The configuration for extracting semantic meaning from images in documents.
For more information, see Extracting semantic meaning from images and visuals .
- video_extraction_configuration
Configuration settings for extracting and processing video content from media files.
VideoExtractionConfigurationProperty
- class CfnDataSourcePropsMixin.VideoExtractionConfigurationProperty(*, video_extraction_status=None)
Bases:
objectConfiguration settings for video content extraction and processing.
- Parameters:
video_extraction_status (
Optional[str]) – The status of video extraction (ENABLED or DISABLED) for processing video content from files.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins video_extraction_configuration_property = qbusiness_mixins.CfnDataSourcePropsMixin.VideoExtractionConfigurationProperty( video_extraction_status="videoExtractionStatus" )
Attributes
- video_extraction_status
The status of video extraction (ENABLED or DISABLED) for processing video content from files.