class CfnKnowledgeBaseLogsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnKnowledgeBaseLogsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnKnowledgeBaseLogsMixin |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnKnowledgeBaseLogsMixin |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnKnowledgeBaseLogsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » CfnKnowledgeBaseLogsMixin |
Implements
IMixin
Extends
Mixin
Specifies a knowledge base as a resource in a top-level template. Minimally, you must specify the following properties:.
Name – Specify a name for the knowledge base.
RoleArn – Specify the Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base. For more information, see Create a service role for Knowledge base for Amazon Bedrock .
KnowledgeBaseConfiguration – Specify the embeddings configuration of the knowledge base. The following sub-properties are required:
Type – Specify the value
VECTOR.StorageConfiguration – Specify information about the vector store in which the data source is stored. The following sub-properties are required:
Type – Specify the vector store service that you are using.
Redis Enterprise Cloud vector stores are currently unsupported in CloudFormation .
For more information about using knowledge bases in Amazon Bedrock , see Knowledge base for Amazon Bedrock .
See the Properties section below for descriptions of both the required and optional properties.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from '@aws-cdk/mixins-preview';
import { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
declare const logsDelivery: logs.ILogsDelivery;
const cfnKnowledgeBaseLogsMixin = new bedrock_mixins.CfnKnowledgeBaseLogsMixin('logType', logsDelivery);
Initializer
new CfnKnowledgeBaseLogsMixin(logType: string, logDelivery: ILogsDelivery)
Parameters
- logType
string— Type of logs that are getting vended. - logDelivery
ILogs— Object in charge of setting up the delivery source, delivery destination, and delivery connection.Delivery
Create a mixin to enable vended logs for AWS::Bedrock::KnowledgeBase.
Properties
| Name | Type | Description |
|---|---|---|
| log | ILogs | |
| log | string | |
| static APPLICATION_LOGS | Cfn | |
| static RUNTIME_LOGS | Cfn |
logDelivery
Type:
ILogs
logType
Type:
string
static APPLICATION_LOGS
Type:
Cfn
static RUNTIME_LOGS
Type:
Cfn
Methods
| Name | Description |
|---|---|
| apply | Apply vended logs configuration to the construct. |
| supports(construct) | Check if this mixin supports the given construct (has vendedLogs property). |
applyTo(resource)
public applyTo(resource: IConstruct): IConstruct
Parameters
- resource
IConstruct
Returns
Apply vended logs configuration to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct (has vendedLogs property).

.NET
Go
Java
Python
TypeScript