CfnKnowledgeBaseMixinProps

class aws_cdk.mixins_preview.aws_wisdom.mixins.CfnKnowledgeBaseMixinProps(*, description=None, knowledge_base_type=None, name=None, rendering_configuration=None, server_side_encryption_configuration=None, source_configuration=None, tags=None, vector_ingestion_configuration=None)

Bases: object

Properties for CfnKnowledgeBasePropsMixin.

Parameters:
  • description (Optional[str]) – The description.

  • knowledge_base_type (Optional[str]) – The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.

  • name (Optional[str]) – The name of the knowledge base.

  • rendering_configuration (Union[IResolvable, RenderingConfigurationProperty, Dict[str, Any], None]) – Information about how to render the content.

  • server_side_encryption_configuration (Union[IResolvable, ServerSideEncryptionConfigurationProperty, Dict[str, Any], None]) – This customer managed key must have a policy that allows kms:CreateGrant and kms:DescribeKey permissions to the IAM identity using the key to invoke Wisdom. For more information about setting up a customer managed key for Wisdom, see Enable Amazon Connect Wisdom for your instance . For information about valid ID values, see Key identifiers (KeyId) in the AWS Key Management Service Developer Guide .

  • source_configuration (Union[IResolvable, SourceConfigurationProperty, Dict[str, Any], None]) – The source of the knowledge base content. Only set this argument for EXTERNAL or Managed knowledge bases.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags used to organize, track, or control access for this resource.

  • vector_ingestion_configuration (Union[IResolvable, VectorIngestionConfigurationProperty, Dict[str, Any], None]) – Contains details about how to ingest the documents in a data source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html

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_wisdom import mixins as wisdom_mixins

cfn_knowledge_base_mixin_props = wisdom_mixins.CfnKnowledgeBaseMixinProps(
    description="description",
    knowledge_base_type="knowledgeBaseType",
    name="name",
    rendering_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.RenderingConfigurationProperty(
        template_uri="templateUri"
    ),
    server_side_encryption_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.ServerSideEncryptionConfigurationProperty(
        kms_key_id="kmsKeyId"
    ),
    source_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.SourceConfigurationProperty(
        app_integrations=wisdom_mixins.CfnKnowledgeBasePropsMixin.AppIntegrationsConfigurationProperty(
            app_integration_arn="appIntegrationArn",
            object_fields=["objectFields"]
        ),
        managed_source_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.ManagedSourceConfigurationProperty(
            web_crawler_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.WebCrawlerConfigurationProperty(
                crawler_limits=wisdom_mixins.CfnKnowledgeBasePropsMixin.CrawlerLimitsProperty(
                    rate_limit=123
                ),
                exclusion_filters=["exclusionFilters"],
                inclusion_filters=["inclusionFilters"],
                scope="scope",
                url_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.UrlConfigurationProperty(
                    seed_urls=[wisdom_mixins.CfnKnowledgeBasePropsMixin.SeedUrlProperty(
                        url="url"
                    )]
                )
            )
        )
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vector_ingestion_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.VectorIngestionConfigurationProperty(
        chunking_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.ChunkingConfigurationProperty(
            chunking_strategy="chunkingStrategy",
            fixed_size_chunking_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.FixedSizeChunkingConfigurationProperty(
                max_tokens=123,
                overlap_percentage=123
            ),
            hierarchical_chunking_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.HierarchicalChunkingConfigurationProperty(
                level_configurations=[wisdom_mixins.CfnKnowledgeBasePropsMixin.HierarchicalChunkingLevelConfigurationProperty(
                    max_tokens=123
                )],
                overlap_tokens=123
            ),
            semantic_chunking_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.SemanticChunkingConfigurationProperty(
                breakpoint_percentile_threshold=123,
                buffer_size=123,
                max_tokens=123
            )
        ),
        parsing_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.ParsingConfigurationProperty(
            bedrock_foundation_model_configuration=wisdom_mixins.CfnKnowledgeBasePropsMixin.BedrockFoundationModelConfigurationProperty(
                model_arn="modelArn",
                parsing_prompt=wisdom_mixins.CfnKnowledgeBasePropsMixin.ParsingPromptProperty(
                    parsing_prompt_text="parsingPromptText"
                )
            ),
            parsing_strategy="parsingStrategy"
        )
    )
)

Attributes

description

The description.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html#cfn-wisdom-knowledgebase-description

knowledge_base_type

The type of knowledge base.

Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html#cfn-wisdom-knowledgebase-knowledgebasetype

name

The name of the knowledge base.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html#cfn-wisdom-knowledgebase-name

rendering_configuration

Information about how to render the content.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html#cfn-wisdom-knowledgebase-renderingconfiguration

server_side_encryption_configuration

This customer managed key must have a policy that allows kms:CreateGrant and kms:DescribeKey permissions to the IAM identity using the key to invoke Wisdom.

For more information about setting up a customer managed key for Wisdom, see Enable Amazon Connect Wisdom for your instance . For information about valid ID values, see Key identifiers (KeyId) in the AWS Key Management Service Developer Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html#cfn-wisdom-knowledgebase-serversideencryptionconfiguration

source_configuration

The source of the knowledge base content.

Only set this argument for EXTERNAL or Managed knowledge bases.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html#cfn-wisdom-knowledgebase-sourceconfiguration

tags

The tags used to organize, track, or control access for this resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html#cfn-wisdom-knowledgebase-tags

vector_ingestion_configuration

Contains details about how to ingest the documents in a data source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-knowledgebase.html#cfn-wisdom-knowledgebase-vectoringestionconfiguration