generative-ai-cdk-constructs

@cdklabs/generative-ai-cdk-constructsDocs


@cdklabs/generative-ai-cdk-constructs / bedrock / Topic

Class: Topic

Defines a topic to deny.

Constructors

new Topic()

protected new Topic(props): Topic

Parameters

props: CustomTopicProps

Returns

Topic

Properties

definition

readonly definition: string

Definition of the topic.


examples?

readonly optional examples: string[]

Representative phrases that refer to the topic.


name

readonly name: string

The name of the topic to deny.


FINANCIAL_ADVICE

readonly static FINANCIAL_ADVICE: Topic


INNOPROPRIATE_CONTENT

readonly static INNOPROPRIATE_CONTENT: Topic


readonly static LEGAL_ADVICE: Topic


MEDICAL_ADVICE

readonly static MEDICAL_ADVICE: Topic


POLITICAL_ADVICE

readonly static POLITICAL_ADVICE: Topic

Methods

custom()

static custom(props): Topic

Parameters

props: CustomTopicProps

Returns

Topic