Skip to content

bedrock: KnowledgeBaseConfigurationProperty is missing sqlKnowledgeBaseConfiguration property in latest CDK version 2.176.0Β #32972

Open
@nroshanr

Description

@nroshanr

Describe the bug

KnowledgeBaseConfigurationProperty is missing the sqlKnowledgeBaseConfiguration property which is currently supported by CloudFormation AWS::Bedrock::KnowledgeBase KnowledgeBaseConfiguration

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

sqlKnowledgeBaseConfiguration should not be missing in L1 construct.

Current Behavior

CDK gives the following error:
Object literal may only specify known properties, and 'sqlKnowledgeBaseConfiguration' does not exist in type 'IResolvable | KnowledgeBaseConfigurationProperty'.

Reproduction Steps

Here's a sample code to replicate the error:

      new bedrock.CfnKnowledgeBase(this, 'knowledgebase', {
          knowledgeBaseConfiguration: {
            type: 'type',
            vectorKnowledgeBaseConfiguration: {
              embeddingModelArn: 'embeddingModelArn'
          },
          kendraKnowledgeBaseConfiguration: {
            kendraIndexArn: 'kendraIndexArn'
          }
          sqlKnowledgeBaseConfiguration:{
            type: 'REDSHIFT'
          }
        },
        roleArn: 'roleName',
        name: 'Name'
      })

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.176.0

Framework Version

No response

Node.js Version

v18.20.5

OS

Linux

Language

TypeScript

Language Version

5.3.3

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-cloudformationRelated to AWS CloudFormationbugThis issue is a bug.needs-cfnThis issue is waiting on changes to CloudFormation before it can be addressed.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions