CfnIndexPropsMixin
- class aws_cdk.mixins_preview.aws_qbusiness.mixins.CfnIndexPropsMixin(props, *, strategy=None)
Bases:
MixinCreates an Amazon Q Business index.
To determine if index creation has completed, check the
Statusfield returned from a call toDescribeIndex. TheStatusfield is set toACTIVEwhen the index is ready to use.Once the index is active, you can index your documents using the
`BatchPutDocument<https://docs.aws.amazon.com/amazonq/latest/api-reference/API_BatchPutDocument.html>`_ API or the`CreateDataSource<https://docs.aws.amazon.com/amazonq/latest/api-reference/API_CreateDataSource.html>`_ API.- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-index.html
- CloudformationResource:
AWS::QBusiness::Index
- Mixin:
true
- 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 import mixins from aws_cdk.mixins_preview.aws_qbusiness import mixins as qbusiness_mixins cfn_index_props_mixin = qbusiness_mixins.CfnIndexPropsMixin(qbusiness_mixins.CfnIndexMixinProps( application_id="applicationId", capacity_configuration=qbusiness_mixins.CfnIndexPropsMixin.IndexCapacityConfigurationProperty( units=123 ), description="description", display_name="displayName", document_attribute_configurations=[qbusiness_mixins.CfnIndexPropsMixin.DocumentAttributeConfigurationProperty( name="name", search="search", type="type" )], tags=[CfnTag( key="key", value="value" )], type="type" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::QBusiness::Index.- Parameters:
props (
Union[CfnIndexMixinProps,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', 'capacityConfiguration', 'description', 'displayName', 'documentAttributeConfigurations', 'tags', 'type']
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
DocumentAttributeConfigurationProperty
- class CfnIndexPropsMixin.DocumentAttributeConfigurationProperty(*, name=None, search=None, type=None)
Bases:
objectConfiguration information for document attributes.
Document attributes are metadata or fields associated with your documents. For example, the company department name associated with each document.
For more information, see Understanding document attributes .
- Parameters:
name (
Optional[str]) – The name of the document attribute.search (
Optional[str]) – Information about whether the document attribute can be used by an end user to search for information on their web experience.type (
Optional[str]) – The type of 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_configuration_property = qbusiness_mixins.CfnIndexPropsMixin.DocumentAttributeConfigurationProperty( name="name", search="search", type="type" )
Attributes
- name
The name of the document attribute.
- search
Information about whether the document attribute can be used by an end user to search for information on their web experience.
IndexCapacityConfigurationProperty
- class CfnIndexPropsMixin.IndexCapacityConfigurationProperty(*, units=None)
Bases:
objectProvides information about index capacity configuration.
- Parameters:
units (
Union[int,float,None]) – The number of storage units configured for an Amazon Q Business index.- 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 index_capacity_configuration_property = qbusiness_mixins.CfnIndexPropsMixin.IndexCapacityConfigurationProperty( units=123 )
Attributes
- units
The number of storage units configured for an Amazon Q Business index.
IndexStatisticsProperty
- class CfnIndexPropsMixin.IndexStatisticsProperty(*, text_document_statistics=None)
Bases:
objectProvides information about the number of documents in an index.
- Parameters:
text_document_statistics (
Union[IResolvable,TextDocumentStatisticsProperty,Dict[str,Any],None]) – The number of documents indexed.- 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 index_statistics_property = qbusiness_mixins.CfnIndexPropsMixin.IndexStatisticsProperty( text_document_statistics=qbusiness_mixins.CfnIndexPropsMixin.TextDocumentStatisticsProperty( indexed_text_bytes=123, indexed_text_document_count=123 ) )
Attributes
- text_document_statistics
The number of documents indexed.
TextDocumentStatisticsProperty
- class CfnIndexPropsMixin.TextDocumentStatisticsProperty(*, indexed_text_bytes=None, indexed_text_document_count=None)
Bases:
objectProvides information about text documents in an index.
- Parameters:
indexed_text_bytes (
Union[int,float,None]) – The total size, in bytes, of the indexed documents.indexed_text_document_count (
Union[int,float,None]) – The number of text documents indexed.
- 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 text_document_statistics_property = qbusiness_mixins.CfnIndexPropsMixin.TextDocumentStatisticsProperty( indexed_text_bytes=123, indexed_text_document_count=123 )
Attributes
- indexed_text_bytes
The total size, in bytes, of the indexed documents.
- indexed_text_document_count
The number of text documents indexed.